2 # From configure.ac Revision: 1.8 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.0.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="src/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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
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 GRAS 0.0.040304 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 GRAS 0.0.040304:";;
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 builds
1039 --enable-dependency-tracking Do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-gtk-doc use gtk-doc to build documentation default=no
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1045 --enable-iso-c Try to warn if code is not ISO C
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use
1054 include additional configurations [automatic]
1055 --with-html-dir=PATH path to installed docs
1056 --with-SimGrid=DIR root directory of the SimGrid simulator installation
1057 --with-SimGrid-includes=DIR
1058 specify exact include dir for the SimGrid simulator headers
1059 --with-SimGrid-libraries=DIR
1060 specify exact library dir for the SimGrid simulator library
1061 --with-SimGrid-extra=ARG
1062 specify extra args to pass to the linker to get the
1063 the SimGrid simulator library (with no space. A sed to change "!"
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 GRAS configure 0.0.040304
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1193 It was created by GRAS $as_me 0.0.040304, which was
1194 generated by GNU Autoconf 2.59. Invocation command line was
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_must_keep_next=false
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
1271 ac_must_keep_next=false # Got value, back to normal.
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 -* ) ac_must_keep_next=true ;;
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log. We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1311 # The following way of writing the cache mishandles newlines in values,
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1334 for ac_var in $ac_subst_vars
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -n "$ac_subst_files"; then
1348 for ac_var in $ac_subst_files
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -s confdefs.h; then
1363 sed "/^$/d" confdefs.h | sort
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1370 rm -f core *.core &&
1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 # Predefined preprocessor variables.
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1429 if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1446 # Check that the precious variables saved in the cache have kept the same
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1470 echo "$as_me: former value: $ac_old_val" >&2;}
1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1472 echo "$as_me: current value: $ac_new_val" >&2;}
1473 ac_cache_corrupted=:
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 elif test -f $ac_dir/install.sh; then
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 elif test -f $ac_dir/shtool; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596 ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618 ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1638 program_prefix=${target_alias}-
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646 ac_config_headers="$ac_config_headers src/gras_config.h"
1648 am__api_version="1.7"
1649 # Find a good install program. We prefer a C program (faster),
1650 # so one script is as good as another. But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 # Account for people who put trailing slashes in PATH elements.
1675 ./ | .// | /cC/* | \
1676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680 # OSF1 and SCO ODT 3.0 have their own names for install.
1681 # Don't use installbsd from OSF since it installs stuff as root
1683 for ac_prog in ginstall scoinst install; do
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686 if test $ac_prog = install &&
1687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # AIX install. It has an incompatible calling convention.
1690 elif test $ac_prog = install &&
1691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692 # program-specific install script used by HP pwplus--don't use.
1695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1707 if test "${ac_cv_path_install+set}" = set; then
1708 INSTALL=$ac_cv_path_install
1710 # As a last resort, use the slow shell script. We don't cache a
1711 # path for INSTALL within a source directory, because that will
1712 # break other packages using the cache if that directory is
1713 # removed, or if the path is relative.
1714 INSTALL=$ac_install_sh
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments. Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1739 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740 if test "$*" = "X"; then
1742 set X `ls -t $srcdir/configure conftest.file`
1745 if test "$*" != "X $srcdir/configure conftest.file" \
1746 && test "$*" != "X conftest.file $srcdir/configure"; then
1748 # If neither matched, then we have a broken ls. This can happen
1749 # if, for instance, CONFIG_SHELL is bash and it inherits a
1750 # broken ls alias from the environment. This has actually
1751 # happened. Such a system could not be considered "sane".
1752 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&2;}
1756 { (exit 1); exit 1; }; }
1759 test "$2" = conftest.file
1765 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769 { (exit 1); exit 1; }; }
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $. echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1787 # expand $ac_aux_dir to an absolute path
1788 am_aux_dir=`cd $ac_aux_dir && pwd`
1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1791 # Use eval to expand $SHELL
1792 if eval "$MISSING --run true"; then
1793 am_missing_run="$MISSING --run "
1796 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1800 for ac_prog in gawk mawk nawk awk
1802 # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_AWK+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$AWK"; then
1810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_AWK="$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test -n "$AWK"; then
1830 echo "$as_me:$LINENO: result: $AWK" >&5
1831 echo "${ECHO_T}$AWK" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 test -n "$AWK" && break
1840 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1841 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1842 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1843 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 cat >conftest.make <<\_ACEOF
1848 @echo 'ac_maketemp="$(MAKE)"'
1850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1851 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1852 if test -n "$ac_maketemp"; then
1853 eval ac_cv_prog_make_${ac_make}_set=yes
1855 eval ac_cv_prog_make_${ac_make}_set=no
1859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1860 echo "$as_me:$LINENO: result: yes" >&5
1861 echo "${ECHO_T}yes" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 SET_MAKE="MAKE=${MAKE-make}"
1869 rm -rf .tst 2>/dev/null
1870 mkdir .tst 2>/dev/null
1871 if test -d .tst; then
1876 rmdir .tst 2>/dev/null
1878 # test to see if srcdir already configured
1879 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1880 test -f $srcdir/config.status; then
1881 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1882 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1883 { (exit 1); exit 1; }; }
1886 # test whether we have cygpath
1887 if test -z "$CYGPATH_W"; then
1888 if (cygpath --version) >/dev/null 2>/dev/null; then
1889 CYGPATH_W='cygpath -w'
1896 # Define the identity of the package.
1898 VERSION='0.0.040304'
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE "$PACKAGE"
1906 cat >>confdefs.h <<_ACEOF
1907 #define VERSION "$VERSION"
1910 # Some tools Automake needs.
1912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1915 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1918 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1921 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1924 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1929 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1931 # Installed binaries are usually stripped using `strip' when the user
1932 # run `make install-strip'. However `strip' might not be the right
1933 # tool to use in cross-compilation environments, therefore Automake
1934 # will honor the `STRIP' environment variable to overrule this program.
1935 if test "$cross_compiling" != no; then
1936 if test -n "$ac_tool_prefix"; then
1937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}strip; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_STRIP+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$STRIP"; then
1945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 STRIP=$ac_cv_prog_STRIP
1964 if test -n "$STRIP"; then
1965 echo "$as_me:$LINENO: result: $STRIP" >&5
1966 echo "${ECHO_T}$STRIP" >&6
1968 echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1973 if test -z "$ac_cv_prog_STRIP"; then
1975 # Extract the first word of "strip", so it can be a program name with args.
1976 set dummy strip; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$ac_ct_STRIP"; then
1983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_ac_ct_STRIP="strip"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2003 if test -n "$ac_ct_STRIP"; then
2004 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2005 echo "${ECHO_T}$ac_ct_STRIP" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2013 STRIP="$ac_cv_prog_STRIP"
2017 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2019 # We need awk for the "check" target. The system "awk" is bad on
2025 # Check whether --enable-shared or --disable-shared was given.
2026 if test "${enable_shared+set}" = set; then
2027 enableval="$enable_shared"
2028 p=${PACKAGE-default}
2030 yes) enable_shared=yes ;;
2031 no) enable_shared=no ;;
2034 # Look at the argument we got. We use all the common list separators.
2035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036 for pkg in $enableval; do
2038 if test "X$pkg" = "X$p"; then
2049 # Check whether --enable-static or --disable-static was given.
2050 if test "${enable_static+set}" = set; then
2051 enableval="$enable_static"
2052 p=${PACKAGE-default}
2054 yes) enable_static=yes ;;
2055 no) enable_static=no ;;
2058 # Look at the argument we got. We use all the common list separators.
2059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060 for pkg in $enableval; do
2062 if test "X$pkg" = "X$p"; then
2073 # Check whether --enable-fast-install or --disable-fast-install was given.
2074 if test "${enable_fast_install+set}" = set; then
2075 enableval="$enable_fast_install"
2076 p=${PACKAGE-default}
2078 yes) enable_fast_install=yes ;;
2079 no) enable_fast_install=no ;;
2081 enable_fast_install=no
2082 # Look at the argument we got. We use all the common list separators.
2083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084 for pkg in $enableval; do
2086 if test "X$pkg" = "X$p"; then
2087 enable_fast_install=yes
2094 enable_fast_install=yes
2097 DEPDIR="${am__leading_dot}deps"
2099 ac_config_commands="$ac_config_commands depfiles"
2102 am_make=${MAKE-make}
2103 cat > confinc << 'END'
2108 # If we don't find an include directive, just comment out the code.
2109 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2110 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2114 # First try GNU make style include.
2115 echo "include confinc" > confmf
2116 # We grep out `Entering directory' and `Leaving directory'
2117 # messages which can occur if `w' ends up in MAKEFLAGS.
2118 # In particular we don't look at `^make:' because GNU make might
2119 # be invoked under some other name (usually "gmake"), in which
2120 # case it prints its new name instead of `make'.
2121 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2126 # Now try BSD make style include.
2127 if test "$am__include" = "#"; then
2128 echo '.include "confinc"' > confmf
2129 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2130 am__include=.include
2137 echo "$as_me:$LINENO: result: $_am_result" >&5
2138 echo "${ECHO_T}$_am_result" >&6
2139 rm -f confinc confmf
2141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2142 if test "${enable_dependency_tracking+set}" = set; then
2143 enableval="$enable_dependency_tracking"
2146 if test "x$enable_dependency_tracking" != xno; then
2147 am_depcomp="$ac_aux_dir/depcomp"
2152 if test "x$enable_dependency_tracking" != xno; then
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2204 if test -z "$ac_cv_prog_CC"; then
2206 # Extract the first word of "gcc", so it can be a program name with args.
2207 set dummy gcc; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC="gcc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2246 if test -z "$CC"; then
2247 if test -n "$ac_tool_prefix"; then
2248 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2249 set dummy ${ac_tool_prefix}cc; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265 ac_cv_prog_CC="${ac_tool_prefix}cc"
2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 if test -n "$CC"; then
2276 echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6
2279 echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2284 if test -z "$ac_cv_prog_CC"; then
2286 # Extract the first word of "cc", so it can be a program name with args.
2287 set dummy cc; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CC="cc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2317 echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2327 if test -z "$CC"; then
2328 # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc; ac_word=$2
2330 echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 if test -n "$CC"; then
2336 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2347 ac_prog_rejected=yes
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 if test $ac_prog_rejected = yes; then
2358 # We found a bogon in the path, so make sure we never use it.
2359 set dummy $ac_cv_prog_CC
2361 if test $# != 0; then
2362 # We chose a different compiler from the bogus one.
2363 # However, it has the same basename, so the bogon will be chosen
2364 # first if we set CC to just the basename; use the full file name.
2366 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372 if test -n "$CC"; then
2373 echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 if test -n "$CC"; then
2413 echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6
2416 echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2420 test -n "$CC" && break
2423 if test -z "$CC"; then
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$ac_ct_CC"; then
2435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_ac_ct_CC="$ac_prog"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2462 test -n "$ac_ct_CC" && break
2471 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: no acceptable C compiler found in \$PATH
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2477 # Provide some information about the compiler.
2478 echo "$as_me:$LINENO:" \
2479 "checking for C compiler version" >&5
2480 ac_compiler=`set X $ac_compile; echo $2`
2481 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2482 (eval $ac_compiler --version </dev/null >&5) 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2487 (eval $ac_compiler -v </dev/null >&5) 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2492 (eval $ac_compiler -V </dev/null >&5) 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2517 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2520 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2521 (eval $ac_link_default) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 # Find the output, starting from the most likely. This scheme is
2526 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2529 # Be careful to initialize this variable, since it used to be cached.
2530 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2532 # b.out is created by i960 compilers.
2533 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2535 test -f "$ac_file" || continue
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2540 # This is the source file.
2543 # We found the default executable, but exeext='' is most
2547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 # FIXME: I believe we export ac_cv_exeext for Libtool,
2549 # but it would be cool to find out if it's true. Does anybody
2550 # maintain Libtool? --akim.
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2561 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: C compiler cannot create executables
2564 See \`config.log' for more details." >&2;}
2565 { (exit 77); exit 77; }; }
2568 ac_exeext=$ac_cv_exeext
2569 echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6
2572 # Check the compiler produces executables we can run. If not, either
2573 # the compiler is broken, or we cross compile.
2574 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2575 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2577 # If not cross compiling, check that we can run a simple program.
2578 if test "$cross_compiling" != yes; then
2579 if { ac_try='./$ac_file'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2587 if test "$cross_compiling" = maybe; then
2590 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596 { (exit 1); exit 1; }; }
2600 echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check the compiler produces executables we can run. If not, either
2606 # the compiler is broken, or we cross compile.
2607 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2609 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6
2612 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2621 # work properly (i.e., refer to `conftest.exe'), while it won't with
2623 for ac_file in conftest.exe conftest conftest.*; do
2624 test -f "$ac_file" || continue
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&2;}
2638 { (exit 1); exit 1; }; }
2641 rm -f conftest$ac_cv_exeext
2642 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2643 echo "${ECHO_T}$ac_cv_exeext" >&6
2645 rm -f conftest.$ac_ext
2646 EXEEXT=$ac_cv_exeext
2648 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2649 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2650 if test "${ac_cv_objext+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2668 rm -f conftest.o conftest.obj
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2694 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2695 echo "${ECHO_T}$ac_cv_objext" >&6
2696 OBJEXT=$ac_cv_objext
2698 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2699 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>conftest.er1
2725 grep -v '^ *+' conftest.er1 >conftest.err
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_stdc=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std1 is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std1. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX -qlanglvl=ansi
2888 # Ultrix and OSF/1 -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions -Aa -D_HPUX_SOURCE
2891 # SVR4 -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_cv_prog_cc_stdc=$ac_arg
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext
2925 rm -f conftest.$ac_ext conftest.$ac_objext
2930 case "x$ac_cv_prog_cc_stdc" in
2932 echo "$as_me:$LINENO: result: none needed" >&5
2933 echo "${ECHO_T}none needed" >&6 ;;
2935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2937 CC="$CC $ac_cv_prog_cc_stdc" ;;
2940 # Some people use a C++ compiler to compile C. Since we use `exit',
2941 # in C++ we need to declare it. In case someone uses the same compiler
2942 # for both compiling C and C++ we need to have the C++ compiler decide
2943 # the declaration of exit, since it's the most demanding environment.
2944 cat >conftest.$ac_ext <<_ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 for ac_declaration in \
2972 'extern "C" void std::exit (int) throw (); using std::exit;' \
2973 'extern "C" void std::exit (int); using std::exit;' \
2974 'extern "C" void exit (int) throw ();' \
2975 'extern "C" void exit (int);' \
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
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
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3042 grep -v '^ *+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 if test -n "$ac_declaration"; then
3069 echo '#ifdef __cplusplus' >>confdefs.h
3070 echo $ac_declaration >>confdefs.h
3071 echo '#endif' >>confdefs.h
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 depcc="$CC" am_compiler_list=
3088 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3094 # We make a subdir and do the tests there. Otherwise we can end up
3095 # making bogus files that we don't know about and never remove. For
3096 # instance it was reported that on HP-UX the gcc test will end up
3097 # making a dummy file named `D' -- because `-MD' means `put the output
3100 # Copy depcomp to subdir because otherwise we won't find it if we're
3101 # using a relative directory.
3102 cp "$am_depcomp" conftest.dir
3104 # We will build objects and dependencies in a subdirectory because
3105 # it helps to detect inapplicable dependency modes. For instance
3106 # both Tru64's cc and ICC support -MD to output dependencies as a
3107 # side effect of compilation, but ICC will put the dependencies in
3108 # the current directory while Tru64 will put them in the object
3112 am_cv_CC_dependencies_compiler_type=none
3113 if test "$am_compiler_list" = ""; then
3114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3116 for depmode in $am_compiler_list; do
3117 # Setup a source with many dependencies, because some compilers
3118 # like to wrap large dependency lists on column 80 (with \), and
3119 # we should not choose a depcomp mode which is confused by this.
3121 # We need to recreate these files for each test, as the compiler may
3122 # overwrite some of them when testing with obscure command lines.
3123 # This happens at least with the AIX C compiler.
3125 for i in 1 2 3 4 5 6; do
3126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3133 # after this tag, mechanisms are not by side-effect, so they'll
3134 # only be used when explicitly requested
3135 if test "x$enable_dependency_tracking" = xyes; then
3143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144 # mode. It turns out that the SunPro C++ compiler does not properly
3145 # handle `-M -o', and we need to detect this.
3146 if depmode=$depmode \
3147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150 >/dev/null 2>conftest.err &&
3151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154 # icc doesn't choke on unknown options, it will just issue warnings
3155 # (even with -Werror). So we grep stderr for any message
3156 # that says an option was ignored.
3157 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3158 am_cv_CC_dependencies_compiler_type=$depmode
3167 am_cv_CC_dependencies_compiler_type=none
3171 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3172 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3178 test "x$enable_dependency_tracking" != xno \
3179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3181 am__fastdepCC_FALSE='#'
3183 am__fastdepCC_TRUE='#'
3184 am__fastdepCC_FALSE=
3188 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3189 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3190 if test "${lt_cv_path_SED+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 # Loop through the user's path and test for sed and gsed.
3194 # Then use that list of sed's as ones to test for truncation.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for lt_ac_prog in sed gsed; do
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3203 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3211 # along with /bin/sed that truncates output.
3212 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3213 test ! -f $lt_ac_sed && break
3214 cat /dev/null > conftest.in
3216 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3217 # Check for GNU sed and select it if it is found.
3218 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3219 lt_cv_path_SED=$lt_ac_sed
3223 cat conftest.in conftest.in >conftest.tmp
3224 mv conftest.tmp conftest.in
3225 cp conftest.in conftest.nl
3227 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3228 cmp -s conftest.out conftest.nl || break
3229 # 10000 chars as input seems more than enough
3230 test $lt_ac_count -gt 10 && break
3231 lt_ac_count=`expr $lt_ac_count + 1`
3232 if test $lt_ac_count -gt $lt_ac_max; then
3233 lt_ac_max=$lt_ac_count
3234 lt_cv_path_SED=$lt_ac_sed
3242 echo "$as_me:$LINENO: result: $SED" >&5
3243 echo "${ECHO_T}$SED" >&6
3245 echo "$as_me:$LINENO: checking for egrep" >&5
3246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3247 if test "${ac_cv_prog_egrep+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3251 then ac_cv_prog_egrep='grep -E'
3252 else ac_cv_prog_egrep='egrep'
3255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3257 EGREP=$ac_cv_prog_egrep
3261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3262 if test "${with_gnu_ld+set}" = set; then
3263 withval="$with_gnu_ld"
3264 test "$withval" = no || with_gnu_ld=yes
3269 if test "$GCC" = yes; then
3270 # Check if gcc -print-prog-name=ld gives a path.
3271 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3275 # gcc leaves a trailing carriage return which upsets mingw
3276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3281 # Accept absolute paths.
3283 re_direlt='/[^/][^/]*/\.\./'
3284 # Canonicalize the pathname of ld
3285 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3287 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3289 test -z "$LD" && LD="$ac_prog"
3292 # If it fails, then pretend we aren't using GCC.
3296 # If it is relative, then search for the first ld in PATH.
3300 elif test "$with_gnu_ld" = yes; then
3301 echo "$as_me:$LINENO: checking for GNU ld" >&5
3302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3307 if test "${lt_cv_path_LD+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 if test -z "$LD"; then
3311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3312 for ac_dir in $PATH; do
3314 test -z "$ac_dir" && ac_dir=.
3315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3316 lt_cv_path_LD="$ac_dir/$ac_prog"
3317 # Check to see if the program is GNU ld. I'd rather use --version,
3318 # but apparently some GNU ld's only accept -v.
3319 # Break only if it was the GNU/non-GNU ld that we prefer.
3320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3321 *GNU* | *'with BFD'*)
3322 test "$with_gnu_ld" != no && break
3325 test "$with_gnu_ld" != yes && break
3332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3337 if test -n "$LD"; then
3338 echo "$as_me:$LINENO: result: $LD" >&5
3339 echo "${ECHO_T}$LD" >&6
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3346 { (exit 1); exit 1; }; }
3347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3353 case `$LD -v 2>&1 </dev/null` in
3354 *GNU* | *'with BFD'*)
3355 lt_cv_prog_gnu_ld=yes
3358 lt_cv_prog_gnu_ld=no
3362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3364 with_gnu_ld=$lt_cv_prog_gnu_ld
3367 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3368 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3369 if test "${lt_cv_ld_reload_flag+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 lt_cv_ld_reload_flag='-r'
3374 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3375 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3376 reload_flag=$lt_cv_ld_reload_flag
3377 case $reload_flag in
3379 *) reload_flag=" $reload_flag" ;;
3381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3383 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385 if test "${lt_cv_path_NM+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$NM"; then
3389 # Let the user override the test.
3392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3393 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3395 test -z "$ac_dir" && ac_dir=.
3396 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3397 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3398 # Check to see if the nm accepts a BSD-compat flag.
3399 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3400 # nm: unknown option "B" ignored
3401 # Tru64's nm complains that /dev/null is an invalid object file
3402 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3403 */dev/null* | *'Invalid file or object type'*)
3404 lt_cv_path_NM="$tmp_nm -B"
3408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3410 lt_cv_path_NM="$tmp_nm -p"
3414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3415 continue # so that we can try to find one that supports BSD flags
3422 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3425 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3426 echo "${ECHO_T}$lt_cv_path_NM" >&6
3429 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3430 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3432 if test "$LN_S" = "ln -s"; then
3433 echo "$as_me:$LINENO: result: yes" >&5
3434 echo "${ECHO_T}yes" >&6
3436 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3437 echo "${ECHO_T}no, using $LN_S" >&6
3440 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3441 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3442 if test "${lt_cv_deplibs_check_method+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 lt_cv_file_magic_cmd='$MAGIC_CMD'
3446 lt_cv_file_magic_test_file=
3447 lt_cv_deplibs_check_method='unknown'
3448 # Need to set the preceding variable on all platforms that support
3449 # interlibrary dependencies.
3450 # 'none' -- dependencies not supported.
3451 # `unknown' -- same as none, but documents that we really don't know.
3452 # 'pass_all' -- all dependencies passed with no checks.
3453 # 'test_compile' -- check by making test program.
3454 # 'file_magic [[regex]]' -- check by looking for files in library path
3455 # which responds to the $file_magic_cmd with a given extended regex.
3456 # If you have `file' or equivalent on your system and you're not sure
3457 # whether `pass_all' will *always* work, you probably want this one.
3461 lt_cv_deplibs_check_method=pass_all
3465 lt_cv_deplibs_check_method=pass_all
3469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3470 lt_cv_file_magic_cmd='/usr/bin/file -L'
3471 lt_cv_file_magic_test_file=/shlib/libc.so
3475 # func_win32_libid is a shell function defined in ltmain.sh
3476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3477 lt_cv_file_magic_cmd='func_win32_libid'
3481 # Base MSYS/MinGW do not provide the 'file' command needed by
3482 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3483 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3484 lt_cv_file_magic_cmd='$OBJDUMP -f'
3487 darwin* | rhapsody*)
3488 lt_cv_deplibs_check_method=pass_all
3491 freebsd* | kfreebsd*-gnu)
3492 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3495 # Not sure whether the presence of OpenBSD here was a mistake.
3496 # Let's accept both of them until this is cleared up.
3497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3498 lt_cv_file_magic_cmd=/usr/bin/file
3499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3503 lt_cv_deplibs_check_method=pass_all
3508 lt_cv_deplibs_check_method=pass_all
3511 hpux10.20* | hpux11*)
3512 lt_cv_file_magic_cmd=/usr/bin/file
3515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3519 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]'
3520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3529 irix5* | irix6* | nonstopux*)
3531 *-32|*"-32 ") libmagic=32-bit;;
3532 *-n32|*"-n32 ") libmagic=N32;;
3533 *-64|*"-64 ") libmagic=64-bit;;
3534 *) libmagic=never-match;;
3536 lt_cv_deplibs_check_method=pass_all
3539 # This must be Linux ELF.
3541 lt_cv_deplibs_check_method=pass_all
3544 netbsd* | knetbsd*-gnu)
3545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3554 lt_cv_file_magic_cmd=/usr/bin/file
3555 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3559 lt_cv_deplibs_check_method=unknown
3563 lt_cv_file_magic_cmd=/usr/bin/file
3564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3568 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3572 osf3* | osf4* | osf5*)
3573 lt_cv_deplibs_check_method=pass_all
3577 lt_cv_deplibs_check_method=pass_all
3581 lt_cv_deplibs_check_method=pass_all
3584 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3585 case $host_vendor in
3587 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]'
3588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3591 lt_cv_deplibs_check_method=pass_all
3594 lt_cv_file_magic_cmd='/bin/file'
3595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3598 lt_cv_file_magic_cmd='/bin/file'
3599 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3600 lt_cv_file_magic_test_file=/lib/libc.so
3603 lt_cv_deplibs_check_method=pass_all
3608 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3609 lt_cv_deplibs_check_method=pass_all
3614 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3615 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3616 file_magic_cmd=$lt_cv_file_magic_cmd
3617 deplibs_check_method=$lt_cv_deplibs_check_method
3618 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3623 # If no C compiler was specified, use CC.
3626 # Allow CC to be a program name with arguments.
3630 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3631 if test "${enable_libtool_lock+set}" = set; then
3632 enableval="$enable_libtool_lock"
3635 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3637 # Some flags need to be propagated to the compiler or linker for good
3641 # Find out which ABI we are using.
3642 echo 'int i;' > conftest.$ac_ext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; then
3648 case `/usr/bin/file conftest.$ac_objext` in
3660 # Find out which ABI we are using.
3661 echo '#line 3661 "configure"' > conftest.$ac_ext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; then
3667 if test "$lt_cv_prog_gnu_ld" = yes; then
3668 case `/usr/bin/file conftest.$ac_objext` in
3670 LD="${LD-ld} -melf32bsmip"
3673 LD="${LD-ld} -melf32bmipn32"
3676 LD="${LD-ld} -melf64bmip"
3680 case `/usr/bin/file conftest.$ac_objext` in
3696 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3697 # Find out which ABI we are using.
3698 echo 'int i;' > conftest.$ac_ext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 case "`/usr/bin/file conftest.o`" in
3708 LD="${LD-ld} -m elf_i386"
3710 ppc64-*linux*|powerpc64-*linux*)
3711 LD="${LD-ld} -m elf32ppclinux"
3714 LD="${LD-ld} -m elf_s390"
3717 LD="${LD-ld} -m elf32_sparc"
3724 LD="${LD-ld} -m elf_x86_64"
3726 ppc*-*linux*|powerpc*-*linux*)
3727 LD="${LD-ld} -m elf64ppc"
3730 LD="${LD-ld} -m elf64_s390"
3733 LD="${LD-ld} -m elf64_sparc"
3743 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3744 SAVE_CFLAGS="$CFLAGS"
3745 CFLAGS="$CFLAGS -belf"
3746 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3747 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3748 if test "${lt_cv_cc_needs_belf+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3772 rm -f conftest.$ac_objext conftest$ac_exeext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774 (eval $ac_link) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 lt_cv_cc_needs_belf=yes
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 lt_cv_cc_needs_belf=no
3800 rm -f conftest.err conftest.$ac_objext \
3801 conftest$ac_exeext conftest.$ac_ext
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3810 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3811 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3813 CFLAGS="$SAVE_CFLAGS"
3819 need_locks="$enable_libtool_lock"
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3828 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3833 if test -z "$CPP"; then
3834 if test "${ac_cv_prog_CPP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 # Double quotes because CPP needs to be expanded
3838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3856 # include <limits.h>
3858 # include <assert.h>
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null; then
3870 if test -s conftest.err; then
3871 ac_cpp_err=$ac_c_preproc_warn_flag
3872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879 if test -z "$ac_cpp_err"; then
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Broken: fails on valid input.
3888 rm -f conftest.err conftest.$ac_ext
3890 # OK, works on sane cases. Now check whether non-existent headers
3891 # can be detected and how.
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <ac_nonexistent.h>
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev/null; then
3908 if test -s conftest.err; then
3909 ac_cpp_err=$ac_c_preproc_warn_flag
3910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3917 if test -z "$ac_cpp_err"; then
3918 # Broken: success on invalid input.
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Passes both tests.
3928 rm -f conftest.err conftest.$ac_ext
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then
3945 echo "$as_me:$LINENO: result: $CPP" >&5
3946 echo "${ECHO_T}$CPP" >&6
3948 for ac_c_preproc_warn_flag in '' yes
3950 # Use a header file that comes with gcc, so configuring glibc
3951 # with a fresh cross-compiler works.
3952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 # <limits.h> exists even on freestanding compilers.
3954 # On the NeXT, cc -E runs the code through the compiler's parser,
3955 # not just through cpp. "Syntax error" is here to catch this case.
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 # include <limits.h>
3965 # include <assert.h>
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3972 grep -v '^ *+' conftest.er1 >conftest.err
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null; then
3977 if test -s conftest.err; then
3978 ac_cpp_err=$ac_c_preproc_warn_flag
3979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3986 if test -z "$ac_cpp_err"; then
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether non-existent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } >/dev/null; then
4015 if test -s conftest.err; then
4016 ac_cpp_err=$ac_c_preproc_warn_flag
4017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4024 if test -z "$ac_cpp_err"; then
4025 # Broken: success on invalid input.
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Passes both tests.
4035 rm -f conftest.err conftest.$ac_ext
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4043 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&2;}
4047 { (exit 1); exit 1; }; }
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059 if test "${ac_cv_header_stdc+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4081 rm -f conftest.$ac_objext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_header_stdc=yes
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_header_stdc=no
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 if test $ac_cv_header_stdc = yes; then
4112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123 $EGREP "memchr" >/dev/null 2>&1; then
4126 ac_cv_header_stdc=no
4132 if test $ac_cv_header_stdc = yes; then
4133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144 $EGREP "free" >/dev/null 2>&1; then
4147 ac_cv_header_stdc=no
4153 if test $ac_cv_header_stdc = yes; then
4154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4155 if test "$cross_compiling" = yes; then
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4169 # define ISLOWER(c) \
4170 (('a' <= (c) && (c) <= 'i') \
4171 || ('j' <= (c) && (c) <= 'r') \
4172 || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 for (i = 0; i < 256; i++)
4182 if (XOR (islower (i), ISLOWER (i))
4183 || toupper (i) != TOUPPER (i))
4188 rm -f conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4201 echo "$as_me: program exited with status $ac_status" >&5
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_header_stdc=no
4208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4214 if test $ac_cv_header_stdc = yes; then
4216 cat >>confdefs.h <<\_ACEOF
4217 #define STDC_HEADERS 1
4222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4233 inttypes.h stdint.h unistd.h
4235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 echo "$as_me:$LINENO: checking for $ac_header" >&5
4237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4249 #include <$ac_header>
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 eval "$as_ac_Header=yes"
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 eval "$as_ac_Header=no"
4279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284 cat >>confdefs.h <<_ACEOF
4285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 for ac_header in dlfcn.h
4296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4298 echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 # Is the header compilable?
4307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4316 #include <$ac_header>
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_header_compiler=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_header_compiler=no
4346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4348 echo "${ECHO_T}$ac_header_compiler" >&6
4350 # Is the header present?
4351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <$ac_header>
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } >/dev/null; then
4369 if test -s conftest.err; then
4370 ac_cpp_err=$ac_c_preproc_warn_flag
4371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4378 if test -z "$ac_cpp_err"; then
4379 ac_header_preproc=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 ac_header_preproc=no
4386 rm -f conftest.err conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4388 echo "${ECHO_T}$ac_header_preproc" >&6
4390 # So? What about this header?
4391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4397 ac_header_preproc=yes
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4414 ## ----------------------------------------- ##
4415 ## Report this to martin.quinson@ens-lyon.fr ##
4416 ## ----------------------------------------- ##
4419 sed "s/^/$as_me: WARNING: /" >&2
4422 echo "$as_me:$LINENO: checking for $ac_header" >&5
4423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 eval "$as_ac_Header=\$ac_header_preproc"
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 ac_cpp='$CXXCPP $CPPFLAGS'
4444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_CXX+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 if test -n "$CXX"; then
4458 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 if test -n "$CXX"; then
4478 echo "$as_me:$LINENO: result: $CXX" >&5
4479 echo "${ECHO_T}$CXX" >&6
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4485 test -n "$CXX" && break
4488 if test -z "$CXX"; then
4490 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 if test -n "$ac_ct_CXX"; then
4500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_ac_ct_CXX="$ac_prog"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4521 echo "${ECHO_T}$ac_ct_CXX" >&6
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4527 test -n "$ac_ct_CXX" && break
4529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4535 # Provide some information about the compiler.
4536 echo "$as_me:$LINENO:" \
4537 "checking for C++ compiler version" >&5
4538 ac_compiler=`set X $ac_compile; echo $2`
4539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4540 (eval $ac_compiler --version </dev/null >&5) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4545 (eval $ac_compiler -v </dev/null >&5) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4550 (eval $ac_compiler -V </dev/null >&5) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }
4555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4612 GXX=`test $ac_compiler_gnu = yes && echo yes`
4613 ac_test_CXXFLAGS=${CXXFLAGS+set}
4614 ac_save_CXXFLAGS=$CXXFLAGS
4616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4618 if test "${ac_cv_prog_cxx_g+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_prog_cxx_g=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4668 if test "$ac_test_CXXFLAGS" = set; then
4669 CXXFLAGS=$ac_save_CXXFLAGS
4670 elif test $ac_cv_prog_cxx_g = yes; then
4671 if test "$GXX" = yes; then
4677 if test "$GXX" = yes; then
4683 for ac_declaration in \
4685 'extern "C" void std::exit (int) throw (); using std::exit;' \
4686 'extern "C" void std::exit (int); using std::exit;' \
4687 'extern "C" void exit (int) throw ();' \
4688 'extern "C" void exit (int);' \
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>conftest.er1
4711 grep -v '^ *+' conftest.er1 >conftest.err
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 if test -n "$ac_declaration"; then
4782 echo '#ifdef __cplusplus' >>confdefs.h
4783 echo $ac_declaration >>confdefs.h
4784 echo '#endif' >>confdefs.h
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4793 depcc="$CXX" am_compiler_list=
4795 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4797 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4801 # We make a subdir and do the tests there. Otherwise we can end up
4802 # making bogus files that we don't know about and never remove. For
4803 # instance it was reported that on HP-UX the gcc test will end up
4804 # making a dummy file named `D' -- because `-MD' means `put the output
4807 # Copy depcomp to subdir because otherwise we won't find it if we're
4808 # using a relative directory.
4809 cp "$am_depcomp" conftest.dir
4811 # We will build objects and dependencies in a subdirectory because
4812 # it helps to detect inapplicable dependency modes. For instance
4813 # both Tru64's cc and ICC support -MD to output dependencies as a
4814 # side effect of compilation, but ICC will put the dependencies in
4815 # the current directory while Tru64 will put them in the object
4819 am_cv_CXX_dependencies_compiler_type=none
4820 if test "$am_compiler_list" = ""; then
4821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4823 for depmode in $am_compiler_list; do
4824 # Setup a source with many dependencies, because some compilers
4825 # like to wrap large dependency lists on column 80 (with \), and
4826 # we should not choose a depcomp mode which is confused by this.
4828 # We need to recreate these files for each test, as the compiler may
4829 # overwrite some of them when testing with obscure command lines.
4830 # This happens at least with the AIX C compiler.
4832 for i in 1 2 3 4 5 6; do
4833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4840 # after this tag, mechanisms are not by side-effect, so they'll
4841 # only be used when explicitly requested
4842 if test "x$enable_dependency_tracking" = xyes; then
4850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4851 # mode. It turns out that the SunPro C++ compiler does not properly
4852 # handle `-M -o', and we need to detect this.
4853 if depmode=$depmode \
4854 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4856 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4857 >/dev/null 2>conftest.err &&
4858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4859 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4861 # icc doesn't choke on unknown options, it will just issue warnings
4862 # (even with -Werror). So we grep stderr for any message
4863 # that says an option was ignored.
4864 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4865 am_cv_CXX_dependencies_compiler_type=$depmode
4874 am_cv_CXX_dependencies_compiler_type=none
4878 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4879 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4880 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4885 test "x$enable_dependency_tracking" != xno \
4886 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4887 am__fastdepCXX_TRUE=
4888 am__fastdepCXX_FALSE='#'
4890 am__fastdepCXX_TRUE='#'
4891 am__fastdepCXX_FALSE=
4896 ac_cpp='$CXXCPP $CPPFLAGS'
4897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4902 if test -z "$CXXCPP"; then
4903 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 # Double quotes because CXXCPP needs to be expanded
4907 for CXXCPP in "$CXX -E" "/lib/cpp"
4910 for ac_cxx_preproc_warn_flag in '' yes
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 # include <limits.h>
4927 # include <assert.h>
4931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } >/dev/null; then
4939 if test -s conftest.err; then
4940 ac_cpp_err=$ac_cxx_preproc_warn_flag
4941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4948 if test -z "$ac_cpp_err"; then
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 # Broken: fails on valid input.
4957 rm -f conftest.err conftest.$ac_ext
4959 # OK, works on sane cases. Now check whether non-existent headers
4960 # can be detected and how.
4961 cat >conftest.$ac_ext <<_ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 #include <ac_nonexistent.h>
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
4979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986 if test -z "$ac_cpp_err"; then
4987 # Broken: success on invalid input.
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 # Passes both tests.
4997 rm -f conftest.err conftest.$ac_ext
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then
5007 ac_cv_prog_CXXCPP=$CXXCPP
5010 CXXCPP=$ac_cv_prog_CXXCPP
5012 ac_cv_prog_CXXCPP=$CXXCPP
5014 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5015 echo "${ECHO_T}$CXXCPP" >&6
5017 for ac_cxx_preproc_warn_flag in '' yes
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 # include <limits.h>
5034 # include <assert.h>
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null; then
5046 if test -s conftest.err; then
5047 ac_cpp_err=$ac_cxx_preproc_warn_flag
5048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5055 if test -z "$ac_cpp_err"; then
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 # Broken: fails on valid input.
5064 rm -f conftest.err conftest.$ac_ext
5066 # OK, works on sane cases. Now check whether non-existent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <ac_nonexistent.h>
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null; then
5084 if test -s conftest.err; then
5085 ac_cpp_err=$ac_cxx_preproc_warn_flag
5086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093 if test -z "$ac_cpp_err"; then
5094 # Broken: success on invalid input.
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 # Passes both tests.
5104 rm -f conftest.err conftest.$ac_ext
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then
5112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113 See \`config.log' for more details." >&5
5114 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115 See \`config.log' for more details." >&2;}
5116 { (exit 1); exit 1; }; }
5120 ac_cpp='$CXXCPP $CPPFLAGS'
5121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5130 if test -n "$ac_tool_prefix"; then
5131 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135 echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137 if test "${ac_cv_prog_F77+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 if test -n "$F77"; then
5141 ac_cv_prog_F77="$F77" # Let the user override the test.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 if test -n "$F77"; then
5161 echo "$as_me:$LINENO: result: $F77" >&5
5162 echo "${ECHO_T}$F77" >&6
5164 echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5168 test -n "$F77" && break
5171 if test -z "$F77"; then
5173 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5175 # Extract the first word of "$ac_prog", so it can be a program name with args.
5176 set dummy $ac_prog; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if test -n "$ac_ct_F77"; then
5183 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_F77="$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5202 if test -n "$ac_ct_F77"; then
5203 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5204 echo "${ECHO_T}$ac_ct_F77" >&6
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5210 test -n "$ac_ct_F77" && break
5217 # Provide some information about the compiler.
5218 echo "$as_me:5218:" \
5219 "checking for Fortran 77 compiler version" >&5
5220 ac_compiler=`set X $ac_compile; echo $2`
5221 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5222 (eval $ac_compiler --version </dev/null >&5) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5227 (eval $ac_compiler -v </dev/null >&5) 2>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5232 (eval $ac_compiler -V </dev/null >&5) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5238 # If we don't use `.F' as extension, the preprocessor is not run on the
5239 # input file. (Note that this only needs to work for GNU compilers.)
5242 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5243 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5244 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 cat >conftest.$ac_ext <<_ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5287 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5290 ac_test_FFLAGS=${FFLAGS+set}
5291 ac_save_FFLAGS=$FFLAGS
5293 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5295 if test "${ac_cv_prog_f77_g+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_prog_f77_g=yes
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5337 if test "$ac_test_FFLAGS" = set; then
5338 FFLAGS=$ac_save_FFLAGS
5339 elif test $ac_cv_prog_f77_g = yes; then
5340 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5346 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5353 G77=`test $ac_compiler_gnu = yes && echo yes`
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5364 # find the maximum length of command line arguments
5365 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 # On DJGPP, this test can blow up pretty badly due to problems in libc
5376 # (any single argument exceeding 2000 bytes causes a buffer overrun
5377 # during glob expansion). Even if it were fixed, the result of this
5378 # check would be larger than it should be.
5379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5383 # Under GNU Hurd, this test is not required because there is
5384 # no limit to the length of command line arguments.
5385 # Libtool will interpret -1 as no limit whatsoever
5386 lt_cv_sys_max_cmd_len=-1;
5390 # On Win9x/ME, this test blows up -- it succeeds, but takes
5391 # about 5 minutes as the teststring grows exponentially.
5392 # Worse, since 9x/ME are not pre-emptively multitasking,
5393 # you end up with a "frozen" computer, even though with patience
5394 # the test eventually succeeds (with a max line length of 256k).
5395 # Instead, let's just punt: use the minimum linelength reported by
5396 # all of the supported platforms: 8192 (on NT/2K/XP).
5397 lt_cv_sys_max_cmd_len=8192;
5401 # On AmigaOS with pdksh, this test takes hours, literally.
5402 # So we just punt and use a minimum line length of 8192.
5403 lt_cv_sys_max_cmd_len=8192;
5407 # If test is not a shell built-in, we'll probably end up computing a
5408 # maximum length that is only half of the actual maximum length, but
5410 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5411 = "XX$teststring") >/dev/null 2>&1 &&
5412 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5413 lt_cv_sys_max_cmd_len=$new_result &&
5414 test $i != 17 # 1/2 MB should be enough
5417 teststring=$teststring$teststring
5420 # Add a significant safety factor because C++ compilers can tack on massive
5421 # amounts of additional arguments before passing them to the linker.
5422 # It appears as though 1/2 is a usable value.
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429 if test -n $lt_cv_sys_max_cmd_len ; then
5430 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5431 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5433 echo "$as_me:$LINENO: result: none" >&5
5434 echo "${ECHO_T}none" >&6
5440 # Check for command to grab the raw symbol name followed by C symbol from nm.
5441 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 # These are sane defaults that work on at least a few old systems.
5448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5450 # Character class describing NM global symbol codes.
5451 symcode='[BCDEGRST]'
5453 # Regexp to match symbols that can be accessed directly from C.
5454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5456 # Transform the above into a raw symbol and a C symbol.
5457 symxfrm='\1 \2\3 \3'
5459 # Transform an extracted symbol line into a proper C declaration
5460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5462 # Transform an extracted symbol line into symbol name and symbol address
5463 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'"
5465 # Define system-specific variables.
5470 cygwin* | mingw* | pw32*)
5471 symcode='[ABCDGISTW]'
5473 hpux*) # Its linker distinguishes data from code symbols
5474 if test "$host_cpu" = ia64; then
5475 symcode='[ABCDEGRST]'
5477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5478 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'"
5481 symcode='[BCDEGRST]'
5484 symcode='[BCDEGQRST]'
5494 # Handle CRLF in mingw tool chain
5498 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5502 # If we're using GNU nm, then use its standard symbol codes.
5503 case `$NM -V 2>&1` in
5504 *GNU* | *'with BFD'*)
5505 symcode='[ABCDGIRSTW]' ;;
5508 # Try without a prefix undercore, then with it.
5509 for ac_symprfx in "" "_"; do
5511 # Write the raw and C identifiers.
5512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5514 # Check to see that the pipe works correctly.
5518 cat > conftest.$ac_ext <<EOF
5523 void nm_test_func(){}
5527 int main(){nm_test_var='a';nm_test_func();return(0);}
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; then
5535 # Now try to grab the symbols.
5537 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5538 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && test -s "$nlist"; then
5542 # Try sorting and uniquifying the output.
5543 if sort "$nlist" | uniq > "$nlist"T; then
5544 mv -f "$nlist"T "$nlist"
5549 # Make sure that we snagged all the symbols we need.
5550 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5551 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5552 cat <<EOF > conftest.$ac_ext
5558 # Now generate the symbol file.
5559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5561 cat <<EOF >> conftest.$ac_ext
5562 #if defined (__STDC__) && __STDC__
5563 # define lt_ptr_t void *
5565 # define lt_ptr_t char *
5569 /* The mapping between symbol names and symbols. */
5574 lt_preloaded_symbols[] =
5577 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5578 cat <<\EOF >> conftest.$ac_ext
5586 # Now try linking the two files.
5587 mv conftest.$ac_objext conftstm.$ac_objext
5588 lt_save_LIBS="$LIBS"
5589 lt_save_CFLAGS="$CFLAGS"
5590 LIBS="conftstm.$ac_objext"
5591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5599 LIBS="$lt_save_LIBS"
5600 CFLAGS="$lt_save_CFLAGS"
5602 echo "cannot find nm_test_func in $nlist" >&5
5605 echo "cannot find nm_test_var in $nlist" >&5
5608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5611 echo "$progname: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5614 rm -f conftest* conftst*
5616 # Do not use the global_symbol_pipe unless it works.
5617 if test "$pipe_works" = yes; then
5620 lt_cv_sys_global_symbol_pipe=
5626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5627 lt_cv_sys_global_symbol_to_cdecl=
5629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5630 echo "$as_me:$LINENO: result: failed" >&5
5631 echo "${ECHO_T}failed" >&6
5633 echo "$as_me:$LINENO: result: ok" >&5
5634 echo "${ECHO_T}ok" >&6
5637 echo "$as_me:$LINENO: checking for objdir" >&5
5638 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5639 if test "${lt_cv_objdir+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 rm -f .libs 2>/dev/null
5643 mkdir .libs 2>/dev/null
5644 if test -d .libs; then
5647 # MS-DOS does not allow filenames that begin with a dot.
5650 rmdir .libs 2>/dev/null
5652 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5653 echo "${ECHO_T}$lt_cv_objdir" >&6
5654 objdir=$lt_cv_objdir
5662 # AIX sometimes has problems with the GCC collect2 program. For some
5663 # reason, if we set the COLLECT_NAMES environment variable, the problems
5664 # vanish in a puff of smoke.
5665 if test "X${COLLECT_NAMES+set}" != Xset; then
5667 export COLLECT_NAMES
5672 # Sed substitution that helps us do robust quoting. It backslashifies
5673 # metacharacters that are still active within double-quoted strings.
5674 Xsed='sed -e s/^X//'
5675 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5677 # Same as above, but do not quote variable references.
5678 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5680 # Sed substitution to delay expansion of an escaped shell variable in a
5681 # double_quote_subst'ed string.
5682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5684 # Sed substitution to avoid accidental globbing in evaled expressions
5685 no_glob_subst='s/\*/\\\*/g'
5691 default_ofile=libtool
5692 can_build_shared=yes
5694 # All known linkers require a `.a' archive for static linking (except M$VC,
5695 # which needs '.lib').
5697 ltmain="$ac_aux_dir/ltmain.sh"
5698 ofile="$default_ofile"
5699 with_gnu_ld="$lt_cv_prog_gnu_ld"
5701 if test -n "$ac_tool_prefix"; then
5702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}ar; ac_word=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_AR+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$AR"; then
5710 ac_cv_prog_AR="$AR" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_AR="${ac_tool_prefix}ar"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 if test -n "$AR"; then
5730 echo "$as_me:$LINENO: result: $AR" >&5
5731 echo "${ECHO_T}$AR" >&6
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5738 if test -z "$ac_cv_prog_AR"; then
5740 # Extract the first word of "ar", so it can be a program name with args.
5741 set dummy ar; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$ac_ct_AR"; then
5748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_AR="ar"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5768 if test -n "$ac_ct_AR"; then
5769 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5770 echo "${ECHO_T}$ac_ct_AR" >&6
5772 echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 if test "${ac_cv_prog_RANLIB+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 if test -n "$RANLIB"; then
5790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 RANLIB=$ac_cv_prog_RANLIB
5809 if test -n "$RANLIB"; then
5810 echo "$as_me:$LINENO: result: $RANLIB" >&5
5811 echo "${ECHO_T}$RANLIB" >&6
5813 echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5818 if test -z "$ac_cv_prog_RANLIB"; then
5819 ac_ct_RANLIB=$RANLIB
5820 # Extract the first word of "ranlib", so it can be a program name with args.
5821 set dummy ranlib; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 if test -n "$ac_ct_RANLIB"; then
5828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_prog_ac_ct_RANLIB="ranlib"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5848 if test -n "$ac_ct_RANLIB"; then
5849 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5852 echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5856 RANLIB=$ac_ct_RANLIB
5858 RANLIB="$ac_cv_prog_RANLIB"
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}strip; ac_word=$2
5864 echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5866 if test "${ac_cv_prog_STRIP+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$STRIP"; then
5870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 STRIP=$ac_cv_prog_STRIP
5889 if test -n "$STRIP"; then
5890 echo "$as_me:$LINENO: result: $STRIP" >&5
5891 echo "${ECHO_T}$STRIP" >&6
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5898 if test -z "$ac_cv_prog_STRIP"; then
5900 # Extract the first word of "strip", so it can be a program name with args.
5901 set dummy strip; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 if test -n "$ac_ct_STRIP"; then
5908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_ac_ct_STRIP="strip"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5928 if test -n "$ac_ct_STRIP"; then
5929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5930 echo "${ECHO_T}$ac_ct_STRIP" >&6
5932 echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5938 STRIP="$ac_cv_prog_STRIP"
5943 old_CFLAGS="$CFLAGS"
5945 # Set sane defaults for various variables
5946 test -z "$AR" && AR=ar
5947 test -z "$AR_FLAGS" && AR_FLAGS=cru
5948 test -z "$AS" && AS=as
5949 test -z "$CC" && CC=cc
5950 test -z "$LTCC" && LTCC=$CC
5951 test -z "$DLLTOOL" && DLLTOOL=dlltool
5952 test -z "$LD" && LD=ld
5953 test -z "$LN_S" && LN_S="ln -s"
5954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5955 test -z "$NM" && NM=nm
5956 test -z "$SED" && SED=sed
5957 test -z "$OBJDUMP" && OBJDUMP=objdump
5958 test -z "$RANLIB" && RANLIB=:
5959 test -z "$STRIP" && STRIP=:
5960 test -z "$ac_objext" && ac_objext=o
5962 # Determine commands to create old-style static archives.
5963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5964 old_postinstall_cmds='chmod 644 $oldlib'
5965 old_postuninstall_cmds=
5967 if test -n "$RANLIB"; then
5970 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5973 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5979 # Only perform the check for file, if the check method requires it
5980 case $deplibs_check_method in
5982 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5983 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5984 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5993 lt_save_MAGIC_CMD="$MAGIC_CMD"
5994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5996 for ac_dir in $ac_dummy; do
5998 test -z "$ac_dir" && ac_dir=.
5999 if test -f $ac_dir/${ac_tool_prefix}file; then
6000 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6001 if test -n "$file_magic_test_file"; then
6002 case $deplibs_check_method in
6004 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6007 $EGREP "$file_magic_regex" > /dev/null; then
6012 *** Warning: the command libtool uses to detect shared libraries,
6013 *** $file_magic_cmd, produces output that libtool cannot recognize.
6014 *** The result is that libtool may fail to recognize shared libraries
6015 *** as such. This will affect the creation of libtool libraries that
6016 *** depend on shared libraries, but programs linked with such libtool
6017 *** libraries will work regardless of this problem. Nevertheless, you
6018 *** may want to report the problem to your system manager and/or to
6019 *** bug-libtool@gnu.org
6029 MAGIC_CMD="$lt_save_MAGIC_CMD"
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if test -n "$MAGIC_CMD"; then
6036 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6037 echo "${ECHO_T}$MAGIC_CMD" >&6
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6043 if test -z "$lt_cv_path_MAGIC_CMD"; then
6044 if test -n "$ac_tool_prefix"; then
6045 echo "$as_me:$LINENO: checking for file" >&5
6046 echo $ECHO_N "checking for file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6055 lt_save_MAGIC_CMD="$MAGIC_CMD"
6056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058 for ac_dir in $ac_dummy; do
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/file; then
6062 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6063 if test -n "$file_magic_test_file"; then
6064 case $deplibs_check_method in
6066 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069 $EGREP "$file_magic_regex" > /dev/null; then
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such. This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem. Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6091 MAGIC_CMD="$lt_save_MAGIC_CMD"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6101 echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6117 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6118 if test "${enable_libtool_lock+set}" = set; then
6119 enableval="$enable_libtool_lock"
6122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6125 # Check whether --with-pic or --without-pic was given.
6126 if test "${with_pic+set}" = set; then
6132 test -z "$pic_mode" && pic_mode=default
6134 # Use C for the default configuration in the libtool script
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144 # Source file extension for C test sources.
6147 # Object file extension for compiled C test sources.
6151 # Code to be used in simple compile tests
6152 lt_simple_compile_test_code="int some_variable = 0;\n"
6154 # Code to be used in simple link tests
6155 lt_simple_link_test_code='int main(){return(0);}\n'
6158 # If no C compiler was specified, use CC.
6161 # Allow CC to be a program name with arguments.
6166 # Check for any special shared library compilation flags.
6169 if test "$GCC" = no; then
6172 lt_prog_cc_shlib='-belf'
6176 if test -n "$lt_prog_cc_shlib"; then
6177 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6178 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6179 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6181 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6182 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6183 lt_cv_prog_cc_can_build_shared=no
6189 # Check to make sure the static flag actually works.
6191 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6192 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6193 if test "${lt_prog_compiler_static_works+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 lt_prog_compiler_static_works=no
6197 save_LDFLAGS="$LDFLAGS"
6198 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6199 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6200 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6201 # The compiler can only warn and ignore the option if not recognized
6202 # So say no if there are warnings
6203 if test -s conftest.err; then
6204 # Append any errors to the config.log.
6205 cat conftest.err 1>&5
6207 lt_prog_compiler_static_works=yes
6211 LDFLAGS="$save_LDFLAGS"
6214 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6215 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6217 if test x"$lt_prog_compiler_static_works" = xyes; then
6220 lt_prog_compiler_static=
6226 lt_prog_compiler_no_builtin_flag=
6228 if test "$GCC" = yes; then
6229 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6232 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6233 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 lt_cv_prog_compiler_rtti_exceptions=no
6238 ac_outfile=conftest.$ac_objext
6239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6240 lt_compiler_flag="-fno-rtti -fno-exceptions"
6241 # Insert the option either (1) after the last *FLAGS variable, or
6242 # (2) before a word containing "conftest.", or (3) at the end.
6243 # Note that $ac_compile itself does not contain backslashes and begins
6244 # with a dollar sign (not a hyphen), so the echo should work correctly.
6245 # The option is referenced via a variable to avoid confusing sed.
6246 lt_compile=`echo "$ac_compile" | $SED \
6247 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6249 -e 's:$: $lt_compiler_flag:'`
6250 (eval echo "\"\$as_me:6250: $lt_compile\"" >&5)
6251 (eval "$lt_compile" 2>conftest.err)
6253 cat conftest.err >&5
6254 echo "$as_me:6254: \$? = $ac_status" >&5
6255 if (exit $ac_status) && test -s "$ac_outfile"; then
6256 # The compiler can only warn and ignore the option if not recognized
6257 # So say no if there are warnings
6258 if test ! -s conftest.err; then
6259 lt_cv_prog_compiler_rtti_exceptions=yes
6265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6266 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6276 lt_prog_compiler_wl=
6277 lt_prog_compiler_pic=
6278 lt_prog_compiler_static=
6280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6283 if test "$GCC" = yes; then
6284 lt_prog_compiler_wl='-Wl,'
6285 lt_prog_compiler_static='-static'
6289 # All AIX code is PIC.
6290 if test "$host_cpu" = ia64; then
6291 # AIX 5 now supports IA64 processor
6292 lt_prog_compiler_static='-Bstatic'
6297 # FIXME: we need at least 68020 code to build shared libraries, but
6298 # adding the `-m68020' flag to GCC prevents building anything better,
6300 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6303 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6304 # PIC is the default for these OSes.
6307 mingw* | pw32* | os2*)
6308 # This hack is so that the source file can tell whether it is being
6309 # built for inclusion in a dll (and should export symbols for example).
6310 lt_prog_compiler_pic='-DDLL_EXPORT'
6313 darwin* | rhapsody*)
6314 # PIC is the default on this platform
6315 # Common symbols not allowed in MH_DYLIB files
6316 lt_prog_compiler_pic='-fno-common'
6320 # Just because we use GCC doesn't mean we suddenly get shared libraries
6321 # on systems that don't support them.
6322 lt_prog_compiler_can_build_shared=no
6327 if test -d /usr/nec; then
6328 lt_prog_compiler_pic=-Kconform_pic
6333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6340 lt_prog_compiler_pic='-fPIC'
6346 lt_prog_compiler_pic='-fPIC'
6350 # PORTME Check for flag to pass linker flags through the system compiler.
6353 lt_prog_compiler_wl='-Wl,'
6354 if test "$host_cpu" = ia64; then
6355 # AIX 5 now supports IA64 processor
6356 lt_prog_compiler_static='-Bstatic'
6358 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6362 mingw* | pw32* | os2*)
6363 # This hack is so that the source file can tell whether it is being
6364 # built for inclusion in a dll (and should export symbols for example).
6365 lt_prog_compiler_pic='-DDLL_EXPORT'
6368 hpux9* | hpux10* | hpux11*)
6369 lt_prog_compiler_wl='-Wl,'
6370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6377 lt_prog_compiler_pic='+Z'
6380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6381 lt_prog_compiler_static='${wl}-a ${wl}archive'
6384 irix5* | irix6* | nonstopux*)
6385 lt_prog_compiler_wl='-Wl,'
6386 # PIC (with -KPIC) is the default.
6387 lt_prog_compiler_static='-non_shared'
6391 lt_prog_compiler_pic='-KPIC'
6392 lt_prog_compiler_static='-Bstatic'
6398 lt_prog_compiler_wl='-Wl,'
6399 lt_prog_compiler_pic='-KPIC'
6400 lt_prog_compiler_static='-static'
6403 lt_prog_compiler_wl='-Wl,'
6404 # All Alpha code is PIC.
6405 lt_prog_compiler_static='-non_shared'
6410 osf3* | osf4* | osf5*)
6411 lt_prog_compiler_wl='-Wl,'
6412 # All OSF/1 code is PIC.
6413 lt_prog_compiler_static='-non_shared'
6417 lt_prog_compiler_pic='-Kpic'
6418 lt_prog_compiler_static='-dn'
6422 lt_prog_compiler_wl='-Wl,'
6423 lt_prog_compiler_pic='-KPIC'
6424 lt_prog_compiler_static='-Bstatic'
6428 lt_prog_compiler_wl='-Qoption ld '
6429 lt_prog_compiler_pic='-PIC'
6430 lt_prog_compiler_static='-Bstatic'
6433 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6434 lt_prog_compiler_wl='-Wl,'
6435 lt_prog_compiler_pic='-KPIC'
6436 lt_prog_compiler_static='-Bstatic'
6440 if test -d /usr/nec ;then
6441 lt_prog_compiler_pic='-Kconform_pic'
6442 lt_prog_compiler_static='-Bstatic'
6447 lt_prog_compiler_pic='-pic'
6448 lt_prog_compiler_static='-Bstatic'
6452 lt_prog_compiler_can_build_shared=no
6457 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6458 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6461 # Check to make sure the PIC flag actually works.
6463 if test -n "$lt_prog_compiler_pic"; then
6465 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6467 if test "${lt_prog_compiler_pic_works+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 lt_prog_compiler_pic_works=no
6471 ac_outfile=conftest.$ac_objext
6472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6473 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6474 # Insert the option either (1) after the last *FLAGS variable, or
6475 # (2) before a word containing "conftest.", or (3) at the end.
6476 # Note that $ac_compile itself does not contain backslashes and begins
6477 # with a dollar sign (not a hyphen), so the echo should work correctly.
6478 # The option is referenced via a variable to avoid confusing sed.
6479 lt_compile=`echo "$ac_compile" | $SED \
6480 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6482 -e 's:$: $lt_compiler_flag:'`
6483 (eval echo "\"\$as_me:6483: $lt_compile\"" >&5)
6484 (eval "$lt_compile" 2>conftest.err)
6486 cat conftest.err >&5
6487 echo "$as_me:6487: \$? = $ac_status" >&5
6488 if (exit $ac_status) && test -s "$ac_outfile"; then
6489 # The compiler can only warn and ignore the option if not recognized
6490 # So say no if there are warnings
6491 if test ! -s conftest.err; then
6492 lt_prog_compiler_pic_works=yes
6498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6499 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6501 if test x"$lt_prog_compiler_pic_works" = xyes; then
6502 case $lt_prog_compiler_pic in
6504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6507 lt_prog_compiler_pic=
6508 lt_prog_compiler_can_build_shared=no
6513 # For platforms which do not support PIC, -DPIC is meaningless:
6515 lt_prog_compiler_pic=
6518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6522 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 lt_cv_prog_compiler_c_o=no
6528 $rm -r conftest 2>/dev/null
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534 lt_compiler_flag="-o out/conftest2.$ac_objext"
6535 # Insert the option either (1) after the last *FLAGS variable, or
6536 # (2) before a word containing "conftest.", or (3) at the end.
6537 # Note that $ac_compile itself does not contain backslashes and begins
6538 # with a dollar sign (not a hyphen), so the echo should work correctly.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>out/conftest.err)
6546 cat out/conftest.err >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6550 # The compiler can only warn and ignore the option if not recognized
6551 # So say no if there are warnings
6552 if test ! -s out/conftest.err; then
6553 lt_cv_prog_compiler_c_o=yes
6558 # SGI C++ compiler will create directory out/ii_files/ for
6559 # template instantiation
6560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6561 $rm out/* && rmdir out
6567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6571 hard_links="nottested"
6572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6573 # do not overwrite the value of need_locks provided by the user
6574 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6580 ln conftest.a conftest.b 2>&5 || hard_links=no
6581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582 echo "$as_me:$LINENO: result: $hard_links" >&5
6583 echo "${ECHO_T}$hard_links" >&6
6584 if test "$hard_links" = no; then
6585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6597 allow_undefined_flag=
6598 enable_shared_with_static_runtimes=no
6600 archive_expsym_cmds=
6601 old_archive_From_new_cmds=
6602 old_archive_from_expsyms_cmds=
6603 export_dynamic_flag_spec=
6604 whole_archive_flag_spec=
6605 thread_safe_flag_spec=
6606 hardcode_libdir_flag_spec=
6607 hardcode_libdir_flag_spec_ld=
6608 hardcode_libdir_separator=
6611 hardcode_shlibpath_var=unsupported
6612 link_all_deplibs=unknown
6613 hardcode_automatic=no
6616 always_export_symbols=no
6617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6618 # include_expsyms should be a list of space-separated symbols to be *always*
6619 # included in the symbol list
6621 # exclude_expsyms can be an extended regexp of symbols to exclude
6622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6624 # as well as any symbol that contains `d'.
6625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6627 # platforms (ab)use it in PIC code, but their linkers get confused if
6628 # the symbol is explicitly referenced. Since portable code cannot
6629 # rely on this symbol name, it's probably fine to never include it in
6630 # preloaded symbol tables.
6631 extract_expsyms_cmds=
6634 cygwin* | mingw* | pw32*)
6635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6636 # When not using gcc, we currently assume that we are using
6637 # Microsoft Visual C++.
6638 if test "$GCC" != yes; then
6648 if test "$with_gnu_ld" = yes; then
6649 # If archive_cmds runs LD, not CC, wlarc should be empty
6652 # See if GNU ld supports shared libraries.
6654 aix3* | aix4* | aix5*)
6655 # On AIX/PPC, the GNU linker is very broken
6656 if test "$host_cpu" != ia64; then
6660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6661 *** to be unable to reliably create shared libraries on AIX.
6662 *** Therefore, libtool is disabling shared libraries support. If you
6663 *** really care for shared libraries, you may want to modify your PATH
6664 *** so that a non-GNU linker is found, and then restart.
6671 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)'
6672 hardcode_libdir_flag_spec='-L$libdir'
6673 hardcode_minus_L=yes
6675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6676 # that the semantics of dynamic libraries on AmigaOS, at least up
6677 # to version 4, is to share data among multiple programs linked
6678 # with the same dynamic library. Since this doesn't match the
6679 # behavior of shared libraries on other platforms, we can't use
6685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6686 allow_undefined_flag=unsupported
6687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6688 # support --undefined. This deserves some investigation. FIXME
6689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695 cygwin* | mingw* | pw32*)
6696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6697 # as there is no search path for DLLs.
6698 hardcode_libdir_flag_spec='-L$libdir'
6699 allow_undefined_flag=unsupported
6700 always_export_symbols=no
6701 enable_shared_with_static_runtimes=yes
6702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6706 # If the export-symbols file already is a .def file (1st line
6707 # is EXPORTS), use it as is; otherwise, prepend...
6708 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6709 cp $export_symbols $output_objdir/$soname.def;
6711 echo EXPORTS > $output_objdir/$soname.def;
6712 cat $export_symbols >> $output_objdir/$soname.def;
6714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6720 netbsd* | knetbsd*-gnu)
6721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6722 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6736 *** create shared libraries on Solaris systems. Therefore, libtool
6737 *** is disabling shared libraries support. We urge you to upgrade GNU
6738 *** binutils to release 2.9.1 or newer. Another option is to modify
6739 *** your PATH or compiler configuration so that the native linker is
6740 *** used, and then restart.
6743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6755 hardcode_shlibpath_var=no
6759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_cmds="$tmp_archive_cmds"
6762 supports_anon_versioning=no
6763 case `$LD -v 2>/dev/null` in
6764 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6767 *\ 2.11.*) ;; # other 2.11 versions
6768 *) supports_anon_versioning=yes ;;
6770 if test $supports_anon_versioning = yes; then
6771 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6773 $echo "local: *; };" >> $output_objdir/$libname.ver~
6774 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6776 archive_expsym_cmds="$tmp_archive_cmds"
6785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6794 if test "$ld_shlibs" = yes; then
6795 runpath_var=LD_RUN_PATH
6796 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797 export_dynamic_flag_spec='${wl}--export-dynamic'
6798 # ancient GNU ld didn't support --whole-archive et. al.
6799 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6802 whole_archive_flag_spec=
6806 # PORTME fill in a description of your system's linker (not GNU ld)
6809 allow_undefined_flag=unsupported
6810 always_export_symbols=yes
6811 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'
6812 # Note: this linker hardcodes the directories in LIBPATH if there
6813 # are no directories specified by -L.
6814 hardcode_minus_L=yes
6815 if test "$GCC" = yes && test -z "$link_static_flag"; then
6816 # Neither direct hardcoding nor static linking is supported with a
6818 hardcode_direct=unsupported
6823 if test "$host_cpu" = ia64; then
6824 # On IA64, the linker does run time linking by default, so we don't
6825 # have to do anything special.
6826 aix_use_runtimelinking=no
6827 exp_sym_flag='-Bexport'
6830 # If we're using GNU nm, then we don't want the "-C" option.
6831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6833 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'
6835 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'
6837 aix_use_runtimelinking=no
6839 # Test if we are trying to use run time linking or normal
6840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6841 # need to do runtime linking.
6842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6843 for ld_flag in $LDFLAGS; do
6844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6845 aix_use_runtimelinking=yes
6851 exp_sym_flag='-bexport'
6852 no_entry_flag='-bnoentry'
6855 # When large executables or shared objects are built, AIX ld can
6856 # have problems creating the table of contents. If linking a library
6857 # or program results in "error TOC overflow" add -mminimal-toc to
6858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6863 hardcode_libdir_separator=':'
6864 link_all_deplibs=yes
6866 if test "$GCC" = yes; then
6867 case $host_os in aix4.012|aix4.012.*)
6868 # We only want to do this on AIX 4.2 and lower, the check
6869 # below for broken collect2 doesn't work under 4.3+
6870 collect2name=`${CC} -print-prog-name=collect2`
6871 if test -f "$collect2name" && \
6872 strings "$collect2name" | grep resolve_lib_name >/dev/null
6874 # We have reworked collect2
6877 # We have old collect2
6878 hardcode_direct=unsupported
6879 # It fails to find uninstalled libraries when the uninstalled
6880 # path is not listed in the libpath. Setting hardcode_minus_L
6881 # to unsupported forces relinking
6882 hardcode_minus_L=yes
6883 hardcode_libdir_flag_spec='-L$libdir'
6884 hardcode_libdir_separator=
6887 shared_flag='-shared'
6890 if test "$host_cpu" = ia64; then
6891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6892 # chokes on -Wl,-G. The following line is correct:
6895 if test "$aix_use_runtimelinking" = yes; then
6896 shared_flag='${wl}-G'
6898 shared_flag='${wl}-bM:SRE'
6903 # It seems that -bexpall does not export symbols beginning with
6904 # underscore (_), so it is better to generate a list of symbols to export.
6905 always_export_symbols=yes
6906 if test "$aix_use_runtimelinking" = yes; then
6907 # Warning - without using the other runtime loading flags (-brtl),
6908 # -berok will link without error, but may produce a broken library.
6909 allow_undefined_flag='-berok'
6910 # Determine the default libpath from the value encoded in an empty executable.
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6926 rm -f conftest.$ac_objext conftest$ac_exeext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6928 (eval $ac_link) 2>conftest.er1
6930 grep -v '^ *+' conftest.er1 >conftest.err
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6950 # Check for a 64-bit object if we didn't find anything.
6951 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; }
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6958 rm -f conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6963 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6965 if test "$host_cpu" = ia64; then
6966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6967 allow_undefined_flag="-z nodefs"
6968 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6970 # Determine the default libpath from the value encoded in an empty executable.
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988 (eval $ac_link) 2>conftest.er1
6990 grep -v '^ *+' conftest.er1 >conftest.err
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest$ac_exeext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7010 # Check for a 64-bit object if we didn't find anything.
7011 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; }
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7018 rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7022 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7023 # Warning - without using the other run time loading flags,
7024 # -berok will link without error, but may produce a broken library.
7025 no_undefined_flag=' ${wl}-bernotok'
7026 allow_undefined_flag=' ${wl}-berok'
7027 # -bexpall does not export symbols beginning with underscore (_)
7028 always_export_symbols=yes
7029 # Exported symbols can be pulled into shared objects from archives
7030 whole_archive_flag_spec=' '
7031 archive_cmds_need_lc=yes
7032 # This is similar to how AIX traditionally builds it's shared libraries.
7033 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7039 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)'
7040 hardcode_libdir_flag_spec='-L$libdir'
7041 hardcode_minus_L=yes
7042 # see comment about different semantics on the GNU ld section
7047 export_dynamic_flag_spec=-rdynamic
7050 cygwin* | mingw* | pw32*)
7051 # When not using gcc, we currently assume that we are using
7052 # Microsoft Visual C++.
7053 # hardcode_libdir_flag_spec is actually meaningless, as there is
7054 # no search path for DLLs.
7055 hardcode_libdir_flag_spec=' '
7056 allow_undefined_flag=unsupported
7057 # Tell ltmain to make .lib files, not .a files.
7059 # Tell ltmain to make .dll files, not .so files.
7061 # FIXME: Setting linknames here is a bad hack.
7062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7063 # The linker will automatically build a .lib file if we build a DLL.
7064 old_archive_From_new_cmds='true'
7065 # FIXME: Should let the user specify the lib program.
7066 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7067 fix_srcfile_path='`cygpath -w "$srcfile"`'
7068 enable_shared_with_static_runtimes=yes
7071 darwin* | rhapsody*)
7072 if test "$GXX" = yes ; then
7073 archive_cmds_need_lc=no
7075 rhapsody* | darwin1.[012])
7076 allow_undefined_flag='-undefined suppress'
7079 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7080 allow_undefined_flag='-flat_namespace -undefined suppress'
7082 case ${MACOSX_DEPLOYMENT_TARGET} in
7084 allow_undefined_flag='-flat_namespace -undefined suppress'
7087 allow_undefined_flag='-undefined dynamic_lookup'
7093 lt_int_apple_cc_single_mod=no
7094 output_verbose_link_cmd='echo'
7095 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7096 lt_int_apple_cc_single_mod=yes
7098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7099 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7101 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7103 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7105 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7106 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7108 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7110 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}'
7112 hardcode_automatic=yes
7113 hardcode_shlibpath_var=unsupported
7114 whole_archive_flag_spec='-all_load $convenience'
7115 link_all_deplibs=yes
7122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7123 hardcode_libdir_flag_spec='-L$libdir'
7124 hardcode_shlibpath_var=no
7131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7132 # support. Future versions do this automatically, but an explicit c++rt0.o
7133 # does not break anything, and helps significantly (at the cost of a little
7136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7137 hardcode_libdir_flag_spec='-R$libdir'
7139 hardcode_shlibpath_var=no
7142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7146 hardcode_minus_L=yes
7147 hardcode_shlibpath_var=no
7150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7151 freebsd* | kfreebsd*-gnu)
7152 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7153 hardcode_libdir_flag_spec='-R$libdir'
7155 hardcode_shlibpath_var=no
7159 if test "$GCC" = yes; then
7160 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'
7162 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'
7164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7165 hardcode_libdir_separator=:
7168 # hardcode_minus_L: Not really in the search PATH,
7169 # but as the default location of the library.
7170 hardcode_minus_L=yes
7171 export_dynamic_flag_spec='${wl}-E'
7175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7187 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7194 if test "$with_gnu_ld" = no; then
7197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7198 hardcode_libdir_flag_spec_ld='+b $libdir'
7199 hardcode_libdir_separator=:
7201 hardcode_shlibpath_var=no
7204 hardcode_libdir_flag_spec='-L$libdir'
7206 hardcode_shlibpath_var=no
7208 # hardcode_minus_L: Not really in the search PATH,
7209 # but as the default location of the library.
7210 hardcode_minus_L=yes
7213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7214 hardcode_libdir_separator=:
7216 export_dynamic_flag_spec='${wl}-E'
7218 # hardcode_minus_L: Not really in the search PATH,
7219 # but as the default location of the library.
7220 hardcode_minus_L=yes
7226 irix5* | irix6* | nonstopux*)
7227 if test "$GCC" = yes; then
7228 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'
7230 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'
7231 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7234 hardcode_libdir_separator=:
7235 link_all_deplibs=yes
7238 netbsd* | knetbsd*-gnu)
7239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7242 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7244 hardcode_libdir_flag_spec='-R$libdir'
7246 hardcode_shlibpath_var=no
7250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7253 hardcode_libdir_separator=:
7254 hardcode_shlibpath_var=no
7259 hardcode_shlibpath_var=no
7260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7263 export_dynamic_flag_spec='${wl}-E'
7266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_libdir_flag_spec='-R$libdir'
7271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7279 hardcode_libdir_flag_spec='-L$libdir'
7280 hardcode_minus_L=yes
7281 allow_undefined_flag=unsupported
7282 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'
7283 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7287 if test "$GCC" = yes; then
7288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7289 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'
7291 allow_undefined_flag=' -expect_unresolved \*'
7292 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'
7294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295 hardcode_libdir_separator=:
7298 osf4* | osf5*) # as osf3* with the addition of -msym flag
7299 if test "$GCC" = yes; then
7300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7301 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'
7302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304 allow_undefined_flag=' -expect_unresolved \*'
7305 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'
7306 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7307 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7309 # Both c and cxx compiler support -rpath directly
7310 hardcode_libdir_flag_spec='-rpath $libdir'
7312 hardcode_libdir_separator=:
7316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_shlibpath_var=no
7318 export_dynamic_flag_spec='${wl}-Bexport'
7319 runpath_var=LD_RUN_PATH
7320 hardcode_runpath_var=yes
7324 no_undefined_flag=' -z text'
7325 if test "$GCC" = yes; then
7326 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7328 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7330 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7334 hardcode_libdir_flag_spec='-R$libdir'
7335 hardcode_shlibpath_var=no
7337 solaris2.[0-5] | solaris2.[0-5].*) ;;
7338 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7341 link_all_deplibs=yes
7345 if test "x$host_vendor" = xsequent; then
7346 # Use $CC to link under sequent, because it throws in some extra .o
7347 # files that make .init and .fini sections work.
7348 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_libdir_flag_spec='-L$libdir'
7354 hardcode_minus_L=yes
7355 hardcode_shlibpath_var=no
7359 case $host_vendor in
7361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362 hardcode_direct=yes # is this really true???
7365 ## LD is ld it makes a PLAMLIB
7366 ## CC just makes a GrossModule.
7367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7368 reload_cmds='$CC -r -o $output$reload_objs'
7372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7376 runpath_var='LD_RUN_PATH'
7377 hardcode_shlibpath_var=no
7381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 hardcode_shlibpath_var=no
7383 export_dynamic_flag_spec='-Bexport'
7387 if test -d /usr/nec; then
7388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389 hardcode_shlibpath_var=no
7390 runpath_var=LD_RUN_PATH
7391 hardcode_runpath_var=yes
7397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_shlibpath_var=no
7401 hardcode_runpath_var=yes
7402 runpath_var=LD_RUN_PATH
7405 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7406 no_undefined_flag='${wl}-z ${wl}text'
7407 if test "$GCC" = yes; then
7408 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7410 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7412 runpath_var='LD_RUN_PATH'
7413 hardcode_shlibpath_var=no
7417 no_undefined_flag=' -z text'
7418 # $CC -shared without GNU ld will not create a library from C++
7419 # object files and a static libstdc++, better avoid it by now
7420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7423 hardcode_libdir_flag_spec=
7424 hardcode_shlibpath_var=no
7425 runpath_var='LD_RUN_PATH'
7429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7430 hardcode_libdir_flag_spec='-L$libdir'
7431 hardcode_shlibpath_var=no
7440 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7441 echo "${ECHO_T}$ld_shlibs" >&6
7442 test "$ld_shlibs" = no && can_build_shared=no
7444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7445 if test "$GCC" = yes; then
7446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7450 # Do we need to explicitly link libc?
7452 case "x$archive_cmds_need_lc" in
7454 # Assume -lc should be added
7455 archive_cmds_need_lc=yes
7457 if test "$enable_shared" = yes && test "$GCC" = yes; then
7458 case $archive_cmds in
7460 # FIXME: we may have to deal with multi-command sequences.
7463 # Test whether the compiler implicitly links with -lc since on some
7464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7465 # to ld, don't add -lc before -lgcc.
7466 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472 (eval $ac_compile) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } 2>conftest.err; then
7478 libobjs=conftest.$ac_objext
7480 wl=$lt_prog_compiler_wl
7486 lt_save_allow_undefined_flag=$allow_undefined_flag
7487 allow_undefined_flag=
7488 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7489 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }
7494 archive_cmds_need_lc=no
7496 archive_cmds_need_lc=yes
7498 allow_undefined_flag=$lt_save_allow_undefined_flag
7500 cat conftest.err 1>&5
7503 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7504 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7514 libname_spec='lib$name'
7522 shlibpath_overrides_runpath=unknown
7524 dynamic_linker="$host_os ld.so"
7525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7526 if test "$GCC" = yes; then
7527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7528 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7529 # if the path contains ";" then we assume it to be the separator
7530 # otherwise default to the standard path separator (i.e. ":") - it is
7531 # assumed that no part of a normal pathname contains ";" but that should
7532 # okay in the real world where ";" in dirpaths is itself problematic.
7533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7540 need_lib_prefix=unknown
7541 hardcode_into_libs=no
7543 # when you set need_version to no, make sure it does not cause -set_version
7544 # flags to be left without arguments
7545 need_version=unknown
7550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7551 shlibpath_var=LIBPATH
7553 # AIX 3 has no versioning support, so we append a major version to the name.
7554 soname_spec='${libname}${release}${shared_ext}$major'
7561 hardcode_into_libs=yes
7562 if test "$host_cpu" = ia64; then
7563 # AIX 5 supports IA64
7564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7565 shlibpath_var=LD_LIBRARY_PATH
7567 # With GCC up to 2.95.x, collect2 would create an import file
7568 # for dependence libraries. The import file would start with
7569 # the line `#! .'. This would cause the generated library to
7570 # depend on `.', always an invalid library. This was fixed in
7571 # development snapshots of GCC prior to 3.0.
7573 aix4 | aix4.[01] | aix4.[01].*)
7574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7576 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7584 # soname into executable. Probably we can add versioning support to
7585 # collect2, so additional links can be useful in future.
7586 if test "$aix_use_runtimelinking" = yes; then
7587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7588 # instead of lib<name>.a to let people know that these are not
7589 # typical AIX shared libraries.
7590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7592 # We preserve .a as extension for shared libraries through AIX4.2
7593 # and later when we are not doing run time linking.
7594 library_names_spec='${libname}${release}.a $libname.a'
7595 soname_spec='${libname}${release}${shared_ext}$major'
7597 shlibpath_var=LIBPATH
7602 library_names_spec='$libname.ixlibrary $libname.a'
7603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7604 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'
7608 library_names_spec='${libname}${shared_ext}'
7609 dynamic_linker="$host_os ld.so"
7610 shlibpath_var=LIBRARY_PATH
7616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617 soname_spec='${libname}${release}${shared_ext}$major'
7618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7619 shlibpath_var=LD_LIBRARY_PATH
7620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7622 # the default ld.so.conf also contains /usr/contrib/lib and
7623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7624 # libtool to hard-code these into programs
7627 cygwin* | mingw* | pw32*)
7628 version_type=windows
7633 case $GCC,$host_os in
7634 yes,cygwin* | yes,mingw* | yes,pw32*)
7635 library_names_spec='$libname.dll.a'
7636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7637 postinstall_cmds='base_file=`basename \${file}`~
7638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7639 dldir=$destdir/`dirname \$dlpath`~
7640 test -d \$dldir || mkdir -p \$dldir~
7641 $install_prog $dir/$dlname \$dldir/$dlname'
7642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7643 dlpath=$dir/\$dldll~
7645 shlibpath_overrides_runpath=yes
7649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7654 # MinGW DLLs use traditional 'lib' prefix
7655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7658 # It is most probably a Windows format PATH printed by
7659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7660 # path with ; separators, and with drive letters. We can handle the
7661 # drive letters (cygwin fileutils understands them), so leave them,
7662 # especially as we might pass files found there to a mingw objdump,
7663 # which wouldn't understand a cygwinified path. Ahh.
7664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7670 # pw32 DLLs use 'pw' prefix rather than 'lib'
7671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7680 dynamic_linker='Win32 ld.exe'
7681 # FIXME: first we should search . and the directory the executable is in
7685 darwin* | rhapsody*)
7686 dynamic_linker="$host_os dyld"
7690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7691 soname_spec='${libname}${release}${major}$shared_ext'
7692 shlibpath_overrides_runpath=yes
7693 shlibpath_var=DYLD_LIBRARY_PATH
7694 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7696 if test "$GCC" = yes; then
7697 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"`
7699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7709 soname_spec='${libname}${release}${shared_ext}$major'
7710 shlibpath_var=LD_LIBRARY_PATH
7721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7722 soname_spec='${libname}${release}${shared_ext}$major'
7723 shlibpath_var=LD_LIBRARY_PATH
7724 shlibpath_overrides_runpath=no
7725 hardcode_into_libs=yes
7726 dynamic_linker='GNU ld.so'
7730 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7731 version_type=freebsd-$objformat
7732 case $version_type in
7734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7743 shlibpath_var=LD_LIBRARY_PATH
7746 shlibpath_overrides_runpath=yes
7748 freebsd3.01* | freebsdelf3.01*)
7749 shlibpath_overrides_runpath=yes
7750 hardcode_into_libs=yes
7753 shlibpath_overrides_runpath=no
7754 hardcode_into_libs=yes
7763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7764 soname_spec='${libname}${release}${shared_ext}$major'
7765 shlibpath_var=LD_LIBRARY_PATH
7766 hardcode_into_libs=yes
7769 hpux9* | hpux10* | hpux11*)
7770 # Give a soname corresponding to the major version so that dld.sl refuses to
7771 # link against other versions.
7778 hardcode_into_libs=yes
7779 dynamic_linker="$host_os dld.so"
7780 shlibpath_var=LD_LIBRARY_PATH
7781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783 soname_spec='${libname}${release}${shared_ext}$major'
7784 if test "X$HPUX_IA64_MODE" = X32; then
7785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7793 hardcode_into_libs=yes
7794 dynamic_linker="$host_os dld.sl"
7795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7798 soname_spec='${libname}${release}${shared_ext}$major'
7799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7804 dynamic_linker="$host_os dld.sl"
7805 shlibpath_var=SHLIB_PATH
7806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7811 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7812 postinstall_cmds='chmod 555 $lib'
7815 irix5* | irix6* | nonstopux*)
7817 nonstopux*) version_type=nonstopux ;;
7819 if test "$lt_cv_prog_gnu_ld" = yes; then
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7830 irix5* | nonstopux*)
7834 case $LD in # libtool.m4 will add one of these switches to LD
7835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7836 libsuff= shlibsuff= libmagic=32-bit;;
7837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7838 libsuff=32 shlibsuff=N32 libmagic=N32;;
7839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7841 *) libsuff= shlibsuff= libmagic=never-match;;
7845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7846 shlibpath_overrides_runpath=no
7847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7849 hardcode_into_libs=yes
7852 # No shared lib support for Linux oldld, aout, or coff.
7853 linux*oldld* | linux*aout* | linux*coff*)
7857 # This must be Linux ELF.
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7865 shlibpath_var=LD_LIBRARY_PATH
7866 shlibpath_overrides_runpath=no
7867 # This implies no fast_install, which is unacceptable.
7868 # Some rework will be needed to allow for fast_install
7869 # before this can be enabled.
7870 hardcode_into_libs=yes
7872 # Append ld.so.conf contents to the search path
7873 if test -f /etc/ld.so.conf; then
7874 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7878 # We used to test for /lib/ld.so.1 and disable shared libraries on
7879 # powerpc, because MkLinux only supported shared libraries with the
7880 # GNU dynamic linker. Since this was broken with cross compilers,
7881 # most powerpc-linux boxes support dynamic linking these days and
7882 # people can always --disable-shared, the test was removed, and we
7883 # assume the GNU/Linux dynamic linker is in use.
7884 dynamic_linker='GNU/Linux ld.so'
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7893 shlibpath_var=LD_LIBRARY_PATH
7894 shlibpath_overrides_runpath=no
7895 hardcode_into_libs=yes
7896 dynamic_linker='GNU ld.so'
7903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7906 dynamic_linker='NetBSD (a.out) ld.so'
7908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7909 soname_spec='${libname}${release}${shared_ext}$major'
7910 dynamic_linker='NetBSD ld.elf_so'
7912 shlibpath_var=LD_LIBRARY_PATH
7913 shlibpath_overrides_runpath=yes
7914 hardcode_into_libs=yes
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920 shlibpath_var=LD_LIBRARY_PATH
7921 shlibpath_overrides_runpath=yes
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=yes
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7940 shlibpath_var=LD_LIBRARY_PATH
7941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7943 openbsd2.[89] | openbsd2.[89].*)
7944 shlibpath_overrides_runpath=no
7947 shlibpath_overrides_runpath=yes
7951 shlibpath_overrides_runpath=yes
7956 libname_spec='$name'
7959 library_names_spec='$libname${shared_ext} $libname.a'
7960 dynamic_linker='OS/2 ld.exe'
7961 shlibpath_var=LIBPATH
7964 osf3* | osf4* | osf5*)
7968 soname_spec='${libname}${release}${shared_ext}$major'
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970 shlibpath_var=LD_LIBRARY_PATH
7971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7977 soname_spec='${libname}${release}${shared_ext}$major'
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979 shlibpath_var=LD_LIBRARY_PATH
7986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7987 soname_spec='${libname}${release}${shared_ext}$major'
7988 shlibpath_var=LD_LIBRARY_PATH
7989 shlibpath_overrides_runpath=yes
7990 hardcode_into_libs=yes
7991 # ldd complains unless libraries are executable
7992 postinstall_cmds='chmod +x $lib'
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 shlibpath_overrides_runpath=yes
8001 if test "$with_gnu_ld" = yes; then
8007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010 soname_spec='${libname}${release}${shared_ext}$major'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 case $host_vendor in
8014 shlibpath_overrides_runpath=no
8016 export_dynamic_flag_spec='${wl}-Blargedynsym'
8017 runpath_var=LD_RUN_PATH
8025 shlibpath_overrides_runpath=no
8026 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8032 if test -d /usr/nec ;then
8034 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8035 soname_spec='$libname${shared_ext}.$major'
8036 shlibpath_var=LD_LIBRARY_PATH
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 shlibpath_var=LD_LIBRARY_PATH
8051 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8052 echo "${ECHO_T}$dynamic_linker" >&6
8053 test "$dynamic_linker" = no && can_build_shared=no
8055 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8058 if test -n "$hardcode_libdir_flag_spec" || \
8059 test -n "$runpath_var " || \
8060 test "X$hardcode_automatic"="Xyes" ; then
8062 # We can hardcode non-existant directories.
8063 if test "$hardcode_direct" != no &&
8064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8065 # have to relink, otherwise we might link with an installed library
8066 # when we should be linking with a yet-to-be-installed one
8067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8068 test "$hardcode_minus_L" != no; then
8069 # Linking always hardcodes the temporary library directory.
8070 hardcode_action=relink
8072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8073 hardcode_action=immediate
8076 # We cannot hardcode anything, or else we can only hardcode existing
8078 hardcode_action=unsupported
8080 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8081 echo "${ECHO_T}$hardcode_action" >&6
8083 if test "$hardcode_action" = relink; then
8084 # Fast installation is not supported
8085 enable_fast_install=no
8086 elif test "$shlibpath_overrides_runpath" = yes ||
8087 test "$enable_shared" = no; then
8088 # Fast installation is not necessary
8089 enable_fast_install=needless
8094 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8095 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8096 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8097 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8098 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8099 echo "$as_me:$LINENO: result: yes" >&5
8100 echo "${ECHO_T}yes" >&6
8102 # FIXME - insert some real tests, host_os isn't really good enough
8105 if test -n "$STRIP" ; then
8106 striplib="$STRIP -x"
8107 echo "$as_me:$LINENO: result: yes" >&5
8108 echo "${ECHO_T}yes" >&6
8110 echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6
8115 echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6
8121 if test "x$enable_dlopen" != xyes; then
8122 enable_dlopen=unknown
8123 enable_dlopen_self=unknown
8124 enable_dlopen_self_static=unknown
8131 lt_cv_dlopen="load_add_on"
8133 lt_cv_dlopen_self=yes
8137 lt_cv_dlopen="LoadLibrary"
8142 lt_cv_dlopen="dlopen"
8147 # if libdl is installed we need to link against it
8148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 ac_check_lib_save_LIBS=$LIBS
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8162 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 (eval $ac_link) 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } &&
8192 { ac_try='test -s conftest$ac_exeext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_cv_lib_dl_dlopen=yes
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 ac_cv_lib_dl_dlopen=no
8205 rm -f conftest.err conftest.$ac_objext \
8206 conftest$ac_exeext conftest.$ac_ext
8207 LIBS=$ac_check_lib_save_LIBS
8209 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8211 if test $ac_cv_lib_dl_dlopen = yes; then
8212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8217 lt_cv_dlopen_self=yes
8224 echo "$as_me:$LINENO: checking for shl_load" >&5
8225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8226 if test "${ac_cv_func_shl_load+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8237 #define shl_load innocuous_shl_load
8239 /* System header to define __stub macros and hopefully few prototypes,
8240 which can conflict with char shl_load (); below.
8241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8242 <limits.h> exists even on freestanding compilers. */
8245 # include <limits.h>
8247 # include <assert.h>
8252 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8260 /* The GNU C library defines this for functions which it implements
8261 to always fail with ENOSYS. Some functions are actually named
8262 something starting with __ and the normal name is an alias. */
8263 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8266 char (*f) () = shl_load;
8275 return f != shl_load;
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_func_shl_load=yes
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_cv_func_shl_load=no
8308 rm -f conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8311 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8312 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8313 if test $ac_cv_func_shl_load = yes; then
8314 lt_cv_dlopen="shl_load"
8316 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8317 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8318 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 ac_check_lib_save_LIBS=$LIBS
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8330 /* Override any gcc2 internal prototype to avoid an error. */
8334 /* We use char because int might match the return type of a gcc2
8335 builtin and then its argument prototype would still apply. */
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8347 (eval $ac_link) 2>conftest.er1
8349 grep -v '^ *+' conftest.er1 >conftest.err
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_cv_lib_dld_shl_load=yes
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_cv_lib_dld_shl_load=no
8373 rm -f conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8379 if test $ac_cv_lib_dld_shl_load = yes; then
8380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8382 echo "$as_me:$LINENO: checking for dlopen" >&5
8383 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8384 if test "${ac_cv_func_dlopen+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8395 #define dlopen innocuous_dlopen
8397 /* System header to define __stub macros and hopefully few prototypes,
8398 which can conflict with char dlopen (); below.
8399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400 <limits.h> exists even on freestanding compilers. */
8403 # include <limits.h>
8405 # include <assert.h>
8410 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8418 /* The GNU C library defines this for functions which it implements
8419 to always fail with ENOSYS. Some functions are actually named
8420 something starting with __ and the normal name is an alias. */
8421 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8424 char (*f) () = dlopen;
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_func_dlopen=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_func_dlopen=no
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8470 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8471 if test $ac_cv_func_dlopen = yes; then
8472 lt_cv_dlopen="dlopen"
8474 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8475 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8476 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 ac_check_lib_save_LIBS=$LIBS
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8488 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505 (eval $ac_link) 2>conftest.er1
8507 grep -v '^ *+' conftest.er1 >conftest.err
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_cv_lib_dl_dlopen=yes
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_cv_lib_dl_dlopen=no
8531 rm -f conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8535 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8537 if test $ac_cv_lib_dl_dlopen = yes; then
8538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8540 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8541 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 ac_check_lib_save_LIBS=$LIBS
8547 cat >conftest.$ac_ext <<_ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8554 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_lib_svld_dlopen=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_cv_lib_svld_dlopen=no
8597 rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599 LIBS=$ac_check_lib_save_LIBS
8601 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8602 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8603 if test $ac_cv_lib_svld_dlopen = yes; then
8604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8606 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8607 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8608 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 ac_check_lib_save_LIBS=$LIBS
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8620 /* Override any gcc2 internal prototype to avoid an error. */
8624 /* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>conftest.er1
8639 grep -v '^ *+' conftest.er1 >conftest.err
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try='test -s conftest$ac_exeext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_cv_lib_dld_dld_link=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 ac_cv_lib_dld_dld_link=no
8663 rm -f conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8667 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8668 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8669 if test $ac_cv_lib_dld_dld_link = yes; then
8670 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8691 if test "x$lt_cv_dlopen" != xno; then
8697 case $lt_cv_dlopen in
8699 save_CPPFLAGS="$CPPFLAGS"
8700 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8702 save_LDFLAGS="$LDFLAGS"
8703 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8706 LIBS="$lt_cv_dlopen_libs $LIBS"
8708 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8709 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8710 if test "${lt_cv_dlopen_self+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 if test "$cross_compiling" = yes; then :
8714 lt_cv_dlopen_self=cross
8716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8717 lt_status=$lt_dlunknown
8718 cat > conftest.$ac_ext <<EOF
8719 #line 8719 "configure"
8720 #include "confdefs.h"
8729 # define LT_DLGLOBAL RTLD_GLOBAL
8732 # define LT_DLGLOBAL DL_GLOBAL
8734 # define LT_DLGLOBAL 0
8738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8739 find out it does not work in some platform. */
8740 #ifndef LT_DLLAZY_OR_NOW
8742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8745 # define LT_DLLAZY_OR_NOW DL_LAZY
8748 # define LT_DLLAZY_OR_NOW RTLD_NOW
8751 # define LT_DLLAZY_OR_NOW DL_NOW
8753 # define LT_DLLAZY_OR_NOW 0
8761 extern "C" void exit (int);
8764 void fnord() { int i=42;}
8767 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8768 int status = $lt_dlunknown;
8772 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8773 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8774 /* dlclose (self); */
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8785 (./conftest; exit; ) 2>/dev/null
8788 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8789 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8790 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8793 # compilation failed
8794 lt_cv_dlopen_self=no
8801 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8802 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8804 if test "x$lt_cv_dlopen_self" = xyes; then
8805 LDFLAGS="$LDFLAGS $link_static_flag"
8806 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8807 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8808 if test "${lt_cv_dlopen_self_static+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 if test "$cross_compiling" = yes; then :
8812 lt_cv_dlopen_self_static=cross
8814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8815 lt_status=$lt_dlunknown
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8817 "configure"
8818 #include "confdefs.h"
8827 # define LT_DLGLOBAL RTLD_GLOBAL
8830 # define LT_DLGLOBAL DL_GLOBAL
8832 # define LT_DLGLOBAL 0
8836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8837 find out it does not work in some platform. */
8838 #ifndef LT_DLLAZY_OR_NOW
8840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8843 # define LT_DLLAZY_OR_NOW DL_LAZY
8846 # define LT_DLLAZY_OR_NOW RTLD_NOW
8849 # define LT_DLLAZY_OR_NOW DL_NOW
8851 # define LT_DLLAZY_OR_NOW 0
8859 extern "C" void exit (int);
8862 void fnord() { int i=42;}
8865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8866 int status = $lt_dlunknown;
8870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8871 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8872 /* dlclose (self); */
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8883 (./conftest; exit; ) 2>/dev/null
8886 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8887 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8888 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8891 # compilation failed
8892 lt_cv_dlopen_self_static=no
8899 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8900 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8903 CPPFLAGS="$save_CPPFLAGS"
8904 LDFLAGS="$save_LDFLAGS"
8909 case $lt_cv_dlopen_self in
8910 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8911 *) enable_dlopen_self=unknown ;;
8914 case $lt_cv_dlopen_self_static in
8915 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8916 *) enable_dlopen_self_static=unknown ;;
8921 # Report which librarie types wil actually be built
8922 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8923 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8924 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8925 echo "${ECHO_T}$can_build_shared" >&6
8927 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8928 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8929 test "$can_build_shared" = "no" && enable_shared=no
8931 # On AIX, shared libraries and static libraries use the same namespace, and
8932 # are all built from PIC.
8935 test "$enable_shared" = yes && enable_static=no
8936 if test -n "$RANLIB"; then
8937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8938 postinstall_cmds='$RANLIB $lib'
8943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8944 test "$enable_shared" = yes && enable_static=no
8947 darwin* | rhapsody*)
8948 if test "$GCC" = yes; then
8949 archive_cmds_need_lc=no
8951 rhapsody* | darwin1.[012])
8952 allow_undefined_flag='-undefined suppress'
8955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8956 allow_undefined_flag='-flat_namespace -undefined suppress'
8958 case ${MACOSX_DEPLOYMENT_TARGET} in
8960 allow_undefined_flag='-flat_namespace -undefined suppress'
8963 allow_undefined_flag='-undefined dynamic_lookup'
8969 output_verbose_link_cmd='echo'
8970 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8971 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8973 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}'
8974 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}'
8976 hardcode_automatic=yes
8977 hardcode_shlibpath_var=unsupported
8978 whole_archive_flag_spec='-all_load $convenience'
8979 link_all_deplibs=yes
8985 echo "$as_me:$LINENO: result: $enable_shared" >&5
8986 echo "${ECHO_T}$enable_shared" >&6
8988 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8990 # Make sure either enable_shared or enable_static is yes.
8991 test "$enable_shared" = yes || enable_static=yes
8992 echo "$as_me:$LINENO: result: $enable_static" >&5
8993 echo "${ECHO_T}$enable_static" >&6
8995 # The else clause should only fire when bootstrapping the
8996 # libtool distribution, otherwise you forgot to ship ltmain.sh
8997 # with your package, and you will get complaints that there are
8998 # no rules to generate ltmain.sh.
8999 if test -f "$ltmain"; then
9000 # See if we are running on zsh, and set the options which allow our commands through
9001 # without removal of \ escapes.
9002 if test -n "${ZSH_VERSION+set}" ; then
9003 setopt NO_GLOB_SUBST
9005 # Now quote all the things that may contain metacharacters while being
9006 # careful not to overquote the AC_SUBSTed values. We take copies of the
9007 # variables and quote the copies for generation of the libtool script.
9008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9012 deplibs_check_method reload_flag reload_cmds need_locks \
9013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9014 lt_cv_sys_global_symbol_to_c_name_address \
9015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9016 old_postinstall_cmds old_postuninstall_cmds \
9020 lt_prog_compiler_wl \
9021 lt_prog_compiler_pic \
9022 lt_prog_compiler_static \
9023 lt_prog_compiler_no_builtin_flag \
9024 export_dynamic_flag_spec \
9025 thread_safe_flag_spec \
9026 whole_archive_flag_spec \
9027 enable_shared_with_static_runtimes \
9029 old_archive_from_new_cmds \
9034 compiler_lib_search_path \
9036 archive_expsym_cmds \
9038 postuninstall_cmds \
9039 old_archive_from_expsyms_cmds \
9040 allow_undefined_flag \
9042 export_symbols_cmds \
9043 hardcode_libdir_flag_spec \
9044 hardcode_libdir_flag_spec_ld \
9045 hardcode_libdir_separator \
9046 hardcode_automatic \
9048 module_expsym_cmds \
9049 lt_cv_prog_compiler_c_o \
9054 old_archive_cmds | \
9055 old_archive_from_new_cmds | \
9057 archive_expsym_cmds | \
9059 module_expsym_cmds | \
9060 old_archive_from_expsyms_cmds | \
9061 export_symbols_cmds | \
9062 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9063 postinstall_cmds | postuninstall_cmds | \
9064 old_postinstall_cmds | old_postuninstall_cmds | \
9065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9066 # Double-quote double-evaled strings.
9067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9076 *'\$0 --fallback-echo"')
9077 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9082 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9084 { echo "$as_me:$LINENO: creating $ofile" >&5
9085 echo "$as_me: creating $ofile" >&6;}
9087 cat <<__EOF__ >> "$cfgfile"
9090 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9091 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9092 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9094 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9095 # Free Software Foundation, Inc.
9097 # This file is part of GNU Libtool:
9098 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9100 # This program is free software; you can redistribute it and/or modify
9101 # it under the terms of the GNU General Public License as published by
9102 # the Free Software Foundation; either version 2 of the License, or
9103 # (at your option) any later version.
9105 # This program is distributed in the hope that it will be useful, but
9106 # WITHOUT ANY WARRANTY; without even the implied warranty of
9107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9108 # General Public License for more details.
9110 # You should have received a copy of the GNU General Public License
9111 # along with this program; if not, write to the Free Software
9112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9114 # As a special exception to the GNU General Public License, if you
9115 # distribute this file as part of a program that contains a
9116 # configuration script generated by Autoconf, you may include it under
9117 # the same distribution terms that you use for the rest of that program.
9119 # A sed program that does not truncate output.
9122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9123 Xsed="$SED -e s/^X//"
9125 # The HP-UX ksh and POSIX shell print the target directory to stdout
9127 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9129 # The names of the tagged configurations supported by this script.
9132 # ### BEGIN LIBTOOL CONFIG
9134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9136 # Shell to use when invoking shell scripts.
9139 # Whether or not to build shared libraries.
9140 build_libtool_libs=$enable_shared
9142 # Whether or not to build static libraries.
9143 build_old_libs=$enable_static
9145 # Whether or not to add -lc for building shared libraries.
9146 build_libtool_need_lc=$archive_cmds_need_lc
9148 # Whether or not to disallow shared libs when runtime libs are static
9149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9151 # Whether or not to optimize for fast installation.
9152 fast_install=$enable_fast_install
9155 host_alias=$host_alias
9158 # An echo program that does not interpret backslashes.
9163 AR_FLAGS=$lt_AR_FLAGS
9168 # A language-specific compiler.
9171 # Is the compiler the GNU C compiler?
9177 # The linker used to build libraries.
9180 # Whether we need hard or soft links.
9183 # A BSD-compatible nm program.
9186 # A symbol stripping program
9189 # Used to examine libraries when file_magic_cmd begins "file"
9190 MAGIC_CMD=$MAGIC_CMD
9192 # Used on cygwin: DLL creation program.
9195 # Used on cygwin: object dumper.
9198 # Used on cygwin: assembler.
9201 # The name of the directory that contains temporary libtool files.
9204 # How to create reloadable object files.
9205 reload_flag=$lt_reload_flag
9206 reload_cmds=$lt_reload_cmds
9208 # How to pass a linker flag through the compiler.
9209 wl=$lt_lt_prog_compiler_wl
9211 # Object file suffix (normally "o").
9214 # Old archive suffix (normally "a").
9217 # Shared library suffix (normally ".so").
9218 shrext_cmds='$shrext_cmds'
9220 # Executable file suffix (normally "").
9223 # Additional compiler flags for building library objects.
9224 pic_flag=$lt_lt_prog_compiler_pic
9227 # What is the maximum length of a command?
9228 max_cmd_len=$lt_cv_sys_max_cmd_len
9230 # Does compiler simultaneously support -c and -o options?
9231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9233 # Must we lock files when doing compilation ?
9234 need_locks=$lt_need_locks
9236 # Do we need the lib prefix for modules?
9237 need_lib_prefix=$need_lib_prefix
9239 # Do we need a version for libraries?
9240 need_version=$need_version
9242 # Whether dlopen is supported.
9243 dlopen_support=$enable_dlopen
9245 # Whether dlopen of programs is supported.
9246 dlopen_self=$enable_dlopen_self
9248 # Whether dlopen of statically linked programs is supported.
9249 dlopen_self_static=$enable_dlopen_self_static
9251 # Compiler flag to prevent dynamic linking.
9252 link_static_flag=$lt_lt_prog_compiler_static
9254 # Compiler flag to turn off builtin functions.
9255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9257 # Compiler flag to allow reflexive dlopens.
9258 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9260 # Compiler flag to generate shared objects directly from archives.
9261 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9263 # Compiler flag to generate thread-safe objects.
9264 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9266 # Library versioning type.
9267 version_type=$version_type
9269 # Format of library name prefix.
9270 libname_spec=$lt_libname_spec
9272 # List of archive names. First name is the real one, the rest are links.
9273 # The last name is the one that the linker finds with -lNAME.
9274 library_names_spec=$lt_library_names_spec
9276 # The coded name of the library, if different from the real name.
9277 soname_spec=$lt_soname_spec
9279 # Commands used to build and install an old-style archive.
9281 old_archive_cmds=$lt_old_archive_cmds
9282 old_postinstall_cmds=$lt_old_postinstall_cmds
9283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9285 # Create an old-style archive from a shared archive.
9286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9288 # Create a temporary old-style archive to link instead of a shared archive.
9289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9291 # Commands used to build and install a shared archive.
9292 archive_cmds=$lt_archive_cmds
9293 archive_expsym_cmds=$lt_archive_expsym_cmds
9294 postinstall_cmds=$lt_postinstall_cmds
9295 postuninstall_cmds=$lt_postuninstall_cmds
9297 # Commands used to build a loadable module (assumed same as above if empty)
9298 module_cmds=$lt_module_cmds
9299 module_expsym_cmds=$lt_module_expsym_cmds
9301 # Commands to strip libraries.
9302 old_striplib=$lt_old_striplib
9303 striplib=$lt_striplib
9305 # Dependencies to place before the objects being linked to create a
9307 predep_objects=$lt_predep_objects
9309 # Dependencies to place after the objects being linked to create a
9311 postdep_objects=$lt_postdep_objects
9313 # Dependencies to place before the objects being linked to create a
9317 # Dependencies to place after the objects being linked to create a
9319 postdeps=$lt_postdeps
9321 # The library search path used internally by the compiler when linking
9323 compiler_lib_search_path=$lt_compiler_lib_search_path
9325 # Method to check whether dependent libraries are shared objects.
9326 deplibs_check_method=$lt_deplibs_check_method
9328 # Command to use when deplibs_check_method == file_magic.
9329 file_magic_cmd=$lt_file_magic_cmd
9331 # Flag that allows shared libraries with undefined symbols to be built.
9332 allow_undefined_flag=$lt_allow_undefined_flag
9334 # Flag that forces no undefined symbols.
9335 no_undefined_flag=$lt_no_undefined_flag
9337 # Commands used to finish a libtool library installation in a directory.
9338 finish_cmds=$lt_finish_cmds
9340 # Same as above, but a single script fragment to be evaled but not shown.
9341 finish_eval=$lt_finish_eval
9343 # Take the output of nm and produce a listing of raw symbols and C names.
9344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9346 # Transform the output of nm in a proper C declaration
9347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9349 # Transform the output of nm in a C name address pair
9350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9352 # This is the shared library runtime path variable.
9353 runpath_var=$runpath_var
9355 # This is the shared library path variable.
9356 shlibpath_var=$shlibpath_var
9358 # Is shlibpath searched before the hard-coded library search path?
9359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9361 # How to hardcode a shared library path into an executable.
9362 hardcode_action=$hardcode_action
9364 # Whether we should hardcode library paths into libraries.
9365 hardcode_into_libs=$hardcode_into_libs
9367 # Flag to hardcode \$libdir into a binary during linking.
9368 # This must work even if \$libdir does not exist.
9369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9371 # If ld is used when linking, flag to hardcode \$libdir into
9372 # a binary during linking. This must work even if \$libdir does
9374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9376 # Whether we need a single -rpath flag with a separated argument.
9377 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9381 hardcode_direct=$hardcode_direct
9383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9385 hardcode_minus_L=$hardcode_minus_L
9387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9388 # the resulting binary.
9389 hardcode_shlibpath_var=$hardcode_shlibpath_var
9391 # Set to yes if building a shared library automatically hardcodes DIR into the library
9392 # and all subsequent libraries and executables linked against it.
9393 hardcode_automatic=$hardcode_automatic
9395 # Variables whose values should be saved in libtool wrapper scripts and
9396 # restored at relink time.
9397 variables_saved_for_relink="$variables_saved_for_relink"
9399 # Whether libtool must link a program against all its dependency libraries.
9400 link_all_deplibs=$link_all_deplibs
9402 # Compile-time system search path for libraries
9403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9405 # Run-time system search path for libraries
9406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9408 # Fix the shell variable \$srcfile for the compiler.
9409 fix_srcfile_path="$fix_srcfile_path"
9411 # Set to yes if exported symbols are required.
9412 always_export_symbols=$always_export_symbols
9414 # The commands to list exported symbols.
9415 export_symbols_cmds=$lt_export_symbols_cmds
9417 # The commands to extract the exported symbol list from a shared archive.
9418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9420 # Symbols that should not be listed in the preloaded symbols.
9421 exclude_expsyms=$lt_exclude_expsyms
9423 # Symbols that must always be exported.
9424 include_expsyms=$lt_include_expsyms
9426 # ### END LIBTOOL CONFIG
9433 cat <<\EOF >> "$cfgfile"
9435 # AIX sometimes has problems with the GCC collect2 program. For some
9436 # reason, if we set the COLLECT_NAMES environment variable, the problems
9437 # vanish in a puff of smoke.
9438 if test "X${COLLECT_NAMES+set}" != Xset; then
9440 export COLLECT_NAMES
9446 # We use sed instead of cat because bash on DJGPP gets confused if
9447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9448 # text mode, it properly converts lines to CR/LF. This bash problem
9449 # is reportedly fixed, but why not run on old versions too?
9450 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9452 mv -f "$cfgfile" "$ofile" || \
9453 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9457 # If there is no Makefile yet, we rely on a make rule to execute
9458 # `config.status --recheck' to rerun these tests and create the
9459 # libtool script then.
9460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9461 if test -f "$ltmain_in"; then
9462 test -f Makefile && make "$ltmain"
9468 ac_cpp='$CPP $CPPFLAGS'
9469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9476 # Check whether --with-tags or --without-tags was given.
9477 if test "${with_tags+set}" = set; then
9478 withval="$with_tags"
9482 if test -f "$ltmain" && test -n "$tagnames"; then
9483 if test ! -f "${ofile}"; then
9484 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9485 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9488 if test -z "$LTCC"; then
9489 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9490 if test -z "$LTCC"; then
9491 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9492 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9495 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9499 # Extract list of available tagged configurations in $ofile.
9500 # Note that this assumes the entire list is on one line.
9501 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9504 for tagname in $tagnames; do
9506 # Check whether tagname contains only valid characters
9507 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9509 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9510 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9511 { (exit 1); exit 1; }; }
9515 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9517 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9518 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9519 { (exit 1); exit 1; }; }
9522 # Update the list of available tags.
9523 if test -n "$tagname"; then
9524 echo appending configuration tag \"$tagname\" to $ofile
9528 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9530 ac_cpp='$CXXCPP $CPPFLAGS'
9531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9538 archive_cmds_need_lc_CXX=no
9539 allow_undefined_flag_CXX=
9540 always_export_symbols_CXX=no
9541 archive_expsym_cmds_CXX=
9542 export_dynamic_flag_spec_CXX=
9543 hardcode_direct_CXX=no
9544 hardcode_libdir_flag_spec_CXX=
9545 hardcode_libdir_flag_spec_ld_CXX=
9546 hardcode_libdir_separator_CXX=
9547 hardcode_minus_L_CXX=no
9548 hardcode_automatic_CXX=no
9550 module_expsym_cmds_CXX=
9551 link_all_deplibs_CXX=unknown
9552 old_archive_cmds_CXX=$old_archive_cmds
9553 no_undefined_flag_CXX=
9554 whole_archive_flag_spec_CXX=
9555 enable_shared_with_static_runtimes_CXX=no
9557 # Dependencies to place before and after the object being linked:
9559 postdep_objects_CXX=
9562 compiler_lib_search_path_CXX=
9564 # Source file extension for C++ test sources.
9567 # Object file extension for compiled C++ test sources.
9571 # Code to be used in simple compile tests
9572 lt_simple_compile_test_code="int some_variable = 0;\n"
9574 # Code to be used in simple link tests
9575 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9577 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9579 # If no C compiler was specified, use CC.
9582 # Allow CC to be a program name with arguments.
9586 # Allow CC to be a program name with arguments.
9591 lt_save_with_gnu_ld=$with_gnu_ld
9592 lt_save_path_LD=$lt_cv_path_LD
9593 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9594 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9596 unset lt_cv_prog_gnu_ld
9598 if test -n "${lt_cv_path_LDCXX+set}"; then
9599 lt_cv_path_LD=$lt_cv_path_LDCXX
9603 test -z "${LDCXX+set}" || LD=$LDCXX
9607 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9609 # We don't want -fno-exception wen compiling C++ code, so set the
9610 # no_builtin_flag separately
9611 if test "$GXX" = yes; then
9612 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9614 lt_prog_compiler_no_builtin_flag_CXX=
9617 if test "$GXX" = yes; then
9618 # Set up default GNU C++ configuration
9621 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9622 if test "${with_gnu_ld+set}" = set; then
9623 withval="$with_gnu_ld"
9624 test "$withval" = no || with_gnu_ld=yes
9629 if test "$GCC" = yes; then
9630 # Check if gcc -print-prog-name=ld gives a path.
9631 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9632 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9635 # gcc leaves a trailing carriage return which upsets mingw
9636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9641 # Accept absolute paths.
9643 re_direlt='/[^/][^/]*/\.\./'
9644 # Canonicalize the pathname of ld
9645 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9646 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9647 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9649 test -z "$LD" && LD="$ac_prog"
9652 # If it fails, then pretend we aren't using GCC.
9656 # If it is relative, then search for the first ld in PATH.
9660 elif test "$with_gnu_ld" = yes; then
9661 echo "$as_me:$LINENO: checking for GNU ld" >&5
9662 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9664 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9665 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9667 if test "${lt_cv_path_LD+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 if test -z "$LD"; then
9671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9672 for ac_dir in $PATH; do
9674 test -z "$ac_dir" && ac_dir=.
9675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9676 lt_cv_path_LD="$ac_dir/$ac_prog"
9677 # Check to see if the program is GNU ld. I'd rather use --version,
9678 # but apparently some GNU ld's only accept -v.
9679 # Break only if it was the GNU/non-GNU ld that we prefer.
9680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9681 *GNU* | *'with BFD'*)
9682 test "$with_gnu_ld" != no && break
9685 test "$with_gnu_ld" != yes && break
9692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9697 if test -n "$LD"; then
9698 echo "$as_me:$LINENO: result: $LD" >&5
9699 echo "${ECHO_T}$LD" >&6
9701 echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6
9704 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9705 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9706 { (exit 1); exit 1; }; }
9707 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9708 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9709 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9713 case `$LD -v 2>&1 </dev/null` in
9714 *GNU* | *'with BFD'*)
9715 lt_cv_prog_gnu_ld=yes
9718 lt_cv_prog_gnu_ld=no
9722 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9723 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9724 with_gnu_ld=$lt_cv_prog_gnu_ld
9728 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9729 # archiving commands below assume that GNU ld is being used.
9730 if test "$with_gnu_ld" = yes; then
9731 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732 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'
9734 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9737 # If archive_cmds runs LD, not CC, wlarc should be empty
9738 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9739 # investigate it a little bit more. (MM)
9742 # ancient GNU ld didn't support --whole-archive et. al.
9743 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9744 grep 'no-whole-archive' > /dev/null; then
9745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9747 whole_archive_flag_spec_CXX=
9753 # A generic and very simple default shared library creation
9754 # command for GNU C++ for the case where it uses the native
9755 # linker, instead of GNU ld. If possible, this setting should
9756 # overridden to take advantage of the native linker features on
9757 # the platform it is being used on.
9758 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9761 # Commands to make compiler produce verbose output that lists
9762 # what "hidden" libraries, object files and flags are used when
9763 # linking a shared library.
9764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9772 # PORTME: fill in a description of your system's C++ link characteristics
9773 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9774 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9778 # FIXME: insert proper C++ library support
9782 if test "$host_cpu" = ia64; then
9783 # On IA64, the linker does run time linking by default, so we don't
9784 # have to do anything special.
9785 aix_use_runtimelinking=no
9786 exp_sym_flag='-Bexport'
9789 aix_use_runtimelinking=no
9791 # Test if we are trying to use run time linking or normal
9792 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9793 # need to do runtime linking.
9794 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9795 for ld_flag in $LDFLAGS; do
9798 aix_use_runtimelinking=yes
9805 exp_sym_flag='-bexport'
9806 no_entry_flag='-bnoentry'
9809 # When large executables or shared objects are built, AIX ld can
9810 # have problems creating the table of contents. If linking a library
9811 # or program results in "error TOC overflow" add -mminimal-toc to
9812 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9813 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9816 hardcode_direct_CXX=yes
9817 hardcode_libdir_separator_CXX=':'
9818 link_all_deplibs_CXX=yes
9820 if test "$GXX" = yes; then
9821 case $host_os in aix4.012|aix4.012.*)
9822 # We only want to do this on AIX 4.2 and lower, the check
9823 # below for broken collect2 doesn't work under 4.3+
9824 collect2name=`${CC} -print-prog-name=collect2`
9825 if test -f "$collect2name" && \
9826 strings "$collect2name" | grep resolve_lib_name >/dev/null
9828 # We have reworked collect2
9829 hardcode_direct_CXX=yes
9831 # We have old collect2
9832 hardcode_direct_CXX=unsupported
9833 # It fails to find uninstalled libraries when the uninstalled
9834 # path is not listed in the libpath. Setting hardcode_minus_L
9835 # to unsupported forces relinking
9836 hardcode_minus_L_CXX=yes
9837 hardcode_libdir_flag_spec_CXX='-L$libdir'
9838 hardcode_libdir_separator_CXX=
9841 shared_flag='-shared'
9844 if test "$host_cpu" = ia64; then
9845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9846 # chokes on -Wl,-G. The following line is correct:
9849 if test "$aix_use_runtimelinking" = yes; then
9850 shared_flag='${wl}-G'
9852 shared_flag='${wl}-bM:SRE'
9857 # It seems that -bexpall does not export symbols beginning with
9858 # underscore (_), so it is better to generate a list of symbols to export.
9859 always_export_symbols_CXX=yes
9860 if test "$aix_use_runtimelinking" = yes; then
9861 # Warning - without using the other runtime loading flags (-brtl),
9862 # -berok will link without error, but may produce a broken library.
9863 allow_undefined_flag_CXX='-berok'
9864 # Determine the default libpath from the value encoded in an empty executable.
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest$ac_exeext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9904 # Check for a 64-bit object if we didn't find anything.
9905 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; }
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9912 rm -f conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9916 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9918 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9920 if test "$host_cpu" = ia64; then
9921 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9922 allow_undefined_flag_CXX="-z nodefs"
9923 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9925 # Determine the default libpath from the value encoded in an empty executable.
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9965 # Check for a 64-bit object if we didn't find anything.
9966 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; }
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9978 # Warning - without using the other run time loading flags,
9979 # -berok will link without error, but may produce a broken library.
9980 no_undefined_flag_CXX=' ${wl}-bernotok'
9981 allow_undefined_flag_CXX=' ${wl}-berok'
9982 # -bexpall does not export symbols beginning with underscore (_)
9983 always_export_symbols_CXX=yes
9984 # Exported symbols can be pulled into shared objects from archives
9985 whole_archive_flag_spec_CXX=' '
9986 archive_cmds_need_lc_CXX=yes
9987 # This is similar to how AIX traditionally builds it's shared libraries.
9988 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9993 case $cc_basename in
9995 # FIXME: insert proper C++ library support
10001 cygwin* | mingw* | pw32*)
10002 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10003 # as there is no search path for DLLs.
10004 hardcode_libdir_flag_spec_CXX='-L$libdir'
10005 allow_undefined_flag_CXX=unsupported
10006 always_export_symbols_CXX=no
10007 enable_shared_with_static_runtimes_CXX=yes
10009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10010 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10011 # If the export-symbols file already is a .def file (1st line
10012 # is EXPORTS), use it as is; otherwise, prepend...
10013 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10014 cp $export_symbols $output_objdir/$soname.def;
10016 echo EXPORTS > $output_objdir/$soname.def;
10017 cat $export_symbols >> $output_objdir/$soname.def;
10019 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10025 darwin* | rhapsody*)
10026 if test "$GXX" = yes; then
10027 archive_cmds_need_lc_CXX=no
10029 rhapsody* | darwin1.[012])
10030 allow_undefined_flag_CXX='-undefined suppress'
10033 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10034 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10036 case ${MACOSX_DEPLOYMENT_TARGET} in
10038 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10041 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10047 lt_int_apple_cc_single_mod=no
10048 output_verbose_link_cmd='echo'
10049 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10050 lt_int_apple_cc_single_mod=yes
10052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10053 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10055 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10057 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10060 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10061 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}'
10063 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10065 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}'
10066 hardcode_direct_CXX=no
10067 hardcode_automatic_CXX=yes
10068 hardcode_shlibpath_var_CXX=unsupported
10069 whole_archive_flag_spec_CXX='-all_load $convenience'
10070 link_all_deplibs_CXX=yes
10077 case $cc_basename in
10079 # FIXME: insert proper C++ library support
10083 # Green Hills C++ Compiler
10084 # FIXME: insert proper C++ library support
10088 # FIXME: insert proper C++ library support
10094 # C++ shared libraries reported to be fairly broken before switch to ELF
10098 archive_cmds_need_lc_CXX=no
10100 freebsd* | kfreebsd*-gnu)
10101 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10108 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10109 hardcode_libdir_separator_CXX=:
10110 export_dynamic_flag_spec_CXX='${wl}-E'
10111 hardcode_direct_CXX=yes
10112 hardcode_minus_L_CXX=yes # Not in the search PATH,
10113 # but as the default
10114 # location of the library.
10116 case $cc_basename in
10118 # FIXME: insert proper C++ library support
10122 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'
10123 # Commands to make compiler produce verbose output that lists
10124 # what "hidden" libraries, object files and flags are used when
10125 # linking a shared library.
10127 # There doesn't appear to be a way to prevent this compiler from
10128 # explicitly linking system object files so we need to strip them
10129 # from the output so that they don't get included in the library
10131 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'
10134 if test "$GXX" = yes; then
10135 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'
10137 # FIXME: insert proper C++ library support
10144 if test $with_gnu_ld = no; then
10145 case "$host_cpu" in
10147 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10148 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10149 hardcode_libdir_separator_CXX=:
10152 hardcode_libdir_flag_spec_CXX='-L$libdir'
10155 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10156 hardcode_libdir_separator_CXX=:
10157 export_dynamic_flag_spec_CXX='${wl}-E'
10161 case "$host_cpu" in
10163 hardcode_direct_CXX=no
10164 hardcode_shlibpath_var_CXX=no
10167 hardcode_direct_CXX=no
10168 hardcode_shlibpath_var_CXX=no
10169 hardcode_minus_L_CXX=yes # Not in the search PATH,
10170 # but as the default
10171 # location of the library.
10174 hardcode_direct_CXX=yes
10175 hardcode_minus_L_CXX=yes # Not in the search PATH,
10176 # but as the default
10177 # location of the library.
10181 case $cc_basename in
10183 # FIXME: insert proper C++ library support
10187 case "$host_cpu" in
10189 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10195 # Commands to make compiler produce verbose output that lists
10196 # what "hidden" libraries, object files and flags are used when
10197 # linking a shared library.
10199 # There doesn't appear to be a way to prevent this compiler from
10200 # explicitly linking system object files so we need to strip them
10201 # from the output so that they don't get included in the library
10203 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'
10206 if test "$GXX" = yes; then
10207 if test $with_gnu_ld = no; then
10208 case "$host_cpu" in
10210 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10213 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'
10218 # FIXME: insert proper C++ library support
10225 case $cc_basename in
10228 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10230 # Archives containing C++ object files must be created using
10231 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10232 # necessary to make sure instantiated templates are included
10234 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10237 if test "$GXX" = yes; then
10238 if test "$with_gnu_ld" = no; then
10239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10241 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'
10244 link_all_deplibs_CXX=yes
10247 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10248 hardcode_libdir_separator_CXX=:
10251 case $cc_basename in
10253 # Kuck and Associates, Inc. (KAI) C++ Compiler
10255 # KCC will only create a shared library if the output file
10256 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10257 # to its proper name (with version) after linking.
10258 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'
10259 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'
10260 # Commands to make compiler produce verbose output that lists
10261 # what "hidden" libraries, object files and flags are used when
10262 # linking a shared library.
10264 # There doesn't appear to be a way to prevent this compiler from
10265 # explicitly linking system object files so we need to strip them
10266 # from the output so that they don't get included in the library
10268 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'
10270 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10273 # Archives containing C++ object files must be created using
10274 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10275 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10280 archive_cmds_need_lc_CXX=no
10281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282 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'
10283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10289 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290 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'
10292 runpath_var=LD_RUN_PATH
10293 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10294 hardcode_libdir_separator_CXX=:
10296 # Commands to make compiler produce verbose output that lists
10297 # what "hidden" libraries, object files and flags are used when
10298 # linking a shared library.
10300 # There doesn't appear to be a way to prevent this compiler from
10301 # explicitly linking system object files so we need to strip them
10302 # from the output so that they don't get included in the library
10304 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'
10309 # FIXME: insert proper C++ library support
10313 # FIXME: insert proper C++ library support
10317 case $cc_basename in
10319 # FIXME: insert proper C++ library support
10323 # FIXME: insert proper C++ library support
10328 netbsd* | knetbsd*-gnu)
10329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10330 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10332 hardcode_libdir_flag_spec_CXX='-R$libdir'
10333 hardcode_direct_CXX=yes
10334 hardcode_shlibpath_var_CXX=no
10336 # Workaround some broken pre-1.5 toolchains
10337 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10340 case $cc_basename in
10342 # Kuck and Associates, Inc. (KAI) C++ Compiler
10344 # KCC will only create a shared library if the output file
10345 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10346 # to its proper name (with version) after linking.
10347 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'
10349 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10350 hardcode_libdir_separator_CXX=:
10352 # Archives containing C++ object files must be created using
10353 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10354 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10358 # Rational C++ 2.4.1
10359 # FIXME: insert proper C++ library support
10363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10364 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10367 hardcode_libdir_separator_CXX=:
10369 # Commands to make compiler produce verbose output that lists
10370 # what "hidden" libraries, object files and flags are used when
10371 # linking a shared library.
10373 # There doesn't appear to be a way to prevent this compiler from
10374 # explicitly linking system object files so we need to strip them
10375 # from the output so that they don't get included in the library
10377 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'
10380 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10381 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10382 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10385 hardcode_libdir_separator_CXX=:
10387 # Commands to make compiler produce verbose output that lists
10388 # what "hidden" libraries, object files and flags are used when
10389 # linking a shared library.
10390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10393 # FIXME: insert proper C++ library support
10400 case $cc_basename in
10402 # Kuck and Associates, Inc. (KAI) C++ Compiler
10404 # KCC will only create a shared library if the output file
10405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10406 # to its proper name (with version) after linking.
10407 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'
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10410 hardcode_libdir_separator_CXX=:
10412 # Archives containing C++ object files must be created using
10413 # the KAI C++ compiler.
10414 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10417 # Rational C++ 2.4.1
10418 # FIXME: insert proper C++ library support
10422 allow_undefined_flag_CXX=' -expect_unresolved \*'
10423 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10424 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10425 echo "-hidden">> $lib.exp~
10426 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10429 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10430 hardcode_libdir_separator_CXX=:
10432 # Commands to make compiler produce verbose output that lists
10433 # what "hidden" libraries, object files and flags are used when
10434 # linking a shared library.
10436 # There doesn't appear to be a way to prevent this compiler from
10437 # explicitly linking system object files so we need to strip them
10438 # from the output so that they don't get included in the library
10440 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'
10443 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10444 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10445 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10447 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10448 hardcode_libdir_separator_CXX=:
10450 # Commands to make compiler produce verbose output that lists
10451 # what "hidden" libraries, object files and flags are used when
10452 # linking a shared library.
10453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10456 # FIXME: insert proper C++ library support
10463 # FIXME: insert proper C++ library support
10467 archive_cmds_need_lc_CXX=no
10468 case $cc_basename in
10470 # FIXME: insert proper C++ library support
10474 # FIXME: insert proper C++ library support
10480 case $cc_basename in
10483 # FIXME: insert proper C++ library support
10488 # FIXME: insert proper C++ library support
10492 # FIXME: insert proper C++ library support
10498 case $cc_basename in
10500 # Sun C++ 4.2, 5.x and Centerline C++
10501 no_undefined_flag_CXX=' -zdefs'
10502 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10503 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10504 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10506 hardcode_libdir_flag_spec_CXX='-R$libdir'
10507 hardcode_shlibpath_var_CXX=no
10509 solaris2.0-5 | solaris2.0-5.*) ;;
10511 # The C++ compiler is used as linker so we must use $wl
10512 # flag to pass the commands to the underlying system
10514 # Supported since Solaris 2.6 (maybe 2.5.1?)
10515 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10518 link_all_deplibs_CXX=yes
10520 # Commands to make compiler produce verbose output that lists
10521 # what "hidden" libraries, object files and flags are used when
10522 # linking a shared library.
10524 # There doesn't appear to be a way to prevent this compiler from
10525 # explicitly linking system object files so we need to strip them
10526 # from the output so that they don't get included in the library
10528 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10530 # Archives containing C++ object files must be created using
10531 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10532 # necessary to make sure instantiated templates are included
10534 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10537 # Green Hills C++ Compiler
10538 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10540 # The C++ compiler must be used to create the archive.
10541 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10544 # GNU C++ compiler with Solaris linker
10545 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10546 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10547 if $CC --version | grep -v '^2\.7' > /dev/null; then
10548 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10549 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10550 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10552 # Commands to make compiler produce verbose output that lists
10553 # what "hidden" libraries, object files and flags are used when
10554 # linking a shared library.
10555 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10557 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10559 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10560 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10561 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10566 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10569 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10574 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10575 archive_cmds_need_lc_CXX=no
10578 case $cc_basename in
10580 # NonStop-UX NCC 3.20
10581 # FIXME: insert proper C++ library support
10585 # FIXME: insert proper C++ library support
10591 # FIXME: insert proper C++ library support
10595 # FIXME: insert proper C++ library support
10599 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10600 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10601 test "$ld_shlibs_CXX" = no && can_build_shared=no
10607 cat > conftest.$ac_ext <<EOF
10611 Foo (void) { a = 0; }
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; then
10622 # Parse the compiler output and extract the necessary
10623 # objects, libraries and library flags.
10625 # Sentinel used to keep track of whether or not we are before
10626 # the conftest object file.
10627 pre_test_object_deps_done=no
10629 # The `*' in the case matches for architectures that use `case' in
10630 # $output_verbose_cmd can trigger glob expansion during the loop
10631 # eval without this substitution.
10632 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10634 for p in `eval $output_verbose_link_cmd`; do
10638 # Some compilers place space between "-{L,R}" and the path.
10639 # Remove the space.
10640 if test $p = "-L" \
10641 || test $p = "-R"; then
10648 if test "$pre_test_object_deps_done" = no; then
10651 # Internal compiler library paths should come after those
10652 # provided the user. The postdeps already come after the
10653 # user supplied libs so there is no need to process them.
10654 if test -z "$compiler_lib_search_path_CXX"; then
10655 compiler_lib_search_path_CXX="${prev}${p}"
10657 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10660 # The "-l" case would never come before the object being
10661 # linked, so don't bother handling this case.
10664 if test -z "$postdeps_CXX"; then
10665 postdeps_CXX="${prev}${p}"
10667 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10673 # This assumes that the test object file only shows up
10674 # once in the compiler output.
10675 if test "$p" = "conftest.$objext"; then
10676 pre_test_object_deps_done=yes
10680 if test "$pre_test_object_deps_done" = no; then
10681 if test -z "$predep_objects_CXX"; then
10682 predep_objects_CXX="$p"
10684 predep_objects_CXX="$predep_objects_CXX $p"
10687 if test -z "$postdep_objects_CXX"; then
10688 postdep_objects_CXX="$p"
10690 postdep_objects_CXX="$postdep_objects_CXX $p"
10695 *) ;; # Ignore the rest.
10703 echo "libtool.m4: error: problem compiling CXX test program"
10706 $rm -f confest.$objext
10708 case " $postdeps_CXX " in
10709 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10712 lt_prog_compiler_wl_CXX=
10713 lt_prog_compiler_pic_CXX=
10714 lt_prog_compiler_static_CXX=
10716 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10719 # C++ specific cases for pic, static, wl, etc.
10720 if test "$GXX" = yes; then
10721 lt_prog_compiler_wl_CXX='-Wl,'
10722 lt_prog_compiler_static_CXX='-static'
10726 # All AIX code is PIC.
10727 if test "$host_cpu" = ia64; then
10728 # AIX 5 now supports IA64 processor
10729 lt_prog_compiler_static_CXX='-Bstatic'
10733 # FIXME: we need at least 68020 code to build shared libraries, but
10734 # adding the `-m68020' flag to GCC prevents building anything better,
10736 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10738 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10739 # PIC is the default for these OSes.
10741 mingw* | os2* | pw32*)
10742 # This hack is so that the source file can tell whether it is being
10743 # built for inclusion in a dll (and should export symbols for example).
10744 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10746 darwin* | rhapsody*)
10747 # PIC is the default on this platform
10748 # Common symbols not allowed in MH_DYLIB files
10749 lt_prog_compiler_pic_CXX='-fno-common'
10752 # DJGPP does not support shared libraries at all
10753 lt_prog_compiler_pic_CXX=
10756 if test -d /usr/nec; then
10757 lt_prog_compiler_pic_CXX=-Kconform_pic
10761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10762 # not for PA HP-UX.
10763 case "$host_cpu" in
10767 lt_prog_compiler_pic_CXX='-fPIC'
10772 lt_prog_compiler_pic_CXX='-fPIC'
10778 # All AIX code is PIC.
10779 if test "$host_cpu" = ia64; then
10780 # AIX 5 now supports IA64 processor
10781 lt_prog_compiler_static_CXX='-Bstatic'
10783 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10787 case $cc_basename in
10789 # Green Hills C++ Compiler
10790 # _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"
10795 case $cc_basename in
10797 lt_prog_compiler_pic_CXX='-KPIC'
10800 # Green Hills C++ Compiler
10801 lt_prog_compiler_pic_CXX='-pic'
10807 freebsd* | kfreebsd*-gnu)
10808 # FreeBSD uses GNU C++
10810 hpux9* | hpux10* | hpux11*)
10811 case $cc_basename in
10813 lt_prog_compiler_wl_CXX='-Wl,'
10814 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10815 if test "$host_cpu" != ia64; then
10816 lt_prog_compiler_pic_CXX='+Z'
10820 lt_prog_compiler_wl_CXX='-Wl,'
10821 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10822 case "$host_cpu" in
10827 lt_prog_compiler_pic_CXX='+Z'
10835 irix5* | irix6* | nonstopux*)
10836 case $cc_basename in
10838 lt_prog_compiler_wl_CXX='-Wl,'
10839 lt_prog_compiler_static_CXX='-non_shared'
10840 # CC pic flag -KPIC is the default.
10847 case $cc_basename in
10850 lt_prog_compiler_wl_CXX='--backend -Wl,'
10851 lt_prog_compiler_pic_CXX='-fPIC'
10855 lt_prog_compiler_wl_CXX='-Wl,'
10856 lt_prog_compiler_pic_CXX='-KPIC'
10857 lt_prog_compiler_static_CXX='-static'
10861 # Make sure the PIC flag is empty. It appears that all Alpha
10862 # Linux and Compaq Tru64 Unix objects are PIC.
10863 lt_prog_compiler_pic_CXX=
10864 lt_prog_compiler_static_CXX='-non_shared'
10875 case $cc_basename in
10877 lt_prog_compiler_pic_CXX='-W c,exportall'
10883 netbsd* | knetbsd*-gnu)
10885 osf3* | osf4* | osf5*)
10886 case $cc_basename in
10888 lt_prog_compiler_wl_CXX='--backend -Wl,'
10891 # Rational C++ 2.4.1
10892 lt_prog_compiler_pic_CXX='-pic'
10895 # Digital/Compaq C++
10896 lt_prog_compiler_wl_CXX='-Wl,'
10897 # Make sure the PIC flag is empty. It appears that all Alpha
10898 # Linux and Compaq Tru64 Unix objects are PIC.
10899 lt_prog_compiler_pic_CXX=
10900 lt_prog_compiler_static_CXX='-non_shared'
10909 case $cc_basename in
10911 lt_prog_compiler_pic_CXX='-fPIC'
10918 case $cc_basename in
10920 # Sun C++ 4.2, 5.x and Centerline C++
10921 lt_prog_compiler_pic_CXX='-KPIC'
10922 lt_prog_compiler_static_CXX='-Bstatic'
10923 lt_prog_compiler_wl_CXX='-Qoption ld '
10926 # Green Hills C++ Compiler
10927 lt_prog_compiler_pic_CXX='-PIC'
10934 case $cc_basename in
10937 lt_prog_compiler_pic_CXX='-pic'
10938 lt_prog_compiler_static_CXX='-Bstatic'
10942 lt_prog_compiler_pic_CXX='-pic'
10949 case $cc_basename in
10951 # NonStop-UX NCC 3.20
10952 lt_prog_compiler_pic_CXX='-KPIC'
10963 lt_prog_compiler_can_build_shared_CXX=no
10968 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10969 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10972 # Check to make sure the PIC flag actually works.
10974 if test -n "$lt_prog_compiler_pic_CXX"; then
10976 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10978 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 lt_prog_compiler_pic_works_CXX=no
10982 ac_outfile=conftest.$ac_objext
10983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10984 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10985 # Insert the option either (1) after the last *FLAGS variable, or
10986 # (2) before a word containing "conftest.", or (3) at the end.
10987 # Note that $ac_compile itself does not contain backslashes and begins
10988 # with a dollar sign (not a hyphen), so the echo should work correctly.
10989 # The option is referenced via a variable to avoid confusing sed.
10990 lt_compile=`echo "$ac_compile" | $SED \
10991 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10993 -e 's:$: $lt_compiler_flag:'`
10994 (eval echo "\"\$as_me:10994: $lt_compile\"" >&5)
10995 (eval "$lt_compile" 2>conftest.err)
10997 cat conftest.err >&5
10998 echo "$as_me:10998: \$? = $ac_status" >&5
10999 if (exit $ac_status) && test -s "$ac_outfile"; then
11000 # The compiler can only warn and ignore the option if not recognized
11001 # So say no if there are warnings
11002 if test ! -s conftest.err; then
11003 lt_prog_compiler_pic_works_CXX=yes
11009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11010 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11012 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11013 case $lt_prog_compiler_pic_CXX in
11015 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11018 lt_prog_compiler_pic_CXX=
11019 lt_prog_compiler_can_build_shared_CXX=no
11024 # For platforms which do not support PIC, -DPIC is meaningless:
11026 lt_prog_compiler_pic_CXX=
11029 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11033 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11034 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11035 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 lt_cv_prog_compiler_c_o_CXX=no
11039 $rm -r conftest 2>/dev/null
11043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11045 lt_compiler_flag="-o out/conftest2.$ac_objext"
11046 # Insert the option either (1) after the last *FLAGS variable, or
11047 # (2) before a word containing "conftest.", or (3) at the end.
11048 # Note that $ac_compile itself does not contain backslashes and begins
11049 # with a dollar sign (not a hyphen), so the echo should work correctly.
11050 lt_compile=`echo "$ac_compile" | $SED \
11051 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11053 -e 's:$: $lt_compiler_flag:'`
11054 (eval echo "\"\$as_me:11054: $lt_compile\"" >&5)
11055 (eval "$lt_compile" 2>out/conftest.err)
11057 cat out/conftest.err >&5
11058 echo "$as_me:11058: \$? = $ac_status" >&5
11059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11061 # The compiler can only warn and ignore the option if not recognized
11062 # So say no if there are warnings
11063 if test ! -s out/conftest.err; then
11064 lt_cv_prog_compiler_c_o_CXX=yes
11069 # SGI C++ compiler will create directory out/ii_files/ for
11070 # template instantiation
11071 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11072 $rm out/* && rmdir out
11078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11082 hard_links="nottested"
11083 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11084 # do not overwrite the value of need_locks provided by the user
11085 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11091 ln conftest.a conftest.b 2>&5 || hard_links=no
11092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11093 echo "$as_me:$LINENO: result: $hard_links" >&5
11094 echo "${ECHO_T}$hard_links" >&6
11095 if test "$hard_links" = no; then
11096 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11107 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11110 # If we're using GNU nm, then we don't want the "-C" option.
11111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11112 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11113 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'
11115 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'
11119 export_symbols_cmds_CXX="$ltdll_cmds"
11122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11125 link_all_deplibs_CXX=no
11128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11132 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11133 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11134 test "$ld_shlibs_CXX" = no && can_build_shared=no
11136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11137 if test "$GCC" = yes; then
11138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11142 # Do we need to explicitly link libc?
11144 case "x$archive_cmds_need_lc_CXX" in
11146 # Assume -lc should be added
11147 archive_cmds_need_lc_CXX=yes
11149 if test "$enable_shared" = yes && test "$GCC" = yes; then
11150 case $archive_cmds_CXX in
11152 # FIXME: we may have to deal with multi-command sequences.
11155 # Test whether the compiler implicitly links with -lc since on some
11156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11157 # to ld, don't add -lc before -lgcc.
11158 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11159 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } 2>conftest.err; then
11170 libobjs=conftest.$ac_objext
11172 wl=$lt_prog_compiler_wl_CXX
11178 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11179 allow_undefined_flag_CXX=
11180 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11181 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }
11186 archive_cmds_need_lc_CXX=no
11188 archive_cmds_need_lc_CXX=yes
11190 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11192 cat conftest.err 1>&5
11195 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11196 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11203 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11204 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11205 library_names_spec=
11206 libname_spec='lib$name'
11210 postuninstall_cmds=
11214 shlibpath_overrides_runpath=unknown
11216 dynamic_linker="$host_os ld.so"
11217 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11218 if test "$GCC" = yes; then
11219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11220 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11221 # if the path contains ";" then we assume it to be the separator
11222 # otherwise default to the standard path separator (i.e. ":") - it is
11223 # assumed that no part of a normal pathname contains ";" but that should
11224 # okay in the real world where ";" in dirpaths is itself problematic.
11225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11232 need_lib_prefix=unknown
11233 hardcode_into_libs=no
11235 # when you set need_version to no, make sure it does not cause -set_version
11236 # flags to be left without arguments
11237 need_version=unknown
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11243 shlibpath_var=LIBPATH
11245 # AIX 3 has no versioning support, so we append a major version to the name.
11246 soname_spec='${libname}${release}${shared_ext}$major'
11253 hardcode_into_libs=yes
11254 if test "$host_cpu" = ia64; then
11255 # AIX 5 supports IA64
11256 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11257 shlibpath_var=LD_LIBRARY_PATH
11259 # With GCC up to 2.95.x, collect2 would create an import file
11260 # for dependence libraries. The import file would start with
11261 # the line `#! .'. This would cause the generated library to
11262 # depend on `.', always an invalid library. This was fixed in
11263 # development snapshots of GCC prior to 3.0.
11265 aix4 | aix4.[01] | aix4.[01].*)
11266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11268 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11271 can_build_shared=no
11275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11276 # soname into executable. Probably we can add versioning support to
11277 # collect2, so additional links can be useful in future.
11278 if test "$aix_use_runtimelinking" = yes; then
11279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11280 # instead of lib<name>.a to let people know that these are not
11281 # typical AIX shared libraries.
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11284 # We preserve .a as extension for shared libraries through AIX4.2
11285 # and later when we are not doing run time linking.
11286 library_names_spec='${libname}${release}.a $libname.a'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11289 shlibpath_var=LIBPATH
11294 library_names_spec='$libname.ixlibrary $libname.a'
11295 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11296 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'
11300 library_names_spec='${libname}${shared_ext}'
11301 dynamic_linker="$host_os ld.so"
11302 shlibpath_var=LIBRARY_PATH
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11314 # the default ld.so.conf also contains /usr/contrib/lib and
11315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11316 # libtool to hard-code these into programs
11319 cygwin* | mingw* | pw32*)
11320 version_type=windows
11325 case $GCC,$host_os in
11326 yes,cygwin* | yes,mingw* | yes,pw32*)
11327 library_names_spec='$libname.dll.a'
11328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11329 postinstall_cmds='base_file=`basename \${file}`~
11330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11331 dldir=$destdir/`dirname \$dlpath`~
11332 test -d \$dldir || mkdir -p \$dldir~
11333 $install_prog $dir/$dlname \$dldir/$dlname'
11334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11335 dlpath=$dir/\$dldll~
11337 shlibpath_overrides_runpath=yes
11341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11342 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11343 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11346 # MinGW DLLs use traditional 'lib' prefix
11347 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11348 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11349 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11350 # It is most probably a Windows format PATH printed by
11351 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11352 # path with ; separators, and with drive letters. We can handle the
11353 # drive letters (cygwin fileutils understands them), so leave them,
11354 # especially as we might pass files found there to a mingw objdump,
11355 # which wouldn't understand a cygwinified path. Ahh.
11356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11362 # pw32 DLLs use 'pw' prefix rather than 'lib'
11363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11369 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11372 dynamic_linker='Win32 ld.exe'
11373 # FIXME: first we should search . and the directory the executable is in
11377 darwin* | rhapsody*)
11378 dynamic_linker="$host_os dyld"
11379 version_type=darwin
11382 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11383 soname_spec='${libname}${release}${major}$shared_ext'
11384 shlibpath_overrides_runpath=yes
11385 shlibpath_var=DYLD_LIBRARY_PATH
11386 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11387 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11388 if test "$GCC" = yes; then
11389 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"`
11391 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11401 soname_spec='${libname}${release}${shared_ext}$major'
11402 shlibpath_var=LD_LIBRARY_PATH
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=no
11417 hardcode_into_libs=yes
11418 dynamic_linker='GNU ld.so'
11422 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11423 version_type=freebsd-$objformat
11424 case $version_type in
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11435 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11440 freebsd3.01* | freebsdelf3.01*)
11441 shlibpath_overrides_runpath=yes
11442 hardcode_into_libs=yes
11445 shlibpath_overrides_runpath=no
11446 hardcode_into_libs=yes
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 hardcode_into_libs=yes
11461 hpux9* | hpux10* | hpux11*)
11462 # Give a soname corresponding to the major version so that dld.sl refuses to
11463 # link against other versions.
11467 case "$host_cpu" in
11470 hardcode_into_libs=yes
11471 dynamic_linker="$host_os dld.so"
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 if test "X$HPUX_IA64_MODE" = X32; then
11477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11485 hardcode_into_libs=yes
11486 dynamic_linker="$host_os dld.sl"
11487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11496 dynamic_linker="$host_os dld.sl"
11497 shlibpath_var=SHLIB_PATH
11498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11504 postinstall_cmds='chmod 555 $lib'
11507 irix5* | irix6* | nonstopux*)
11509 nonstopux*) version_type=nonstopux ;;
11511 if test "$lt_cv_prog_gnu_ld" = yes; then
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11522 irix5* | nonstopux*)
11523 libsuff= shlibsuff=
11526 case $LD in # libtool.m4 will add one of these switches to LD
11527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11528 libsuff= shlibsuff= libmagic=32-bit;;
11529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11530 libsuff=32 shlibsuff=N32 libmagic=N32;;
11531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11533 *) libsuff= shlibsuff= libmagic=never-match;;
11537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11538 shlibpath_overrides_runpath=no
11539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11541 hardcode_into_libs=yes
11544 # No shared lib support for Linux oldld, aout, or coff.
11545 linux*oldld* | linux*aout* | linux*coff*)
11549 # This must be Linux ELF.
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=no
11559 # This implies no fast_install, which is unacceptable.
11560 # Some rework will be needed to allow for fast_install
11561 # before this can be enabled.
11562 hardcode_into_libs=yes
11564 # Append ld.so.conf contents to the search path
11565 if test -f /etc/ld.so.conf; then
11566 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11570 # We used to test for /lib/ld.so.1 and disable shared libraries on
11571 # powerpc, because MkLinux only supported shared libraries with the
11572 # GNU dynamic linker. Since this was broken with cross compilers,
11573 # most powerpc-linux boxes support dynamic linking these days and
11574 # people can always --disable-shared, the test was removed, and we
11575 # assume the GNU/Linux dynamic linker is in use.
11576 dynamic_linker='GNU/Linux ld.so'
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=no
11587 hardcode_into_libs=yes
11588 dynamic_linker='GNU ld.so'
11595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11598 dynamic_linker='NetBSD (a.out) ld.so'
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 dynamic_linker='NetBSD ld.elf_so'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes
11606 hardcode_into_libs=yes
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=yes
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=yes
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11635 openbsd2.[89] | openbsd2.[89].*)
11636 shlibpath_overrides_runpath=no
11639 shlibpath_overrides_runpath=yes
11643 shlibpath_overrides_runpath=yes
11648 libname_spec='$name'
11651 library_names_spec='$libname${shared_ext} $libname.a'
11652 dynamic_linker='OS/2 ld.exe'
11653 shlibpath_var=LIBPATH
11656 osf3* | osf4* | osf5*)
11660 soname_spec='${libname}${release}${shared_ext}$major'
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671 shlibpath_var=LD_LIBRARY_PATH
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=yes
11682 hardcode_into_libs=yes
11683 # ldd complains unless libraries are executable
11684 postinstall_cmds='chmod +x $lib'
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=yes
11693 if test "$with_gnu_ld" = yes; then
11699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 case $host_vendor in
11706 shlibpath_overrides_runpath=no
11708 export_dynamic_flag_spec='${wl}-Blargedynsym'
11709 runpath_var=LD_RUN_PATH
11717 shlibpath_overrides_runpath=no
11718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11724 if test -d /usr/nec ;then
11726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11727 soname_spec='$libname${shared_ext}.$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 shlibpath_var=LD_LIBRARY_PATH
11743 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11744 echo "${ECHO_T}$dynamic_linker" >&6
11745 test "$dynamic_linker" = no && can_build_shared=no
11747 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11748 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11749 hardcode_action_CXX=
11750 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11751 test -n "$runpath_var CXX" || \
11752 test "X$hardcode_automatic_CXX"="Xyes" ; then
11754 # We can hardcode non-existant directories.
11755 if test "$hardcode_direct_CXX" != no &&
11756 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11757 # have to relink, otherwise we might link with an installed library
11758 # when we should be linking with a yet-to-be-installed one
11759 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11760 test "$hardcode_minus_L_CXX" != no; then
11761 # Linking always hardcodes the temporary library directory.
11762 hardcode_action_CXX=relink
11764 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11765 hardcode_action_CXX=immediate
11768 # We cannot hardcode anything, or else we can only hardcode existing
11770 hardcode_action_CXX=unsupported
11772 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11773 echo "${ECHO_T}$hardcode_action_CXX" >&6
11775 if test "$hardcode_action_CXX" = relink; then
11776 # Fast installation is not supported
11777 enable_fast_install=no
11778 elif test "$shlibpath_overrides_runpath" = yes ||
11779 test "$enable_shared" = no; then
11780 # Fast installation is not necessary
11781 enable_fast_install=needless
11786 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11787 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11788 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11789 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11790 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11791 echo "$as_me:$LINENO: result: yes" >&5
11792 echo "${ECHO_T}yes" >&6
11794 # FIXME - insert some real tests, host_os isn't really good enough
11797 if test -n "$STRIP" ; then
11798 striplib="$STRIP -x"
11799 echo "$as_me:$LINENO: result: yes" >&5
11800 echo "${ECHO_T}yes" >&6
11802 echo "$as_me:$LINENO: result: no" >&5
11803 echo "${ECHO_T}no" >&6
11807 echo "$as_me:$LINENO: result: no" >&5
11808 echo "${ECHO_T}no" >&6
11813 if test "x$enable_dlopen" != xyes; then
11814 enable_dlopen=unknown
11815 enable_dlopen_self=unknown
11816 enable_dlopen_self_static=unknown
11823 lt_cv_dlopen="load_add_on"
11825 lt_cv_dlopen_self=yes
11829 lt_cv_dlopen="LoadLibrary"
11834 lt_cv_dlopen="dlopen"
11839 # if libdl is installed we need to link against it
11840 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 ac_check_lib_save_LIBS=$LIBS
11847 cat >conftest.$ac_ext <<_ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11854 /* Override any gcc2 internal prototype to avoid an error. */
11858 /* We use char because int might match the return type of a gcc2
11859 builtin and then its argument prototype would still apply. */
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_lib_dl_dlopen=yes
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 ac_cv_lib_dl_dlopen=no
11897 rm -f conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11902 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11903 if test $ac_cv_lib_dl_dlopen = yes; then
11904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11907 lt_cv_dlopen="dyld"
11909 lt_cv_dlopen_self=yes
11916 echo "$as_me:$LINENO: checking for shl_load" >&5
11917 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11918 if test "${ac_cv_func_shl_load+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929 #define shl_load innocuous_shl_load
11931 /* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char shl_load (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11937 # include <limits.h>
11939 # include <assert.h>
11944 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11952 /* The GNU C library defines this for functions which it implements
11953 to always fail with ENOSYS. Some functions are actually named
11954 something starting with __ and the normal name is an alias. */
11955 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11958 char (*f) () = shl_load;
11967 return f != shl_load;
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974 (eval $ac_link) 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest$ac_exeext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 ac_cv_func_shl_load=yes
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ac_cv_func_shl_load=no
12000 rm -f conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12004 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12005 if test $ac_cv_func_shl_load = yes; then
12006 lt_cv_dlopen="shl_load"
12008 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12009 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12010 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_check_lib_save_LIBS=$LIBS
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_cv_lib_dld_shl_load=yes
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ac_cv_lib_dld_shl_load=no
12065 rm -f conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12069 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12070 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12071 if test $ac_cv_lib_dld_shl_load = yes; then
12072 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12074 echo "$as_me:$LINENO: checking for dlopen" >&5
12075 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12076 if test "${ac_cv_func_dlopen+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12087 #define dlopen innocuous_dlopen
12089 /* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char dlopen (); below.
12091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092 <limits.h> exists even on freestanding compilers. */
12095 # include <limits.h>
12097 # include <assert.h>
12102 /* Override any gcc2 internal prototype to avoid an error. */
12107 /* We use char because int might match the return type of a gcc2
12108 builtin and then its argument prototype would still apply. */
12110 /* The GNU C library defines this for functions which it implements
12111 to always fail with ENOSYS. Some functions are actually named
12112 something starting with __ and the normal name is an alias. */
12113 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12116 char (*f) () = dlopen;
12125 return f != dlopen;
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132 (eval $ac_link) 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest$ac_exeext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_cv_func_dlopen=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_cv_func_dlopen=no
12158 rm -f conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12162 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12163 if test $ac_cv_func_dlopen = yes; then
12164 lt_cv_dlopen="dlopen"
12166 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 ac_check_lib_save_LIBS=$LIBS
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any gcc2 internal prototype to avoid an error. */
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197 (eval $ac_link) 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest$ac_exeext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_lib_dl_dlopen=yes
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 ac_cv_lib_dl_dlopen=no
12223 rm -f conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12227 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12229 if test $ac_cv_lib_dl_dlopen = yes; then
12230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12232 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-lsvld $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any gcc2 internal prototype to avoid an error. */
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_lib_svld_dlopen=yes
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_cv_lib_svld_dlopen=no
12289 rm -f conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12294 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12295 if test $ac_cv_lib_svld_dlopen = yes; then
12296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12298 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12299 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12300 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_check_lib_save_LIBS=$LIBS
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12312 /* Override any gcc2 internal prototype to avoid an error. */
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329 (eval $ac_link) 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest$ac_exeext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_lib_dld_dld_link=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_dld_dld_link=no
12355 rm -f conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12359 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12360 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12361 if test $ac_cv_lib_dld_dld_link = yes; then
12362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12383 if test "x$lt_cv_dlopen" != xno; then
12389 case $lt_cv_dlopen in
12391 save_CPPFLAGS="$CPPFLAGS"
12392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12394 save_LDFLAGS="$LDFLAGS"
12395 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12398 LIBS="$lt_cv_dlopen_libs $LIBS"
12400 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12401 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12402 if test "${lt_cv_dlopen_self+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 if test "$cross_compiling" = yes; then :
12406 lt_cv_dlopen_self=cross
12408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12409 lt_status=$lt_dlunknown
12410 cat > conftest.$ac_ext <<EOF
12411 #line 12411 "configure"
12412 #include "confdefs.h"
12421 # define LT_DLGLOBAL RTLD_GLOBAL
12424 # define LT_DLGLOBAL DL_GLOBAL
12426 # define LT_DLGLOBAL 0
12430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12431 find out it does not work in some platform. */
12432 #ifndef LT_DLLAZY_OR_NOW
12434 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12437 # define LT_DLLAZY_OR_NOW DL_LAZY
12440 # define LT_DLLAZY_OR_NOW RTLD_NOW
12443 # define LT_DLLAZY_OR_NOW DL_NOW
12445 # define LT_DLLAZY_OR_NOW 0
12453 extern "C" void exit (int);
12456 void fnord() { int i=42;}
12459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12460 int status = $lt_dlunknown;
12464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12466 /* dlclose (self); */
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473 (eval $ac_link) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12477 (./conftest; exit; ) 2>/dev/null
12479 case x$lt_status in
12480 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12481 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12482 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12485 # compilation failed
12486 lt_cv_dlopen_self=no
12493 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12494 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12496 if test "x$lt_cv_dlopen_self" = xyes; then
12497 LDFLAGS="$LDFLAGS $link_static_flag"
12498 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12499 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12500 if test "${lt_cv_dlopen_self_static+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 if test "$cross_compiling" = yes; then :
12504 lt_cv_dlopen_self_static=cross
12506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12507 lt_status=$lt_dlunknown
12508 cat > conftest.$ac_ext <<EOF
12509 #line 12509 "configure"
12510 #include "confdefs.h"
12519 # define LT_DLGLOBAL RTLD_GLOBAL
12522 # define LT_DLGLOBAL DL_GLOBAL
12524 # define LT_DLGLOBAL 0
12528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12529 find out it does not work in some platform. */
12530 #ifndef LT_DLLAZY_OR_NOW
12532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12535 # define LT_DLLAZY_OR_NOW DL_LAZY
12538 # define LT_DLLAZY_OR_NOW RTLD_NOW
12541 # define LT_DLLAZY_OR_NOW DL_NOW
12543 # define LT_DLLAZY_OR_NOW 0
12551 extern "C" void exit (int);
12554 void fnord() { int i=42;}
12557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12558 int status = $lt_dlunknown;
12562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12564 /* dlclose (self); */
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12575 (./conftest; exit; ) 2>/dev/null
12577 case x$lt_status in
12578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12580 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12583 # compilation failed
12584 lt_cv_dlopen_self_static=no
12591 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12592 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12595 CPPFLAGS="$save_CPPFLAGS"
12596 LDFLAGS="$save_LDFLAGS"
12601 case $lt_cv_dlopen_self in
12602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12603 *) enable_dlopen_self=unknown ;;
12606 case $lt_cv_dlopen_self_static in
12607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12608 *) enable_dlopen_self_static=unknown ;;
12613 # The else clause should only fire when bootstrapping the
12614 # libtool distribution, otherwise you forgot to ship ltmain.sh
12615 # with your package, and you will get complaints that there are
12616 # no rules to generate ltmain.sh.
12617 if test -f "$ltmain"; then
12618 # See if we are running on zsh, and set the options which allow our commands through
12619 # without removal of \ escapes.
12620 if test -n "${ZSH_VERSION+set}" ; then
12621 setopt NO_GLOB_SUBST
12623 # Now quote all the things that may contain metacharacters while being
12624 # careful not to overquote the AC_SUBSTed values. We take copies of the
12625 # variables and quote the copies for generation of the libtool script.
12626 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12628 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12629 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12630 deplibs_check_method reload_flag reload_cmds need_locks \
12631 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12632 lt_cv_sys_global_symbol_to_c_name_address \
12633 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12634 old_postinstall_cmds old_postuninstall_cmds \
12638 lt_prog_compiler_wl_CXX \
12639 lt_prog_compiler_pic_CXX \
12640 lt_prog_compiler_static_CXX \
12641 lt_prog_compiler_no_builtin_flag_CXX \
12642 export_dynamic_flag_spec_CXX \
12643 thread_safe_flag_spec_CXX \
12644 whole_archive_flag_spec_CXX \
12645 enable_shared_with_static_runtimes_CXX \
12646 old_archive_cmds_CXX \
12647 old_archive_from_new_cmds_CXX \
12648 predep_objects_CXX \
12649 postdep_objects_CXX \
12652 compiler_lib_search_path_CXX \
12654 archive_expsym_cmds_CXX \
12655 postinstall_cmds_CXX \
12656 postuninstall_cmds_CXX \
12657 old_archive_from_expsyms_cmds_CXX \
12658 allow_undefined_flag_CXX \
12659 no_undefined_flag_CXX \
12660 export_symbols_cmds_CXX \
12661 hardcode_libdir_flag_spec_CXX \
12662 hardcode_libdir_flag_spec_ld_CXX \
12663 hardcode_libdir_separator_CXX \
12664 hardcode_automatic_CXX \
12666 module_expsym_cmds_CXX \
12667 lt_cv_prog_compiler_c_o_CXX \
12668 exclude_expsyms_CXX \
12669 include_expsyms_CXX; do
12672 old_archive_cmds_CXX | \
12673 old_archive_from_new_cmds_CXX | \
12674 archive_cmds_CXX | \
12675 archive_expsym_cmds_CXX | \
12676 module_cmds_CXX | \
12677 module_expsym_cmds_CXX | \
12678 old_archive_from_expsyms_cmds_CXX | \
12679 export_symbols_cmds_CXX | \
12680 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12681 postinstall_cmds | postuninstall_cmds | \
12682 old_postinstall_cmds | old_postuninstall_cmds | \
12683 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12684 # Double-quote double-evaled strings.
12685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12694 *'\$0 --fallback-echo"')
12695 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12701 cat <<__EOF__ >> "$cfgfile"
12702 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12704 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12706 # Shell to use when invoking shell scripts.
12709 # Whether or not to build shared libraries.
12710 build_libtool_libs=$enable_shared
12712 # Whether or not to build static libraries.
12713 build_old_libs=$enable_static
12715 # Whether or not to add -lc for building shared libraries.
12716 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12718 # Whether or not to disallow shared libs when runtime libs are static
12719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12721 # Whether or not to optimize for fast installation.
12722 fast_install=$enable_fast_install
12725 host_alias=$host_alias
12728 # An echo program that does not interpret backslashes.
12733 AR_FLAGS=$lt_AR_FLAGS
12738 # A language-specific compiler.
12739 CC=$lt_compiler_CXX
12741 # Is the compiler the GNU C compiler?
12747 # The linker used to build libraries.
12750 # Whether we need hard or soft links.
12753 # A BSD-compatible nm program.
12756 # A symbol stripping program
12759 # Used to examine libraries when file_magic_cmd begins "file"
12760 MAGIC_CMD=$MAGIC_CMD
12762 # Used on cygwin: DLL creation program.
12765 # Used on cygwin: object dumper.
12768 # Used on cygwin: assembler.
12771 # The name of the directory that contains temporary libtool files.
12774 # How to create reloadable object files.
12775 reload_flag=$lt_reload_flag
12776 reload_cmds=$lt_reload_cmds
12778 # How to pass a linker flag through the compiler.
12779 wl=$lt_lt_prog_compiler_wl_CXX
12781 # Object file suffix (normally "o").
12782 objext="$ac_objext"
12784 # Old archive suffix (normally "a").
12787 # Shared library suffix (normally ".so").
12788 shrext_cmds='$shrext_cmds'
12790 # Executable file suffix (normally "").
12793 # Additional compiler flags for building library objects.
12794 pic_flag=$lt_lt_prog_compiler_pic_CXX
12797 # What is the maximum length of a command?
12798 max_cmd_len=$lt_cv_sys_max_cmd_len
12800 # Does compiler simultaneously support -c and -o options?
12801 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12803 # Must we lock files when doing compilation ?
12804 need_locks=$lt_need_locks
12806 # Do we need the lib prefix for modules?
12807 need_lib_prefix=$need_lib_prefix
12809 # Do we need a version for libraries?
12810 need_version=$need_version
12812 # Whether dlopen is supported.
12813 dlopen_support=$enable_dlopen
12815 # Whether dlopen of programs is supported.
12816 dlopen_self=$enable_dlopen_self
12818 # Whether dlopen of statically linked programs is supported.
12819 dlopen_self_static=$enable_dlopen_self_static
12821 # Compiler flag to prevent dynamic linking.
12822 link_static_flag=$lt_lt_prog_compiler_static_CXX
12824 # Compiler flag to turn off builtin functions.
12825 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12827 # Compiler flag to allow reflexive dlopens.
12828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12830 # Compiler flag to generate shared objects directly from archives.
12831 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12833 # Compiler flag to generate thread-safe objects.
12834 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12836 # Library versioning type.
12837 version_type=$version_type
12839 # Format of library name prefix.
12840 libname_spec=$lt_libname_spec
12842 # List of archive names. First name is the real one, the rest are links.
12843 # The last name is the one that the linker finds with -lNAME.
12844 library_names_spec=$lt_library_names_spec
12846 # The coded name of the library, if different from the real name.
12847 soname_spec=$lt_soname_spec
12849 # Commands used to build and install an old-style archive.
12851 old_archive_cmds=$lt_old_archive_cmds_CXX
12852 old_postinstall_cmds=$lt_old_postinstall_cmds
12853 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12855 # Create an old-style archive from a shared archive.
12856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12858 # Create a temporary old-style archive to link instead of a shared archive.
12859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12861 # Commands used to build and install a shared archive.
12862 archive_cmds=$lt_archive_cmds_CXX
12863 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12864 postinstall_cmds=$lt_postinstall_cmds
12865 postuninstall_cmds=$lt_postuninstall_cmds
12867 # Commands used to build a loadable module (assumed same as above if empty)
12868 module_cmds=$lt_module_cmds_CXX
12869 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12871 # Commands to strip libraries.
12872 old_striplib=$lt_old_striplib
12873 striplib=$lt_striplib
12875 # Dependencies to place before the objects being linked to create a
12877 predep_objects=$lt_predep_objects_CXX
12879 # Dependencies to place after the objects being linked to create a
12881 postdep_objects=$lt_postdep_objects_CXX
12883 # Dependencies to place before the objects being linked to create a
12885 predeps=$lt_predeps_CXX
12887 # Dependencies to place after the objects being linked to create a
12889 postdeps=$lt_postdeps_CXX
12891 # The library search path used internally by the compiler when linking
12892 # a shared library.
12893 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12895 # Method to check whether dependent libraries are shared objects.
12896 deplibs_check_method=$lt_deplibs_check_method
12898 # Command to use when deplibs_check_method == file_magic.
12899 file_magic_cmd=$lt_file_magic_cmd
12901 # Flag that allows shared libraries with undefined symbols to be built.
12902 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12904 # Flag that forces no undefined symbols.
12905 no_undefined_flag=$lt_no_undefined_flag_CXX
12907 # Commands used to finish a libtool library installation in a directory.
12908 finish_cmds=$lt_finish_cmds
12910 # Same as above, but a single script fragment to be evaled but not shown.
12911 finish_eval=$lt_finish_eval
12913 # Take the output of nm and produce a listing of raw symbols and C names.
12914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12916 # Transform the output of nm in a proper C declaration
12917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12919 # Transform the output of nm in a C name address pair
12920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12922 # This is the shared library runtime path variable.
12923 runpath_var=$runpath_var
12925 # This is the shared library path variable.
12926 shlibpath_var=$shlibpath_var
12928 # Is shlibpath searched before the hard-coded library search path?
12929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12931 # How to hardcode a shared library path into an executable.
12932 hardcode_action=$hardcode_action_CXX
12934 # Whether we should hardcode library paths into libraries.
12935 hardcode_into_libs=$hardcode_into_libs
12937 # Flag to hardcode \$libdir into a binary during linking.
12938 # This must work even if \$libdir does not exist.
12939 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12941 # If ld is used when linking, flag to hardcode \$libdir into
12942 # a binary during linking. This must work even if \$libdir does
12944 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12946 # Whether we need a single -rpath flag with a separated argument.
12947 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12949 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12950 # resulting binary.
12951 hardcode_direct=$hardcode_direct_CXX
12953 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12954 # resulting binary.
12955 hardcode_minus_L=$hardcode_minus_L_CXX
12957 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12958 # the resulting binary.
12959 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12961 # Set to yes if building a shared library automatically hardcodes DIR into the library
12962 # and all subsequent libraries and executables linked against it.
12963 hardcode_automatic=$hardcode_automatic_CXX
12965 # Variables whose values should be saved in libtool wrapper scripts and
12966 # restored at relink time.
12967 variables_saved_for_relink="$variables_saved_for_relink"
12969 # Whether libtool must link a program against all its dependency libraries.
12970 link_all_deplibs=$link_all_deplibs_CXX
12972 # Compile-time system search path for libraries
12973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12975 # Run-time system search path for libraries
12976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12978 # Fix the shell variable \$srcfile for the compiler.
12979 fix_srcfile_path="$fix_srcfile_path_CXX"
12981 # Set to yes if exported symbols are required.
12982 always_export_symbols=$always_export_symbols_CXX
12984 # The commands to list exported symbols.
12985 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12987 # The commands to extract the exported symbol list from a shared archive.
12988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12990 # Symbols that should not be listed in the preloaded symbols.
12991 exclude_expsyms=$lt_exclude_expsyms_CXX
12993 # Symbols that must always be exported.
12994 include_expsyms=$lt_include_expsyms_CXX
12996 # ### END LIBTOOL TAG CONFIG: $tagname
13002 # If there is no Makefile yet, we rely on a make rule to execute
13003 # `config.status --recheck' to rerun these tests and create the
13004 # libtool script then.
13005 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13006 if test -f "$ltmain_in"; then
13007 test -f Makefile && make "$ltmain"
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13022 with_gnu_ldcxx=$with_gnu_ld
13023 with_gnu_ld=$lt_save_with_gnu_ld
13024 lt_cv_path_LDCXX=$lt_cv_path_LD
13025 lt_cv_path_LD=$lt_save_path_LD
13026 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13027 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13035 if test -n "$F77" && test "X$F77" != "Xno"; then
13038 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13039 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13043 archive_cmds_need_lc_F77=no
13044 allow_undefined_flag_F77=
13045 always_export_symbols_F77=no
13046 archive_expsym_cmds_F77=
13047 export_dynamic_flag_spec_F77=
13048 hardcode_direct_F77=no
13049 hardcode_libdir_flag_spec_F77=
13050 hardcode_libdir_flag_spec_ld_F77=
13051 hardcode_libdir_separator_F77=
13052 hardcode_minus_L_F77=no
13053 hardcode_automatic_F77=no
13055 module_expsym_cmds_F77=
13056 link_all_deplibs_F77=unknown
13057 old_archive_cmds_F77=$old_archive_cmds
13058 no_undefined_flag_F77=
13059 whole_archive_flag_spec_F77=
13060 enable_shared_with_static_runtimes_F77=no
13062 # Source file extension for f77 test sources.
13065 # Object file extension for compiled f77 test sources.
13069 # Code to be used in simple compile tests
13070 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13072 # Code to be used in simple link tests
13073 lt_simple_link_test_code=" program t\n end\n"
13075 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13077 # If no C compiler was specified, use CC.
13080 # Allow CC to be a program name with arguments.
13084 # Allow CC to be a program name with arguments.
13089 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13091 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13093 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13094 echo "${ECHO_T}$can_build_shared" >&6
13096 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13098 test "$can_build_shared" = "no" && enable_shared=no
13100 # On AIX, shared libraries and static libraries use the same namespace, and
13101 # are all built from PIC.
13104 test "$enable_shared" = yes && enable_static=no
13105 if test -n "$RANLIB"; then
13106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13107 postinstall_cmds='$RANLIB $lib'
13111 test "$enable_shared" = yes && enable_static=no
13114 echo "$as_me:$LINENO: result: $enable_shared" >&5
13115 echo "${ECHO_T}$enable_shared" >&6
13117 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13118 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13119 # Make sure either enable_shared or enable_static is yes.
13120 test "$enable_shared" = yes || enable_static=yes
13121 echo "$as_me:$LINENO: result: $enable_static" >&5
13122 echo "${ECHO_T}$enable_static" >&6
13124 test "$ld_shlibs_F77" = no && can_build_shared=no
13129 lt_prog_compiler_wl_F77=
13130 lt_prog_compiler_pic_F77=
13131 lt_prog_compiler_static_F77=
13133 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13134 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13136 if test "$GCC" = yes; then
13137 lt_prog_compiler_wl_F77='-Wl,'
13138 lt_prog_compiler_static_F77='-static'
13142 # All AIX code is PIC.
13143 if test "$host_cpu" = ia64; then
13144 # AIX 5 now supports IA64 processor
13145 lt_prog_compiler_static_F77='-Bstatic'
13150 # FIXME: we need at least 68020 code to build shared libraries, but
13151 # adding the `-m68020' flag to GCC prevents building anything better,
13153 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13157 # PIC is the default for these OSes.
13160 mingw* | pw32* | os2*)
13161 # This hack is so that the source file can tell whether it is being
13162 # built for inclusion in a dll (and should export symbols for example).
13163 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13166 darwin* | rhapsody*)
13167 # PIC is the default on this platform
13168 # Common symbols not allowed in MH_DYLIB files
13169 lt_prog_compiler_pic_F77='-fno-common'
13173 # Just because we use GCC doesn't mean we suddenly get shared libraries
13174 # on systems that don't support them.
13175 lt_prog_compiler_can_build_shared_F77=no
13180 if test -d /usr/nec; then
13181 lt_prog_compiler_pic_F77=-Kconform_pic
13186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13187 # not for PA HP-UX.
13188 case "$host_cpu" in
13193 lt_prog_compiler_pic_F77='-fPIC'
13199 lt_prog_compiler_pic_F77='-fPIC'
13203 # PORTME Check for flag to pass linker flags through the system compiler.
13206 lt_prog_compiler_wl_F77='-Wl,'
13207 if test "$host_cpu" = ia64; then
13208 # AIX 5 now supports IA64 processor
13209 lt_prog_compiler_static_F77='-Bstatic'
13211 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13215 mingw* | pw32* | os2*)
13216 # This hack is so that the source file can tell whether it is being
13217 # built for inclusion in a dll (and should export symbols for example).
13218 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13221 hpux9* | hpux10* | hpux11*)
13222 lt_prog_compiler_wl_F77='-Wl,'
13223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13224 # not for PA HP-UX.
13225 case "$host_cpu" in
13230 lt_prog_compiler_pic_F77='+Z'
13233 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13234 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13237 irix5* | irix6* | nonstopux*)
13238 lt_prog_compiler_wl_F77='-Wl,'
13239 # PIC (with -KPIC) is the default.
13240 lt_prog_compiler_static_F77='-non_shared'
13244 lt_prog_compiler_pic_F77='-KPIC'
13245 lt_prog_compiler_static_F77='-Bstatic'
13251 lt_prog_compiler_wl_F77='-Wl,'
13252 lt_prog_compiler_pic_F77='-KPIC'
13253 lt_prog_compiler_static_F77='-static'
13256 lt_prog_compiler_wl_F77='-Wl,'
13257 # All Alpha code is PIC.
13258 lt_prog_compiler_static_F77='-non_shared'
13263 osf3* | osf4* | osf5*)
13264 lt_prog_compiler_wl_F77='-Wl,'
13265 # All OSF/1 code is PIC.
13266 lt_prog_compiler_static_F77='-non_shared'
13270 lt_prog_compiler_pic_F77='-Kpic'
13271 lt_prog_compiler_static_F77='-dn'
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 lt_prog_compiler_pic_F77='-KPIC'
13277 lt_prog_compiler_static_F77='-Bstatic'
13281 lt_prog_compiler_wl_F77='-Qoption ld '
13282 lt_prog_compiler_pic_F77='-PIC'
13283 lt_prog_compiler_static_F77='-Bstatic'
13286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13287 lt_prog_compiler_wl_F77='-Wl,'
13288 lt_prog_compiler_pic_F77='-KPIC'
13289 lt_prog_compiler_static_F77='-Bstatic'
13293 if test -d /usr/nec ;then
13294 lt_prog_compiler_pic_F77='-Kconform_pic'
13295 lt_prog_compiler_static_F77='-Bstatic'
13300 lt_prog_compiler_pic_F77='-pic'
13301 lt_prog_compiler_static_F77='-Bstatic'
13305 lt_prog_compiler_can_build_shared_F77=no
13310 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13311 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13314 # Check to make sure the PIC flag actually works.
13316 if test -n "$lt_prog_compiler_pic_F77"; then
13318 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13320 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 lt_prog_compiler_pic_works_F77=no
13324 ac_outfile=conftest.$ac_objext
13325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13326 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13327 # Insert the option either (1) after the last *FLAGS variable, or
13328 # (2) before a word containing "conftest.", or (3) at the end.
13329 # Note that $ac_compile itself does not contain backslashes and begins
13330 # with a dollar sign (not a hyphen), so the echo should work correctly.
13331 # The option is referenced via a variable to avoid confusing sed.
13332 lt_compile=`echo "$ac_compile" | $SED \
13333 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335 -e 's:$: $lt_compiler_flag:'`
13336 (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
13337 (eval "$lt_compile" 2>conftest.err)
13339 cat conftest.err >&5
13340 echo "$as_me:13340: \$? = $ac_status" >&5
13341 if (exit $ac_status) && test -s "$ac_outfile"; then
13342 # The compiler can only warn and ignore the option if not recognized
13343 # So say no if there are warnings
13344 if test ! -s conftest.err; then
13345 lt_prog_compiler_pic_works_F77=yes
13351 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13352 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13354 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13355 case $lt_prog_compiler_pic_F77 in
13357 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13360 lt_prog_compiler_pic_F77=
13361 lt_prog_compiler_can_build_shared_F77=no
13366 # For platforms which do not support PIC, -DPIC is meaningless:
13368 lt_prog_compiler_pic_F77=
13371 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13375 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13377 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 lt_cv_prog_compiler_c_o_F77=no
13381 $rm -r conftest 2>/dev/null
13385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387 lt_compiler_flag="-o out/conftest2.$ac_objext"
13388 # Insert the option either (1) after the last *FLAGS variable, or
13389 # (2) before a word containing "conftest.", or (3) at the end.
13390 # Note that $ac_compile itself does not contain backslashes and begins
13391 # with a dollar sign (not a hyphen), so the echo should work correctly.
13392 lt_compile=`echo "$ac_compile" | $SED \
13393 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13395 -e 's:$: $lt_compiler_flag:'`
13396 (eval echo "\"\$as_me:13396: $lt_compile\"" >&5)
13397 (eval "$lt_compile" 2>out/conftest.err)
13399 cat out/conftest.err >&5
13400 echo "$as_me:13400: \$? = $ac_status" >&5
13401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13403 # The compiler can only warn and ignore the option if not recognized
13404 # So say no if there are warnings
13405 if test ! -s out/conftest.err; then
13406 lt_cv_prog_compiler_c_o_F77=yes
13411 # SGI C++ compiler will create directory out/ii_files/ for
13412 # template instantiation
13413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13414 $rm out/* && rmdir out
13420 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13424 hard_links="nottested"
13425 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13426 # do not overwrite the value of need_locks provided by the user
13427 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13433 ln conftest.a conftest.b 2>&5 || hard_links=no
13434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13435 echo "$as_me:$LINENO: result: $hard_links" >&5
13436 echo "${ECHO_T}$hard_links" >&6
13437 if test "$hard_links" = no; then
13438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13450 allow_undefined_flag_F77=
13451 enable_shared_with_static_runtimes_F77=no
13453 archive_expsym_cmds_F77=
13454 old_archive_From_new_cmds_F77=
13455 old_archive_from_expsyms_cmds_F77=
13456 export_dynamic_flag_spec_F77=
13457 whole_archive_flag_spec_F77=
13458 thread_safe_flag_spec_F77=
13459 hardcode_libdir_flag_spec_F77=
13460 hardcode_libdir_flag_spec_ld_F77=
13461 hardcode_libdir_separator_F77=
13462 hardcode_direct_F77=no
13463 hardcode_minus_L_F77=no
13464 hardcode_shlibpath_var_F77=unsupported
13465 link_all_deplibs_F77=unknown
13466 hardcode_automatic_F77=no
13468 module_expsym_cmds_F77=
13469 always_export_symbols_F77=no
13470 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13471 # include_expsyms should be a list of space-separated symbols to be *always*
13472 # included in the symbol list
13473 include_expsyms_F77=
13474 # exclude_expsyms can be an extended regexp of symbols to exclude
13475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13477 # as well as any symbol that contains `d'.
13478 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13480 # platforms (ab)use it in PIC code, but their linkers get confused if
13481 # the symbol is explicitly referenced. Since portable code cannot
13482 # rely on this symbol name, it's probably fine to never include it in
13483 # preloaded symbol tables.
13484 extract_expsyms_cmds=
13487 cygwin* | mingw* | pw32*)
13488 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13489 # When not using gcc, we currently assume that we are using
13490 # Microsoft Visual C++.
13491 if test "$GCC" != yes; then
13501 if test "$with_gnu_ld" = yes; then
13502 # If archive_cmds runs LD, not CC, wlarc should be empty
13505 # See if GNU ld supports shared libraries.
13507 aix3* | aix4* | aix5*)
13508 # On AIX/PPC, the GNU linker is very broken
13509 if test "$host_cpu" != ia64; then
13513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13514 *** to be unable to reliably create shared libraries on AIX.
13515 *** Therefore, libtool is disabling shared libraries support. If you
13516 *** really care for shared libraries, you may want to modify your PATH
13517 *** so that a non-GNU linker is found, and then restart.
13524 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)'
13525 hardcode_libdir_flag_spec_F77='-L$libdir'
13526 hardcode_minus_L_F77=yes
13528 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13529 # that the semantics of dynamic libraries on AmigaOS, at least up
13530 # to version 4, is to share data among multiple programs linked
13531 # with the same dynamic library. Since this doesn't match the
13532 # behavior of shared libraries on other platforms, we can't use
13538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13539 allow_undefined_flag_F77=unsupported
13540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13541 # support --undefined. This deserves some investigation. FIXME
13542 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13548 cygwin* | mingw* | pw32*)
13549 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13550 # as there is no search path for DLLs.
13551 hardcode_libdir_flag_spec_F77='-L$libdir'
13552 allow_undefined_flag_F77=unsupported
13553 always_export_symbols_F77=no
13554 enable_shared_with_static_runtimes_F77=yes
13555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13557 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13558 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13559 # If the export-symbols file already is a .def file (1st line
13560 # is EXPORTS), use it as is; otherwise, prepend...
13561 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13562 cp $export_symbols $output_objdir/$soname.def;
13564 echo EXPORTS > $output_objdir/$soname.def;
13565 cat $export_symbols >> $output_objdir/$soname.def;
13567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13573 netbsd* | knetbsd*-gnu)
13574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13575 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13584 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13589 *** create shared libraries on Solaris systems. Therefore, libtool
13590 *** is disabling shared libraries support. We urge you to upgrade GNU
13591 *** binutils to release 2.9.1 or newer. Another option is to modify
13592 *** your PATH or compiler configuration so that the native linker is
13593 *** used, and then restart.
13596 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13597 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13598 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13605 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13607 hardcode_direct_F77=yes
13608 hardcode_shlibpath_var_F77=no
13612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614 archive_cmds_F77="$tmp_archive_cmds"
13615 supports_anon_versioning=no
13616 case `$LD -v 2>/dev/null` in
13617 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13620 *\ 2.11.*) ;; # other 2.11 versions
13621 *) supports_anon_versioning=yes ;;
13623 if test $supports_anon_versioning = yes; then
13624 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13626 $echo "local: *; };" >> $output_objdir/$libname.ver~
13627 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13629 archive_expsym_cmds_F77="$tmp_archive_cmds"
13631 link_all_deplibs_F77=no
13638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13647 if test "$ld_shlibs_F77" = yes; then
13648 runpath_var=LD_RUN_PATH
13649 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13650 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13651 # ancient GNU ld didn't support --whole-archive et. al.
13652 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13653 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13655 whole_archive_flag_spec_F77=
13659 # PORTME fill in a description of your system's linker (not GNU ld)
13662 allow_undefined_flag_F77=unsupported
13663 always_export_symbols_F77=yes
13664 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'
13665 # Note: this linker hardcodes the directories in LIBPATH if there
13666 # are no directories specified by -L.
13667 hardcode_minus_L_F77=yes
13668 if test "$GCC" = yes && test -z "$link_static_flag"; then
13669 # Neither direct hardcoding nor static linking is supported with a
13671 hardcode_direct_F77=unsupported
13676 if test "$host_cpu" = ia64; then
13677 # On IA64, the linker does run time linking by default, so we don't
13678 # have to do anything special.
13679 aix_use_runtimelinking=no
13680 exp_sym_flag='-Bexport'
13683 # If we're using GNU nm, then we don't want the "-C" option.
13684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13685 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13686 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'
13688 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'
13690 aix_use_runtimelinking=no
13692 # Test if we are trying to use run time linking or normal
13693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13694 # need to do runtime linking.
13695 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13696 for ld_flag in $LDFLAGS; do
13697 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13698 aix_use_runtimelinking=yes
13704 exp_sym_flag='-bexport'
13705 no_entry_flag='-bnoentry'
13708 # When large executables or shared objects are built, AIX ld can
13709 # have problems creating the table of contents. If linking a library
13710 # or program results in "error TOC overflow" add -mminimal-toc to
13711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13714 archive_cmds_F77=''
13715 hardcode_direct_F77=yes
13716 hardcode_libdir_separator_F77=':'
13717 link_all_deplibs_F77=yes
13719 if test "$GCC" = yes; then
13720 case $host_os in aix4.012|aix4.012.*)
13721 # We only want to do this on AIX 4.2 and lower, the check
13722 # below for broken collect2 doesn't work under 4.3+
13723 collect2name=`${CC} -print-prog-name=collect2`
13724 if test -f "$collect2name" && \
13725 strings "$collect2name" | grep resolve_lib_name >/dev/null
13727 # We have reworked collect2
13728 hardcode_direct_F77=yes
13730 # We have old collect2
13731 hardcode_direct_F77=unsupported
13732 # It fails to find uninstalled libraries when the uninstalled
13733 # path is not listed in the libpath. Setting hardcode_minus_L
13734 # to unsupported forces relinking
13735 hardcode_minus_L_F77=yes
13736 hardcode_libdir_flag_spec_F77='-L$libdir'
13737 hardcode_libdir_separator_F77=
13740 shared_flag='-shared'
13743 if test "$host_cpu" = ia64; then
13744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13745 # chokes on -Wl,-G. The following line is correct:
13748 if test "$aix_use_runtimelinking" = yes; then
13749 shared_flag='${wl}-G'
13751 shared_flag='${wl}-bM:SRE'
13756 # It seems that -bexpall does not export symbols beginning with
13757 # underscore (_), so it is better to generate a list of symbols to export.
13758 always_export_symbols_F77=yes
13759 if test "$aix_use_runtimelinking" = yes; then
13760 # Warning - without using the other runtime loading flags (-brtl),
13761 # -berok will link without error, but may produce a broken library.
13762 allow_undefined_flag_F77='-berok'
13763 # Determine the default libpath from the value encoded in an empty executable.
13764 cat >conftest.$ac_ext <<_ACEOF
13769 rm -f conftest.$ac_objext conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>conftest.er1
13773 grep -v '^ *+' conftest.er1 >conftest.err
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13793 # Check for a 64-bit object if we didn't find anything.
13794 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; }
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13801 rm -f conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13805 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13806 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13808 if test "$host_cpu" = ia64; then
13809 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13810 allow_undefined_flag_F77="-z nodefs"
13811 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13813 # Determine the default libpath from the value encoded in an empty executable.
13814 cat >conftest.$ac_ext <<_ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821 (eval $ac_link) 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest$ac_exeext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13843 # Check for a 64-bit object if we didn't find anything.
13844 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; }
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13851 rm -f conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13855 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13856 # Warning - without using the other run time loading flags,
13857 # -berok will link without error, but may produce a broken library.
13858 no_undefined_flag_F77=' ${wl}-bernotok'
13859 allow_undefined_flag_F77=' ${wl}-berok'
13860 # -bexpall does not export symbols beginning with underscore (_)
13861 always_export_symbols_F77=yes
13862 # Exported symbols can be pulled into shared objects from archives
13863 whole_archive_flag_spec_F77=' '
13864 archive_cmds_need_lc_F77=yes
13865 # This is similar to how AIX traditionally builds it's shared libraries.
13866 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13872 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)'
13873 hardcode_libdir_flag_spec_F77='-L$libdir'
13874 hardcode_minus_L_F77=yes
13875 # see comment about different semantics on the GNU ld section
13880 export_dynamic_flag_spec_F77=-rdynamic
13883 cygwin* | mingw* | pw32*)
13884 # When not using gcc, we currently assume that we are using
13885 # Microsoft Visual C++.
13886 # hardcode_libdir_flag_spec is actually meaningless, as there is
13887 # no search path for DLLs.
13888 hardcode_libdir_flag_spec_F77=' '
13889 allow_undefined_flag_F77=unsupported
13890 # Tell ltmain to make .lib files, not .a files.
13892 # Tell ltmain to make .dll files, not .so files.
13894 # FIXME: Setting linknames here is a bad hack.
13895 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13896 # The linker will automatically build a .lib file if we build a DLL.
13897 old_archive_From_new_cmds_F77='true'
13898 # FIXME: Should let the user specify the lib program.
13899 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13900 fix_srcfile_path='`cygpath -w "$srcfile"`'
13901 enable_shared_with_static_runtimes_F77=yes
13904 darwin* | rhapsody*)
13905 if test "$GXX" = yes ; then
13906 archive_cmds_need_lc_F77=no
13908 rhapsody* | darwin1.[012])
13909 allow_undefined_flag_F77='-undefined suppress'
13912 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13913 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13915 case ${MACOSX_DEPLOYMENT_TARGET} in
13917 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13920 allow_undefined_flag_F77='-undefined dynamic_lookup'
13926 lt_int_apple_cc_single_mod=no
13927 output_verbose_link_cmd='echo'
13928 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13929 lt_int_apple_cc_single_mod=yes
13931 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13932 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13934 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13936 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13937 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13938 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13939 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13941 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13943 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}'
13944 hardcode_direct_F77=no
13945 hardcode_automatic_F77=yes
13946 hardcode_shlibpath_var_F77=unsupported
13947 whole_archive_flag_spec_F77='-all_load $convenience'
13948 link_all_deplibs_F77=yes
13955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13956 hardcode_libdir_flag_spec_F77='-L$libdir'
13957 hardcode_shlibpath_var_F77=no
13964 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13965 # support. Future versions do this automatically, but an explicit c++rt0.o
13966 # does not break anything, and helps significantly (at the cost of a little
13969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13970 hardcode_libdir_flag_spec_F77='-R$libdir'
13971 hardcode_direct_F77=yes
13972 hardcode_shlibpath_var_F77=no
13975 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13977 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13978 hardcode_direct_F77=yes
13979 hardcode_minus_L_F77=yes
13980 hardcode_shlibpath_var_F77=no
13983 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13984 freebsd* | kfreebsd*-gnu)
13985 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13986 hardcode_libdir_flag_spec_F77='-R$libdir'
13987 hardcode_direct_F77=yes
13988 hardcode_shlibpath_var_F77=no
13992 if test "$GCC" = yes; then
13993 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'
13995 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'
13997 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13998 hardcode_libdir_separator_F77=:
13999 hardcode_direct_F77=yes
14001 # hardcode_minus_L: Not really in the search PATH,
14002 # but as the default location of the library.
14003 hardcode_minus_L_F77=yes
14004 export_dynamic_flag_spec_F77='${wl}-E'
14008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14009 case "$host_cpu" in
14011 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14014 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14018 case "$host_cpu" in
14020 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14027 if test "$with_gnu_ld" = no; then
14028 case "$host_cpu" in
14030 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14031 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14032 hardcode_libdir_separator_F77=:
14033 hardcode_direct_F77=no
14034 hardcode_shlibpath_var_F77=no
14037 hardcode_libdir_flag_spec_F77='-L$libdir'
14038 hardcode_direct_F77=no
14039 hardcode_shlibpath_var_F77=no
14041 # hardcode_minus_L: Not really in the search PATH,
14042 # but as the default location of the library.
14043 hardcode_minus_L_F77=yes
14046 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14047 hardcode_libdir_separator_F77=:
14048 hardcode_direct_F77=yes
14049 export_dynamic_flag_spec_F77='${wl}-E'
14051 # hardcode_minus_L: Not really in the search PATH,
14052 # but as the default location of the library.
14053 hardcode_minus_L_F77=yes
14059 irix5* | irix6* | nonstopux*)
14060 if test "$GCC" = yes; then
14061 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'
14063 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'
14064 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067 hardcode_libdir_separator_F77=:
14068 link_all_deplibs_F77=yes
14071 netbsd* | knetbsd*-gnu)
14072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14075 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14077 hardcode_libdir_flag_spec_F77='-R$libdir'
14078 hardcode_direct_F77=yes
14079 hardcode_shlibpath_var_F77=no
14083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084 hardcode_direct_F77=yes
14085 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086 hardcode_libdir_separator_F77=:
14087 hardcode_shlibpath_var_F77=no
14091 hardcode_direct_F77=yes
14092 hardcode_shlibpath_var_F77=no
14093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14096 export_dynamic_flag_spec_F77='${wl}-E'
14099 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14100 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14101 hardcode_libdir_flag_spec_F77='-R$libdir'
14104 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14105 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14112 hardcode_libdir_flag_spec_F77='-L$libdir'
14113 hardcode_minus_L_F77=yes
14114 allow_undefined_flag_F77=unsupported
14115 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'
14116 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14120 if test "$GCC" = yes; then
14121 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14122 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'
14124 allow_undefined_flag_F77=' -expect_unresolved \*'
14125 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'
14127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14128 hardcode_libdir_separator_F77=:
14131 osf4* | osf5*) # as osf3* with the addition of -msym flag
14132 if test "$GCC" = yes; then
14133 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14134 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'
14135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14137 allow_undefined_flag_F77=' -expect_unresolved \*'
14138 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'
14139 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~
14140 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14142 # Both c and cxx compiler support -rpath directly
14143 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14145 hardcode_libdir_separator_F77=:
14149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150 hardcode_shlibpath_var_F77=no
14151 export_dynamic_flag_spec_F77='${wl}-Bexport'
14152 runpath_var=LD_RUN_PATH
14153 hardcode_runpath_var=yes
14157 no_undefined_flag_F77=' -z text'
14158 if test "$GCC" = yes; then
14159 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14161 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14163 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14165 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14167 hardcode_libdir_flag_spec_F77='-R$libdir'
14168 hardcode_shlibpath_var_F77=no
14170 solaris2.[0-5] | solaris2.[0-5].*) ;;
14171 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14172 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14174 link_all_deplibs_F77=yes
14178 if test "x$host_vendor" = xsequent; then
14179 # Use $CC to link under sequent, because it throws in some extra .o
14180 # files that make .init and .fini sections work.
14181 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14185 hardcode_libdir_flag_spec_F77='-L$libdir'
14186 hardcode_direct_F77=yes
14187 hardcode_minus_L_F77=yes
14188 hardcode_shlibpath_var_F77=no
14192 case $host_vendor in
14194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14195 hardcode_direct_F77=yes # is this really true???
14198 ## LD is ld it makes a PLAMLIB
14199 ## CC just makes a GrossModule.
14200 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14201 reload_cmds_F77='$CC -r -o $output$reload_objs'
14202 hardcode_direct_F77=no
14205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14206 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14209 runpath_var='LD_RUN_PATH'
14210 hardcode_shlibpath_var_F77=no
14214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215 hardcode_shlibpath_var_F77=no
14216 export_dynamic_flag_spec_F77='-Bexport'
14220 if test -d /usr/nec; then
14221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14222 hardcode_shlibpath_var_F77=no
14223 runpath_var=LD_RUN_PATH
14224 hardcode_runpath_var=yes
14230 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14231 hardcode_direct_F77=yes
14232 hardcode_minus_L_F77=no
14233 hardcode_shlibpath_var_F77=no
14234 hardcode_runpath_var=yes
14235 runpath_var=LD_RUN_PATH
14238 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14239 no_undefined_flag_F77='${wl}-z ${wl}text'
14240 if test "$GCC" = yes; then
14241 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14243 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14245 runpath_var='LD_RUN_PATH'
14246 hardcode_shlibpath_var_F77=no
14250 no_undefined_flag_F77=' -z text'
14251 # $CC -shared without GNU ld will not create a library from C++
14252 # object files and a static libstdc++, better avoid it by now
14253 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14254 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14255 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14256 hardcode_libdir_flag_spec_F77=
14257 hardcode_shlibpath_var_F77=no
14258 runpath_var='LD_RUN_PATH'
14262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263 hardcode_libdir_flag_spec_F77='-L$libdir'
14264 hardcode_shlibpath_var_F77=no
14273 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14274 echo "${ECHO_T}$ld_shlibs_F77" >&6
14275 test "$ld_shlibs_F77" = no && can_build_shared=no
14277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14278 if test "$GCC" = yes; then
14279 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14283 # Do we need to explicitly link libc?
14285 case "x$archive_cmds_need_lc_F77" in
14287 # Assume -lc should be added
14288 archive_cmds_need_lc_F77=yes
14290 if test "$enable_shared" = yes && test "$GCC" = yes; then
14291 case $archive_cmds_F77 in
14293 # FIXME: we may have to deal with multi-command sequences.
14296 # Test whether the compiler implicitly links with -lc since on some
14297 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14298 # to ld, don't add -lc before -lgcc.
14299 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14300 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305 (eval $ac_compile) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } 2>conftest.err; then
14311 libobjs=conftest.$ac_objext
14313 wl=$lt_prog_compiler_wl_F77
14319 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14320 allow_undefined_flag_F77=
14321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14322 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }
14327 archive_cmds_need_lc_F77=no
14329 archive_cmds_need_lc_F77=yes
14331 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14333 cat conftest.err 1>&5
14336 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14337 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14344 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14345 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14346 library_names_spec=
14347 libname_spec='lib$name'
14351 postuninstall_cmds=
14355 shlibpath_overrides_runpath=unknown
14357 dynamic_linker="$host_os ld.so"
14358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14359 if test "$GCC" = yes; then
14360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14361 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14362 # if the path contains ";" then we assume it to be the separator
14363 # otherwise default to the standard path separator (i.e. ":") - it is
14364 # assumed that no part of a normal pathname contains ";" but that should
14365 # okay in the real world where ";" in dirpaths is itself problematic.
14366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14371 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14373 need_lib_prefix=unknown
14374 hardcode_into_libs=no
14376 # when you set need_version to no, make sure it does not cause -set_version
14377 # flags to be left without arguments
14378 need_version=unknown
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14384 shlibpath_var=LIBPATH
14386 # AIX 3 has no versioning support, so we append a major version to the name.
14387 soname_spec='${libname}${release}${shared_ext}$major'
14394 hardcode_into_libs=yes
14395 if test "$host_cpu" = ia64; then
14396 # AIX 5 supports IA64
14397 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14398 shlibpath_var=LD_LIBRARY_PATH
14400 # With GCC up to 2.95.x, collect2 would create an import file
14401 # for dependence libraries. The import file would start with
14402 # the line `#! .'. This would cause the generated library to
14403 # depend on `.', always an invalid library. This was fixed in
14404 # development snapshots of GCC prior to 3.0.
14406 aix4 | aix4.[01] | aix4.[01].*)
14407 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14409 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14412 can_build_shared=no
14416 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14417 # soname into executable. Probably we can add versioning support to
14418 # collect2, so additional links can be useful in future.
14419 if test "$aix_use_runtimelinking" = yes; then
14420 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14421 # instead of lib<name>.a to let people know that these are not
14422 # typical AIX shared libraries.
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 # We preserve .a as extension for shared libraries through AIX4.2
14426 # and later when we are not doing run time linking.
14427 library_names_spec='${libname}${release}.a $libname.a'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14430 shlibpath_var=LIBPATH
14435 library_names_spec='$libname.ixlibrary $libname.a'
14436 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14437 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'
14441 library_names_spec='${libname}${shared_ext}'
14442 dynamic_linker="$host_os ld.so"
14443 shlibpath_var=LIBRARY_PATH
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14454 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14455 # the default ld.so.conf also contains /usr/contrib/lib and
14456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14457 # libtool to hard-code these into programs
14460 cygwin* | mingw* | pw32*)
14461 version_type=windows
14466 case $GCC,$host_os in
14467 yes,cygwin* | yes,mingw* | yes,pw32*)
14468 library_names_spec='$libname.dll.a'
14469 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14470 postinstall_cmds='base_file=`basename \${file}`~
14471 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14472 dldir=$destdir/`dirname \$dlpath`~
14473 test -d \$dldir || mkdir -p \$dldir~
14474 $install_prog $dir/$dlname \$dldir/$dlname'
14475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14476 dlpath=$dir/\$dldll~
14478 shlibpath_overrides_runpath=yes
14482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14483 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14487 # MinGW DLLs use traditional 'lib' prefix
14488 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14490 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14491 # It is most probably a Windows format PATH printed by
14492 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14493 # path with ; separators, and with drive letters. We can handle the
14494 # drive letters (cygwin fileutils understands them), so leave them,
14495 # especially as we might pass files found there to a mingw objdump,
14496 # which wouldn't understand a cygwinified path. Ahh.
14497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14503 # pw32 DLLs use 'pw' prefix rather than 'lib'
14504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14513 dynamic_linker='Win32 ld.exe'
14514 # FIXME: first we should search . and the directory the executable is in
14518 darwin* | rhapsody*)
14519 dynamic_linker="$host_os dyld"
14520 version_type=darwin
14523 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14524 soname_spec='${libname}${release}${major}$shared_ext'
14525 shlibpath_overrides_runpath=yes
14526 shlibpath_var=DYLD_LIBRARY_PATH
14527 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14528 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14529 if test "$GCC" = yes; then
14530 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"`
14532 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14542 soname_spec='${libname}${release}${shared_ext}$major'
14543 shlibpath_var=LD_LIBRARY_PATH
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 shlibpath_overrides_runpath=no
14558 hardcode_into_libs=yes
14559 dynamic_linker='GNU ld.so'
14563 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14564 version_type=freebsd-$objformat
14565 case $version_type in
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14576 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14581 freebsd3.01* | freebsdelf3.01*)
14582 shlibpath_overrides_runpath=yes
14583 hardcode_into_libs=yes
14586 shlibpath_overrides_runpath=no
14587 hardcode_into_libs=yes
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 hardcode_into_libs=yes
14602 hpux9* | hpux10* | hpux11*)
14603 # Give a soname corresponding to the major version so that dld.sl refuses to
14604 # link against other versions.
14608 case "$host_cpu" in
14611 hardcode_into_libs=yes
14612 dynamic_linker="$host_os dld.so"
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 if test "X$HPUX_IA64_MODE" = X32; then
14618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14626 hardcode_into_libs=yes
14627 dynamic_linker="$host_os dld.sl"
14628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14637 dynamic_linker="$host_os dld.sl"
14638 shlibpath_var=SHLIB_PATH
14639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14645 postinstall_cmds='chmod 555 $lib'
14648 irix5* | irix6* | nonstopux*)
14650 nonstopux*) version_type=nonstopux ;;
14652 if test "$lt_cv_prog_gnu_ld" = yes; then
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14663 irix5* | nonstopux*)
14664 libsuff= shlibsuff=
14667 case $LD in # libtool.m4 will add one of these switches to LD
14668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669 libsuff= shlibsuff= libmagic=32-bit;;
14670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671 libsuff=32 shlibsuff=N32 libmagic=N32;;
14672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674 *) libsuff= shlibsuff= libmagic=never-match;;
14678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679 shlibpath_overrides_runpath=no
14680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14682 hardcode_into_libs=yes
14685 # No shared lib support for Linux oldld, aout, or coff.
14686 linux*oldld* | linux*aout* | linux*coff*)
14690 # This must be Linux ELF.
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700 # This implies no fast_install, which is unacceptable.
14701 # Some rework will be needed to allow for fast_install
14702 # before this can be enabled.
14703 hardcode_into_libs=yes
14705 # Append ld.so.conf contents to the search path
14706 if test -f /etc/ld.so.conf; then
14707 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14708 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14711 # We used to test for /lib/ld.so.1 and disable shared libraries on
14712 # powerpc, because MkLinux only supported shared libraries with the
14713 # GNU dynamic linker. Since this was broken with cross compilers,
14714 # most powerpc-linux boxes support dynamic linking these days and
14715 # people can always --disable-shared, the test was removed, and we
14716 # assume the GNU/Linux dynamic linker is in use.
14717 dynamic_linker='GNU/Linux ld.so'
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 shlibpath_overrides_runpath=no
14728 hardcode_into_libs=yes
14729 dynamic_linker='GNU ld.so'
14736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14739 dynamic_linker='NetBSD (a.out) ld.so'
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 dynamic_linker='NetBSD ld.elf_so'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 shlibpath_overrides_runpath=yes
14747 hardcode_into_libs=yes
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 shlibpath_overrides_runpath=yes
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=yes
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14776 openbsd2.[89] | openbsd2.[89].*)
14777 shlibpath_overrides_runpath=no
14780 shlibpath_overrides_runpath=yes
14784 shlibpath_overrides_runpath=yes
14789 libname_spec='$name'
14792 library_names_spec='$libname${shared_ext} $libname.a'
14793 dynamic_linker='OS/2 ld.exe'
14794 shlibpath_var=LIBPATH
14797 osf3* | osf4* | osf5*)
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812 shlibpath_var=LD_LIBRARY_PATH
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 shlibpath_overrides_runpath=yes
14823 hardcode_into_libs=yes
14824 # ldd complains unless libraries are executable
14825 postinstall_cmds='chmod +x $lib'
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath=yes
14834 if test "$with_gnu_ld" = yes; then
14840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 case $host_vendor in
14847 shlibpath_overrides_runpath=no
14849 export_dynamic_flag_spec='${wl}-Blargedynsym'
14850 runpath_var=LD_RUN_PATH
14858 shlibpath_overrides_runpath=no
14859 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14865 if test -d /usr/nec ;then
14867 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14868 soname_spec='$libname${shared_ext}.$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14884 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14885 echo "${ECHO_T}$dynamic_linker" >&6
14886 test "$dynamic_linker" = no && can_build_shared=no
14888 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14889 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14890 hardcode_action_F77=
14891 if test -n "$hardcode_libdir_flag_spec_F77" || \
14892 test -n "$runpath_var F77" || \
14893 test "X$hardcode_automatic_F77"="Xyes" ; then
14895 # We can hardcode non-existant directories.
14896 if test "$hardcode_direct_F77" != no &&
14897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14898 # have to relink, otherwise we might link with an installed library
14899 # when we should be linking with a yet-to-be-installed one
14900 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14901 test "$hardcode_minus_L_F77" != no; then
14902 # Linking always hardcodes the temporary library directory.
14903 hardcode_action_F77=relink
14905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14906 hardcode_action_F77=immediate
14909 # We cannot hardcode anything, or else we can only hardcode existing
14911 hardcode_action_F77=unsupported
14913 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14914 echo "${ECHO_T}$hardcode_action_F77" >&6
14916 if test "$hardcode_action_F77" = relink; then
14917 # Fast installation is not supported
14918 enable_fast_install=no
14919 elif test "$shlibpath_overrides_runpath" = yes ||
14920 test "$enable_shared" = no; then
14921 # Fast installation is not necessary
14922 enable_fast_install=needless
14927 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14928 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14929 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14930 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14931 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14932 echo "$as_me:$LINENO: result: yes" >&5
14933 echo "${ECHO_T}yes" >&6
14935 # FIXME - insert some real tests, host_os isn't really good enough
14938 if test -n "$STRIP" ; then
14939 striplib="$STRIP -x"
14940 echo "$as_me:$LINENO: result: yes" >&5
14941 echo "${ECHO_T}yes" >&6
14943 echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14948 echo "$as_me:$LINENO: result: no" >&5
14949 echo "${ECHO_T}no" >&6
14956 # The else clause should only fire when bootstrapping the
14957 # libtool distribution, otherwise you forgot to ship ltmain.sh
14958 # with your package, and you will get complaints that there are
14959 # no rules to generate ltmain.sh.
14960 if test -f "$ltmain"; then
14961 # See if we are running on zsh, and set the options which allow our commands through
14962 # without removal of \ escapes.
14963 if test -n "${ZSH_VERSION+set}" ; then
14964 setopt NO_GLOB_SUBST
14966 # Now quote all the things that may contain metacharacters while being
14967 # careful not to overquote the AC_SUBSTed values. We take copies of the
14968 # variables and quote the copies for generation of the libtool script.
14969 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14973 deplibs_check_method reload_flag reload_cmds need_locks \
14974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14975 lt_cv_sys_global_symbol_to_c_name_address \
14976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14977 old_postinstall_cmds old_postuninstall_cmds \
14981 lt_prog_compiler_wl_F77 \
14982 lt_prog_compiler_pic_F77 \
14983 lt_prog_compiler_static_F77 \
14984 lt_prog_compiler_no_builtin_flag_F77 \
14985 export_dynamic_flag_spec_F77 \
14986 thread_safe_flag_spec_F77 \
14987 whole_archive_flag_spec_F77 \
14988 enable_shared_with_static_runtimes_F77 \
14989 old_archive_cmds_F77 \
14990 old_archive_from_new_cmds_F77 \
14991 predep_objects_F77 \
14992 postdep_objects_F77 \
14995 compiler_lib_search_path_F77 \
14997 archive_expsym_cmds_F77 \
14998 postinstall_cmds_F77 \
14999 postuninstall_cmds_F77 \
15000 old_archive_from_expsyms_cmds_F77 \
15001 allow_undefined_flag_F77 \
15002 no_undefined_flag_F77 \
15003 export_symbols_cmds_F77 \
15004 hardcode_libdir_flag_spec_F77 \
15005 hardcode_libdir_flag_spec_ld_F77 \
15006 hardcode_libdir_separator_F77 \
15007 hardcode_automatic_F77 \
15009 module_expsym_cmds_F77 \
15010 lt_cv_prog_compiler_c_o_F77 \
15011 exclude_expsyms_F77 \
15012 include_expsyms_F77; do
15015 old_archive_cmds_F77 | \
15016 old_archive_from_new_cmds_F77 | \
15017 archive_cmds_F77 | \
15018 archive_expsym_cmds_F77 | \
15019 module_cmds_F77 | \
15020 module_expsym_cmds_F77 | \
15021 old_archive_from_expsyms_cmds_F77 | \
15022 export_symbols_cmds_F77 | \
15023 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15024 postinstall_cmds | postuninstall_cmds | \
15025 old_postinstall_cmds | old_postuninstall_cmds | \
15026 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15027 # Double-quote double-evaled strings.
15028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15031 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15037 *'\$0 --fallback-echo"')
15038 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15044 cat <<__EOF__ >> "$cfgfile"
15045 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15049 # Shell to use when invoking shell scripts.
15052 # Whether or not to build shared libraries.
15053 build_libtool_libs=$enable_shared
15055 # Whether or not to build static libraries.
15056 build_old_libs=$enable_static
15058 # Whether or not to add -lc for building shared libraries.
15059 build_libtool_need_lc=$archive_cmds_need_lc_F77
15061 # Whether or not to disallow shared libs when runtime libs are static
15062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15064 # Whether or not to optimize for fast installation.
15065 fast_install=$enable_fast_install
15068 host_alias=$host_alias
15071 # An echo program that does not interpret backslashes.
15076 AR_FLAGS=$lt_AR_FLAGS
15081 # A language-specific compiler.
15082 CC=$lt_compiler_F77
15084 # Is the compiler the GNU C compiler?
15090 # The linker used to build libraries.
15093 # Whether we need hard or soft links.
15096 # A BSD-compatible nm program.
15099 # A symbol stripping program
15102 # Used to examine libraries when file_magic_cmd begins "file"
15103 MAGIC_CMD=$MAGIC_CMD
15105 # Used on cygwin: DLL creation program.
15108 # Used on cygwin: object dumper.
15111 # Used on cygwin: assembler.
15114 # The name of the directory that contains temporary libtool files.
15117 # How to create reloadable object files.
15118 reload_flag=$lt_reload_flag
15119 reload_cmds=$lt_reload_cmds
15121 # How to pass a linker flag through the compiler.
15122 wl=$lt_lt_prog_compiler_wl_F77
15124 # Object file suffix (normally "o").
15125 objext="$ac_objext"
15127 # Old archive suffix (normally "a").
15130 # Shared library suffix (normally ".so").
15131 shrext_cmds='$shrext_cmds'
15133 # Executable file suffix (normally "").
15136 # Additional compiler flags for building library objects.
15137 pic_flag=$lt_lt_prog_compiler_pic_F77
15140 # What is the maximum length of a command?
15141 max_cmd_len=$lt_cv_sys_max_cmd_len
15143 # Does compiler simultaneously support -c and -o options?
15144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15146 # Must we lock files when doing compilation ?
15147 need_locks=$lt_need_locks
15149 # Do we need the lib prefix for modules?
15150 need_lib_prefix=$need_lib_prefix
15152 # Do we need a version for libraries?
15153 need_version=$need_version
15155 # Whether dlopen is supported.
15156 dlopen_support=$enable_dlopen
15158 # Whether dlopen of programs is supported.
15159 dlopen_self=$enable_dlopen_self
15161 # Whether dlopen of statically linked programs is supported.
15162 dlopen_self_static=$enable_dlopen_self_static
15164 # Compiler flag to prevent dynamic linking.
15165 link_static_flag=$lt_lt_prog_compiler_static_F77
15167 # Compiler flag to turn off builtin functions.
15168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15170 # Compiler flag to allow reflexive dlopens.
15171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15173 # Compiler flag to generate shared objects directly from archives.
15174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15176 # Compiler flag to generate thread-safe objects.
15177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15179 # Library versioning type.
15180 version_type=$version_type
15182 # Format of library name prefix.
15183 libname_spec=$lt_libname_spec
15185 # List of archive names. First name is the real one, the rest are links.
15186 # The last name is the one that the linker finds with -lNAME.
15187 library_names_spec=$lt_library_names_spec
15189 # The coded name of the library, if different from the real name.
15190 soname_spec=$lt_soname_spec
15192 # Commands used to build and install an old-style archive.
15194 old_archive_cmds=$lt_old_archive_cmds_F77
15195 old_postinstall_cmds=$lt_old_postinstall_cmds
15196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15198 # Create an old-style archive from a shared archive.
15199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15201 # Create a temporary old-style archive to link instead of a shared archive.
15202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15204 # Commands used to build and install a shared archive.
15205 archive_cmds=$lt_archive_cmds_F77
15206 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15207 postinstall_cmds=$lt_postinstall_cmds
15208 postuninstall_cmds=$lt_postuninstall_cmds
15210 # Commands used to build a loadable module (assumed same as above if empty)
15211 module_cmds=$lt_module_cmds_F77
15212 module_expsym_cmds=$lt_module_expsym_cmds_F77
15214 # Commands to strip libraries.
15215 old_striplib=$lt_old_striplib
15216 striplib=$lt_striplib
15218 # Dependencies to place before the objects being linked to create a
15220 predep_objects=$lt_predep_objects_F77
15222 # Dependencies to place after the objects being linked to create a
15224 postdep_objects=$lt_postdep_objects_F77
15226 # Dependencies to place before the objects being linked to create a
15228 predeps=$lt_predeps_F77
15230 # Dependencies to place after the objects being linked to create a
15232 postdeps=$lt_postdeps_F77
15234 # The library search path used internally by the compiler when linking
15235 # a shared library.
15236 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15238 # Method to check whether dependent libraries are shared objects.
15239 deplibs_check_method=$lt_deplibs_check_method
15241 # Command to use when deplibs_check_method == file_magic.
15242 file_magic_cmd=$lt_file_magic_cmd
15244 # Flag that allows shared libraries with undefined symbols to be built.
15245 allow_undefined_flag=$lt_allow_undefined_flag_F77
15247 # Flag that forces no undefined symbols.
15248 no_undefined_flag=$lt_no_undefined_flag_F77
15250 # Commands used to finish a libtool library installation in a directory.
15251 finish_cmds=$lt_finish_cmds
15253 # Same as above, but a single script fragment to be evaled but not shown.
15254 finish_eval=$lt_finish_eval
15256 # Take the output of nm and produce a listing of raw symbols and C names.
15257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15259 # Transform the output of nm in a proper C declaration
15260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15262 # Transform the output of nm in a C name address pair
15263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15265 # This is the shared library runtime path variable.
15266 runpath_var=$runpath_var
15268 # This is the shared library path variable.
15269 shlibpath_var=$shlibpath_var
15271 # Is shlibpath searched before the hard-coded library search path?
15272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15274 # How to hardcode a shared library path into an executable.
15275 hardcode_action=$hardcode_action_F77
15277 # Whether we should hardcode library paths into libraries.
15278 hardcode_into_libs=$hardcode_into_libs
15280 # Flag to hardcode \$libdir into a binary during linking.
15281 # This must work even if \$libdir does not exist.
15282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15284 # If ld is used when linking, flag to hardcode \$libdir into
15285 # a binary during linking. This must work even if \$libdir does
15287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15289 # Whether we need a single -rpath flag with a separated argument.
15290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15293 # resulting binary.
15294 hardcode_direct=$hardcode_direct_F77
15296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15297 # resulting binary.
15298 hardcode_minus_L=$hardcode_minus_L_F77
15300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15301 # the resulting binary.
15302 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15304 # Set to yes if building a shared library automatically hardcodes DIR into the library
15305 # and all subsequent libraries and executables linked against it.
15306 hardcode_automatic=$hardcode_automatic_F77
15308 # Variables whose values should be saved in libtool wrapper scripts and
15309 # restored at relink time.
15310 variables_saved_for_relink="$variables_saved_for_relink"
15312 # Whether libtool must link a program against all its dependency libraries.
15313 link_all_deplibs=$link_all_deplibs_F77
15315 # Compile-time system search path for libraries
15316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15318 # Run-time system search path for libraries
15319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15321 # Fix the shell variable \$srcfile for the compiler.
15322 fix_srcfile_path="$fix_srcfile_path_F77"
15324 # Set to yes if exported symbols are required.
15325 always_export_symbols=$always_export_symbols_F77
15327 # The commands to list exported symbols.
15328 export_symbols_cmds=$lt_export_symbols_cmds_F77
15330 # The commands to extract the exported symbol list from a shared archive.
15331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15333 # Symbols that should not be listed in the preloaded symbols.
15334 exclude_expsyms=$lt_exclude_expsyms_F77
15336 # Symbols that must always be exported.
15337 include_expsyms=$lt_include_expsyms_F77
15339 # ### END LIBTOOL TAG CONFIG: $tagname
15345 # If there is no Makefile yet, we rely on a make rule to execute
15346 # `config.status --recheck' to rerun these tests and create the
15347 # libtool script then.
15348 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15349 if test -f "$ltmain_in"; then
15350 test -f Makefile && make "$ltmain"
15356 ac_cpp='$CPP $CPPFLAGS'
15357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15369 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15373 # Source file extension for Java test sources.
15376 # Object file extension for compiled Java test sources.
15380 # Code to be used in simple compile tests
15381 lt_simple_compile_test_code="class foo {}\n"
15383 # Code to be used in simple link tests
15384 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15386 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15388 # If no C compiler was specified, use CC.
15391 # Allow CC to be a program name with arguments.
15395 # Allow CC to be a program name with arguments.
15401 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15402 archive_cmds_need_lc_GCJ=no
15405 lt_prog_compiler_no_builtin_flag_GCJ=
15407 if test "$GCC" = yes; then
15408 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15411 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15412 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15413 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 lt_cv_prog_compiler_rtti_exceptions=no
15417 ac_outfile=conftest.$ac_objext
15418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15419 lt_compiler_flag="-fno-rtti -fno-exceptions"
15420 # Insert the option either (1) after the last *FLAGS variable, or
15421 # (2) before a word containing "conftest.", or (3) at the end.
15422 # Note that $ac_compile itself does not contain backslashes and begins
15423 # with a dollar sign (not a hyphen), so the echo should work correctly.
15424 # The option is referenced via a variable to avoid confusing sed.
15425 lt_compile=`echo "$ac_compile" | $SED \
15426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15428 -e 's:$: $lt_compiler_flag:'`
15429 (eval echo "\"\$as_me:15429: $lt_compile\"" >&5)
15430 (eval "$lt_compile" 2>conftest.err)
15432 cat conftest.err >&5
15433 echo "$as_me:15433: \$? = $ac_status" >&5
15434 if (exit $ac_status) && test -s "$ac_outfile"; then
15435 # The compiler can only warn and ignore the option if not recognized
15436 # So say no if there are warnings
15437 if test ! -s conftest.err; then
15438 lt_cv_prog_compiler_rtti_exceptions=yes
15444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15448 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15455 lt_prog_compiler_wl_GCJ=
15456 lt_prog_compiler_pic_GCJ=
15457 lt_prog_compiler_static_GCJ=
15459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15462 if test "$GCC" = yes; then
15463 lt_prog_compiler_wl_GCJ='-Wl,'
15464 lt_prog_compiler_static_GCJ='-static'
15468 # All AIX code is PIC.
15469 if test "$host_cpu" = ia64; then
15470 # AIX 5 now supports IA64 processor
15471 lt_prog_compiler_static_GCJ='-Bstatic'
15476 # FIXME: we need at least 68020 code to build shared libraries, but
15477 # adding the `-m68020' flag to GCC prevents building anything better,
15479 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15483 # PIC is the default for these OSes.
15486 mingw* | pw32* | os2*)
15487 # This hack is so that the source file can tell whether it is being
15488 # built for inclusion in a dll (and should export symbols for example).
15489 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15492 darwin* | rhapsody*)
15493 # PIC is the default on this platform
15494 # Common symbols not allowed in MH_DYLIB files
15495 lt_prog_compiler_pic_GCJ='-fno-common'
15499 # Just because we use GCC doesn't mean we suddenly get shared libraries
15500 # on systems that don't support them.
15501 lt_prog_compiler_can_build_shared_GCJ=no
15506 if test -d /usr/nec; then
15507 lt_prog_compiler_pic_GCJ=-Kconform_pic
15512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513 # not for PA HP-UX.
15514 case "$host_cpu" in
15519 lt_prog_compiler_pic_GCJ='-fPIC'
15525 lt_prog_compiler_pic_GCJ='-fPIC'
15529 # PORTME Check for flag to pass linker flags through the system compiler.
15532 lt_prog_compiler_wl_GCJ='-Wl,'
15533 if test "$host_cpu" = ia64; then
15534 # AIX 5 now supports IA64 processor
15535 lt_prog_compiler_static_GCJ='-Bstatic'
15537 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15541 mingw* | pw32* | os2*)
15542 # This hack is so that the source file can tell whether it is being
15543 # built for inclusion in a dll (and should export symbols for example).
15544 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15547 hpux9* | hpux10* | hpux11*)
15548 lt_prog_compiler_wl_GCJ='-Wl,'
15549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15550 # not for PA HP-UX.
15551 case "$host_cpu" in
15556 lt_prog_compiler_pic_GCJ='+Z'
15559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15560 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15563 irix5* | irix6* | nonstopux*)
15564 lt_prog_compiler_wl_GCJ='-Wl,'
15565 # PIC (with -KPIC) is the default.
15566 lt_prog_compiler_static_GCJ='-non_shared'
15570 lt_prog_compiler_pic_GCJ='-KPIC'
15571 lt_prog_compiler_static_GCJ='-Bstatic'
15577 lt_prog_compiler_wl_GCJ='-Wl,'
15578 lt_prog_compiler_pic_GCJ='-KPIC'
15579 lt_prog_compiler_static_GCJ='-static'
15582 lt_prog_compiler_wl_GCJ='-Wl,'
15583 # All Alpha code is PIC.
15584 lt_prog_compiler_static_GCJ='-non_shared'
15589 osf3* | osf4* | osf5*)
15590 lt_prog_compiler_wl_GCJ='-Wl,'
15591 # All OSF/1 code is PIC.
15592 lt_prog_compiler_static_GCJ='-non_shared'
15596 lt_prog_compiler_pic_GCJ='-Kpic'
15597 lt_prog_compiler_static_GCJ='-dn'
15601 lt_prog_compiler_wl_GCJ='-Wl,'
15602 lt_prog_compiler_pic_GCJ='-KPIC'
15603 lt_prog_compiler_static_GCJ='-Bstatic'
15607 lt_prog_compiler_wl_GCJ='-Qoption ld '
15608 lt_prog_compiler_pic_GCJ='-PIC'
15609 lt_prog_compiler_static_GCJ='-Bstatic'
15612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15613 lt_prog_compiler_wl_GCJ='-Wl,'
15614 lt_prog_compiler_pic_GCJ='-KPIC'
15615 lt_prog_compiler_static_GCJ='-Bstatic'
15619 if test -d /usr/nec ;then
15620 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15621 lt_prog_compiler_static_GCJ='-Bstatic'
15626 lt_prog_compiler_pic_GCJ='-pic'
15627 lt_prog_compiler_static_GCJ='-Bstatic'
15631 lt_prog_compiler_can_build_shared_GCJ=no
15636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15637 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15640 # Check to make sure the PIC flag actually works.
15642 if test -n "$lt_prog_compiler_pic_GCJ"; then
15644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15646 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 lt_prog_compiler_pic_works_GCJ=no
15650 ac_outfile=conftest.$ac_objext
15651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15652 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15653 # Insert the option either (1) after the last *FLAGS variable, or
15654 # (2) before a word containing "conftest.", or (3) at the end.
15655 # Note that $ac_compile itself does not contain backslashes and begins
15656 # with a dollar sign (not a hyphen), so the echo should work correctly.
15657 # The option is referenced via a variable to avoid confusing sed.
15658 lt_compile=`echo "$ac_compile" | $SED \
15659 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15661 -e 's:$: $lt_compiler_flag:'`
15662 (eval echo "\"\$as_me:15662: $lt_compile\"" >&5)
15663 (eval "$lt_compile" 2>conftest.err)
15665 cat conftest.err >&5
15666 echo "$as_me:15666: \$? = $ac_status" >&5
15667 if (exit $ac_status) && test -s "$ac_outfile"; then
15668 # The compiler can only warn and ignore the option if not recognized
15669 # So say no if there are warnings
15670 if test ! -s conftest.err; then
15671 lt_prog_compiler_pic_works_GCJ=yes
15677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15678 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15680 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15681 case $lt_prog_compiler_pic_GCJ in
15683 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15686 lt_prog_compiler_pic_GCJ=
15687 lt_prog_compiler_can_build_shared_GCJ=no
15692 # For platforms which do not support PIC, -DPIC is meaningless:
15694 lt_prog_compiler_pic_GCJ=
15697 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15701 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15703 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 lt_cv_prog_compiler_c_o_GCJ=no
15707 $rm -r conftest 2>/dev/null
15711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15713 lt_compiler_flag="-o out/conftest2.$ac_objext"
15714 # Insert the option either (1) after the last *FLAGS variable, or
15715 # (2) before a word containing "conftest.", or (3) at the end.
15716 # Note that $ac_compile itself does not contain backslashes and begins
15717 # with a dollar sign (not a hyphen), so the echo should work correctly.
15718 lt_compile=`echo "$ac_compile" | $SED \
15719 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15721 -e 's:$: $lt_compiler_flag:'`
15722 (eval echo "\"\$as_me:15722: $lt_compile\"" >&5)
15723 (eval "$lt_compile" 2>out/conftest.err)
15725 cat out/conftest.err >&5
15726 echo "$as_me:15726: \$? = $ac_status" >&5
15727 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15729 # The compiler can only warn and ignore the option if not recognized
15730 # So say no if there are warnings
15731 if test ! -s out/conftest.err; then
15732 lt_cv_prog_compiler_c_o_GCJ=yes
15737 # SGI C++ compiler will create directory out/ii_files/ for
15738 # template instantiation
15739 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15740 $rm out/* && rmdir out
15746 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15747 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15750 hard_links="nottested"
15751 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15752 # do not overwrite the value of need_locks provided by the user
15753 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15754 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15759 ln conftest.a conftest.b 2>&5 || hard_links=no
15760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15761 echo "$as_me:$LINENO: result: $hard_links" >&5
15762 echo "${ECHO_T}$hard_links" >&6
15763 if test "$hard_links" = no; then
15764 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15765 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15772 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15773 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15776 allow_undefined_flag_GCJ=
15777 enable_shared_with_static_runtimes_GCJ=no
15779 archive_expsym_cmds_GCJ=
15780 old_archive_From_new_cmds_GCJ=
15781 old_archive_from_expsyms_cmds_GCJ=
15782 export_dynamic_flag_spec_GCJ=
15783 whole_archive_flag_spec_GCJ=
15784 thread_safe_flag_spec_GCJ=
15785 hardcode_libdir_flag_spec_GCJ=
15786 hardcode_libdir_flag_spec_ld_GCJ=
15787 hardcode_libdir_separator_GCJ=
15788 hardcode_direct_GCJ=no
15789 hardcode_minus_L_GCJ=no
15790 hardcode_shlibpath_var_GCJ=unsupported
15791 link_all_deplibs_GCJ=unknown
15792 hardcode_automatic_GCJ=no
15794 module_expsym_cmds_GCJ=
15795 always_export_symbols_GCJ=no
15796 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15797 # include_expsyms should be a list of space-separated symbols to be *always*
15798 # included in the symbol list
15799 include_expsyms_GCJ=
15800 # exclude_expsyms can be an extended regexp of symbols to exclude
15801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15803 # as well as any symbol that contains `d'.
15804 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15806 # platforms (ab)use it in PIC code, but their linkers get confused if
15807 # the symbol is explicitly referenced. Since portable code cannot
15808 # rely on this symbol name, it's probably fine to never include it in
15809 # preloaded symbol tables.
15810 extract_expsyms_cmds=
15813 cygwin* | mingw* | pw32*)
15814 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15815 # When not using gcc, we currently assume that we are using
15816 # Microsoft Visual C++.
15817 if test "$GCC" != yes; then
15827 if test "$with_gnu_ld" = yes; then
15828 # If archive_cmds runs LD, not CC, wlarc should be empty
15831 # See if GNU ld supports shared libraries.
15833 aix3* | aix4* | aix5*)
15834 # On AIX/PPC, the GNU linker is very broken
15835 if test "$host_cpu" != ia64; then
15839 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15840 *** to be unable to reliably create shared libraries on AIX.
15841 *** Therefore, libtool is disabling shared libraries support. If you
15842 *** really care for shared libraries, you may want to modify your PATH
15843 *** so that a non-GNU linker is found, and then restart.
15850 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)'
15851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15852 hardcode_minus_L_GCJ=yes
15854 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15855 # that the semantics of dynamic libraries on AmigaOS, at least up
15856 # to version 4, is to share data among multiple programs linked
15857 # with the same dynamic library. Since this doesn't match the
15858 # behavior of shared libraries on other platforms, we can't use
15864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15865 allow_undefined_flag_GCJ=unsupported
15866 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15867 # support --undefined. This deserves some investigation. FIXME
15868 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874 cygwin* | mingw* | pw32*)
15875 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15876 # as there is no search path for DLLs.
15877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15878 allow_undefined_flag_GCJ=unsupported
15879 always_export_symbols_GCJ=no
15880 enable_shared_with_static_runtimes_GCJ=yes
15881 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15883 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15885 # If the export-symbols file already is a .def file (1st line
15886 # is EXPORTS), use it as is; otherwise, prepend...
15887 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15888 cp $export_symbols $output_objdir/$soname.def;
15890 echo EXPORTS > $output_objdir/$soname.def;
15891 cat $export_symbols >> $output_objdir/$soname.def;
15893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15899 netbsd* | knetbsd*-gnu)
15900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15901 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15904 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15905 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15915 *** create shared libraries on Solaris systems. Therefore, libtool
15916 *** is disabling shared libraries support. We urge you to upgrade GNU
15917 *** binutils to release 2.9.1 or newer. Another option is to modify
15918 *** your PATH or compiler configuration so that the native linker is
15919 *** used, and then restart.
15922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15923 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15931 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15933 hardcode_direct_GCJ=yes
15934 hardcode_shlibpath_var_GCJ=no
15938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15939 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940 archive_cmds_GCJ="$tmp_archive_cmds"
15941 supports_anon_versioning=no
15942 case `$LD -v 2>/dev/null` in
15943 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15944 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15945 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15946 *\ 2.11.*) ;; # other 2.11 versions
15947 *) supports_anon_versioning=yes ;;
15949 if test $supports_anon_versioning = yes; then
15950 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15952 $echo "local: *; };" >> $output_objdir/$libname.ver~
15953 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15955 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15957 link_all_deplibs_GCJ=no
15964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15965 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15973 if test "$ld_shlibs_GCJ" = yes; then
15974 runpath_var=LD_RUN_PATH
15975 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15976 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15977 # ancient GNU ld didn't support --whole-archive et. al.
15978 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15979 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15981 whole_archive_flag_spec_GCJ=
15985 # PORTME fill in a description of your system's linker (not GNU ld)
15988 allow_undefined_flag_GCJ=unsupported
15989 always_export_symbols_GCJ=yes
15990 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'
15991 # Note: this linker hardcodes the directories in LIBPATH if there
15992 # are no directories specified by -L.
15993 hardcode_minus_L_GCJ=yes
15994 if test "$GCC" = yes && test -z "$link_static_flag"; then
15995 # Neither direct hardcoding nor static linking is supported with a
15997 hardcode_direct_GCJ=unsupported
16002 if test "$host_cpu" = ia64; then
16003 # On IA64, the linker does run time linking by default, so we don't
16004 # have to do anything special.
16005 aix_use_runtimelinking=no
16006 exp_sym_flag='-Bexport'
16009 # If we're using GNU nm, then we don't want the "-C" option.
16010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16012 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'
16014 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'
16016 aix_use_runtimelinking=no
16018 # Test if we are trying to use run time linking or normal
16019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16020 # need to do runtime linking.
16021 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16022 for ld_flag in $LDFLAGS; do
16023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16024 aix_use_runtimelinking=yes
16030 exp_sym_flag='-bexport'
16031 no_entry_flag='-bnoentry'
16034 # When large executables or shared objects are built, AIX ld can
16035 # have problems creating the table of contents. If linking a library
16036 # or program results in "error TOC overflow" add -mminimal-toc to
16037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16040 archive_cmds_GCJ=''
16041 hardcode_direct_GCJ=yes
16042 hardcode_libdir_separator_GCJ=':'
16043 link_all_deplibs_GCJ=yes
16045 if test "$GCC" = yes; then
16046 case $host_os in aix4.012|aix4.012.*)
16047 # We only want to do this on AIX 4.2 and lower, the check
16048 # below for broken collect2 doesn't work under 4.3+
16049 collect2name=`${CC} -print-prog-name=collect2`
16050 if test -f "$collect2name" && \
16051 strings "$collect2name" | grep resolve_lib_name >/dev/null
16053 # We have reworked collect2
16054 hardcode_direct_GCJ=yes
16056 # We have old collect2
16057 hardcode_direct_GCJ=unsupported
16058 # It fails to find uninstalled libraries when the uninstalled
16059 # path is not listed in the libpath. Setting hardcode_minus_L
16060 # to unsupported forces relinking
16061 hardcode_minus_L_GCJ=yes
16062 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16063 hardcode_libdir_separator_GCJ=
16066 shared_flag='-shared'
16069 if test "$host_cpu" = ia64; then
16070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16071 # chokes on -Wl,-G. The following line is correct:
16074 if test "$aix_use_runtimelinking" = yes; then
16075 shared_flag='${wl}-G'
16077 shared_flag='${wl}-bM:SRE'
16082 # It seems that -bexpall does not export symbols beginning with
16083 # underscore (_), so it is better to generate a list of symbols to export.
16084 always_export_symbols_GCJ=yes
16085 if test "$aix_use_runtimelinking" = yes; then
16086 # Warning - without using the other runtime loading flags (-brtl),
16087 # -berok will link without error, but may produce a broken library.
16088 allow_undefined_flag_GCJ='-berok'
16089 # Determine the default libpath from the value encoded in an empty executable.
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16107 (eval $ac_link) 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16129 # Check for a 64-bit object if we didn't find anything.
16130 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; }
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16137 rm -f conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16141 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16142 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16144 if test "$host_cpu" = ia64; then
16145 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16146 allow_undefined_flag_GCJ="-z nodefs"
16147 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16149 # Determine the default libpath from the value encoded in an empty executable.
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16167 (eval $ac_link) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16189 # Check for a 64-bit object if we didn't find anything.
16190 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; }
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16197 rm -f conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16201 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16202 # Warning - without using the other run time loading flags,
16203 # -berok will link without error, but may produce a broken library.
16204 no_undefined_flag_GCJ=' ${wl}-bernotok'
16205 allow_undefined_flag_GCJ=' ${wl}-berok'
16206 # -bexpall does not export symbols beginning with underscore (_)
16207 always_export_symbols_GCJ=yes
16208 # Exported symbols can be pulled into shared objects from archives
16209 whole_archive_flag_spec_GCJ=' '
16210 archive_cmds_need_lc_GCJ=yes
16211 # This is similar to how AIX traditionally builds it's shared libraries.
16212 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16218 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)'
16219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220 hardcode_minus_L_GCJ=yes
16221 # see comment about different semantics on the GNU ld section
16226 export_dynamic_flag_spec_GCJ=-rdynamic
16229 cygwin* | mingw* | pw32*)
16230 # When not using gcc, we currently assume that we are using
16231 # Microsoft Visual C++.
16232 # hardcode_libdir_flag_spec is actually meaningless, as there is
16233 # no search path for DLLs.
16234 hardcode_libdir_flag_spec_GCJ=' '
16235 allow_undefined_flag_GCJ=unsupported
16236 # Tell ltmain to make .lib files, not .a files.
16238 # Tell ltmain to make .dll files, not .so files.
16240 # FIXME: Setting linknames here is a bad hack.
16241 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16242 # The linker will automatically build a .lib file if we build a DLL.
16243 old_archive_From_new_cmds_GCJ='true'
16244 # FIXME: Should let the user specify the lib program.
16245 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16246 fix_srcfile_path='`cygpath -w "$srcfile"`'
16247 enable_shared_with_static_runtimes_GCJ=yes
16250 darwin* | rhapsody*)
16251 if test "$GXX" = yes ; then
16252 archive_cmds_need_lc_GCJ=no
16254 rhapsody* | darwin1.[012])
16255 allow_undefined_flag_GCJ='-undefined suppress'
16258 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16259 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16261 case ${MACOSX_DEPLOYMENT_TARGET} in
16263 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16266 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16272 lt_int_apple_cc_single_mod=no
16273 output_verbose_link_cmd='echo'
16274 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16275 lt_int_apple_cc_single_mod=yes
16277 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16278 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16280 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16282 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16283 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16284 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16285 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16287 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16289 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}'
16290 hardcode_direct_GCJ=no
16291 hardcode_automatic_GCJ=yes
16292 hardcode_shlibpath_var_GCJ=unsupported
16293 whole_archive_flag_spec_GCJ='-all_load $convenience'
16294 link_all_deplibs_GCJ=yes
16301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16303 hardcode_shlibpath_var_GCJ=no
16310 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16311 # support. Future versions do this automatically, but an explicit c++rt0.o
16312 # does not break anything, and helps significantly (at the cost of a little
16315 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16317 hardcode_direct_GCJ=yes
16318 hardcode_shlibpath_var_GCJ=no
16321 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16323 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324 hardcode_direct_GCJ=yes
16325 hardcode_minus_L_GCJ=yes
16326 hardcode_shlibpath_var_GCJ=no
16329 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16330 freebsd* | kfreebsd*-gnu)
16331 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16332 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16333 hardcode_direct_GCJ=yes
16334 hardcode_shlibpath_var_GCJ=no
16338 if test "$GCC" = yes; then
16339 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'
16341 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'
16343 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16344 hardcode_libdir_separator_GCJ=:
16345 hardcode_direct_GCJ=yes
16347 # hardcode_minus_L: Not really in the search PATH,
16348 # but as the default location of the library.
16349 hardcode_minus_L_GCJ=yes
16350 export_dynamic_flag_spec_GCJ='${wl}-E'
16354 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16355 case "$host_cpu" in
16357 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16360 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16364 case "$host_cpu" in
16366 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16369 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16373 if test "$with_gnu_ld" = no; then
16374 case "$host_cpu" in
16376 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16377 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16378 hardcode_libdir_separator_GCJ=:
16379 hardcode_direct_GCJ=no
16380 hardcode_shlibpath_var_GCJ=no
16383 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16384 hardcode_direct_GCJ=no
16385 hardcode_shlibpath_var_GCJ=no
16387 # hardcode_minus_L: Not really in the search PATH,
16388 # but as the default location of the library.
16389 hardcode_minus_L_GCJ=yes
16392 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16393 hardcode_libdir_separator_GCJ=:
16394 hardcode_direct_GCJ=yes
16395 export_dynamic_flag_spec_GCJ='${wl}-E'
16397 # hardcode_minus_L: Not really in the search PATH,
16398 # but as the default location of the library.
16399 hardcode_minus_L_GCJ=yes
16405 irix5* | irix6* | nonstopux*)
16406 if test "$GCC" = yes; then
16407 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'
16409 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'
16410 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator_GCJ=:
16414 link_all_deplibs_GCJ=yes
16417 netbsd* | knetbsd*-gnu)
16418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16421 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16423 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16424 hardcode_direct_GCJ=yes
16425 hardcode_shlibpath_var_GCJ=no
16429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16430 hardcode_direct_GCJ=yes
16431 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16432 hardcode_libdir_separator_GCJ=:
16433 hardcode_shlibpath_var_GCJ=no
16437 hardcode_direct_GCJ=yes
16438 hardcode_shlibpath_var_GCJ=no
16439 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16440 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16442 export_dynamic_flag_spec_GCJ='${wl}-E'
16445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16446 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16450 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16459 hardcode_minus_L_GCJ=yes
16460 allow_undefined_flag_GCJ=unsupported
16461 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'
16462 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16466 if test "$GCC" = yes; then
16467 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16468 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'
16470 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16471 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'
16473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16474 hardcode_libdir_separator_GCJ=:
16477 osf4* | osf5*) # as osf3* with the addition of -msym flag
16478 if test "$GCC" = yes; then
16479 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16480 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'
16481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16483 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16484 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'
16485 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~
16486 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16488 # Both c and cxx compiler support -rpath directly
16489 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16491 hardcode_libdir_separator_GCJ=:
16495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496 hardcode_shlibpath_var_GCJ=no
16497 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16498 runpath_var=LD_RUN_PATH
16499 hardcode_runpath_var=yes
16503 no_undefined_flag_GCJ=' -z text'
16504 if test "$GCC" = yes; then
16505 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16506 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16507 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16509 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16511 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16514 hardcode_shlibpath_var_GCJ=no
16516 solaris2.[0-5] | solaris2.[0-5].*) ;;
16517 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16518 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16520 link_all_deplibs_GCJ=yes
16524 if test "x$host_vendor" = xsequent; then
16525 # Use $CC to link under sequent, because it throws in some extra .o
16526 # files that make .init and .fini sections work.
16527 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16529 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532 hardcode_direct_GCJ=yes
16533 hardcode_minus_L_GCJ=yes
16534 hardcode_shlibpath_var_GCJ=no
16538 case $host_vendor in
16540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_direct_GCJ=yes # is this really true???
16544 ## LD is ld it makes a PLAMLIB
16545 ## CC just makes a GrossModule.
16546 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16547 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16548 hardcode_direct_GCJ=no
16551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16555 runpath_var='LD_RUN_PATH'
16556 hardcode_shlibpath_var_GCJ=no
16560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_shlibpath_var_GCJ=no
16562 export_dynamic_flag_spec_GCJ='-Bexport'
16566 if test -d /usr/nec; then
16567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568 hardcode_shlibpath_var_GCJ=no
16569 runpath_var=LD_RUN_PATH
16570 hardcode_runpath_var=yes
16576 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_direct_GCJ=yes
16578 hardcode_minus_L_GCJ=no
16579 hardcode_shlibpath_var_GCJ=no
16580 hardcode_runpath_var=yes
16581 runpath_var=LD_RUN_PATH
16584 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16585 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16586 if test "$GCC" = yes; then
16587 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16589 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 runpath_var='LD_RUN_PATH'
16592 hardcode_shlibpath_var_GCJ=no
16596 no_undefined_flag_GCJ=' -z text'
16597 # $CC -shared without GNU ld will not create a library from C++
16598 # object files and a static libstdc++, better avoid it by now
16599 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16602 hardcode_libdir_flag_spec_GCJ=
16603 hardcode_shlibpath_var_GCJ=no
16604 runpath_var='LD_RUN_PATH'
16608 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610 hardcode_shlibpath_var_GCJ=no
16619 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16620 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16621 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16624 if test "$GCC" = yes; then
16625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16629 # Do we need to explicitly link libc?
16631 case "x$archive_cmds_need_lc_GCJ" in
16633 # Assume -lc should be added
16634 archive_cmds_need_lc_GCJ=yes
16636 if test "$enable_shared" = yes && test "$GCC" = yes; then
16637 case $archive_cmds_GCJ in
16639 # FIXME: we may have to deal with multi-command sequences.
16642 # Test whether the compiler implicitly links with -lc since on some
16643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16644 # to ld, don't add -lc before -lgcc.
16645 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } 2>conftest.err; then
16657 libobjs=conftest.$ac_objext
16659 wl=$lt_prog_compiler_wl_GCJ
16665 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16666 allow_undefined_flag_GCJ=
16667 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16668 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }
16673 archive_cmds_need_lc_GCJ=no
16675 archive_cmds_need_lc_GCJ=yes
16677 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16679 cat conftest.err 1>&5
16682 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16683 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16690 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16692 library_names_spec=
16693 libname_spec='lib$name'
16697 postuninstall_cmds=
16701 shlibpath_overrides_runpath=unknown
16703 dynamic_linker="$host_os ld.so"
16704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16705 if test "$GCC" = yes; then
16706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16707 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16708 # if the path contains ";" then we assume it to be the separator
16709 # otherwise default to the standard path separator (i.e. ":") - it is
16710 # assumed that no part of a normal pathname contains ";" but that should
16711 # okay in the real world where ";" in dirpaths is itself problematic.
16712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16719 need_lib_prefix=unknown
16720 hardcode_into_libs=no
16722 # when you set need_version to no, make sure it does not cause -set_version
16723 # flags to be left without arguments
16724 need_version=unknown
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16730 shlibpath_var=LIBPATH
16732 # AIX 3 has no versioning support, so we append a major version to the name.
16733 soname_spec='${libname}${release}${shared_ext}$major'
16740 hardcode_into_libs=yes
16741 if test "$host_cpu" = ia64; then
16742 # AIX 5 supports IA64
16743 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16744 shlibpath_var=LD_LIBRARY_PATH
16746 # With GCC up to 2.95.x, collect2 would create an import file
16747 # for dependence libraries. The import file would start with
16748 # the line `#! .'. This would cause the generated library to
16749 # depend on `.', always an invalid library. This was fixed in
16750 # development snapshots of GCC prior to 3.0.
16752 aix4 | aix4.[01] | aix4.[01].*)
16753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16755 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16758 can_build_shared=no
16762 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16763 # soname into executable. Probably we can add versioning support to
16764 # collect2, so additional links can be useful in future.
16765 if test "$aix_use_runtimelinking" = yes; then
16766 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16767 # instead of lib<name>.a to let people know that these are not
16768 # typical AIX shared libraries.
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 # We preserve .a as extension for shared libraries through AIX4.2
16772 # and later when we are not doing run time linking.
16773 library_names_spec='${libname}${release}.a $libname.a'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LIBPATH
16781 library_names_spec='$libname.ixlibrary $libname.a'
16782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16783 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'
16787 library_names_spec='${libname}${shared_ext}'
16788 dynamic_linker="$host_os ld.so"
16789 shlibpath_var=LIBRARY_PATH
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16801 # the default ld.so.conf also contains /usr/contrib/lib and
16802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16803 # libtool to hard-code these into programs
16806 cygwin* | mingw* | pw32*)
16807 version_type=windows
16812 case $GCC,$host_os in
16813 yes,cygwin* | yes,mingw* | yes,pw32*)
16814 library_names_spec='$libname.dll.a'
16815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16816 postinstall_cmds='base_file=`basename \${file}`~
16817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16818 dldir=$destdir/`dirname \$dlpath`~
16819 test -d \$dldir || mkdir -p \$dldir~
16820 $install_prog $dir/$dlname \$dldir/$dlname'
16821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16822 dlpath=$dir/\$dldll~
16824 shlibpath_overrides_runpath=yes
16828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16829 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16830 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16833 # MinGW DLLs use traditional 'lib' prefix
16834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16836 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16837 # It is most probably a Windows format PATH printed by
16838 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16839 # path with ; separators, and with drive letters. We can handle the
16840 # drive letters (cygwin fileutils understands them), so leave them,
16841 # especially as we might pass files found there to a mingw objdump,
16842 # which wouldn't understand a cygwinified path. Ahh.
16843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16849 # pw32 DLLs use 'pw' prefix rather than 'lib'
16850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16856 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16859 dynamic_linker='Win32 ld.exe'
16860 # FIXME: first we should search . and the directory the executable is in
16864 darwin* | rhapsody*)
16865 dynamic_linker="$host_os dyld"
16866 version_type=darwin
16869 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16870 soname_spec='${libname}${release}${major}$shared_ext'
16871 shlibpath_overrides_runpath=yes
16872 shlibpath_var=DYLD_LIBRARY_PATH
16873 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16874 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16875 if test "$GCC" = yes; then
16876 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"`
16878 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 shlibpath_var=LD_LIBRARY_PATH
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 shlibpath_var=LD_LIBRARY_PATH
16903 shlibpath_overrides_runpath=no
16904 hardcode_into_libs=yes
16905 dynamic_linker='GNU ld.so'
16909 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16910 version_type=freebsd-$objformat
16911 case $version_type in
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16922 shlibpath_var=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath=yes
16927 freebsd3.01* | freebsdelf3.01*)
16928 shlibpath_overrides_runpath=yes
16929 hardcode_into_libs=yes
16932 shlibpath_overrides_runpath=no
16933 hardcode_into_libs=yes
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 hardcode_into_libs=yes
16948 hpux9* | hpux10* | hpux11*)
16949 # Give a soname corresponding to the major version so that dld.sl refuses to
16950 # link against other versions.
16954 case "$host_cpu" in
16957 hardcode_into_libs=yes
16958 dynamic_linker="$host_os dld.so"
16959 shlibpath_var=LD_LIBRARY_PATH
16960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 if test "X$HPUX_IA64_MODE" = X32; then
16964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16966 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16972 hardcode_into_libs=yes
16973 dynamic_linker="$host_os dld.sl"
16974 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977 soname_spec='${libname}${release}${shared_ext}$major'
16978 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16983 dynamic_linker="$host_os dld.sl"
16984 shlibpath_var=SHLIB_PATH
16985 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16990 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16991 postinstall_cmds='chmod 555 $lib'
16994 irix5* | irix6* | nonstopux*)
16996 nonstopux*) version_type=nonstopux ;;
16998 if test "$lt_cv_prog_gnu_ld" = yes; then
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17009 irix5* | nonstopux*)
17010 libsuff= shlibsuff=
17013 case $LD in # libtool.m4 will add one of these switches to LD
17014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17015 libsuff= shlibsuff= libmagic=32-bit;;
17016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17017 libsuff=32 shlibsuff=N32 libmagic=N32;;
17018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17020 *) libsuff= shlibsuff= libmagic=never-match;;
17024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17025 shlibpath_overrides_runpath=no
17026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17028 hardcode_into_libs=yes
17031 # No shared lib support for Linux oldld, aout, or coff.
17032 linux*oldld* | linux*aout* | linux*coff*)
17036 # This must be Linux ELF.
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17044 shlibpath_var=LD_LIBRARY_PATH
17045 shlibpath_overrides_runpath=no
17046 # This implies no fast_install, which is unacceptable.
17047 # Some rework will be needed to allow for fast_install
17048 # before this can be enabled.
17049 hardcode_into_libs=yes
17051 # Append ld.so.conf contents to the search path
17052 if test -f /etc/ld.so.conf; then
17053 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17057 # We used to test for /lib/ld.so.1 and disable shared libraries on
17058 # powerpc, because MkLinux only supported shared libraries with the
17059 # GNU dynamic linker. Since this was broken with cross compilers,
17060 # most powerpc-linux boxes support dynamic linking these days and
17061 # people can always --disable-shared, the test was removed, and we
17062 # assume the GNU/Linux dynamic linker is in use.
17063 dynamic_linker='GNU/Linux ld.so'
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=no
17074 hardcode_into_libs=yes
17075 dynamic_linker='GNU ld.so'
17082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17085 dynamic_linker='NetBSD (a.out) ld.so'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 dynamic_linker='NetBSD ld.elf_so'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 shlibpath_overrides_runpath=yes
17093 hardcode_into_libs=yes
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 shlibpath_overrides_runpath=yes
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17122 openbsd2.[89] | openbsd2.[89].*)
17123 shlibpath_overrides_runpath=no
17126 shlibpath_overrides_runpath=yes
17130 shlibpath_overrides_runpath=yes
17135 libname_spec='$name'
17138 library_names_spec='$libname${shared_ext} $libname.a'
17139 dynamic_linker='OS/2 ld.exe'
17140 shlibpath_var=LIBPATH
17143 osf3* | osf4* | osf5*)
17147 soname_spec='${libname}${release}${shared_ext}$major'
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17151 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 shlibpath_var=LD_LIBRARY_PATH
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes
17169 hardcode_into_libs=yes
17170 # ldd complains unless libraries are executable
17171 postinstall_cmds='chmod +x $lib'
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 shlibpath_overrides_runpath=yes
17180 if test "$with_gnu_ld" = yes; then
17186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189 soname_spec='${libname}${release}${shared_ext}$major'
17190 shlibpath_var=LD_LIBRARY_PATH
17191 case $host_vendor in
17193 shlibpath_overrides_runpath=no
17195 export_dynamic_flag_spec='${wl}-Blargedynsym'
17196 runpath_var=LD_RUN_PATH
17204 shlibpath_overrides_runpath=no
17205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17211 if test -d /usr/nec ;then
17213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17214 soname_spec='$libname${shared_ext}.$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17230 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17231 echo "${ECHO_T}$dynamic_linker" >&6
17232 test "$dynamic_linker" = no && can_build_shared=no
17234 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17235 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17236 hardcode_action_GCJ=
17237 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17238 test -n "$runpath_var GCJ" || \
17239 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17241 # We can hardcode non-existant directories.
17242 if test "$hardcode_direct_GCJ" != no &&
17243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17244 # have to relink, otherwise we might link with an installed library
17245 # when we should be linking with a yet-to-be-installed one
17246 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17247 test "$hardcode_minus_L_GCJ" != no; then
17248 # Linking always hardcodes the temporary library directory.
17249 hardcode_action_GCJ=relink
17251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17252 hardcode_action_GCJ=immediate
17255 # We cannot hardcode anything, or else we can only hardcode existing
17257 hardcode_action_GCJ=unsupported
17259 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17260 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17262 if test "$hardcode_action_GCJ" = relink; then
17263 # Fast installation is not supported
17264 enable_fast_install=no
17265 elif test "$shlibpath_overrides_runpath" = yes ||
17266 test "$enable_shared" = no; then
17267 # Fast installation is not necessary
17268 enable_fast_install=needless
17273 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17274 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17275 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17277 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17278 echo "$as_me:$LINENO: result: yes" >&5
17279 echo "${ECHO_T}yes" >&6
17281 # FIXME - insert some real tests, host_os isn't really good enough
17284 if test -n "$STRIP" ; then
17285 striplib="$STRIP -x"
17286 echo "$as_me:$LINENO: result: yes" >&5
17287 echo "${ECHO_T}yes" >&6
17289 echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6
17294 echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6
17300 if test "x$enable_dlopen" != xyes; then
17301 enable_dlopen=unknown
17302 enable_dlopen_self=unknown
17303 enable_dlopen_self_static=unknown
17310 lt_cv_dlopen="load_add_on"
17312 lt_cv_dlopen_self=yes
17316 lt_cv_dlopen="LoadLibrary"
17321 lt_cv_dlopen="dlopen"
17326 # if libdl is installed we need to link against it
17327 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17328 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17329 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 ac_check_lib_save_LIBS=$LIBS
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 /* Override any gcc2 internal prototype to avoid an error. */
17345 /* We use char because int might match the return type of a gcc2
17346 builtin and then its argument prototype would still apply. */
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest$ac_exeext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_lib_dl_dlopen=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ac_cv_lib_dl_dlopen=no
17384 rm -f conftest.err conftest.$ac_objext \
17385 conftest$ac_exeext conftest.$ac_ext
17386 LIBS=$ac_check_lib_save_LIBS
17388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17390 if test $ac_cv_lib_dl_dlopen = yes; then
17391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17394 lt_cv_dlopen="dyld"
17396 lt_cv_dlopen_self=yes
17403 echo "$as_me:$LINENO: checking for shl_load" >&5
17404 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17405 if test "${ac_cv_func_shl_load+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17416 #define shl_load innocuous_shl_load
17418 /* System header to define __stub macros and hopefully few prototypes,
17419 which can conflict with char shl_load (); below.
17420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17421 <limits.h> exists even on freestanding compilers. */
17424 # include <limits.h>
17426 # include <assert.h>
17431 /* Override any gcc2 internal prototype to avoid an error. */
17436 /* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17439 /* The GNU C library defines this for functions which it implements
17440 to always fail with ENOSYS. Some functions are actually named
17441 something starting with __ and the normal name is an alias. */
17442 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17445 char (*f) () = shl_load;
17454 return f != shl_load;
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17461 (eval $ac_link) 2>conftest.er1
17463 grep -v '^ *+' conftest.er1 >conftest.err
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_func_shl_load=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ac_cv_func_shl_load=no
17487 rm -f conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17490 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17491 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17492 if test $ac_cv_func_shl_load = yes; then
17493 lt_cv_dlopen="shl_load"
17495 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17496 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17497 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 ac_check_lib_save_LIBS=$LIBS
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17509 /* Override any gcc2 internal prototype to avoid an error. */
17513 /* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526 (eval $ac_link) 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_lib_dld_shl_load=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_cv_lib_dld_shl_load=no
17552 rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17554 LIBS=$ac_check_lib_save_LIBS
17556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17558 if test $ac_cv_lib_dld_shl_load = yes; then
17559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17561 echo "$as_me:$LINENO: checking for dlopen" >&5
17562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17563 if test "${ac_cv_func_dlopen+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574 #define dlopen innocuous_dlopen
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char dlopen (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17582 # include <limits.h>
17584 # include <assert.h>
17589 /* Override any gcc2 internal prototype to avoid an error. */
17594 /* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
17597 /* The GNU C library defines this for functions which it implements
17598 to always fail with ENOSYS. Some functions are actually named
17599 something starting with __ and the normal name is an alias. */
17600 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17603 char (*f) () = dlopen;
17612 return f != dlopen;
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_func_dlopen=yes
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_cv_func_dlopen=no
17645 rm -f conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17648 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17649 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17650 if test $ac_cv_func_dlopen = yes; then
17651 lt_cv_dlopen="dlopen"
17653 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 ac_check_lib_save_LIBS=$LIBS
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17667 /* Override any gcc2 internal prototype to avoid an error. */
17671 /* We use char because int might match the return type of a gcc2
17672 builtin and then its argument prototype would still apply. */
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
17691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest$ac_exeext'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_lib_dl_dlopen=yes
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 ac_cv_lib_dl_dlopen=no
17710 rm -f conftest.err conftest.$ac_objext \
17711 conftest$ac_exeext conftest.$ac_ext
17712 LIBS=$ac_check_lib_save_LIBS
17714 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17716 if test $ac_cv_lib_dl_dlopen = yes; then
17717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17719 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17720 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17721 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 ac_check_lib_save_LIBS=$LIBS
17725 LIBS="-lsvld $LIBS"
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17733 /* Override any gcc2 internal prototype to avoid an error. */
17737 /* We use char because int might match the return type of a gcc2
17738 builtin and then its argument prototype would still apply. */
17748 rm -f conftest.$ac_objext conftest$ac_exeext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest$ac_exeext'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 ac_cv_lib_svld_dlopen=yes
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17774 ac_cv_lib_svld_dlopen=no
17776 rm -f conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 LIBS=$ac_check_lib_save_LIBS
17780 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17781 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17782 if test $ac_cv_lib_svld_dlopen = yes; then
17783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17785 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17786 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17787 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 ac_check_lib_save_LIBS=$LIBS
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17799 /* Override any gcc2 internal prototype to avoid an error. */
17803 /* We use char because int might match the return type of a gcc2
17804 builtin and then its argument prototype would still apply. */
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816 (eval $ac_link) 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_lib_dld_dld_link=yes
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_lib_dld_dld_link=no
17842 rm -f conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17846 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17847 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17848 if test $ac_cv_lib_dld_dld_link = yes; then
17849 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17870 if test "x$lt_cv_dlopen" != xno; then
17876 case $lt_cv_dlopen in
17878 save_CPPFLAGS="$CPPFLAGS"
17879 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17881 save_LDFLAGS="$LDFLAGS"
17882 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17885 LIBS="$lt_cv_dlopen_libs $LIBS"
17887 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17888 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17889 if test "${lt_cv_dlopen_self+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 if test "$cross_compiling" = yes; then :
17893 lt_cv_dlopen_self=cross
17895 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17896 lt_status=$lt_dlunknown
17897 cat > conftest.$ac_ext <<EOF
17898 #line 17898 "configure"
17899 #include "confdefs.h"
17908 # define LT_DLGLOBAL RTLD_GLOBAL
17911 # define LT_DLGLOBAL DL_GLOBAL
17913 # define LT_DLGLOBAL 0
17917 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17918 find out it does not work in some platform. */
17919 #ifndef LT_DLLAZY_OR_NOW
17921 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17924 # define LT_DLLAZY_OR_NOW DL_LAZY
17927 # define LT_DLLAZY_OR_NOW RTLD_NOW
17930 # define LT_DLLAZY_OR_NOW DL_NOW
17932 # define LT_DLLAZY_OR_NOW 0
17940 extern "C" void exit (int);
17943 void fnord() { int i=42;}
17946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17947 int status = $lt_dlunknown;
17951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17952 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17953 /* dlclose (self); */
17959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960 (eval $ac_link) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17964 (./conftest; exit; ) 2>/dev/null
17966 case x$lt_status in
17967 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17968 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17969 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17972 # compilation failed
17973 lt_cv_dlopen_self=no
17980 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17981 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17983 if test "x$lt_cv_dlopen_self" = xyes; then
17984 LDFLAGS="$LDFLAGS $link_static_flag"
17985 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17986 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17987 if test "${lt_cv_dlopen_self_static+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 if test "$cross_compiling" = yes; then :
17991 lt_cv_dlopen_self_static=cross
17993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17994 lt_status=$lt_dlunknown
17995 cat > conftest.$ac_ext <<EOF
17996 #line 17996 "configure"
17997 #include "confdefs.h"
18006 # define LT_DLGLOBAL RTLD_GLOBAL
18009 # define LT_DLGLOBAL DL_GLOBAL
18011 # define LT_DLGLOBAL 0
18015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18016 find out it does not work in some platform. */
18017 #ifndef LT_DLLAZY_OR_NOW
18019 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18022 # define LT_DLLAZY_OR_NOW DL_LAZY
18025 # define LT_DLLAZY_OR_NOW RTLD_NOW
18028 # define LT_DLLAZY_OR_NOW DL_NOW
18030 # define LT_DLLAZY_OR_NOW 0
18038 extern "C" void exit (int);
18041 void fnord() { int i=42;}
18044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18045 int status = $lt_dlunknown;
18049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18050 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18051 /* dlclose (self); */
18057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18062 (./conftest; exit; ) 2>/dev/null
18064 case x$lt_status in
18065 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18066 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18067 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18070 # compilation failed
18071 lt_cv_dlopen_self_static=no
18078 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18079 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18082 CPPFLAGS="$save_CPPFLAGS"
18083 LDFLAGS="$save_LDFLAGS"
18088 case $lt_cv_dlopen_self in
18089 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18090 *) enable_dlopen_self=unknown ;;
18093 case $lt_cv_dlopen_self_static in
18094 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18095 *) enable_dlopen_self_static=unknown ;;
18100 # The else clause should only fire when bootstrapping the
18101 # libtool distribution, otherwise you forgot to ship ltmain.sh
18102 # with your package, and you will get complaints that there are
18103 # no rules to generate ltmain.sh.
18104 if test -f "$ltmain"; then
18105 # See if we are running on zsh, and set the options which allow our commands through
18106 # without removal of \ escapes.
18107 if test -n "${ZSH_VERSION+set}" ; then
18108 setopt NO_GLOB_SUBST
18110 # Now quote all the things that may contain metacharacters while being
18111 # careful not to overquote the AC_SUBSTed values. We take copies of the
18112 # variables and quote the copies for generation of the libtool script.
18113 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18115 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18116 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18117 deplibs_check_method reload_flag reload_cmds need_locks \
18118 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18119 lt_cv_sys_global_symbol_to_c_name_address \
18120 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18121 old_postinstall_cmds old_postuninstall_cmds \
18125 lt_prog_compiler_wl_GCJ \
18126 lt_prog_compiler_pic_GCJ \
18127 lt_prog_compiler_static_GCJ \
18128 lt_prog_compiler_no_builtin_flag_GCJ \
18129 export_dynamic_flag_spec_GCJ \
18130 thread_safe_flag_spec_GCJ \
18131 whole_archive_flag_spec_GCJ \
18132 enable_shared_with_static_runtimes_GCJ \
18133 old_archive_cmds_GCJ \
18134 old_archive_from_new_cmds_GCJ \
18135 predep_objects_GCJ \
18136 postdep_objects_GCJ \
18139 compiler_lib_search_path_GCJ \
18141 archive_expsym_cmds_GCJ \
18142 postinstall_cmds_GCJ \
18143 postuninstall_cmds_GCJ \
18144 old_archive_from_expsyms_cmds_GCJ \
18145 allow_undefined_flag_GCJ \
18146 no_undefined_flag_GCJ \
18147 export_symbols_cmds_GCJ \
18148 hardcode_libdir_flag_spec_GCJ \
18149 hardcode_libdir_flag_spec_ld_GCJ \
18150 hardcode_libdir_separator_GCJ \
18151 hardcode_automatic_GCJ \
18153 module_expsym_cmds_GCJ \
18154 lt_cv_prog_compiler_c_o_GCJ \
18155 exclude_expsyms_GCJ \
18156 include_expsyms_GCJ; do
18159 old_archive_cmds_GCJ | \
18160 old_archive_from_new_cmds_GCJ | \
18161 archive_cmds_GCJ | \
18162 archive_expsym_cmds_GCJ | \
18163 module_cmds_GCJ | \
18164 module_expsym_cmds_GCJ | \
18165 old_archive_from_expsyms_cmds_GCJ | \
18166 export_symbols_cmds_GCJ | \
18167 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18168 postinstall_cmds | postuninstall_cmds | \
18169 old_postinstall_cmds | old_postuninstall_cmds | \
18170 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18171 # Double-quote double-evaled strings.
18172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18181 *'\$0 --fallback-echo"')
18182 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18188 cat <<__EOF__ >> "$cfgfile"
18189 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18193 # Shell to use when invoking shell scripts.
18196 # Whether or not to build shared libraries.
18197 build_libtool_libs=$enable_shared
18199 # Whether or not to build static libraries.
18200 build_old_libs=$enable_static
18202 # Whether or not to add -lc for building shared libraries.
18203 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18205 # Whether or not to disallow shared libs when runtime libs are static
18206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18208 # Whether or not to optimize for fast installation.
18209 fast_install=$enable_fast_install
18212 host_alias=$host_alias
18215 # An echo program that does not interpret backslashes.
18220 AR_FLAGS=$lt_AR_FLAGS
18225 # A language-specific compiler.
18226 CC=$lt_compiler_GCJ
18228 # Is the compiler the GNU C compiler?
18234 # The linker used to build libraries.
18237 # Whether we need hard or soft links.
18240 # A BSD-compatible nm program.
18243 # A symbol stripping program
18246 # Used to examine libraries when file_magic_cmd begins "file"
18247 MAGIC_CMD=$MAGIC_CMD
18249 # Used on cygwin: DLL creation program.
18252 # Used on cygwin: object dumper.
18255 # Used on cygwin: assembler.
18258 # The name of the directory that contains temporary libtool files.
18261 # How to create reloadable object files.
18262 reload_flag=$lt_reload_flag
18263 reload_cmds=$lt_reload_cmds
18265 # How to pass a linker flag through the compiler.
18266 wl=$lt_lt_prog_compiler_wl_GCJ
18268 # Object file suffix (normally "o").
18269 objext="$ac_objext"
18271 # Old archive suffix (normally "a").
18274 # Shared library suffix (normally ".so").
18275 shrext_cmds='$shrext_cmds'
18277 # Executable file suffix (normally "").
18280 # Additional compiler flags for building library objects.
18281 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18284 # What is the maximum length of a command?
18285 max_cmd_len=$lt_cv_sys_max_cmd_len
18287 # Does compiler simultaneously support -c and -o options?
18288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18290 # Must we lock files when doing compilation ?
18291 need_locks=$lt_need_locks
18293 # Do we need the lib prefix for modules?
18294 need_lib_prefix=$need_lib_prefix
18296 # Do we need a version for libraries?
18297 need_version=$need_version
18299 # Whether dlopen is supported.
18300 dlopen_support=$enable_dlopen
18302 # Whether dlopen of programs is supported.
18303 dlopen_self=$enable_dlopen_self
18305 # Whether dlopen of statically linked programs is supported.
18306 dlopen_self_static=$enable_dlopen_self_static
18308 # Compiler flag to prevent dynamic linking.
18309 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18311 # Compiler flag to turn off builtin functions.
18312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18314 # Compiler flag to allow reflexive dlopens.
18315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18317 # Compiler flag to generate shared objects directly from archives.
18318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18320 # Compiler flag to generate thread-safe objects.
18321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18323 # Library versioning type.
18324 version_type=$version_type
18326 # Format of library name prefix.
18327 libname_spec=$lt_libname_spec
18329 # List of archive names. First name is the real one, the rest are links.
18330 # The last name is the one that the linker finds with -lNAME.
18331 library_names_spec=$lt_library_names_spec
18333 # The coded name of the library, if different from the real name.
18334 soname_spec=$lt_soname_spec
18336 # Commands used to build and install an old-style archive.
18338 old_archive_cmds=$lt_old_archive_cmds_GCJ
18339 old_postinstall_cmds=$lt_old_postinstall_cmds
18340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18342 # Create an old-style archive from a shared archive.
18343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18345 # Create a temporary old-style archive to link instead of a shared archive.
18346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18348 # Commands used to build and install a shared archive.
18349 archive_cmds=$lt_archive_cmds_GCJ
18350 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18351 postinstall_cmds=$lt_postinstall_cmds
18352 postuninstall_cmds=$lt_postuninstall_cmds
18354 # Commands used to build a loadable module (assumed same as above if empty)
18355 module_cmds=$lt_module_cmds_GCJ
18356 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18358 # Commands to strip libraries.
18359 old_striplib=$lt_old_striplib
18360 striplib=$lt_striplib
18362 # Dependencies to place before the objects being linked to create a
18364 predep_objects=$lt_predep_objects_GCJ
18366 # Dependencies to place after the objects being linked to create a
18368 postdep_objects=$lt_postdep_objects_GCJ
18370 # Dependencies to place before the objects being linked to create a
18372 predeps=$lt_predeps_GCJ
18374 # Dependencies to place after the objects being linked to create a
18376 postdeps=$lt_postdeps_GCJ
18378 # The library search path used internally by the compiler when linking
18379 # a shared library.
18380 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18382 # Method to check whether dependent libraries are shared objects.
18383 deplibs_check_method=$lt_deplibs_check_method
18385 # Command to use when deplibs_check_method == file_magic.
18386 file_magic_cmd=$lt_file_magic_cmd
18388 # Flag that allows shared libraries with undefined symbols to be built.
18389 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18391 # Flag that forces no undefined symbols.
18392 no_undefined_flag=$lt_no_undefined_flag_GCJ
18394 # Commands used to finish a libtool library installation in a directory.
18395 finish_cmds=$lt_finish_cmds
18397 # Same as above, but a single script fragment to be evaled but not shown.
18398 finish_eval=$lt_finish_eval
18400 # Take the output of nm and produce a listing of raw symbols and C names.
18401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18403 # Transform the output of nm in a proper C declaration
18404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18406 # Transform the output of nm in a C name address pair
18407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18409 # This is the shared library runtime path variable.
18410 runpath_var=$runpath_var
18412 # This is the shared library path variable.
18413 shlibpath_var=$shlibpath_var
18415 # Is shlibpath searched before the hard-coded library search path?
18416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18418 # How to hardcode a shared library path into an executable.
18419 hardcode_action=$hardcode_action_GCJ
18421 # Whether we should hardcode library paths into libraries.
18422 hardcode_into_libs=$hardcode_into_libs
18424 # Flag to hardcode \$libdir into a binary during linking.
18425 # This must work even if \$libdir does not exist.
18426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18428 # If ld is used when linking, flag to hardcode \$libdir into
18429 # a binary during linking. This must work even if \$libdir does
18431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18433 # Whether we need a single -rpath flag with a separated argument.
18434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18437 # resulting binary.
18438 hardcode_direct=$hardcode_direct_GCJ
18440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18441 # resulting binary.
18442 hardcode_minus_L=$hardcode_minus_L_GCJ
18444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18445 # the resulting binary.
18446 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18448 # Set to yes if building a shared library automatically hardcodes DIR into the library
18449 # and all subsequent libraries and executables linked against it.
18450 hardcode_automatic=$hardcode_automatic_GCJ
18452 # Variables whose values should be saved in libtool wrapper scripts and
18453 # restored at relink time.
18454 variables_saved_for_relink="$variables_saved_for_relink"
18456 # Whether libtool must link a program against all its dependency libraries.
18457 link_all_deplibs=$link_all_deplibs_GCJ
18459 # Compile-time system search path for libraries
18460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18462 # Run-time system search path for libraries
18463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18465 # Fix the shell variable \$srcfile for the compiler.
18466 fix_srcfile_path="$fix_srcfile_path_GCJ"
18468 # Set to yes if exported symbols are required.
18469 always_export_symbols=$always_export_symbols_GCJ
18471 # The commands to list exported symbols.
18472 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18474 # The commands to extract the exported symbol list from a shared archive.
18475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18477 # Symbols that should not be listed in the preloaded symbols.
18478 exclude_expsyms=$lt_exclude_expsyms_GCJ
18480 # Symbols that must always be exported.
18481 include_expsyms=$lt_include_expsyms_GCJ
18483 # ### END LIBTOOL TAG CONFIG: $tagname
18489 # If there is no Makefile yet, we rely on a make rule to execute
18490 # `config.status --recheck' to rerun these tests and create the
18491 # libtool script then.
18492 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18493 if test -f "$ltmain_in"; then
18494 test -f Makefile && make "$ltmain"
18500 ac_cpp='$CPP $CPPFLAGS'
18501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18516 # Source file extension for RC test sources.
18519 # Object file extension for compiled RC test sources.
18523 # Code to be used in simple compile tests
18524 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18526 # Code to be used in simple link tests
18527 lt_simple_link_test_code="$lt_simple_compile_test_code"
18529 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18531 # If no C compiler was specified, use CC.
18534 # Allow CC to be a program name with arguments.
18538 # Allow CC to be a program name with arguments.
18543 lt_cv_prog_compiler_c_o_RC=yes
18545 # The else clause should only fire when bootstrapping the
18546 # libtool distribution, otherwise you forgot to ship ltmain.sh
18547 # with your package, and you will get complaints that there are
18548 # no rules to generate ltmain.sh.
18549 if test -f "$ltmain"; then
18550 # See if we are running on zsh, and set the options which allow our commands through
18551 # without removal of \ escapes.
18552 if test -n "${ZSH_VERSION+set}" ; then
18553 setopt NO_GLOB_SUBST
18555 # Now quote all the things that may contain metacharacters while being
18556 # careful not to overquote the AC_SUBSTed values. We take copies of the
18557 # variables and quote the copies for generation of the libtool script.
18558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18562 deplibs_check_method reload_flag reload_cmds need_locks \
18563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18564 lt_cv_sys_global_symbol_to_c_name_address \
18565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18566 old_postinstall_cmds old_postuninstall_cmds \
18570 lt_prog_compiler_wl_RC \
18571 lt_prog_compiler_pic_RC \
18572 lt_prog_compiler_static_RC \
18573 lt_prog_compiler_no_builtin_flag_RC \
18574 export_dynamic_flag_spec_RC \
18575 thread_safe_flag_spec_RC \
18576 whole_archive_flag_spec_RC \
18577 enable_shared_with_static_runtimes_RC \
18578 old_archive_cmds_RC \
18579 old_archive_from_new_cmds_RC \
18580 predep_objects_RC \
18581 postdep_objects_RC \
18584 compiler_lib_search_path_RC \
18586 archive_expsym_cmds_RC \
18587 postinstall_cmds_RC \
18588 postuninstall_cmds_RC \
18589 old_archive_from_expsyms_cmds_RC \
18590 allow_undefined_flag_RC \
18591 no_undefined_flag_RC \
18592 export_symbols_cmds_RC \
18593 hardcode_libdir_flag_spec_RC \
18594 hardcode_libdir_flag_spec_ld_RC \
18595 hardcode_libdir_separator_RC \
18596 hardcode_automatic_RC \
18598 module_expsym_cmds_RC \
18599 lt_cv_prog_compiler_c_o_RC \
18600 exclude_expsyms_RC \
18601 include_expsyms_RC; do
18604 old_archive_cmds_RC | \
18605 old_archive_from_new_cmds_RC | \
18606 archive_cmds_RC | \
18607 archive_expsym_cmds_RC | \
18609 module_expsym_cmds_RC | \
18610 old_archive_from_expsyms_cmds_RC | \
18611 export_symbols_cmds_RC | \
18612 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18613 postinstall_cmds | postuninstall_cmds | \
18614 old_postinstall_cmds | old_postuninstall_cmds | \
18615 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18616 # Double-quote double-evaled strings.
18617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18626 *'\$0 --fallback-echo"')
18627 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18633 cat <<__EOF__ >> "$cfgfile"
18634 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18638 # Shell to use when invoking shell scripts.
18641 # Whether or not to build shared libraries.
18642 build_libtool_libs=$enable_shared
18644 # Whether or not to build static libraries.
18645 build_old_libs=$enable_static
18647 # Whether or not to add -lc for building shared libraries.
18648 build_libtool_need_lc=$archive_cmds_need_lc_RC
18650 # Whether or not to disallow shared libs when runtime libs are static
18651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18653 # Whether or not to optimize for fast installation.
18654 fast_install=$enable_fast_install
18657 host_alias=$host_alias
18660 # An echo program that does not interpret backslashes.
18665 AR_FLAGS=$lt_AR_FLAGS
18670 # A language-specific compiler.
18673 # Is the compiler the GNU C compiler?
18679 # The linker used to build libraries.
18682 # Whether we need hard or soft links.
18685 # A BSD-compatible nm program.
18688 # A symbol stripping program
18691 # Used to examine libraries when file_magic_cmd begins "file"
18692 MAGIC_CMD=$MAGIC_CMD
18694 # Used on cygwin: DLL creation program.
18697 # Used on cygwin: object dumper.
18700 # Used on cygwin: assembler.
18703 # The name of the directory that contains temporary libtool files.
18706 # How to create reloadable object files.
18707 reload_flag=$lt_reload_flag
18708 reload_cmds=$lt_reload_cmds
18710 # How to pass a linker flag through the compiler.
18711 wl=$lt_lt_prog_compiler_wl_RC
18713 # Object file suffix (normally "o").
18714 objext="$ac_objext"
18716 # Old archive suffix (normally "a").
18719 # Shared library suffix (normally ".so").
18720 shrext_cmds='$shrext_cmds'
18722 # Executable file suffix (normally "").
18725 # Additional compiler flags for building library objects.
18726 pic_flag=$lt_lt_prog_compiler_pic_RC
18729 # What is the maximum length of a command?
18730 max_cmd_len=$lt_cv_sys_max_cmd_len
18732 # Does compiler simultaneously support -c and -o options?
18733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18735 # Must we lock files when doing compilation ?
18736 need_locks=$lt_need_locks
18738 # Do we need the lib prefix for modules?
18739 need_lib_prefix=$need_lib_prefix
18741 # Do we need a version for libraries?
18742 need_version=$need_version
18744 # Whether dlopen is supported.
18745 dlopen_support=$enable_dlopen
18747 # Whether dlopen of programs is supported.
18748 dlopen_self=$enable_dlopen_self
18750 # Whether dlopen of statically linked programs is supported.
18751 dlopen_self_static=$enable_dlopen_self_static
18753 # Compiler flag to prevent dynamic linking.
18754 link_static_flag=$lt_lt_prog_compiler_static_RC
18756 # Compiler flag to turn off builtin functions.
18757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18759 # Compiler flag to allow reflexive dlopens.
18760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18762 # Compiler flag to generate shared objects directly from archives.
18763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18765 # Compiler flag to generate thread-safe objects.
18766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18768 # Library versioning type.
18769 version_type=$version_type
18771 # Format of library name prefix.
18772 libname_spec=$lt_libname_spec
18774 # List of archive names. First name is the real one, the rest are links.
18775 # The last name is the one that the linker finds with -lNAME.
18776 library_names_spec=$lt_library_names_spec
18778 # The coded name of the library, if different from the real name.
18779 soname_spec=$lt_soname_spec
18781 # Commands used to build and install an old-style archive.
18783 old_archive_cmds=$lt_old_archive_cmds_RC
18784 old_postinstall_cmds=$lt_old_postinstall_cmds
18785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18787 # Create an old-style archive from a shared archive.
18788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18790 # Create a temporary old-style archive to link instead of a shared archive.
18791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18793 # Commands used to build and install a shared archive.
18794 archive_cmds=$lt_archive_cmds_RC
18795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18796 postinstall_cmds=$lt_postinstall_cmds
18797 postuninstall_cmds=$lt_postuninstall_cmds
18799 # Commands used to build a loadable module (assumed same as above if empty)
18800 module_cmds=$lt_module_cmds_RC
18801 module_expsym_cmds=$lt_module_expsym_cmds_RC
18803 # Commands to strip libraries.
18804 old_striplib=$lt_old_striplib
18805 striplib=$lt_striplib
18807 # Dependencies to place before the objects being linked to create a
18809 predep_objects=$lt_predep_objects_RC
18811 # Dependencies to place after the objects being linked to create a
18813 postdep_objects=$lt_postdep_objects_RC
18815 # Dependencies to place before the objects being linked to create a
18817 predeps=$lt_predeps_RC
18819 # Dependencies to place after the objects being linked to create a
18821 postdeps=$lt_postdeps_RC
18823 # The library search path used internally by the compiler when linking
18824 # a shared library.
18825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18827 # Method to check whether dependent libraries are shared objects.
18828 deplibs_check_method=$lt_deplibs_check_method
18830 # Command to use when deplibs_check_method == file_magic.
18831 file_magic_cmd=$lt_file_magic_cmd
18833 # Flag that allows shared libraries with undefined symbols to be built.
18834 allow_undefined_flag=$lt_allow_undefined_flag_RC
18836 # Flag that forces no undefined symbols.
18837 no_undefined_flag=$lt_no_undefined_flag_RC
18839 # Commands used to finish a libtool library installation in a directory.
18840 finish_cmds=$lt_finish_cmds
18842 # Same as above, but a single script fragment to be evaled but not shown.
18843 finish_eval=$lt_finish_eval
18845 # Take the output of nm and produce a listing of raw symbols and C names.
18846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18848 # Transform the output of nm in a proper C declaration
18849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18851 # Transform the output of nm in a C name address pair
18852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18854 # This is the shared library runtime path variable.
18855 runpath_var=$runpath_var
18857 # This is the shared library path variable.
18858 shlibpath_var=$shlibpath_var
18860 # Is shlibpath searched before the hard-coded library search path?
18861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18863 # How to hardcode a shared library path into an executable.
18864 hardcode_action=$hardcode_action_RC
18866 # Whether we should hardcode library paths into libraries.
18867 hardcode_into_libs=$hardcode_into_libs
18869 # Flag to hardcode \$libdir into a binary during linking.
18870 # This must work even if \$libdir does not exist.
18871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18873 # If ld is used when linking, flag to hardcode \$libdir into
18874 # a binary during linking. This must work even if \$libdir does
18876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18878 # Whether we need a single -rpath flag with a separated argument.
18879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18882 # resulting binary.
18883 hardcode_direct=$hardcode_direct_RC
18885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18886 # resulting binary.
18887 hardcode_minus_L=$hardcode_minus_L_RC
18889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18890 # the resulting binary.
18891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18893 # Set to yes if building a shared library automatically hardcodes DIR into the library
18894 # and all subsequent libraries and executables linked against it.
18895 hardcode_automatic=$hardcode_automatic_RC
18897 # Variables whose values should be saved in libtool wrapper scripts and
18898 # restored at relink time.
18899 variables_saved_for_relink="$variables_saved_for_relink"
18901 # Whether libtool must link a program against all its dependency libraries.
18902 link_all_deplibs=$link_all_deplibs_RC
18904 # Compile-time system search path for libraries
18905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18907 # Run-time system search path for libraries
18908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18910 # Fix the shell variable \$srcfile for the compiler.
18911 fix_srcfile_path="$fix_srcfile_path_RC"
18913 # Set to yes if exported symbols are required.
18914 always_export_symbols=$always_export_symbols_RC
18916 # The commands to list exported symbols.
18917 export_symbols_cmds=$lt_export_symbols_cmds_RC
18919 # The commands to extract the exported symbol list from a shared archive.
18920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18922 # Symbols that should not be listed in the preloaded symbols.
18923 exclude_expsyms=$lt_exclude_expsyms_RC
18925 # Symbols that must always be exported.
18926 include_expsyms=$lt_include_expsyms_RC
18928 # ### END LIBTOOL TAG CONFIG: $tagname
18934 # If there is no Makefile yet, we rely on a make rule to execute
18935 # `config.status --recheck' to rerun these tests and create the
18936 # libtool script then.
18937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18938 if test -f "$ltmain_in"; then
18939 test -f Makefile && make "$ltmain"
18945 ac_cpp='$CPP $CPPFLAGS'
18946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18955 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18957 { (exit 1); exit 1; }; }
18961 # Append the new tag name to the list of available tags.
18962 if test -n "$tagname" ; then
18963 available_tags="$available_tags $tagname"
18969 # Now substitute the updated list of available tags.
18970 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18971 mv "${ofile}T" "$ofile"
18975 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18977 { (exit 1); exit 1; }; }
18983 # This can be used to rebuild libtool when needed
18984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18986 # Always use our own libtool.
18987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18989 # Prevent multiple expansion
19011 # declare the modules (no optional module)
19013 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19014 ACLOCAL="$ACLOCAL -I acmacro"
19018 ac_cpp='$CPP $CPPFLAGS'
19019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022 if test -n "$ac_tool_prefix"; then
19023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19025 echo "$as_me:$LINENO: checking for $ac_word" >&5
19026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19027 if test "${ac_cv_prog_CC+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 if test -n "$CC"; then
19031 ac_cv_prog_CC="$CC" # Let the user override the test.
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19037 test -z "$as_dir" && as_dir=.
19038 for ac_exec_ext in '' $ac_executable_extensions; do
19039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19050 if test -n "$CC"; then
19051 echo "$as_me:$LINENO: result: $CC" >&5
19052 echo "${ECHO_T}$CC" >&6
19054 echo "$as_me:$LINENO: result: no" >&5
19055 echo "${ECHO_T}no" >&6
19059 if test -z "$ac_cv_prog_CC"; then
19061 # Extract the first word of "gcc", so it can be a program name with args.
19062 set dummy gcc; ac_word=$2
19063 echo "$as_me:$LINENO: checking for $ac_word" >&5
19064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 if test -n "$ac_ct_CC"; then
19069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19075 test -z "$as_dir" && as_dir=.
19076 for ac_exec_ext in '' $ac_executable_extensions; do
19077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078 ac_cv_prog_ac_ct_CC="gcc"
19079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19088 if test -n "$ac_ct_CC"; then
19089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19090 echo "${ECHO_T}$ac_ct_CC" >&6
19092 echo "$as_me:$LINENO: result: no" >&5
19093 echo "${ECHO_T}no" >&6
19098 CC="$ac_cv_prog_CC"
19101 if test -z "$CC"; then
19102 if test -n "$ac_tool_prefix"; then
19103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19104 set dummy ${ac_tool_prefix}cc; ac_word=$2
19105 echo "$as_me:$LINENO: checking for $ac_word" >&5
19106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19107 if test "${ac_cv_prog_CC+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 if test -n "$CC"; then
19111 ac_cv_prog_CC="$CC" # Let the user override the test.
19113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19114 for as_dir in $PATH
19117 test -z "$as_dir" && as_dir=.
19118 for ac_exec_ext in '' $ac_executable_extensions; do
19119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19120 ac_cv_prog_CC="${ac_tool_prefix}cc"
19121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19130 if test -n "$CC"; then
19131 echo "$as_me:$LINENO: result: $CC" >&5
19132 echo "${ECHO_T}$CC" >&6
19134 echo "$as_me:$LINENO: result: no" >&5
19135 echo "${ECHO_T}no" >&6
19139 if test -z "$ac_cv_prog_CC"; then
19141 # Extract the first word of "cc", so it can be a program name with args.
19142 set dummy cc; ac_word=$2
19143 echo "$as_me:$LINENO: checking for $ac_word" >&5
19144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 if test -n "$ac_ct_CC"; then
19149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152 for as_dir in $PATH
19155 test -z "$as_dir" && as_dir=.
19156 for ac_exec_ext in '' $ac_executable_extensions; do
19157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19158 ac_cv_prog_ac_ct_CC="cc"
19159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19168 if test -n "$ac_ct_CC"; then
19169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19170 echo "${ECHO_T}$ac_ct_CC" >&6
19172 echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6
19178 CC="$ac_cv_prog_CC"
19182 if test -z "$CC"; then
19183 # Extract the first word of "cc", so it can be a program name with args.
19184 set dummy cc; ac_word=$2
19185 echo "$as_me:$LINENO: checking for $ac_word" >&5
19186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19187 if test "${ac_cv_prog_CC+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 if test -n "$CC"; then
19191 ac_cv_prog_CC="$CC" # Let the user override the test.
19193 ac_prog_rejected=no
19194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19195 for as_dir in $PATH
19198 test -z "$as_dir" && as_dir=.
19199 for ac_exec_ext in '' $ac_executable_extensions; do
19200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19202 ac_prog_rejected=yes
19206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19212 if test $ac_prog_rejected = yes; then
19213 # We found a bogon in the path, so make sure we never use it.
19214 set dummy $ac_cv_prog_CC
19216 if test $# != 0; then
19217 # We chose a different compiler from the bogus one.
19218 # However, it has the same basename, so the bogon will be chosen
19219 # first if we set CC to just the basename; use the full file name.
19221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19227 if test -n "$CC"; then
19228 echo "$as_me:$LINENO: result: $CC" >&5
19229 echo "${ECHO_T}$CC" >&6
19231 echo "$as_me:$LINENO: result: no" >&5
19232 echo "${ECHO_T}no" >&6
19236 if test -z "$CC"; then
19237 if test -n "$ac_tool_prefix"; then
19240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19242 echo "$as_me:$LINENO: checking for $ac_word" >&5
19243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19244 if test "${ac_cv_prog_CC+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 if test -n "$CC"; then
19248 ac_cv_prog_CC="$CC" # Let the user override the test.
19250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251 for as_dir in $PATH
19254 test -z "$as_dir" && as_dir=.
19255 for ac_exec_ext in '' $ac_executable_extensions; do
19256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19267 if test -n "$CC"; then
19268 echo "$as_me:$LINENO: result: $CC" >&5
19269 echo "${ECHO_T}$CC" >&6
19271 echo "$as_me:$LINENO: result: no" >&5
19272 echo "${ECHO_T}no" >&6
19275 test -n "$CC" && break
19278 if test -z "$CC"; then
19282 # Extract the first word of "$ac_prog", so it can be a program name with args.
19283 set dummy $ac_prog; ac_word=$2
19284 echo "$as_me:$LINENO: checking for $ac_word" >&5
19285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 if test -n "$ac_ct_CC"; then
19290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19293 for as_dir in $PATH
19296 test -z "$as_dir" && as_dir=.
19297 for ac_exec_ext in '' $ac_executable_extensions; do
19298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19299 ac_cv_prog_ac_ct_CC="$ac_prog"
19300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19309 if test -n "$ac_ct_CC"; then
19310 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19311 echo "${ECHO_T}$ac_ct_CC" >&6
19313 echo "$as_me:$LINENO: result: no" >&5
19314 echo "${ECHO_T}no" >&6
19317 test -n "$ac_ct_CC" && break
19326 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19327 See \`config.log' for more details." >&5
19328 echo "$as_me: error: no acceptable C compiler found in \$PATH
19329 See \`config.log' for more details." >&2;}
19330 { (exit 1); exit 1; }; }
19332 # Provide some information about the compiler.
19333 echo "$as_me:$LINENO:" \
19334 "checking for C compiler version" >&5
19335 ac_compiler=`set X $ac_compile; echo $2`
19336 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19337 (eval $ac_compiler --version </dev/null >&5) 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }
19341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19342 (eval $ac_compiler -v </dev/null >&5) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }
19346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19347 (eval $ac_compiler -V </dev/null >&5) 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }
19352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19379 grep -v '^ *+' conftest.er1 >conftest.err
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_compiler_gnu=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19407 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19408 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19409 GCC=`test $ac_compiler_gnu = yes && echo yes`
19410 ac_test_CFLAGS=${CFLAGS+set}
19411 ac_save_CFLAGS=$CFLAGS
19413 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19415 if test "${ac_cv_prog_cc_g+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19433 rm -f conftest.$ac_objext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19435 (eval $ac_compile) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest.$ac_objext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_prog_cc_g=yes
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19465 if test "$ac_test_CFLAGS" = set; then
19466 CFLAGS=$ac_save_CFLAGS
19467 elif test $ac_cv_prog_cc_g = yes; then
19468 if test "$GCC" = yes; then
19474 if test "$GCC" = yes; then
19480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 ac_cv_prog_cc_stdc=no
19487 cat >conftest.$ac_ext <<_ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 #include <stdarg.h>
19495 #include <sys/types.h>
19496 #include <sys/stat.h>
19497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19498 struct buf { int x; };
19499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19500 static char *e (p, i)
19506 static char *f (char * (*g) (char **, int), char **p, ...)
19511 s = g (p, va_arg (v,int));
19516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19517 function prototypes and stuff, but not '\xHH' hex character constants.
19518 These don't provoke an error unfortunately, instead are silently treated
19519 as 'x'. The following induces an error, until -std1 is added to get
19520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19521 array size at least. It's necessary to write '\x00'==0 to get something
19522 that's true only with -std1. */
19523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19525 int test (int i, double x);
19526 struct s1 {int (*f) (int a);};
19527 struct s2 {int (*f) (double a);};
19528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19539 # Don't try gcc -ansi; that turns off useful extensions and
19540 # breaks some systems' header files.
19541 # AIX -qlanglvl=ansi
19542 # Ultrix and OSF/1 -std1
19543 # HP-UX 10.20 and later -Ae
19544 # HP-UX older versions -Aa -D_HPUX_SOURCE
19545 # SVR4 -Xc -D__EXTENSIONS__
19546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19548 CC="$ac_save_CC $ac_arg"
19549 rm -f conftest.$ac_objext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551 (eval $ac_compile) 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_prog_cc_stdc=$ac_arg
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19577 rm -f conftest.err conftest.$ac_objext
19579 rm -f conftest.$ac_ext conftest.$ac_objext
19584 case "x$ac_cv_prog_cc_stdc" in
19586 echo "$as_me:$LINENO: result: none needed" >&5
19587 echo "${ECHO_T}none needed" >&6 ;;
19589 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19590 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19591 CC="$CC $ac_cv_prog_cc_stdc" ;;
19594 # Some people use a C++ compiler to compile C. Since we use `exit',
19595 # in C++ we need to declare it. In case someone uses the same compiler
19596 # for both compiling C and C++ we need to have the C++ compiler decide
19597 # the declaration of exit, since it's the most demanding environment.
19598 cat >conftest.$ac_ext <<_ACEOF
19599 #ifndef __cplusplus
19603 rm -f conftest.$ac_objext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605 (eval $ac_compile) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; } &&
19618 { ac_try='test -s conftest.$ac_objext'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 for ac_declaration in \
19626 'extern "C" void std::exit (int) throw (); using std::exit;' \
19627 'extern "C" void std::exit (int); using std::exit;' \
19628 'extern "C" void exit (int) throw ();' \
19629 'extern "C" void exit (int);' \
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19639 #include <stdlib.h>
19648 rm -f conftest.$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650 (eval $ac_compile) 2>conftest.er1
19652 grep -v '^ *+' conftest.er1 >conftest.err
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest.$ac_objext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19692 rm -f conftest.$ac_objext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19694 (eval $ac_compile) 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest.$ac_objext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19722 if test -n "$ac_declaration"; then
19723 echo '#ifdef __cplusplus' >>confdefs.h
19724 echo $ac_declaration >>confdefs.h
19725 echo '#endif' >>confdefs.h
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 ac_cpp='$CPP $CPPFLAGS'
19736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19740 depcc="$CC" am_compiler_list=
19742 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19743 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19744 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19748 # We make a subdir and do the tests there. Otherwise we can end up
19749 # making bogus files that we don't know about and never remove. For
19750 # instance it was reported that on HP-UX the gcc test will end up
19751 # making a dummy file named `D' -- because `-MD' means `put the output
19754 # Copy depcomp to subdir because otherwise we won't find it if we're
19755 # using a relative directory.
19756 cp "$am_depcomp" conftest.dir
19758 # We will build objects and dependencies in a subdirectory because
19759 # it helps to detect inapplicable dependency modes. For instance
19760 # both Tru64's cc and ICC support -MD to output dependencies as a
19761 # side effect of compilation, but ICC will put the dependencies in
19762 # the current directory while Tru64 will put them in the object
19766 am_cv_CC_dependencies_compiler_type=none
19767 if test "$am_compiler_list" = ""; then
19768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19770 for depmode in $am_compiler_list; do
19771 # Setup a source with many dependencies, because some compilers
19772 # like to wrap large dependency lists on column 80 (with \), and
19773 # we should not choose a depcomp mode which is confused by this.
19775 # We need to recreate these files for each test, as the compiler may
19776 # overwrite some of them when testing with obscure command lines.
19777 # This happens at least with the AIX C compiler.
19779 for i in 1 2 3 4 5 6; do
19780 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19781 : > sub/conftst$i.h
19783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19787 # after this tag, mechanisms are not by side-effect, so they'll
19788 # only be used when explicitly requested
19789 if test "x$enable_dependency_tracking" = xyes; then
19797 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19798 # mode. It turns out that the SunPro C++ compiler does not properly
19799 # handle `-M -o', and we need to detect this.
19800 if depmode=$depmode \
19801 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19802 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19803 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19804 >/dev/null 2>conftest.err &&
19805 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19806 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19807 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19808 # icc doesn't choke on unknown options, it will just issue warnings
19809 # (even with -Werror). So we grep stderr for any message
19810 # that says an option was ignored.
19811 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19812 am_cv_CC_dependencies_compiler_type=$depmode
19819 rm -rf conftest.dir
19821 am_cv_CC_dependencies_compiler_type=none
19825 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19832 test "x$enable_dependency_tracking" != xno \
19833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19834 am__fastdepCC_TRUE=
19835 am__fastdepCC_FALSE='#'
19837 am__fastdepCC_TRUE='#'
19838 am__fastdepCC_FALSE=
19842 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19843 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19846 echo timestamp > conftest.file
19847 # Do `set' in a subshell so we don't clobber the current shell's
19848 # arguments. Must try -L first in case configure is actually a
19849 # symlink; some systems play weird games with the mod time of symlinks
19850 # (eg FreeBSD returns the mod time of the symlink's containing
19853 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19854 if test "$*" = "X"; then
19856 set X `ls -t $srcdir/configure conftest.file`
19858 rm -f conftest.file
19859 if test "$*" != "X $srcdir/configure conftest.file" \
19860 && test "$*" != "X conftest.file $srcdir/configure"; then
19862 # If neither matched, then we have a broken ls. This can happen
19863 # if, for instance, CONFIG_SHELL is bash and it inherits a
19864 # broken ls alias from the environment. This has actually
19865 # happened. Such a system could not be considered "sane".
19866 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19867 alias in your environment" >&5
19868 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19869 alias in your environment" >&2;}
19870 { (exit 1); exit 1; }; }
19873 test "$2" = conftest.file
19879 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19880 Check your system clock" >&5
19881 echo "$as_me: error: newly created file is older than distributed files!
19882 Check your system clock" >&2;}
19883 { (exit 1); exit 1; }; }
19885 echo "$as_me:$LINENO: result: yes" >&5
19886 echo "${ECHO_T}yes" >&6
19887 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19888 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19889 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19890 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 cat >conftest.make <<\_ACEOF
19895 @echo 'ac_maketemp="$(MAKE)"'
19897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19898 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19899 if test -n "$ac_maketemp"; then
19900 eval ac_cv_prog_make_${ac_make}_set=yes
19902 eval ac_cv_prog_make_${ac_make}_set=no
19904 rm -f conftest.make
19906 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19907 echo "$as_me:$LINENO: result: yes" >&5
19908 echo "${ECHO_T}yes" >&6
19911 echo "$as_me:$LINENO: result: no" >&5
19912 echo "${ECHO_T}no" >&6
19913 SET_MAKE="MAKE=${MAKE-make}"
19917 # Check architecture signature
19919 # Check for the architecture
19920 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19921 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19922 if test "${ac_cv_c_bigendian+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 # See if sys/param.h defines the BYTE_ORDER macro.
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 #include <sys/types.h>
19933 #include <sys/param.h>
19938 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19939 bogus endian macros
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948 (eval $ac_compile) 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 # It does; now see whether it defined to BIG_ENDIAN or not.
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 #include <sys/types.h>
19975 #include <sys/param.h>
19980 #if BYTE_ORDER != BIG_ENDIAN
19988 rm -f conftest.$ac_objext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_cv_c_bigendian=yes
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_cv_c_bigendian=no
20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 # It does not; compile a test program.
20022 if test "$cross_compiling" = yes; then
20023 # try to guess the endianness by grepping values into an object file
20024 ac_cv_c_bigendian=unknown
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20032 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20033 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20034 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20035 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20036 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20040 _ascii (); _ebcdic ();
20045 rm -f conftest.$ac_objext
20046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047 (eval $ac_compile) 2>conftest.er1
20049 grep -v '^ *+' conftest.er1 >conftest.err
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20067 ac_cv_c_bigendian=yes
20069 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20070 if test "$ac_cv_c_bigendian" = unknown; then
20071 ac_cv_c_bigendian=no
20073 # finding both strings is unlikely to happen, but who knows?
20074 ac_cv_c_bigendian=unknown
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20093 /* Are we little or big endian? From Harbison&Steele. */
20097 char c[sizeof (long)];
20100 exit (u.c[sizeof (long) - 1] == 1);
20103 rm -f conftest$ac_exeext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20105 (eval $ac_link) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_cv_c_bigendian=no
20116 echo "$as_me: program exited with status $ac_status" >&5
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ( exit $ac_status )
20121 ac_cv_c_bigendian=yes
20123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20129 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20130 case $ac_cv_c_bigendian in
20136 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20137 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20138 { (exit 1); exit 1; }; } ;;
20142 cat >>confdefs.h <<_ACEOF
20143 #define GRAS_BIGENDIAN $endian
20147 echo "$as_me:$LINENO: checking size of char" >&5
20148 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20149 if test "${ac_cv_sizeof_char+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 #include "confdefs.h"
20160 #include <sys/types.h>
20166 switch (0) case 0: case (sizeof (char) == $ac_size):;
20171 rm -f conftest.$ac_objext
20172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20173 (eval $ac_compile) 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
20180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_sizeof_char=$ac_size
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 if test x$ac_cv_sizeof_char != x ; then break; fi
20205 unspecif=$ac_cv_sizeof_char
20206 if test x$unspecif = x ; then
20207 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20208 echo "$as_me: error: cannot determine a size for char" >&2;}
20209 { (exit 1); exit 1; }; }
20212 if test "${ac_cv_sizeof_signed_char+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include "confdefs.h"
20223 #include <sys/types.h>
20229 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20234 rm -f conftest.$ac_objext
20235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236 (eval $ac_compile) 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_cv_sizeof_signed_char=$ac_size
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20268 signed=$ac_cv_sizeof_signed_char
20269 if test x$signed = x ; then
20270 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20271 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20272 { (exit 1); exit 1; }; }
20274 if test x$unspecif != x$signed ; then
20275 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20276 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20277 { (exit 1); exit 1; }; }
20280 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20284 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 #include "confdefs.h"
20291 #include <sys/types.h>
20297 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20302 rm -f conftest.$ac_objext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>conftest.er1
20306 grep -v '^ *+' conftest.er1 >conftest.err
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } &&
20311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; } &&
20317 { ac_try='test -s conftest.$ac_objext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_sizeof_unsigned_char=$ac_size
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20330 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20336 unsigned=$ac_cv_sizeof_unsigned_char
20337 if test x$unsigned = x ; then
20338 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20339 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20340 { (exit 1); exit 1; }; }
20342 if test x$unsigned != x$signed ; then
20343 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20344 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20345 { (exit 1); exit 1; }; }
20348 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20349 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20351 cat >>confdefs.h <<_ACEOF
20352 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20356 echo "$as_me:$LINENO: checking size of short int" >&5
20357 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20358 if test "${ac_cv_sizeof_short_int+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include "confdefs.h"
20369 #include <sys/types.h>
20375 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382 (eval $ac_compile) 2>conftest.er1
20384 grep -v '^ *+' conftest.er1 >conftest.err
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest.$ac_objext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_cv_sizeof_short_int=$ac_size
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408 if test x$ac_cv_sizeof_short_int != x ; then break; fi
20414 unspecif=$ac_cv_sizeof_short_int
20415 if test x$unspecif = x ; then
20416 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20417 echo "$as_me: error: cannot determine a size for short int" >&2;}
20418 { (exit 1); exit 1; }; }
20421 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 #include "confdefs.h"
20432 #include <sys/types.h>
20438 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest.$ac_objext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_sizeof_signed_short_int=$ac_size
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20471 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20477 signed=$ac_cv_sizeof_signed_short_int
20478 if test x$signed = x ; then
20479 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20480 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20481 { (exit 1); exit 1; }; }
20483 if test x$unspecif != x$signed ; then
20484 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20485 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20486 { (exit 1); exit 1; }; }
20489 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20493 cat >conftest.$ac_ext <<_ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20499 #include "confdefs.h"
20500 #include <sys/types.h>
20506 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513 (eval $ac_compile) 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_sizeof_unsigned_short_int=$ac_size
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20539 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20545 unsigned=$ac_cv_sizeof_unsigned_short_int
20546 if test x$unsigned = x ; then
20547 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20548 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20549 { (exit 1); exit 1; }; }
20551 if test x$unsigned != x$signed ; then
20552 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20553 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20554 { (exit 1); exit 1; }; }
20557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20558 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20560 cat >>confdefs.h <<_ACEOF
20561 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20565 echo "$as_me:$LINENO: checking size of int" >&5
20566 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20567 if test "${ac_cv_sizeof_int+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20571 cat >conftest.$ac_ext <<_ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 #include "confdefs.h"
20578 #include <sys/types.h>
20584 switch (0) case 0: case (sizeof (int) == $ac_size):;
20589 rm -f conftest.$ac_objext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20591 (eval $ac_compile) 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest.$ac_objext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_sizeof_int=$ac_size
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617 if test x$ac_cv_sizeof_int != x ; then break; fi
20623 unspecif=$ac_cv_sizeof_int
20624 if test x$unspecif = x ; then
20625 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20626 echo "$as_me: error: cannot determine a size for int" >&2;}
20627 { (exit 1); exit 1; }; }
20630 if test "${ac_cv_sizeof_signed_int+set}" = set; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 #include "confdefs.h"
20641 #include <sys/types.h>
20647 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654 (eval $ac_compile) 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } &&
20661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_sizeof_signed_int=$ac_size
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20680 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20686 signed=$ac_cv_sizeof_signed_int
20687 if test x$signed = x ; then
20688 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20689 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20690 { (exit 1); exit 1; }; }
20692 if test x$unspecif != x$signed ; then
20693 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20694 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20695 { (exit 1); exit 1; }; }
20698 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 #include "confdefs.h"
20709 #include <sys/types.h>
20715 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20720 rm -f conftest.$ac_objext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20722 (eval $ac_compile) 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; } &&
20735 { ac_try='test -s conftest.$ac_objext'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20741 ac_cv_sizeof_unsigned_int=$ac_size
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20748 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20754 unsigned=$ac_cv_sizeof_unsigned_int
20755 if test x$unsigned = x ; then
20756 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20757 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20758 { (exit 1); exit 1; }; }
20760 if test x$unsigned != x$signed ; then
20761 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20762 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20763 { (exit 1); exit 1; }; }
20766 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20767 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20769 cat >>confdefs.h <<_ACEOF
20770 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20774 echo "$as_me:$LINENO: checking size of long int" >&5
20775 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20776 if test "${ac_cv_sizeof_long_int+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 #include "confdefs.h"
20787 #include <sys/types.h>
20793 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800 (eval $ac_compile) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest.$ac_objext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 ac_cv_sizeof_long_int=$ac_size
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20826 if test x$ac_cv_sizeof_long_int != x ; then break; fi
20832 unspecif=$ac_cv_sizeof_long_int
20833 if test x$unspecif = x ; then
20834 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20835 echo "$as_me: error: cannot determine a size for long int" >&2;}
20836 { (exit 1); exit 1; }; }
20839 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20849 #include "confdefs.h"
20850 #include <sys/types.h>
20856 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20861 rm -f conftest.$ac_objext
20862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20863 (eval $ac_compile) 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_cv_sizeof_signed_long_int=$ac_size
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20895 signed=$ac_cv_sizeof_signed_long_int
20896 if test x$signed = x ; then
20897 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20898 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20899 { (exit 1); exit 1; }; }
20901 if test x$unspecif != x$signed ; then
20902 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20903 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20904 { (exit 1); exit 1; }; }
20907 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include "confdefs.h"
20918 #include <sys/types.h>
20924 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_cv_sizeof_unsigned_long_int=$ac_size
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20957 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20963 unsigned=$ac_cv_sizeof_unsigned_long_int
20964 if test x$unsigned = x ; then
20965 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20966 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20967 { (exit 1); exit 1; }; }
20969 if test x$unsigned != x$signed ; then
20970 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20971 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20972 { (exit 1); exit 1; }; }
20975 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
20976 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
20978 cat >>confdefs.h <<_ACEOF
20979 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
20983 echo "$as_me:$LINENO: checking size of long long int" >&5
20984 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
20985 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 #include "confdefs.h"
20996 #include <sys/types.h>
21002 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21007 rm -f conftest.$ac_objext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21009 (eval $ac_compile) 2>conftest.er1
21011 grep -v '^ *+' conftest.er1 >conftest.err
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; } &&
21022 { ac_try='test -s conftest.$ac_objext'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 ac_cv_sizeof_long_long_int=$ac_size
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21035 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21041 unspecif=$ac_cv_sizeof_long_long_int
21042 if test x$unspecif = x ; then
21043 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21044 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21045 { (exit 1); exit 1; }; }
21048 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 #include "confdefs.h"
21059 #include <sys/types.h>
21065 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21070 rm -f conftest.$ac_objext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072 (eval $ac_compile) 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_cv_sizeof_signed_long_long_int=$ac_size
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21098 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21104 signed=$ac_cv_sizeof_signed_long_long_int
21105 if test x$signed = x ; then
21106 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21107 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21108 { (exit 1); exit 1; }; }
21110 if test x$unspecif != x$signed ; then
21111 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21112 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21113 { (exit 1); exit 1; }; }
21116 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include "confdefs.h"
21127 #include <sys/types.h>
21133 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21138 rm -f conftest.$ac_objext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21140 (eval $ac_compile) 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
21147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; } &&
21153 { ac_try='test -s conftest.$ac_objext'
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_cv_sizeof_unsigned_long_long_int=$ac_size
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21166 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21172 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21173 if test x$unsigned = x ; then
21174 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21175 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21176 { (exit 1); exit 1; }; }
21178 if test x$unsigned != x$signed ; then
21179 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21180 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21181 { (exit 1); exit 1; }; }
21184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21185 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21187 cat >>confdefs.h <<_ACEOF
21188 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21194 echo "$as_me:$LINENO: checking size of void *" >&5
21195 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21196 if test "${ac_cv_sizeof_void_p+set}" = set; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21199 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21200 cat >conftest.$ac_ext <<_ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 #include "confdefs.h"
21207 #include <sys/types.h>
21213 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21218 rm -f conftest.$ac_objext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21220 (eval $ac_compile) 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 ac_cv_sizeof_void_p=$ac_size
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21246 if test x$ac_cv_sizeof_void_p != x ; then break; fi
21252 if test x$ac_cv_sizeof_void_p = x ; then
21253 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21254 echo "$as_me: error: cannot determine a size for void *" >&2;}
21255 { (exit 1); exit 1; }; }
21257 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21258 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21260 cat >>confdefs.h <<_ACEOF
21261 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21265 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21266 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21267 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include "confdefs.h"
21278 #include <sys/types.h>
21284 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21289 rm -f conftest.$ac_objext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21291 (eval $ac_compile) 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; } &&
21304 { ac_try='test -s conftest.$ac_objext'
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; }; then
21310 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21323 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21324 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21325 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21326 { (exit 1); exit 1; }; }
21328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21329 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21331 cat >>confdefs.h <<_ACEOF
21332 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21337 echo "$as_me:$LINENO: checking size of float" >&5
21338 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21339 if test "${ac_cv_sizeof_float+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 #include "confdefs.h"
21350 #include <sys/types.h>
21356 switch (0) case 0: case (sizeof (float) == $ac_size):;
21361 rm -f conftest.$ac_objext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21363 (eval $ac_compile) 2>conftest.er1
21365 grep -v '^ *+' conftest.er1 >conftest.err
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest.$ac_objext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_cv_sizeof_float=$ac_size
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21389 if test x$ac_cv_sizeof_float != x ; then break; fi
21395 if test x$ac_cv_sizeof_float = x ; then
21396 { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21397 echo "$as_me: error: cannot determine a size for float" >&2;}
21398 { (exit 1); exit 1; }; }
21400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21401 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21403 cat >>confdefs.h <<_ACEOF
21404 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21408 echo "$as_me:$LINENO: checking size of double" >&5
21409 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21410 if test "${ac_cv_sizeof_double+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include "confdefs.h"
21421 #include <sys/types.h>
21427 switch (0) case 0: case (sizeof (double) == $ac_size):;
21432 rm -f conftest.$ac_objext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434 (eval $ac_compile) 2>conftest.er1
21436 grep -v '^ *+' conftest.er1 >conftest.err
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
21441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
21447 { ac_try='test -s conftest.$ac_objext'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_cv_sizeof_double=$ac_size
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21460 if test x$ac_cv_sizeof_double != x ; then break; fi
21466 if test x$ac_cv_sizeof_double = x ; then
21467 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21468 echo "$as_me: error: cannot determine a size for double" >&2;}
21469 { (exit 1); exit 1; }; }
21471 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21472 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21474 cat >>confdefs.h <<_ACEOF
21475 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21479 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21480 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 #include "confdefs.h"
21490 unsigned char bytes[sizeof(double)];
21494 unsigned char bytes[sizeof(float)];
21501 memset(&doubleTester, 0, sizeof(doubleTester));
21502 memset(&floatTester, 0, sizeof(floatTester));
21504 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21505 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21506 (sizeof(double) == 4) ? 128 :
21507 (sizeof(double) == 8) ? 16 :
21508 (sizeof(double) == 16) ? 1 : 0;
21509 if (doubleTester.testFP != -4.0) return 1;
21511 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21512 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21513 (sizeof(float) == 4) ? 128 :
21514 (sizeof(float) == 8) ? 16 :
21515 (sizeof(float) == 16) ? 1 : 0;
21516 if (floatTester.testFP != -4.0) return 1;
21523 rm -f conftest.$ac_objext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525 (eval $ac_compile) 2>conftest.er1
21527 grep -v '^ *+' conftest.er1 >conftest.err
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
21532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21546 cat >>confdefs.h <<\_ACEOF
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21556 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21557 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21558 { (exit 1); exit 1; }; }
21560 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21561 echo "${ECHO_T}$IEEE_FP" >&6
21564 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21565 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21566 if test x$endian = x1 ; then
21572 trace="$trace_endian"
21573 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
21574 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21575 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21577 l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21578 B:1.2.4.4.8:4.4:4.8) gras_arch=1; gras_arch_name=ppc;;
21580 if test x$gras_arch = xunknown ; then
21581 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21582 echo "${ECHO_T}damnit ($trace)" >&6
21583 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21584 Please report this architecture trace ($trace) and what it corresponds to." >&5
21585 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21586 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21587 { (exit 1); exit 1; }; }
21589 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21591 cat >>confdefs.h <<_ACEOF
21592 #define GRAS_THISARCH_NAME "$gras_arch_name"
21596 cat >>confdefs.h <<_ACEOF
21597 #define GRAS_THISARCH $gras_arch
21600 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21601 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21604 # Checks for header files.
21605 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21606 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21607 if test "${ac_cv_header_stdc+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <stdlib.h>
21617 #include <stdarg.h>
21618 #include <string.h>
21629 rm -f conftest.$ac_objext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21631 (eval $ac_compile) 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } &&
21638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest.$ac_objext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_header_stdc=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_cv_header_stdc=no
21657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21659 if test $ac_cv_header_stdc = yes; then
21660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 #include <string.h>
21670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21671 $EGREP "memchr" >/dev/null 2>&1; then
21674 ac_cv_header_stdc=no
21680 if test $ac_cv_header_stdc = yes; then
21681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 #include <stdlib.h>
21691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21692 $EGREP "free" >/dev/null 2>&1; then
21695 ac_cv_header_stdc=no
21701 if test $ac_cv_header_stdc = yes; then
21702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21703 if test "$cross_compiling" = yes; then
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21713 #if ((' ' & 0x0FF) == 0x020)
21714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21717 # define ISLOWER(c) \
21718 (('a' <= (c) && (c) <= 'i') \
21719 || ('j' <= (c) && (c) <= 'r') \
21720 || ('s' <= (c) && (c) <= 'z'))
21721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21729 for (i = 0; i < 256; i++)
21730 if (XOR (islower (i), ISLOWER (i))
21731 || toupper (i) != TOUPPER (i))
21736 rm -f conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738 (eval $ac_link) 2>&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21749 echo "$as_me: program exited with status $ac_status" >&5
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21753 ( exit $ac_status )
21754 ac_cv_header_stdc=no
21756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21760 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21761 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21762 if test $ac_cv_header_stdc = yes; then
21764 cat >>confdefs.h <<\_ACEOF
21765 #define STDC_HEADERS 1
21774 for ac_header in stddef.h stdlib.h string.h unistd.h
21776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21778 echo "$as_me:$LINENO: checking for $ac_header" >&5
21779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21786 # Is the header compilable?
21787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 $ac_includes_default
21796 #include <$ac_header>
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800 (eval $ac_compile) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
21807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest.$ac_objext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 ac_header_compiler=yes
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ac_header_compiler=no
21826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21828 echo "${ECHO_T}$ac_header_compiler" >&6
21830 # Is the header present?
21831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 #include <$ac_header>
21841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } >/dev/null; then
21849 if test -s conftest.err; then
21850 ac_cpp_err=$ac_c_preproc_warn_flag
21851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21858 if test -z "$ac_cpp_err"; then
21859 ac_header_preproc=yes
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_header_preproc=no
21866 rm -f conftest.err conftest.$ac_ext
21867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21868 echo "${ECHO_T}$ac_header_preproc" >&6
21870 # So? What about this header?
21871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21877 ac_header_preproc=yes
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21894 ## ----------------------------------------- ##
21895 ## Report this to martin.quinson@ens-lyon.fr ##
21896 ## ----------------------------------------- ##
21899 sed "s/^/$as_me: WARNING: /" >&2
21902 echo "$as_me:$LINENO: checking for $ac_header" >&5
21903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 eval "$as_ac_Header=\$ac_header_preproc"
21909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21914 cat >>confdefs.h <<_ACEOF
21915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21923 # Checks for typedefs, structures, and compiler characteristics.
21924 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21926 if test "${ac_cv_c_const+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 cat >conftest.$ac_ext <<_ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21939 /* FIXME: Include the comments suggested by Paul. */
21940 #ifndef __cplusplus
21941 /* Ultrix mips cc rejects this. */
21942 typedef int charset[2];
21944 /* SunOS 4.1.1 cc rejects this. */
21945 char const *const *ccp;
21947 /* NEC SVR4.0.2 mips cc rejects this. */
21948 struct point {int x, y;};
21949 static struct point const zero = {0,0};
21950 /* AIX XL C 1.02.0.0 rejects this.
21951 It does not let you subtract one const X* pointer from another in
21952 an arm of an if-expression whose if-part is not a constant
21954 const char *g = "string";
21955 ccp = &g + (g ? g-g : 0);
21956 /* HPUX 7.0 cc rejects these. */
21959 ccp = (char const *const *) p;
21960 { /* SCO 3.2v4 cc rejects this. */
21962 char const *s = 0 ? (char *) 0 : (char const *) 0;
21966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21967 int x[] = {25, 17};
21968 const int *foo = &x[0];
21971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21972 typedef const int *iptr;
21976 { /* AIX XL C 1.02.0.0 rejects this saying
21977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21978 struct s { int j; const int *ap[3]; };
21979 struct s *b; b->j = 5;
21981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21982 const int foo = 10;
21990 rm -f conftest.$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992 (eval $ac_compile) 2>conftest.er1
21994 grep -v '^ *+' conftest.er1 >conftest.err
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest.$ac_objext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22021 echo "${ECHO_T}$ac_cv_c_const" >&6
22022 if test $ac_cv_c_const = no; then
22024 cat >>confdefs.h <<\_ACEOF
22030 echo "$as_me:$LINENO: checking for inline" >&5
22031 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22032 if test "${ac_cv_c_inline+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 for ac_kw in inline __inline__ __inline; do
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 #ifndef __cplusplus
22045 static $ac_kw foo_t static_foo () {return 0; }
22046 $ac_kw foo_t foo () {return 0; }
22050 rm -f conftest.$ac_objext
22051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22052 (eval $ac_compile) 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } &&
22059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; } &&
22065 { ac_try='test -s conftest.$ac_objext'
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; }; then
22071 ac_cv_c_inline=$ac_kw; break
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22082 echo "${ECHO_T}$ac_cv_c_inline" >&6
22085 case $ac_cv_c_inline in
22088 case $ac_cv_c_inline in
22090 *) ac_val=$ac_cv_c_inline;;
22092 cat >>confdefs.h <<_ACEOF
22093 #ifndef __cplusplus
22094 #define inline $ac_val
22100 echo "$as_me:$LINENO: checking for size_t" >&5
22101 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22102 if test "${ac_cv_type_size_t+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 $ac_includes_default
22117 if (sizeof (size_t))
22123 rm -f conftest.$ac_objext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125 (eval $ac_compile) 2>conftest.er1
22127 grep -v '^ *+' conftest.er1 >conftest.err
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } &&
22132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest.$ac_objext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 ac_cv_type_size_t=yes
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ac_cv_type_size_t=no
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22154 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22155 if test $ac_cv_type_size_t = yes; then
22159 cat >>confdefs.h <<_ACEOF
22160 #define size_t unsigned
22166 # Checks for library functions.
22168 for ac_header in stdlib.h
22170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22172 echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22180 # Is the header compilable?
22181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 $ac_includes_default
22190 #include <$ac_header>
22192 rm -f conftest.$ac_objext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194 (eval $ac_compile) 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
22201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; } &&
22207 { ac_try='test -s conftest.$ac_objext'
22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }; then
22213 ac_header_compiler=yes
22215 echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22218 ac_header_compiler=no
22220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22222 echo "${ECHO_T}$ac_header_compiler" >&6
22224 # Is the header present?
22225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22227 cat >conftest.$ac_ext <<_ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22233 #include <$ac_header>
22235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } >/dev/null; then
22243 if test -s conftest.err; then
22244 ac_cpp_err=$ac_c_preproc_warn_flag
22245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22252 if test -z "$ac_cpp_err"; then
22253 ac_header_preproc=yes
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 ac_header_preproc=no
22260 rm -f conftest.err conftest.$ac_ext
22261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22262 echo "${ECHO_T}$ac_header_preproc" >&6
22264 # So? What about this header?
22265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22271 ac_header_preproc=yes
22274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22288 ## ----------------------------------------- ##
22289 ## Report this to martin.quinson@ens-lyon.fr ##
22290 ## ----------------------------------------- ##
22293 sed "s/^/$as_me: WARNING: /" >&2
22296 echo "$as_me:$LINENO: checking for $ac_header" >&5
22297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 eval "$as_ac_Header=\$ac_header_preproc"
22303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22316 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22317 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22318 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 if test "$cross_compiling" = yes; then
22322 ac_cv_func_malloc_0_nonnull=no
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 #if STDC_HEADERS || HAVE_STDLIB_H
22331 # include <stdlib.h>
22339 exit (malloc (0) ? 0 : 1);
22344 rm -f conftest$ac_exeext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346 (eval $ac_link) 2>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355 ac_cv_func_malloc_0_nonnull=yes
22357 echo "$as_me: program exited with status $ac_status" >&5
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 ( exit $ac_status )
22362 ac_cv_func_malloc_0_nonnull=no
22364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22367 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22368 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22369 if test $ac_cv_func_malloc_0_nonnull = yes; then
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_MALLOC 1
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_MALLOC 0
22381 "malloc.$ac_objext" | \
22382 *" malloc.$ac_objext" | \
22383 "malloc.$ac_objext "* | \
22384 *" malloc.$ac_objext "* ) ;;
22385 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22389 cat >>confdefs.h <<\_ACEOF
22390 #define malloc rpl_malloc
22397 echo "$as_me:$LINENO: checking for working memcmp" >&5
22398 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22399 if test "${ac_cv_func_memcmp_working+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 if test "$cross_compiling" = yes; then
22403 ac_cv_func_memcmp_working=no
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 $ac_includes_default
22416 /* Some versions of memcmp are not 8-bit clean. */
22417 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22418 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22421 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22422 or more and with at least one buffer not starting on a 4-byte boundary.
22423 William Lewis provided this test program. */
22428 for (i = 0; i < 4; i++)
22432 strcpy (a, "--------01111111");
22433 strcpy (b, "--------10000000");
22434 if (memcmp (a, b, 16) >= 0)
22444 rm -f conftest$ac_exeext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22446 (eval $ac_link) 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 ac_cv_func_memcmp_working=yes
22457 echo "$as_me: program exited with status $ac_status" >&5
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 ( exit $ac_status )
22462 ac_cv_func_memcmp_working=no
22464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22468 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22469 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22470 "memcmp.$ac_objext" | \
22471 *" memcmp.$ac_objext" | \
22472 "memcmp.$ac_objext "* | \
22473 *" memcmp.$ac_objext "* ) ;;
22474 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22482 for ac_func in memset strchr strerror usleep
22484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22485 echo "$as_me:$LINENO: checking for $ac_func" >&5
22486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22487 if eval "test \"\${$as_ac_var+set}\" = set"; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22498 #define $ac_func innocuous_$ac_func
22500 /* System header to define __stub macros and hopefully few prototypes,
22501 which can conflict with char $ac_func (); below.
22502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22503 <limits.h> exists even on freestanding compilers. */
22506 # include <limits.h>
22508 # include <assert.h>
22513 /* Override any gcc2 internal prototype to avoid an error. */
22518 /* We use char because int might match the return type of a gcc2
22519 builtin and then its argument prototype would still apply. */
22521 /* The GNU C library defines this for functions which it implements
22522 to always fail with ENOSYS. Some functions are actually named
22523 something starting with __ and the normal name is an alias. */
22524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22527 char (*f) () = $ac_func;
22536 return f != $ac_func;
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22543 (eval $ac_link) 2>conftest.er1
22545 grep -v '^ *+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
22550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; } &&
22556 { ac_try='test -s conftest$ac_exeext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 eval "$as_ac_var=yes"
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 eval "$as_ac_var=no"
22569 rm -f conftest.err conftest.$ac_objext \
22570 conftest$ac_exeext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22574 if test `eval echo '${'$as_ac_var'}'` = yes; then
22575 cat >>confdefs.h <<_ACEOF
22576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22583 # Can we rebuild the documentation?
22586 # Check whether --with-html-dir or --without-html-dir was given.
22587 if test "${with_html_dir+set}" = set; then
22588 withval="$with_html_dir"
22591 with_html_dir='${datadir}/gtk-doc/html'
22593 HTML_DIR="$with_html_dir"
22596 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22597 if test "${enable_gtk_doc+set}" = set; then
22598 enableval="$enable_gtk_doc"
22605 if test x$enable_gtk_doc = xyes; then
22606 if test -z "$PKG_CONFIG"; then
22607 # Extract the first word of "pkg-config", so it can be a program name with args.
22608 set dummy pkg-config; ac_word=$2
22609 echo "$as_me:$LINENO: checking for $ac_word" >&5
22610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22611 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 case $PKG_CONFIG in
22616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22620 for as_dir in $PATH
22623 test -z "$as_dir" && as_dir=.
22624 for ac_exec_ext in '' $ac_executable_extensions; do
22625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22626 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22639 if test -n "$PKG_CONFIG"; then
22640 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22641 echo "${ECHO_T}$PKG_CONFIG" >&6
22643 echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6
22648 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22653 if test "$have_gtk_doc" != yes; then
22660 if test x$enable_gtk_doc = xyes; then
22661 ENABLE_GTK_DOC_TRUE=
22662 ENABLE_GTK_DOC_FALSE='#'
22664 ENABLE_GTK_DOC_TRUE='#'
22665 ENABLE_GTK_DOC_FALSE=
22670 if test -n "$LIBTOOL"; then
22671 GTK_DOC_USE_LIBTOOL_TRUE=
22672 GTK_DOC_USE_LIBTOOL_FALSE='#'
22674 GTK_DOC_USE_LIBTOOL_TRUE='#'
22675 GTK_DOC_USE_LIBTOOL_FALSE=
22681 echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22682 # Extract the first word of "xml2-config", so it can be a program name with args.
22683 set dummy xml2-config; ac_word=$2
22684 echo "$as_me:$LINENO: checking for $ac_word" >&5
22685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22686 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 case $ACI_CACHE_PROG in
22691 ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 for as_dir in $PATH
22698 test -z "$as_dir" && as_dir=.
22699 for ac_exec_ext in '' $ac_executable_extensions; do
22700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22701 ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22708 test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22712 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22714 if test -n "$ACI_CACHE_PROG"; then
22715 echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22716 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22718 echo "$as_me:$LINENO: result: no" >&5
22719 echo "${ECHO_T}no" >&6
22722 aci_module_desc_XML="XML library (version XML2)"
22723 aci_pkg_config_XML=xml2-config
22724 aci_packages="$aci_packages XML"
22725 if test x$ACI_CACHE_PROG = xno; then
22732 CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22733 LIBS_XML=`$ACI_CACHE_PROG --libs `
22736 echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22747 aci_nameok=`echo SimGrid|sed 'y/-/./'`
22748 if test "xSimGrid" != "x$aci_nameok" ; then
22749 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22750 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22751 { (exit 1); exit 1; }; }
22753 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22754 aci_module_desc_SimGrid="the SimGrid simulator"
22755 aci_packages="$aci_packages SimGrid"
22758 # Check whether --with-SimGrid or --without-SimGrid was given.
22759 if test "${with_SimGrid+set}" = set; then
22760 withval="$with_SimGrid"
22761 with_SimGrid=$withval
22763 if test "$withval" = yes ; then good=no; fi
22764 if test "$withval" = no ; then good=no; fi
22765 if test $good = no ; then
22766 { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
22767 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
22768 { (exit 1); exit 1; }; }
22770 aci_pkg_prefix_SimGrid="$withval"
22771 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22772 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22777 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22778 if test "${with_SimGrid_includes+set}" = set; then
22779 withval="$with_SimGrid_includes"
22780 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22781 aci_pkg_inc_SimGrid="$withval"
22786 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22787 if test "${with_SimGrid_libraries+set}" = set; then
22788 withval="$with_SimGrid_libraries"
22789 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22790 aci_pkg_lib_SimGrid="$withval"
22794 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22795 if test "${with_SimGrid_extra+set}" = set; then
22796 withval="$with_SimGrid_extra"
22797 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22798 aci_pkg_extra_SimGrid="$withval"
22802 OLD_LDFLAGS=$LDFLAGS
22804 OLD_CPPFLAGS=$CPPFLAGS
22806 i=`echo -lsimgrid|wc -l`
22807 if test $i != 1 && test $i != 0 ; then
22808 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22809 please no newline and no tab." >&5
22810 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22811 please no newline and no tab." >&2;}
22812 { (exit 1); exit 1; }; }
22815 ac_func_search_save_LIBS="$LIBS"
22816 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22818 echo "----------------------------------------" >&5
22819 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22820 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22821 cat >conftest.$ac_ext <<_ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22828 /* Override any gcc2 internal prototype to avoid an error. */
22832 /* We use char because int might match the return type of a gcc2
22833 builtin and then its argument prototype would still apply. */
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845 (eval $ac_link) 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest$ac_exeext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 echo "$as_me:$LINENO: result: yes" >&5
22865 echo "${ECHO_T}yes" >&6 aci_found="yes"
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 echo "$as_me:$LINENO: result: no" >&5
22871 echo "${ECHO_T}no" >&6
22873 rm -f conftest.err conftest.$ac_objext \
22874 conftest$ac_exeext conftest.$ac_ext
22875 if test "$aci_found" = "no"; then
22876 if test -n "$LIBS_SimGrid" ; then
22877 LIBS="$LIBS_SimGrid"
22878 echo "----------------------------------------" >&5
22879 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22880 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22888 /* Override any gcc2 internal prototype to avoid an error. */
22892 /* We use char because int might match the return type of a gcc2
22893 builtin and then its argument prototype would still apply. */
22903 rm -f conftest.$ac_objext conftest$ac_exeext
22904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22905 (eval $ac_link) 2>conftest.er1
22907 grep -v '^ *+' conftest.er1 >conftest.err
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); } &&
22912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; } &&
22918 { ac_try='test -s conftest$ac_exeext'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22931 rm -f conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
22933 echo "$as_me:$LINENO: result: $aci_found" >&5
22934 echo "${ECHO_T}$aci_found" >&6
22939 if test "x$aci_found" = "xno"; then
22940 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22941 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22942 echo "----------------------------------------" >&5
22943 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22944 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22952 /* Override any gcc2 internal prototype to avoid an error. */
22956 /* We use char because int might match the return type of a gcc2
22957 builtin and then its argument prototype would still apply. */
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969 (eval $ac_link) 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } &&
22976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; } &&
22982 { ac_try='test -s conftest$ac_exeext'
22983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 (eval $ac_try) 2>&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; }; then
22990 echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22995 rm -f conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
22997 echo "$as_me:$LINENO: result: $aci_found" >&5
22998 echo "${ECHO_T}$aci_found" >&6
23001 LIBS="$ac_func_search_save_LIBS"
23003 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23004 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23005 echo "CPPFLAGS=$CPPFLAGS">&5;
23006 if test "${ac_cv_header_simgrid_h+set}" = set; then
23007 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23008 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23009 if test "${ac_cv_header_simgrid_h+set}" = set; then
23010 echo $ECHO_N "(cached) $ECHO_C" >&6
23012 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23013 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23015 # Is the header compilable?
23016 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23017 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 $ac_includes_default
23025 #include <simgrid.h>
23027 rm -f conftest.$ac_objext
23028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23029 (eval $ac_compile) 2>conftest.er1
23031 grep -v '^ *+' conftest.er1 >conftest.err
23033 cat conftest.err >&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } &&
23036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; } &&
23042 { ac_try='test -s conftest.$ac_objext'
23043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044 (eval $ac_try) 2>&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); }; }; then
23048 ac_header_compiler=yes
23050 echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23053 ac_header_compiler=no
23055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23057 echo "${ECHO_T}$ac_header_compiler" >&6
23059 # Is the header present?
23060 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23061 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 #include <simgrid.h>
23070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } >/dev/null; then
23078 if test -s conftest.err; then
23079 ac_cpp_err=$ac_c_preproc_warn_flag
23080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23087 if test -z "$ac_cpp_err"; then
23088 ac_header_preproc=yes
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ac_header_preproc=no
23095 rm -f conftest.err conftest.$ac_ext
23096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23097 echo "${ECHO_T}$ac_header_preproc" >&6
23099 # So? What about this header?
23100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23102 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23103 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23105 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23106 ac_header_preproc=yes
23109 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23110 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23111 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
23112 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23114 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
23116 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23118 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23120 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23123 ## ----------------------------------------- ##
23124 ## Report this to martin.quinson@ens-lyon.fr ##
23125 ## ----------------------------------------- ##
23128 sed "s/^/$as_me: WARNING: /" >&2
23131 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23132 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23133 if test "${ac_cv_header_simgrid_h+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 ac_cv_header_simgrid_h=$ac_header_preproc
23138 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23139 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23142 if test $ac_cv_header_simgrid_h = yes; then
23150 if test "x$aci_found" = "xno" ; then
23151 { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
23152 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
23153 { (exit 1); exit 1; }; }
23158 if test "x$HAVE_SimGrid" != "xyes" ; then
23166 echo "END OF ACI-PACKAGE(SimGrid)">&5;
23167 LDFLAGS=$OLDLDFLAGS
23168 CPPFLAGS=$OLDCPPFLAGS
23173 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23174 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23175 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23176 if test "${enable_maintainer_mode+set}" = set; then
23177 enableval="$enable_maintainer_mode"
23178 USE_MAINTAINER_MODE=$enableval
23180 USE_MAINTAINER_MODE=no
23182 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23183 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23186 if test $USE_MAINTAINER_MODE = yes; then
23187 MAINTAINER_MODE_TRUE=
23188 MAINTAINER_MODE_FALSE='#'
23190 MAINTAINER_MODE_TRUE='#'
23191 MAINTAINER_MODE_FALSE=
23194 MAINT=$MAINTAINER_MODE_TRUE
23197 if test x$USE_MAINTAINER_MODE = xyes
23200 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23201 if test "${enable_compile_warnings+set}" = set; then
23202 enableval="$enable_compile_warnings"
23205 enable_compile_warnings=yes
23208 echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23209 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23211 if test "x$GCC" != xyes; then
23212 enable_compile_warnings=no
23215 if test "x$enable_compile_warnings" != "xno"; then
23216 if test "x$GCC" = "xyes"; then
23217 case " $CFLAGS " in
23219 *) warnCFLAGS="-g -Wall -Wunused" ;;
23222 ## -W is not all that useful. And it cannot be controlled
23223 ## with individual -Wno-xxx flags, unlike -Wall
23224 if test "x$enable_compile_warnings" = "xyes"; then
23225 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations\
23226 -finline-functions -Wshadow -Wpointer-arith \
23227 -Wwrite-strings -Wno-unused-function -Werror"
23231 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23232 echo "${ECHO_T}$warnCFLAGS" >&6
23234 # Check whether --enable-iso-c or --disable-iso-c was given.
23235 if test "${enable_iso_c+set}" = set; then
23236 enableval="$enable_iso_c"
23242 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23243 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23245 if test "x$enable_iso_c" != "xno"; then
23246 if test "x$GCC" = "xyes"; then
23247 case " $CFLAGS " in
23249 *) complCFLAGS="$complCFLAGS -ansi" ;;
23252 case " $CFLAGS " in
23254 *) complCFLAGS="$complCFLAGS -pedantic" ;;
23258 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23259 echo "${ECHO_T}$complCFLAGS" >&6
23260 if test "x$cflags_set" != "xyes"; then
23261 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23272 # Extract the first word of "bash", so it can be a program name with args.
23273 set dummy bash; ac_word=$2
23274 echo "$as_me:$LINENO: checking for $ac_word" >&5
23275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23276 if test "${ac_cv_prog_BASH+set}" = set; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 if test -n "$BASH"; then
23280 ac_cv_prog_BASH="$BASH" # Let the user override the test.
23282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23283 for as_dir in $PATH
23286 test -z "$as_dir" && as_dir=.
23287 for ac_exec_ext in '' $ac_executable_extensions; do
23288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23289 ac_cv_prog_BASH="`which bash`"
23290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23296 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23299 BASH=$ac_cv_prog_BASH
23300 if test -n "$BASH"; then
23301 echo "$as_me:$LINENO: result: $BASH" >&5
23302 echo "${ECHO_T}$BASH" >&6
23304 echo "$as_me:$LINENO: result: no" >&5
23305 echo "${ECHO_T}no" >&6
23308 WARNING="This file is generated, do not edit"
23311 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23314 cat >confcache <<\_ACEOF
23315 # This file is a shell script that caches the results of configure
23316 # tests run on this system so they can be shared between configure
23317 # scripts and configure runs, see configure's option --config-cache.
23318 # It is not useful on other systems. If it contains results you don't
23319 # want to keep, you may remove or edit it.
23321 # config.status only pays attention to the cache file if you give it
23322 # the --recheck option to rerun configure.
23324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23326 # following values.
23330 # The following way of writing the cache mishandles newlines in values,
23331 # but we know of no workaround that is simple, portable, and efficient.
23332 # So, don't put newlines in cache variables' values.
23333 # Ultrix sh set writes to stderr and can't be redirected directly,
23334 # and sets the high bit in the cache file unless we assign to the vars.
23337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23339 # `set' does not quote correctly, so add quotes (double-quote
23340 # substitution turns \\\\ into \\, and sed turns \\ into \).
23343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23346 # `set' quotes correctly as required by POSIX, so do not add quotes.
23348 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23357 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23359 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23360 if test -w $cache_file; then
23361 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23362 cat confcache >$cache_file
23364 echo "not updating unwritable cache $cache_file"
23369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23370 # Let make expand exec_prefix.
23371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23373 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23374 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23375 # trailing colons and then remove the whole line if VPATH becomes empty
23376 # (actually we leave an empty line to preserve line numbers).
23377 if test "x$srcdir" = x.; then
23378 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23379 s/:*\$(srcdir):*/:/;
23380 s/:*\${srcdir}:*/:/;
23382 s/^\([^=]*=[ ]*\):*/\1/;
23388 DEFS=-DHAVE_CONFIG_H
23392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23393 # 1. Remove the extension, and $U if already installed.
23394 ac_i=`echo "$ac_i" |
23395 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23397 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23398 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23400 LIBOBJS=$ac_libobjs
23402 LTLIBOBJS=$ac_ltlibobjs
23405 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23406 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23407 Usually this means the macro was only invoked conditionally." >&5
23408 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23409 Usually this means the macro was only invoked conditionally." >&2;}
23410 { (exit 1); exit 1; }; }
23412 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23413 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23414 Usually this means the macro was only invoked conditionally." >&5
23415 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23416 Usually this means the macro was only invoked conditionally." >&2;}
23417 { (exit 1); exit 1; }; }
23419 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23420 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23421 Usually this means the macro was only invoked conditionally." >&5
23422 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23423 Usually this means the macro was only invoked conditionally." >&2;}
23424 { (exit 1); exit 1; }; }
23426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23427 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23428 Usually this means the macro was only invoked conditionally." >&5
23429 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23430 Usually this means the macro was only invoked conditionally." >&2;}
23431 { (exit 1); exit 1; }; }
23433 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23434 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23435 Usually this means the macro was only invoked conditionally." >&5
23436 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23437 Usually this means the macro was only invoked conditionally." >&2;}
23438 { (exit 1); exit 1; }; }
23440 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23441 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23442 Usually this means the macro was only invoked conditionally." >&5
23443 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23444 Usually this means the macro was only invoked conditionally." >&2;}
23445 { (exit 1); exit 1; }; }
23447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23448 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23449 Usually this means the macro was only invoked conditionally." >&5
23450 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23451 Usually this means the macro was only invoked conditionally." >&2;}
23452 { (exit 1); exit 1; }; }
23455 : ${CONFIG_STATUS=./config.status}
23456 ac_clean_files_save=$ac_clean_files
23457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23460 cat >$CONFIG_STATUS <<_ACEOF
23462 # Generated by $as_me.
23463 # Run this file to recreate the current configuration.
23464 # Compiler output produced by configure, useful for debugging
23465 # configure, is in config.log if it exists.
23468 ac_cs_recheck=false
23470 SHELL=\${CONFIG_SHELL-$SHELL}
23473 cat >>$CONFIG_STATUS <<\_ACEOF
23474 ## --------------------- ##
23475 ## M4sh Initialization. ##
23476 ## --------------------- ##
23478 # Be Bourne compatible
23479 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23482 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23483 # is contrary to our usage. Disable this feature.
23484 alias -g '${1+"$@"}'='"$@"'
23485 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23488 DUALCASE=1; export DUALCASE # for MKS sh
23490 # Support unset when possible.
23491 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23498 # Work around bugs in pre-3.0 UWIN ksh.
23499 $as_unset ENV MAIL MAILPATH
23506 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23507 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23508 LC_TELEPHONE LC_TIME
23510 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23511 eval $as_var=C; export $as_var
23517 # Required to use basename.
23518 if expr a : '\(a\)' >/dev/null 2>&1; then
23524 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23525 as_basename=basename
23531 # Name of the executable.
23532 as_me=`$as_basename "$0" ||
23533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23534 X"$0" : 'X\(//\)$' \| \
23535 X"$0" : 'X\(/\)$' \| \
23536 . : '\(.\)' 2>/dev/null ||
23538 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23539 /^X\/\(\/\/\)$/{ s//\1/; q; }
23540 /^X\/\(\/\).*/{ s//\1/; q; }
23544 # PATH needs CR, and LINENO needs CR and PATH.
23545 # Avoid depending upon Character Ranges.
23546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23549 as_cr_digits='0123456789'
23550 as_cr_alnum=$as_cr_Letters$as_cr_digits
23552 # The user is always right.
23553 if test "${PATH_SEPARATOR+set}" != set; then
23554 echo "#! /bin/sh" >conf$$.sh
23555 echo "exit 0" >>conf$$.sh
23557 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23566 as_lineno_1=$LINENO
23567 as_lineno_2=$LINENO
23568 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23569 test "x$as_lineno_1" != "x$as_lineno_2" &&
23570 test "x$as_lineno_3" = "x$as_lineno_2" || {
23571 # Find who we are. Look in the path if we contain no path at all
23574 *[\\/]* ) as_myself=$0 ;;
23575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23576 for as_dir in $PATH
23579 test -z "$as_dir" && as_dir=.
23580 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23585 # We did not find ourselves, most probably we were run as `sh COMMAND'
23586 # in which case we are not to be found in the path.
23587 if test "x$as_myself" = x; then
23590 if test ! -f "$as_myself"; then
23591 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23592 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23593 { (exit 1); exit 1; }; }
23595 case $CONFIG_SHELL in
23597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23598 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23601 test -z "$as_dir" && as_dir=.
23602 for as_base in sh bash ksh sh5; do
23605 if ("$as_dir/$as_base" -c '
23606 as_lineno_1=$LINENO
23607 as_lineno_2=$LINENO
23608 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23609 test "x$as_lineno_1" != "x$as_lineno_2" &&
23610 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23611 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23612 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23613 CONFIG_SHELL=$as_dir/$as_base
23614 export CONFIG_SHELL
23615 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23623 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23624 # uniformly replaced by the line number. The first 'sed' inserts a
23625 # line-number line before each line; the second 'sed' does the real
23626 # work. The second script uses 'N' to pair each line-number line
23627 # with the numbered line, and appends trailing '-' during
23628 # substitution so that $LINENO is not a special case at line end.
23629 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23630 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23631 sed '=' <$as_myself |
23636 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23639 s,^['$as_cr_digits']*\n,,
23640 ' >$as_me.lineno &&
23641 chmod +x $as_me.lineno ||
23642 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23643 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23644 { (exit 1); exit 1; }; }
23646 # Don't try to exec as it changes $[0], causing all sort of problems
23647 # (the dirname of $[0] is not the place where we might find the
23648 # original and so on. Autoconf is especially sensible to this).
23650 # Exit status is that of the last command.
23655 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23656 *c*,-n*) ECHO_N= ECHO_C='
23658 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23659 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23662 if expr a : '\(a\)' >/dev/null 2>&1; then
23668 rm -f conf$$ conf$$.exe conf$$.file
23670 if ln -s conf$$.file conf$$ 2>/dev/null; then
23671 # We could just check for DJGPP; but this test a) works b) is more generic
23672 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23673 if test -f conf$$.exe; then
23674 # Don't use ln at all; we don't have any links
23679 elif ln conf$$.file conf$$ 2>/dev/null; then
23684 rm -f conf$$ conf$$.exe conf$$.file
23686 if mkdir -p . 2>/dev/null; then
23689 test -d ./-p && rmdir ./-p
23693 as_executable_p="test -f"
23695 # Sed expression to map a string onto a valid CPP name.
23696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23698 # Sed expression to map a string onto a valid variable name.
23699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23703 # We need space, tab and new line, in precisely that order.
23713 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23714 # report actual input values of CONFIG_FILES etc. instead of their
23715 # values after options handling. Logging --version etc. is OK.
23719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23720 ## Running $as_me. ##
23725 This file was extended by GRAS $as_me 0.0.040304, which was
23726 generated by GNU Autoconf 2.59. Invocation command line was
23728 CONFIG_FILES = $CONFIG_FILES
23729 CONFIG_HEADERS = $CONFIG_HEADERS
23730 CONFIG_LINKS = $CONFIG_LINKS
23731 CONFIG_COMMANDS = $CONFIG_COMMANDS
23735 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23739 # Files that config.status was made for.
23740 if test -n "$ac_config_files"; then
23741 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23744 if test -n "$ac_config_headers"; then
23745 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23748 if test -n "$ac_config_links"; then
23749 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23752 if test -n "$ac_config_commands"; then
23753 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23756 cat >>$CONFIG_STATUS <<\_ACEOF
23759 \`$as_me' instantiates files from templates according to the
23760 current configuration.
23762 Usage: $0 [OPTIONS] [FILE]...
23764 -h, --help print this help, then exit
23765 -V, --version print version number, then exit
23766 -q, --quiet do not print progress messages
23767 -d, --debug don't remove temporary files
23768 --recheck update $as_me by reconfiguring in the same conditions
23769 --file=FILE[:TEMPLATE]
23770 instantiate the configuration file FILE
23771 --header=FILE[:TEMPLATE]
23772 instantiate the configuration header FILE
23774 Configuration files:
23777 Configuration headers:
23780 Configuration commands:
23783 Report bugs to <bug-autoconf@gnu.org>."
23786 cat >>$CONFIG_STATUS <<_ACEOF
23788 GRAS config.status 0.0.040304
23789 configured by $0, generated by GNU Autoconf 2.59,
23790 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23792 Copyright (C) 2003 Free Software Foundation, Inc.
23793 This config.status script is free software; the Free Software Foundation
23794 gives unlimited permission to copy, distribute and modify it."
23799 cat >>$CONFIG_STATUS <<\_ACEOF
23800 # If no file are specified by the user, then we need to provide default
23801 # value. By we need to know if files were specified by the user.
23807 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23808 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23816 *) # This is not an option, so the user has probably given explicit
23819 ac_need_defaults=false;;
23823 # Handling of the options.
23825 cat >>$CONFIG_STATUS <<\_ACEOF
23826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23828 --version | --vers* | -V )
23829 echo "$ac_cs_version"; exit 0 ;;
23831 # Conflict between --help and --header
23832 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23833 Try \`$0 --help' for more information." >&5
23834 echo "$as_me: error: ambiguous option: $1
23835 Try \`$0 --help' for more information." >&2;}
23836 { (exit 1); exit 1; }; };;
23837 --help | --hel | -h )
23838 echo "$ac_cs_usage"; exit 0 ;;
23839 --debug | --d* | -d )
23841 --file | --fil | --fi | --f )
23843 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23844 ac_need_defaults=false;;
23845 --header | --heade | --head | --hea )
23847 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23848 ac_need_defaults=false;;
23849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23853 # This is an error.
23854 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23855 Try \`$0 --help' for more information." >&5
23856 echo "$as_me: error: unrecognized option: $1
23857 Try \`$0 --help' for more information." >&2;}
23858 { (exit 1); exit 1; }; } ;;
23860 *) ac_config_targets="$ac_config_targets $1" ;;
23866 ac_configure_extra_args=
23868 if $ac_cs_silent; then
23870 ac_configure_extra_args="$ac_configure_extra_args --silent"
23874 cat >>$CONFIG_STATUS <<_ACEOF
23875 if \$ac_cs_recheck; then
23876 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23877 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23882 cat >>$CONFIG_STATUS <<_ACEOF
23884 # INIT-COMMANDS section.
23887 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23893 cat >>$CONFIG_STATUS <<\_ACEOF
23894 for ac_config_target in $ac_config_targets
23896 case "$ac_config_target" in
23897 # Handling of arguments.
23898 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23899 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23900 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23901 "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23902 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23903 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23904 "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23905 "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
23906 "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
23907 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23908 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23909 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23910 "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23911 "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23912 "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23913 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23914 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23915 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23918 { (exit 1); exit 1; }; };;
23922 # If the user did not use the arguments to specify the items to instantiate,
23923 # then the envvar interface is used. Set only those that are not.
23924 # We use the long form for the default assignment because of an extremely
23925 # bizarre bug on SunOS 4.1.3.
23926 if $ac_need_defaults; then
23927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23932 # Have a temporary directory for convenience. Make it in the build tree
23933 # simply because there is no reason to put it here, and in addition,
23934 # creating and moving files from /tmp can sometimes cause problems.
23935 # Create a temporary directory, and hook for its removal unless debugging.
23938 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23939 trap '{ (exit 1); exit 1; }' 1 2 13 15
23942 # Create a (secure) tmp directory for tmp files.
23945 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23946 test -n "$tmp" && test -d "$tmp"
23949 tmp=./confstat$$-$RANDOM
23950 (umask 077 && mkdir $tmp)
23953 echo "$me: cannot create a temporary directory in ." >&2
23954 { (exit 1); exit 1; }
23959 cat >>$CONFIG_STATUS <<_ACEOF
23962 # CONFIG_FILES section.
23965 # No need to generate the scripts if there are no CONFIG_FILES.
23966 # This happens for instance when ./config.status config.h
23967 if test -n "\$CONFIG_FILES"; then
23968 # Protect against being on the right side of a sed subst in config.status.
23969 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23970 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23971 s,@SHELL@,$SHELL,;t t
23972 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23973 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23974 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23975 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23976 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23977 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23978 s,@exec_prefix@,$exec_prefix,;t t
23979 s,@prefix@,$prefix,;t t
23980 s,@program_transform_name@,$program_transform_name,;t t
23981 s,@bindir@,$bindir,;t t
23982 s,@sbindir@,$sbindir,;t t
23983 s,@libexecdir@,$libexecdir,;t t
23984 s,@datadir@,$datadir,;t t
23985 s,@sysconfdir@,$sysconfdir,;t t
23986 s,@sharedstatedir@,$sharedstatedir,;t t
23987 s,@localstatedir@,$localstatedir,;t t
23988 s,@libdir@,$libdir,;t t
23989 s,@includedir@,$includedir,;t t
23990 s,@oldincludedir@,$oldincludedir,;t t
23991 s,@infodir@,$infodir,;t t
23992 s,@mandir@,$mandir,;t t
23993 s,@build_alias@,$build_alias,;t t
23994 s,@host_alias@,$host_alias,;t t
23995 s,@target_alias@,$target_alias,;t t
23996 s,@DEFS@,$DEFS,;t t
23997 s,@ECHO_C@,$ECHO_C,;t t
23998 s,@ECHO_N@,$ECHO_N,;t t
23999 s,@ECHO_T@,$ECHO_T,;t t
24000 s,@LIBS@,$LIBS,;t t
24001 s,@build@,$build,;t t
24002 s,@build_cpu@,$build_cpu,;t t
24003 s,@build_vendor@,$build_vendor,;t t
24004 s,@build_os@,$build_os,;t t
24005 s,@host@,$host,;t t
24006 s,@host_cpu@,$host_cpu,;t t
24007 s,@host_vendor@,$host_vendor,;t t
24008 s,@host_os@,$host_os,;t t
24009 s,@target@,$target,;t t
24010 s,@target_cpu@,$target_cpu,;t t
24011 s,@target_vendor@,$target_vendor,;t t
24012 s,@target_os@,$target_os,;t t
24013 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24014 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24015 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24016 s,@CYGPATH_W@,$CYGPATH_W,;t t
24017 s,@PACKAGE@,$PACKAGE,;t t
24018 s,@VERSION@,$VERSION,;t t
24019 s,@ACLOCAL@,$ACLOCAL,;t t
24020 s,@AUTOCONF@,$AUTOCONF,;t t
24021 s,@AUTOMAKE@,$AUTOMAKE,;t t
24022 s,@AUTOHEADER@,$AUTOHEADER,;t t
24023 s,@MAKEINFO@,$MAKEINFO,;t t
24024 s,@AMTAR@,$AMTAR,;t t
24025 s,@install_sh@,$install_sh,;t t
24026 s,@STRIP@,$STRIP,;t t
24027 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24028 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24030 s,@SET_MAKE@,$SET_MAKE,;t t
24031 s,@am__leading_dot@,$am__leading_dot,;t t
24033 s,@CFLAGS@,$CFLAGS,;t t
24034 s,@LDFLAGS@,$LDFLAGS,;t t
24035 s,@CPPFLAGS@,$CPPFLAGS,;t t
24036 s,@ac_ct_CC@,$ac_ct_CC,;t t
24037 s,@EXEEXT@,$EXEEXT,;t t
24038 s,@OBJEXT@,$OBJEXT,;t t
24039 s,@DEPDIR@,$DEPDIR,;t t
24040 s,@am__include@,$am__include,;t t
24041 s,@am__quote@,$am__quote,;t t
24042 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24043 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24044 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24045 s,@CCDEPMODE@,$CCDEPMODE,;t t
24046 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24047 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24048 s,@EGREP@,$EGREP,;t t
24049 s,@LN_S@,$LN_S,;t t
24050 s,@ECHO@,$ECHO,;t t
24052 s,@ac_ct_AR@,$ac_ct_AR,;t t
24053 s,@RANLIB@,$RANLIB,;t t
24054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24057 s,@CXXFLAGS@,$CXXFLAGS,;t t
24058 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24059 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24060 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24061 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24062 s,@CXXCPP@,$CXXCPP,;t t
24064 s,@FFLAGS@,$FFLAGS,;t t
24065 s,@ac_ct_F77@,$ac_ct_F77,;t t
24066 s,@LIBTOOL@,$LIBTOOL,;t t
24067 s,@LIBOBJS@,$LIBOBJS,;t t
24068 s,@HTML_DIR@,$HTML_DIR,;t t
24069 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24070 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24071 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24072 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24073 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24074 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24075 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24076 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24077 s,@HAVE_XML@,$HAVE_XML,;t t
24078 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24079 s,@LIBS_XML@,$LIBS_XML,;t t
24080 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24081 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24082 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24083 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24084 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24085 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24086 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24087 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24088 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24089 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24090 s,@MAINT@,$MAINT,;t t
24091 s,@cflags_set@,$cflags_set,;t t
24092 s,@BASH@,$BASH,;t t
24093 s,@WARNING@,$WARNING,;t t
24094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24099 cat >>$CONFIG_STATUS <<\_ACEOF
24100 # Split the substitutions into bite-sized pieces for seds with
24101 # small command number limits, like on Digital OSF/1 and HP-UX.
24102 ac_max_sed_lines=48
24103 ac_sed_frag=1 # Number of current file.
24104 ac_beg=1 # First line for current file.
24105 ac_end=$ac_max_sed_lines # Line after last line for current file.
24108 while $ac_more_lines; do
24109 if test $ac_beg -gt 1; then
24110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24114 if test ! -s $tmp/subs.frag; then
24115 ac_more_lines=false
24117 # The purpose of the label and of the branching condition is to
24118 # speed up the sed processing (if there are no `@' at all, there
24119 # is no need to browse any of the substitutions).
24120 # These are the two extra sed commands mentioned above.
24122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24123 if test -z "$ac_sed_cmds"; then
24124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24128 ac_sed_frag=`expr $ac_sed_frag + 1`
24130 ac_end=`expr $ac_end + $ac_max_sed_lines`
24133 if test -z "$ac_sed_cmds"; then
24136 fi # test -n "$CONFIG_FILES"
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24143 - | *:- | *:-:* ) # input from stdin
24145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24149 * ) ac_file_in=$ac_file.in ;;
24152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24153 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24155 X"$ac_file" : 'X\(//\)[^/]' \| \
24156 X"$ac_file" : 'X\(//\)$' \| \
24157 X"$ac_file" : 'X\(/\)' \| \
24158 . : '\(.\)' 2>/dev/null ||
24160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24162 /^X\(\/\/\)$/{ s//\1/; q; }
24163 /^X\(\/\).*/{ s//\1/; q; }
24165 { if $as_mkdir_p; then
24170 while test ! -d "$as_dir"; do
24171 as_dirs="$as_dir $as_dirs"
24172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24174 X"$as_dir" : 'X\(//\)[^/]' \| \
24175 X"$as_dir" : 'X\(//\)$' \| \
24176 X"$as_dir" : 'X\(/\)' \| \
24177 . : '\(.\)' 2>/dev/null ||
24179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24181 /^X\(\/\/\)$/{ s//\1/; q; }
24182 /^X\(\/\).*/{ s//\1/; q; }
24185 test ! -n "$as_dirs" || mkdir $as_dirs
24186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24188 { (exit 1); exit 1; }; }; }
24192 if test "$ac_dir" != .; then
24193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24194 # A "../" for each directory in $ac_dir_suffix.
24195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24197 ac_dir_suffix= ac_top_builddir=
24201 .) # No --srcdir option. We are building in place.
24203 if test -z "$ac_top_builddir"; then
24206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24208 [\\/]* | ?:[\\/]* ) # Absolute path.
24209 ac_srcdir=$srcdir$ac_dir_suffix;
24210 ac_top_srcdir=$srcdir ;;
24211 *) # Relative path.
24212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24216 # Do not use `cd foo && pwd` to compute absolute paths, because
24217 # the directories may not exist.
24219 .) ac_abs_builddir="$ac_dir";;
24222 .) ac_abs_builddir=`pwd`;;
24223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24224 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24227 case $ac_abs_builddir in
24228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24230 case ${ac_top_builddir}. in
24231 .) ac_abs_top_builddir=$ac_abs_builddir;;
24232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24236 case $ac_abs_builddir in
24237 .) ac_abs_srcdir=$ac_srcdir;;
24240 .) ac_abs_srcdir=$ac_abs_builddir;;
24241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24245 case $ac_abs_builddir in
24246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24248 case $ac_top_srcdir in
24249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24258 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24261 # Let's still pretend it is `configure' which instantiates (i.e., don't
24262 # use $as_me), people would be surprised to read:
24263 # /* config.h. Generated by config.status. */
24264 if test x"$ac_file" = x-; then
24267 configure_input="$ac_file. "
24269 configure_input=$configure_input"Generated from `echo $ac_file_in |
24270 sed 's,.*/,,'` by configure."
24272 # First look for the input files in the build tree, otherwise in the
24274 ac_file_inputs=`IFS=:
24275 for f in $ac_file_in; do
24277 -) echo $tmp/stdin ;;
24279 # Absolute (can't be DOS-style, as IFS=:)
24280 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24281 echo "$as_me: error: cannot find input file: $f" >&2;}
24282 { (exit 1); exit 1; }; }
24285 if test -f "$f"; then
24288 elif test -f "$srcdir/$f"; then
24293 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24294 echo "$as_me: error: cannot find input file: $f" >&2;}
24295 { (exit 1); exit 1; }; }
24298 done` || { (exit 1); exit 1; }
24300 if test x"$ac_file" != x-; then
24301 { echo "$as_me:$LINENO: creating $ac_file" >&5
24302 echo "$as_me: creating $ac_file" >&6;}
24306 cat >>$CONFIG_STATUS <<_ACEOF
24310 cat >>$CONFIG_STATUS <<\_ACEOF
24312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24313 s,@configure_input@,$configure_input,;t t
24314 s,@srcdir@,$ac_srcdir,;t t
24315 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24316 s,@top_srcdir@,$ac_top_srcdir,;t t
24317 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24318 s,@builddir@,$ac_builddir,;t t
24319 s,@abs_builddir@,$ac_abs_builddir,;t t
24320 s,@top_builddir@,$ac_top_builddir,;t t
24321 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24322 s,@INSTALL@,$ac_INSTALL,;t t
24323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24325 if test x"$ac_file" != x-; then
24326 mv $tmp/out $ac_file
24332 # Run the commands associated with the file.
24334 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24335 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24336 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24337 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24338 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24339 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24340 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24341 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24342 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24343 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24344 src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24345 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24346 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24347 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24348 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24349 src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24350 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24351 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24352 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24353 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24354 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24355 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24356 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24357 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24358 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24359 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24360 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24361 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24362 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24363 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24364 src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24365 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24366 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24367 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24368 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24369 src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24370 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24371 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24372 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24373 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24374 src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24375 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24376 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24377 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24378 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24379 src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24380 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24381 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24382 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24383 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24384 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24385 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24386 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24387 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24388 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24389 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24390 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24391 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24392 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24393 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24394 src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24395 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24396 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24397 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24398 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24399 src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24400 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24401 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24402 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24403 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24404 src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24405 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24406 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24407 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24408 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24409 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24410 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24411 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24412 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24413 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24417 cat >>$CONFIG_STATUS <<\_ACEOF
24420 # CONFIG_HEADER section.
24423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24426 # ac_d sets the value in "#define NAME VALUE" lines.
24427 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24428 ac_dB='[ ].*$,\1#\2'
24431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24432 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24433 ac_uB='$,\1#\2define\3'
24437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24440 - | *:- | *:-:* ) # input from stdin
24442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24446 * ) ac_file_in=$ac_file.in ;;
24449 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24450 echo "$as_me: creating $ac_file" >&6;}
24452 # First look for the input files in the build tree, otherwise in the
24454 ac_file_inputs=`IFS=:
24455 for f in $ac_file_in; do
24457 -) echo $tmp/stdin ;;
24459 # Absolute (can't be DOS-style, as IFS=:)
24460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24461 echo "$as_me: error: cannot find input file: $f" >&2;}
24462 { (exit 1); exit 1; }; }
24463 # Do quote $f, to prevent DOS paths from being IFS'd.
24466 if test -f "$f"; then
24469 elif test -f "$srcdir/$f"; then
24474 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24475 echo "$as_me: error: cannot find input file: $f" >&2;}
24476 { (exit 1); exit 1; }; }
24479 done` || { (exit 1); exit 1; }
24480 # Remove the trailing spaces.
24481 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24485 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24486 # `conftest.undefs', that substitutes the proper values into
24487 # config.h.in to produce config.h. The first handles `#define'
24488 # templates, and the second `#undef' templates.
24489 # And first: Protect against being on the right side of a sed subst in
24490 # config.status. Protect against being in an unquoted here document
24491 # in config.status.
24492 rm -f conftest.defines conftest.undefs
24493 # Using a here document instead of a string reduces the quoting nightmare.
24494 # Putting comments in sed scripts is not portable.
24496 # `end' is used to avoid that the second main sed command (meant for
24497 # 0-ary CPP macros) applies to n-ary macro definitions.
24498 # See the Autoconf documentation for `clear'.
24499 cat >confdef2sed.sed <<\_ACEOF
24504 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24506 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24509 # If some macros were called several times there might be several times
24510 # the same #defines, which is useless. Nevertheless, we may not want to
24511 # sort them, since we want the *last* AC-DEFINE to be honored.
24512 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24513 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24514 rm -f confdef2sed.sed
24516 # This sed command replaces #undef with comments. This is necessary, for
24517 # example, in the case of _POSIX_SOURCE, which is predefined and required
24518 # on some systems where configure will not decide to define it.
24519 cat >>conftest.undefs <<\_ACEOF
24520 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24523 # Break up conftest.defines because some shells have a limit on the size
24524 # of here documents, and old seds have small limits too (100 cmds).
24525 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24526 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24527 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24528 echo ' :' >>$CONFIG_STATUS
24529 rm -f conftest.tail
24530 while grep . conftest.defines >/dev/null
24532 # Write a limited-size here document to $tmp/defines.sed.
24533 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24534 # Speed up: don't consider the non `#define' lines.
24535 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24536 # Work around the forget-to-reset-the-flag bug.
24537 echo 't clr' >>$CONFIG_STATUS
24538 echo ': clr' >>$CONFIG_STATUS
24539 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24541 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24543 mv $tmp/out $tmp/in
24545 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24546 rm -f conftest.defines
24547 mv conftest.tail conftest.defines
24549 rm -f conftest.defines
24550 echo ' fi # grep' >>$CONFIG_STATUS
24551 echo >>$CONFIG_STATUS
24553 # Break up conftest.undefs because some shells have a limit on the size
24554 # of here documents, and old seds have small limits too (100 cmds).
24555 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24556 rm -f conftest.tail
24557 while grep . conftest.undefs >/dev/null
24559 # Write a limited-size here document to $tmp/undefs.sed.
24560 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24561 # Speed up: don't consider the non `#undef'
24562 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24563 # Work around the forget-to-reset-the-flag bug.
24564 echo 't clr' >>$CONFIG_STATUS
24565 echo ': clr' >>$CONFIG_STATUS
24566 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24568 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24570 mv $tmp/out $tmp/in
24572 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24573 rm -f conftest.undefs
24574 mv conftest.tail conftest.undefs
24576 rm -f conftest.undefs
24578 cat >>$CONFIG_STATUS <<\_ACEOF
24579 # Let's still pretend it is `configure' which instantiates (i.e., don't
24580 # use $as_me), people would be surprised to read:
24581 # /* config.h. Generated by config.status. */
24582 if test x"$ac_file" = x-; then
24583 echo "/* Generated by configure. */" >$tmp/config.h
24585 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24587 cat $tmp/in >>$tmp/config.h
24589 if test x"$ac_file" != x-; then
24590 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24591 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24592 echo "$as_me: $ac_file is unchanged" >&6;}
24594 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24596 X"$ac_file" : 'X\(//\)[^/]' \| \
24597 X"$ac_file" : 'X\(//\)$' \| \
24598 X"$ac_file" : 'X\(/\)' \| \
24599 . : '\(.\)' 2>/dev/null ||
24601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24603 /^X\(\/\/\)$/{ s//\1/; q; }
24604 /^X\(\/\).*/{ s//\1/; q; }
24606 { if $as_mkdir_p; then
24611 while test ! -d "$as_dir"; do
24612 as_dirs="$as_dir $as_dirs"
24613 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24615 X"$as_dir" : 'X\(//\)[^/]' \| \
24616 X"$as_dir" : 'X\(//\)$' \| \
24617 X"$as_dir" : 'X\(/\)' \| \
24618 . : '\(.\)' 2>/dev/null ||
24620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24622 /^X\(\/\/\)$/{ s//\1/; q; }
24623 /^X\(\/\).*/{ s//\1/; q; }
24626 test ! -n "$as_dirs" || mkdir $as_dirs
24627 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24629 { (exit 1); exit 1; }; }; }
24632 mv $tmp/config.h $ac_file
24636 rm -f $tmp/config.h
24638 # Compute $ac_file's index in $config_headers.
24640 for _am_header in $config_headers :; do
24641 case $_am_header in
24642 $ac_file | $ac_file:* )
24645 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24648 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24649 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24650 X$ac_file : 'X\(//\)[^/]' \| \
24651 X$ac_file : 'X\(//\)$' \| \
24652 X$ac_file : 'X\(/\)' \| \
24653 . : '\(.\)' 2>/dev/null ||
24655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24657 /^X\(\/\/\)$/{ s//\1/; q; }
24658 /^X\(\/\).*/{ s//\1/; q; }
24659 s/.*/./; q'`/stamp-h$_am_stamp_count
24662 cat >>$CONFIG_STATUS <<\_ACEOF
24665 # CONFIG_COMMANDS section.
24667 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24668 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24669 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24670 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24671 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24672 X"$ac_dest" : 'X\(//\)[^/]' \| \
24673 X"$ac_dest" : 'X\(//\)$' \| \
24674 X"$ac_dest" : 'X\(/\)' \| \
24675 . : '\(.\)' 2>/dev/null ||
24677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24679 /^X\(\/\/\)$/{ s//\1/; q; }
24680 /^X\(\/\).*/{ s//\1/; q; }
24682 { if $as_mkdir_p; then
24687 while test ! -d "$as_dir"; do
24688 as_dirs="$as_dir $as_dirs"
24689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24691 X"$as_dir" : 'X\(//\)[^/]' \| \
24692 X"$as_dir" : 'X\(//\)$' \| \
24693 X"$as_dir" : 'X\(/\)' \| \
24694 . : '\(.\)' 2>/dev/null ||
24696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24698 /^X\(\/\/\)$/{ s//\1/; q; }
24699 /^X\(\/\).*/{ s//\1/; q; }
24702 test ! -n "$as_dirs" || mkdir $as_dirs
24703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24705 { (exit 1); exit 1; }; }; }
24709 if test "$ac_dir" != .; then
24710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24711 # A "../" for each directory in $ac_dir_suffix.
24712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24714 ac_dir_suffix= ac_top_builddir=
24718 .) # No --srcdir option. We are building in place.
24720 if test -z "$ac_top_builddir"; then
24723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24725 [\\/]* | ?:[\\/]* ) # Absolute path.
24726 ac_srcdir=$srcdir$ac_dir_suffix;
24727 ac_top_srcdir=$srcdir ;;
24728 *) # Relative path.
24729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24733 # Do not use `cd foo && pwd` to compute absolute paths, because
24734 # the directories may not exist.
24736 .) ac_abs_builddir="$ac_dir";;
24739 .) ac_abs_builddir=`pwd`;;
24740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24744 case $ac_abs_builddir in
24745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24747 case ${ac_top_builddir}. in
24748 .) ac_abs_top_builddir=$ac_abs_builddir;;
24749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24753 case $ac_abs_builddir in
24754 .) ac_abs_srcdir=$ac_srcdir;;
24757 .) ac_abs_srcdir=$ac_abs_builddir;;
24758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24762 case $ac_abs_builddir in
24763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24765 case $ac_top_srcdir in
24766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24773 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24774 echo "$as_me: executing $ac_dest commands" >&6;}
24776 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24777 # Strip MF so we end up with the name of the file.
24778 mf=`echo "$mf" | sed -e 's/:.*$//'`
24779 # Check whether this is an Automake generated Makefile or not.
24780 # We used to match only the files named `Makefile.in', but
24781 # some people rename them; so instead we look at the file content.
24782 # Grep'ing the first line is not enough: some people post-process
24783 # each Makefile.in and add a new line on top of each file to say so.
24784 # So let's grep whole file.
24785 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24786 dirpart=`(dirname "$mf") 2>/dev/null ||
24787 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24788 X"$mf" : 'X\(//\)[^/]' \| \
24789 X"$mf" : 'X\(//\)$' \| \
24790 X"$mf" : 'X\(/\)' \| \
24791 . : '\(.\)' 2>/dev/null ||
24793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24795 /^X\(\/\/\)$/{ s//\1/; q; }
24796 /^X\(\/\).*/{ s//\1/; q; }
24801 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24802 # Extract the definition of DEP_FILES from the Makefile without
24804 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24805 test -z "$DEPDIR" && continue
24806 # When using ansi2knr, U may be empty or an underscore; expand it
24807 U=`sed -n -e '/^U = / s///p' < "$mf"`
24808 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24809 # We invoke sed twice because it is the simplest approach to
24810 # changing $(DEPDIR) to its actual value in the expansion.
24811 for file in `sed -n -e '
24812 /^DEP_FILES = .*\\\\$/ {
24821 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24822 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24823 # Make sure the directory exists.
24824 test -f "$dirpart/$file" && continue
24825 fdir=`(dirname "$file") 2>/dev/null ||
24826 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24827 X"$file" : 'X\(//\)[^/]' \| \
24828 X"$file" : 'X\(//\)$' \| \
24829 X"$file" : 'X\(/\)' \| \
24830 . : '\(.\)' 2>/dev/null ||
24832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24834 /^X\(\/\/\)$/{ s//\1/; q; }
24835 /^X\(\/\).*/{ s//\1/; q; }
24837 { if $as_mkdir_p; then
24838 mkdir -p $dirpart/$fdir
24840 as_dir=$dirpart/$fdir
24842 while test ! -d "$as_dir"; do
24843 as_dirs="$as_dir $as_dirs"
24844 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24846 X"$as_dir" : 'X\(//\)[^/]' \| \
24847 X"$as_dir" : 'X\(//\)$' \| \
24848 X"$as_dir" : 'X\(/\)' \| \
24849 . : '\(.\)' 2>/dev/null ||
24851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24853 /^X\(\/\/\)$/{ s//\1/; q; }
24854 /^X\(\/\).*/{ s//\1/; q; }
24857 test ! -n "$as_dirs" || mkdir $as_dirs
24858 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24859 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24860 { (exit 1); exit 1; }; }; }
24862 # echo "creating $dirpart/$file"
24863 echo '# dummy' > "$dirpart/$file"
24871 cat >>$CONFIG_STATUS <<\_ACEOF
24873 { (exit 0); exit 0; }
24875 chmod +x $CONFIG_STATUS
24876 ac_clean_files=$ac_clean_files_save
24879 # configure is writing to config.log, and then calls config.status.
24880 # config.status does its own redirection, appending to config.log.
24881 # Unfortunately, on DOS this fails, as config.log is still kept open
24882 # by configure, so config.status won't be able to write to it; its
24883 # output is simply discarded. So we exec the FD to /dev/null,
24884 # effectively closing config.log, so it can be properly (re)opened and
24885 # appended to by config.status. When coming back to configure, we
24886 # need to make the FD available again.
24887 if test "$no_create" != yes; then
24889 ac_config_status_args=
24890 test "$silent" = yes &&
24891 ac_config_status_args="$ac_config_status_args --quiet"
24893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24896 # would make configure fail if this is the last instruction.
24897 $ac_cs_success || { (exit 1); exit 1; }
24903 Configuration of package \`${PACKAGE}':
24908 LDFlags: ${LDFLAGS}