2 # From configure.in Revision: 2.5 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 # Check that we are running under the correct shell.
13 SHELL
=${CONFIG_SHELL-/bin/sh}
17 # Remove one level of quotation (which was required for Make).
18 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
23 if test "X$1" = X--no-reexec
; then
24 # Discard the --no-reexec flag, and continue.
26 elif test "X$1" = X--fallback-echo
; then
27 # Avoid inline document here, it may be left over
29 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
30 # Yippee, $echo works!
33 # Restart under the correct shell.
34 exec $SHELL "$0" --no-reexec ${1+"$@"}
37 if test "X$1" = X--fallback-echo
; then
38 # used as fallback echo
46 # The HP-UX ksh and POSIX shell print the target directory to stdout
48 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
50 if test -z "$ECHO"; then
51 if test "X${echo_test_string+set}" != Xset
; then
52 # find a string as large as possible, as long as the shell can cope with it
53 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
54 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
55 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
56 echo_test_string
="`eval $cmd`" &&
57 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
64 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
65 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
66 test "X$echo_testing_string" = "X$echo_test_string"; then
69 # The Solaris, AIX, and Digital Unix default echo programs unquote
70 # backslashes. This makes it impossible to quote backslashes using
71 # echo "$something" | sed 's/\\/\\\\/g'
73 # So, first we look for a working echo in the user's PATH.
75 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
76 for dir
in $PATH /usr
/ucb
; do
78 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
79 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
80 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
81 test "X$echo_testing_string" = "X$echo_test_string"; then
88 if test "X$echo" = Xecho
; then
89 # We didn't find a better echo, so look for alternatives.
90 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
93 # This shell has a builtin print -r that does the trick.
95 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
96 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
97 # If we have ksh, try running configure again with it.
98 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
99 export ORIGINAL_CONFIG_SHELL
100 CONFIG_SHELL
=/bin
/ksh
102 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
106 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
107 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
108 test "X$echo_testing_string" = "X$echo_test_string"; then
111 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
112 test "X$echo_testing_string" = 'X\t' &&
113 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
117 SHELL
="$CONFIG_SHELL"
119 echo="$CONFIG_SHELL $0 --fallback-echo"
120 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 echo="$CONFIG_SHELL $0 --fallback-echo"
126 # maybe with a smaller string...
129 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
130 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
137 if test "$prev" != 'sed 50q "$0"'; then
138 echo_test_string
=`eval $prev`
139 export echo_test_string
140 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
142 # Oops. We lost completely, so just stick with echo.
151 # Copy echo and quote the copy suitably for passing to libtool from
152 # the Makefile, instead of quoting the original, which is used later.
154 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
155 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
160 if expr a
: '\(a\)' >/dev
/null
2>&1; then
167 ## --------------------- ##
168 ## M4sh Initialization. ##
169 ## --------------------- ##
171 # Be Bourne compatible
172 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
175 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
180 # Support unset when possible.
181 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
187 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
188 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
189 { LANG
=C
; export LANG
; }
190 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
191 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
192 { LC_ALL
=C
; export LC_ALL
; }
193 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
194 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
195 { LC_TIME
=C
; export LC_TIME
; }
196 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
197 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
198 { LC_CTYPE
=C
; export LC_CTYPE
; }
199 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
200 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
201 { LANGUAGE
=C
; export LANGUAGE
; }
202 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
203 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
204 { LC_COLLATE
=C
; export LC_COLLATE
; }
205 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
206 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
207 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
208 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
209 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
210 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
213 # Name of the executable.
214 as_me
=`(basename "$0") 2>/dev/null ||
215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
216 X"$0" : 'X\(//\)$' \| \
217 X"$0" : 'X\(/\)$' \| \
218 . : '\(.\)' 2>/dev/null ||
220 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
221 /^X\/\(\/\/\)$/{ s//\1/; q; }
222 /^X\/\(\/\).*/{ s//\1/; q; }
225 # PATH needs CR, and LINENO needs CR and PATH.
226 # Avoid depending upon Character Ranges.
227 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
228 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
229 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
230 as_cr_digits
='0123456789'
231 as_cr_alnum
=$as_cr_Letters$as_cr_digits
233 # The user is always right.
234 if test "${PATH_SEPARATOR+set}" != set; then
235 echo "#! /bin/sh" >conftest.sh
236 echo "exit 0" >>conftest.sh
238 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
249 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
250 test "x$as_lineno_1" != "x$as_lineno_2" &&
251 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
252 # Find who we are. Look in the path if we contain no path at all
255 *[\\/]* ) as_myself
=$0 ;;
256 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
260 test -z "$as_dir" && as_dir
=.
261 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
266 # We did not find ourselves, most probably we were run as `sh COMMAND'
267 # in which case we are not to be found in the path.
268 if test "x$as_myself" = x
; then
271 if test ! -f "$as_myself"; then
272 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
273 { (exit 1); exit 1; }; }
275 case $CONFIG_SHELL in
277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
278 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
281 test -z "$as_dir" && as_dir
=.
282 for as_base
in sh bash ksh sh5
; do
285 if ("$as_dir/$as_base" -c '
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
291 CONFIG_SHELL
=$as_dir/$as_base
293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
302 # uniformly replaced by the line number. The first 'sed' inserts a
303 # line-number line before each line; the second 'sed' does the real
304 # work. The second script uses 'N' to pair each line-number line
305 # with the numbered line, and appends trailing '-' during
306 # substitution so that $LINENO is not a special case at line end.
307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
309 sed '=' <$as_myself |
314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
317 s,^['$as_cr_digits']*\n,,
319 chmod +x
$as_me.lineno ||
320 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
321 { (exit 1); exit 1; }; }
323 # Don't try to exec as it changes $[0], causing all sort of problems
324 # (the dirname of $[0] is not the place where we might find the
325 # original and so on. Autoconf is especially sensible to this).
327 # Exit status is that of the last command.
332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
333 *c
*,-n*) ECHO_N
= ECHO_C
='
335 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
336 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
339 if expr a
: '\(a\)' >/dev
/null
2>&1; then
345 rm -f conf$$ conf$$.exe conf$$.
file
347 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
348 # We could just check for DJGPP; but this test a) works b) is more generic
349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
350 if test -f conf$$.exe
; then
351 # Don't use ln at all; we don't have any links
356 elif ln conf$$.
file conf$$
2>/dev
/null
; then
361 rm -f conf$$ conf$$.exe conf$$.
file
363 as_executable_p
="test -f"
365 # Sed expression to map a string onto a valid CPP name.
366 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
368 # Sed expression to map a string onto a valid variable name.
369 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
373 # We need space, tab and new line, in precisely that order.
379 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
383 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
384 # so uname gets run too.
385 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
392 ac_default_prefix
=/usr
/local
397 SHELL
=${CONFIG_SHELL-/bin/sh}
399 # Maximum number of lines to put in a shell here document.
400 # This variable seems obsolete. It should probably be removed, and
401 # only ac_max_sed_lines should be used.
402 : ${ac_max_here_lines=38}
404 # Identity of this package.
411 ac_unique_file
="Makefile.in"
412 # Factoring default headers for most tests.
413 ac_includes_default
="\
416 # include <sys/types.h>
419 # include <sys/stat.h>
430 # if !STDC_HEADERS && HAVE_MEMORY_H
436 # include <strings.h>
439 # include <inttypes.h>
449 ac_subdirs_all
="$ac_subdirs_all zlib"
450 ac_subdirs_all
="$ac_subdirs_all bz2lib"
451 ac_subdirs_all
="$ac_subdirs_all libgetopt++"
453 # Initialize some variables set by options.
455 ac_init_version
=false
456 # The variables have the same names as the options, with
457 # dashes changed to underlines.
465 program_transform_name
=s
,x
,x
,
473 # Installation directory options.
474 # These are left unexpanded so users can "make install exec_prefix=/foo"
475 # and all the variables that are supposed to be based on exec_prefix
476 # by default will actually change.
477 # Use braces instead of parens because sh, perl, etc. also accept them.
478 bindir
='${exec_prefix}/bin'
479 sbindir
='${exec_prefix}/sbin'
480 libexecdir
='${exec_prefix}/libexec'
481 datadir
='${prefix}/share'
482 sysconfdir
='${prefix}/etc'
483 sharedstatedir
='${prefix}/com'
484 localstatedir
='${prefix}/var'
485 libdir
='${exec_prefix}/lib'
486 includedir
='${prefix}/include'
487 oldincludedir
='/usr/include'
488 infodir
='${prefix}/info'
489 mandir
='${prefix}/man'
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
501 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
503 # Accept the important Cygnus configure options, so we can diagnose typos.
507 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
509 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
512 -build |
--build |
--buil |
--bui |
--bu)
513 ac_prev
=build_alias
;;
514 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
515 build_alias
=$ac_optarg ;;
517 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
518 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
519 ac_prev
=cache_file
;;
520 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
521 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
522 cache_file
=$ac_optarg ;;
525 cache_file
=config.cache
;;
527 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
529 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
531 datadir
=$ac_optarg ;;
533 -disable-* |
--disable-*)
534 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
535 # Reject names that are not valid shell variable names.
536 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
537 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
538 { (exit 1); exit 1; }; }
539 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
540 eval "enable_$ac_feature=no" ;;
542 -enable-* |
--enable-*)
543 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
544 # Reject names that are not valid shell variable names.
545 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
546 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
547 { (exit 1); exit 1; }; }
548 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
550 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
553 eval "enable_$ac_feature='$ac_optarg'" ;;
555 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
556 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
557 |
--exec |
--exe |
--ex)
558 ac_prev
=exec_prefix
;;
559 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
560 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
561 |
--exec=* |
--exe=* |
--ex=*)
562 exec_prefix
=$ac_optarg ;;
564 -gas |
--gas |
--ga |
--g)
565 # Obsolete; use --with-gas.
568 -help |
--help |
--hel |
--he |
-h)
570 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
571 ac_init_help
=recursive
;;
572 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
573 ac_init_help
=short
;;
575 -host |
--host |
--hos |
--ho)
576 ac_prev
=host_alias
;;
577 -host=* |
--host=* |
--hos=* |
--ho=*)
578 host_alias
=$ac_optarg ;;
580 -includedir |
--includedir |
--includedi |
--included |
--include \
581 |
--includ |
--inclu |
--incl |
--inc)
582 ac_prev
=includedir
;;
583 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
584 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
585 includedir
=$ac_optarg ;;
587 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
589 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
590 infodir
=$ac_optarg ;;
592 -libdir |
--libdir |
--libdi |
--libd)
594 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
597 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
598 |
--libexe |
--libex |
--libe)
599 ac_prev
=libexecdir
;;
600 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
601 |
--libexe=* |
--libex=* |
--libe=*)
602 libexecdir
=$ac_optarg ;;
604 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
605 |
--localstate |
--localstat |
--localsta |
--localst \
606 |
--locals |
--local |
--loca |
--loc |
--lo)
607 ac_prev
=localstatedir
;;
608 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
609 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
610 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
611 localstatedir
=$ac_optarg ;;
613 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
615 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
619 # Obsolete; use --without-fp.
622 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
623 |
--no-cr |
--no-c |
-n)
626 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
627 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
630 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
631 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
632 |
--oldin |
--oldi |
--old |
--ol |
--o)
633 ac_prev
=oldincludedir
;;
634 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
635 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
636 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
637 oldincludedir
=$ac_optarg ;;
639 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
641 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
644 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
645 |
--program-pre |
--program-pr |
--program-p)
646 ac_prev
=program_prefix
;;
647 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
648 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
649 program_prefix
=$ac_optarg ;;
651 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
652 |
--program-suf |
--program-su |
--program-s)
653 ac_prev
=program_suffix
;;
654 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
655 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
656 program_suffix
=$ac_optarg ;;
658 -program-transform-name |
--program-transform-name \
659 |
--program-transform-nam |
--program-transform-na \
660 |
--program-transform-n |
--program-transform- \
661 |
--program-transform |
--program-transfor \
662 |
--program-transfo |
--program-transf \
663 |
--program-trans |
--program-tran \
664 |
--progr-tra |
--program-tr |
--program-t)
665 ac_prev
=program_transform_name
;;
666 -program-transform-name=* |
--program-transform-name=* \
667 |
--program-transform-nam=* |
--program-transform-na=* \
668 |
--program-transform-n=* |
--program-transform-=* \
669 |
--program-transform=* |
--program-transfor=* \
670 |
--program-transfo=* |
--program-transf=* \
671 |
--program-trans=* |
--program-tran=* \
672 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
673 program_transform_name
=$ac_optarg ;;
675 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
676 |
-silent |
--silent |
--silen |
--sile |
--sil)
679 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
681 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
683 sbindir
=$ac_optarg ;;
685 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
686 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
687 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
689 ac_prev
=sharedstatedir
;;
690 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
691 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
692 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
694 sharedstatedir
=$ac_optarg ;;
696 -site |
--site |
--sit)
698 -site=* |
--site=* |
--sit=*)
701 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
703 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
706 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
707 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
708 ac_prev
=sysconfdir
;;
709 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
710 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
711 sysconfdir
=$ac_optarg ;;
713 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
714 ac_prev
=target_alias
;;
715 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
716 target_alias
=$ac_optarg ;;
718 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
721 -version |
--version |
--versio |
--versi |
--vers |
-V)
725 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
726 # Reject names that are not valid shell variable names.
727 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
728 { echo "$as_me: error: invalid package name: $ac_package" >&2
729 { (exit 1); exit 1; }; }
730 ac_package
=`echo $ac_package| sed 's/-/_/g'`
732 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
735 eval "with_$ac_package='$ac_optarg'" ;;
737 -without-* |
--without-*)
738 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package
=`echo $ac_package | sed 's/-/_/g'`
744 eval "with_$ac_package=no" ;;
747 # Obsolete; use --with-x.
750 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
751 |
--x-incl |
--x-inc |
--x-in |
--x-i)
752 ac_prev
=x_includes
;;
753 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
754 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
755 x_includes
=$ac_optarg ;;
757 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
758 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
759 ac_prev
=x_libraries
;;
760 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
761 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
762 x_libraries
=$ac_optarg ;;
764 -*) { echo "$as_me: error: unrecognized option: $ac_option
765 Try \`$0 --help' for more information." >&2
766 { (exit 1); exit 1; }; }
770 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
771 # Reject names that are not valid shell variable names.
772 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
773 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
774 { (exit 1); exit 1; }; }
775 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
776 eval "$ac_envvar='$ac_optarg'"
780 # FIXME: should be removed in autoconf 3.0.
781 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
782 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
783 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
784 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
790 if test -n "$ac_prev"; then
791 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
792 { echo "$as_me: error: missing argument to $ac_option" >&2
793 { (exit 1); exit 1; }; }
796 # Be sure to have absolute paths.
797 for ac_var
in exec_prefix prefix
799 eval ac_val
=$
`echo $ac_var`
801 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
802 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
803 { (exit 1); exit 1; }; };;
807 # Be sure to have absolute paths.
808 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
809 localstatedir libdir includedir oldincludedir infodir mandir
811 eval ac_val
=$
`echo $ac_var`
813 [\\/$
]* | ?
:[\\/]* ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # There might be people who depend on the old broken behavior: `$host'
820 # used to hold the argument of --host etc.
821 # FIXME: To remove some day.
826 # FIXME: To remove some day.
827 if test "x$host_alias" != x
; then
828 if test "x$build_alias" = x
; then
829 cross_compiling
=maybe
830 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
831 If a cross compiler is detected then cross compile mode will be used." >&2
832 elif test "x$build_alias" != "x$host_alias"; then
838 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
840 test "$silent" = yes && exec 6>/dev
/null
843 # Find the source files, if location was not specified.
844 if test -z "$srcdir"; then
845 ac_srcdir_defaulted
=yes
846 # Try the directory containing this script, then its parent.
847 ac_confdir
=`(dirname "$0") 2>/dev/null ||
848 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
849 X"$0" : 'X\(//\)[^/]' \| \
850 X"$0" : 'X\(//\)$' \| \
851 X"$0" : 'X\(/\)' \| \
852 . : '\(.\)' 2>/dev/null ||
854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
856 /^X\(\/\/\)$/{ s//\1/; q; }
857 /^X\(\/\).*/{ s//\1/; q; }
860 if test ! -r $srcdir/$ac_unique_file; then
864 ac_srcdir_defaulted
=no
866 if test ! -r $srcdir/$ac_unique_file; then
867 if test "$ac_srcdir_defaulted" = yes; then
868 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
869 { (exit 1); exit 1; }; }
871 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
872 { (exit 1); exit 1; }; }
875 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
876 ac_env_build_alias_set
=${build_alias+set}
877 ac_env_build_alias_value
=$build_alias
878 ac_cv_env_build_alias_set
=${build_alias+set}
879 ac_cv_env_build_alias_value
=$build_alias
880 ac_env_host_alias_set
=${host_alias+set}
881 ac_env_host_alias_value
=$host_alias
882 ac_cv_env_host_alias_set
=${host_alias+set}
883 ac_cv_env_host_alias_value
=$host_alias
884 ac_env_target_alias_set
=${target_alias+set}
885 ac_env_target_alias_value
=$target_alias
886 ac_cv_env_target_alias_set
=${target_alias+set}
887 ac_cv_env_target_alias_value
=$target_alias
888 ac_env_CXX_set
=${CXX+set}
889 ac_env_CXX_value
=$CXX
890 ac_cv_env_CXX_set
=${CXX+set}
891 ac_cv_env_CXX_value
=$CXX
892 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
893 ac_env_CXXFLAGS_value
=$CXXFLAGS
894 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
895 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
896 ac_env_LDFLAGS_set
=${LDFLAGS+set}
897 ac_env_LDFLAGS_value
=$LDFLAGS
898 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
899 ac_cv_env_LDFLAGS_value
=$LDFLAGS
900 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
901 ac_env_CPPFLAGS_value
=$CPPFLAGS
902 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
903 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
904 ac_env_CC_set
=${CC+set}
906 ac_cv_env_CC_set
=${CC+set}
907 ac_cv_env_CC_value
=$CC
908 ac_env_CFLAGS_set
=${CFLAGS+set}
909 ac_env_CFLAGS_value
=$CFLAGS
910 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
911 ac_cv_env_CFLAGS_value
=$CFLAGS
912 ac_env_CPP_set
=${CPP+set}
913 ac_env_CPP_value
=$CPP
914 ac_cv_env_CPP_set
=${CPP+set}
915 ac_cv_env_CPP_value
=$CPP
916 ac_env_CXXCPP_set
=${CXXCPP+set}
917 ac_env_CXXCPP_value
=$CXXCPP
918 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
919 ac_cv_env_CXXCPP_value
=$CXXCPP
922 # Report the --help message.
924 if test "$ac_init_help" = "long"; then
925 # Omit some internal or obsolete options to make the list less imposing.
926 # This message is too long to be a string in the A/UX 3.1 sh.
928 \`configure' configures this package to adapt to many kinds of systems.
930 Usage: $0 [OPTION]... [VAR=VALUE]...
932 To assign environment variables (e.g., CC, CFLAGS...), specify them as
933 VAR=VALUE. See below for descriptions of some of the useful variables.
935 Defaults for the options are specified in brackets.
938 -h, --help display this help and exit
939 --help=short display options specific to this package
940 --help=recursive display the short help of all the included packages
941 -V, --version display version information and exit
942 -q, --quiet, --silent do not print \`checking...' messages
943 --cache-file=FILE cache test results in FILE [disabled]
944 -C, --config-cache alias for \`--cache-file=config.cache'
945 -n, --no-create do not create output files
946 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 Installation directories:
952 --prefix=PREFIX install architecture-independent files in PREFIX
954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 By default, \`make install' will install all the files in
958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
960 for instance \`--prefix=\$HOME'.
962 For better control, use the options below.
964 Fine tuning of the installation directories:
965 --bindir=DIR user executables [EPREFIX/bin]
966 --sbindir=DIR system admin executables [EPREFIX/sbin]
967 --libexecdir=DIR program executables [EPREFIX/libexec]
968 --datadir=DIR read-only architecture-independent data [PREFIX/share]
969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
972 --libdir=DIR object code libraries [EPREFIX/lib]
973 --includedir=DIR C header files [PREFIX/include]
974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
975 --infodir=DIR info documentation [PREFIX/info]
976 --mandir=DIR man documentation [PREFIX/man]
982 --program-prefix=PREFIX prepend PREFIX to installed program names
983 --program-suffix=SUFFIX append SUFFIX to installed program names
984 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
987 --build=BUILD configure
for building on BUILD
[guessed
]
988 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
992 if test -n "$ac_init_help"; then
997 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
998 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
999 --enable-maintainer-mode enable make rules and dependencies not useful
1000 (and sometimes confusing
) to the casual installer
1001 --disable-dependency-tracking Speeds up one-time builds
1002 --enable-dependency-tracking Do not reject slow dependency extractors
1003 --enable-shared[=PKGS
]
1004 build shared libraries
[default
=yes]
1005 --enable-static[=PKGS
]
1006 build static libraries
[default
=yes]
1007 --enable-fast-install[=PKGS
]
1008 optimize
for fast installation
[default
=yes]
1009 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1012 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1013 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1014 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1015 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1017 --with-tags=TAGS include additional configurations
[CXX
,GCJ
]
1019 Some influential environment variables
:
1020 CXX C
++ compiler
command
1021 CXXFLAGS C
++ compiler flags
1022 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1023 nonstandard directory
<lib dir
>
1024 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1025 headers
in a nonstandard directory
<include dir
>
1026 CC C compiler
command
1027 CFLAGS C compiler flags
1029 CXXCPP C
++ preprocessor
1031 Use these variables to override the choices made by
`configure' or to help
1032 it to find libraries and programs with nonstandard names/locations.
1037 if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1044 if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1049 ac_dir_suffix= ac_top_builddir=
1053 .) # No --srcdir option. We are building in place.
1055 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1067 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1069 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1070 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1071 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1072 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1075 # Check for guested configure; otherwise get Cygnus style configure.
1076 if test -f $ac_srcdir/configure.gnu; then
1078 $SHELL $ac_srcdir/configure.gnu --help=recursive
1079 elif test -f $ac_srcdir/configure; then
1081 $SHELL $ac_srcdir/configure --help=recursive
1082 elif test -f $ac_srcdir/configure.ac ||
1083 test -f $ac_srcdir/configure.in; then
1085 $ac_configure --help
1087 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1093 test -n "$ac_init_help" && exit 0
1094 if $ac_init_version; then
1097 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1098 Free Software Foundation, Inc.
1099 This configure script is free software; the Free Software Foundation
1100 gives unlimited permission to copy, distribute and modify it.
1106 This file contains any messages produced by compilers while
1107 running configure, to aid debugging if configure makes a mistake.
1109 It was created by $as_me, which was
1110 generated by GNU Autoconf 2.53. Invocation command line was
1121 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1122 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1123 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1124 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1125 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1127 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1128 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1130 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1131 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1132 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1133 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1134 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1135 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1136 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1144 test -z "$as_dir" && as_dir=.
1145 echo "PATH: $as_dir"
1160 # Keep a trace of the command line.
1161 # Strip out --no-create and --no-recursion so they do not pile up.
1162 # Also quote any args containing shell meta-characters.
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n ) continue ;;
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1174 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1176 case " $ac_configure_args " in
1177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1178 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1181 # Get rid of the leading space.
1184 # When interrupted or exit'd, cleanup temporary files, and complete
1185 # config.log. We remove comments because anyway the quotes in there
1186 # would cause problems or look ugly.
1187 # WARNING: Be sure not to use single quotes in there, as some shells,
1188 # such as our DU 5.0 friend, will then `close
' the trap.
1189 trap 'exit_status
=$?
1190 # Save into config.log some information that might help in debugging.
1194 ## ---------------- ##
1195 ## Cache variables. ##
1196 ## ---------------- ##
1199 # The following way of writing the cache mishandles newlines in values,
1202 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1205 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1210 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1215 if test -s confdefs.h
; then
1222 sed "/^$/d" confdefs.h
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core core.
* *.core
&&
1230 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's
/^
/|
/' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1318 ac_cache_corrupted=: ;;
1320 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1327 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1352 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1359 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 for ac_dir in cfgaux $srcdir/cfgaux; do
1382 if test -f $ac_dir/install-sh; then
1384 ac_install_sh="$ac_aux_dir/install-sh -c"
1386 elif test -f $ac_dir/install.sh; then
1388 ac_install_sh="$ac_aux_dir/install.sh -c"
1390 elif test -f $ac_dir/shtool; then
1392 ac_install_sh="$ac_aux_dir/shtool install -c"
1396 if test -z "$ac_aux_dir"; then
1397 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1398 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1399 { (exit 1); exit 1; }; }
1401 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1405 am__api_version="1.6"
1406 # Find a good install program. We prefer a C program (faster),
1407 # so one script is as good as another. But avoid the broken or
1408 # incompatible versions:
1409 # SysV /etc/install, /usr/sbin/install
1410 # SunOS /usr/etc/install
1411 # IRIX /sbin/install
1413 # AmigaOS /C/install, which installs bootblocks on floppy discs
1414 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1417 # ./install, which can be erroneously created by make from ./install.sh.
1418 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1419 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1420 if test -z "$INSTALL"; then
1421 if test "${ac_cv_path_install+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir
=.
1429 # Account for people who put trailing slashes in PATH elements.
1431 .
/ | .
// |
/cC
/* | \
1432 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1435 # OSF1 and SCO ODT 3.0 have their own names for install.
1436 # Don't use installbsd from OSF since it installs stuff as root
1438 for ac_prog
in ginstall scoinst
install; do
1439 for ac_exec_ext
in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1441 if test $ac_prog = install &&
1442 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1443 # AIX install. It has an incompatible calling convention.
1445 elif test $ac_prog = install &&
1446 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1447 # program-specific install script used by HP pwplus--don't use.
1450 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1462 if test "${ac_cv_path_install+set}" = set; then
1463 INSTALL
=$ac_cv_path_install
1465 # As a last resort, use the slow shell script. We don't cache a
1466 # path for INSTALL within a source directory, because that will
1467 # break other packages using the cache if that directory is
1468 # removed, or if the path is relative.
1469 INSTALL
=$ac_install_sh
1472 echo "$as_me:$LINENO: result: $INSTALL" >&5
1473 echo "${ECHO_T}$INSTALL" >&6
1475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1476 # It thinks the first close brace ends the variable substitution.
1477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1481 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1483 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1484 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1487 echo timestamp
> conftest.
file
1488 # Do `set' in a subshell so we don't clobber the current shell's
1489 # arguments. Must try -L first in case configure is actually a
1490 # symlink; some systems play weird games with the mod time of symlinks
1491 # (eg FreeBSD returns the mod time of the symlink's containing
1494 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1495 if test "$*" = "X"; then
1497 set X
`ls -t $srcdir/configure conftest.file`
1500 if test "$*" != "X $srcdir/configure conftest.file" \
1501 && test "$*" != "X conftest.file $srcdir/configure"; then
1503 # If neither matched, then we have a broken ls. This can happen
1504 # if, for instance, CONFIG_SHELL is bash and it inherits a
1505 # broken ls alias from the environment. This has actually
1506 # happened. Such a system could not be considered "sane".
1507 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1508 alias in your environment" >&5
1509 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1510 alias in your environment" >&2;}
1511 { (exit 1); exit 1; }; }
1514 test "$2" = conftest.
file
1520 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1521 Check your system clock" >&5
1522 echo "$as_me: error: newly created file is older than distributed files!
1523 Check your system clock" >&2;}
1524 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: yes" >&5
1527 echo "${ECHO_T}yes" >&6
1528 test "$program_prefix" != NONE
&&
1529 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1530 # Use a double $ so make ignores it.
1531 test "$program_suffix" != NONE
&&
1532 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1533 # Double any \ or $. echo might interpret backslashes.
1534 # By default was `s,x,x', remove it if useless.
1535 cat <<\_ACEOF
>conftest.
sed
1536 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1538 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1542 # expand $ac_aux_dir to an absolute path
1543 am_aux_dir
=`cd $ac_aux_dir && pwd`
1545 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1546 # Use eval to expand $SHELL
1547 if eval "$MISSING --run true"; then
1548 am_missing_run
="$MISSING --run "
1551 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1552 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1555 for ac_prog
in gawk mawk nawk
awk
1557 # Extract the first word of "$ac_prog", so it can be a program name with args.
1558 set dummy
$ac_prog; ac_word
=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_AWK+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$AWK"; then
1565 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir
=.
1572 for ac_exec_ext
in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_AWK
="$ac_prog"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 if test -n "$AWK"; then
1585 echo "$as_me:$LINENO: result: $AWK" >&5
1586 echo "${ECHO_T}$AWK" >&6
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1592 test -n "$AWK" && break
1595 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1596 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1597 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1598 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 cat >conftest.
make <<\_ACEOF
1603 @
echo 'ac_maketemp="${MAKE}"'
1605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1606 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1607 if test -n "$ac_maketemp"; then
1608 eval ac_cv_prog_make_
${ac_make}_set
=yes
1610 eval ac_cv_prog_make_
${ac_make}_set
=no
1614 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1615 echo "$as_me:$LINENO: result: yes" >&5
1616 echo "${ECHO_T}yes" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 SET_MAKE
="MAKE=${MAKE-make}"
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status
; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1632 # Define the identity of the package.
1637 cat >>confdefs.h
<<_ACEOF
1638 #define PACKAGE "$PACKAGE"
1642 cat >>confdefs.h
<<_ACEOF
1643 #define VERSION "$VERSION"
1646 # Some tools Automake needs.
1648 ACLOCAL
=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1651 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1654 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1657 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1660 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1663 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1665 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1667 # Installed binaries are usually stripped using `strip' when the user
1668 # run `make install-strip'. However `strip' might not be the right
1669 # tool to use in cross-compilation environments, therefore Automake
1670 # will honor the `STRIP' environment variable to overrule this program.
1671 if test "$cross_compiling" != no
; then
1672 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1674 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_STRIP+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$STRIP"; then
1681 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir
=.
1688 for ac_exec_ext
in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 STRIP
=$ac_cv_prog_STRIP
1700 if test -n "$STRIP"; then
1701 echo "$as_me:$LINENO: result: $STRIP" >&5
1702 echo "${ECHO_T}$STRIP" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1709 if test -z "$ac_cv_prog_STRIP"; then
1711 # Extract the first word of "strip", so it can be a program name with args.
1712 set dummy strip
; ac_word
=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$ac_ct_STRIP"; then
1719 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir
=.
1726 for ac_exec_ext
in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_STRIP
="strip"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1738 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1739 if test -n "$ac_ct_STRIP"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1741 echo "${ECHO_T}$ac_ct_STRIP" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1749 STRIP
="$ac_cv_prog_STRIP"
1753 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1755 # We need awk for the "check" target. The system "awk" is bad on
1760 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1761 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1762 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1763 if test "${enable_maintainer_mode+set}" = set; then
1764 enableval
="$enable_maintainer_mode"
1765 USE_MAINTAINER_MODE
=$enableval
1767 USE_MAINTAINER_MODE
=no
1769 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1770 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1773 if test $USE_MAINTAINER_MODE = yes; then
1774 MAINTAINER_MODE_TRUE
=
1775 MAINTAINER_MODE_FALSE
='#'
1777 MAINTAINER_MODE_TRUE
='#'
1778 MAINTAINER_MODE_FALSE
=
1781 MAINT
=$MAINTAINER_MODE_TRUE
1787 ac_cpp
='$CXXCPP $CPPFLAGS'
1788 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1793 ac_cpp
='$CXXCPP $CPPFLAGS'
1794 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1797 if test -n "$ac_tool_prefix"; then
1798 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1801 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CXX+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$CXX"; then
1808 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1814 test -z "$as_dir" && as_dir
=.
1815 for ac_exec_ext
in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 if test -n "$CXX"; then
1828 echo "$as_me:$LINENO: result: $CXX" >&5
1829 echo "${ECHO_T}$CXX" >&6
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1835 test -n "$CXX" && break
1838 if test -z "$CXX"; then
1840 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1842 # Extract the first word of "$ac_prog", so it can be a program name with args.
1843 set dummy
$ac_prog; ac_word
=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$ac_ct_CXX"; then
1850 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
1852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir
=.
1857 for ac_exec_ext
in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_ac_ct_CXX
="$ac_prog"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
1869 if test -n "$ac_ct_CXX"; then
1870 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1871 echo "${ECHO_T}$ac_ct_CXX" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1877 test -n "$ac_ct_CXX" && break
1879 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
1885 # Provide some information about the compiler.
1886 echo "$as_me:$LINENO:" \
1887 "checking for C++ compiler version" >&5
1888 ac_compiler
=`set X $ac_compile; echo $2`
1889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1890 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }
1894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1895 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1900 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1905 cat >conftest.
$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1909 #ifdef F77_DUMMY_MAIN
1913 int F77_DUMMY_MAIN() { return 1; }
1923 ac_clean_files_save
=$ac_clean_files
1924 ac_clean_files
="$ac_clean_files a.out a.exe"
1925 # Try to create an executable without -o first, disregard a.out.
1926 # It will help us diagnose broken compilers, and finding out an intuition
1928 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1929 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1930 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1931 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1932 (eval $ac_link_default) 2>&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; then
1936 # Find the output, starting from the most likely. This scheme is
1937 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1940 # Be careful to initialize this variable, since it used to be cached.
1941 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1943 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1944 ls a.out conftest 2>/dev/null;
1945 ls a.* conftest.* 2>/dev/null`; do
1947 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1948 a.out
) # We found the default executable, but exeext='' is most
1951 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1952 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1961 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1962 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1963 { (exit 77); exit 77; }; }
1966 ac_exeext
=$ac_cv_exeext
1967 echo "$as_me:$LINENO: result: $ac_file" >&5
1968 echo "${ECHO_T}$ac_file" >&6
1970 # Check the compiler produces executables we can run. If not, either
1971 # the compiler is broken, or we cross compile.
1972 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1973 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1974 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1975 # If not cross compiling, check that we can run a simple program.
1976 if test "$cross_compiling" != yes; then
1977 if { ac_try
='./$ac_file'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1985 if test "$cross_compiling" = maybe
; then
1988 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1989 If you meant to cross compile, use \`--host'." >&5
1990 echo "$as_me: error: cannot run C++ compiled programs.
1991 If you meant to cross compile, use \`--host'." >&2;}
1992 { (exit 1); exit 1; }; }
1996 echo "$as_me:$LINENO: result: yes" >&5
1997 echo "${ECHO_T}yes" >&6
1999 rm -f a.out a.exe conftest
$ac_cv_exeext
2000 ac_clean_files
=$ac_clean_files_save
2001 # Check the compiler produces executables we can run. If not, either
2002 # the compiler is broken, or we cross compile.
2003 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2004 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2005 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2006 echo "${ECHO_T}$cross_compiling" >&6
2008 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2009 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2011 (eval $ac_link) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; then
2015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2016 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2017 # work properly (i.e., refer to `conftest.exe'), while it won't with
2019 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2021 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2022 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2029 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2030 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2031 { (exit 1); exit 1; }; }
2034 rm -f conftest
$ac_cv_exeext
2035 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2036 echo "${ECHO_T}$ac_cv_exeext" >&6
2038 rm -f conftest.
$ac_ext
2039 EXEEXT
=$ac_cv_exeext
2041 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2042 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2043 if test "${ac_cv_objext+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 cat >conftest.
$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2050 #ifdef F77_DUMMY_MAIN
2054 int F77_DUMMY_MAIN() { return 1; }
2064 rm -f conftest.o conftest.obj
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2072 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2073 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.
$ac_ext >&5
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2081 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2082 { (exit 1); exit 1; }; }
2085 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2087 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2088 echo "${ECHO_T}$ac_cv_objext" >&6
2089 OBJEXT
=$ac_cv_objext
2091 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2092 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2093 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 cat >conftest.
$ac_ext <<_ACEOF
2097 #line $LINENO "configure"
2098 #include "confdefs.h"
2100 #ifdef F77_DUMMY_MAIN
2104 int F77_DUMMY_MAIN() { return 1; }
2117 rm -f conftest.
$ac_objext
2118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); } &&
2123 { ac_try
='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2131 echo "$as_me: failed program was:" >&5
2132 cat conftest.
$ac_ext >&5
2135 rm -f conftest.
$ac_objext conftest.
$ac_ext
2136 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2139 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2140 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2141 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2142 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2143 ac_save_CXXFLAGS
=$CXXFLAGS
2145 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2147 if test "${ac_cv_prog_cxx_g+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 cat >conftest.
$ac_ext <<_ACEOF
2151 #line $LINENO "configure"
2152 #include "confdefs.h"
2154 #ifdef F77_DUMMY_MAIN
2158 int F77_DUMMY_MAIN() { return 1; }
2168 rm -f conftest.
$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try
='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 ac_cv_prog_cxx_g
=yes
2182 echo "$as_me: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2186 rm -f conftest.
$ac_objext conftest.
$ac_ext
2188 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2189 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2190 if test "$ac_test_CXXFLAGS" = set; then
2191 CXXFLAGS
=$ac_save_CXXFLAGS
2192 elif test $ac_cv_prog_cxx_g = yes; then
2193 if test "$GXX" = yes; then
2199 if test "$GXX" = yes; then
2205 for ac_declaration
in \
2207 '#include <stdlib.h>' \
2208 'extern "C" void std::exit (int) throw (); using std::exit;' \
2209 'extern "C" void std::exit (int); using std::exit;' \
2210 'extern "C" void exit (int) throw ();' \
2211 'extern "C" void exit (int);' \
2214 cat >conftest.
$ac_ext <<_ACEOF
2215 #line $LINENO "configure"
2216 #include "confdefs.h"
2219 #ifdef F77_DUMMY_MAIN
2223 int F77_DUMMY_MAIN() { return 1; }
2233 rm -f conftest.
$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try
='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 echo "$as_me: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2251 rm -f conftest.
$ac_objext conftest.
$ac_ext
2252 cat >conftest.
$ac_ext <<_ACEOF
2253 #line $LINENO "configure"
2254 #include "confdefs.h"
2256 #ifdef F77_DUMMY_MAIN
2260 int F77_DUMMY_MAIN() { return 1; }
2270 rm -f conftest.
$ac_objext
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try
='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 rm -f conftest.
$ac_objext conftest.
$ac_ext
2290 if test -n "$ac_declaration"; then
2291 echo '#ifdef __cplusplus' >>confdefs.h
2292 echo $ac_declaration >>confdefs.h
2293 echo '#endif' >>confdefs.h
2297 ac_cpp
='$CXXCPP $CPPFLAGS'
2298 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2301 rm -f .deps
2>/dev
/null
2302 mkdir .deps
2>/dev
/null
2303 if test -d .deps
; then
2306 # MS-DOS does not allow filenames that begin with a dot.
2309 rmdir .deps
2>/dev
/null
2312 ac_config_commands
="$ac_config_commands depfiles"
2315 am_make
=${MAKE-make}
2316 cat > confinc
<< 'END'
2320 # If we don't find an include directive, just comment out the code.
2321 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2322 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2326 # First try GNU make style include.
2327 echo "include confinc" > confmf
2328 # We grep out `Entering directory' and `Leaving directory'
2329 # messages which can occur if `w' ends up in MAKEFLAGS.
2330 # In particular we don't look at `^make:' because GNU make might
2331 # be invoked under some other name (usually "gmake"), in which
2332 # case it prints its new name instead of `make'.
2333 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2338 # Now try BSD make style include.
2339 if test "$am__include" = "#"; then
2340 echo '.include "confinc"' > confmf
2341 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2342 am__include
=.include
2349 echo "$as_me:$LINENO: result: $_am_result" >&5
2350 echo "${ECHO_T}$_am_result" >&6
2351 rm -f confinc confmf
2353 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2354 if test "${enable_dependency_tracking+set}" = set; then
2355 enableval
="$enable_dependency_tracking"
2358 if test "x$enable_dependency_tracking" != xno
; then
2359 am_depcomp
="$ac_aux_dir/depcomp"
2364 if test "x$enable_dependency_tracking" != xno; then
2375 depcc
="$CXX" am_compiler_list
=
2377 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2379 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2383 # We make a subdir and do the tests there. Otherwise we can end up
2384 # making bogus files that we don't know about and never remove. For
2385 # instance it was reported that on HP-UX the gcc test will end up
2386 # making a dummy file named `D' -- because `-MD' means `put the output
2389 # Copy depcomp to subdir because otherwise we won't find it if we're
2390 # using a relative directory.
2391 cp "$am_depcomp" conftest.dir
2394 am_cv_CXX_dependencies_compiler_type
=none
2395 if test "$am_compiler_list" = ""; then
2396 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2398 for depmode
in $am_compiler_list; do
2399 # We need to recreate these files for each test, as the compiler may
2400 # overwrite some of them when testing with obscure command lines.
2401 # This happens at least with the AIX C compiler.
2402 echo '#include "conftest.h"' > conftest.c
2403 echo 'int i;' > conftest.h
2404 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2408 # after this tag, mechanisms are not by side-effect, so they'll
2409 # only be used when explicitly requested
2410 if test "x$enable_dependency_tracking" = xyes
; then
2418 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2419 # mode. It turns out that the SunPro C++ compiler does not properly
2420 # handle `-M -o', and we need to detect this.
2421 if depmode
=$depmode \
2422 source=conftest.c object
=conftest.o \
2423 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2424 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2425 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2426 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2427 am_cv_CXX_dependencies_compiler_type
=$depmode
2435 am_cv_CXX_dependencies_compiler_type
=none
2439 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2440 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2441 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2445 ac_cpp
='$CPP $CPPFLAGS'
2446 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2451 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC
="$CC" # Let the user override the test.
2460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir
=.
2465 for ac_exec_ext
in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 if test -n "$CC"; then
2478 echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2486 if test -z "$ac_cv_prog_CC"; then
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489 set dummy gcc
; ac_word
=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir
=.
2503 for ac_exec_ext
in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_ac_ct_CC
="gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2515 if test -n "$ac_ct_CC"; then
2516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2517 echo "${ECHO_T}$ac_ct_CC" >&6
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC
="$CC" # Let the user override the test.
2540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir
=.
2545 for ac_exec_ext
in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6
2561 echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2566 if test -z "$ac_cv_prog_CC"; then
2568 # Extract the first word of "cc", so it can be a program name with args.
2569 set dummy cc
; ac_word
=$2
2570 echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir
=.
2583 for ac_exec_ext
in '' $ac_executable_extensions; do
2584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_ac_ct_CC
="cc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2595 if test -n "$ac_ct_CC"; then
2596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2597 echo "${ECHO_T}$ac_ct_CC" >&6
2599 echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2609 if test -z "$CC"; then
2610 # Extract the first word of "cc", so it can be a program name with args.
2611 set dummy cc
; ac_word
=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC
="$CC" # Let the user override the test.
2621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir
=.
2626 for ac_exec_ext
in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629 ac_prog_rejected
=yes
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 if test $ac_prog_rejected = yes; then
2640 # We found a bogon in the path, so make sure we never use it.
2641 set dummy
$ac_cv_prog_CC
2643 if test $# != 0; then
2644 # We chose a different compiler from the bogus one.
2645 # However, it has the same basename, so the bogon will be chosen
2646 # first if we set CC to just the basename; use the full file name.
2648 set dummy
"$as_dir/$ac_word" ${1+"$@"}
2656 if test -n "$CC"; then
2657 echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2665 if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC
="$CC" # Let the user override the test.
2679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir
=.
2684 for ac_exec_ext
in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$CC"; then
2697 echo "$as_me:$LINENO: result: $CC" >&5
2698 echo "${ECHO_T}$CC" >&6
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2704 test -n "$CC" && break
2707 if test -z "$CC"; then
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712 set dummy
$ac_prog; ac_word
=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir
=.
2726 for ac_exec_ext
in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_CC
="$ac_prog"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2738 if test -n "$ac_ct_CC"; then
2739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2740 echo "${ECHO_T}$ac_ct_CC" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2746 test -n "$ac_ct_CC" && break
2755 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2756 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2757 { (exit 1); exit 1; }; }
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761 "checking for C compiler version" >&5
2762 ac_compiler
=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.
$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 #include "confdefs.h"
2788 #ifdef F77_DUMMY_MAIN
2792 int F77_DUMMY_MAIN() { return 1; }
2805 rm -f conftest.
$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try
='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2819 echo "$as_me: failed program was:" >&5
2820 cat conftest.
$ac_ext >&5
2823 rm -f conftest.
$ac_objext conftest.
$ac_ext
2824 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2827 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2828 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2829 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2830 ac_test_CFLAGS
=${CFLAGS+set}
2831 ac_save_CFLAGS
=$CFLAGS
2833 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2834 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2835 if test "${ac_cv_prog_cc_g+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.
$ac_ext <<_ACEOF
2839 #line $LINENO "configure"
2840 #include "confdefs.h"
2842 #ifdef F77_DUMMY_MAIN
2846 int F77_DUMMY_MAIN() { return 1; }
2856 rm -f conftest.
$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try
='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.
$ac_ext >&5
2874 rm -f conftest.
$ac_objext conftest.
$ac_ext
2876 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2877 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2878 if test "$ac_test_CFLAGS" = set; then
2879 CFLAGS
=$ac_save_CFLAGS
2880 elif test $ac_cv_prog_cc_g = yes; then
2881 if test "$GCC" = yes; then
2887 if test "$GCC" = yes; then
2893 # Some people use a C++ compiler to compile C. Since we use `exit',
2894 # in C++ we need to declare it. In case someone uses the same compiler
2895 # for both compiling C and C++ we need to have the C++ compiler decide
2896 # the declaration of exit, since it's the most demanding environment.
2897 cat >conftest.
$ac_ext <<_ACEOF
2902 rm -f conftest.
$ac_objext
2903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try
='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 for ac_declaration
in \
2916 '#include <stdlib.h>' \
2917 'extern "C" void std::exit (int) throw (); using std::exit;' \
2918 'extern "C" void std::exit (int); using std::exit;' \
2919 'extern "C" void exit (int) throw ();' \
2920 'extern "C" void exit (int);' \
2923 cat >conftest.
$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 #include "confdefs.h"
2928 #ifdef F77_DUMMY_MAIN
2932 int F77_DUMMY_MAIN() { return 1; }
2942 rm -f conftest.
$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try
='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2960 rm -f conftest.
$ac_objext conftest.
$ac_ext
2961 cat >conftest.
$ac_ext <<_ACEOF
2962 #line $LINENO "configure"
2963 #include "confdefs.h"
2965 #ifdef F77_DUMMY_MAIN
2969 int F77_DUMMY_MAIN() { return 1; }
2979 rm -f conftest.
$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try
='test -s conftest.$ac_objext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2993 echo "$as_me: failed program was:" >&5
2994 cat conftest.
$ac_ext >&5
2996 rm -f conftest.
$ac_objext conftest.
$ac_ext
2999 if test -n "$ac_declaration"; then
3000 echo '#ifdef __cplusplus' >>confdefs.h
3001 echo $ac_declaration >>confdefs.h
3002 echo '#endif' >>confdefs.h
3006 echo "$as_me: failed program was:" >&5
3007 cat conftest.
$ac_ext >&5
3009 rm -f conftest.
$ac_objext conftest.
$ac_ext
3011 ac_cpp
='$CXXCPP $CPPFLAGS'
3012 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3016 depcc
="$CC" am_compiler_list
=
3018 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3019 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3020 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3024 # We make a subdir and do the tests there. Otherwise we can end up
3025 # making bogus files that we don't know about and never remove. For
3026 # instance it was reported that on HP-UX the gcc test will end up
3027 # making a dummy file named `D' -- because `-MD' means `put the output
3030 # Copy depcomp to subdir because otherwise we won't find it if we're
3031 # using a relative directory.
3032 cp "$am_depcomp" conftest.dir
3035 am_cv_CC_dependencies_compiler_type
=none
3036 if test "$am_compiler_list" = ""; then
3037 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3039 for depmode
in $am_compiler_list; do
3040 # We need to recreate these files for each test, as the compiler may
3041 # overwrite some of them when testing with obscure command lines.
3042 # This happens at least with the AIX C compiler.
3043 echo '#include "conftest.h"' > conftest.c
3044 echo 'int i;' > conftest.h
3045 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3049 # after this tag, mechanisms are not by side-effect, so they'll
3050 # only be used when explicitly requested
3051 if test "x$enable_dependency_tracking" = xyes
; then
3059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3060 # mode. It turns out that the SunPro C++ compiler does not properly
3061 # handle `-M -o', and we need to detect this.
3062 if depmode
=$depmode \
3063 source=conftest.c object
=conftest.o \
3064 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
3065 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
3066 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
3067 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3068 am_cv_CC_dependencies_compiler_type
=$depmode
3076 am_cv_CC_dependencies_compiler_type
=none
3080 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3081 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3082 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3085 if test "x$CC" != xcc
; then
3086 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3087 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3089 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3090 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3092 set dummy
$CC; ac_cc
=`echo $2 |
3093 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3094 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 cat >conftest.
$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 #include "confdefs.h"
3101 #ifdef F77_DUMMY_MAIN
3105 int F77_DUMMY_MAIN() { return 1; }
3115 # Make sure it works both with $CC and with simple cc.
3116 # We do the test twice because some compilers refuse to overwrite an
3117 # existing .o file with -o, though they will create one.
3118 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3119 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); };
3130 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3131 if test "x$CC" != xcc
; then
3132 # Test first that cc exists at all.
3133 if { ac_try
='cc -c conftest.$ac_ext >&5'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3140 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); };
3154 # cc exists but doesn't like -o.
3155 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3160 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3165 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167 echo "${ECHO_T}yes" >&6
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3172 cat >>confdefs.h
<<\_ACEOF
3173 #define NO_MINUS_C_MINUS_O 1
3178 # FIXME: we rely on the cache variable name because
3179 # there is no other way.
3181 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3182 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3183 # Losing compiler, so override with the script.
3184 # FIXME: It is wrong to rewrite CC.
3185 # But if we don't then we get into trouble of one sort or another.
3186 # A longer-term fix would be to have automake use am__CC in this case,
3187 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3188 CC
="$am_aux_dir/compile $CC"
3192 for ac_prog
in flex
lex
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy
$ac_prog; ac_word
=$2
3196 echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198 if test "${ac_cv_prog_LEX+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 if test -n "$LEX"; then
3202 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir
=.
3209 for ac_exec_ext
in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_LEX
="$ac_prog"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$LEX"; then
3222 echo "$as_me:$LINENO: result: $LEX" >&5
3223 echo "${ECHO_T}$LEX" >&6
3225 echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3229 test -n "$LEX" && break
3231 test -n "$LEX" || LEX
=":"
3233 if test -z "$LEXLIB"
3235 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3236 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3237 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 ac_check_lib_save_LIBS
=$LIBS
3242 cat >conftest.
$ac_ext <<_ACEOF
3243 #line $LINENO "configure"
3244 #include "confdefs.h"
3246 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3253 #ifdef F77_DUMMY_MAIN
3257 int F77_DUMMY_MAIN() { return 1; }
3267 rm -f conftest.
$ac_objext conftest
$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -s conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_lib_fl_yywrap
=yes
3281 echo "$as_me: failed program was:" >&5
3282 cat conftest.
$ac_ext >&5
3283 ac_cv_lib_fl_yywrap
=no
3285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3286 LIBS
=$ac_check_lib_save_LIBS
3288 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3289 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3290 if test $ac_cv_lib_fl_yywrap = yes; then
3293 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3294 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3295 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 ac_check_lib_save_LIBS
=$LIBS
3300 cat >conftest.
$ac_ext <<_ACEOF
3301 #line $LINENO "configure"
3302 #include "confdefs.h"
3304 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3311 #ifdef F77_DUMMY_MAIN
3315 int F77_DUMMY_MAIN() { return 1; }
3325 rm -f conftest.
$ac_objext conftest
$ac_exeext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3327 (eval $ac_link) 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try
='test -s conftest$ac_exeext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_lib_l_yywrap
=yes
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.
$ac_ext >&5
3341 ac_cv_lib_l_yywrap
=no
3343 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3344 LIBS
=$ac_check_lib_save_LIBS
3346 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3347 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3348 if test $ac_cv_lib_l_yywrap = yes; then
3356 if test "x$LEX" != "x:"; then
3357 echo "$as_me:$LINENO: checking lex output file root" >&5
3358 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3359 if test "${ac_cv_prog_lex_root+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 # The minimal lex program is just a single line: %%. But some broken lexes
3363 # (Solaris, I think it was) want two %% lines, so accommodate them.
3364 cat >conftest.l
<<_ACEOF
3368 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3369 (eval $LEX conftest.l
) 2>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3373 if test -f lex.yy.c
; then
3374 ac_cv_prog_lex_root
=lex.yy
3375 elif test -f lexyy.c
; then
3376 ac_cv_prog_lex_root
=lexyy
3378 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3379 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3380 { (exit 1); exit 1; }; }
3383 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3384 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3386 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3388 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3389 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3390 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 # POSIX says lex can declare yytext either as a pointer or an array; the
3394 # default is implementation-dependent. Figure out which it is, since
3395 # not all implementations provide the %pointer and %array declarations.
3396 ac_cv_prog_lex_yytext_pointer
=no
3397 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3399 LIBS
="$LIBS $LEXLIB"
3400 cat >conftest.
$ac_ext <<_ACEOF
3401 `cat $LEX_OUTPUT_ROOT.c`
3403 rm -f conftest.
$ac_objext conftest
$ac_exeext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3405 (eval $ac_link) 2>&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try
='test -s conftest$ac_exeext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_prog_lex_yytext_pointer
=yes
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3422 rm -f "${LEX_OUTPUT_ROOT}.c"
3425 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3426 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3427 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3429 cat >>confdefs.h
<<\_ACEOF
3430 #define YYTEXT_POINTER 1
3436 if test "$LEX" = :; then
3437 LEX
=${am_missing_run}flex
3439 for ac_prog
in 'bison -y' byacc
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy
$ac_prog; ac_word
=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_prog_YACC+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 if test -n "$YACC"; then
3449 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir
=.
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_YACC
="$ac_prog"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 YACC
=$ac_cv_prog_YACC
3468 if test -n "$YACC"; then
3469 echo "$as_me:$LINENO: result: $YACC" >&5
3470 echo "${ECHO_T}$YACC" >&6
3472 echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3476 test -n "$YACC" && break
3478 test -n "$YACC" || YACC
="yacc"
3480 # Make sure we can run config.sub.
3481 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3482 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3483 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3484 { (exit 1); exit 1; }; }
3486 echo "$as_me:$LINENO: checking build system type" >&5
3487 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3488 if test "${ac_cv_build+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 ac_cv_build_alias
=$build_alias
3492 test -z "$ac_cv_build_alias" &&
3493 ac_cv_build_alias
=`$ac_config_guess`
3494 test -z "$ac_cv_build_alias" &&
3495 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3496 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3497 { (exit 1); exit 1; }; }
3498 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3500 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3501 { (exit 1); exit 1; }; }
3504 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3505 echo "${ECHO_T}$ac_cv_build" >&6
3507 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3508 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3509 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3512 echo "$as_me:$LINENO: checking host system type" >&5
3513 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3514 if test "${ac_cv_host+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_host_alias
=$host_alias
3518 test -z "$ac_cv_host_alias" &&
3519 ac_cv_host_alias
=$ac_cv_build_alias
3520 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3522 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3523 { (exit 1); exit 1; }; }
3526 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3527 echo "${ECHO_T}$ac_cv_host" >&6
3529 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3530 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3531 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3534 # Check whether --enable-shared or --disable-shared was given.
3535 if test "${enable_shared+set}" = set; then
3536 enableval
="$enable_shared"
3537 p
=${PACKAGE-default}
3539 yes) enable_shared
=yes ;;
3540 no
) enable_shared
=no
;;
3543 # Look at the argument we got. We use all the common list separators.
3544 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3545 for pkg
in $enableval; do
3547 if test "X$pkg" = "X$p"; then
3558 # Check whether --enable-static or --disable-static was given.
3559 if test "${enable_static+set}" = set; then
3560 enableval
="$enable_static"
3561 p
=${PACKAGE-default}
3563 yes) enable_static
=yes ;;
3564 no
) enable_static
=no
;;
3567 # Look at the argument we got. We use all the common list separators.
3568 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3569 for pkg
in $enableval; do
3571 if test "X$pkg" = "X$p"; then
3582 # Check whether --enable-fast-install or --disable-fast-install was given.
3583 if test "${enable_fast_install+set}" = set; then
3584 enableval
="$enable_fast_install"
3585 p
=${PACKAGE-default}
3587 yes) enable_fast_install
=yes ;;
3588 no
) enable_fast_install
=no
;;
3590 enable_fast_install
=no
3591 # Look at the argument we got. We use all the common list separators.
3592 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3593 for pkg
in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3596 enable_fast_install
=yes
3603 enable_fast_install
=yes
3607 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3608 if test "${with_gnu_ld+set}" = set; then
3609 withval
="$with_gnu_ld"
3610 test "$withval" = no || with_gnu_ld
=yes
3615 if test "$GCC" = yes; then
3616 # Check if gcc -print-prog-name=ld gives a path.
3617 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3618 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3621 # gcc leaves a trailing carriage return which upsets mingw
3622 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3624 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3627 # Accept absolute paths.
3629 re_direlt
='/[^/][^/]*/\.\./'
3630 # Canonicalize the path of ld
3631 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
3632 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3633 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3635 test -z "$LD" && LD
="$ac_prog"
3638 # If it fails, then pretend we aren't using GCC.
3642 # If it is relative, then search for the first ld in PATH.
3646 elif test "$with_gnu_ld" = yes; then
3647 echo "$as_me:$LINENO: checking for GNU ld" >&5
3648 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3650 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3651 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3653 if test "${lt_cv_path_LD+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -z "$LD"; then
3657 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3658 for ac_dir
in $PATH; do
3660 test -z "$ac_dir" && ac_dir
=.
3661 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3662 lt_cv_path_LD
="$ac_dir/$ac_prog"
3663 # Check to see if the program is GNU ld. I'd rather use --version,
3664 # but apparently some GNU ld's only accept -v.
3665 # Break only if it was the GNU/non-GNU ld that we prefer.
3666 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
3667 test "$with_gnu_ld" != no
&& break
3669 test "$with_gnu_ld" != yes && break
3675 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3680 if test -n "$LD"; then
3681 echo "$as_me:$LINENO: result: $LD" >&5
3682 echo "${ECHO_T}$LD" >&6
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3687 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3688 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3689 { (exit 1); exit 1; }; }
3690 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3691 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3692 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3696 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
3697 lt_cv_prog_gnu_ld
=yes
3699 lt_cv_prog_gnu_ld
=no
3702 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3703 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3704 with_gnu_ld
=$lt_cv_prog_gnu_ld
3707 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3708 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3709 if test "${lt_cv_ld_reload_flag+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 lt_cv_ld_reload_flag
='-r'
3714 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3715 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3716 reload_flag
=$lt_cv_ld_reload_flag
3717 case $reload_flag in
3719 *) reload_flag
=" $reload_flag" ;;
3721 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3723 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3724 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3725 if test "${lt_cv_path_NM+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test -n "$NM"; then
3729 # Let the user override the test.
3732 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3733 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3735 test -z "$ac_dir" && ac_dir
=.
3736 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3737 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3738 # Check to see if the nm accepts a BSD-compat flag.
3739 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3740 # nm: unknown option "B" ignored
3741 # Tru64's nm complains that /dev/null is an invalid object file
3742 if ("$tmp_nm" -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
3743 lt_cv_path_NM
="$tmp_nm -B"
3745 elif ("$tmp_nm" -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
3746 lt_cv_path_NM
="$tmp_nm -p"
3749 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3750 continue # so that we can try to find one that supports BSD flags
3755 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3758 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3759 echo "${ECHO_T}$lt_cv_path_NM" >&6
3762 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3764 if test "${lt_cv_path_SED+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 # Loop through the user's path and test for sed and gsed.
3768 # Then use that list of sed's as ones to test for truncation.
3769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir
=.
3774 for ac_prog
in sed gsed
; do
3775 for ac_exec_ext
in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3777 _sed_list
="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3783 # Create a temporary directory, and hook for its removal unless debugging.
3786 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3787 trap '{ (exit 1); exit 1; }' 1 2 13 15
3790 # Create a (secure) tmp directory for tmp files.
3793 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3794 test -n "$tmp" && test -d "$tmp"
3797 tmp
=$TMPDIR/sed$$
-$RANDOM
3798 (umask 077 && mkdir
$tmp)
3801 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3802 { (exit 1); exit 1; }
3806 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3807 # along with /bin/sed that truncates output.
3808 for _sed
in $_sed_list /usr
/xpg
4/bin
/sed; do
3809 test ! -f ${_sed} && break
3810 cat /dev
/null
> "$tmp/sed.in"
3812 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
3813 # Check for GNU sed and select it if it is found.
3814 if "${_sed}" --version 2>&1 < /dev
/null |
egrep '(GNU)' > /dev
/null
; then
3815 lt_cv_path_SED
=${_sed}
3819 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3820 mv "$tmp/sed.tmp" "$tmp/sed.in"
3821 cp "$tmp/sed.in" "$tmp/sed.nl"
3822 echo >>"$tmp/sed.nl"
3823 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" ||
break
3824 cmp -s "$tmp/sed.out" "$tmp/sed.nl" ||
break
3825 # 10000 chars as input seems more than enough
3826 test $_count -gt 10 && break
3827 _count
=`expr $_count + 1`
3828 if test $_count -gt $_max; then
3830 lt_cv_path_SED
=$_sed
3838 echo "$as_me:$LINENO: result: $SED" >&5
3839 echo "${ECHO_T}$SED" >&6
3841 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3844 if test "$LN_S" = "ln -s"; then
3845 echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6
3848 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3849 echo "${ECHO_T}no, using $LN_S" >&6
3852 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3853 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3854 if test "${lt_cv_deplibs_check_method+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3858 lt_cv_file_magic_test_file
=
3859 lt_cv_deplibs_check_method
='unknown'
3860 # Need to set the preceding variable on all platforms that support
3861 # interlibrary dependencies.
3862 # 'none' -- dependencies not supported.
3863 # `unknown' -- same as none, but documents that we really don't know.
3864 # 'pass_all' -- all dependencies passed with no checks.
3865 # 'test_compile' -- check by making test program.
3866 # 'file_magic [[regex]]' -- check by looking for files in library path
3867 # which responds to the $file_magic_cmd with a given egrep regex.
3868 # If you have `file' or equivalent on your system and you're not sure
3869 # whether `pass_all' will *always* work, you probably want this one.
3873 lt_cv_deplibs_check_method
=pass_all
3877 lt_cv_deplibs_check_method
=pass_all
3881 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3882 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3883 lt_cv_file_magic_test_file
=/shlib
/libc.so
3886 cygwin
* | mingw
* | pw32
*)
3887 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3888 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3891 darwin
* | rhapsody
*)
3892 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3893 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3895 rhapsody
* | darwin1.
[012])
3896 lt_cv_file_magic_test_file
=`/System/Library/Frameworks/System.framework/System`
3899 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3905 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3908 # Not sure whether the presence of OpenBSD here was a mistake.
3909 # Let's accept both of them until this is cleared up.
3910 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3911 lt_cv_file_magic_cmd
=/usr
/bin
/file
3912 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3916 lt_cv_deplibs_check_method
=pass_all
3921 lt_cv_deplibs_check_method
=pass_all
3924 hpux10.20
* | hpux11
*)
3925 lt_cv_file_magic_cmd
=/usr
/bin
/file
3926 if test "$host_cpu" = ia64
; then
3927 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3928 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3930 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3931 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3935 irix5
* | irix6
* | nonstopux
*)
3937 irix5
* | nonstopux
*)
3938 # this will be overridden with pass_all, but let us keep it just in case
3939 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3943 *-32|
*"-32 ") libmagic
=32-bit;;
3944 *-n32|
*"-n32 ") libmagic
=N32
;;
3945 *-64|
*"-64 ") libmagic
=64-bit;;
3946 *) libmagic
=never-match
;;
3948 # this will be overridden with pass_all, but let us keep it just in case
3949 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3952 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
3953 lt_cv_deplibs_check_method
=pass_all
3956 # This must be Linux ELF.
3959 alpha
* | hppa
* | i
*86 | ia64
* | m68
* | mips | mipsel | powerpc
* | sparc
* | s390
* | sh
*)
3960 lt_cv_deplibs_check_method
=pass_all
;;
3962 # glibc up to 2.1.1 does not perform some relocations on ARM
3963 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3965 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
3969 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3970 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3972 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
3977 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3978 lt_cv_file_magic_cmd
=/usr
/bin
/file
3979 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3983 lt_cv_deplibs_check_method
=unknown
3987 lt_cv_file_magic_cmd
=/usr
/bin
/file
3988 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3990 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3992 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
3996 osf3
* | osf4
* | osf5
*)
3997 # this will be overridden with pass_all, but let us keep it just in case
3998 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
3999 lt_cv_file_magic_test_file
=/shlib
/libc.so
4000 lt_cv_deplibs_check_method
=pass_all
4004 lt_cv_deplibs_check_method
=pass_all
4008 lt_cv_deplibs_check_method
=pass_all
4009 lt_cv_file_magic_test_file
=/lib
/libc.so
4012 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4013 case $host_vendor in
4015 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]'
4016 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4019 lt_cv_deplibs_check_method
=pass_all
4022 lt_cv_file_magic_cmd
='/bin/file'
4023 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4026 lt_cv_file_magic_cmd
='/bin/file'
4027 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4028 lt_cv_file_magic_test_file
=/lib
/libc.so
4033 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
4034 lt_cv_deplibs_check_method
=pass_all
4039 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4040 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4041 file_magic_cmd
=$lt_cv_file_magic_cmd
4042 deplibs_check_method
=$lt_cv_deplibs_check_method
4043 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4048 # If no C compiler was specified, use CC.
4051 # Allow CC to be a program name with arguments.
4056 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4057 if test "${enable_libtool_lock+set}" = set; then
4058 enableval
="$enable_libtool_lock"
4061 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4063 # Some flags need to be propagated to the compiler or linker for good
4067 # Find out which ABI we are using.
4068 echo 'int i;' > conftest.
$ac_ext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; then
4074 case `/usr/bin/file conftest.$ac_objext` in
4086 # Find out which ABI we are using.
4087 echo '#line 4087 "configure"' > conftest.
$ac_ext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; then
4093 case `/usr/bin/file conftest.$ac_objext` in
4109 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4110 SAVE_CFLAGS
="$CFLAGS"
4111 CFLAGS
="$CFLAGS -belf"
4112 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4113 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4114 if test "${lt_cv_cc_needs_belf+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_cpp
='$CPP $CPPFLAGS'
4119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4123 cat >conftest.
$ac_ext <<_ACEOF
4124 #line $LINENO "configure"
4125 #include "confdefs.h"
4127 #ifdef F77_DUMMY_MAIN
4131 int F77_DUMMY_MAIN() { return 1; }
4141 rm -f conftest.
$ac_objext conftest
$ac_exeext
4142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4143 (eval $ac_link) 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try
='test -s conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 lt_cv_cc_needs_belf
=yes
4155 echo "$as_me: failed program was:" >&5
4156 cat conftest.
$ac_ext >&5
4157 lt_cv_cc_needs_belf
=no
4159 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4161 ac_cpp
='$CPP $CPPFLAGS'
4162 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4167 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4168 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4169 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4170 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4171 CFLAGS
="$SAVE_CFLAGS"
4177 need_locks
="$enable_libtool_lock"
4181 ac_cpp
='$CPP $CPPFLAGS'
4182 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4191 if test -z "$CPP"; then
4192 if test "${ac_cv_prog_CPP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 # Double quotes because CPP needs to be expanded
4196 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4199 for ac_c_preproc_warn_flag
in '' yes
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # On the NeXT, cc -E runs the code through the compiler's parser,
4204 # not just through cpp. "Syntax error" is here to catch this case.
4205 cat >conftest.
$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4207 #include "confdefs.h"
4211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4214 egrep -v '^ *\+' conftest.er1
>conftest.err
4216 cat conftest.err
>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev
/null
; then
4219 if test -s conftest.err
; then
4220 ac_cpp_err
=$ac_c_preproc_warn_flag
4227 if test -z "$ac_cpp_err"; then
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.
$ac_ext >&5
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.
$ac_ext
4237 # OK, works on sane cases. Now check whether non-existent headers
4238 # can be detected and how.
4239 cat >conftest.
$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 #include "confdefs.h"
4242 #include <ac_nonexistent.h>
4244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4247 egrep -v '^ *\+' conftest.er1
>conftest.err
4249 cat conftest.err
>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev
/null
; then
4252 if test -s conftest.err
; then
4253 ac_cpp_err
=$ac_c_preproc_warn_flag
4260 if test -z "$ac_cpp_err"; then
4261 # Broken: success on invalid input.
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4266 # Passes both tests.
4270 rm -f conftest.err conftest.
$ac_ext
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.err conftest.
$ac_ext
4275 if $ac_preproc_ok; then
4287 echo "$as_me:$LINENO: result: $CPP" >&5
4288 echo "${ECHO_T}$CPP" >&6
4290 for ac_c_preproc_warn_flag
in '' yes
4292 # Use a header file that comes with gcc, so configuring glibc
4293 # with a fresh cross-compiler works.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
4296 cat >conftest.
$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4305 egrep -v '^ *\+' conftest.er1
>conftest.err
4307 cat conftest.err
>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev
/null
; then
4310 if test -s conftest.err
; then
4311 ac_cpp_err
=$ac_c_preproc_warn_flag
4318 if test -z "$ac_cpp_err"; then
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.
$ac_ext >&5
4323 # Broken: fails on valid input.
4326 rm -f conftest.err conftest.
$ac_ext
4328 # OK, works on sane cases. Now check whether non-existent headers
4329 # can be detected and how.
4330 cat >conftest.
$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4332 #include "confdefs.h"
4333 #include <ac_nonexistent.h>
4335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4338 egrep -v '^ *\+' conftest.er1
>conftest.err
4340 cat conftest.err
>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } >/dev
/null
; then
4343 if test -s conftest.err
; then
4344 ac_cpp_err
=$ac_c_preproc_warn_flag
4351 if test -z "$ac_cpp_err"; then
4352 # Broken: success on invalid input.
4355 echo "$as_me: failed program was:" >&5
4356 cat conftest.
$ac_ext >&5
4357 # Passes both tests.
4361 rm -f conftest.err conftest.
$ac_ext
4364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365 rm -f conftest.err conftest.
$ac_ext
4366 if $ac_preproc_ok; then
4369 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4370 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4371 { (exit 1); exit 1; }; }
4375 ac_cpp
='$CPP $CPPFLAGS'
4376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4381 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4383 if test "${ac_cv_header_stdc+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 cat >conftest.
$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 #include "confdefs.h"
4395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4396 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4398 egrep -v '^ *\+' conftest.er1
>conftest.err
4400 cat conftest.err
>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } >/dev
/null
; then
4403 if test -s conftest.err
; then
4404 ac_cpp_err
=$ac_c_preproc_warn_flag
4411 if test -z "$ac_cpp_err"; then
4412 ac_cv_header_stdc
=yes
4414 echo "$as_me: failed program was:" >&5
4415 cat conftest.
$ac_ext >&5
4416 ac_cv_header_stdc
=no
4418 rm -f conftest.err conftest.
$ac_ext
4420 if test $ac_cv_header_stdc = yes; then
4421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4422 cat >conftest.
$ac_ext <<_ACEOF
4423 #line $LINENO "configure"
4424 #include "confdefs.h"
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 egrep "memchr" >/dev
/null
2>&1; then
4432 ac_cv_header_stdc
=no
4438 if test $ac_cv_header_stdc = yes; then
4439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4440 cat >conftest.
$ac_ext <<_ACEOF
4441 #line $LINENO "configure"
4442 #include "confdefs.h"
4446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4447 egrep "free" >/dev
/null
2>&1; then
4450 ac_cv_header_stdc
=no
4456 if test $ac_cv_header_stdc = yes; then
4457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4458 if test "$cross_compiling" = yes; then
4461 cat >conftest.
$ac_ext <<_ACEOF
4462 #line $LINENO "configure"
4463 #include "confdefs.h"
4465 #if ((' ' & 0x0FF) == 0x020)
4466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4469 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4470 || ('j' <= (c) && (c) <= 'r') \
4471 || ('s' <= (c) && (c) <= 'z'))
4472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4480 for (i = 0; i < 256; i++)
4481 if (XOR (islower (i), ISLOWER (i))
4482 || toupper (i) != TOUPPER (i))
4487 rm -f conftest
$ac_exeext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4500 echo "$as_me: program exited with status $ac_status" >&5
4501 echo "$as_me: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 ac_cv_header_stdc
=no
4506 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4511 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4512 if test $ac_cv_header_stdc = yes; then
4514 cat >>confdefs.h
<<\_ACEOF
4515 #define STDC_HEADERS 1
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4530 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4531 inttypes.h stdint.h unistd.h
4533 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4534 echo "$as_me:$LINENO: checking for $ac_header" >&5
4535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 cat >conftest.
$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4541 #include "confdefs.h"
4542 $ac_includes_default
4544 #include <$ac_header>
4546 rm -f conftest.
$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_Header=yes"
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4562 eval "$as_ac_Header=no"
4564 rm -f conftest.
$ac_objext conftest.
$ac_ext
4566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h
<<_ACEOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 for ac_header
in dlfcn.h
4581 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4591 # Is the header compilable?
4592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4594 cat >conftest.
$ac_ext <<_ACEOF
4595 #line $LINENO "configure"
4596 #include "confdefs.h"
4597 $ac_includes_default
4598 #include <$ac_header>
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try
='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_header_compiler
=yes
4614 echo "$as_me: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4616 ac_header_compiler
=no
4618 rm -f conftest.
$ac_objext conftest.
$ac_ext
4619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4620 echo "${ECHO_T}$ac_header_compiler" >&6
4622 # Is the header present?
4623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4625 cat >conftest.
$ac_ext <<_ACEOF
4626 #line $LINENO "configure"
4627 #include "confdefs.h"
4628 #include <$ac_header>
4630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4633 egrep -v '^ *\+' conftest.er1
>conftest.err
4635 cat conftest.err
>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev
/null
; then
4638 if test -s conftest.err
; then
4639 ac_cpp_err
=$ac_c_preproc_warn_flag
4646 if test -z "$ac_cpp_err"; then
4647 ac_header_preproc
=yes
4649 echo "$as_me: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4651 ac_header_preproc
=no
4653 rm -f conftest.err conftest.
$ac_ext
4654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4655 echo "${ECHO_T}$ac_header_preproc" >&6
4657 # So? What about this header?
4658 case $ac_header_compiler:$ac_header_preproc in
4660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4672 echo "$as_me:$LINENO: checking for $ac_header" >&5
4673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 eval "$as_ac_Header=$ac_header_preproc"
4679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4684 cat >>confdefs.h
<<_ACEOF
4685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693 ac_cpp
='$CXXCPP $CPPFLAGS'
4694 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4697 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4698 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4699 if test -z "$CXXCPP"; then
4700 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 # Double quotes because CXXCPP needs to be expanded
4704 for CXXCPP
in "$CXX -E" "/lib/cpp"
4707 for ac_cxx_preproc_warn_flag
in '' yes
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.
$ac_ext <<_ACEOF
4714 #line $LINENO "configure"
4715 #include "confdefs.h"
4719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4722 egrep -v '^ *\+' conftest.er1
>conftest.err
4724 cat conftest.err
>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev
/null
; then
4727 if test -s conftest.err
; then
4728 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4735 if test -z "$ac_cpp_err"; then
4738 echo "$as_me: failed program was:" >&5
4739 cat conftest.
$ac_ext >&5
4740 # Broken: fails on valid input.
4743 rm -f conftest.err conftest.
$ac_ext
4745 # OK, works on sane cases. Now check whether non-existent headers
4746 # can be detected and how.
4747 cat >conftest.
$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4750 #include <ac_nonexistent.h>
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4755 egrep -v '^ *\+' conftest.er1
>conftest.err
4757 cat conftest.err
>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev
/null
; then
4760 if test -s conftest.err
; then
4761 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4768 if test -z "$ac_cpp_err"; then
4769 # Broken: success on invalid input.
4772 echo "$as_me: failed program was:" >&5
4773 cat conftest.
$ac_ext >&5
4774 # Passes both tests.
4778 rm -f conftest.err conftest.
$ac_ext
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.err conftest.
$ac_ext
4783 if $ac_preproc_ok; then
4788 ac_cv_prog_CXXCPP
=$CXXCPP
4791 CXXCPP
=$ac_cv_prog_CXXCPP
4793 ac_cv_prog_CXXCPP
=$CXXCPP
4795 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4796 echo "${ECHO_T}$CXXCPP" >&6
4798 for ac_cxx_preproc_warn_flag
in '' yes
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat >conftest.
$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 #include "confdefs.h"
4810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4813 egrep -v '^ *\+' conftest.er1
>conftest.err
4815 cat conftest.err
>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev
/null
; then
4818 if test -s conftest.err
; then
4819 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4826 if test -z "$ac_cpp_err"; then
4829 echo "$as_me: failed program was:" >&5
4830 cat conftest.
$ac_ext >&5
4831 # Broken: fails on valid input.
4834 rm -f conftest.err conftest.
$ac_ext
4836 # OK, works on sane cases. Now check whether non-existent headers
4837 # can be detected and how.
4838 cat >conftest.
$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4841 #include <ac_nonexistent.h>
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4846 egrep -v '^ *\+' conftest.er1
>conftest.err
4848 cat conftest.err
>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev
/null
; then
4851 if test -s conftest.err
; then
4852 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4859 if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4863 echo "$as_me: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4865 # Passes both tests.
4869 rm -f conftest.err conftest.
$ac_ext
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.
$ac_ext
4874 if $ac_preproc_ok; then
4877 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4878 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4879 { (exit 1); exit 1; }; }
4883 ac_cpp
='$CXXCPP $CPPFLAGS'
4884 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4889 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4891 # find the maximum length of command line arguments
4892 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4893 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4894 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 # On DJGPP, this test can blow up pretty badly due to problems in libc
4903 # (any single argument exceeding 2000 bytes causes a buffer overrun
4904 # during glob expansion). Even if it were fixed, the result of this
4905 # check would be larger than it should be.
4906 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4910 # Under GNU Hurd, this test is not required because there is
4911 # no limit to the length of command line arguments.
4912 # Libtool will interpret -1 as no limit whatsoever
4913 lt_cv_sys_max_cmd_len
=-1;
4917 # If test is not a shell built-in, we'll probably end up computing a
4918 # maximum length that is only half of the actual maximum length, but
4920 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4921 = "XX$testring") >/dev
/null
2>&1 &&
4922 new_result
=`expr "X$testring" : ".*" 2>&1` &&
4923 lt_cv_sys_max_cmd_len
=$new_result &&
4924 test $i != 17 # 1/2 MB should be enough
4927 testring
=$testring$testring
4930 # Add a significant safety factor because C++ compilers can tack on massive
4931 # amounts of additional arguments before passing them to the linker.
4932 # It appears as though 1/2 is a usable value.
4933 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4939 if test -n $lt_cv_sys_max_cmd_len ; then
4940 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4941 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4943 echo "$as_me:$LINENO: result: none" >&5
4944 echo "${ECHO_T}none" >&6
4950 # Check for command to grab the raw symbol name followed by C symbol from nm.
4951 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4952 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4953 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 # These are sane defaults that work on at least a few old systems.
4958 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4960 # Character class describing NM global symbol codes.
4961 symcode
='[BCDEGRST]'
4963 # Regexp to match symbols that can be accessed directly from C.
4964 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
4966 # Transform the above into a raw symbol and a C symbol.
4967 symxfrm
='\1 \2\3 \3'
4969 # Transform an extracted symbol line into a proper C declaration
4970 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4972 # Transform an extracted symbol line into symbol name and symbol address
4973 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'"
4975 # Define system-specific variables.
4980 cygwin
* | mingw
* | pw32
*)
4981 symcode
='[ABCDGISTW]'
4983 hpux
*) # Its linker distinguishes data from code symbols
4984 if test "$host_cpu" = ia64
; then
4985 symcode
='[ABCDEGRST]'
4987 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4988 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'"
4991 symcode
='[BCDEGRST]'
5001 # Handle CRLF in mingw tool chain
5005 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5009 # If we're using GNU nm, then use its standard symbol codes.
5010 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
5011 symcode
='[ABCDGISTW]'
5014 # Try without a prefix undercore, then with it.
5015 for ac_symprfx
in "" "_"; do
5017 # Write the raw and C identifiers.
5018 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5020 # Check to see that the pipe works correctly.
5024 cat > conftest.
$ac_ext <<EOF
5029 void nm_test_func(){}
5033 int main(){nm_test_var='a';nm_test_func();return(0);}
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 # Now try to grab the symbols.
5043 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5044 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && test -s "$nlist"; then
5048 # Try sorting and uniquifying the output.
5049 if sort "$nlist" |
uniq > "$nlist"T
; then
5050 mv -f "$nlist"T
"$nlist"
5055 # Make sure that we snagged all the symbols we need.
5056 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
5057 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
5058 cat <<EOF > conftest.$ac_ext
5064 # Now generate the symbol file.
5065 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5067 cat <<EOF >> conftest.$ac_ext
5068 #if defined (__STDC__) && __STDC__
5069 # define lt_ptr_t void *
5071 # define lt_ptr_t char *
5075 /* The mapping between symbol names and symbols. */
5080 lt_preloaded_symbols[] =
5083 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5084 cat <<\EOF
>> conftest.
$ac_ext
5092 # Now try linking the two files.
5093 mv conftest.
$ac_objext conftstm.
$ac_objext
5094 lt_save_LIBS
="$LIBS"
5095 lt_save_CFLAGS
="$CFLAGS"
5096 LIBS
="conftstm.$ac_objext"
5097 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5105 LIBS
="$lt_save_LIBS"
5106 CFLAGS
="$lt_save_CFLAGS"
5108 echo "cannot find nm_test_func in $nlist" >&5
5111 echo "cannot find nm_test_var in $nlist" >&5
5114 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5117 echo "$progname: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 rm -f conftest
* conftst
*
5122 # Do not use the global_symbol_pipe unless it works.
5123 if test "$pipe_works" = yes; then
5126 lt_cv_sys_global_symbol_pipe
=
5132 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5133 lt_cv_sys_global_symbol_to_cdecl
=
5135 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5136 echo "$as_me:$LINENO: result: failed" >&5
5137 echo "${ECHO_T}failed" >&6
5139 echo "$as_me:$LINENO: result: ok" >&5
5140 echo "${ECHO_T}ok" >&6
5143 echo "$as_me:$LINENO: checking for objdir" >&5
5144 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5145 if test "${lt_cv_objdir+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 rm -f .libs
2>/dev
/null
5149 mkdir .libs
2>/dev
/null
5150 if test -d .libs
; then
5153 # MS-DOS does not allow filenames that begin with a dot.
5156 rmdir .libs
2>/dev
/null
5158 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5159 echo "${ECHO_T}$lt_cv_objdir" >&6
5160 objdir
=$lt_cv_objdir
5168 # AIX sometimes has problems with the GCC collect2 program. For some
5169 # reason, if we set the COLLECT_NAMES environment variable, the problems
5170 # vanish in a puff of smoke.
5171 if test "X${COLLECT_NAMES+set}" != Xset
; then
5173 export COLLECT_NAMES
5178 # Sed substitution that helps us do robust quoting. It backslashifies
5179 # metacharacters that are still active within double-quoted strings.
5180 Xsed
='sed -e s/^X//'
5181 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5183 # Same as above, but do not quote variable references.
5184 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5186 # Sed substitution to delay expansion of an escaped shell variable in a
5187 # double_quote_subst'ed string.
5188 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5190 # Sed substitution to avoid accidental globbing in evaled expressions
5191 no_glob_subst
='s/\*/\\\*/g'
5197 default_ofile
=libtool
5198 can_build_shared
=yes
5200 # All known linkers require a `.a' archive for static linking (except M$VC,
5201 # which needs '.lib').
5203 ltmain
="$ac_aux_dir/ltmain.sh"
5204 ofile
="$default_ofile"
5205 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5209 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_RANLIB+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 if test -n "$RANLIB"; then
5216 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir
=.
5223 for ac_exec_ext
in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 RANLIB
=$ac_cv_prog_RANLIB
5235 if test -n "$RANLIB"; then
5236 echo "$as_me:$LINENO: result: $RANLIB" >&5
5237 echo "${ECHO_T}$RANLIB" >&6
5239 echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5244 if test -z "$ac_cv_prog_RANLIB"; then
5245 ac_ct_RANLIB
=$RANLIB
5246 # Extract the first word of "ranlib", so it can be a program name with args.
5247 set dummy ranlib
; ac_word
=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 if test -n "$ac_ct_RANLIB"; then
5254 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5273 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5274 if test -n "$ac_ct_RANLIB"; then
5275 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5276 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5282 RANLIB
=$ac_ct_RANLIB
5284 RANLIB
="$ac_cv_prog_RANLIB"
5287 if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5289 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_prog_STRIP+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 if test -n "$STRIP"; then
5296 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir
=.
5303 for ac_exec_ext
in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 STRIP
=$ac_cv_prog_STRIP
5315 if test -n "$STRIP"; then
5316 echo "$as_me:$LINENO: result: $STRIP" >&5
5317 echo "${ECHO_T}$STRIP" >&6
5319 echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5324 if test -z "$ac_cv_prog_STRIP"; then
5326 # Extract the first word of "strip", so it can be a program name with args.
5327 set dummy strip
; ac_word
=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 if test -n "$ac_ct_STRIP"; then
5334 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir
=.
5341 for ac_exec_ext
in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_ac_ct_STRIP
="strip"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5353 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5354 if test -n "$ac_ct_STRIP"; then
5355 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5356 echo "${ECHO_T}$ac_ct_STRIP" >&6
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5364 STRIP
="$ac_cv_prog_STRIP"
5369 old_CFLAGS
="$CFLAGS"
5371 # Set sane defaults for various variables
5372 test -z "$AR" && AR
=ar
5373 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5374 test -z "$AS" && AS
=as
5375 test -z "$CC" && CC
=cc
5376 test -z "$LTCC" && LTCC
=$CC
5377 test -z "$DLLTOOL" && DLLTOOL
=dlltool
5378 test -z "$LD" && LD
=ld
5379 test -z "$LN_S" && LN_S
="ln -s"
5380 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
5381 test -z "$NM" && NM
=nm
5382 test -z "$SED" && SED
=sed
5383 test -z "$OBJDUMP" && OBJDUMP
=objdump
5384 test -z "$RANLIB" && RANLIB
=:
5385 test -z "$STRIP" && STRIP
=:
5386 test -z "$ac_objext" && ac_objext
=o
5388 # Determine commands to create old-style static archives.
5389 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5390 old_postinstall_cmds
='chmod 644 $oldlib'
5391 old_postuninstall_cmds
=
5393 if test -n "$RANLIB"; then
5396 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5399 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
5402 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
5405 # Only perform the check for file, if the check method requires it
5406 case $deplibs_check_method in
5408 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5409 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5410 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5419 lt_save_MAGIC_CMD
="$MAGIC_CMD"
5420 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5421 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
5422 for ac_dir
in $ac_dummy; do
5424 test -z "$ac_dir" && ac_dir
=.
5425 if test -f $ac_dir/${ac_tool_prefix}file; then
5426 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
5427 if test -n "$file_magic_test_file"; then
5428 case $deplibs_check_method in
5430 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5431 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5432 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5433 egrep "$file_magic_regex" > /dev
/null
; then
5438 *** Warning: the command libtool uses to detect shared libraries,
5439 *** $file_magic_cmd, produces output that libtool cannot recognize.
5440 *** The result is that libtool may fail to recognize shared libraries
5441 *** as such. This will affect the creation of libtool libraries that
5442 *** depend on shared libraries, but programs linked with such libtool
5443 *** libraries will work regardless of this problem. Nevertheless, you
5444 *** may want to report the problem to your system manager and/or to
5445 *** bug-libtool@gnu.org
5455 MAGIC_CMD
="$lt_save_MAGIC_CMD"
5460 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5461 if test -n "$MAGIC_CMD"; then
5462 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5463 echo "${ECHO_T}$MAGIC_CMD" >&6
5465 echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6
5469 if test -z "$lt_cv_path_MAGIC_CMD"; then
5470 if test -n "$ac_tool_prefix"; then
5471 echo "$as_me:$LINENO: checking for file" >&5
5472 echo $ECHO_N "checking for file... $ECHO_C" >&6
5473 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5481 lt_save_MAGIC_CMD
="$MAGIC_CMD"
5482 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5483 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
5484 for ac_dir
in $ac_dummy; do
5486 test -z "$ac_dir" && ac_dir
=.
5487 if test -f $ac_dir/file; then
5488 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
5489 if test -n "$file_magic_test_file"; then
5490 case $deplibs_check_method in
5492 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5493 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5494 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5495 egrep "$file_magic_regex" > /dev
/null
; then
5500 *** Warning: the command libtool uses to detect shared libraries,
5501 *** $file_magic_cmd, produces output that libtool cannot recognize.
5502 *** The result is that libtool may fail to recognize shared libraries
5503 *** as such. This will affect the creation of libtool libraries that
5504 *** depend on shared libraries, but programs linked with such libtool
5505 *** libraries will work regardless of this problem. Nevertheless, you
5506 *** may want to report the problem to your system manager and/or to
5507 *** bug-libtool@gnu.org
5517 MAGIC_CMD
="$lt_save_MAGIC_CMD"
5522 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5523 if test -n "$MAGIC_CMD"; then
5524 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5525 echo "${ECHO_T}$MAGIC_CMD" >&6
5527 echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5543 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5544 if test "${enable_libtool_lock+set}" = set; then
5545 enableval
="$enable_libtool_lock"
5548 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
5551 # Check whether --with-pic or --without-pic was given.
5552 if test "${with_pic+set}" = set; then
5558 test -z "$pic_mode" && pic_mode
=default
5560 # Use C for the default configuration in the libtool script
5564 ac_cpp
='$CPP $CPPFLAGS'
5565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5570 # Source file extension for C test sources.
5573 # Object file extension for compiled C test sources.
5577 # Code to be used in simple compile tests
5578 lt_simple_compile_test_code
="int some_variable = 0;"
5580 # Code to be used in simple link tests
5581 lt_simple_link_test_code
='main(){return(0);}'
5584 # If no C compiler was specified, use CC.
5587 # Allow CC to be a program name with arguments.
5593 # Check for any special shared library compilation flags.
5596 if test "$GCC" = no
; then
5599 lt_prog_cc_shlib
='-belf'
5603 if test -n "$lt_prog_cc_shlib"; then
5604 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5605 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5606 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
5608 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5609 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5610 lt_cv_prog_cc_can_build_shared
=no
5616 # Check to make sure the static flag actually works.
5618 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5619 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5620 if test "${lt_prog_compiler_static_works+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 lt_prog_compiler_static_works
=no
5624 save_LDFLAGS
="$LDFLAGS"
5625 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
5626 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
5627 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
5628 # The compiler can only warn and ignore the option if not recognized
5629 # So say no if there are warnings
5630 if test -s conftest.err
; then
5631 # Append any errors to the config.log.
5632 cat conftest.err
1>&5
5634 lt_prog_compiler_static_works
=yes
5638 LDFLAGS
="$save_LDFLAGS"
5641 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5642 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5644 if test x
"$lt_prog_compiler_static_works" = xyes
; then
5647 lt_prog_compiler_static
=
5653 lt_prog_compiler_no_builtin_flag
=
5655 if test "$GCC" = yes; then
5656 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
5658 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 lt_cv_prog_compiler_rtti_exceptions
=no
5664 ac_outfile
=conftest.
$ac_objext
5665 save_CFLAGS
="$CFLAGS"
5666 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5667 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
5668 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
5669 # The compiler can only warn and ignore the option if not recognized
5670 # So say no if there are warnings
5671 if test -s conftest.err
; then
5672 # Append any errors to the config.log.
5673 cat conftest.err
1>&5
5675 lt_cv_prog_compiler_rtti_exceptions
=yes
5679 CFLAGS
="$save_CFLAGS"
5682 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5683 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5685 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
5686 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5693 lt_prog_compiler_wl
=
5694 lt_prog_compiler_pic
=
5695 lt_prog_compiler_static
=
5697 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5698 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5700 if test "$GCC" = yes; then
5701 lt_prog_compiler_wl
='-Wl,'
5702 lt_prog_compiler_static
='-static'
5706 # All AIX code is PIC.
5707 if test "$host_cpu" = ia64
; then
5708 # AIX 5 now supports IA64 processor
5709 lt_prog_compiler_static
='-Bstatic'
5714 # FIXME: we need at least 68020 code to build shared libraries, but
5715 # adding the `-m68020' flag to GCC prevents building anything better,
5717 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
5720 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
5721 # PIC is the default for these OSes.
5724 mingw
* | pw32
* | os2
*)
5725 # This hack is so that the source file can tell whether it is being
5726 # built for inclusion in a dll (and should export symbols for example).
5727 lt_prog_compiler_pic
='-DDLL_EXPORT'
5730 darwin
* | rhapsody
*)
5731 # PIC is the default on this platform
5732 # Common symbols not allowed in MH_DYLIB files
5733 lt_prog_compiler_pic
='-fno-common'
5737 # Just because we use GCC doesn't mean we suddenly get shared libraries
5738 # on systems that don't support them.
5739 lt_prog_compiler_can_build_shared
=no
5744 if test -d /usr
/nec
; then
5745 lt_prog_compiler_pic
=-Kconform_pic
5750 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5751 if test "$host_cpu" != ia64
; then
5752 lt_prog_compiler_pic
='-fPIC'
5757 lt_prog_compiler_pic
='-fPIC'
5761 # PORTME Check for flag to pass linker flags through the system compiler.
5764 lt_prog_compiler_wl
='-Wl,'
5765 if test "$host_cpu" = ia64
; then
5766 # AIX 5 now supports IA64 processor
5767 lt_prog_compiler_static
='-Bstatic'
5769 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
5773 mingw
* | pw32
* | os2
*)
5774 # This hack is so that the source file can tell whether it is being
5775 # built for inclusion in a dll (and should export symbols for example).
5776 lt_prog_compiler_pic
='-DDLL_EXPORT'
5779 hpux9
* | hpux10
* | hpux11
*)
5780 lt_prog_compiler_wl
='-Wl,'
5781 if test "$host_cpu" != ia64
; then
5782 lt_prog_compiler_pic
='+Z'
5784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5785 lt_prog_compiler_static
='${wl}-a ${wl}archive'
5788 irix5
* | irix6
* | nonstopux
*)
5789 lt_prog_compiler_wl
='-Wl,'
5790 # PIC (with -KPIC) is the default.
5791 lt_prog_compiler_static
='-non_shared'
5795 lt_prog_compiler_pic
='-KPIC'
5796 lt_prog_compiler_static
='-Bstatic'
5799 osf3
* | osf4
* | osf5
*)
5800 lt_prog_compiler_wl
='-Wl,'
5801 # All OSF/1 code is PIC.
5802 lt_prog_compiler_static
='-non_shared'
5806 lt_prog_compiler_pic
='-Kpic'
5807 lt_prog_compiler_static
='-dn'
5811 lt_prog_compiler_wl
='-Wl,'
5812 lt_prog_compiler_pic
='-KPIC'
5813 lt_prog_compiler_static
='-Bstatic'
5817 lt_prog_compiler_wl
='-Qoption ld '
5818 lt_prog_compiler_pic
='-PIC'
5819 lt_prog_compiler_static
='-Bstatic'
5822 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5823 if test "x$host_vendor" = xsni
; then
5824 lt_prog_compiler_wl
='-LD'
5826 lt_prog_compiler_wl
='-Wl,'
5828 lt_prog_compiler_pic
='-KPIC'
5829 lt_prog_compiler_static
='-Bstatic'
5833 if test -d /usr
/nec
;then
5834 lt_prog_compiler_pic
='-Kconform_pic'
5835 lt_prog_compiler_static
='-Bstatic'
5840 lt_prog_compiler_pic
='-pic'
5841 lt_prog_compiler_static
='-Bstatic'
5845 lt_prog_compiler_can_build_shared
=no
5850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5851 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5854 # Check to make sure the PIC flag actually works.
5856 if test -n "$lt_prog_compiler_pic"; then
5857 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5859 if test "${lt_prog_compiler_pic_works+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 lt_prog_compiler_pic_works
=no
5863 ac_outfile
=conftest.
$ac_objext
5864 save_CFLAGS
="$CFLAGS"
5865 CFLAGS
="$CFLAGS $lt_prog_compiler_pic -DPIC"
5866 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
5867 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
5868 # The compiler can only warn and ignore the option if not recognized
5869 # So say no if there are warnings
5870 if test -s conftest.err
; then
5871 # Append any errors to the config.log.
5872 cat conftest.err
1>&5
5874 lt_prog_compiler_pic_works
=yes
5878 CFLAGS
="$save_CFLAGS"
5881 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5882 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5884 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
5885 case $lt_prog_compiler_pic in
5887 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
5890 lt_prog_compiler_pic
=
5891 lt_prog_compiler_can_build_shared
=no
5896 # For platforms which do not support PIC, -DPIC is meaningless:
5898 lt_prog_compiler_pic
=
5901 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
5905 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5906 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5907 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 lt_cv_prog_compiler_c_o
=no
5911 $rm -r conftest
2>/dev
/null
5915 save_CFLAGS
="$CFLAGS"
5916 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
5917 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
5919 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5920 # that will create temporary files in the current directory regardless of
5921 # the output directory. Thus, making CWD read-only will cause this test
5922 # to fail, enabling locking or at least warning the user not to do parallel
5926 if (eval $ac_compile 2>out
/conftest.err
) && test -s out
/conftest2.
$ac_objext
5928 # The compiler can only warn and ignore the option if not recognized
5929 # So say no if there are warnings
5930 if test -s out
/conftest.err
; then
5931 # Append any errors to the config.log.
5932 cat out
/conftest.err
1>&5
5934 lt_cv_prog_compiler_c_o
=yes
5937 CFLAGS
="$save_CFLAGS"
5946 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5947 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5950 hard_links
="nottested"
5951 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
5952 # do not overwrite the value of need_locks provided by the user
5953 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5957 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
5959 ln conftest.a conftest.b
2>&5 || hard_links
=no
5960 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
5961 echo "$as_me:$LINENO: result: $hard_links" >&5
5962 echo "${ECHO_T}$hard_links" >&6
5963 if test "$hard_links" = no
; then
5964 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5972 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5973 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5976 allow_undefined_flag
=
5979 archive_cmds_need_lc
=
5980 archive_expsym_cmds
=
5981 old_archive_From_new_cmds
=
5982 old_archive_from_expsyms_cmds
=
5983 export_dynamic_flag_spec
=
5984 whole_archive_flag_spec
=
5985 thread_safe_flag_spec
=
5986 hardcode_libdir_flag_spec
=
5987 hardcode_libdir_separator
=
5990 hardcode_shlibpath_var
=unsupported
5991 link_all_deplibs
=unknown
5992 always_export_symbols
=no
5993 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5994 # include_expsyms should be a list of space-separated symbols to be *always*
5995 # included in the symbol list
5997 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5998 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5999 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6000 # as well as any symbol that contains `d'.
6001 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6002 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6003 # platforms (ab)use it in PIC code, but their linkers get confused if
6004 # the symbol is explicitly referenced. Since portable code cannot
6005 # rely on this symbol name, it's probably fine to never include it in
6006 # preloaded symbol tables.
6007 extract_expsyms_cmds
=
6010 cygwin
* | mingw
* | pw32
*)
6011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6012 # When not using gcc, we currently assume that we are using
6013 # Microsoft Visual C++.
6014 if test "$GCC" != yes; then
6024 if test "$with_gnu_ld" = yes; then
6025 # If archive_cmds runs LD, not CC, wlarc should be empty
6028 # See if GNU ld supports shared libraries.
6030 aix3
* | aix4
* | aix5
*)
6031 # On AIX/PPC, the GNU linker is very broken
6032 if test "$host_cpu" != ia64
; then
6036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6037 *** to be unable to reliably create shared libraries on AIX.
6038 *** Therefore, libtool is disabling shared libraries support. If you
6039 *** really care for shared libraries, you may want to modify your PATH
6040 *** so that a non-GNU linker is found, and then restart.
6047 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)'
6048 hardcode_libdir_flag_spec
='-L$libdir'
6049 hardcode_minus_L
=yes
6051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6052 # that the semantics of dynamic libraries on AmigaOS, at least up
6053 # to version 4, is to share data among multiple programs linked
6054 # with the same dynamic library. Since this doesn't match the
6055 # behavior of shared libraries on other platforms, we can't use
6061 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
6062 allow_undefined_flag
=unsupported
6063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6064 # support --undefined. This deserves some investigation. FIXME
6065 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6073 # as there is no search path for DLLs.
6074 hardcode_libdir_flag_spec
='-L$libdir'
6075 allow_undefined_flag
=
6076 always_export_symbols
=yes
6078 if $LD --help 2>&1 |
egrep 'auto-import' > /dev
/null
; then
6079 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6080 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
6087 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6088 # no search path for DLLs.
6089 hardcode_libdir_flag_spec
='-L$libdir'
6090 allow_undefined_flag
=unsupported
6091 always_export_symbols
=yes
6093 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
6094 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6095 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6096 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6097 else $CC -o impgen impgen.c ; fi)~
6098 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6100 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6102 # FIXME: what about values for MSVC?
6103 dll_entry
=__cygwin_dll_entry@
12
6107 dll_entry
=_DllMainCRTStartup@
12
6111 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
6113 # recent cygwin and mingw systems supply a stub DllMain which the user
6114 # can override, but on older systems we have to supply one (in ltdll.c)
6115 if test "x$lt_cv_need_dllmain" = "xyes"; then
6116 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
6117 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6118 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6124 # Extract the symbol export list from an `--export-all' def file,
6125 # then regenerate the def file from the symbol export list, so that
6126 # the compiled dll only exports the symbol export list.
6127 # Be careful not to strip the DATA tag left by newer dlltools.
6128 export_symbols_cmds
="$ltdll_cmds"'
6129 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6130 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6132 # If the export-symbols file already is a .def file (1st line
6133 # is EXPORTS), use it as is.
6134 # If DATA tags from a recent dlltool are present, honour them!
6135 archive_expsym_cmds
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6136 cp $export_symbols $output_objdir/$soname-def;
6138 echo EXPORTS > $output_objdir/$soname-def;
6140 cat $export_symbols | while read symbol; do
6143 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6144 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6146 _lt_hint=`expr 1 + \$_lt_hint`;
6150 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6151 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6152 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6153 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6154 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6158 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6159 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6162 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6163 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6168 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
6172 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6173 *** create shared libraries on Solaris systems. Therefore, libtool
6174 *** is disabling shared libraries support. We urge you to upgrade GNU
6175 *** binutils to release 2.9.1 or newer. Another option is to modify
6176 *** your PATH or compiler configuration so that the native linker is
6177 *** used, and then restart.
6180 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
6181 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6182 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6189 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6192 hardcode_shlibpath_var
=no
6196 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
6197 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6198 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6205 if test "$ld_shlibs" = yes; then
6206 runpath_var
=LD_RUN_PATH
6207 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
6208 export_dynamic_flag_spec
='${wl}--export-dynamic'
6210 cygwin
* | mingw
* | pw32
*)
6211 # dlltool doesn't understand --whole-archive et. al.
6212 whole_archive_flag_spec
=
6215 # ancient GNU ld didn't support --whole-archive et. al.
6216 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
6217 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6219 whole_archive_flag_spec
=
6225 # PORTME fill in a description of your system's linker (not GNU ld)
6228 allow_undefined_flag
=unsupported
6229 always_export_symbols
=yes
6230 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'
6231 # Note: this linker hardcodes the directories in LIBPATH if there
6232 # are no directories specified by -L.
6233 hardcode_minus_L
=yes
6234 if test "$GCC" = yes && test -z "$link_static_flag"; then
6235 # Neither direct hardcoding nor static linking is supported with a
6237 hardcode_direct
=unsupported
6242 if test "$host_cpu" = ia64
; then
6243 # On IA64, the linker does run time linking by default, so we don't
6244 # have to do anything special.
6245 aix_use_runtimelinking
=no
6246 exp_sym_flag
='-Bexport'
6249 # If we're using GNU nm, then we don't want the "-C" option.
6250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6251 if $NM -V 2>&1 |
egrep '(GNU)' > /dev
/null
; then
6252 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'
6254 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'
6256 aix_use_runtimelinking
=no
6258 # Test if we are trying to use run time linking or normal
6259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6260 # need to do runtime linking.
6261 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
6262 for ld_flag
in $LDFLAGS; do
6263 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6264 aix_use_runtimelinking
=yes
6270 exp_sym_flag
='-bexport'
6271 no_entry_flag
='-bnoentry'
6274 # When large executables or shared objects are built, AIX ld can
6275 # have problems creating the table of contents. If linking a library
6276 # or program results in "error TOC overflow" add -mminimal-toc to
6277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6282 hardcode_libdir_separator
=':'
6283 link_all_deplibs
=yes
6285 if test "$GCC" = yes; then
6286 case $host_os in aix4.012|aix4.012.
*)
6287 # We only want to do this on AIX 4.2 and lower, the check
6288 # below for broken collect2 doesn't work under 4.3+
6289 collect2name
=`${CC} -print-prog-name=collect2`
6290 if test -f "$collect2name" && \
6291 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
6293 # We have reworked collect2
6296 # We have old collect2
6297 hardcode_direct
=unsupported
6298 # It fails to find uninstalled libraries when the uninstalled
6299 # path is not listed in the libpath. Setting hardcode_minus_L
6300 # to unsupported forces relinking
6301 hardcode_minus_L
=yes
6302 hardcode_libdir_flag_spec
='-L$libdir'
6303 hardcode_libdir_separator
=
6306 shared_flag
='-shared'
6309 if test "$host_cpu" = ia64
; then
6310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6311 # chokes on -Wl,-G. The following line is correct:
6314 if test "$aix_use_runtimelinking" = yes; then
6315 shared_flag
='${wl}-G'
6317 shared_flag
='${wl}-bM:SRE'
6322 # It seems that -bexpall does not export symbols beginning with
6323 # underscore (_), so it is better to generate a list of symbols to export.
6324 always_export_symbols
=yes
6325 if test "$aix_use_runtimelinking" = yes; then
6326 # Warning - without using the other runtime loading flags (-brtl),
6327 # -berok will link without error, but may produce a broken library.
6328 allow_undefined_flag
='-berok'
6329 # Determine the default libpath from the value encoded in an empty executable.
6330 cat >conftest.
$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6334 #ifdef F77_DUMMY_MAIN
6338 int F77_DUMMY_MAIN() { return 1; }
6348 rm -f conftest.
$ac_objext conftest
$ac_exeext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350 (eval $ac_link) 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try
='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6361 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6363 # Check for a 64-bit object if we didn't find anything.
6364 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; }
6367 echo "$as_me: failed program was:" >&5
6368 cat conftest.
$ac_ext >&5
6370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6371 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
6373 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
6374 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"
6376 if test "$host_cpu" = ia64; then
6377 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
6378 allow_undefined_flag="-z nodefs"
6379 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"
6381 # Determine the default libpath from the value encoded in an empty executable.
6382 cat >conftest.$ac_ext <<_ACEOF
6383 #line $LINENO "configure
"
6384 #include "confdefs.h
"
6386 #ifdef F77_DUMMY_MAIN
6390 int F77_DUMMY_MAIN() { return 1; }
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6402 (eval $ac_link) 2>&5
6404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -s conftest$ac_exeext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6411 (exit $ac_status); }; }; then
6413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6415 # Check for a 64-bit object if we didn't find anything.
6416 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; }
6419 echo "$as_me: failed program was
:" >&5
6420 cat conftest.$ac_ext >&5
6422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6423 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
6425 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6426 # Warning - without using the other run time loading flags,
6427 # -berok will link without error, but may produce a broken library.
6428 no_undefined_flag=' ${wl}-bernotok'
6429 allow_undefined_flag=' ${wl}-berok'
6430 # -bexpall does not export symbols beginning with underscore (_)
6431 always_export_symbols=yes
6432 # Exported symbols can be pulled into shared objects from archives
6433 whole_archive_flag_spec=' '
6434 archive_cmds_need_lc=yes
6435 # This is similar to how AIX traditionally builds it's shared libraries.
6436 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'
6442 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)'
6443 hardcode_libdir_flag_spec
='-L$libdir'
6444 hardcode_minus_L
=yes
6445 # see comment about different semantics on the GNU ld section
6450 export_dynamic_flag_spec
=-rdynamic
6453 cygwin
* | mingw
* | pw32
*)
6454 # When not using gcc, we currently assume that we are using
6455 # Microsoft Visual C++.
6456 # hardcode_libdir_flag_spec is actually meaningless, as there is
6457 # no search path for DLLs.
6458 hardcode_libdir_flag_spec
=' '
6459 allow_undefined_flag
=unsupported
6460 # Tell ltmain to make .lib files, not .a files.
6462 # FIXME: Setting linknames here is a bad hack.
6463 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6464 # The linker will automatically build a .lib file if we build a DLL.
6465 old_archive_From_new_cmds
='true'
6466 # FIXME: Should let the user specify the lib program.
6467 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
6468 fix_srcfile_path
='`cygpath -w "$srcfile"`'
6471 darwin
* | rhapsody
*)
6473 rhapsody
* | darwin1.
[012])
6474 allow_undefined_flag
='-undefined suppress'
6477 allow_undefined_flag
='-flat_namespace -undefined suppress'
6481 # FIXME: Relying on posixy $() will cause problems for
6482 # cross-compilation, but unfortunately the echo tests do not
6483 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6484 # `"' quotes if we put them in here... so don't!
6485 archive_cmds
='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6486 # We need to add '_' to the symbols in $export_symbols first
6487 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6489 hardcode_shlibpath_var
=no
6490 whole_archive_flag_spec
='-all_load $convenience'
6494 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 hardcode_libdir_flag_spec
='-L$libdir'
6496 hardcode_shlibpath_var
=no
6503 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6504 # support. Future versions do this automatically, but an explicit c++rt0.o
6505 # does not break anything, and helps significantly (at the cost of a little
6508 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6509 hardcode_libdir_flag_spec
='-R$libdir'
6511 hardcode_shlibpath_var
=no
6514 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6516 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6518 hardcode_minus_L
=yes
6519 hardcode_shlibpath_var
=no
6522 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6524 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6525 hardcode_libdir_flag_spec
='-R$libdir'
6527 hardcode_shlibpath_var
=no
6530 hpux9
* | hpux10
* | hpux11
*)
6531 if test "$GCC" = yes; then
6534 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'
6537 if test "$host_cpu" = ia64
; then
6538 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6540 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6547 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'
6550 if test "$host_cpu" = ia64
; then
6551 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6553 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6558 if test "$host_cpu" = ia64
; then
6559 hardcode_libdir_flag_spec
='-L$libdir'
6561 hardcode_shlibpath_var
=no
6563 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
6564 hardcode_libdir_separator
=:
6567 # hardcode_minus_L: Not really in the search PATH,
6568 # but as the default location of the library.
6569 hardcode_minus_L
=yes
6570 export_dynamic_flag_spec
='${wl}-E'
6573 irix5
* | irix6
* | nonstopux
*)
6574 if test "$GCC" = yes; then
6575 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'
6577 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'
6579 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6580 hardcode_libdir_separator
=:
6581 link_all_deplibs
=yes
6585 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6586 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6588 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6590 hardcode_libdir_flag_spec
='-R$libdir'
6592 hardcode_shlibpath_var
=no
6596 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6598 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6599 hardcode_libdir_separator
=:
6600 hardcode_shlibpath_var
=no
6605 hardcode_shlibpath_var
=no
6607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6608 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6609 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
6610 export_dynamic_flag_spec
='${wl}-E'
6613 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
6614 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6615 hardcode_libdir_flag_spec
='-R$libdir'
6618 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6619 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
6626 hardcode_libdir_flag_spec
='-L$libdir'
6627 hardcode_minus_L
=yes
6628 allow_undefined_flag
=unsupported
6629 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'
6630 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6634 if test "$GCC" = yes; then
6635 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
6636 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'
6638 allow_undefined_flag
=' -expect_unresolved \*'
6639 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'
6641 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6642 hardcode_libdir_separator
=:
6645 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
6646 if test "$GCC" = yes; then
6647 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
6648 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'
6649 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6651 allow_undefined_flag
=' -expect_unresolved \*'
6652 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'
6653 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6654 $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'
6656 # Both c and cxx compiler support -rpath directly
6657 hardcode_libdir_flag_spec
='-rpath $libdir'
6659 hardcode_libdir_separator
=:
6663 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_shlibpath_var
=no
6665 export_dynamic_flag_spec
='${wl}-Bexport'
6666 runpath_var
=LD_RUN_PATH
6667 hardcode_runpath_var
=yes
6671 no_undefined_flag
=' -z text'
6672 if test "$GCC" = yes; then
6673 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6674 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6675 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6677 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6678 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6681 hardcode_libdir_flag_spec
='-R$libdir'
6682 hardcode_shlibpath_var
=no
6684 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
6685 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6686 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
6688 link_all_deplibs
=yes
6692 if test "x$host_vendor" = xsequent
; then
6693 # Use $CC to link under sequent, because it throws in some extra .o
6694 # files that make .init and .fini sections work.
6695 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6697 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6699 hardcode_libdir_flag_spec
='-L$libdir'
6701 hardcode_minus_L
=yes
6702 hardcode_shlibpath_var
=no
6706 if test "x$host_vendor" = xsni
; then
6707 archive_cmds
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6708 hardcode_direct
=yes # is this really true???
6710 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6711 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
6713 runpath_var
='LD_RUN_PATH'
6714 hardcode_shlibpath_var
=no
6718 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6719 hardcode_shlibpath_var
=no
6720 export_dynamic_flag_spec
='-Bexport'
6724 if test -d /usr
/nec
; then
6725 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6726 hardcode_shlibpath_var
=no
6727 runpath_var
=LD_RUN_PATH
6728 hardcode_runpath_var
=yes
6734 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6737 hardcode_shlibpath_var
=no
6738 hardcode_runpath_var
=yes
6739 runpath_var
=LD_RUN_PATH
6742 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
6743 no_undefined_flag
='${wl}-z ${wl}text'
6744 if test "$GCC" = yes; then
6745 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6747 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6749 runpath_var
='LD_RUN_PATH'
6750 hardcode_shlibpath_var
=no
6754 no_undefined_flag
=' -z text'
6755 # $CC -shared without GNU ld will not create a library from C++
6756 # object files and a static libstdc++, better avoid it by now
6757 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6758 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6760 hardcode_libdir_flag_spec
=
6761 hardcode_shlibpath_var
=no
6762 runpath_var
='LD_RUN_PATH'
6766 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6767 hardcode_libdir_flag_spec
='-L$libdir'
6768 hardcode_shlibpath_var
=no
6777 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6778 echo "${ECHO_T}$ld_shlibs" >&6
6779 test "$ld_shlibs" = no
&& can_build_shared
=no
6781 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
6782 if test "$GCC" = yes; then
6783 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6787 # Do we need to explicitly link libc?
6789 archive_cmds_need_lc
=yes
6790 if test "$enable_shared" = yes && test "$GCC" = yes; then
6791 case $archive_cmds in
6793 # FIXME: we may have to deal with multi-command sequences.
6796 # Test whether the compiler implicitly links with -lc since on some
6797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6798 # to ld, don't add -lc before -lgcc.
6799 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6800 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6802 echo 'static int dummy;' > conftest.
$ac_ext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6805 (eval $ac_compile) 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } 2>conftest.err
; then
6811 libobjs
=conftest.
$ac_objext
6813 wl
=$lt_prog_compiler_wl
6819 lt_save_allow_undefined_flag
=$allow_undefined_flag
6820 allow_undefined_flag
=
6821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6822 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }
6827 archive_cmds_need_lc
=no
6829 archive_cmds_need_lc
=yes
6831 allow_undefined_flag
=$lt_save_allow_undefined_flag
6833 cat conftest.err
1>&5
6836 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6837 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6842 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6843 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6845 if test -n "$hardcode_libdir_flag_spec" || \
6846 test -n "$runpath_var "; then
6848 # We can hardcode non-existant directories.
6849 if test "$hardcode_direct" != no
&&
6850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6851 # have to relink, otherwise we might link with an installed library
6852 # when we should be linking with a yet-to-be-installed one
6853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6854 test "$hardcode_minus_L" != no
; then
6855 # Linking always hardcodes the temporary library directory.
6856 hardcode_action
=relink
6858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6859 hardcode_action
=immediate
6862 # We cannot hardcode anything, or else we can only hardcode existing
6864 hardcode_action
=unsupported
6866 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6867 echo "${ECHO_T}$hardcode_action" >&6
6869 if test "$hardcode_action" = relink
; then
6870 # Fast installation is not supported
6871 enable_fast_install
=no
6872 elif test "$shlibpath_overrides_runpath" = yes ||
6873 test "$enable_shared" = no
; then
6874 # Fast installation is not necessary
6875 enable_fast_install
=needless
6880 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6881 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6882 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
6883 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
6884 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
6885 echo "$as_me:$LINENO: result: yes" >&5
6886 echo "${ECHO_T}yes" >&6
6888 echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6
6892 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6895 libname_spec
='lib$name'
6902 shlibpath_overrides_runpath
=unknown
6904 dynamic_linker
="$host_os ld.so"
6905 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
6906 if test "$GCC" = yes; then
6907 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
6908 if echo "$sys_lib_search_path_spec" |
egrep ';' >/dev
/null
; then
6909 # if the path contains ";" then we assume it to be the separator
6910 # otherwise default to the standard path separator (i.e. ":") - it is
6911 # assumed that no part of a normal pathname contains ";" but that should
6912 # okay in the real world where ";" in dirpaths is itself problematic.
6913 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6915 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6918 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
6920 need_lib_prefix
=unknown
6921 hardcode_into_libs
=no
6923 # when you set need_version to no, make sure it does not cause -set_version
6924 # flags to be left without arguments
6925 need_version
=unknown
6930 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
6931 shlibpath_var
=LIBPATH
6933 # AIX 3 has no versioning support, so we append a major version to the name.
6934 soname_spec
='${libname}${release}.so$major'
6939 if test "$host_cpu" = ia64
; then
6940 # AIX 5 supports IA64
6941 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6942 shlibpath_var
=LD_LIBRARY_PATH
6944 # With GCC up to 2.95.x, collect2 would create an import file
6945 # for dependence libraries. The import file would start with
6946 # the line `#! .'. This would cause the generated library to
6947 # depend on `.', always an invalid library. This was fixed in
6948 # development snapshots of GCC prior to 3.0.
6950 aix4 | aix4.
[01] | aix4.
[01].
*)
6951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6953 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
6960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6961 # soname into executable. Probably we can add versioning support to
6962 # collect2, so additional links can be useful in future.
6963 if test "$aix_use_runtimelinking" = yes; then
6964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6965 # instead of lib<name>.a to let people know that these are not
6966 # typical AIX shared libraries.
6967 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6969 # We preserve .a as extension for shared libraries through AIX4.2
6970 # and later when we are not doing run time linking.
6971 library_names_spec
='${libname}${release}.a $libname.a'
6972 soname_spec
='${libname}${release}.so$major'
6974 shlibpath_var
=LIBPATH
6979 library_names_spec
='$libname.ixlibrary $libname.a'
6980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6981 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'
6985 library_names_spec
='${libname}.so'
6986 dynamic_linker
="$host_os ld.so"
6987 shlibpath_var
=LIBRARY_PATH
6993 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6994 soname_spec
='${libname}${release}.so$major'
6995 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
6996 shlibpath_var
=LD_LIBRARY_PATH
6997 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6998 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
6999 # the default ld.so.conf also contains /usr/contrib/lib and
7000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7001 # libtool to hard-code these into programs
7004 cygwin
* | mingw
* | pw32
*)
7005 version_type
=windows
7008 case $GCC,$host_os in
7010 library_names_spec
='$libname.dll.a'
7011 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
7012 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7013 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7014 dldir=$destdir/`dirname \$dlpath`~
7015 test -d \$dldir || mkdir -p \$dldir~
7016 $install_prog .libs/$dlname \$dldir/$dlname'
7017 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7018 dlpath=$dir/\$dldll~
7020 shlibpath_overrides_runpath
=yes
7023 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7024 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7025 if echo "$sys_lib_search_path_spec" |
egrep ';[C-Z]:/' >/dev
/null
; then
7026 # It is most probably a Windows format PATH printed by
7027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7028 # path with ; separators, and with drive letters. We can handle the
7029 # drive letters (cygwin fileutils understands them), so leave them,
7030 # especially as we might pass files found there to a mingw objdump,
7031 # which wouldn't understand a cygwinified path. Ahh.
7032 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7034 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7038 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7041 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7044 dynamic_linker
='Win32 ld.exe'
7045 # FIXME: first we should search . and the directory the executable is in
7049 darwin
* | rhapsody
*)
7050 dynamic_linker
="$host_os dyld"
7054 # FIXME: Relying on posixy $() will cause problems for
7055 # cross-compilation, but unfortunately the echo tests do not
7056 # yet detect zsh echo's removal of \ escapes.
7057 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7058 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7059 shlibpath_overrides_runpath
=yes
7060 shlibpath_var
=DYLD_LIBRARY_PATH
7067 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7068 soname_spec
='${libname}${release}.so$major'
7069 shlibpath_var
=LD_LIBRARY_PATH
7077 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7078 version_type
=freebsd-
$objformat
7079 case $version_type in
7081 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7086 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
7090 shlibpath_var
=LD_LIBRARY_PATH
7093 shlibpath_overrides_runpath
=yes
7095 freebsd3.01
* | freebsdelf3.01
*)
7096 shlibpath_overrides_runpath
=yes
7097 hardcode_into_libs
=yes
7100 shlibpath_overrides_runpath
=no
7101 hardcode_into_libs
=yes
7110 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7111 soname_spec
='${libname}${release}.so$major'
7112 shlibpath_var
=LD_LIBRARY_PATH
7113 hardcode_into_libs
=yes
7116 hpux9
* | hpux10
* | hpux11
*)
7117 # Give a soname corresponding to the major version so that dld.sl refuses to
7118 # link against other versions.
7122 if test "$host_cpu" = ia64
; then
7123 hardcode_into_libs
=yes
7124 dynamic_linker
="$host_os dld.so"
7125 shlibpath_var
=LD_LIBRARY_PATH
7126 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7127 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7128 soname_spec
='${libname}${release}.so$major'
7129 if test "X$HPUX_IA64_MODE" = X32
; then
7130 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7132 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
7134 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7136 dynamic_linker
="$host_os dld.sl"
7137 shlibpath_var
=SHLIB_PATH
7138 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
7139 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7140 soname_spec
='${libname}${release}.sl$major'
7142 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7143 postinstall_cmds
='chmod 555 $lib'
7146 irix5
* | irix6
* | nonstopux
*)
7148 nonstopux
*) version_type
=nonstopux
;;
7149 *) version_type
=irix
;;
7153 soname_spec
='${libname}${release}.so$major'
7154 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7156 irix5
* | nonstopux
*)
7160 case $LD in # libtool.m4 will add one of these switches to LD
7161 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
7162 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
7163 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
7164 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
7168 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
7169 shlibpath_overrides_runpath
=no
7170 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7171 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
7174 # No shared lib support for Linux oldld, aout, or coff.
7175 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
7179 # This must be Linux ELF.
7184 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7185 soname_spec
='${libname}${release}.so$major'
7186 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7187 shlibpath_var
=LD_LIBRARY_PATH
7188 shlibpath_overrides_runpath
=no
7189 # This implies no fast_install, which is unacceptable.
7190 # Some rework will be needed to allow for fast_install
7191 # before this can be enabled.
7192 hardcode_into_libs
=yes
7194 # We used to test for /lib/ld.so.1 and disable shared libraries on
7195 # powerpc, because MkLinux only supported shared libraries with the
7196 # GNU dynamic linker. Since this was broken with cross compilers,
7197 # most powerpc-linux boxes support dynamic linking these days and
7198 # people can always --disable-shared, the test was removed, and we
7199 # assume the GNU/Linux dynamic linker is in use.
7200 dynamic_linker
='GNU/Linux ld.so'
7207 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7208 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7209 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7210 dynamic_linker
='NetBSD (a.out) ld.so'
7212 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7213 soname_spec
='${libname}${release}.so$major'
7214 dynamic_linker
='NetBSD ld.elf_so'
7216 shlibpath_var
=LD_LIBRARY_PATH
7217 shlibpath_overrides_runpath
=yes
7218 hardcode_into_libs
=yes
7223 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7224 shlibpath_var
=LD_LIBRARY_PATH
7225 shlibpath_overrides_runpath
=yes
7232 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7233 soname_spec
='${libname}${release}.so$major'
7234 shlibpath_var
=LD_LIBRARY_PATH
7235 shlibpath_overrides_runpath
=yes
7242 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7243 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7244 shlibpath_var
=LD_LIBRARY_PATH
7245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7247 openbsd2.
[89] | openbsd2.
[89].
*)
7248 shlibpath_overrides_runpath
=no
7251 shlibpath_overrides_runpath
=yes
7255 shlibpath_overrides_runpath
=yes
7260 libname_spec
='$name'
7262 library_names_spec
='$libname.dll $libname.a'
7263 dynamic_linker
='OS/2 ld.exe'
7264 shlibpath_var
=LIBPATH
7267 osf3
* | osf4
* | osf5
*)
7271 soname_spec
='${libname}${release}.so'
7272 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7273 shlibpath_var
=LD_LIBRARY_PATH
7274 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7275 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
7280 soname_spec
='${libname}${release}.so$major'
7281 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7282 shlibpath_var
=LD_LIBRARY_PATH
7289 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7290 soname_spec
='${libname}${release}.so$major'
7291 shlibpath_var
=LD_LIBRARY_PATH
7292 shlibpath_overrides_runpath
=yes
7293 hardcode_into_libs
=yes
7294 # ldd complains unless libraries are executable
7295 postinstall_cmds
='chmod +x $lib'
7300 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7301 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7302 shlibpath_var
=LD_LIBRARY_PATH
7303 shlibpath_overrides_runpath
=yes
7304 if test "$with_gnu_ld" = yes; then
7310 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
7312 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7313 soname_spec
='${libname}${release}.so$major'
7314 shlibpath_var
=LD_LIBRARY_PATH
7315 case $host_vendor in
7317 shlibpath_overrides_runpath
=no
7322 shlibpath_overrides_runpath
=no
7323 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
7329 if test -d /usr
/nec
;then
7331 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
7332 soname_spec
='$libname.so.$major'
7333 shlibpath_var
=LD_LIBRARY_PATH
7339 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7340 soname_spec
='${libname}${release}.so$major'
7341 shlibpath_var
=LD_LIBRARY_PATH
7348 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7349 echo "${ECHO_T}$dynamic_linker" >&6
7350 test "$dynamic_linker" = no
&& can_build_shared
=no
7352 if test "x$enable_dlopen" != xyes
; then
7353 enable_dlopen
=unknown
7354 enable_dlopen_self
=unknown
7355 enable_dlopen_self_static
=unknown
7362 lt_cv_dlopen
="load_add_on"
7364 lt_cv_dlopen_self
=yes
7367 cygwin
* | mingw
* | pw32
*)
7368 lt_cv_dlopen
="LoadLibrary"
7373 echo "$as_me:$LINENO: checking for shl_load" >&5
7374 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7375 if test "${ac_cv_func_shl_load+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.
$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7380 #include "confdefs.h"
7381 /* System header to define __stub macros and hopefully few prototypes,
7382 which can conflict with char shl_load (); below. */
7384 /* Override any gcc2 internal prototype to avoid an error. */
7388 /* We use char because int might match the return type of a gcc2
7389 builtin and then its argument prototype would still apply. */
7393 #ifdef F77_DUMMY_MAIN
7397 int F77_DUMMY_MAIN() { return 1; }
7402 /* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7415 rm -f conftest.
$ac_objext conftest
$ac_exeext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7417 (eval $ac_link) 2>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } &&
7421 { ac_try
='test -s conftest$ac_exeext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_cv_func_shl_load
=yes
7429 echo "$as_me: failed program was:" >&5
7430 cat conftest.
$ac_ext >&5
7431 ac_cv_func_shl_load
=no
7433 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7436 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7437 if test $ac_cv_func_shl_load = yes; then
7438 lt_cv_dlopen
="shl_load"
7440 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7441 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7442 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 ac_check_lib_save_LIBS
=$LIBS
7447 cat >conftest.
$ac_ext <<_ACEOF
7448 #line $LINENO "configure"
7449 #include "confdefs.h"
7451 /* Override any gcc2 internal prototype to avoid an error. */
7455 /* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7458 #ifdef F77_DUMMY_MAIN
7462 int F77_DUMMY_MAIN() { return 1; }
7472 rm -f conftest.
$ac_objext conftest
$ac_exeext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7474 (eval $ac_link) 2>&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } &&
7478 { ac_try
='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_lib_dld_shl_load
=yes
7486 echo "$as_me: failed program was:" >&5
7487 cat conftest.
$ac_ext >&5
7488 ac_cv_lib_dld_shl_load
=no
7490 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7491 LIBS
=$ac_check_lib_save_LIBS
7493 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7494 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7495 if test $ac_cv_lib_dld_shl_load = yes; then
7496 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
7498 echo "$as_me:$LINENO: checking for dlopen" >&5
7499 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7500 if test "${ac_cv_func_dlopen+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.
$ac_ext <<_ACEOF
7504 #line $LINENO "configure"
7505 #include "confdefs.h"
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char dlopen (); below. */
7509 /* Override any gcc2 internal prototype to avoid an error. */
7513 /* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7518 #ifdef F77_DUMMY_MAIN
7522 int F77_DUMMY_MAIN() { return 1; }
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7540 rm -f conftest.
$ac_objext conftest
$ac_exeext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try
='test -s conftest$ac_exeext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_func_dlopen
=yes
7554 echo "$as_me: failed program was:" >&5
7555 cat conftest.
$ac_ext >&5
7556 ac_cv_func_dlopen
=no
7558 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7560 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7561 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7562 if test $ac_cv_func_dlopen = yes; then
7563 lt_cv_dlopen
="dlopen"
7565 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 ac_check_lib_save_LIBS
=$LIBS
7572 cat >conftest.
$ac_ext <<_ACEOF
7573 #line $LINENO "configure"
7574 #include "confdefs.h"
7576 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7583 #ifdef F77_DUMMY_MAIN
7587 int F77_DUMMY_MAIN() { return 1; }
7597 rm -f conftest.
$ac_objext conftest
$ac_exeext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try
='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_dl_dlopen
=yes
7611 echo "$as_me: failed program was:" >&5
7612 cat conftest.
$ac_ext >&5
7613 ac_cv_lib_dl_dlopen
=no
7615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7616 LIBS
=$ac_check_lib_save_LIBS
7618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7619 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7620 if test $ac_cv_lib_dl_dlopen = yes; then
7621 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
7623 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7624 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7625 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 ac_check_lib_save_LIBS
=$LIBS
7630 cat >conftest.
$ac_ext <<_ACEOF
7631 #line $LINENO "configure"
7632 #include "confdefs.h"
7634 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7641 #ifdef F77_DUMMY_MAIN
7645 int F77_DUMMY_MAIN() { return 1; }
7655 rm -f conftest.
$ac_objext conftest
$ac_exeext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try
='test -s conftest$ac_exeext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_cv_lib_svld_dlopen
=yes
7669 echo "$as_me: failed program was:" >&5
7670 cat conftest.
$ac_ext >&5
7671 ac_cv_lib_svld_dlopen
=no
7673 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7674 LIBS
=$ac_check_lib_save_LIBS
7676 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7677 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7678 if test $ac_cv_lib_svld_dlopen = yes; then
7679 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
7681 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7682 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7683 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_check_lib_save_LIBS
=$LIBS
7688 cat >conftest.
$ac_ext <<_ACEOF
7689 #line $LINENO "configure"
7690 #include "confdefs.h"
7692 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7699 #ifdef F77_DUMMY_MAIN
7703 int F77_DUMMY_MAIN() { return 1; }
7713 rm -f conftest.
$ac_objext conftest
$ac_exeext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715 (eval $ac_link) 2>&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try
='test -s conftest$ac_exeext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_cv_lib_dld_dld_link
=yes
7727 echo "$as_me: failed program was:" >&5
7728 cat conftest.
$ac_ext >&5
7729 ac_cv_lib_dld_dld_link
=no
7731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7732 LIBS
=$ac_check_lib_save_LIBS
7734 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7735 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7736 if test $ac_cv_lib_dld_dld_link = yes; then
7737 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
7758 if test "x$lt_cv_dlopen" != xno
; then
7764 case $lt_cv_dlopen in
7766 save_CPPFLAGS
="$CPPFLAGS"
7767 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
7769 save_LDFLAGS
="$LDFLAGS"
7770 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
7773 LIBS
="$lt_cv_dlopen_libs $LIBS"
7775 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7776 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7777 if test "${lt_cv_dlopen_self+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 if test "$cross_compiling" = yes; then :
7781 lt_cv_dlopen_self
=cross
7783 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
7784 lt_status
=$lt_dlunknown
7785 cat > conftest.
$ac_ext <<EOF
7786 #line 7786 "configure"
7787 #include "confdefs.h"
7796 # define LT_DLGLOBAL RTLD_GLOBAL
7799 # define LT_DLGLOBAL DL_GLOBAL
7801 # define LT_DLGLOBAL 0
7805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7806 find out it does not work in some platform. */
7807 #ifndef LT_DLLAZY_OR_NOW
7809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7812 # define LT_DLLAZY_OR_NOW DL_LAZY
7815 # define LT_DLLAZY_OR_NOW RTLD_NOW
7818 # define LT_DLLAZY_OR_NOW DL_NOW
7820 # define LT_DLLAZY_OR_NOW 0
7828 extern "C" void exit (int);
7831 void fnord() { int i=42;}
7834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7835 int status = $lt_dlunknown;
7839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7841 /* dlclose (self); */
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
7852 (.
/conftest
; exit; ) 2>/dev
/null
7855 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
7856 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
7857 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
7860 # compilation failed
7861 lt_cv_dlopen_self
=no
7868 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7869 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7871 if test "x$lt_cv_dlopen_self" = xyes
; then
7872 LDFLAGS
="$LDFLAGS $link_static_flag"
7873 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7874 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7875 if test "${lt_cv_dlopen_self_static+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 if test "$cross_compiling" = yes; then :
7879 lt_cv_dlopen_self_static
=cross
7881 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
7882 lt_status
=$lt_dlunknown
7883 cat > conftest.
$ac_ext <<EOF
7884 #line 7884 "configure"
7885 #include "confdefs.h"
7894 # define LT_DLGLOBAL RTLD_GLOBAL
7897 # define LT_DLGLOBAL DL_GLOBAL
7899 # define LT_DLGLOBAL 0
7903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7904 find out it does not work in some platform. */
7905 #ifndef LT_DLLAZY_OR_NOW
7907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7910 # define LT_DLLAZY_OR_NOW DL_LAZY
7913 # define LT_DLLAZY_OR_NOW RTLD_NOW
7916 # define LT_DLLAZY_OR_NOW DL_NOW
7918 # define LT_DLLAZY_OR_NOW 0
7926 extern "C" void exit (int);
7929 void fnord() { int i=42;}
7932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7933 int status = $lt_dlunknown;
7937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7939 /* dlclose (self); */
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
7950 (.
/conftest
; exit; ) 2>/dev
/null
7953 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
7954 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
7955 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
7958 # compilation failed
7959 lt_cv_dlopen_self_static
=no
7966 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7967 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7970 CPPFLAGS
="$save_CPPFLAGS"
7971 LDFLAGS
="$save_LDFLAGS"
7976 case $lt_cv_dlopen_self in
7977 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
7978 *) enable_dlopen_self
=unknown
;;
7981 case $lt_cv_dlopen_self_static in
7982 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
7983 *) enable_dlopen_self_static
=unknown
;;
7988 # Report which librarie types wil actually be built
7989 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7990 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7991 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7992 echo "${ECHO_T}$can_build_shared" >&6
7994 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7995 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7996 test "$can_build_shared" = "no" && enable_shared
=no
7998 # On AIX, shared libraries and static libraries use the same namespace, and
7999 # are all built from PIC.
8002 test "$enable_shared" = yes && enable_static
=no
8003 if test -n "$RANLIB"; then
8004 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
8005 postinstall_cmds
='$RANLIB $lib'
8010 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
8011 test "$enable_shared" = yes && enable_static
=no
8015 echo "$as_me:$LINENO: result: $enable_shared" >&5
8016 echo "${ECHO_T}$enable_shared" >&6
8018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8020 # Make sure either enable_shared or enable_static is yes.
8021 test "$enable_shared" = yes || enable_static
=yes
8022 echo "$as_me:$LINENO: result: $enable_static" >&5
8023 echo "${ECHO_T}$enable_static" >&6
8025 # The else clause should only fire when bootstrapping the
8026 # libtool distribution, otherwise you forgot to ship ltmain.sh
8027 # with your package, and you will get complaints that there are
8028 # no rules to generate ltmain.sh.
8029 if test -f "$ltmain"; then
8030 # Now quote all the things that may contain metacharacters while being
8031 # careful not to overquote the AC_SUBSTed values. We take copies of the
8032 # variables and quote the copies for generation of the libtool script.
8033 for var
in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8036 deplibs_check_method reload_flag reload_cmds need_locks \
8037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8038 lt_cv_sys_global_symbol_to_c_name_address \
8039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8040 old_postinstall_cmds old_postuninstall_cmds \
8044 lt_prog_compiler_wl \
8045 lt_prog_compiler_pic \
8046 lt_prog_compiler_static \
8047 lt_prog_compiler_no_builtin_flag \
8048 export_dynamic_flag_spec \
8049 thread_safe_flag_spec \
8050 whole_archive_flag_spec \
8052 old_archive_from_new_cmds \
8057 compiler_lib_search_path \
8059 archive_expsym_cmds \
8061 postuninstall_cmds \
8062 old_archive_from_expsyms_cmds \
8063 allow_undefined_flag \
8065 export_symbols_cmds \
8066 hardcode_libdir_flag_spec \
8067 hardcode_libdir_separator \
8068 lt_cv_prog_compiler_c_o \
8073 old_archive_cmds | \
8074 old_archive_from_new_cmds | \
8076 archive_expsym_cmds | \
8077 old_archive_from_expsyms_cmds | \
8078 export_symbols_cmds | \
8079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8080 postinstall_cmds | postuninstall_cmds | \
8081 old_postinstall_cmds | old_postuninstall_cmds | \
8082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
8083 # Double-quote double-evaled strings.
8084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8093 *'\$0 --fallback-echo"')
8094 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8099 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8101 { echo "$as_me:$LINENO: creating $ofile" >&5
8102 echo "$as_me: creating $ofile" >&6;}
8104 cat <<__EOF__ >> "$cfgfile"
8107 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8108 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8111 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8112 # Free Software Foundation, Inc.
8114 # This file is part of GNU Libtool:
8115 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8117 # This program is free software; you can redistribute it and/or modify
8118 # it under the terms of the GNU General Public License as published by
8119 # the Free Software Foundation; either version 2 of the License, or
8120 # (at your option) any later version.
8122 # This program is distributed in the hope that it will be useful, but
8123 # WITHOUT ANY WARRANTY; without even the implied warranty of
8124 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8125 # General Public License for more details.
8127 # You should have received a copy of the GNU General Public License
8128 # along with this program; if not, write to the Free Software
8129 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8131 # As a special exception to the GNU General Public License, if you
8132 # distribute this file as part of a program that contains a
8133 # configuration script generated by Autoconf, you may include it under
8134 # the same distribution terms that you use for the rest of that program.
8136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8137 Xsed="sed -e s/^X//"
8139 # The HP-UX ksh and POSIX shell print the target directory to stdout
8141 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8143 # The names of the tagged configurations supported by this script.
8146 # ### BEGIN LIBTOOL CONFIG
8148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8150 # Shell to use when invoking shell scripts.
8153 # Whether or not to build shared libraries.
8154 build_libtool_libs=$enable_shared
8156 # Whether or not to build static libraries.
8157 build_old_libs=$enable_static
8159 # Whether or not to add -lc for building shared libraries.
8160 build_libtool_need_lc=$archive_cmds_need_lc
8162 # Whether or not to optimize for fast installation.
8163 fast_install=$enable_fast_install
8166 host_alias=$host_alias
8169 # An echo program that does not interpret backslashes.
8174 AR_FLAGS=$lt_AR_FLAGS
8179 # A language-specific compiler.
8182 # Is the compiler the GNU C compiler?
8185 # The linker used to build libraries.
8188 # Whether we need hard or soft links.
8191 # A BSD-compatible nm program.
8194 # A sed program that does not truncate output.
8197 # A symbol stripping program
8200 # Used to examine libraries when file_magic_cmd begins "file"
8201 MAGIC_CMD=$MAGIC_CMD
8203 # Used on cygwin: DLL creation program.
8206 # Used on cygwin: object dumper.
8209 # Used on cygwin: assembler.
8212 # The name of the directory that contains temporary libtool files.
8215 # How to create reloadable object files.
8216 reload_flag=$lt_reload_flag
8217 reload_cmds=$lt_reload_cmds
8219 # How to pass a linker flag through the compiler.
8220 wl=$lt_lt_prog_compiler_wl
8222 # Object file suffix (normally "o").
8225 # Old archive suffix (normally "a").
8228 # Executable file suffix (normally "").
8231 # Additional compiler flags for building library objects.
8232 pic_flag=$lt_lt_prog_compiler_pic
8235 # What is the maximum length of a command?
8236 max_cmd_len=$lt_cv_sys_max_cmd_len
8238 # Does compiler simultaneously support -c and -o options?
8239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8241 # Must we lock files when doing compilation ?
8242 need_locks=$lt_need_locks
8244 # Do we need the lib prefix for modules?
8245 need_lib_prefix=$need_lib_prefix
8247 # Do we need a version for libraries?
8248 need_version=$need_version
8250 # Whether dlopen is supported.
8251 dlopen_support=$enable_dlopen
8253 # Whether dlopen of programs is supported.
8254 dlopen_self=$enable_dlopen_self
8256 # Whether dlopen of statically linked programs is supported.
8257 dlopen_self_static=$enable_dlopen_self_static
8259 # Compiler flag to prevent dynamic linking.
8260 link_static_flag=$lt_lt_prog_compiler_static
8262 # Compiler flag to turn off builtin functions.
8263 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8265 # Compiler flag to allow reflexive dlopens.
8266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8268 # Compiler flag to generate shared objects directly from archives.
8269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8271 # Compiler flag to generate thread-safe objects.
8272 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8274 # Library versioning type.
8275 version_type=$version_type
8277 # Format of library name prefix.
8278 libname_spec=$lt_libname_spec
8280 # List of archive names. First name is the real one, the rest are links.
8281 # The last name is the one that the linker finds with -lNAME.
8282 library_names_spec=$lt_library_names_spec
8284 # The coded name of the library, if different from the real name.
8285 soname_spec=$lt_soname_spec
8287 # Commands used to build and install an old-style archive.
8289 old_archive_cmds=$lt_old_archive_cmds
8290 old_postinstall_cmds=$lt_old_postinstall_cmds
8291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8293 # Create an old-style archive from a shared archive.
8294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8296 # Create a temporary old-style archive to link instead of a shared archive.
8297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8299 # Commands used to build and install a shared archive.
8300 archive_cmds=$lt_archive_cmds
8301 archive_expsym_cmds=$lt_archive_expsym_cmds
8302 postinstall_cmds=$lt_postinstall_cmds
8303 postuninstall_cmds=$lt_postuninstall_cmds
8305 # Commands to strip libraries.
8306 old_striplib=$lt_old_striplib
8307 striplib=$lt_striplib
8309 # Dependencies to place before the objects being linked to create a
8311 predep_objects=$lt_predep_objects
8313 # Dependencies to place after the objects being linked to create a
8315 postdep_objects=$lt_postdep_objects
8317 # Dependencies to place before the objects being linked to create a
8321 # Dependencies to place after the objects being linked to create a
8323 postdeps=$lt_postdeps
8325 # The library search path used internally by the compiler when linking
8327 compiler_lib_search_path=$lt_compiler_lib_search_path
8329 # Method to check whether dependent libraries are shared objects.
8330 deplibs_check_method=$lt_deplibs_check_method
8332 # Command to use when deplibs_check_method == file_magic.
8333 file_magic_cmd=$lt_file_magic_cmd
8335 # Flag that allows shared libraries with undefined symbols to be built.
8336 allow_undefined_flag=$lt_allow_undefined_flag
8338 # Flag that forces no undefined symbols.
8339 no_undefined_flag=$lt_no_undefined_flag
8341 # Commands used to finish a libtool library installation in a directory.
8342 finish_cmds=$lt_finish_cmds
8344 # Same as above, but a single script fragment to be evaled but not shown.
8345 finish_eval=$lt_finish_eval
8347 # Take the output of nm and produce a listing of raw symbols and C names.
8348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8350 # Transform the output of nm in a proper C declaration
8351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8353 # Transform the output of nm in a C name address pair
8354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8356 # This is the shared library runtime path variable.
8357 runpath_var=$runpath_var
8359 # This is the shared library path variable.
8360 shlibpath_var=$shlibpath_var
8362 # Is shlibpath searched before the hard-coded library search path?
8363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8365 # How to hardcode a shared library path into an executable.
8366 hardcode_action=$hardcode_action
8368 # Whether we should hardcode library paths into libraries.
8369 hardcode_into_libs=$hardcode_into_libs
8371 # Flag to hardcode \$libdir into a binary during linking.
8372 # This must work even if \$libdir does not exist.
8373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8375 # Whether we need a single -rpath flag with a separated argument.
8376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8378 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8380 hardcode_direct=$hardcode_direct
8382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8384 hardcode_minus_L=$hardcode_minus_L
8386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8387 # the resulting binary.
8388 hardcode_shlibpath_var=$hardcode_shlibpath_var
8390 # Variables whose values should be saved in libtool wrapper scripts and
8391 # restored at relink time.
8392 variables_saved_for_relink="$variables_saved_for_relink"
8394 # Whether libtool must link a program against all its dependency libraries.
8395 link_all_deplibs=$link_all_deplibs
8397 # Compile-time system search path for libraries
8398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8400 # Run-time system search path for libraries
8401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8403 # Fix the shell variable \$srcfile for the compiler.
8404 fix_srcfile_path="$fix_srcfile_path"
8406 # Set to yes if exported symbols are required.
8407 always_export_symbols=$always_export_symbols
8409 # The commands to list exported symbols.
8410 export_symbols_cmds=$lt_export_symbols_cmds
8412 # The commands to extract the exported symbol list from a shared archive.
8413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8415 # Symbols that should not be listed in the preloaded symbols.
8416 exclude_expsyms=$lt_exclude_expsyms
8418 # Symbols that must always be exported.
8419 include_expsyms=$lt_include_expsyms
8421 # ### END LIBTOOL CONFIG
8428 cat <<\EOF
>> "$cfgfile"
8430 # AIX sometimes has problems with the GCC collect2 program. For some
8431 # reason, if we set the COLLECT_NAMES environment variable, the problems
8432 # vanish in a puff of smoke.
8433 if test "X${COLLECT_NAMES+set}" != Xset
; then
8435 export COLLECT_NAMES
8440 cygwin
* | mingw
* | pw32
* | os2
*)
8441 cat <<'EOF' >> "$cfgfile"
8442 # This is a source program that is used to create dlls on Windows
8443 # Don't remove nor modify the starting and closing comments
8445 # /* ltdll.c starts here */
8446 # #define WIN32_LEAN_AND_MEAN
8447 # #include <windows.h>
8448 # #undef WIN32_LEAN_AND_MEAN
8449 # #include <stdio.h>
8451 # #ifndef __CYGWIN__
8452 # # ifdef __CYGWIN32__
8453 # # define __CYGWIN__ __CYGWIN32__
8457 # #ifdef __cplusplus
8460 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8461 # #ifdef __cplusplus
8466 # #include <cygwin/cygwin_dll.h>
8467 # DECLARE_CYGWIN_DLL( DllMain );
8469 # HINSTANCE __hDllInstance_base;
8472 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8474 # __hDllInstance_base = hInst;
8477 # /* ltdll.c ends here */
8479 # This is a source program that is used to create import libraries
8480 # on Windows for dlls which lack them. Don't remove nor modify the
8481 # starting and closing comments
8483 # /* impgen.c starts here */
8484 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8486 # This file is part of GNU libtool.
8488 # This program is free software; you can redistribute it and/or modify
8489 # it under the terms of the GNU General Public License as published by
8490 # the Free Software Foundation; either version 2 of the License, or
8491 # (at your option) any later version.
8493 # This program is distributed in the hope that it will be useful,
8494 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8496 # GNU General Public License for more details.
8498 # You should have received a copy of the GNU General Public License
8499 # along with this program; if not, write to the Free Software
8500 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8503 # #include <stdio.h> /* for printf() */
8504 # #include <unistd.h> /* for open(), lseek(), read() */
8505 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8506 # #include <string.h> /* for strdup() */
8508 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8510 # #define O_BINARY 0
8513 # static unsigned int
8514 # pe_get16 (fd, offset)
8518 # unsigned char b[2];
8519 # lseek (fd, offset, SEEK_SET);
8521 # return b[0] + (b[1]<<8);
8524 # static unsigned int
8525 # pe_get32 (fd, offset)
8529 # unsigned char b[4];
8530 # lseek (fd, offset, SEEK_SET);
8532 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8535 # static unsigned int
8539 # unsigned char *b = ptr;
8540 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8549 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8550 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8551 # unsigned long name_rvas, nexp;
8552 # unsigned char *expdata, *erva;
8553 # char *filename, *dll_name;
8555 # filename = argv[1];
8557 # dll = open(filename, O_RDONLY|O_BINARY);
8561 # dll_name = filename;
8563 # for (i=0; filename[i]; i++)
8564 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8565 # dll_name = filename + i +1;
8567 # pe_header_offset = pe_get32 (dll, 0x3c);
8568 # opthdr_ofs = pe_header_offset + 4 + 20;
8569 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8571 # if (num_entries < 1) /* no exports */
8574 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8575 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8576 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8577 # secptr = (pe_header_offset + 4 + 20 +
8578 # pe_get16 (dll, pe_header_offset + 4 + 16));
8581 # for (i = 0; i < nsections; i++)
8584 # unsigned long secptr1 = secptr + 40 * i;
8585 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8586 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8587 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8588 # lseek(dll, secptr1, SEEK_SET);
8589 # read(dll, sname, 8);
8590 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8592 # expptr = fptr + (export_rva - vaddr);
8593 # if (export_rva + export_size > vaddr + vsize)
8594 # export_size = vsize - (export_rva - vaddr);
8599 # expdata = (unsigned char*)malloc(export_size);
8600 # lseek (dll, expptr, SEEK_SET);
8601 # read (dll, expdata, export_size);
8602 # erva = expdata - export_rva;
8604 # nexp = pe_as32 (expdata+24);
8605 # name_rvas = pe_as32 (expdata+32);
8607 # printf ("EXPORTS\n");
8608 # for (i = 0; i<nexp; i++)
8610 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8611 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8616 # /* impgen.c ends here */
8622 # We use sed instead of cat because bash on DJGPP gets confused if
8623 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8624 # text mode, it properly converts lines to CR/LF. This bash problem
8625 # is reportedly fixed, but why not run on old versions too?
8626 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
8628 mv -f "$cfgfile" "$ofile" || \
8629 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8633 # If there is no Makefile yet, we rely on a make rule to execute
8634 # `config.status --recheck' to rerun these tests and create the
8635 # libtool script then.
8636 test -f Makefile
&& make "$ltmain"
8641 ac_cpp
='$CXXCPP $CPPFLAGS'
8642 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8649 # Check whether --with-tags or --without-tags was given.
8650 if test "${with_tags+set}" = set; then
8651 withval
="$with_tags"
8656 mingw
*|cygwin
*) tagnames
="$tagnames,RC" ;;
8660 if test -f "$ltmain" && test -n "$tagnames"; then
8661 if test ! -f "${ofile}"; then
8662 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8663 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8666 if test -z "$LTCC"; then
8667 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8668 if test -z "$LTCC"; then
8669 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8670 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8673 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8677 # Extract list of available tagged configurations in $ofile.
8678 # Note that this assumes the entire list is on one line.
8679 available_tags
=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8681 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8682 for tagname
in $tagnames; do
8684 # Check whether tagname contains only valid characters
8685 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8687 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8688 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8689 { (exit 1); exit 1; }; }
8693 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
8695 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8696 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8697 { (exit 1); exit 1; }; }
8700 # Update the list of available tags.
8701 if test -n "$tagname"; then
8702 echo appending configuration tag
\"$tagname\" to
$ofile
8707 ac_cpp
='$CXXCPP $CPPFLAGS'
8708 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8715 archive_cmds_need_lc_CXX
=no
8716 allow_undefined_flag_CXX
=
8717 always_export_symbols_CXX
=no
8718 archive_expsym_cmds_CXX
=
8719 export_dynamic_flag_spec_CXX
=
8720 hardcode_direct_CXX
=no
8721 hardcode_libdir_flag_spec_CXX
=
8722 hardcode_libdir_separator_CXX
=
8723 hardcode_minus_L_CXX
=no
8724 link_all_deplibs_CXX
=unknown
8725 old_archive_cmds_CXX
=$old_archive_cmds
8726 no_undefined_flag_CXX
=
8727 whole_archive_flag_spec_CXX
=
8729 # Dependencies to place before and after the object being linked:
8731 postdep_objects_CXX
=
8734 compiler_lib_search_path_CXX
=
8736 # Source file extension for C test sources.
8739 # Object file extension for compiled C test sources.
8743 # Code to be used in simple compile tests
8744 lt_simple_compile_test_code
="int some_variable = 0;"
8746 # Code to be used in simple link tests
8747 lt_simple_link_test_code
='int main(int char *) { return(0); }'
8749 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8751 # If no C compiler was specified, use CC.
8754 # Allow CC to be a program name with arguments.
8759 # Allow CC to be a program name with arguments.
8765 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8767 # We don't want -fno-exception wen compiling C++ code, so set the
8768 # no_builtin_flag separately
8769 if test "$GXX" = yes; then
8770 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
8772 lt_prog_compiler_no_builtin_flag_CXX
=
8775 if test "$GXX" = yes; then
8776 # Set up default GNU C++ configuration
8778 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8779 # archiving commands below assume that GNU ld is being used.
8780 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8781 egrep 'GNU ld' > /dev
/null
; then
8784 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 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'
8787 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
8788 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8792 # investigate it a little bit more. (MM)
8795 # ancient GNU ld didn't support --whole-archive et. al.
8796 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8797 egrep 'no-whole-archive' > /dev
/null
; then
8798 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8800 whole_archive_flag_spec_CXX
=
8806 # A generic and very simple default shared library creation
8807 # command for GNU C++ for the case where it uses the native
8808 # linker, instead of GNU ld. If possible, this setting should
8809 # overridden to take advantage of the native linker features on
8810 # the platform it is being used on.
8811 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8814 # Commands to make compiler produce verbose output that lists
8815 # what "hidden" libraries, object files and flags are used when
8816 # linking a shared library.
8817 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8825 # PORTME: fill in a description of your system's C++ link characteristics
8826 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8827 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8831 # FIXME: insert proper C++ library support
8835 if test "$host_cpu" = ia64
; then
8836 # On IA64, the linker does run time linking by default, so we don't
8837 # have to do anything special.
8838 aix_use_runtimelinking
=no
8839 exp_sym_flag
='-Bexport'
8842 aix_use_runtimelinking
=no
8844 # Test if we are trying to use run time linking or normal
8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846 # need to do runtime linking.
8847 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8848 for ld_flag
in $LDFLAGS; do
8849 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8850 aix_use_runtimelinking
=yes
8856 exp_sym_flag
='-bexport'
8857 no_entry_flag
='-bnoentry'
8860 # When large executables or shared objects are built, AIX ld can
8861 # have problems creating the table of contents. If linking a library
8862 # or program results in "error TOC overflow" add -mminimal-toc to
8863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8867 hardcode_direct_CXX
=yes
8868 hardcode_libdir_separator_CXX
=':'
8869 link_all_deplibs_CXX
=yes
8871 if test "$GXX" = yes; then
8872 case $host_os in aix4.012|aix4.012.
*)
8873 # We only want to do this on AIX 4.2 and lower, the check
8874 # below for broken collect2 doesn't work under 4.3+
8875 collect2name
=`${CC} -print-prog-name=collect2`
8876 if test -f "$collect2name" && \
8877 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8879 # We have reworked collect2
8880 hardcode_direct_CXX
=yes
8882 # We have old collect2
8883 hardcode_direct_CXX
=unsupported
8884 # It fails to find uninstalled libraries when the uninstalled
8885 # path is not listed in the libpath. Setting hardcode_minus_L
8886 # to unsupported forces relinking
8887 hardcode_minus_L_CXX
=yes
8888 hardcode_libdir_flag_spec_CXX
='-L$libdir'
8889 hardcode_libdir_separator_CXX
=
8892 shared_flag
='-shared'
8895 if test "$host_cpu" = ia64
; then
8896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897 # chokes on -Wl,-G. The following line is correct:
8900 if test "$aix_use_runtimelinking" = yes; then
8901 shared_flag
='${wl}-G'
8903 shared_flag
='${wl}-bM:SRE'
8908 # It seems that -bexpall does not export symbols beginning with
8909 # underscore (_), so it is better to generate a list of symbols to export.
8910 always_export_symbols_CXX
=yes
8911 if test "$aix_use_runtimelinking" = yes; then
8912 # Warning - without using the other runtime loading flags (-brtl),
8913 # -berok will link without error, but may produce a broken library.
8914 allow_undefined_flag_CXX
='-berok'
8915 # Determine the default libpath from the value encoded in an empty executable.
8916 cat >conftest.
$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 #include "confdefs.h"
8920 #ifdef F77_DUMMY_MAIN
8924 int F77_DUMMY_MAIN() { return 1; }
8934 rm -f conftest.
$ac_objext conftest
$ac_exeext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936 (eval $ac_link) 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try
='test -s conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8947 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8949 # Check for a 64-bit object if we didn't find anything.
8950 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; }
8953 echo "$as_me: failed program was:" >&5
8954 cat conftest.
$ac_ext >&5
8956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8957 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8959 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
8961 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"
8963 if test "$host_cpu" = ia64; then
8964 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
8965 allow_undefined_flag_CXX="-z nodefs"
8966 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"
8968 # Determine the default libpath from the value encoded in an empty executable.
8969 cat >conftest.$ac_ext <<_ACEOF
8970 #line $LINENO "configure
"
8971 #include "confdefs.h
"
8973 #ifdef F77_DUMMY_MAIN
8977 int F77_DUMMY_MAIN() { return 1; }
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>&5
8991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8998 (exit $ac_status); }; }; then
9000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9002 # Check for a 64-bit object if we didn't find anything.
9003 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; }
9006 echo "$as_me: failed program was
:" >&5
9007 cat conftest.$ac_ext >&5
9009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9010 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
9012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9013 # Warning - without using the other run time loading flags,
9014 # -berok will link without error, but may produce a broken library.
9015 no_undefined_flag_CXX=' ${wl}-bernotok'
9016 allow_undefined_flag_CXX=' ${wl}-berok'
9017 # -bexpall does not export symbols beginning with underscore (_)
9018 always_export_symbols_CXX=yes
9019 # Exported symbols can be pulled into shared objects from archives
9020 whole_archive_flag_spec_CXX=' '
9021 archive_cmds_need_lc_CXX=yes
9022 # This is similar to how AIX traditionally builds it's shared libraries.
9023 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'
9028 case $cc_basename in
9030 # FIXME: insert proper C++ library support
9037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9038 # as there is no search path for DLLs.
9039 hardcode_libdir_flag_spec_CXX='-L$libdir'
9040 allow_undefined_flag_CXX=
9041 always_export_symbols_CXX=yes
9043 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
9044 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'
9045 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
9052 # FIXME: insert proper C++ library support
9057 case $cc_basename in
9059 # FIXME: insert proper C++ library support
9063 # Green Hills C++ Compiler
9064 # FIXME: insert proper C++ library support
9068 # FIXME: insert proper C++ library support
9074 # C++ shared libraries reported to be fairly broken before switch to ELF
9078 archive_cmds_need_lc_CXX=no
9081 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9088 if test $with_gnu_ld = no; then
9089 if test "$host_cpu" = ia64; then
9090 hardcode_libdir_flag_spec_CXX='-L$libdir'
9092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_separator_CXX=:
9094 export_dynamic_flag_spec_CXX='${wl}-E'
9097 if test "$host_cpu" = ia64; then
9098 hardcode_direct_CXX=no
9099 hardcode_shlibpath_var_CXX=no
9101 hardcode_direct_CXX=yes
9103 hardcode_minus_L_CXX=yes # Not in the search PATH,
9104 # but as the default
9105 # location of the library.
9107 case $cc_basename in
9109 # FIXME: insert proper C++ library support
9115 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'
9118 if test "$host_cpu" = ia64; then
9119 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9125 # Commands to make compiler produce verbose output that lists
9126 # what "hidden
" libraries, object files and flags are used when
9127 # linking a shared library.
9129 # There doesn't appear to be a way to prevent this compiler from
9130 # explicitly linking system object files so we need to strip them
9131 # from the output so that they don't get included in the library
9133 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\
-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9136 if test "$GXX" = yes; then
9137 if test $with_gnu_ld = no; then
9140 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'
9143 if test "$host_cpu" = ia64; then
9144 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9146 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'
9152 # FIXME: insert proper C++ library support
9159 case $cc_basename in
9162 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'
9164 # Archives containing C++ object files must be created using
9165 # "CC
-ar", where "CC
" is the IRIX C++ compiler. This is
9166 # necessary to make sure instantiated templates are included
9168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9171 if test "$GXX" = yes; then
9172 if test "$with_gnu_ld" = no; then
9173 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'
9175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9178 link_all_deplibs_CXX=yes
9181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9182 hardcode_libdir_separator_CXX=:
9185 case $cc_basename in
9187 # Kuck and Associates, Inc. (KAI) C++ Compiler
9189 # KCC will only create a shared library if the output file
9190 # ends with ".so
" (or ".sl
" for HP-UX), so rename the library
9191 # to its proper name (with version) after linking.
9192 archive_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9193 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9195 # Commands to make compiler produce verbose output that lists
9196 # what "hidden
" libraries, object files and flags are used when
9197 # linking a shared library.
9199 # There doesn't appear to be a way to prevent this compiler from
9200 # explicitly linking system object files so we need to strip them
9201 # from the output so that they don't get included in the library
9203 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld
"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9205 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9208 # Archives containing C++ object files must be created using
9209 # "CC
-Bstatic", where "CC
" is the KAI C++ compiler.
9210 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215 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'
9217 runpath_var=LD_RUN_PATH
9218 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9219 hardcode_libdir_separator_CXX=:
9221 # Commands to make compiler produce verbose output that lists
9222 # what "hidden
" libraries, object files and flags are used when
9223 # linking a shared library.
9225 # There doesn't appear to be a way to prevent this compiler from
9226 # explicitly linking system object files so we need to strip them
9227 # from the output so that they don't get included in the library
9229 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'
9234 # FIXME: insert proper C++ library support
9238 # FIXME: insert proper C++ library support
9242 case $cc_basename in
9244 # FIXME: insert proper C++ library support
9248 # FIXME: insert proper C++ library support
9254 # NetBSD uses g++ - do we need to do anything?
9257 case $cc_basename in
9259 # Kuck and Associates, Inc. (KAI) C++ Compiler
9261 # KCC will only create a shared library if the output file
9262 # ends with ".so
" (or ".sl
" for HP-UX), so rename the library
9263 # to its proper name (with version) after linking.
9264 archive_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9267 hardcode_libdir_separator_CXX=:
9269 # Archives containing C++ object files must be created using
9270 # "CC
-Bstatic", where "CC
" is the KAI C++ compiler.
9271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9275 # Rational C++ 2.4.1
9276 # FIXME: insert proper C++ library support
9280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9281 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'
9283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9284 hardcode_libdir_separator_CXX=:
9286 # Commands to make compiler produce verbose output that lists
9287 # what "hidden
" libraries, object files and flags are used when
9288 # linking a shared library.
9290 # There doesn't appear to be a way to prevent this compiler from
9291 # explicitly linking system object files so we need to strip them
9292 # from the output so that they don't get included in the library
9294 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'
9297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9299 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'
9301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator_CXX=:
9304 # Commands to make compiler produce verbose output that lists
9305 # what "hidden
" libraries, object files and flags are used when
9306 # linking a shared library.
9307 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\
-L"'
9310 # FIXME: insert proper C++ library support
9317 case $cc_basename in
9319 # Kuck and Associates, Inc. (KAI) C++ Compiler
9321 # KCC will only create a shared library if the output file
9322 # ends with ".so
" (or ".sl
" for HP-UX), so rename the library
9323 # to its proper name (with version) after linking.
9324 archive_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9327 hardcode_libdir_separator_CXX=:
9329 # Archives containing C++ object files must be created using
9330 # the KAI C++ compiler.
9331 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9334 # Rational C++ 2.4.1
9335 # FIXME: insert proper C++ library support
9339 allow_undefined_flag_CXX=' -expect_unresolved \*'
9340 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'
9341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\
$i" >> $lib.exp; done~
9342 echo "-hidden">> $lib.exp~
9343 $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~
9346 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9347 hardcode_libdir_separator_CXX=:
9349 # Commands to make compiler produce verbose output that lists
9350 # what "hidden
" libraries, object files and flags are used when
9351 # linking a shared library.
9353 # There doesn't appear to be a way to prevent this compiler from
9354 # explicitly linking system object files so we need to strip them
9355 # from the output so that they don't get included in the library
9357 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'
9360 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9361 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9362 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'
9364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9365 hardcode_libdir_separator_CXX=:
9367 # Commands to make compiler produce verbose output that lists
9368 # what "hidden
" libraries, object files and flags are used when
9369 # linking a shared library.
9370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\
-L"'
9373 # FIXME: insert proper C++ library support
9380 # FIXME: insert proper C++ library support
9384 archive_cmds_need_lc_CXX=no
9385 case $cc_basename in
9387 # FIXME: insert proper C++ library support
9391 # FIXME: insert proper C++ library support
9397 case $cc_basename in
9400 # FIXME: insert proper C++ library support
9405 # FIXME: insert proper C++ library support
9409 # FIXME: insert proper C++ library support
9415 case $cc_basename in
9417 # Sun C++ 4.2, 5.x and Centerline C++
9418 no_undefined_flag_CXX=' -zdefs'
9419 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9420 archive_expsym_cmds_CXX='$echo "{ global
:" > $lib.exp~cat $export_symbols | sed -e "s
/\
(.
*\
)/\
1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9421 $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'
9423 hardcode_libdir_flag_spec_CXX='-R$libdir'
9424 hardcode_shlibpath_var_CXX=no
9426 solaris2.0-5 | solaris2.0-5.*) ;;
9428 # The C++ compiler is used as linker so we must use $wl
9429 # flag to pass the commands to the underlying system
9431 # Supported since Solaris 2.6 (maybe 2.5.1?)
9432 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9435 link_all_deplibs_CXX=yes
9437 # Commands to make compiler produce verbose output that lists
9438 # what "hidden
" libraries, object files and flags are used when
9439 # linking a shared library.
9441 # There doesn't appear to be a way to prevent this compiler from
9442 # explicitly linking system object files so we need to strip them
9443 # from the output so that they don't get included in the library
9445 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\
-R|\
-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9447 # Archives containing C++ object files must be created using
9448 # "CC
-xar", where "CC
" is the Sun C++ compiler. This is
9449 # necessary to make sure instantiated templates are included
9451 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9454 # Green Hills C++ Compiler
9455 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9457 # The C++ compiler must be used to create the archive.
9458 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9461 # GNU C++ compiler with Solaris linker
9462 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9463 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9464 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9465 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9466 archive_expsym_cmds_CXX='$echo "{ global
:" > $lib.exp~cat $export_symbols | sed -e "s
/\
(.
*\
)/\
1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9467 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9469 # Commands to make compiler produce verbose output that lists
9470 # what "hidden
" libraries, object files and flags are used when
9471 # linking a shared library.
9472 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.
$objext 2>&1 |
egrep \"\
-L\""
9474 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9476 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9477 archive_expsym_cmds_CXX='$echo "{ global
:" > $lib.exp~cat $export_symbols | sed -e "s
/\
(.
*\
)/\
1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9478 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9480 # Commands to make compiler produce verbose output that lists
9481 # what "hidden
" libraries, object files and flags are used when
9482 # linking a shared library.
9483 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.
$objext 2>&1 |
egrep \"\
-L\""
9486 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9491 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9492 archive_cmds_need_lc_CXX=no
9495 case $cc_basename in
9497 # NonStop-UX NCC 3.20
9498 # FIXME: insert proper C++ library support
9502 # FIXME: insert proper C++ library support
9508 # FIXME: insert proper C++ library support
9512 # FIXME: insert proper C++ library support
9516 echo "$as_me:$LINENO: result
: $ld_shlibs_CXX" >&5
9517 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9518 test "$ld_shlibs_CXX" = no && can_build_shared=no
9520 # Figure out "hidden
" C++ library dependencies from verbose
9521 # compiler output whening linking a shared library.
9522 cat > conftest.$ac_ext <<EOF
9526 Foo (void) { a = 0; }
9533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9537 (exit $ac_status); }; then
9538 # Parse the compiler output and extract the necessary
9539 # objects, libraries and library flags.
9541 # Sentinel used to keep track of whether or not we are before
9542 # the conftest object file.
9543 pre_test_object_deps_done=no
9545 # The `*' in the case matches for architectures that use `case' in
9546 # $output_verbose_cmd can trigger glob expansion during the loop
9547 # eval without this substitution.
9548 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9550 for p in `eval $output_verbose_link_cmd`; do
9554 # Some compilers place space between "-{L
,R
}" and the path.
9557 || test $p = "-R"; then
9564 if test "$pre_test_object_deps_done" = no; then
9567 # Internal compiler library paths should come after those
9568 # provided the user. The postdeps already come after the
9569 # user supplied libs so there is no need to process them.
9570 if test -z "$compiler_lib_search_path_CXX"; then
9571 compiler_lib_search_path_CXX="${prev}${p}"
9573 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9576 # The "-l" case would never come before the object being
9577 # linked, so don't bother handling this case.
9580 if test -z "$postdeps_CXX"; then
9581 postdeps_CXX="${prev}${p}"
9583 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9589 # This assumes that the test object file only shows up
9590 # once in the compiler output.
9591 if test "$p" = "conftest.
$objext"; then
9592 pre_test_object_deps_done=yes
9596 if test "$pre_test_object_deps_done" = no; then
9597 if test -z "$predep_objects_CXX"; then
9598 predep_objects_CXX="$p"
9600 predep_objects_CXX="$predep_objects_CXX $p"
9603 if test -z "$postdep_objects_CXX"; then
9604 postdep_objects_CXX="$p"
9606 postdep_objects_CXX="$postdep_objects_CXX $p"
9611 *) ;; # Ignore the rest.
9619 echo "libtool.
m4: error
: problem compiling C
++ test program
"
9622 $rm -f confest.$objext
9624 case " $postdeps_CXX " in
9625 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9626 *) archive_cmds_need_lc_CXX=yes ;;
9632 lt_prog_compiler_wl_CXX=
9633 lt_prog_compiler_pic_CXX=
9634 lt_prog_compiler_static_CXX=
9636 echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
9637 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6
9639 # C++ specific cases for pic, static, wl, etc.
9640 if test "$GXX" = yes; then
9641 lt_prog_compiler_wl_CXX='-Wl,'
9642 lt_prog_compiler_static_CXX='-static'
9646 # All AIX code is PIC.
9647 if test "$host_cpu" = ia64; then
9648 # AIX 5 now supports IA64 processor
9649 lt_prog_compiler_static_CXX='-Bstatic'
9653 # FIXME: we need at least 68020 code to build shared libraries, but
9654 # adding the `-m68020' flag to GCC prevents building anything better,
9656 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9658 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9659 # PIC is the default for these OSes.
9662 # This hack is so that the source file can tell whether it is being
9663 # built for inclusion in a dll (and should export symbols for example).
9664 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9666 darwin* | rhapsody*)
9667 # PIC is the default on this platform
9668 # Common symbols not allowed in MH_DYLIB files
9669 lt_prog_compiler_pic_CXX='-fno-common'
9672 # DJGPP does not support shared libraries at all
9673 lt_prog_compiler_pic_CXX=
9676 if test -d /usr/nec; then
9677 lt_prog_compiler_pic_CXX=-Kconform_pic
9681 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9682 if test "$host_cpu" != ia64; then
9683 lt_prog_compiler_pic_CXX='-fPIC'
9687 lt_prog_compiler_pic_CXX='-fPIC'
9693 # All AIX code is PIC.
9694 if test "$host_cpu" = ia64; then
9695 # AIX 5 now supports IA64 processor
9696 lt_prog_compiler_static_CXX='-Bstatic'
9698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9702 case $cc_basename in
9704 # Green Hills C++ Compiler
9705 # _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
"
9710 case $cc_basename in
9712 lt_prog_compiler_pic_CXX='-KPIC'
9715 # Green Hills C++ Compiler
9716 lt_prog_compiler_pic_CXX='-pic'
9723 # FreeBSD uses GNU C++
9725 hpux9* | hpux10* | hpux11*)
9726 case $cc_basename in
9728 lt_prog_compiler_wl_CXX='-Wl,'
9729 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive
"
9730 if test "$host_cpu" != ia64; then
9731 lt_prog_compiler_pic_CXX='+Z'
9735 lt_prog_compiler_wl_CXX='-Wl,'
9736 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive
"
9737 if test "$host_cpu" != ia64; then
9738 lt_prog_compiler_pic_CXX='+Z'
9745 irix5* | irix6* | nonstopux*)
9746 case $cc_basename in
9748 lt_prog_compiler_wl_CXX='-Wl,'
9749 lt_prog_compiler_static_CXX='-non_shared'
9750 # CC pic flag -KPIC is the default.
9757 case $cc_basename in
9760 lt_prog_compiler_wl_CXX='--backend -Wl,'
9761 lt_prog_compiler_pic_CXX='-fPIC'
9765 # Make sure the PIC flag is empty. It appears that all Alpha
9766 # Linux and Compaq Tru64 Unix objects are PIC.
9767 lt_prog_compiler_pic_CXX=
9768 lt_prog_compiler_static_CXX='-non_shared'
9779 case $cc_basename in
9781 lt_prog_compiler_pic_CXX='-W c,exportall'
9789 osf3* | osf4* | osf5*)
9790 case $cc_basename in
9792 lt_prog_compiler_wl_CXX='--backend -Wl,'
9795 # Rational C++ 2.4.1
9796 lt_prog_compiler_pic_CXX='-pic'
9799 # Digital/Compaq C++
9800 lt_prog_compiler_wl_CXX='-Wl,'
9801 # Make sure the PIC flag is empty. It appears that all Alpha
9802 # Linux and Compaq Tru64 Unix objects are PIC.
9803 lt_prog_compiler_pic_CXX=
9804 lt_prog_compiler_static_CXX='-non_shared'
9813 case $cc_basename in
9815 lt_prog_compiler_pic_CXX='-fPIC'
9822 case $cc_basename in
9824 # Sun C++ 4.2, 5.x and Centerline C++
9825 lt_prog_compiler_pic_CXX='-KPIC'
9826 lt_prog_compiler_static_CXX='-Bstatic'
9827 lt_prog_compiler_wl_CXX='-Qoption ld '
9830 # Green Hills C++ Compiler
9831 lt_prog_compiler_pic_CXX='-PIC'
9838 case $cc_basename in
9841 lt_prog_compiler_pic_CXX='-pic'
9842 lt_prog_compiler_static_CXX='-Bstatic'
9846 lt_prog_compiler_pic_CXX='-pic'
9853 case $cc_basename in
9855 # NonStop-UX NCC 3.20
9856 lt_prog_compiler_pic_CXX='-KPIC'
9867 lt_prog_compiler_can_build_shared_CXX=no
9872 echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_CXX" >&5
9873 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9876 # Check to make sure the PIC flag actually works.
9878 if test -n "$lt_prog_compiler_pic_CXX"; then
9879 echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic_CXX works
" >&5
9880 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic_CXX works...
$ECHO_C" >&6
9881 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9882 echo $ECHO_N "(cached
) $ECHO_C" >&6
9884 lt_prog_compiler_pic_works_CXX=no
9885 ac_outfile=conftest.$ac_objext
9886 save_CFLAGS="$CFLAGS"
9887 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9889 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9890 # The compiler can only warn and ignore the option if not recognized
9891 # So say no if there are warnings
9892 if test -s conftest.err; then
9893 # Append any errors to the config.log.
9894 cat conftest.err 1>&5
9896 lt_prog_compiler_pic_works_CXX=yes
9900 CFLAGS="$save_CFLAGS"
9903 echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works_CXX" >&5
9904 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9906 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9907 case $lt_prog_compiler_pic_CXX in
9909 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9912 lt_prog_compiler_pic_CXX=
9913 lt_prog_compiler_can_build_shared_CXX=no
9918 # For platforms which do not support PIC, -DPIC is meaningless:
9920 lt_prog_compiler_pic_CXX=
9923 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9927 echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9928 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6
9929 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9930 echo $ECHO_N "(cached
) $ECHO_C" >&6
9932 lt_cv_prog_compiler_c_o_CXX=no
9933 $rm -r conftest 2>/dev/null
9937 save_CXXFLAGS="$CXXFLAGS"
9938 CXXFLAGS="$CXXFLAGS -o out
/conftest2.
$ac_objext"
9939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9941 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9942 # that will create temporary files in the current directory regardless of
9943 # the output directory. Thus, making CWD read-only will cause this test
9944 # to fail, enabling locking or at least warning the user not to do parallel
9948 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
9950 # The compiler can only warn and ignore the option if not recognized
9951 # So say no if there are warnings
9952 if test -s out/conftest.err; then
9953 # Append any errors to the config.log.
9954 cat out/conftest.err 1>&5
9956 lt_cv_prog_compiler_c_o_CXX=yes
9959 CXXFLAGS="$save_CXXFLAGS"
9968 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o_CXX" >&5
9969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
9972 hard_links="nottested
"
9973 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
9974 # do not overwrite the value of need_locks provided by the user
9975 echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
9976 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6
9979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9981 ln conftest.a conftest.b 2>&5 || hard_links=no
9982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9983 echo "$as_me:$LINENO: result
: $hard_links" >&5
9984 echo "${ECHO_T}$hard_links" >&6
9985 if test "$hard_links" = no; then
9986 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9987 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9994 echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9995 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6
9997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10000 # If we're using GNU nm, then we don't want the "-C" option.
10001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10002 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10003 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'
10005 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'
10009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10012 export_symbols_cmds_CXX="$ltdll_cmds"
10015 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10019 echo "$as_me:$LINENO: result
: $ld_shlibs_CXX" >&5
10020 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10021 test "$ld_shlibs_CXX" = no && can_build_shared=no
10023 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
10024 if test "$GCC" = yes; then
10025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
10029 # Do we need to explicitly link libc?
10031 archive_cmds_need_lc_CXX=yes
10032 if test "$enable_shared" = yes && test "$GCC" = yes; then
10033 case $archive_cmds_CXX in
10035 # FIXME: we may have to deal with multi-command sequences.
10038 # Test whether the compiler implicitly links with -lc since on some
10039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10040 # to ld, don't add -lc before -lgcc.
10041 echo "$as_me:$LINENO: checking whether
-lc should be explicitly linked
in" >&5
10042 echo $ECHO_N "checking whether
-lc should be explicitly linked
in...
$ECHO_C" >&6
10044 echo 'static int dummy;' > conftest.$ac_ext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>&5
10049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10050 (exit $ac_status); } 2>conftest.err; then
10053 libobjs=conftest.$ac_objext
10055 wl=$lt_prog_compiler_wl_CXX
10061 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10062 allow_undefined_flag_CXX=
10063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1\"") >&5
10064 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10067 (exit $ac_status); }
10069 archive_cmds_need_lc_CXX=no
10071 archive_cmds_need_lc_CXX=yes
10073 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10075 cat conftest.err 1>&5
10078 echo "$as_me:$LINENO: result
: $archive_cmds_need_lc_CXX" >&5
10079 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10084 echo "$as_me:$LINENO: checking how to hardcode library paths into programs
" >&5
10085 echo $ECHO_N "checking how to hardcode library paths into programs...
$ECHO_C" >&6
10086 hardcode_action_CXX=
10087 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10088 test -n "$runpath_var CXX
"; then
10090 # We can hardcode non-existant directories.
10091 if test "$hardcode_direct_CXX" != no &&
10092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10093 # have to relink, otherwise we might link with an installed library
10094 # when we should be linking with a yet-to-be-installed one
10095 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var
, CXX
)" != no &&
10096 test "$hardcode_minus_L_CXX" != no; then
10097 # Linking always hardcodes the temporary library directory.
10098 hardcode_action_CXX=relink
10100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10101 hardcode_action_CXX=immediate
10104 # We cannot hardcode anything, or else we can only hardcode existing
10106 hardcode_action_CXX=unsupported
10108 echo "$as_me:$LINENO: result
: $hardcode_action_CXX" >&5
10109 echo "${ECHO_T}$hardcode_action_CXX" >&6
10111 if test "$hardcode_action_CXX" = relink; then
10112 # Fast installation is not supported
10113 enable_fast_install=no
10114 elif test "$shlibpath_overrides_runpath" = yes ||
10115 test "$enable_shared" = no; then
10116 # Fast installation is not necessary
10117 enable_fast_install=needless
10122 echo "$as_me:$LINENO: checking whether stripping libraries is possible
" >&5
10123 echo $ECHO_N "checking whether stripping libraries is possible...
$ECHO_C" >&6
10124 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip
" >/dev/null; then
10125 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10126 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10127 echo "$as_me:$LINENO: result
: yes" >&5
10128 echo "${ECHO_T}yes" >&6
10130 echo "$as_me:$LINENO: result
: no
" >&5
10131 echo "${ECHO_T}no
" >&6
10134 echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
10135 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6
10136 library_names_spec=
10137 libname_spec='lib$name'
10140 postuninstall_cmds=
10144 shlibpath_overrides_runpath=unknown
10146 dynamic_linker="$host_os ld.so
"
10147 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
10148 if test "$GCC" = yes; then
10149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | sed -e "s
/^libraries
://"`
10150 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
10151 # if the path contains ";" then we assume it to be the separator
10152 # otherwise default to the standard path separator (i.e. ":") - it is
10153 # assumed that no part of a normal pathname contains ";" but that should
10154 # okay in the real world where ";" in dirpaths is itself problematic.
10155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s
/$PATH_SEPARATOR/ /g
"`
10160 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
10162 need_lib_prefix=unknown
10163 hardcode_into_libs=no
10165 # when you set need_version to no, make sure it does not cause -set_version
10166 # flags to be left without arguments
10167 need_version=unknown
10172 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10173 shlibpath_var=LIBPATH
10175 # AIX 3 has no versioning support, so we append a major version to the name.
10176 soname_spec='${libname}${release}.so$major'
10181 if test "$host_cpu" = ia64; then
10182 # AIX 5 supports IA64
10183 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10184 shlibpath_var=LD_LIBRARY_PATH
10186 # With GCC up to 2.95.x, collect2 would create an import file
10187 # for dependence libraries. The import file would start with
10188 # the line `#! .'. This would cause the generated library to
10189 # depend on `.', always an invalid library. This was fixed in
10190 # development snapshots of GCC prior to 3.0.
10192 aix4 | aix4.[01] | aix4.[01].*)
10193 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10195 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10198 can_build_shared=no
10202 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10203 # soname into executable. Probably we can add versioning support to
10204 # collect2, so additional links can be useful in future.
10205 if test "$aix_use_runtimelinking" = yes; then
10206 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10207 # instead of lib<name>.a to let people know that these are not
10208 # typical AIX shared libraries.
10209 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10211 # We preserve .a as extension for shared libraries through AIX4.2
10212 # and later when we are not doing run time linking.
10213 library_names_spec='${libname}${release}.a $libname.a'
10214 soname_spec='${libname}${release}.so$major'
10216 shlibpath_var=LIBPATH
10221 library_names_spec='$libname.ixlibrary $libname.a'
10222 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10223 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'
10227 library_names_spec='${libname}.so'
10228 dynamic_linker="$host_os ld.so
"
10229 shlibpath_var=LIBRARY_PATH
10235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10236 soname_spec='${libname}${release}.so$major'
10237 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
10240 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
10241 # the default ld.so.conf also contains /usr/contrib/lib and
10242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10243 # libtool to hard-code these into programs
10246 cygwin* | mingw* | pw32*)
10247 version_type=windows
10250 case $GCC,$host_os in
10252 library_names_spec='$libname.dll.a'
10253 sys_lib_search_path_spec="/lib
/lib
/w32api
/usr
/lib
/usr
/local
/lib
"
10254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10255 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10256 dldir=$destdir/`dirname \$dlpath`~
10257 test -d \$dldir || mkdir -p \$dldir~
10258 $install_prog .libs/$dlname \$dldir/$dlname'
10259 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10260 dlpath=$dir/\$dldll~
10262 shlibpath_overrides_runpath=yes
10265 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | sed -e "s
/^libraries
://"`
10267 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10268 # It is most probably a Windows format PATH printed by
10269 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10270 # path with ; separators, and with drive letters. We can handle the
10271 # drive letters (cygwin fileutils understands them), so leave them,
10272 # especially as we might pass files found there to a mingw objdump,
10273 # which wouldn't understand a cygwinified path. Ahh.
10274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s
/$PATH_SEPARATOR/ /g
"`
10280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10283 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10286 dynamic_linker='Win32 ld.exe'
10287 # FIXME: first we should search . and the directory the executable is in
10291 darwin* | rhapsody*)
10292 dynamic_linker="$host_os dyld
"
10293 version_type=darwin
10296 # FIXME: Relying on posixy $() will cause problems for
10297 # cross-compilation, but unfortunately the echo tests do not
10298 # yet detect zsh echo's removal of \ escapes.
10299 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10300 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10301 shlibpath_overrides_runpath=yes
10302 shlibpath_var=DYLD_LIBRARY_PATH
10309 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10310 soname_spec='${libname}${release}.so$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10319 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10320 version_type=freebsd-$objformat
10321 case $version_type in
10323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10328 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10332 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10337 freebsd3.01* | freebsdelf3.01*)
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10342 shlibpath_overrides_runpath=no
10343 hardcode_into_libs=yes
10352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10353 soname_spec='${libname}${release}.so$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 hardcode_into_libs=yes
10358 hpux9* | hpux10* | hpux11*)
10359 # Give a soname corresponding to the major version so that dld.sl refuses to
10360 # link against other versions.
10364 if test "$host_cpu" = ia64; then
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.so
"
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10370 soname_spec='${libname}${release}.so$major'
10371 if test "X
$HPUX_IA64_MODE" = X32; then
10372 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
10374 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
10376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10378 dynamic_linker="$host_os dld.sl
"
10379 shlibpath_var=SHLIB_PATH
10380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10381 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10382 soname_spec='${libname}${release}.sl$major'
10384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10385 postinstall_cmds='chmod 555 $lib'
10388 irix5* | irix6* | nonstopux*)
10390 nonstopux*) version_type=nonstopux ;;
10391 *) version_type=irix ;;
10395 soname_spec='${libname}${release}.so$major'
10396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10398 irix5* | nonstopux*)
10399 libsuff= shlibsuff=
10402 case $LD in # libtool.m4 will add one of these switches to LD
10403 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10404 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10405 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10406 *) libsuff= shlibsuff= libmagic=never-match;;
10410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10411 shlibpath_overrides_runpath=no
10412 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10413 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
10416 # No shared lib support for Linux oldld, aout, or coff.
10417 linux*oldld* | linux*aout* | linux*coff*)
10421 # This must be Linux ELF.
10426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10427 soname_spec='${libname}${release}.so$major'
10428 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431 # This implies no fast_install, which is unacceptable.
10432 # Some rework will be needed to allow for fast_install
10433 # before this can be enabled.
10434 hardcode_into_libs=yes
10436 # We used to test for /lib/ld.so.1 and disable shared libraries on
10437 # powerpc, because MkLinux only supported shared libraries with the
10438 # GNU dynamic linker. Since this was broken with cross compilers,
10439 # most powerpc-linux boxes support dynamic linking these days and
10440 # people can always --disable-shared, the test was removed, and we
10441 # assume the GNU/Linux dynamic linker is in use.
10442 dynamic_linker='GNU/Linux ld.so'
10449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10450 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10451 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
10452 dynamic_linker='NetBSD (a.out) ld.so'
10454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10455 soname_spec='${libname}${release}.so$major'
10456 dynamic_linker='NetBSD ld.elf_so'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes
10460 hardcode_into_libs=yes
10465 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10474 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10475 soname_spec='${libname}${release}.so$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=yes
10484 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10485 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
10489 openbsd2.[89] | openbsd2.[89].*)
10490 shlibpath_overrides_runpath=no
10493 shlibpath_overrides_runpath=yes
10497 shlibpath_overrides_runpath=yes
10502 libname_spec='$name'
10504 library_names_spec='$libname.dll $libname.a'
10505 dynamic_linker='OS/2 ld.exe'
10506 shlibpath_var=LIBPATH
10509 osf3* | osf4* | osf5*)
10513 soname_spec='${libname}${release}.so'
10514 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
10517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10522 soname_spec='${libname}${release}.so$major'
10523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10524 shlibpath_var=LD_LIBRARY_PATH
10531 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10532 soname_spec='${libname}${release}.so$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 # ldd complains unless libraries are executable
10537 postinstall_cmds='chmod +x $lib'
10542 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10543 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10546 if test "$with_gnu_ld" = yes; then
10552 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10554 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10555 soname_spec='${libname}${release}.so$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 case $host_vendor in
10559 shlibpath_overrides_runpath=no
10564 shlibpath_overrides_runpath=no
10565 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10571 if test -d /usr/nec ;then
10573 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10574 soname_spec='$libname.so.$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10581 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10582 soname_spec='${libname}${release}.so$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10590 echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
10591 echo "${ECHO_T}$dynamic_linker" >&6
10592 test "$dynamic_linker" = no && can_build_shared=no
10594 if test "x
$enable_dlopen" != xyes; then
10595 enable_dlopen=unknown
10596 enable_dlopen_self=unknown
10597 enable_dlopen_self_static=unknown
10604 lt_cv_dlopen="load_add_on
"
10606 lt_cv_dlopen_self=yes
10609 cygwin* | mingw* | pw32*)
10610 lt_cv_dlopen="LoadLibrary
"
10615 echo "$as_me:$LINENO: checking
for shl_load
" >&5
10616 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6
10617 if test "${ac_cv_func_shl_load+set}" = set; then
10618 echo $ECHO_N "(cached
) $ECHO_C" >&6
10620 cat >conftest.$ac_ext <<_ACEOF
10621 #line $LINENO "configure
"
10622 #include "confdefs.h
"
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char shl_load (); below. */
10625 #include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error. */
10630 /* We use char because int might match the return type of a gcc2
10631 builtin and then its argument prototype would still apply. */
10635 #ifdef F77_DUMMY_MAIN
10636 # ifdef __cplusplus
10639 int F77_DUMMY_MAIN() { return 1; }
10644 /* The GNU C library defines this for functions which it implements
10645 to always fail with ENOSYS. Some functions are actually named
10646 something starting with __ and the normal name is an alias. */
10647 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_func_shl_load=yes
10671 echo "$as_me: failed program was
:" >&5
10672 cat conftest.$ac_ext >&5
10673 ac_cv_func_shl_load=no
10675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10679 if test $ac_cv_func_shl_load = yes; then
10680 lt_cv_dlopen="shl_load
"
10682 echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10683 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6
10684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10685 echo $ECHO_N "(cached
) $ECHO_C" >&6
10687 ac_check_lib_save_LIBS=$LIBS
10689 cat >conftest.$ac_ext <<_ACEOF
10690 #line $LINENO "configure
"
10691 #include "confdefs.h
"
10693 /* Override any gcc2 internal prototype to avoid an error. */
10697 /* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10700 #ifdef F77_DUMMY_MAIN
10701 # ifdef __cplusplus
10704 int F77_DUMMY_MAIN() { return 1; }
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716 (eval $ac_link) 2>&5
10718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 ac_cv_lib_dld_shl_load=yes
10728 echo "$as_me: failed program was
:" >&5
10729 cat conftest.$ac_ext >&5
10730 ac_cv_lib_dld_shl_load=no
10732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10735 echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10736 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10737 if test $ac_cv_lib_dld_shl_load = yes; then
10738 lt_cv_dlopen="shl_load
" lt_cv_dlopen_libs="-dld"
10740 echo "$as_me:$LINENO: checking
for dlopen
" >&5
10741 echo $ECHO_N "checking
for dlopen...
$ECHO_C" >&6
10742 if test "${ac_cv_func_dlopen+set}" = set; then
10743 echo $ECHO_N "(cached
) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure
"
10747 #include "confdefs.h
"
10748 /* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char dlopen (); below. */
10750 #include <assert.h>
10751 /* Override any gcc2 internal prototype to avoid an error. */
10755 /* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10760 #ifdef F77_DUMMY_MAIN
10761 # ifdef __cplusplus
10764 int F77_DUMMY_MAIN() { return 1; }
10769 /* The GNU C library defines this for functions which it implements
10770 to always fail with ENOSYS. Some functions are actually named
10771 something starting with __ and the normal name is an alias. */
10772 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784 (eval $ac_link) 2>&5
10786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_func_dlopen=yes
10796 echo "$as_me: failed program was
:" >&5
10797 cat conftest.$ac_ext >&5
10798 ac_cv_func_dlopen=no
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result
: $ac_cv_func_dlopen" >&5
10803 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10804 if test $ac_cv_func_dlopen = yes; then
10805 lt_cv_dlopen="dlopen
"
10807 echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10808 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6
10809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10810 echo $ECHO_N "(cached
) $ECHO_C" >&6
10812 ac_check_lib_save_LIBS=$LIBS
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure
"
10816 #include "confdefs.h
"
10818 /* Override any gcc2 internal prototype to avoid an error. */
10822 /* We use char because int might match the return type of a gcc2
10823 builtin and then its argument prototype would still apply. */
10825 #ifdef F77_DUMMY_MAIN
10826 # ifdef __cplusplus
10829 int F77_DUMMY_MAIN() { return 1; }
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10841 (eval $ac_link) 2>&5
10843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_lib_dl_dlopen=yes
10853 echo "$as_me: failed program was
:" >&5
10854 cat conftest.$ac_ext >&5
10855 ac_cv_lib_dl_dlopen=no
10857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10860 echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10861 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10862 if test $ac_cv_lib_dl_dlopen = yes; then
10863 lt_cv_dlopen="dlopen
" lt_cv_dlopen_libs="-ldl"
10865 echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10866 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6
10867 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10868 echo $ECHO_N "(cached
) $ECHO_C" >&6
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lsvld $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure
"
10874 #include "confdefs.h
"
10876 /* Override any gcc2 internal prototype to avoid an error. */
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10883 #ifdef F77_DUMMY_MAIN
10884 # ifdef __cplusplus
10887 int F77_DUMMY_MAIN() { return 1; }
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_lib_svld_dlopen=yes
10911 echo "$as_me: failed program was
:" >&5
10912 cat conftest.$ac_ext >&5
10913 ac_cv_lib_svld_dlopen=no
10915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10918 echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10919 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10920 if test $ac_cv_lib_svld_dlopen = yes; then
10921 lt_cv_dlopen="dlopen
" lt_cv_dlopen_libs="-lsvld"
10923 echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10924 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6
10925 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10926 echo $ECHO_N "(cached
) $ECHO_C" >&6
10928 ac_check_lib_save_LIBS=$LIBS
10930 cat >conftest.$ac_ext <<_ACEOF
10931 #line $LINENO "configure
"
10932 #include "confdefs.h
"
10934 /* Override any gcc2 internal prototype to avoid an error. */
10938 /* We use char because int might match the return type of a gcc2
10939 builtin and then its argument prototype would still apply. */
10941 #ifdef F77_DUMMY_MAIN
10942 # ifdef __cplusplus
10945 int F77_DUMMY_MAIN() { return 1; }
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_lib_dld_dld_link=yes
10969 echo "$as_me: failed program was
:" >&5
10970 cat conftest.$ac_ext >&5
10971 ac_cv_lib_dld_dld_link=no
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10978 if test $ac_cv_lib_dld_dld_link = yes; then
10979 lt_cv_dlopen="dld_link
" lt_cv_dlopen_libs="-dld"
11000 if test "x
$lt_cv_dlopen" != xno; then
11006 case $lt_cv_dlopen in
11008 save_CPPFLAGS="$CPPFLAGS"
11009 test "x
$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11011 save_LDFLAGS="$LDFLAGS"
11012 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11015 LIBS="$lt_cv_dlopen_libs $LIBS"
11017 echo "$as_me:$LINENO: checking whether a program can dlopen itself
" >&5
11018 echo $ECHO_N "checking whether a program can dlopen itself...
$ECHO_C" >&6
11019 if test "${lt_cv_dlopen_self+set}" = set; then
11020 echo $ECHO_N "(cached
) $ECHO_C" >&6
11022 if test "$cross_compiling" = yes; then :
11023 lt_cv_dlopen_self=cross
11025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11026 lt_status=$lt_dlunknown
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11028 "configure
"
11029 #include "confdefs.h
"
11038 # define LT_DLGLOBAL RTLD_GLOBAL
11041 # define LT_DLGLOBAL DL_GLOBAL
11043 # define LT_DLGLOBAL 0
11047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11048 find out it does not work in some platform. */
11049 #ifndef LT_DLLAZY_OR_NOW
11051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11054 # define LT_DLLAZY_OR_NOW DL_LAZY
11057 # define LT_DLLAZY_OR_NOW RTLD_NOW
11060 # define LT_DLLAZY_OR_NOW DL_NOW
11062 # define LT_DLLAZY_OR_NOW 0
11070 extern "C
" void exit (int);
11073 void fnord() { int i=42;}
11076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11077 int status = $lt_dlunknown;
11081 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11082 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11083 /* dlclose (self); */
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>&5
11092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11094 (./conftest; exit; ) 2>/dev/null
11096 case x$lt_status in
11097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11099 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11102 # compilation failed
11103 lt_cv_dlopen_self=no
11110 echo "$as_me:$LINENO: result
: $lt_cv_dlopen_self" >&5
11111 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11113 if test "x
$lt_cv_dlopen_self" = xyes; then
11114 LDFLAGS="$LDFLAGS $link_static_flag"
11115 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself
" >&5
11116 echo $ECHO_N "checking whether a statically linked program can dlopen itself...
$ECHO_C" >&6
11117 if test "${lt_cv_dlopen_self_static+set}" = set; then
11118 echo $ECHO_N "(cached
) $ECHO_C" >&6
11120 if test "$cross_compiling" = yes; then :
11121 lt_cv_dlopen_self_static=cross
11123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11124 lt_status=$lt_dlunknown
11125 cat > conftest.$ac_ext <<EOF
11126 #line 11126 "configure
"
11127 #include "confdefs.h
"
11136 # define LT_DLGLOBAL RTLD_GLOBAL
11139 # define LT_DLGLOBAL DL_GLOBAL
11141 # define LT_DLGLOBAL 0
11145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11146 find out it does not work in some platform. */
11147 #ifndef LT_DLLAZY_OR_NOW
11149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11152 # define LT_DLLAZY_OR_NOW DL_LAZY
11155 # define LT_DLLAZY_OR_NOW RTLD_NOW
11158 # define LT_DLLAZY_OR_NOW DL_NOW
11160 # define LT_DLLAZY_OR_NOW 0
11168 extern "C
" void exit (int);
11171 void fnord() { int i=42;}
11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175 int status = $lt_dlunknown;
11179 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11180 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11181 /* dlclose (self); */
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>&5
11190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11191 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11192 (./conftest; exit; ) 2>/dev/null
11194 case x$lt_status in
11195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11200 # compilation failed
11201 lt_cv_dlopen_self_static=no
11208 echo "$as_me:$LINENO: result
: $lt_cv_dlopen_self_static" >&5
11209 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11212 CPPFLAGS="$save_CPPFLAGS"
11213 LDFLAGS="$save_LDFLAGS"
11218 case $lt_cv_dlopen_self in
11219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11220 *) enable_dlopen_self=unknown ;;
11223 case $lt_cv_dlopen_self_static in
11224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11225 *) enable_dlopen_self_static=unknown ;;
11230 # The else clause should only fire when bootstrapping the
11231 # libtool distribution, otherwise you forgot to ship ltmain.sh
11232 # with your package, and you will get complaints that there are
11233 # no rules to generate ltmain.sh.
11234 if test -f "$ltmain"; then
11235 # Now quote all the things that may contain metacharacters while being
11236 # careful not to overquote the AC_SUBSTed values. We take copies of the
11237 # variables and quote the copies for generation of the libtool script.
11238 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11241 deplibs_check_method reload_flag reload_cmds need_locks \
11242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11243 lt_cv_sys_global_symbol_to_c_name_address \
11244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11245 old_postinstall_cmds old_postuninstall_cmds \
11249 lt_prog_compiler_wl_CXX \
11250 lt_prog_compiler_pic_CXX \
11251 lt_prog_compiler_static_CXX \
11252 lt_prog_compiler_no_builtin_flag_CXX \
11253 export_dynamic_flag_spec_CXX \
11254 thread_safe_flag_spec_CXX \
11255 whole_archive_flag_spec_CXX \
11256 old_archive_cmds_CXX \
11257 old_archive_from_new_cmds_CXX \
11258 predep_objects_CXX \
11259 postdep_objects_CXX \
11262 compiler_lib_search_path_CXX \
11264 archive_expsym_cmds_CXX \
11265 postinstall_cmds_CXX \
11266 postuninstall_cmds_CXX \
11267 old_archive_from_expsyms_cmds_CXX \
11268 allow_undefined_flag_CXX \
11269 no_undefined_flag_CXX \
11270 export_symbols_cmds_CXX \
11271 hardcode_libdir_flag_spec_CXX \
11272 hardcode_libdir_separator_CXX \
11273 lt_cv_prog_compiler_c_o_CXX \
11274 exclude_expsyms_CXX \
11275 include_expsyms_CXX; do
11278 old_archive_cmds_CXX | \
11279 old_archive_from_new_cmds_CXX | \
11280 archive_cmds_CXX | \
11281 archive_expsym_cmds_CXX | \
11282 old_archive_from_expsyms_cmds_CXX | \
11283 export_symbols_cmds_CXX | \
11284 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11285 postinstall_cmds | postuninstall_cmds | \
11286 old_postinstall_cmds | old_postuninstall_cmds | \
11287 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11288 # Double-quote double-evaled strings.
11289 eval "lt_
$var=\\\"\
`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11292 eval "lt_
$var=\\\"\
`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11298 *'\$0 --fallback-echo"')
11299 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's
/\\\\\\\
$0 --fallback-echo"$/$0 --fallback-echo"/'`
11305 cat <<__EOF__ >> "$cfgfile"
11306 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11308 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11310 # Shell to use when invoking shell scripts.
11313 # Whether or not to build shared libraries.
11314 build_libtool_libs=$enable_shared
11316 # Whether or not to build static libraries.
11317 build_old_libs=$enable_static
11319 # Whether or not to add -lc for building shared libraries.
11320 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11322 # Whether or not to optimize for fast installation.
11323 fast_install=$enable_fast_install
11326 host_alias=$host_alias
11329 # An echo program that does not interpret backslashes.
11334 AR_FLAGS=$lt_AR_FLAGS
11339 # A language-specific compiler.
11340 CC=$lt_compiler_CXX
11342 # Is the compiler the GNU C compiler?
11345 # The linker used to build libraries.
11348 # Whether we need hard or soft links.
11351 # A BSD-compatible nm program.
11354 # A sed program that does not truncate output.
11357 # A symbol stripping program
11360 # Used to examine libraries when file_magic_cmd begins "file"
11361 MAGIC_CMD=$MAGIC_CMD
11363 # Used on cygwin: DLL creation program.
11366 # Used on cygwin: object dumper.
11369 # Used on cygwin: assembler.
11372 # The name of the directory that contains temporary libtool files.
11375 # How to create reloadable object files.
11376 reload_flag=$lt_reload_flag
11377 reload_cmds=$lt_reload_cmds
11379 # How to pass a linker flag through the compiler.
11380 wl=$lt_lt_prog_compiler_wl_CXX
11382 # Object file suffix (normally "o").
11383 objext="$ac_objext"
11385 # Old archive suffix (normally "a").
11388 # Executable file suffix (normally "").
11391 # Additional compiler flags for building library objects.
11392 pic_flag=$lt_lt_prog_compiler_pic_CXX
11395 # What is the maximum length of a command?
11396 max_cmd_len=$lt_cv_sys_max_cmd_len
11398 # Does compiler simultaneously support -c and -o options?
11399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11401 # Must we lock files when doing compilation ?
11402 need_locks=$lt_need_locks
11404 # Do we need the lib prefix for modules?
11405 need_lib_prefix=$need_lib_prefix
11407 # Do we need a version for libraries?
11408 need_version=$need_version
11410 # Whether dlopen is supported.
11411 dlopen_support=$enable_dlopen
11413 # Whether dlopen of programs is supported.
11414 dlopen_self=$enable_dlopen_self
11416 # Whether dlopen of statically linked programs is supported.
11417 dlopen_self_static=$enable_dlopen_self_static
11419 # Compiler flag to prevent dynamic linking.
11420 link_static_flag=$lt_lt_prog_compiler_static_CXX
11422 # Compiler flag to turn off builtin functions.
11423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11425 # Compiler flag to allow reflexive dlopens.
11426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11428 # Compiler flag to generate shared objects directly from archives.
11429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11431 # Compiler flag to generate thread-safe objects.
11432 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11434 # Library versioning type.
11435 version_type=$version_type
11437 # Format of library name prefix.
11438 libname_spec=$lt_libname_spec
11440 # List of archive names. First name is the real one, the rest are links.
11441 # The last name is the one that the linker finds with -lNAME.
11442 library_names_spec=$lt_library_names_spec
11444 # The coded name of the library, if different from the real name.
11445 soname_spec=$lt_soname_spec
11447 # Commands used to build and install an old-style archive.
11449 old_archive_cmds=$lt_old_archive_cmds_CXX
11450 old_postinstall_cmds=$lt_old_postinstall_cmds
11451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11453 # Create an old-style archive from a shared archive.
11454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11456 # Create a temporary old-style archive to link instead of a shared archive.
11457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11459 # Commands used to build and install a shared archive.
11460 archive_cmds=$lt_archive_cmds_CXX
11461 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11462 postinstall_cmds=$lt_postinstall_cmds
11463 postuninstall_cmds=$lt_postuninstall_cmds
11465 # Commands to strip libraries.
11466 old_striplib=$lt_old_striplib
11467 striplib=$lt_striplib
11469 # Dependencies to place before the objects being linked to create a
11471 predep_objects=$lt_predep_objects_CXX
11473 # Dependencies to place after the objects being linked to create a
11475 postdep_objects=$lt_postdep_objects_CXX
11477 # Dependencies to place before the objects being linked to create a
11479 predeps=$lt_predeps_CXX
11481 # Dependencies to place after the objects being linked to create a
11483 postdeps=$lt_postdeps_CXX
11485 # The library search path used internally by the compiler when linking
11486 # a shared library.
11487 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11489 # Method to check whether dependent libraries are shared objects.
11490 deplibs_check_method=$lt_deplibs_check_method
11492 # Command to use when deplibs_check_method == file_magic.
11493 file_magic_cmd=$lt_file_magic_cmd
11495 # Flag that allows shared libraries with undefined symbols to be built.
11496 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11498 # Flag that forces no undefined symbols.
11499 no_undefined_flag=$lt_no_undefined_flag_CXX
11501 # Commands used to finish a libtool library installation in a directory.
11502 finish_cmds=$lt_finish_cmds
11504 # Same as above, but a single script fragment to be evaled but not shown.
11505 finish_eval=$lt_finish_eval
11507 # Take the output of nm and produce a listing of raw symbols and C names.
11508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11510 # Transform the output of nm in a proper C declaration
11511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11513 # Transform the output of nm in a C name address pair
11514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11516 # This is the shared library runtime path variable.
11517 runpath_var=$runpath_var
11519 # This is the shared library path variable.
11520 shlibpath_var=$shlibpath_var
11522 # Is shlibpath searched before the hard-coded library search path?
11523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11525 # How to hardcode a shared library path into an executable.
11526 hardcode_action=$hardcode_action_CXX
11528 # Whether we should hardcode library paths into libraries.
11529 hardcode_into_libs=$hardcode_into_libs
11531 # Flag to hardcode \$libdir into a binary during linking.
11532 # This must work even if \$libdir does not exist.
11533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11535 # Whether we need a single -rpath flag with a separated argument.
11536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11538 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11539 # resulting binary.
11540 hardcode_direct=$hardcode_direct_CXX
11542 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11543 # resulting binary.
11544 hardcode_minus_L=$hardcode_minus_L_CXX
11546 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11547 # the resulting binary.
11548 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11550 # Variables whose values should be saved in libtool wrapper scripts and
11551 # restored at relink time.
11552 variables_saved_for_relink="$variables_saved_for_relink"
11554 # Whether libtool must link a program against all its dependency libraries.
11555 link_all_deplibs=$link_all_deplibs_CXX
11557 # Compile-time system search path for libraries
11558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11560 # Run-time system search path for libraries
11561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11563 # Fix the shell variable \$srcfile for the compiler.
11564 fix_srcfile_path="$fix_srcfile_path_CXX"
11566 # Set to yes if exported symbols are required.
11567 always_export_symbols=$always_export_symbols_CXX
11569 # The commands to list exported symbols.
11570 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11572 # The commands to extract the exported symbol list from a shared archive.
11573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11575 # Symbols that should not be listed in the preloaded symbols.
11576 exclude_expsyms=$lt_exclude_expsyms_CXX
11578 # Symbols that must always be exported.
11579 include_expsyms=$lt_include_expsyms_CXX
11581 # ### END LIBTOOL TAG CONFIG: $tagname
11587 # If there is no Makefile yet, we rely on a make rule to execute
11588 # `config.status --recheck' to rerun these tests and create the
11589 # libtool script then.
11590 test -f Makefile
&& make "$ltmain"
11595 ac_cpp
='$CXXCPP $CPPFLAGS'
11596 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11608 # Source file extension for C test sources.
11611 # Object file extension for compiled C test sources.
11615 # Code to be used in simple compile tests
11616 lt_simple_compile_test_code
="class foo {};"
11618 # Code to be used in simple link tests
11619 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }'
11621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11623 # If no C compiler was specified, use CC.
11626 # Allow CC to be a program name with arguments.
11631 # Allow CC to be a program name with arguments.
11638 # GCJ did not exist at the time GCC didn't implicitly link libc in.
11639 archive_cmds_need_lc_GCJ
=no
11642 lt_prog_compiler_no_builtin_flag_GCJ
=
11644 if test "$GCC" = yes; then
11645 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
11647 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11648 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11649 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 lt_cv_prog_compiler_rtti_exceptions
=no
11653 ac_outfile
=conftest.
$ac_objext
11654 save_CFLAGS
="$CFLAGS"
11655 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11656 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11657 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
11658 # The compiler can only warn and ignore the option if not recognized
11659 # So say no if there are warnings
11660 if test -s conftest.err
; then
11661 # Append any errors to the config.log.
11662 cat conftest.err
1>&5
11664 lt_cv_prog_compiler_rtti_exceptions
=yes
11668 CFLAGS
="$save_CFLAGS"
11671 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11672 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11674 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11675 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11682 lt_prog_compiler_wl_GCJ
=
11683 lt_prog_compiler_pic_GCJ
=
11684 lt_prog_compiler_static_GCJ
=
11686 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11687 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11689 if test "$GCC" = yes; then
11690 lt_prog_compiler_wl_GCJ
='-Wl,'
11691 lt_prog_compiler_static_GCJ
='-static'
11695 # All AIX code is PIC.
11696 if test "$host_cpu" = ia64
; then
11697 # AIX 5 now supports IA64 processor
11698 lt_prog_compiler_static_GCJ
='-Bstatic'
11703 # FIXME: we need at least 68020 code to build shared libraries, but
11704 # adding the `-m68020' flag to GCC prevents building anything better,
11706 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
11709 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11710 # PIC is the default for these OSes.
11713 mingw
* | pw32
* | os2
*)
11714 # This hack is so that the source file can tell whether it is being
11715 # built for inclusion in a dll (and should export symbols for example).
11716 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
11719 darwin
* | rhapsody
*)
11720 # PIC is the default on this platform
11721 # Common symbols not allowed in MH_DYLIB files
11722 lt_prog_compiler_pic_GCJ
='-fno-common'
11726 # Just because we use GCC doesn't mean we suddenly get shared libraries
11727 # on systems that don't support them.
11728 lt_prog_compiler_can_build_shared_GCJ
=no
11733 if test -d /usr
/nec
; then
11734 lt_prog_compiler_pic_GCJ
=-Kconform_pic
11739 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11740 if test "$host_cpu" != ia64
; then
11741 lt_prog_compiler_pic_GCJ
='-fPIC'
11746 lt_prog_compiler_pic_GCJ
='-fPIC'
11750 # PORTME Check for flag to pass linker flags through the system compiler.
11753 lt_prog_compiler_wl_GCJ
='-Wl,'
11754 if test "$host_cpu" = ia64
; then
11755 # AIX 5 now supports IA64 processor
11756 lt_prog_compiler_static_GCJ
='-Bstatic'
11758 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
11762 mingw
* | pw32
* | os2
*)
11763 # This hack is so that the source file can tell whether it is being
11764 # built for inclusion in a dll (and should export symbols for example).
11765 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
11768 hpux9
* | hpux10
* | hpux11
*)
11769 lt_prog_compiler_wl_GCJ
='-Wl,'
11770 if test "$host_cpu" != ia64
; then
11771 lt_prog_compiler_pic_GCJ
='+Z'
11773 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11774 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
11777 irix5
* | irix6
* | nonstopux
*)
11778 lt_prog_compiler_wl_GCJ
='-Wl,'
11779 # PIC (with -KPIC) is the default.
11780 lt_prog_compiler_static_GCJ
='-non_shared'
11784 lt_prog_compiler_pic_GCJ
='-KPIC'
11785 lt_prog_compiler_static_GCJ
='-Bstatic'
11788 osf3
* | osf4
* | osf5
*)
11789 lt_prog_compiler_wl_GCJ
='-Wl,'
11790 # All OSF/1 code is PIC.
11791 lt_prog_compiler_static_GCJ
='-non_shared'
11795 lt_prog_compiler_pic_GCJ
='-Kpic'
11796 lt_prog_compiler_static_GCJ
='-dn'
11800 lt_prog_compiler_wl_GCJ
='-Wl,'
11801 lt_prog_compiler_pic_GCJ
='-KPIC'
11802 lt_prog_compiler_static_GCJ
='-Bstatic'
11806 lt_prog_compiler_wl_GCJ
='-Qoption ld '
11807 lt_prog_compiler_pic_GCJ
='-PIC'
11808 lt_prog_compiler_static_GCJ
='-Bstatic'
11811 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11812 if test "x$host_vendor" = xsni
; then
11813 lt_prog_compiler_wl_GCJ
='-LD'
11815 lt_prog_compiler_wl_GCJ
='-Wl,'
11817 lt_prog_compiler_pic_GCJ
='-KPIC'
11818 lt_prog_compiler_static_GCJ
='-Bstatic'
11822 if test -d /usr
/nec
;then
11823 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
11824 lt_prog_compiler_static_GCJ
='-Bstatic'
11829 lt_prog_compiler_pic_GCJ
='-pic'
11830 lt_prog_compiler_static_GCJ
='-Bstatic'
11834 lt_prog_compiler_can_build_shared_GCJ
=no
11839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
11840 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11843 # Check to make sure the PIC flag actually works.
11845 if test -n "$lt_prog_compiler_pic_GCJ"; then
11846 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11847 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11848 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 lt_prog_compiler_pic_works_GCJ
=no
11852 ac_outfile
=conftest.
$ac_objext
11853 save_CFLAGS
="$CFLAGS"
11854 CFLAGS
="$CFLAGS $lt_prog_compiler_pic_GCJ"
11855 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11856 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
11857 # The compiler can only warn and ignore the option if not recognized
11858 # So say no if there are warnings
11859 if test -s conftest.err
; then
11860 # Append any errors to the config.log.
11861 cat conftest.err
1>&5
11863 lt_prog_compiler_pic_works_GCJ
=yes
11867 CFLAGS
="$save_CFLAGS"
11870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
11871 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11873 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
11874 case $lt_prog_compiler_pic_GCJ in
11876 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
11879 lt_prog_compiler_pic_GCJ
=
11880 lt_prog_compiler_can_build_shared_GCJ
=no
11885 # For platforms which do not support PIC, -DPIC is meaningless:
11887 lt_prog_compiler_pic_GCJ
=
11890 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
11894 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11895 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11896 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 lt_cv_prog_compiler_c_o_GCJ
=no
11900 $rm -r conftest
2>/dev
/null
11904 save_GCJFLAGS
="$CFLAGS"
11905 CFLAGS
="$GCJFLAGS -o out/conftest2.$ac_objext"
11906 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11908 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11909 # that will create temporary files in the current directory regardless of
11910 # the output directory. Thus, making CWD read-only will cause this test
11911 # to fail, enabling locking or at least warning the user not to do parallel
11915 if (eval $ac_compile 2>out
/conftest.err
) && test -s out
/conftest2.
$ac_objext
11917 # The compiler can only warn and ignore the option if not recognized
11918 # So say no if there are warnings
11919 if test -s out
/conftest.err
; then
11920 # Append any errors to the config.log.
11921 cat out
/conftest.err
1>&5
11923 lt_cv_prog_compiler_c_o_GCJ
=yes
11926 CFLAGS
="$save_CFLAGS"
11928 $rm conftest
* out
/*
11935 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
11936 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
11939 hard_links
="nottested"
11940 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
11941 # do not overwrite the value of need_locks provided by the user
11942 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11943 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11946 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11948 ln conftest.a conftest.b
2>&5 || hard_links
=no
11949 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11950 echo "$as_me:$LINENO: result: $hard_links" >&5
11951 echo "${ECHO_T}$hard_links" >&6
11952 if test "$hard_links" = no
; then
11953 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11954 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11961 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11965 allow_undefined_flag_GCJ
=
11968 archive_cmds_need_lc_GCJ
=
11969 archive_expsym_cmds_GCJ
=
11970 old_archive_From_new_cmds_GCJ
=
11971 old_archive_from_expsyms_cmds_GCJ
=
11972 export_dynamic_flag_spec_GCJ
=
11973 whole_archive_flag_spec_GCJ
=
11974 thread_safe_flag_spec_GCJ
=
11975 hardcode_libdir_flag_spec_GCJ
=
11976 hardcode_libdir_separator_GCJ
=
11977 hardcode_direct_GCJ
=no
11978 hardcode_minus_L_GCJ
=no
11979 hardcode_shlibpath_var_GCJ
=unsupported
11980 link_all_deplibs_GCJ
=unknown
11981 always_export_symbols_GCJ
=no
11982 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
11983 # include_expsyms should be a list of space-separated symbols to be *always*
11984 # included in the symbol list
11985 include_expsyms_GCJ
=
11986 # exclude_expsyms can be an egrep regular expression of symbols to exclude
11987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11989 # as well as any symbol that contains `d'.
11990 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
11991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11992 # platforms (ab)use it in PIC code, but their linkers get confused if
11993 # the symbol is explicitly referenced. Since portable code cannot
11994 # rely on this symbol name, it's probably fine to never include it in
11995 # preloaded symbol tables.
11996 extract_expsyms_cmds
=
11999 cygwin
* | mingw
* | pw32
*)
12000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12001 # When not using gcc, we currently assume that we are using
12002 # Microsoft Visual C++.
12003 if test "$GCC" != yes; then
12013 if test "$with_gnu_ld" = yes; then
12014 # If archive_cmds runs LD, not CC, wlarc should be empty
12017 # See if GNU ld supports shared libraries.
12019 aix3
* | aix4
* | aix5
*)
12020 # On AIX/PPC, the GNU linker is very broken
12021 if test "$host_cpu" != ia64
; then
12025 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12026 *** to be unable to reliably create shared libraries on AIX.
12027 *** Therefore, libtool is disabling shared libraries support. If you
12028 *** really care for shared libraries, you may want to modify your PATH
12029 *** so that a non-GNU linker is found, and then restart.
12036 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)'
12037 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12038 hardcode_minus_L_GCJ
=yes
12040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12041 # that the semantics of dynamic libraries on AmigaOS, at least up
12042 # to version 4, is to share data among multiple programs linked
12043 # with the same dynamic library. Since this doesn't match the
12044 # behavior of shared libraries on other platforms, we can't use
12050 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
12051 allow_undefined_flag_GCJ
=unsupported
12052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12053 # support --undefined. This deserves some investigation. FIXME
12054 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12062 # as there is no search path for DLLs.
12063 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12064 allow_undefined_flag_GCJ
=
12065 always_export_symbols_GCJ
=yes
12067 if $LD --help 2>&1 |
egrep 'auto-import' > /dev
/null
; then
12068 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12069 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
12076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12077 # no search path for DLLs.
12078 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12079 allow_undefined_flag_GCJ
=unsupported
12080 always_export_symbols_GCJ
=yes
12082 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
12083 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12084 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12085 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12086 else $CC -o impgen impgen.c ; fi)~
12087 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12089 old_archive_from_expsyms_cmds_GCJ
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12091 # FIXME: what about values for MSVC?
12092 dll_entry
=__cygwin_dll_entry@
12
12096 dll_entry
=_DllMainCRTStartup@
12
12100 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
12102 # recent cygwin and mingw systems supply a stub DllMain which the user
12103 # can override, but on older systems we have to supply one (in ltdll.c)
12104 if test "x$lt_cv_need_dllmain" = "xyes"; then
12105 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
12106 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12107 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12113 # Extract the symbol export list from an `--export-all' def file,
12114 # then regenerate the def file from the symbol export list, so that
12115 # the compiled dll only exports the symbol export list.
12116 # Be careful not to strip the DATA tag left by newer dlltools.
12117 export_symbols_cmds_GCJ
="$ltdll_cmds"'
12118 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12119 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12121 # If the export-symbols file already is a .def file (1st line
12122 # is EXPORTS), use it as is.
12123 # If DATA tags from a recent dlltool are present, honour them!
12124 archive_expsym_cmds_GCJ
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12125 cp $export_symbols $output_objdir/$soname-def;
12127 echo EXPORTS > $output_objdir/$soname-def;
12129 cat $export_symbols | while read symbol; do
12130 set dummy \$symbol;
12132 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12133 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12135 _lt_hint=`expr 1 + \$_lt_hint`;
12139 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12140 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12141 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12142 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12143 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12147 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12148 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12151 archive_cmds_GCJ
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12152 archive_expsym_cmds_GCJ
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12157 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
12161 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12162 *** create shared libraries on Solaris systems. Therefore, libtool
12163 *** is disabling shared libraries support. We urge you to upgrade GNU
12164 *** binutils to release 2.9.1 or newer. Another option is to modify
12165 *** your PATH or compiler configuration so that the native linker is
12166 *** used, and then restart.
12169 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
12170 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12171 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12178 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12180 hardcode_direct_GCJ
=yes
12181 hardcode_shlibpath_var_GCJ
=no
12185 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
12186 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12187 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12194 if test "$ld_shlibs_GCJ" = yes; then
12195 runpath_var
=LD_RUN_PATH
12196 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
12197 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
12199 cygwin
* | mingw
* | pw32
*)
12200 # dlltool doesn't understand --whole-archive et. al.
12201 whole_archive_flag_spec_GCJ
=
12204 # ancient GNU ld didn't support --whole-archive et. al.
12205 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
12206 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12208 whole_archive_flag_spec_GCJ
=
12214 # PORTME fill in a description of your system's linker (not GNU ld)
12217 allow_undefined_flag_GCJ
=unsupported
12218 always_export_symbols_GCJ
=yes
12219 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'
12220 # Note: this linker hardcodes the directories in LIBPATH if there
12221 # are no directories specified by -L.
12222 hardcode_minus_L_GCJ
=yes
12223 if test "$GCC" = yes && test -z "$link_static_flag"; then
12224 # Neither direct hardcoding nor static linking is supported with a
12226 hardcode_direct_GCJ
=unsupported
12231 if test "$host_cpu" = ia64
; then
12232 # On IA64, the linker does run time linking by default, so we don't
12233 # have to do anything special.
12234 aix_use_runtimelinking
=no
12235 exp_sym_flag
='-Bexport'
12238 # If we're using GNU nm, then we don't want the "-C" option.
12239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12240 if $NM -V 2>&1 |
egrep '(GNU)' > /dev
/null
; then
12241 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'
12243 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'
12245 aix_use_runtimelinking
=no
12247 # Test if we are trying to use run time linking or normal
12248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12249 # need to do runtime linking.
12250 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
12251 for ld_flag
in $LDFLAGS; do
12252 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12253 aix_use_runtimelinking
=yes
12259 exp_sym_flag
='-bexport'
12260 no_entry_flag
='-bnoentry'
12263 # When large executables or shared objects are built, AIX ld can
12264 # have problems creating the table of contents. If linking a library
12265 # or program results in "error TOC overflow" add -mminimal-toc to
12266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12269 archive_cmds_GCJ
=''
12270 hardcode_direct_GCJ
=yes
12271 hardcode_libdir_separator_GCJ
=':'
12272 link_all_deplibs_GCJ
=yes
12274 if test "$GCC" = yes; then
12275 case $host_os in aix4.012|aix4.012.
*)
12276 # We only want to do this on AIX 4.2 and lower, the check
12277 # below for broken collect2 doesn't work under 4.3+
12278 collect2name
=`${CC} -print-prog-name=collect2`
12279 if test -f "$collect2name" && \
12280 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
12282 # We have reworked collect2
12283 hardcode_direct_GCJ
=yes
12285 # We have old collect2
12286 hardcode_direct_GCJ
=unsupported
12287 # It fails to find uninstalled libraries when the uninstalled
12288 # path is not listed in the libpath. Setting hardcode_minus_L
12289 # to unsupported forces relinking
12290 hardcode_minus_L_GCJ
=yes
12291 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12292 hardcode_libdir_separator_GCJ
=
12295 shared_flag
='-shared'
12298 if test "$host_cpu" = ia64
; then
12299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12300 # chokes on -Wl,-G. The following line is correct:
12303 if test "$aix_use_runtimelinking" = yes; then
12304 shared_flag
='${wl}-G'
12306 shared_flag
='${wl}-bM:SRE'
12311 # It seems that -bexpall does not export symbols beginning with
12312 # underscore (_), so it is better to generate a list of symbols to export.
12313 always_export_symbols_GCJ
=yes
12314 if test "$aix_use_runtimelinking" = yes; then
12315 # Warning - without using the other runtime loading flags (-brtl),
12316 # -berok will link without error, but may produce a broken library.
12317 allow_undefined_flag_GCJ
='-berok'
12318 # Determine the default libpath from the value encoded in an empty executable.
12319 cat >conftest.
$ac_ext <<_ACEOF
12320 #line $LINENO "configure"
12321 #include "confdefs.h"
12323 #ifdef F77_DUMMY_MAIN
12324 # ifdef __cplusplus
12327 int F77_DUMMY_MAIN() { return 1; }
12337 rm -f conftest.
$ac_objext conftest
$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try
='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12350 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12352 # Check for a 64-bit object if we didn't find anything.
12353 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; }
12356 echo "$as_me: failed program was:" >&5
12357 cat conftest.
$ac_ext >&5
12359 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12360 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12362 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
12363 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"
12365 if test "$host_cpu" = ia64; then
12366 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
12367 allow_undefined_flag_GCJ="-z nodefs"
12368 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"
12370 # Determine the default libpath from the value encoded in an empty executable.
12371 cat >conftest.$ac_ext <<_ACEOF
12372 #line $LINENO "configure
"
12373 #include "confdefs.h
"
12375 #ifdef F77_DUMMY_MAIN
12376 # ifdef __cplusplus
12379 int F77_DUMMY_MAIN() { return 1; }
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>&5
12393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12400 (exit $ac_status); }; }; then
12402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12404 # Check for a 64-bit object if we didn't find anything.
12405 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; }
12408 echo "$as_me: failed program was
:" >&5
12409 cat conftest.$ac_ext >&5
12411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12412 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
12414 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12415 # Warning - without using the other run time loading flags,
12416 # -berok will link without error, but may produce a broken library.
12417 no_undefined_flag_GCJ=' ${wl}-bernotok'
12418 allow_undefined_flag_GCJ=' ${wl}-berok'
12419 # -bexpall does not export symbols beginning with underscore (_)
12420 always_export_symbols_GCJ=yes
12421 # Exported symbols can be pulled into shared objects from archives
12422 whole_archive_flag_spec_GCJ=' '
12423 archive_cmds_need_lc_GCJ=yes
12424 # This is similar to how AIX traditionally builds it's shared libraries.
12425 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'
12431 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)'
12432 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12433 hardcode_minus_L_GCJ
=yes
12434 # see comment about different semantics on the GNU ld section
12439 export_dynamic_flag_spec_GCJ
=-rdynamic
12442 cygwin
* | mingw
* | pw32
*)
12443 # When not using gcc, we currently assume that we are using
12444 # Microsoft Visual C++.
12445 # hardcode_libdir_flag_spec is actually meaningless, as there is
12446 # no search path for DLLs.
12447 hardcode_libdir_flag_spec_GCJ
=' '
12448 allow_undefined_flag_GCJ
=unsupported
12449 # Tell ltmain to make .lib files, not .a files.
12451 # FIXME: Setting linknames here is a bad hack.
12452 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12453 # The linker will automatically build a .lib file if we build a DLL.
12454 old_archive_From_new_cmds_GCJ
='true'
12455 # FIXME: Should let the user specify the lib program.
12456 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
12457 fix_srcfile_path
='`cygpath -w "$srcfile"`'
12460 darwin
* | rhapsody
*)
12462 rhapsody
* | darwin1.
[012])
12463 allow_undefined_flag_GCJ
='-undefined suppress'
12466 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
12470 # FIXME: Relying on posixy $() will cause problems for
12471 # cross-compilation, but unfortunately the echo tests do not
12472 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12473 # `"' quotes if we put them in here... so don't!
12474 archive_cmds_GCJ
='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12475 # We need to add '_' to the symbols in $export_symbols first
12476 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12477 hardcode_direct_GCJ
=yes
12478 hardcode_shlibpath_var_GCJ
=no
12479 whole_archive_flag_spec_GCJ
='-all_load $convenience'
12483 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12484 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12485 hardcode_shlibpath_var_GCJ
=no
12492 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12493 # support. Future versions do this automatically, but an explicit c++rt0.o
12494 # does not break anything, and helps significantly (at the cost of a little
12497 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12498 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12499 hardcode_direct_GCJ
=yes
12500 hardcode_shlibpath_var_GCJ
=no
12503 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12505 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12506 hardcode_direct_GCJ
=yes
12507 hardcode_minus_L_GCJ
=yes
12508 hardcode_shlibpath_var_GCJ
=no
12511 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12513 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12514 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12515 hardcode_direct_GCJ
=yes
12516 hardcode_shlibpath_var_GCJ
=no
12519 hpux9
* | hpux10
* | hpux11
*)
12520 if test "$GCC" = yes; then
12523 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'
12526 if test "$host_cpu" = ia64
; then
12527 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12529 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12536 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'
12539 if test "$host_cpu" = ia64
; then
12540 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12542 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12547 if test "$host_cpu" = ia64
; then
12548 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12549 hardcode_direct_GCJ
=no
12550 hardcode_shlibpath_var_GCJ
=no
12552 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
12553 hardcode_libdir_separator_GCJ
=:
12554 hardcode_direct_GCJ
=yes
12556 # hardcode_minus_L: Not really in the search PATH,
12557 # but as the default location of the library.
12558 hardcode_minus_L_GCJ
=yes
12559 export_dynamic_flag_spec_GCJ
='${wl}-E'
12562 irix5
* | irix6
* | nonstopux
*)
12563 if test "$GCC" = yes; then
12564 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'
12566 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'
12568 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12569 hardcode_libdir_separator_GCJ
=:
12570 link_all_deplibs_GCJ
=yes
12574 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12575 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12577 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12579 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12580 hardcode_direct_GCJ
=yes
12581 hardcode_shlibpath_var_GCJ
=no
12585 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12586 hardcode_direct_GCJ
=yes
12587 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12588 hardcode_libdir_separator_GCJ
=:
12589 hardcode_shlibpath_var_GCJ
=no
12593 hardcode_direct_GCJ
=yes
12594 hardcode_shlibpath_var_GCJ
=no
12596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12597 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12598 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
12599 export_dynamic_flag_spec_GCJ
='${wl}-E'
12602 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
12603 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12604 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12607 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12608 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
12615 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12616 hardcode_minus_L_GCJ
=yes
12617 allow_undefined_flag_GCJ
=unsupported
12618 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'
12619 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12623 if test "$GCC" = yes; then
12624 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
12625 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'
12627 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
12628 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'
12630 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12631 hardcode_libdir_separator_GCJ
=:
12634 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
12635 if test "$GCC" = yes; then
12636 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
12637 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'
12638 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12640 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
12641 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'
12642 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12643 $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'
12645 # Both c and cxx compiler support -rpath directly
12646 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
12648 hardcode_libdir_separator_GCJ
=:
12652 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12653 hardcode_shlibpath_var_GCJ
=no
12654 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
12655 runpath_var
=LD_RUN_PATH
12656 hardcode_runpath_var
=yes
12660 no_undefined_flag_GCJ
=' -z text'
12661 if test "$GCC" = yes; then
12662 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12663 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12666 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12667 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12670 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12671 hardcode_shlibpath_var_GCJ
=no
12673 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12674 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12675 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
12677 link_all_deplibs_GCJ
=yes
12681 if test "x$host_vendor" = xsequent
; then
12682 # Use $CC to link under sequent, because it throws in some extra .o
12683 # files that make .init and .fini sections work.
12684 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12686 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12688 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12689 hardcode_direct_GCJ
=yes
12690 hardcode_minus_L_GCJ
=yes
12691 hardcode_shlibpath_var_GCJ
=no
12695 if test "x$host_vendor" = xsni
; then
12696 archive_cmds_GCJ
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12697 hardcode_direct_GCJ
=yes # is this really true???
12699 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12700 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
12702 runpath_var
='LD_RUN_PATH'
12703 hardcode_shlibpath_var_GCJ
=no
12707 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12708 hardcode_shlibpath_var_GCJ
=no
12709 export_dynamic_flag_spec_GCJ
='-Bexport'
12713 if test -d /usr
/nec
; then
12714 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12715 hardcode_shlibpath_var_GCJ
=no
12716 runpath_var
=LD_RUN_PATH
12717 hardcode_runpath_var
=yes
12723 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_direct_GCJ
=yes
12725 hardcode_minus_L_GCJ
=no
12726 hardcode_shlibpath_var_GCJ
=no
12727 hardcode_runpath_var
=yes
12728 runpath_var
=LD_RUN_PATH
12731 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
12732 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
12733 if test "$GCC" = yes; then
12734 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12736 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12738 runpath_var
='LD_RUN_PATH'
12739 hardcode_shlibpath_var_GCJ
=no
12743 no_undefined_flag_GCJ
=' -z text'
12744 # $CC -shared without GNU ld will not create a library from C++
12745 # object files and a static libstdc++, better avoid it by now
12746 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12747 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12749 hardcode_libdir_flag_spec_GCJ
=
12750 hardcode_shlibpath_var_GCJ
=no
12751 runpath_var
='LD_RUN_PATH'
12755 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12756 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12757 hardcode_shlibpath_var_GCJ
=no
12766 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12767 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12768 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
12770 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12771 if test "$GCC" = yes; then
12772 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12776 # Do we need to explicitly link libc?
12778 archive_cmds_need_lc_GCJ
=yes
12779 if test "$enable_shared" = yes && test "$GCC" = yes; then
12780 case $archive_cmds_GCJ in
12782 # FIXME: we may have to deal with multi-command sequences.
12785 # Test whether the compiler implicitly links with -lc since on some
12786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12787 # to ld, don't add -lc before -lgcc.
12788 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12789 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12791 echo 'static int dummy;' > conftest.
$ac_ext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } 2>conftest.err
; then
12800 libobjs
=conftest.
$ac_objext
12802 wl
=$lt_prog_compiler_wl_GCJ
12808 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
12809 allow_undefined_flag_GCJ
=
12810 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12811 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }
12816 archive_cmds_need_lc_GCJ
=no
12818 archive_cmds_need_lc_GCJ
=yes
12820 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
12822 cat conftest.err
1>&5
12825 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
12826 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12831 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12832 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12833 hardcode_action_GCJ
=
12834 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12835 test -n "$runpath_var GCJ"; then
12837 # We can hardcode non-existant directories.
12838 if test "$hardcode_direct_GCJ" != no
&&
12839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12840 # have to relink, otherwise we might link with an installed library
12841 # when we should be linking with a yet-to-be-installed one
12842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12843 test "$hardcode_minus_L_GCJ" != no
; then
12844 # Linking always hardcodes the temporary library directory.
12845 hardcode_action_GCJ
=relink
12847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12848 hardcode_action_GCJ
=immediate
12851 # We cannot hardcode anything, or else we can only hardcode existing
12853 hardcode_action_GCJ
=unsupported
12855 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12856 echo "${ECHO_T}$hardcode_action_GCJ" >&6
12858 if test "$hardcode_action_GCJ" = relink
; then
12859 # Fast installation is not supported
12860 enable_fast_install
=no
12861 elif test "$shlibpath_overrides_runpath" = yes ||
12862 test "$enable_shared" = no
; then
12863 # Fast installation is not necessary
12864 enable_fast_install
=needless
12869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12871 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12872 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12873 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12874 echo "$as_me:$LINENO: result: yes" >&5
12875 echo "${ECHO_T}yes" >&6
12877 echo "$as_me:$LINENO: result: no" >&5
12878 echo "${ECHO_T}no" >&6
12881 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12883 library_names_spec
=
12884 libname_spec
='lib$name'
12887 postuninstall_cmds
=
12891 shlibpath_overrides_runpath
=unknown
12893 dynamic_linker
="$host_os ld.so"
12894 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12895 if test "$GCC" = yes; then
12896 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12897 if echo "$sys_lib_search_path_spec" |
egrep ';' >/dev
/null
; then
12898 # if the path contains ";" then we assume it to be the separator
12899 # otherwise default to the standard path separator (i.e. ":") - it is
12900 # assumed that no part of a normal pathname contains ";" but that should
12901 # okay in the real world where ";" in dirpaths is itself problematic.
12902 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12904 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
12907 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12909 need_lib_prefix
=unknown
12910 hardcode_into_libs
=no
12912 # when you set need_version to no, make sure it does not cause -set_version
12913 # flags to be left without arguments
12914 need_version
=unknown
12919 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
12920 shlibpath_var
=LIBPATH
12922 # AIX 3 has no versioning support, so we append a major version to the name.
12923 soname_spec
='${libname}${release}.so$major'
12928 if test "$host_cpu" = ia64
; then
12929 # AIX 5 supports IA64
12930 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12931 shlibpath_var
=LD_LIBRARY_PATH
12933 # With GCC up to 2.95.x, collect2 would create an import file
12934 # for dependence libraries. The import file would start with
12935 # the line `#! .'. This would cause the generated library to
12936 # depend on `.', always an invalid library. This was fixed in
12937 # development snapshots of GCC prior to 3.0.
12939 aix4 | aix4.
[01] | aix4.
[01].
*)
12940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12942 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12945 can_build_shared
=no
12949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12950 # soname into executable. Probably we can add versioning support to
12951 # collect2, so additional links can be useful in future.
12952 if test "$aix_use_runtimelinking" = yes; then
12953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12954 # instead of lib<name>.a to let people know that these are not
12955 # typical AIX shared libraries.
12956 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12958 # We preserve .a as extension for shared libraries through AIX4.2
12959 # and later when we are not doing run time linking.
12960 library_names_spec
='${libname}${release}.a $libname.a'
12961 soname_spec
='${libname}${release}.so$major'
12963 shlibpath_var
=LIBPATH
12968 library_names_spec
='$libname.ixlibrary $libname.a'
12969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12970 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'
12974 library_names_spec
='${libname}.so'
12975 dynamic_linker
="$host_os ld.so"
12976 shlibpath_var
=LIBRARY_PATH
12982 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12983 soname_spec
='${libname}${release}.so$major'
12984 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12985 shlibpath_var
=LD_LIBRARY_PATH
12986 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12987 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12988 # the default ld.so.conf also contains /usr/contrib/lib and
12989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12990 # libtool to hard-code these into programs
12993 cygwin
* | mingw
* | pw32
*)
12994 version_type
=windows
12997 case $GCC,$host_os in
12999 library_names_spec
='$libname.dll.a'
13000 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
13001 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13002 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13003 dldir=$destdir/`dirname \$dlpath`~
13004 test -d \$dldir || mkdir -p \$dldir~
13005 $install_prog .libs/$dlname \$dldir/$dlname'
13006 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007 dlpath=$dir/\$dldll~
13009 shlibpath_overrides_runpath
=yes
13012 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13013 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13014 if echo "$sys_lib_search_path_spec" |
egrep ';[C-Z]:/' >/dev
/null
; then
13015 # It is most probably a Windows format PATH printed by
13016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13017 # path with ; separators, and with drive letters. We can handle the
13018 # drive letters (cygwin fileutils understands them), so leave them,
13019 # especially as we might pass files found there to a mingw objdump,
13020 # which wouldn't understand a cygwinified path. Ahh.
13021 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13023 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13027 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13030 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13033 dynamic_linker
='Win32 ld.exe'
13034 # FIXME: first we should search . and the directory the executable is in
13038 darwin
* | rhapsody
*)
13039 dynamic_linker
="$host_os dyld"
13040 version_type
=darwin
13043 # FIXME: Relying on posixy $() will cause problems for
13044 # cross-compilation, but unfortunately the echo tests do not
13045 # yet detect zsh echo's removal of \ escapes.
13046 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13047 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13048 shlibpath_overrides_runpath
=yes
13049 shlibpath_var
=DYLD_LIBRARY_PATH
13056 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13057 soname_spec
='${libname}${release}.so$major'
13058 shlibpath_var
=LD_LIBRARY_PATH
13066 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13067 version_type
=freebsd-
$objformat
13068 case $version_type in
13070 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13075 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
13079 shlibpath_var
=LD_LIBRARY_PATH
13082 shlibpath_overrides_runpath
=yes
13084 freebsd3.01
* | freebsdelf3.01
*)
13085 shlibpath_overrides_runpath
=yes
13086 hardcode_into_libs
=yes
13089 shlibpath_overrides_runpath
=no
13090 hardcode_into_libs
=yes
13099 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13100 soname_spec
='${libname}${release}.so$major'
13101 shlibpath_var
=LD_LIBRARY_PATH
13102 hardcode_into_libs
=yes
13105 hpux9
* | hpux10
* | hpux11
*)
13106 # Give a soname corresponding to the major version so that dld.sl refuses to
13107 # link against other versions.
13111 if test "$host_cpu" = ia64
; then
13112 hardcode_into_libs
=yes
13113 dynamic_linker
="$host_os dld.so"
13114 shlibpath_var
=LD_LIBRARY_PATH
13115 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13116 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13117 soname_spec
='${libname}${release}.so$major'
13118 if test "X$HPUX_IA64_MODE" = X32
; then
13119 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13121 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13123 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13125 dynamic_linker
="$host_os dld.sl"
13126 shlibpath_var
=SHLIB_PATH
13127 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13128 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13129 soname_spec
='${libname}${release}.sl$major'
13131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13132 postinstall_cmds
='chmod 555 $lib'
13135 irix5
* | irix6
* | nonstopux
*)
13137 nonstopux
*) version_type
=nonstopux
;;
13138 *) version_type
=irix
;;
13142 soname_spec
='${libname}${release}.so$major'
13143 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13145 irix5
* | nonstopux
*)
13146 libsuff
= shlibsuff
=
13149 case $LD in # libtool.m4 will add one of these switches to LD
13150 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
13151 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13152 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13153 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13157 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13158 shlibpath_overrides_runpath
=no
13159 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13160 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13163 # No shared lib support for Linux oldld, aout, or coff.
13164 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13168 # This must be Linux ELF.
13173 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13174 soname_spec
='${libname}${release}.so$major'
13175 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13176 shlibpath_var
=LD_LIBRARY_PATH
13177 shlibpath_overrides_runpath
=no
13178 # This implies no fast_install, which is unacceptable.
13179 # Some rework will be needed to allow for fast_install
13180 # before this can be enabled.
13181 hardcode_into_libs
=yes
13183 # We used to test for /lib/ld.so.1 and disable shared libraries on
13184 # powerpc, because MkLinux only supported shared libraries with the
13185 # GNU dynamic linker. Since this was broken with cross compilers,
13186 # most powerpc-linux boxes support dynamic linking these days and
13187 # people can always --disable-shared, the test was removed, and we
13188 # assume the GNU/Linux dynamic linker is in use.
13189 dynamic_linker
='GNU/Linux ld.so'
13196 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13197 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13198 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13199 dynamic_linker
='NetBSD (a.out) ld.so'
13201 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13202 soname_spec
='${libname}${release}.so$major'
13203 dynamic_linker
='NetBSD ld.elf_so'
13205 shlibpath_var
=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath
=yes
13207 hardcode_into_libs
=yes
13212 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13213 shlibpath_var
=LD_LIBRARY_PATH
13214 shlibpath_overrides_runpath
=yes
13221 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13222 soname_spec
='${libname}${release}.so$major'
13223 shlibpath_var
=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath
=yes
13231 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13232 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13233 shlibpath_var
=LD_LIBRARY_PATH
13234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13236 openbsd2.
[89] | openbsd2.
[89].
*)
13237 shlibpath_overrides_runpath
=no
13240 shlibpath_overrides_runpath
=yes
13244 shlibpath_overrides_runpath
=yes
13249 libname_spec
='$name'
13251 library_names_spec
='$libname.dll $libname.a'
13252 dynamic_linker
='OS/2 ld.exe'
13253 shlibpath_var
=LIBPATH
13256 osf3
* | osf4
* | osf5
*)
13260 soname_spec
='${libname}${release}.so'
13261 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13262 shlibpath_var
=LD_LIBRARY_PATH
13263 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13264 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13269 soname_spec
='${libname}${release}.so$major'
13270 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13271 shlibpath_var
=LD_LIBRARY_PATH
13278 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13279 soname_spec
='${libname}${release}.so$major'
13280 shlibpath_var
=LD_LIBRARY_PATH
13281 shlibpath_overrides_runpath
=yes
13282 hardcode_into_libs
=yes
13283 # ldd complains unless libraries are executable
13284 postinstall_cmds
='chmod +x $lib'
13289 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13290 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13291 shlibpath_var
=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath
=yes
13293 if test "$with_gnu_ld" = yes; then
13299 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13301 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13302 soname_spec
='${libname}${release}.so$major'
13303 shlibpath_var
=LD_LIBRARY_PATH
13304 case $host_vendor in
13306 shlibpath_overrides_runpath
=no
13311 shlibpath_overrides_runpath
=no
13312 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13318 if test -d /usr
/nec
;then
13320 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
13321 soname_spec
='$libname.so.$major'
13322 shlibpath_var
=LD_LIBRARY_PATH
13328 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13329 soname_spec
='${libname}${release}.so$major'
13330 shlibpath_var
=LD_LIBRARY_PATH
13337 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13338 echo "${ECHO_T}$dynamic_linker" >&6
13339 test "$dynamic_linker" = no
&& can_build_shared
=no
13341 if test "x$enable_dlopen" != xyes
; then
13342 enable_dlopen
=unknown
13343 enable_dlopen_self
=unknown
13344 enable_dlopen_self_static
=unknown
13351 lt_cv_dlopen
="load_add_on"
13353 lt_cv_dlopen_self
=yes
13356 cygwin
* | mingw
* | pw32
*)
13357 lt_cv_dlopen
="LoadLibrary"
13362 echo "$as_me:$LINENO: checking for shl_load" >&5
13363 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13364 if test "${ac_cv_func_shl_load+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.
$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13370 /* System header to define __stub macros and hopefully few prototypes,
13371 which can conflict with char shl_load (); below. */
13372 #include <assert.h>
13373 /* Override any gcc2 internal prototype to avoid an error. */
13377 /* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13382 #ifdef F77_DUMMY_MAIN
13383 # ifdef __cplusplus
13386 int F77_DUMMY_MAIN() { return 1; }
13391 /* The GNU C library defines this for functions which it implements
13392 to always fail with ENOSYS. Some functions are actually named
13393 something starting with __ and the normal name is an alias. */
13394 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13404 rm -f conftest.
$ac_objext conftest
$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try
='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_func_shl_load
=yes
13418 echo "$as_me: failed program was:" >&5
13419 cat conftest.
$ac_ext >&5
13420 ac_cv_func_shl_load
=no
13422 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13426 if test $ac_cv_func_shl_load = yes; then
13427 lt_cv_dlopen
="shl_load"
13429 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_check_lib_save_LIBS
=$LIBS
13436 cat >conftest.
$ac_ext <<_ACEOF
13437 #line $LINENO "configure"
13438 #include "confdefs.h"
13440 /* Override any gcc2 internal prototype to avoid an error. */
13444 /* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13447 #ifdef F77_DUMMY_MAIN
13448 # ifdef __cplusplus
13451 int F77_DUMMY_MAIN() { return 1; }
13461 rm -f conftest.
$ac_objext conftest
$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try
='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_lib_dld_shl_load
=yes
13475 echo "$as_me: failed program was:" >&5
13476 cat conftest.
$ac_ext >&5
13477 ac_cv_lib_dld_shl_load
=no
13479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13480 LIBS
=$ac_check_lib_save_LIBS
13482 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13483 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13484 if test $ac_cv_lib_dld_shl_load = yes; then
13485 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
13487 echo "$as_me:$LINENO: checking for dlopen" >&5
13488 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13489 if test "${ac_cv_func_dlopen+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 cat >conftest.
$ac_ext <<_ACEOF
13493 #line $LINENO "configure"
13494 #include "confdefs.h"
13495 /* System header to define __stub macros and hopefully few prototypes,
13496 which can conflict with char dlopen (); below. */
13497 #include <assert.h>
13498 /* Override any gcc2 internal prototype to avoid an error. */
13502 /* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13507 #ifdef F77_DUMMY_MAIN
13508 # ifdef __cplusplus
13511 int F77_DUMMY_MAIN() { return 1; }
13516 /* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13529 rm -f conftest.
$ac_objext conftest
$ac_exeext
13530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531 (eval $ac_link) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try
='test -s conftest$ac_exeext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_cv_func_dlopen
=yes
13543 echo "$as_me: failed program was:" >&5
13544 cat conftest.
$ac_ext >&5
13545 ac_cv_func_dlopen
=no
13547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13549 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13550 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13551 if test $ac_cv_func_dlopen = yes; then
13552 lt_cv_dlopen
="dlopen"
13554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13555 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 ac_check_lib_save_LIBS
=$LIBS
13561 cat >conftest.
$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 #include "confdefs.h"
13565 /* Override any gcc2 internal prototype to avoid an error. */
13569 /* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13572 #ifdef F77_DUMMY_MAIN
13573 # ifdef __cplusplus
13576 int F77_DUMMY_MAIN() { return 1; }
13586 rm -f conftest.
$ac_objext conftest
$ac_exeext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13588 (eval $ac_link) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try
='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_lib_dl_dlopen
=yes
13600 echo "$as_me: failed program was:" >&5
13601 cat conftest.
$ac_ext >&5
13602 ac_cv_lib_dl_dlopen
=no
13604 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13605 LIBS
=$ac_check_lib_save_LIBS
13607 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13609 if test $ac_cv_lib_dl_dlopen = yes; then
13610 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13612 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13613 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13614 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 ac_check_lib_save_LIBS
=$LIBS
13618 LIBS
="-lsvld $LIBS"
13619 cat >conftest.
$ac_ext <<_ACEOF
13620 #line $LINENO "configure"
13621 #include "confdefs.h"
13623 /* Override any gcc2 internal prototype to avoid an error. */
13627 /* We use char because int might match the return type of a gcc2
13628 builtin and then its argument prototype would still apply. */
13630 #ifdef F77_DUMMY_MAIN
13631 # ifdef __cplusplus
13634 int F77_DUMMY_MAIN() { return 1; }
13644 rm -f conftest.
$ac_objext conftest
$ac_exeext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13646 (eval $ac_link) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try
='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_lib_svld_dlopen
=yes
13658 echo "$as_me: failed program was:" >&5
13659 cat conftest.
$ac_ext >&5
13660 ac_cv_lib_svld_dlopen
=no
13662 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13663 LIBS
=$ac_check_lib_save_LIBS
13665 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13666 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13667 if test $ac_cv_lib_svld_dlopen = yes; then
13668 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13670 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13671 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13672 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 ac_check_lib_save_LIBS
=$LIBS
13677 cat >conftest.
$ac_ext <<_ACEOF
13678 #line $LINENO "configure"
13679 #include "confdefs.h"
13681 /* Override any gcc2 internal prototype to avoid an error. */
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13688 #ifdef F77_DUMMY_MAIN
13689 # ifdef __cplusplus
13692 int F77_DUMMY_MAIN() { return 1; }
13702 rm -f conftest.
$ac_objext conftest
$ac_exeext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704 (eval $ac_link) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try
='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_dld_dld_link
=yes
13716 echo "$as_me: failed program was:" >&5
13717 cat conftest.
$ac_ext >&5
13718 ac_cv_lib_dld_dld_link
=no
13720 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13721 LIBS
=$ac_check_lib_save_LIBS
13723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13724 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13725 if test $ac_cv_lib_dld_dld_link = yes; then
13726 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
13747 if test "x$lt_cv_dlopen" != xno
; then
13753 case $lt_cv_dlopen in
13755 save_CPPFLAGS
="$CPPFLAGS"
13756 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13758 save_LDFLAGS
="$LDFLAGS"
13759 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13762 LIBS
="$lt_cv_dlopen_libs $LIBS"
13764 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13765 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13766 if test "${lt_cv_dlopen_self+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 if test "$cross_compiling" = yes; then :
13770 lt_cv_dlopen_self
=cross
13772 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13773 lt_status
=$lt_dlunknown
13774 cat > conftest.
$ac_ext <<EOF
13775 #line 13775 "configure"
13776 #include "confdefs.h"
13785 # define LT_DLGLOBAL RTLD_GLOBAL
13788 # define LT_DLGLOBAL DL_GLOBAL
13790 # define LT_DLGLOBAL 0
13794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13795 find out it does not work in some platform. */
13796 #ifndef LT_DLLAZY_OR_NOW
13798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13801 # define LT_DLLAZY_OR_NOW DL_LAZY
13804 # define LT_DLLAZY_OR_NOW RTLD_NOW
13807 # define LT_DLLAZY_OR_NOW DL_NOW
13809 # define LT_DLLAZY_OR_NOW 0
13817 extern "C" void exit (int);
13820 void fnord() { int i=42;}
13823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13824 int status = $lt_dlunknown;
13828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13830 /* dlclose (self); */
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13841 (.
/conftest
; exit; ) 2>/dev
/null
13843 case x
$lt_status in
13844 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13845 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13846 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
13849 # compilation failed
13850 lt_cv_dlopen_self
=no
13857 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13858 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13860 if test "x$lt_cv_dlopen_self" = xyes
; then
13861 LDFLAGS
="$LDFLAGS $link_static_flag"
13862 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13863 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13864 if test "${lt_cv_dlopen_self_static+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 if test "$cross_compiling" = yes; then :
13868 lt_cv_dlopen_self_static
=cross
13870 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13871 lt_status
=$lt_dlunknown
13872 cat > conftest.
$ac_ext <<EOF
13873 #line 13873 "configure"
13874 #include "confdefs.h"
13883 # define LT_DLGLOBAL RTLD_GLOBAL
13886 # define LT_DLGLOBAL DL_GLOBAL
13888 # define LT_DLGLOBAL 0
13892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13893 find out it does not work in some platform. */
13894 #ifndef LT_DLLAZY_OR_NOW
13896 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13899 # define LT_DLLAZY_OR_NOW DL_LAZY
13902 # define LT_DLLAZY_OR_NOW RTLD_NOW
13905 # define LT_DLLAZY_OR_NOW DL_NOW
13907 # define LT_DLLAZY_OR_NOW 0
13915 extern "C" void exit (int);
13918 void fnord() { int i=42;}
13921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13922 int status = $lt_dlunknown;
13926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13928 /* dlclose (self); */
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13939 (.
/conftest
; exit; ) 2>/dev
/null
13941 case x
$lt_status in
13942 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13943 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13944 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
13947 # compilation failed
13948 lt_cv_dlopen_self_static
=no
13955 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13956 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13959 CPPFLAGS
="$save_CPPFLAGS"
13960 LDFLAGS
="$save_LDFLAGS"
13965 case $lt_cv_dlopen_self in
13966 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13967 *) enable_dlopen_self
=unknown
;;
13970 case $lt_cv_dlopen_self_static in
13971 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13972 *) enable_dlopen_self_static
=unknown
;;
13977 # The else clause should only fire when bootstrapping the
13978 # libtool distribution, otherwise you forgot to ship ltmain.sh
13979 # with your package, and you will get complaints that there are
13980 # no rules to generate ltmain.sh.
13981 if test -f "$ltmain"; then
13982 # Now quote all the things that may contain metacharacters while being
13983 # careful not to overquote the AC_SUBSTed values. We take copies of the
13984 # variables and quote the copies for generation of the libtool script.
13985 for var
in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
13986 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13987 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13988 deplibs_check_method reload_flag reload_cmds need_locks \
13989 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13990 lt_cv_sys_global_symbol_to_c_name_address \
13991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13992 old_postinstall_cmds old_postuninstall_cmds \
13996 lt_prog_compiler_wl_GCJ \
13997 lt_prog_compiler_pic_GCJ \
13998 lt_prog_compiler_static_GCJ \
13999 lt_prog_compiler_no_builtin_flag_GCJ \
14000 export_dynamic_flag_spec_GCJ \
14001 thread_safe_flag_spec_GCJ \
14002 whole_archive_flag_spec_GCJ \
14003 old_archive_cmds_GCJ \
14004 old_archive_from_new_cmds_GCJ \
14005 predep_objects_GCJ \
14006 postdep_objects_GCJ \
14009 compiler_lib_search_path_GCJ \
14011 archive_expsym_cmds_GCJ \
14012 postinstall_cmds_GCJ \
14013 postuninstall_cmds_GCJ \
14014 old_archive_from_expsyms_cmds_GCJ \
14015 allow_undefined_flag_GCJ \
14016 no_undefined_flag_GCJ \
14017 export_symbols_cmds_GCJ \
14018 hardcode_libdir_flag_spec_GCJ \
14019 hardcode_libdir_separator_GCJ \
14020 lt_cv_prog_compiler_c_o_GCJ \
14021 exclude_expsyms_GCJ \
14022 include_expsyms_GCJ
; do
14025 old_archive_cmds_GCJ | \
14026 old_archive_from_new_cmds_GCJ | \
14027 archive_cmds_GCJ | \
14028 archive_expsym_cmds_GCJ | \
14029 old_archive_from_expsyms_cmds_GCJ | \
14030 export_symbols_cmds_GCJ | \
14031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14032 postinstall_cmds | postuninstall_cmds | \
14033 old_postinstall_cmds | old_postuninstall_cmds | \
14034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
14035 # Double-quote double-evaled strings.
14036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14045 *'\$0 --fallback-echo"')
14046 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14052 cat <<__EOF__ >> "$cfgfile"
14053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14057 # Shell to use when invoking shell scripts.
14060 # Whether or not to build shared libraries.
14061 build_libtool_libs=$enable_shared
14063 # Whether or not to build static libraries.
14064 build_old_libs=$enable_static
14066 # Whether or not to add -lc for building shared libraries.
14067 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14069 # Whether or not to optimize for fast installation.
14070 fast_install=$enable_fast_install
14073 host_alias=$host_alias
14076 # An echo program that does not interpret backslashes.
14081 AR_FLAGS=$lt_AR_FLAGS
14086 # A language-specific compiler.
14087 CC=$lt_compiler_GCJ
14089 # Is the compiler the GNU C compiler?
14092 # The linker used to build libraries.
14095 # Whether we need hard or soft links.
14098 # A BSD-compatible nm program.
14101 # A sed program that does not truncate output.
14104 # A symbol stripping program
14107 # Used to examine libraries when file_magic_cmd begins "file"
14108 MAGIC_CMD=$MAGIC_CMD
14110 # Used on cygwin: DLL creation program.
14113 # Used on cygwin: object dumper.
14116 # Used on cygwin: assembler.
14119 # The name of the directory that contains temporary libtool files.
14122 # How to create reloadable object files.
14123 reload_flag=$lt_reload_flag
14124 reload_cmds=$lt_reload_cmds
14126 # How to pass a linker flag through the compiler.
14127 wl=$lt_lt_prog_compiler_wl_GCJ
14129 # Object file suffix (normally "o").
14130 objext="$ac_objext"
14132 # Old archive suffix (normally "a").
14135 # Executable file suffix (normally "").
14138 # Additional compiler flags for building library objects.
14139 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14142 # What is the maximum length of a command?
14143 max_cmd_len=$lt_cv_sys_max_cmd_len
14145 # Does compiler simultaneously support -c and -o options?
14146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14148 # Must we lock files when doing compilation ?
14149 need_locks=$lt_need_locks
14151 # Do we need the lib prefix for modules?
14152 need_lib_prefix=$need_lib_prefix
14154 # Do we need a version for libraries?
14155 need_version=$need_version
14157 # Whether dlopen is supported.
14158 dlopen_support=$enable_dlopen
14160 # Whether dlopen of programs is supported.
14161 dlopen_self=$enable_dlopen_self
14163 # Whether dlopen of statically linked programs is supported.
14164 dlopen_self_static=$enable_dlopen_self_static
14166 # Compiler flag to prevent dynamic linking.
14167 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14169 # Compiler flag to turn off builtin functions.
14170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14172 # Compiler flag to allow reflexive dlopens.
14173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14175 # Compiler flag to generate shared objects directly from archives.
14176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14178 # Compiler flag to generate thread-safe objects.
14179 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14181 # Library versioning type.
14182 version_type=$version_type
14184 # Format of library name prefix.
14185 libname_spec=$lt_libname_spec
14187 # List of archive names. First name is the real one, the rest are links.
14188 # The last name is the one that the linker finds with -lNAME.
14189 library_names_spec=$lt_library_names_spec
14191 # The coded name of the library, if different from the real name.
14192 soname_spec=$lt_soname_spec
14194 # Commands used to build and install an old-style archive.
14196 old_archive_cmds=$lt_old_archive_cmds_GCJ
14197 old_postinstall_cmds=$lt_old_postinstall_cmds
14198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14200 # Create an old-style archive from a shared archive.
14201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14203 # Create a temporary old-style archive to link instead of a shared archive.
14204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14206 # Commands used to build and install a shared archive.
14207 archive_cmds=$lt_archive_cmds_GCJ
14208 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14209 postinstall_cmds=$lt_postinstall_cmds
14210 postuninstall_cmds=$lt_postuninstall_cmds
14212 # Commands to strip libraries.
14213 old_striplib=$lt_old_striplib
14214 striplib=$lt_striplib
14216 # Dependencies to place before the objects being linked to create a
14218 predep_objects=$lt_predep_objects_GCJ
14220 # Dependencies to place after the objects being linked to create a
14222 postdep_objects=$lt_postdep_objects_GCJ
14224 # Dependencies to place before the objects being linked to create a
14226 predeps=$lt_predeps_GCJ
14228 # Dependencies to place after the objects being linked to create a
14230 postdeps=$lt_postdeps_GCJ
14232 # The library search path used internally by the compiler when linking
14233 # a shared library.
14234 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14236 # Method to check whether dependent libraries are shared objects.
14237 deplibs_check_method=$lt_deplibs_check_method
14239 # Command to use when deplibs_check_method == file_magic.
14240 file_magic_cmd=$lt_file_magic_cmd
14242 # Flag that allows shared libraries with undefined symbols to be built.
14243 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14245 # Flag that forces no undefined symbols.
14246 no_undefined_flag=$lt_no_undefined_flag_GCJ
14248 # Commands used to finish a libtool library installation in a directory.
14249 finish_cmds=$lt_finish_cmds
14251 # Same as above, but a single script fragment to be evaled but not shown.
14252 finish_eval=$lt_finish_eval
14254 # Take the output of nm and produce a listing of raw symbols and C names.
14255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14257 # Transform the output of nm in a proper C declaration
14258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14260 # Transform the output of nm in a C name address pair
14261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14263 # This is the shared library runtime path variable.
14264 runpath_var=$runpath_var
14266 # This is the shared library path variable.
14267 shlibpath_var=$shlibpath_var
14269 # Is shlibpath searched before the hard-coded library search path?
14270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14272 # How to hardcode a shared library path into an executable.
14273 hardcode_action=$hardcode_action_GCJ
14275 # Whether we should hardcode library paths into libraries.
14276 hardcode_into_libs=$hardcode_into_libs
14278 # Flag to hardcode \$libdir into a binary during linking.
14279 # This must work even if \$libdir does not exist.
14280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14282 # Whether we need a single -rpath flag with a separated argument.
14283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14285 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14286 # resulting binary.
14287 hardcode_direct=$hardcode_direct_GCJ
14289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14290 # resulting binary.
14291 hardcode_minus_L=$hardcode_minus_L_GCJ
14293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14294 # the resulting binary.
14295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14297 # Variables whose values should be saved in libtool wrapper scripts and
14298 # restored at relink time.
14299 variables_saved_for_relink="$variables_saved_for_relink"
14301 # Whether libtool must link a program against all its dependency libraries.
14302 link_all_deplibs=$link_all_deplibs_GCJ
14304 # Compile-time system search path for libraries
14305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14307 # Run-time system search path for libraries
14308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14310 # Fix the shell variable \$srcfile for the compiler.
14311 fix_srcfile_path="$fix_srcfile_path_GCJ"
14313 # Set to yes if exported symbols are required.
14314 always_export_symbols=$always_export_symbols_GCJ
14316 # The commands to list exported symbols.
14317 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14319 # The commands to extract the exported symbol list from a shared archive.
14320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14322 # Symbols that should not be listed in the preloaded symbols.
14323 exclude_expsyms=$lt_exclude_expsyms_GCJ
14325 # Symbols that must always be exported.
14326 include_expsyms=$lt_include_expsyms_GCJ
14328 # ### END LIBTOOL TAG CONFIG: $tagname
14334 # If there is no Makefile yet, we rely on a make rule to execute
14335 # `config.status --recheck' to rerun these tests and create the
14336 # libtool script then.
14337 test -f Makefile
&& make "$ltmain"
14342 ac_cpp
='$CXXCPP $CPPFLAGS'
14343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14355 # Source file extension for RC test sources.
14358 # Object file extension for compiled RC test sources.
14362 # Code to be used in simple compile tests
14363 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14365 # Code to be used in simple link tests
14366 lt_simple_link_test_code
="$lt_simple_compile_test_code"
14368 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14370 # If no C compiler was specified, use CC.
14373 # Allow CC to be a program name with arguments.
14378 # Allow CC to be a program name with arguments.
14384 lt_cv_prog_compiler_c_o_RC
=yes
14386 # The else clause should only fire when bootstrapping the
14387 # libtool distribution, otherwise you forgot to ship ltmain.sh
14388 # with your package, and you will get complaints that there are
14389 # no rules to generate ltmain.sh.
14390 if test -f "$ltmain"; then
14391 # Now quote all the things that may contain metacharacters while being
14392 # careful not to overquote the AC_SUBSTed values. We take copies of the
14393 # variables and quote the copies for generation of the libtool script.
14394 for var
in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14397 deplibs_check_method reload_flag reload_cmds need_locks \
14398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14399 lt_cv_sys_global_symbol_to_c_name_address \
14400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14401 old_postinstall_cmds old_postuninstall_cmds \
14405 lt_prog_compiler_wl_RC \
14406 lt_prog_compiler_pic_RC \
14407 lt_prog_compiler_static_RC \
14408 lt_prog_compiler_no_builtin_flag_RC \
14409 export_dynamic_flag_spec_RC \
14410 thread_safe_flag_spec_RC \
14411 whole_archive_flag_spec_RC \
14412 old_archive_cmds_RC \
14413 old_archive_from_new_cmds_RC \
14414 predep_objects_RC \
14415 postdep_objects_RC \
14418 compiler_lib_search_path_RC \
14420 archive_expsym_cmds_RC \
14421 postinstall_cmds_RC \
14422 postuninstall_cmds_RC \
14423 old_archive_from_expsyms_cmds_RC \
14424 allow_undefined_flag_RC \
14425 no_undefined_flag_RC \
14426 export_symbols_cmds_RC \
14427 hardcode_libdir_flag_spec_RC \
14428 hardcode_libdir_separator_RC \
14429 lt_cv_prog_compiler_c_o_RC \
14430 exclude_expsyms_RC \
14431 include_expsyms_RC
; do
14434 old_archive_cmds_RC | \
14435 old_archive_from_new_cmds_RC | \
14436 archive_cmds_RC | \
14437 archive_expsym_cmds_RC | \
14438 old_archive_from_expsyms_cmds_RC | \
14439 export_symbols_cmds_RC | \
14440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14441 postinstall_cmds | postuninstall_cmds | \
14442 old_postinstall_cmds | old_postuninstall_cmds | \
14443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
14444 # Double-quote double-evaled strings.
14445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14454 *'\$0 --fallback-echo"')
14455 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14461 cat <<__EOF__ >> "$cfgfile"
14462 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14464 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14466 # Shell to use when invoking shell scripts.
14469 # Whether or not to build shared libraries.
14470 build_libtool_libs=$enable_shared
14472 # Whether or not to build static libraries.
14473 build_old_libs=$enable_static
14475 # Whether or not to add -lc for building shared libraries.
14476 build_libtool_need_lc=$archive_cmds_need_lc_RC
14478 # Whether or not to optimize for fast installation.
14479 fast_install=$enable_fast_install
14482 host_alias=$host_alias
14485 # An echo program that does not interpret backslashes.
14490 AR_FLAGS=$lt_AR_FLAGS
14495 # A language-specific compiler.
14498 # Is the compiler the GNU C compiler?
14501 # The linker used to build libraries.
14504 # Whether we need hard or soft links.
14507 # A BSD-compatible nm program.
14510 # A sed program that does not truncate output.
14513 # A symbol stripping program
14516 # Used to examine libraries when file_magic_cmd begins "file"
14517 MAGIC_CMD=$MAGIC_CMD
14519 # Used on cygwin: DLL creation program.
14522 # Used on cygwin: object dumper.
14525 # Used on cygwin: assembler.
14528 # The name of the directory that contains temporary libtool files.
14531 # How to create reloadable object files.
14532 reload_flag=$lt_reload_flag
14533 reload_cmds=$lt_reload_cmds
14535 # How to pass a linker flag through the compiler.
14536 wl=$lt_lt_prog_compiler_wl_RC
14538 # Object file suffix (normally "o").
14539 objext="$ac_objext"
14541 # Old archive suffix (normally "a").
14544 # Executable file suffix (normally "").
14547 # Additional compiler flags for building library objects.
14548 pic_flag=$lt_lt_prog_compiler_pic_RC
14551 # What is the maximum length of a command?
14552 max_cmd_len=$lt_cv_sys_max_cmd_len
14554 # Does compiler simultaneously support -c and -o options?
14555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14557 # Must we lock files when doing compilation ?
14558 need_locks=$lt_need_locks
14560 # Do we need the lib prefix for modules?
14561 need_lib_prefix=$need_lib_prefix
14563 # Do we need a version for libraries?
14564 need_version=$need_version
14566 # Whether dlopen is supported.
14567 dlopen_support=$enable_dlopen
14569 # Whether dlopen of programs is supported.
14570 dlopen_self=$enable_dlopen_self
14572 # Whether dlopen of statically linked programs is supported.
14573 dlopen_self_static=$enable_dlopen_self_static
14575 # Compiler flag to prevent dynamic linking.
14576 link_static_flag=$lt_lt_prog_compiler_static_RC
14578 # Compiler flag to turn off builtin functions.
14579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14581 # Compiler flag to allow reflexive dlopens.
14582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14584 # Compiler flag to generate shared objects directly from archives.
14585 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14587 # Compiler flag to generate thread-safe objects.
14588 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14590 # Library versioning type.
14591 version_type=$version_type
14593 # Format of library name prefix.
14594 libname_spec=$lt_libname_spec
14596 # List of archive names. First name is the real one, the rest are links.
14597 # The last name is the one that the linker finds with -lNAME.
14598 library_names_spec=$lt_library_names_spec
14600 # The coded name of the library, if different from the real name.
14601 soname_spec=$lt_soname_spec
14603 # Commands used to build and install an old-style archive.
14605 old_archive_cmds=$lt_old_archive_cmds_RC
14606 old_postinstall_cmds=$lt_old_postinstall_cmds
14607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14609 # Create an old-style archive from a shared archive.
14610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14612 # Create a temporary old-style archive to link instead of a shared archive.
14613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14615 # Commands used to build and install a shared archive.
14616 archive_cmds=$lt_archive_cmds_RC
14617 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14618 postinstall_cmds=$lt_postinstall_cmds
14619 postuninstall_cmds=$lt_postuninstall_cmds
14621 # Commands to strip libraries.
14622 old_striplib=$lt_old_striplib
14623 striplib=$lt_striplib
14625 # Dependencies to place before the objects being linked to create a
14627 predep_objects=$lt_predep_objects_RC
14629 # Dependencies to place after the objects being linked to create a
14631 postdep_objects=$lt_postdep_objects_RC
14633 # Dependencies to place before the objects being linked to create a
14635 predeps=$lt_predeps_RC
14637 # Dependencies to place after the objects being linked to create a
14639 postdeps=$lt_postdeps_RC
14641 # The library search path used internally by the compiler when linking
14642 # a shared library.
14643 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14645 # Method to check whether dependent libraries are shared objects.
14646 deplibs_check_method=$lt_deplibs_check_method
14648 # Command to use when deplibs_check_method == file_magic.
14649 file_magic_cmd=$lt_file_magic_cmd
14651 # Flag that allows shared libraries with undefined symbols to be built.
14652 allow_undefined_flag=$lt_allow_undefined_flag_RC
14654 # Flag that forces no undefined symbols.
14655 no_undefined_flag=$lt_no_undefined_flag_RC
14657 # Commands used to finish a libtool library installation in a directory.
14658 finish_cmds=$lt_finish_cmds
14660 # Same as above, but a single script fragment to be evaled but not shown.
14661 finish_eval=$lt_finish_eval
14663 # Take the output of nm and produce a listing of raw symbols and C names.
14664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14666 # Transform the output of nm in a proper C declaration
14667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14669 # Transform the output of nm in a C name address pair
14670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14672 # This is the shared library runtime path variable.
14673 runpath_var=$runpath_var
14675 # This is the shared library path variable.
14676 shlibpath_var=$shlibpath_var
14678 # Is shlibpath searched before the hard-coded library search path?
14679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14681 # How to hardcode a shared library path into an executable.
14682 hardcode_action=$hardcode_action_RC
14684 # Whether we should hardcode library paths into libraries.
14685 hardcode_into_libs=$hardcode_into_libs
14687 # Flag to hardcode \$libdir into a binary during linking.
14688 # This must work even if \$libdir does not exist.
14689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14691 # Whether we need a single -rpath flag with a separated argument.
14692 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14694 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14695 # resulting binary.
14696 hardcode_direct=$hardcode_direct_RC
14698 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14699 # resulting binary.
14700 hardcode_minus_L=$hardcode_minus_L_RC
14702 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14703 # the resulting binary.
14704 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14706 # Variables whose values should be saved in libtool wrapper scripts and
14707 # restored at relink time.
14708 variables_saved_for_relink="$variables_saved_for_relink"
14710 # Whether libtool must link a program against all its dependency libraries.
14711 link_all_deplibs=$link_all_deplibs_RC
14713 # Compile-time system search path for libraries
14714 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14716 # Run-time system search path for libraries
14717 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14719 # Fix the shell variable \$srcfile for the compiler.
14720 fix_srcfile_path="$fix_srcfile_path_RC"
14722 # Set to yes if exported symbols are required.
14723 always_export_symbols=$always_export_symbols_RC
14725 # The commands to list exported symbols.
14726 export_symbols_cmds=$lt_export_symbols_cmds_RC
14728 # The commands to extract the exported symbol list from a shared archive.
14729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14731 # Symbols that should not be listed in the preloaded symbols.
14732 exclude_expsyms=$lt_exclude_expsyms_RC
14734 # Symbols that must always be exported.
14735 include_expsyms=$lt_include_expsyms_RC
14737 # ### END LIBTOOL TAG CONFIG: $tagname
14743 # If there is no Makefile yet, we rely on a make rule to execute
14744 # `config.status --recheck' to rerun these tests and create the
14745 # libtool script then.
14746 test -f Makefile
&& make "$ltmain"
14751 ac_cpp
='$CXXCPP $CPPFLAGS'
14752 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14761 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14762 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14763 { (exit 1); exit 1; }; }
14767 # Append the new tag name to the list of available tags.
14768 available_tags
="$available_tags $tagname"
14773 # Now substitute the updated list of available tags.
14774 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14775 mv "${ofile}T" "$ofile"
14779 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14781 { (exit 1); exit 1; }; }
14787 # This can be used to rebuild libtool when needed
14788 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
14790 # Always use our own libtool.
14791 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
14793 # Prevent multiple expansion
14807 if test -n "$ac_tool_prefix"; then
14808 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14809 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
14810 echo "$as_me:$LINENO: checking for $ac_word" >&5
14811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14812 if test "${ac_cv_prog_WINDRES+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 if test -n "$WINDRES"; then
14816 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
14818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14819 for as_dir
in $PATH
14822 test -z "$as_dir" && as_dir
=.
14823 for ac_exec_ext
in '' $ac_executable_extensions; do
14824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14825 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
14826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14834 WINDRES
=$ac_cv_prog_WINDRES
14835 if test -n "$WINDRES"; then
14836 echo "$as_me:$LINENO: result: $WINDRES" >&5
14837 echo "${ECHO_T}$WINDRES" >&6
14839 echo "$as_me:$LINENO: result: no" >&5
14840 echo "${ECHO_T}no" >&6
14844 if test -z "$ac_cv_prog_WINDRES"; then
14845 ac_ct_WINDRES
=$WINDRES
14846 # Extract the first word of "windres", so it can be a program name with args.
14847 set dummy windres
; ac_word
=$2
14848 echo "$as_me:$LINENO: checking for $ac_word" >&5
14849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14850 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 if test -n "$ac_ct_WINDRES"; then
14854 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
14856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14857 for as_dir
in $PATH
14860 test -z "$as_dir" && as_dir
=.
14861 for ac_exec_ext
in '' $ac_executable_extensions; do
14862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863 ac_cv_prog_ac_ct_WINDRES
="windres"
14864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14870 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES
="windres"
14873 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
14874 if test -n "$ac_ct_WINDRES"; then
14875 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14876 echo "${ECHO_T}$ac_ct_WINDRES" >&6
14878 echo "$as_me:$LINENO: result: no" >&5
14879 echo "${ECHO_T}no" >&6
14882 WINDRES
=$ac_ct_WINDRES
14884 WINDRES
="$ac_cv_prog_WINDRES"
14891 subdirs
="$subdirs zlib"
14895 subdirs
="$subdirs bz2lib"
14899 subdirs
="$subdirs libgetopt++"
14902 ac_config_files
="$ac_config_files Makefile"
14904 cat >confcache
<<\_ACEOF
14905 # This file is a shell script that caches the results of configure
14906 # tests run on this system so they can be shared between configure
14907 # scripts and configure runs, see configure's option --config-cache.
14908 # It is not useful on other systems. If it contains results you don't
14909 # want to keep, you may remove or edit it.
14911 # config.status only pays attention to the cache file if you give it
14912 # the --recheck option to rerun configure.
14914 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14916 # following values.
14920 # The following way of writing the cache mishandles newlines in values,
14921 # but we know of no workaround that is simple, portable, and efficient.
14922 # So, don't put newlines in cache variables' values.
14923 # Ultrix sh set writes to stderr and can't be redirected directly,
14924 # and sets the high bit in the cache file unless we assign to the vars.
14927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14929 # `set' does not quote correctly, so add quotes (double-quote
14930 # substitution turns \\\\ into \\, and sed turns \\ into \).
14933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14936 # `set' quotes correctly as required by POSIX, so do not add quotes.
14938 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14947 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14949 if cmp -s $cache_file confcache
; then :; else
14950 if test -w $cache_file; then
14951 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14952 cat confcache
>$cache_file
14954 echo "not updating unwritable cache $cache_file"
14959 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14960 # Let make expand exec_prefix.
14961 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14965 # trailing colons and then remove the whole line if VPATH becomes empty
14966 # (actually we leave an empty line to preserve line numbers).
14967 if test "x$srcdir" = x.
; then
14968 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14969 s/:*\$(srcdir):*/:/;
14970 s/:*\${srcdir}:*/:/;
14972 s/^\([^=]*=[ ]*\):*/\1/;
14978 # Transform confdefs.h into DEFS.
14979 # Protect against shell expansion while executing Makefile rules.
14980 # Protect against Makefile macro expansion.
14982 # If the first sed substitution is executed (which looks for macros that
14983 # take arguments), then we branch to the quote section. Otherwise,
14984 # look for a macro that doesn't take arguments.
14985 cat >confdef2opt.
sed <<\_ACEOF
14988 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14990 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14994 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
15000 # We use echo to avoid assuming a particular line-breaking character.
15001 # The extra dot is to prevent the shell from consuming trailing
15002 # line-breaks from the sub-command output. A line-break within
15003 # single-quotes doesn't work because, if this script is created in a
15004 # platform that uses two characters for line-breaks (e.g., DOS), tr
15006 ac_LF_and_DOT=`echo; echo .
`
15007 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
15008 rm -f confdef2opt.sed
15011 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15012 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15013 Usually this means the macro was only invoked conditionally." >&5
15014 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15015 Usually this means the macro was only invoked conditionally." >&2;}
15016 { (exit 1); exit 1; }; }
15018 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15019 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15020 Usually this means the macro was only invoked conditionally." >&5
15021 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15022 Usually this means the macro was only invoked conditionally." >&2;}
15023 { (exit 1); exit 1; }; }
15026 : ${CONFIG_STATUS=./config.status}
15027 ac_clean_files_save=$ac_clean_files
15028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15031 cat >$CONFIG_STATUS <<_ACEOF
15033 # Generated by $as_me.
15034 # Run this file to recreate the current configuration.
15035 # Compiler output produced by configure, useful for debugging
15036 # configure, is in config.log if it exists.
15039 SHELL=\${CONFIG_SHELL-$SHELL}
15042 cat >>$CONFIG_STATUS <<\_ACEOF
15044 ## --------------------- ##
15045 ## M4sh Initialization. ##
15046 ## --------------------- ##
15048 # Be Bourne compatible
15049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15052 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15057 # Support unset when possible.
15058 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15064 (set +x; test -n "`(LANG
=C
; export LANG
) 2>&1`") &&
15065 { $as_unset LANG || test "${LANG+set}" != set; } ||
15066 { LANG=C; export LANG; }
15067 (set +x; test -n "`(LC_ALL
=C
; export LC_ALL
) 2>&1`") &&
15068 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15069 { LC_ALL=C; export LC_ALL; }
15070 (set +x; test -n "`(LC_TIME
=C
; export LC_TIME
) 2>&1`") &&
15071 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15072 { LC_TIME=C; export LC_TIME; }
15073 (set +x; test -n "`(LC_CTYPE
=C
; export LC_CTYPE
) 2>&1`") &&
15074 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15075 { LC_CTYPE=C; export LC_CTYPE; }
15076 (set +x; test -n "`(LANGUAGE
=C
; export LANGUAGE
) 2>&1`") &&
15077 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15078 { LANGUAGE=C; export LANGUAGE; }
15079 (set +x; test -n "`(LC_COLLATE
=C
; export LC_COLLATE
) 2>&1`") &&
15080 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15081 { LC_COLLATE=C; export LC_COLLATE; }
15082 (set +x; test -n "`(LC_NUMERIC
=C
; export LC_NUMERIC
) 2>&1`") &&
15083 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15084 { LC_NUMERIC=C; export LC_NUMERIC; }
15085 (set +x; test -n "`(LC_MESSAGES
=C
; export LC_MESSAGES
) 2>&1`") &&
15086 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15087 { LC_MESSAGES=C; export LC_MESSAGES; }
15090 # Name of the executable.
15091 as_me=`(basename "$0") 2>/dev
/null ||
15092 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15093 X
"$0" : 'X\(//\)$' \| \
15094 X
"$0" : 'X\(/\)$' \| \
15095 .
: '\(.\)' 2>/dev
/null ||
15097 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15098 /^X\/\(\/\/\)$/{ s//\1/; q; }
15099 /^X\/\(\/\).*/{ s//\1/; q; }
15102 # PATH needs CR, and LINENO needs CR and PATH.
15103 # Avoid depending upon Character Ranges.
15104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15107 as_cr_digits='0123456789'
15108 as_cr_alnum=$as_cr_Letters$as_cr_digits
15110 # The user is always right.
15111 if test "${PATH_SEPARATOR+set}" != set; then
15112 echo "#! /bin/sh" >conftest.sh
15113 echo "exit 0" >>conftest.sh
15114 chmod +x conftest.sh
15115 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15124 as_lineno_1=$LINENO
15125 as_lineno_2=$LINENO
15126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
15127 test "x$as_lineno_1" != "x$as_lineno_2" &&
15128 test "x$as_lineno_3" = "x$as_lineno_2" || {
15129 # Find who we are. Look in the path if we contain no path at all
15132 *[\\/]* ) as_myself=$0 ;;
15133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134 for as_dir in $PATH
15137 test -z "$as_dir" && as_dir=.
15138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15143 # We did not find ourselves, most probably we were run as `sh COMMAND
'
15144 # in which case we are not to be found in the path.
15145 if test "x$as_myself" = x; then
15148 if test ! -f "$as_myself"; then
15149 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15150 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15151 { (exit 1); exit 1; }; }
15153 case $CONFIG_SHELL in
15155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15159 test -z "$as_dir" && as_dir=.
15160 for as_base in sh bash ksh sh5; do
15163 if ("$as_dir/$as_base" -c '
15164 as_lineno_1
=$LINENO
15165 as_lineno_2
=$LINENO
15166 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15167 test "x$as_lineno_1" != "x$as_lineno_2" &&
15168 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15169 CONFIG_SHELL=$as_dir/$as_base
15170 export CONFIG_SHELL
15171 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15180 # uniformly replaced by the line number. The first 'sed' inserts a
15181 # line-number line before each line; the second 'sed' does the real
15182 # work. The second script uses 'N
' to pair each line-number line
15183 # with the numbered line, and appends trailing '-' during
15184 # substitution so that $LINENO is not a special case at line end.
15185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
15187 sed '=' <$as_myself |
15192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15195 s,^['$as_cr_digits']*\n,,
15196 ' >$as_me.lineno
&&
15197 chmod +x
$as_me.lineno ||
15198 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15199 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15200 { (exit 1); exit 1; }; }
15202 # Don't try to exec as it changes $[0], causing all sort of problems
15203 # (the dirname of $[0] is not the place where we might find the
15204 # original and so on. Autoconf is especially sensible to this).
15206 # Exit status is that of the last command.
15211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15212 *c
*,-n*) ECHO_N
= ECHO_C
='
15214 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15215 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15218 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15224 rm -f conf$$ conf$$.exe conf$$.
file
15226 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15227 # We could just check for DJGPP; but this test a) works b) is more generic
15228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15229 if test -f conf$$.exe
; then
15230 # Don't use ln at all; we don't have any links
15235 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15240 rm -f conf$$ conf$$.exe conf$$.
file
15242 as_executable_p
="test -f"
15244 # Sed expression to map a string onto a valid CPP name.
15245 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15247 # Sed expression to map a string onto a valid variable name.
15248 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15252 # We need space, tab and new line, in precisely that order.
15258 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
15262 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15263 # report actual input values of CONFIG_FILES etc. instead of their
15264 # values after options handling. Logging --version etc. is OK.
15268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15269 ## Running $as_me. ##
15274 This file was extended by $as_me, which was
15275 generated by GNU Autoconf 2.53. Invocation command line was
15277 CONFIG_FILES = $CONFIG_FILES
15278 CONFIG_HEADERS = $CONFIG_HEADERS
15279 CONFIG_LINKS = $CONFIG_LINKS
15280 CONFIG_COMMANDS = $CONFIG_COMMANDS
15284 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15288 # Files that config.status was made for.
15289 if test -n "$ac_config_files"; then
15290 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15293 if test -n "$ac_config_headers"; then
15294 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15297 if test -n "$ac_config_links"; then
15298 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15301 if test -n "$ac_config_commands"; then
15302 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15305 cat >>$CONFIG_STATUS <<\_ACEOF
15308 \`$as_me' instantiates files from templates according to the
15309 current configuration.
15311 Usage: $0 [OPTIONS] [FILE]...
15313 -h, --help print this help, then exit
15314 -V, --version print version number, then exit
15315 -d, --debug don't remove temporary files
15316 --recheck update $as_me by reconfiguring in the same conditions
15317 --file=FILE[:TEMPLATE]
15318 instantiate the configuration file FILE
15320 Configuration files:
15323 Configuration commands:
15326 Report bugs to <bug-autoconf@gnu.org>."
15329 cat >>$CONFIG_STATUS <<_ACEOF
15332 configured by $0, generated by GNU Autoconf 2.53,
15333 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15335 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15336 Free Software Foundation, Inc.
15337 This config.status script is free software; the Free Software Foundation
15338 gives unlimited permission to copy, distribute and modify it."
15343 cat >>$CONFIG_STATUS <<\_ACEOF
15344 # If no file are specified by the user, then we need to provide default
15345 # value. By we need to know if files were specified by the user.
15351 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15352 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15354 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
15358 *) # This is not an option, so the user has probably given explicit
15360 ac_need_defaults
=false
;;
15364 # Handling of the options.
15366 cat >>$CONFIG_STATUS <<_ACEOF
15367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15368 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15369 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15371 cat >>$CONFIG_STATUS <<\_ACEOF
15372 --version |
--vers* |
-V )
15373 echo "$ac_cs_version"; exit 0 ;;
15375 # Conflict between --help and --header
15376 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15377 Try \`$0 --help' for more information." >&5
15378 echo "$as_me: error: ambiguous option: $1
15379 Try \`$0 --help' for more information." >&2;}
15380 { (exit 1); exit 1; }; };;
15381 --help |
--hel |
-h )
15382 echo "$ac_cs_usage"; exit 0 ;;
15383 --debug |
--d* |
-d )
15385 --file |
--fil |
--fi |
--f )
15387 CONFIG_FILES
="$CONFIG_FILES $1"
15388 ac_need_defaults
=false
;;
15389 --header |
--heade |
--head |
--hea )
15391 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
15392 ac_need_defaults
=false
;;
15394 # This is an error.
15395 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15396 Try \`$0 --help' for more information." >&5
15397 echo "$as_me: error: unrecognized option: $1
15398 Try \`$0 --help' for more information." >&2;}
15399 { (exit 1); exit 1; }; } ;;
15401 *) ac_config_targets
="$ac_config_targets $1" ;;
15409 cat >>$CONFIG_STATUS <<_ACEOF
15411 # INIT-COMMANDS section.
15414 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15420 cat >>$CONFIG_STATUS <<\_ACEOF
15421 for ac_config_target
in $ac_config_targets
15423 case "$ac_config_target" in
15424 # Handling of arguments.
15425 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15426 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15428 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15429 { (exit 1); exit 1; }; };;
15433 # If the user did not use the arguments to specify the items to instantiate,
15434 # then the envvar interface is used. Set only those that are not.
15435 # We use the long form for the default assignment because of an extremely
15436 # bizarre bug on SunOS 4.1.3.
15437 if $ac_need_defaults; then
15438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15442 # Create a temporary directory, and hook for its removal unless debugging.
15445 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15446 trap '{ (exit 1); exit 1; }' 1 2 13 15
15449 # Create a (secure) tmp directory for tmp files.
15452 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15453 test -n "$tmp" && test -d "$tmp"
15456 tmp
=$TMPDIR/cs$$
-$RANDOM
15457 (umask 077 && mkdir
$tmp)
15460 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15461 { (exit 1); exit 1; }
15466 cat >>$CONFIG_STATUS <<_ACEOF
15469 # CONFIG_FILES section.
15472 # No need to generate the scripts if there are no CONFIG_FILES.
15473 # This happens for instance when ./config.status config.h
15474 if test -n "\$CONFIG_FILES"; then
15475 # Protect against being on the right side of a sed subst in config.status.
15476 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15477 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15478 s,@SHELL@,$SHELL,;t t
15479 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15480 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15481 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15482 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15483 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15484 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15485 s,@exec_prefix@,$exec_prefix,;t t
15486 s,@prefix@,$prefix,;t t
15487 s,@program_transform_name@,$program_transform_name,;t t
15488 s,@bindir@,$bindir,;t t
15489 s,@sbindir@,$sbindir,;t t
15490 s,@libexecdir@,$libexecdir,;t t
15491 s,@datadir@,$datadir,;t t
15492 s,@sysconfdir@,$sysconfdir,;t t
15493 s,@sharedstatedir@,$sharedstatedir,;t t
15494 s,@localstatedir@,$localstatedir,;t t
15495 s,@libdir@,$libdir,;t t
15496 s,@includedir@,$includedir,;t t
15497 s,@oldincludedir@,$oldincludedir,;t t
15498 s,@infodir@,$infodir,;t t
15499 s,@mandir@,$mandir,;t t
15500 s,@build_alias@,$build_alias,;t t
15501 s,@host_alias@,$host_alias,;t t
15502 s,@target_alias@,$target_alias,;t t
15503 s,@DEFS@,$DEFS,;t t
15504 s,@ECHO_C@,$ECHO_C,;t t
15505 s,@ECHO_N@,$ECHO_N,;t t
15506 s,@ECHO_T@,$ECHO_T,;t t
15507 s,@LIBS@,$LIBS,;t t
15508 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15509 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15510 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15511 s,@PACKAGE@,$PACKAGE,;t t
15512 s,@VERSION@,$VERSION,;t t
15513 s,@ACLOCAL@,$ACLOCAL,;t t
15514 s,@AUTOCONF@,$AUTOCONF,;t t
15515 s,@AUTOMAKE@,$AUTOMAKE,;t t
15516 s,@AUTOHEADER@,$AUTOHEADER,;t t
15517 s,@MAKEINFO@,$MAKEINFO,;t t
15518 s,@AMTAR@,$AMTAR,;t t
15519 s,@install_sh@,$install_sh,;t t
15520 s,@STRIP@,$STRIP,;t t
15521 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15522 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15524 s,@SET_MAKE@,$SET_MAKE,;t t
15525 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15526 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15527 s,@MAINT@,$MAINT,;t t
15529 s,@CXXFLAGS@,$CXXFLAGS,;t t
15530 s,@LDFLAGS@,$LDFLAGS,;t t
15531 s,@CPPFLAGS@,$CPPFLAGS,;t t
15532 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15533 s,@EXEEXT@,$EXEEXT,;t t
15534 s,@OBJEXT@,$OBJEXT,;t t
15535 s,@DEPDIR@,$DEPDIR,;t t
15536 s,@am__include@,$am__include,;t t
15537 s,@am__quote@,$am__quote,;t t
15538 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15539 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15540 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15541 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
15543 s,@CFLAGS@,$CFLAGS,;t t
15544 s,@ac_ct_CC@,$ac_ct_CC,;t t
15545 s,@CCDEPMODE@,$CCDEPMODE,;t t
15547 s,@LEXLIB@,$LEXLIB,;t t
15548 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15549 s,@YACC@,$YACC,;t t
15550 s,@build@,$build,;t t
15551 s,@build_cpu@,$build_cpu,;t t
15552 s,@build_vendor@,$build_vendor,;t t
15553 s,@build_os@,$build_os,;t t
15554 s,@host@,$host,;t t
15555 s,@host_cpu@,$host_cpu,;t t
15556 s,@host_vendor@,$host_vendor,;t t
15557 s,@host_os@,$host_os,;t t
15558 s,@LN_S@,$LN_S,;t t
15559 s,@ECHO@,$ECHO,;t t
15560 s,@RANLIB@,$RANLIB,;t t
15561 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15563 s,@CXXCPP@,$CXXCPP,;t t
15564 s,@LIBTOOL@,$LIBTOOL,;t t
15565 s,@WINDRES@,$WINDRES,;t t
15566 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15567 s,@subdirs@,$subdirs,;t t
15572 cat >>$CONFIG_STATUS <<\_ACEOF
15573 # Split the substitutions into bite-sized pieces for seds with
15574 # small command number limits, like on Digital OSF/1 and HP-UX.
15575 ac_max_sed_lines
=48
15576 ac_sed_frag
=1 # Number of current file.
15577 ac_beg
=1 # First line for current file.
15578 ac_end
=$ac_max_sed_lines # Line after last line for current file.
15581 while $ac_more_lines; do
15582 if test $ac_beg -gt 1; then
15583 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15585 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15587 if test ! -s $tmp/subs.frag
; then
15588 ac_more_lines
=false
15590 # The purpose of the label and of the branching condition is to
15591 # speed up the sed processing (if there are no `@' at all, there
15592 # is no need to browse any of the substitutions).
15593 # These are the two extra sed commands mentioned above.
15595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
15596 if test -z "$ac_sed_cmds"; then
15597 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
15599 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15601 ac_sed_frag
=`expr $ac_sed_frag + 1`
15603 ac_end
=`expr $ac_end + $ac_max_sed_lines`
15606 if test -z "$ac_sed_cmds"; then
15609 fi # test -n "$CONFIG_FILES"
15612 cat >>$CONFIG_STATUS <<\_ACEOF
15613 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
15614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15616 - |
*:- |
*:-:* ) # input from stdin
15618 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15619 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15620 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15621 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15622 * ) ac_file_in
=$ac_file.
in ;;
15625 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15626 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15628 X"$ac_file" : 'X\(//\)[^/]' \| \
15629 X"$ac_file" : 'X\(//\)$' \| \
15630 X"$ac_file" : 'X\(/\)' \| \
15631 . : '\(.\)' 2>/dev/null ||
15633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15635 /^X\(\/\/\)$/{ s//\1/; q; }
15636 /^X\(\/\).*/{ s//\1/; q; }
15638 { case "$ac_dir" in
15639 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
15643 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15644 case $as_mkdir_dir in
15645 # Skip DOS drivespec
15646 ?
:) as_incr_dir
=$as_mkdir_dir ;;
15648 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
15649 test -d "$as_incr_dir" ||
15650 mkdir
"$as_incr_dir" ||
15651 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15652 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15653 { (exit 1); exit 1; }; }
15660 if test "$ac_dir" != .
; then
15661 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15662 # A "../" for each directory in $ac_dir_suffix.
15663 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15665 ac_dir_suffix
= ac_top_builddir
=
15669 .
) # No --srcdir option. We are building in place.
15671 if test -z "$ac_top_builddir"; then
15674 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15676 [\\/]* | ?
:[\\/]* ) # Absolute path.
15677 ac_srcdir
=$srcdir$ac_dir_suffix;
15678 ac_top_srcdir
=$srcdir ;;
15679 *) # Relative path.
15680 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15681 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15683 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15685 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
15686 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15687 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15688 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15692 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15693 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
15696 if test x
"$ac_file" != x-
; then
15697 { echo "$as_me:$LINENO: creating $ac_file" >&5
15698 echo "$as_me: creating $ac_file" >&6;}
15701 # Let's still pretend it is `configure' which instantiates (i.e., don't
15702 # use $as_me), people would be surprised to read:
15703 # /* config.h. Generated by config.status. */
15704 if test x
"$ac_file" = x-
; then
15707 configure_input
="$ac_file. "
15709 configure_input
=$configure_input"Generated from `echo $ac_file_in |
15710 sed 's,.*/,,'` by configure."
15712 # First look for the input files in the build tree, otherwise in the
15714 ac_file_inputs
=`IFS=:
15715 for f in $ac_file_in; do
15717 -) echo $tmp/stdin ;;
15719 # Absolute (can't be DOS-style, as IFS=:)
15720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15721 echo "$as_me: error: cannot find input file: $f" >&2;}
15722 { (exit 1); exit 1; }; }
15725 if test -f "$f"; then
15728 elif test -f "$srcdir/$f"; then
15733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15734 echo "$as_me: error: cannot find input file: $f" >&2;}
15735 { (exit 1); exit 1; }; }
15738 done` ||
{ (exit 1); exit 1; }
15740 cat >>$CONFIG_STATUS <<_ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF
15746 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15747 s
,@configure_input@
,$configure_input,;t t
15748 s
,@srcdir@
,$ac_srcdir,;t t
15749 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
15750 s
,@top_srcdir@
,$ac_top_srcdir,;t t
15751 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
15752 s
,@builddir@
,$ac_builddir,;t t
15753 s
,@abs_builddir@
,$ac_abs_builddir,;t t
15754 s
,@top_builddir@
,$ac_top_builddir,;t t
15755 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
15756 s
,@INSTALL@
,$ac_INSTALL,;t t
15757 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15759 if test x"$ac_file" != x-; then
15760 mv $tmp/out $ac_file
15768 cat >>$CONFIG_STATUS <<\_ACEOF
15771 # CONFIG_COMMANDS section.
15773 for ac_file in : $CONFIG_COMMANDS; do test "x
$ac_file" = x: && continue
15774 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15775 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15776 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15777 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X"$ac_dest" : 'X\(//\)[^/]' \| \
15779 X"$ac_dest" : 'X\(//\)$' \| \
15780 X"$ac_dest" : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15790 if test "$ac_dir" != .; then
15791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15792 # A "..
/" for each directory in $ac_dir_suffix.
15793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15795 ac_dir_suffix= ac_top_builddir=
15799 .) # No --srcdir option. We are building in place.
15801 if test -z "$ac_top_builddir"; then
15804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15806 [\\/]* | ?:[\\/]* ) # Absolute path.
15807 ac_srcdir=$srcdir$ac_dir_suffix;
15808 ac_top_srcdir=$srcdir ;;
15809 *) # Relative path.
15810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15813 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15815 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15816 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15817 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15818 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15821 { echo "$as_me:$LINENO: executing
$ac_dest commands
" >&5
15822 echo "$as_me: executing
$ac_dest commands
" >&6;}
15824 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15825 # Strip MF so we end up with the name of the file.
15826 mf=`echo "$mf" | sed -e 's/:.*$//'`
15827 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
15828 dirpart=`(dirname "$mf") 2>/dev/null ||
15829 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15830 X"$mf" : 'X\(//\)[^/]' \| \
15831 X"$mf" : 'X\(//\)$' \| \
15832 X"$mf" : 'X\(/\)' \| \
15833 . : '\(.\)' 2>/dev/null ||
15835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15837 /^X\(\/\/\)$/{ s//\1/; q; }
15838 /^X\(\/\).*/{ s//\1/; q; }
15843 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15844 # Extract the definition of DEP_FILES from the Makefile without
15846 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15847 test -z "$DEPDIR" && continue
15848 # When using ansi2knr, U may be empty or an underscore; expand it
15849 U=`sed -n -e '/^U = / s///p' < "$mf"`
15850 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15851 # We invoke sed twice because it is the simplest approach to
15852 # changing $(DEPDIR) to its actual value in the expansion.
15853 for file in `sed -n -e '
15854 /^DEP_FILES = .*\\\\$/ {
15863 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15865 # Make sure the directory exists.
15866 test -f "$dirpart/$file" && continue
15867 fdir=`(dirname "$file") 2>/dev/null ||
15868 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15869 X"$file" : 'X\(//\)[^/]' \| \
15870 X"$file" : 'X\(//\)$' \| \
15871 X"$file" : 'X\(/\)' \| \
15872 . : '\(.\)' 2>/dev/null ||
15874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15876 /^X\(\/\/\)$/{ s//\1/; q; }
15877 /^X\(\/\).*/{ s//\1/; q; }
15879 { case $dirpart/$fdir in
15880 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15883 as_dummy=$dirpart/$fdir
15884 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@
"`; do
15885 case $as_mkdir_dir in
15886 # Skip DOS drivespec
15887 ?:) as_incr_dir=$as_mkdir_dir ;;
15889 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15890 test -d "$as_incr_dir" ||
15891 mkdir "$as_incr_dir" ||
15892 { { echo "$as_me:$LINENO: error
: cannot create
$dirpart/$fdir" >&5
15893 echo "$as_me: error
: cannot create
$dirpart/$fdir" >&2;}
15894 { (exit 1); exit 1; }; }
15899 # echo "creating
$dirpart/$file"
15900 echo '# dummy' > "$dirpart/$file"
15908 cat >>$CONFIG_STATUS <<\_ACEOF
15910 { (exit 0); exit 0; }
15912 chmod +x $CONFIG_STATUS
15913 ac_clean_files=$ac_clean_files_save
15916 # configure is writing to config.log, and then calls config.status.
15917 # config.status does its own redirection, appending to config.log.
15918 # Unfortunately, on DOS this fails, as config.log is still kept open
15919 # by configure, so config.status won't be able to write to it; its
15920 # output is simply discarded. So we exec the FD to /dev/null,
15921 # effectively closing config.log, so it can be properly (re)opened and
15922 # appended to by config.status. When coming back to configure, we
15923 # need to make the FD available again.
15924 if test "$no_create" != yes; then
15927 $SHELL $CONFIG_STATUS || ac_cs_success=false
15929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15930 # would make configure fail if this is the last instruction.
15931 $ac_cs_success || { (exit 1); exit 1; }
15935 # CONFIG_SUBDIRS section.
15937 if test "$no_recursion" != yes; then
15939 # Remove --cache-file and --srcdir arguments so they do not pile up.
15940 ac_sub_configure_args=
15942 for ac_arg in $ac_configure_args; do
15943 if test -n "$ac_prev"; then
15948 -cache-file | --cache-file | --cache-fil | --cache-fi \
15949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15950 ac_prev=cache_file ;;
15951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15955 --config-cache | -C)
15957 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15959 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15965 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15969 # Always prepend --prefix to ensure using the same prefix
15970 # in subdir configurations.
15971 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
15974 for ac_dir in : $subdirs; do test "x
$ac_dir" = x: && continue
15976 # Do not complain, so a configure script can configure whichever
15977 # parts of a large source tree are present.
15978 test -d $srcdir/$ac_dir || continue
15980 { echo "$as_me:$LINENO: configuring
in $ac_dir" >&5
15981 echo "$as_me: configuring
in $ac_dir" >&6;}
15982 { case "$ac_dir" in
15983 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15987 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@
"`; do
15988 case $as_mkdir_dir in
15989 # Skip DOS drivespec
15990 ?:) as_incr_dir=$as_mkdir_dir ;;
15992 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15993 test -d "$as_incr_dir" ||
15994 mkdir "$as_incr_dir" ||
15995 { { echo "$as_me:$LINENO: error
: cannot create
\"$ac_dir\"" >&5
15996 echo "$as_me: error
: cannot create
\"$ac_dir\"" >&2;}
15997 { (exit 1); exit 1; }; }
16004 if test "$ac_dir" != .; then
16005 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16006 # A "..
/" for each directory in $ac_dir_suffix.
16007 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16009 ac_dir_suffix= ac_top_builddir=
16013 .) # No --srcdir option. We are building in place.
16015 if test -z "$ac_top_builddir"; then
16018 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16020 [\\/]* | ?:[\\/]* ) # Absolute path.
16021 ac_srcdir=$srcdir$ac_dir_suffix;
16022 ac_top_srcdir=$srcdir ;;
16023 *) # Relative path.
16024 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16025 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16027 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16029 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16030 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16031 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16032 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16037 # Check for guested configure; otherwise get Cygnus style configure.
16038 if test -f $ac_srcdir/configure.gnu; then
16039 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16040 elif test -f $ac_srcdir/configure; then
16041 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16042 elif test -f $ac_srcdir/configure.in; then
16043 ac_sub_configure=$ac_configure
16045 { echo "$as_me:$LINENO: WARNING
: no configuration information is
in $ac_dir" >&5
16046 echo "$as_me: WARNING
: no configuration information is
in $ac_dir" >&2;}
16050 # The recursion is here.
16051 if test -n "$ac_sub_configure"; then
16052 # Make the cache file name correct relative to the subdirectory.
16053 case $cache_file in
16054 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16055 *) # Relative path.
16056 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16059 { echo "$as_me:$LINENO: running
$ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16060 echo "$as_me: running
$ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16061 # The eval makes quoting arguments work.
16062 eval $ac_sub_configure $ac_sub_configure_args \
16063 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16064 { { echo "$as_me:$LINENO: error
: $ac_sub_configure failed
for $ac_dir" >&5
16065 echo "$as_me: error
: $ac_sub_configure failed
for $ac_dir" >&2;}
16066 { (exit 1); exit 1; }; }