2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.59.
5
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6
@%:@ This configure script is free software; the Free Software Foundation
7
@%:@ gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289
echo_test_string=`eval $cmd` &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="inc/libofx.h"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX LIBOFX_MAJOR_VERSION LIBOFX_MINOR_VERSION LIBOFX_MICRO_VERSION LIBOFX_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOFX_SO_CURRENT LIBOFX_SO_REVISION LIBOFX_SO_AGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOXYGEN DOT DOC_TRUE DOC_FALSE ENABLE_DOXYGEN_TRUE ENABLE_DOXYGEN_FALSE enable_dot enable_html_docs enable_latex_docs LIB@&t@OBJS NO_GETOPTLONG_TRUE NO_GETOPTLONG_FALSE have_gengetopt USE_GENGETOPT_TRUE USE_GENGETOPT_FALSE OPENSPINCLUDES OPENSPLIBS LIBOFX_DTD_DIR LTLIBOBJS'
469
# Initialize some variables set by options.
471
ac_init_version=false
472
# The variables have the same names as the options, with
473
# dashes changed to underlines.
481
program_transform_name=s,x,x,
489
# Installation directory options.
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
491
# and all the variables that are supposed to be based on exec_prefix
492
# by default will actually change.
493
# Use braces instead of parens because sh, perl, etc. also accept them.
494
bindir='${exec_prefix}/bin'
495
sbindir='${exec_prefix}/sbin'
496
libexecdir='${exec_prefix}/libexec'
497
datadir='${prefix}/share'
498
sysconfdir='${prefix}/etc'
499
sharedstatedir='${prefix}/com'
500
localstatedir='${prefix}/var'
501
libdir='${exec_prefix}/lib'
502
includedir='${prefix}/include'
503
oldincludedir='/usr/include'
504
infodir='${prefix}/info'
505
mandir='${prefix}/man'
510
# If the previous option needs an argument, assign it.
511
if test -n "$ac_prev"; then
512
eval "$ac_prev=\$ac_option"
517
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
# Accept the important Cygnus configure options, so we can diagnose typos.
523
-bindir | --bindir | --bindi | --bind | --bin | --bi)
525
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528
-build | --build | --buil | --bui | --bu)
529
ac_prev=build_alias ;;
530
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
531
build_alias=$ac_optarg ;;
533
-cache-file | --cache-file | --cache-fil | --cache-fi \
534
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535
ac_prev=cache_file ;;
536
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538
cache_file=$ac_optarg ;;
541
cache_file=config.cache ;;
543
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
datadir=$ac_optarg ;;
549
-disable-* | --disable-*)
550
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
# Reject names that are not valid shell variable names.
552
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
{ (exit 1); exit 1; }; }
555
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
eval "enable_$ac_feature=no" ;;
558
-enable-* | --enable-*)
559
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
# Reject names that are not valid shell variable names.
561
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
{ (exit 1); exit 1; }; }
564
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569
eval "enable_$ac_feature='$ac_optarg'" ;;
571
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573
| --exec | --exe | --ex)
574
ac_prev=exec_prefix ;;
575
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577
| --exec=* | --exe=* | --ex=*)
578
exec_prefix=$ac_optarg ;;
580
-gas | --gas | --ga | --g)
581
# Obsolete; use --with-gas.
584
-help | --help | --hel | --he | -h)
586
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587
ac_init_help=recursive ;;
588
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589
ac_init_help=short ;;
591
-host | --host | --hos | --ho)
592
ac_prev=host_alias ;;
593
-host=* | --host=* | --hos=* | --ho=*)
594
host_alias=$ac_optarg ;;
596
-includedir | --includedir | --includedi | --included | --include \
597
| --includ | --inclu | --incl | --inc)
598
ac_prev=includedir ;;
599
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600
| --includ=* | --inclu=* | --incl=* | --inc=*)
601
includedir=$ac_optarg ;;
603
-infodir | --infodir | --infodi | --infod | --info | --inf)
605
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606
infodir=$ac_optarg ;;
608
-libdir | --libdir | --libdi | --libd)
610
-libdir=* | --libdir=* | --libdi=* | --libd=*)
613
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614
| --libexe | --libex | --libe)
615
ac_prev=libexecdir ;;
616
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617
| --libexe=* | --libex=* | --libe=*)
618
libexecdir=$ac_optarg ;;
620
-localstatedir | --localstatedir | --localstatedi | --localstated \
621
| --localstate | --localstat | --localsta | --localst \
622
| --locals | --local | --loca | --loc | --lo)
623
ac_prev=localstatedir ;;
624
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627
localstatedir=$ac_optarg ;;
629
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635
# Obsolete; use --without-fp.
638
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
639
| --no-cr | --no-c | -n)
642
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
643
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648
| --oldin | --oldi | --old | --ol | --o)
649
ac_prev=oldincludedir ;;
650
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653
oldincludedir=$ac_optarg ;;
655
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660
-program-prefix | --program-prefix | --program-prefi | --program-pref \
661
| --program-pre | --program-pr | --program-p)
662
ac_prev=program_prefix ;;
663
-program-prefix=* | --program-prefix=* | --program-prefi=* \
664
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665
program_prefix=$ac_optarg ;;
667
-program-suffix | --program-suffix | --program-suffi | --program-suff \
668
| --program-suf | --program-su | --program-s)
669
ac_prev=program_suffix ;;
670
-program-suffix=* | --program-suffix=* | --program-suffi=* \
671
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672
program_suffix=$ac_optarg ;;
674
-program-transform-name | --program-transform-name \
675
| --program-transform-nam | --program-transform-na \
676
| --program-transform-n | --program-transform- \
677
| --program-transform | --program-transfor \
678
| --program-transfo | --program-transf \
679
| --program-trans | --program-tran \
680
| --progr-tra | --program-tr | --program-t)
681
ac_prev=program_transform_name ;;
682
-program-transform-name=* | --program-transform-name=* \
683
| --program-transform-nam=* | --program-transform-na=* \
684
| --program-transform-n=* | --program-transform-=* \
685
| --program-transform=* | --program-transfor=* \
686
| --program-transfo=* | --program-transf=* \
687
| --program-trans=* | --program-tran=* \
688
| --progr-tra=* | --program-tr=* | --program-t=*)
689
program_transform_name=$ac_optarg ;;
691
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
| -silent | --silent | --silen | --sile | --sil)
695
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
sbindir=$ac_optarg ;;
701
-sharedstatedir | --sharedstatedir | --sharedstatedi \
702
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703
| --sharedst | --shareds | --shared | --share | --shar \
705
ac_prev=sharedstatedir ;;
706
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
sharedstatedir=$ac_optarg ;;
712
-site | --site | --sit)
714
-site=* | --site=* | --sit=*)
717
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723
| --syscon | --sysco | --sysc | --sys | --sy)
724
ac_prev=sysconfdir ;;
725
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727
sysconfdir=$ac_optarg ;;
729
-target | --target | --targe | --targ | --tar | --ta | --t)
730
ac_prev=target_alias ;;
731
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732
target_alias=$ac_optarg ;;
734
-v | -verbose | --verbose | --verbos | --verbo | --verb)
737
-version | --version | --versio | --versi | --vers | -V)
741
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
# Reject names that are not valid shell variable names.
743
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
{ echo "$as_me: error: invalid package name: $ac_package" >&2
745
{ (exit 1); exit 1; }; }
746
ac_package=`echo $ac_package| sed 's/-/_/g'`
748
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
eval "with_$ac_package='$ac_optarg'" ;;
753
-without-* | --without-*)
754
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
# Reject names that are not valid shell variable names.
756
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
{ echo "$as_me: error: invalid package name: $ac_package" >&2
758
{ (exit 1); exit 1; }; }
759
ac_package=`echo $ac_package | sed 's/-/_/g'`
760
eval "with_$ac_package=no" ;;
763
# Obsolete; use --with-x.
766
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767
| --x-incl | --x-inc | --x-in | --x-i)
768
ac_prev=x_includes ;;
769
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771
x_includes=$ac_optarg ;;
773
-x-libraries | --x-libraries | --x-librarie | --x-librari \
774
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775
ac_prev=x_libraries ;;
776
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
x_libraries=$ac_optarg ;;
780
-*) { echo "$as_me: error: unrecognized option: $ac_option
781
Try \`$0 --help' for more information." >&2
782
{ (exit 1); exit 1; }; }
786
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
# Reject names that are not valid shell variable names.
788
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
{ (exit 1); exit 1; }; }
791
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
eval "$ac_envvar='$ac_optarg'"
796
# FIXME: should be removed in autoconf 3.0.
797
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806
if test -n "$ac_prev"; then
807
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
{ echo "$as_me: error: missing argument to $ac_option" >&2
809
{ (exit 1); exit 1; }; }
812
# Be sure to have absolute paths.
813
for ac_var in exec_prefix prefix
815
eval ac_val=$`echo $ac_var`
817
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
{ (exit 1); exit 1; }; };;
823
# Be sure to have absolute paths.
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
localstatedir libdir includedir oldincludedir infodir mandir
827
eval ac_val=$`echo $ac_var`
829
[\\/$]* | ?:[\\/]* ) ;;
830
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
{ (exit 1); exit 1; }; };;
835
# There might be people who depend on the old broken behavior: `$host'
836
# used to hold the argument of --host etc.
837
# FIXME: To remove some day.
842
# FIXME: To remove some day.
843
if test "x$host_alias" != x; then
844
if test "x$build_alias" = x; then
845
cross_compiling=maybe
846
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
If a cross compiler is detected then cross compile mode will be used." >&2
848
elif test "x$build_alias" != "x$host_alias"; then
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
test "$silent" = yes && exec 6>/dev/null
859
# Find the source files, if location was not specified.
860
if test -z "$srcdir"; then
861
ac_srcdir_defaulted=yes
862
# Try the directory containing this script, then its parent.
863
ac_confdir=`(dirname "$0") 2>/dev/null ||
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
X"$0" : 'X\(//\)[^/]' \| \
866
X"$0" : 'X\(//\)$' \| \
867
X"$0" : 'X\(/\)' \| \
868
. : '\(.\)' 2>/dev/null ||
870
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
/^X\(\/\/\)$/{ s//\1/; q; }
873
/^X\(\/\).*/{ s//\1/; q; }
876
if test ! -r $srcdir/$ac_unique_file; then
880
ac_srcdir_defaulted=no
882
if test ! -r $srcdir/$ac_unique_file; then
883
if test "$ac_srcdir_defaulted" = yes; then
884
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
{ (exit 1); exit 1; }; }
887
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
{ (exit 1); exit 1; }; }
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
{ (exit 1); exit 1; }; }
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
ac_env_build_alias_set=${build_alias+set}
896
ac_env_build_alias_value=$build_alias
897
ac_cv_env_build_alias_set=${build_alias+set}
898
ac_cv_env_build_alias_value=$build_alias
899
ac_env_host_alias_set=${host_alias+set}
900
ac_env_host_alias_value=$host_alias
901
ac_cv_env_host_alias_set=${host_alias+set}
902
ac_cv_env_host_alias_value=$host_alias
903
ac_env_target_alias_set=${target_alias+set}
904
ac_env_target_alias_value=$target_alias
905
ac_cv_env_target_alias_set=${target_alias+set}
906
ac_cv_env_target_alias_value=$target_alias
907
ac_env_CC_set=${CC+set}
909
ac_cv_env_CC_set=${CC+set}
910
ac_cv_env_CC_value=$CC
911
ac_env_CFLAGS_set=${CFLAGS+set}
912
ac_env_CFLAGS_value=$CFLAGS
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
ac_cv_env_CFLAGS_value=$CFLAGS
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
ac_env_LDFLAGS_value=$LDFLAGS
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
ac_env_CPPFLAGS_value=$CPPFLAGS
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
ac_env_CXX_set=${CXX+set}
924
ac_env_CXX_value=$CXX
925
ac_cv_env_CXX_set=${CXX+set}
926
ac_cv_env_CXX_value=$CXX
927
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928
ac_env_CXXFLAGS_value=$CXXFLAGS
929
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931
ac_env_CPP_set=${CPP+set}
932
ac_env_CPP_value=$CPP
933
ac_cv_env_CPP_set=${CPP+set}
934
ac_cv_env_CPP_value=$CPP
935
ac_env_CXXCPP_set=${CXXCPP+set}
936
ac_env_CXXCPP_value=$CXXCPP
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
ac_cv_env_CXXCPP_value=$CXXCPP
939
ac_env_F77_set=${F77+set}
940
ac_env_F77_value=$F77
941
ac_cv_env_F77_set=${F77+set}
942
ac_cv_env_F77_value=$F77
943
ac_env_FFLAGS_set=${FFLAGS+set}
944
ac_env_FFLAGS_value=$FFLAGS
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
ac_cv_env_FFLAGS_value=$FFLAGS
949
# Report the --help message.
951
if test "$ac_init_help" = "long"; then
952
# Omit some internal or obsolete options to make the list less imposing.
953
# This message is too long to be a string in the A/UX 3.1 sh.
955
\`configure' configures this package to adapt to many kinds of systems.
957
Usage: $0 [OPTION]... [VAR=VALUE]...
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
960
VAR=VALUE. See below for descriptions of some of the useful variables.
962
Defaults for the options are specified in brackets.
965
-h, --help display this help and exit
966
--help=short display options specific to this package
967
--help=recursive display the short help of all the included packages
968
-V, --version display version information and exit
969
-q, --quiet, --silent do not print \`checking...' messages
970
--cache-file=FILE cache test results in FILE [disabled]
971
-C, --config-cache alias for \`--cache-file=config.cache'
972
-n, --no-create do not create output files
973
--srcdir=DIR find the sources in DIR [configure dir or \`..']
978
Installation directories:
979
--prefix=PREFIX install architecture-independent files in PREFIX
981
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984
By default, \`make install' will install all the files in
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987
for instance \`--prefix=\$HOME'.
989
For better control, use the options below.
991
Fine tuning of the installation directories:
992
--bindir=DIR user executables [EPREFIX/bin]
993
--sbindir=DIR system admin executables [EPREFIX/sbin]
994
--libexecdir=DIR program executables [EPREFIX/libexec]
995
--datadir=DIR read-only architecture-independent data [PREFIX/share]
996
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
999
--libdir=DIR object code libraries [EPREFIX/lib]
1000
--includedir=DIR C header files [PREFIX/include]
1001
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1002
--infodir=DIR info documentation [PREFIX/info]
1003
--mandir=DIR man documentation [PREFIX/man]
1009
--program-prefix=PREFIX prepend PREFIX to installed program names
1010
--program-suffix=SUFFIX append SUFFIX to installed program names
1011
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
--build=BUILD configure for building on BUILD [guessed]
1015
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1019
if test -n "$ac_init_help"; then
1024
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026
--disable-dependency-tracking speeds up one-time build
1027
--enable-dependency-tracking do not reject slow dependency extractors
1028
--enable-maintainer-mode enable make rules and dependencies not useful
1029
(and sometimes confusing) to the casual installer
1030
--enable-shared@<:@=PKGS@:>@
1031
build shared libraries @<:@default=yes@:>@
1032
--enable-static@<:@=PKGS@:>@
1033
build static libraries @<:@default=yes@:>@
1034
--enable-fast-install@<:@=PKGS@:>@
1035
optimize for fast installation @<:@default=yes@:>@
1036
--disable-libtool-lock avoid locking (might break parallel builds)
1037
--enable-doxygen enable documentation generation with doxygen (auto)
1038
--enable-dot use 'dot' to generate graphs in doxygen (auto)
1039
--enable-html-docs enable HTML generation with doxygen (yes)
1040
--enable-latex-docs enable LaTeX documentation generation with doxygen (no)
1041
--disable-gengetopt Disable rebuilding of command line parser with
1045
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1048
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1050
--with-tags@<:@=TAGS@:>@
1051
include additional configurations @<:@automatic@:>@
1052
--with-opensp-includes=PATH specify where to look for OpenSP includes
1053
- default is /usr/include/OpenSP)
1054
--with-opensp-libs=PATH specify where to look for libosp
1055
- default is /usr/lib
1056
--with-no-opensp-multibyte Force libofx to compile with the assumption that OpenSP was NOT compiled with SP_MULTI_BYTE defined
1058
Some influential environment variables:
1059
CC C compiler command
1060
CFLAGS C compiler flags
1061
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062
nonstandard directory <lib dir>
1063
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064
headers in a nonstandard directory <include dir>
1065
CXX C++ compiler command
1066
CXXFLAGS C++ compiler flags
1068
CXXCPP C++ preprocessor
1069
F77 Fortran 77 compiler command
1070
FFLAGS Fortran 77 compiler flags
1072
Use these variables to override the choices made by `configure' or to help
1073
it to find libraries and programs with nonstandard names/locations.
1078
if test "$ac_init_help" = "recursive"; then
1079
# If there are subdirs, report their specific --help.
1081
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082
test -d $ac_dir || continue
1085
if test "$ac_dir" != .; then
1086
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087
# A "../" for each directory in $ac_dir_suffix.
1088
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090
ac_dir_suffix= ac_top_builddir=
1094
.) # No --srcdir option. We are building in place.
1096
if test -z "$ac_top_builddir"; then
1099
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101
[\\/]* | ?:[\\/]* ) # Absolute path.
1102
ac_srcdir=$srcdir$ac_dir_suffix;
1103
ac_top_srcdir=$srcdir ;;
1105
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
1110
# the directories may not exist.
1112
.) ac_abs_builddir="$ac_dir";;
1115
.) ac_abs_builddir=`pwd`;;
1116
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1120
case $ac_abs_builddir in
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1123
case ${ac_top_builddir}. in
1124
.) ac_abs_top_builddir=$ac_abs_builddir;;
1125
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129
case $ac_abs_builddir in
1130
.) ac_abs_srcdir=$ac_srcdir;;
1133
.) ac_abs_srcdir=$ac_abs_builddir;;
1134
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138
case $ac_abs_builddir in
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1141
case $ac_top_srcdir in
1142
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1143
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149
# Check for guested configure; otherwise get Cygnus style configure.
1150
if test -f $ac_srcdir/configure.gnu; then
1152
$SHELL $ac_srcdir/configure.gnu --help=recursive
1153
elif test -f $ac_srcdir/configure; then
1155
$SHELL $ac_srcdir/configure --help=recursive
1156
elif test -f $ac_srcdir/configure.ac ||
1157
test -f $ac_srcdir/configure.in; then
1159
$ac_configure --help
1161
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167
test -n "$ac_init_help" && exit 0
1168
if $ac_init_version; then
1171
Copyright (C) 2003 Free Software Foundation, Inc.
1172
This configure script is free software; the Free Software Foundation
1173
gives unlimited permission to copy, distribute and modify it.
1179
This file contains any messages produced by compilers while
1180
running configure, to aid debugging if configure makes a mistake.
1182
It was created by $as_me, which was
1183
generated by GNU Autoconf 2.59. Invocation command line was
1190
@%:@@%:@ --------- @%:@@%:@
1191
@%:@@%:@ Platform. @%:@@%:@
1192
@%:@@%:@ --------- @%:@@%:@
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217
test -z "$as_dir" && as_dir=.
1218
echo "PATH: $as_dir"
1226
@%:@@%:@ ----------- @%:@@%:@
1227
@%:@@%:@ Core tests. @%:@@%:@
1228
@%:@@%:@ ----------- @%:@@%:@
1233
# Keep a trace of the command line.
1234
# Strip out --no-create and --no-recursion so they do not pile up.
1235
# Strip out --silent because we don't want to record it for future runs.
1236
# Also quote any args containing shell meta-characters.
1237
# Make two passes to allow for proper duplicate-argument suppression.
1242
ac_must_keep_next=false
1248
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250
| -silent | --silent | --silen | --sile | --sil)
1252
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259
if test $ac_must_keep_next = true; then
1260
ac_must_keep_next=false # Got value, back to normal.
1263
*=* | --config-cache | -C | -disable-* | --disable-* \
1264
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266
| -with-* | --with-* | -without-* | --without-* | --x)
1267
case "$ac_configure_args0 " in
1268
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271
-* ) ac_must_keep_next=true ;;
1274
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275
# Get rid of the leading space.
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
# When interrupted or exit'd, cleanup temporary files, and complete
1285
# config.log. We remove comments because anyway the quotes in there
1286
# would cause problems or look ugly.
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
1288
# such as our DU 5.0 friend, will then `close' the trap.
1289
trap 'exit_status=$?
1290
# Save into config.log some information that might help in debugging.
1295
@%:@@%:@ ---------------- @%:@@%:@
1296
@%:@@%:@ Cache variables. @%:@@%:@
1297
@%:@@%:@ ---------------- @%:@@%:@
1300
# The following way of writing the cache mishandles newlines in values,
1303
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318
@%:@@%:@ ----------------- @%:@@%:@
1319
@%:@@%:@ Output variables. @%:@@%:@
1320
@%:@@%:@ ----------------- @%:@@%:@
1323
for ac_var in $ac_subst_vars
1325
eval ac_val=$`echo $ac_var`
1326
echo "$ac_var='"'"'$ac_val'"'"'"
1330
if test -n "$ac_subst_files"; then
1332
@%:@@%:@ ------------- @%:@@%:@
1333
@%:@@%:@ Output files. @%:@@%:@
1334
@%:@@%:@ ------------- @%:@@%:@
1337
for ac_var in $ac_subst_files
1339
eval ac_val=$`echo $ac_var`
1340
echo "$ac_var='"'"'$ac_val'"'"'"
1345
if test -s confdefs.h; then
1347
@%:@@%:@ ----------- @%:@@%:@
1348
@%:@@%:@ confdefs.h. @%:@@%:@
1349
@%:@@%:@ ----------- @%:@@%:@
1352
sed "/^$/d" confdefs.h | sort
1355
test "$ac_signal" != 0 &&
1356
echo "$as_me: caught signal $ac_signal"
1357
echo "$as_me: exit $exit_status"
1359
rm -f core *.core &&
1360
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363
for ac_signal in 1 2 13 15; do
1364
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369
rm -rf conftest* confdefs.h
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373
# Predefined preprocessor variables.
1375
cat >>confdefs.h <<_ACEOF
1376
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1380
cat >>confdefs.h <<_ACEOF
1381
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385
cat >>confdefs.h <<_ACEOF
1386
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1390
cat >>confdefs.h <<_ACEOF
1391
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1395
cat >>confdefs.h <<_ACEOF
1396
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400
# Let the site file select an alternate cache file if it wants to.
1401
# Prefer explicitly selected file to automatically selected ones.
1402
if test -z "$CONFIG_SITE"; then
1403
if test "x$prefix" != xNONE; then
1404
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409
for ac_site_file in $CONFIG_SITE; do
1410
if test -r "$ac_site_file"; then
1411
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
1413
sed 's/^/| /' "$ac_site_file" >&5
1418
if test -r "$cache_file"; then
1419
# Some versions of bash will fail to source /dev/null (special
1420
# files actually), so we avoid doing that.
1421
if test -f "$cache_file"; then
1422
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423
echo "$as_me: loading cache $cache_file" >&6;}
1425
[\\/]* | ?:[\\/]* ) . $cache_file;;
1426
*) . ./$cache_file;;
1430
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431
echo "$as_me: creating cache $cache_file" >&6;}
1435
# Check that the precious variables saved in the cache have kept the same
1437
ac_cache_corrupted=false
1438
for ac_var in `(set) 2>&1 |
1439
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441
eval ac_new_set=\$ac_env_${ac_var}_set
1442
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443
eval ac_new_val="\$ac_env_${ac_var}_value"
1444
case $ac_old_set,$ac_new_set in
1446
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448
ac_cache_corrupted=: ;;
1450
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452
ac_cache_corrupted=: ;;
1455
if test "x$ac_old_val" != "x$ac_new_val"; then
1456
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459
echo "$as_me: former value: $ac_old_val" >&2;}
1460
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461
echo "$as_me: current value: $ac_new_val" >&2;}
1462
ac_cache_corrupted=:
1465
# Pass precious variables to config.status.
1466
if test "$ac_new_set" = set; then
1468
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470
*) ac_arg=$ac_var=$ac_new_val ;;
1472
case " $ac_configure_args " in
1473
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478
if $ac_cache_corrupted; then
1479
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483
{ (exit 1); exit 1; }; }
1487
ac_cpp='$CPP $CPPFLAGS'
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
ac_config_headers="$ac_config_headers config.h"
1513
for ac_dir in config $srcdir/config; do
1514
if test -f $ac_dir/install-sh; then
1516
ac_install_sh="$ac_aux_dir/install-sh -c"
1518
elif test -f $ac_dir/install.sh; then
1520
ac_install_sh="$ac_aux_dir/install.sh -c"
1522
elif test -f $ac_dir/shtool; then
1524
ac_install_sh="$ac_aux_dir/shtool install -c"
1528
if test -z "$ac_aux_dir"; then
1529
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1530
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1531
{ (exit 1); exit 1; }; }
1533
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1534
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1535
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
ac_cpp='$CPP $CPPFLAGS'
1539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542
if test -n "$ac_tool_prefix"; then
1543
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1544
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1545
echo "$as_me:$LINENO: checking for $ac_word" >&5
1546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547
if test "${ac_cv_prog_CC+set}" = set; then
1548
echo $ECHO_N "(cached) $ECHO_C" >&6
1550
if test -n "$CC"; then
1551
ac_cv_prog_CC="$CC" # Let the user override the test.
1553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557
test -z "$as_dir" && as_dir=.
1558
for ac_exec_ext in '' $ac_executable_extensions; do
1559
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1561
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570
if test -n "$CC"; then
1571
echo "$as_me:$LINENO: result: $CC" >&5
1572
echo "${ECHO_T}$CC" >&6
1574
echo "$as_me:$LINENO: result: no" >&5
1575
echo "${ECHO_T}no" >&6
1579
if test -z "$ac_cv_prog_CC"; then
1581
# Extract the first word of "gcc", so it can be a program name with args.
1582
set dummy gcc; ac_word=$2
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586
echo $ECHO_N "(cached) $ECHO_C" >&6
1588
if test -n "$ac_ct_CC"; then
1589
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595
test -z "$as_dir" && as_dir=.
1596
for ac_exec_ext in '' $ac_executable_extensions; do
1597
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598
ac_cv_prog_ac_ct_CC="gcc"
1599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1608
if test -n "$ac_ct_CC"; then
1609
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610
echo "${ECHO_T}$ac_ct_CC" >&6
1612
echo "$as_me:$LINENO: result: no" >&5
1613
echo "${ECHO_T}no" >&6
1621
if test -z "$CC"; then
1622
if test -n "$ac_tool_prefix"; then
1623
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1624
set dummy ${ac_tool_prefix}cc; ac_word=$2
1625
echo "$as_me:$LINENO: checking for $ac_word" >&5
1626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627
if test "${ac_cv_prog_CC+set}" = set; then
1628
echo $ECHO_N "(cached) $ECHO_C" >&6
1630
if test -n "$CC"; then
1631
ac_cv_prog_CC="$CC" # Let the user override the test.
1633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637
test -z "$as_dir" && as_dir=.
1638
for ac_exec_ext in '' $ac_executable_extensions; do
1639
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640
ac_cv_prog_CC="${ac_tool_prefix}cc"
1641
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650
if test -n "$CC"; then
1651
echo "$as_me:$LINENO: result: $CC" >&5
1652
echo "${ECHO_T}$CC" >&6
1654
echo "$as_me:$LINENO: result: no" >&5
1655
echo "${ECHO_T}no" >&6
1659
if test -z "$ac_cv_prog_CC"; then
1661
# Extract the first word of "cc", so it can be a program name with args.
1662
set dummy cc; ac_word=$2
1663
echo "$as_me:$LINENO: checking for $ac_word" >&5
1664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666
echo $ECHO_N "(cached) $ECHO_C" >&6
1668
if test -n "$ac_ct_CC"; then
1669
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675
test -z "$as_dir" && as_dir=.
1676
for ac_exec_ext in '' $ac_executable_extensions; do
1677
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678
ac_cv_prog_ac_ct_CC="cc"
1679
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688
if test -n "$ac_ct_CC"; then
1689
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690
echo "${ECHO_T}$ac_ct_CC" >&6
1692
echo "$as_me:$LINENO: result: no" >&5
1693
echo "${ECHO_T}no" >&6
1702
if test -z "$CC"; then
1703
# Extract the first word of "cc", so it can be a program name with args.
1704
set dummy cc; ac_word=$2
1705
echo "$as_me:$LINENO: checking for $ac_word" >&5
1706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707
if test "${ac_cv_prog_CC+set}" = set; then
1708
echo $ECHO_N "(cached) $ECHO_C" >&6
1710
if test -n "$CC"; then
1711
ac_cv_prog_CC="$CC" # Let the user override the test.
1714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718
test -z "$as_dir" && as_dir=.
1719
for ac_exec_ext in '' $ac_executable_extensions; do
1720
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1722
ac_prog_rejected=yes
1726
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732
if test $ac_prog_rejected = yes; then
1733
# We found a bogon in the path, so make sure we never use it.
1734
set dummy $ac_cv_prog_CC
1736
if test $@%:@ != 0; then
1737
# We chose a different compiler from the bogus one.
1738
# However, it has the same basename, so the bogon will be chosen
1739
# first if we set CC to just the basename; use the full file name.
1741
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1747
if test -n "$CC"; then
1748
echo "$as_me:$LINENO: result: $CC" >&5
1749
echo "${ECHO_T}$CC" >&6
1751
echo "$as_me:$LINENO: result: no" >&5
1752
echo "${ECHO_T}no" >&6
1756
if test -z "$CC"; then
1757
if test -n "$ac_tool_prefix"; then
1760
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1761
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1762
echo "$as_me:$LINENO: checking for $ac_word" >&5
1763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764
if test "${ac_cv_prog_CC+set}" = set; then
1765
echo $ECHO_N "(cached) $ECHO_C" >&6
1767
if test -n "$CC"; then
1768
ac_cv_prog_CC="$CC" # Let the user override the test.
1770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774
test -z "$as_dir" && as_dir=.
1775
for ac_exec_ext in '' $ac_executable_extensions; do
1776
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1778
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787
if test -n "$CC"; then
1788
echo "$as_me:$LINENO: result: $CC" >&5
1789
echo "${ECHO_T}$CC" >&6
1791
echo "$as_me:$LINENO: result: no" >&5
1792
echo "${ECHO_T}no" >&6
1795
test -n "$CC" && break
1798
if test -z "$CC"; then
1802
# Extract the first word of "$ac_prog", so it can be a program name with args.
1803
set dummy $ac_prog; ac_word=$2
1804
echo "$as_me:$LINENO: checking for $ac_word" >&5
1805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807
echo $ECHO_N "(cached) $ECHO_C" >&6
1809
if test -n "$ac_ct_CC"; then
1810
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816
test -z "$as_dir" && as_dir=.
1817
for ac_exec_ext in '' $ac_executable_extensions; do
1818
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819
ac_cv_prog_ac_ct_CC="$ac_prog"
1820
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829
if test -n "$ac_ct_CC"; then
1830
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831
echo "${ECHO_T}$ac_ct_CC" >&6
1833
echo "$as_me:$LINENO: result: no" >&5
1834
echo "${ECHO_T}no" >&6
1837
test -n "$ac_ct_CC" && break
1846
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1847
See \`config.log' for more details." >&5
1848
echo "$as_me: error: no acceptable C compiler found in \$PATH
1849
See \`config.log' for more details." >&2;}
1850
{ (exit 1); exit 1; }; }
1852
# Provide some information about the compiler.
1853
echo "$as_me:$LINENO:" \
1854
"checking for C compiler version" >&5
1855
ac_compiler=`set X $ac_compile; echo $2`
1856
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1857
(eval $ac_compiler --version </dev/null >&5) 2>&5
1859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860
(exit $ac_status); }
1861
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1862
(eval $ac_compiler -v </dev/null >&5) 2>&5
1864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865
(exit $ac_status); }
1866
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1867
(eval $ac_compiler -V </dev/null >&5) 2>&5
1869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870
(exit $ac_status); }
1872
cat >conftest.$ac_ext <<_ACEOF
1875
cat confdefs.h >>conftest.$ac_ext
1876
cat >>conftest.$ac_ext <<_ACEOF
1877
/* end confdefs.h. */
1887
ac_clean_files_save=$ac_clean_files
1888
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1889
# Try to create an executable without -o first, disregard a.out.
1890
# It will help us diagnose broken compilers, and finding out an intuition
1892
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1893
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1894
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1895
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1896
(eval $ac_link_default) 2>&5
1898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899
(exit $ac_status); }; then
1900
# Find the output, starting from the most likely. This scheme is
1901
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1904
# Be careful to initialize this variable, since it used to be cached.
1905
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1907
# b.out is created by i960 compilers.
1908
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1910
test -f "$ac_file" || continue
1912
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1915
# This is the source file.
1918
# We found the default executable, but exeext='' is most
1922
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1923
# FIXME: I believe we export ac_cv_exeext for Libtool,
1924
# but it would be cool to find out if it's true. Does anybody
1925
# maintain Libtool? --akim.
1933
echo "$as_me: failed program was:" >&5
1934
sed 's/^/| /' conftest.$ac_ext >&5
1936
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1937
See \`config.log' for more details." >&5
1938
echo "$as_me: error: C compiler cannot create executables
1939
See \`config.log' for more details." >&2;}
1940
{ (exit 77); exit 77; }; }
1943
ac_exeext=$ac_cv_exeext
1944
echo "$as_me:$LINENO: result: $ac_file" >&5
1945
echo "${ECHO_T}$ac_file" >&6
1947
# Check the compiler produces executables we can run. If not, either
1948
# the compiler is broken, or we cross compile.
1949
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1950
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1951
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1952
# If not cross compiling, check that we can run a simple program.
1953
if test "$cross_compiling" != yes; then
1954
if { ac_try='./$ac_file'
1955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959
(exit $ac_status); }; }; then
1962
if test "$cross_compiling" = maybe; then
1965
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1966
If you meant to cross compile, use \`--host'.
1967
See \`config.log' for more details." >&5
1968
echo "$as_me: error: cannot run C compiled programs.
1969
If you meant to cross compile, use \`--host'.
1970
See \`config.log' for more details." >&2;}
1971
{ (exit 1); exit 1; }; }
1975
echo "$as_me:$LINENO: result: yes" >&5
1976
echo "${ECHO_T}yes" >&6
1978
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1979
ac_clean_files=$ac_clean_files_save
1980
# Check the compiler produces executables we can run. If not, either
1981
# the compiler is broken, or we cross compile.
1982
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1983
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1984
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1985
echo "${ECHO_T}$cross_compiling" >&6
1987
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1988
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1990
(eval $ac_link) 2>&5
1992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993
(exit $ac_status); }; then
1994
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1995
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1996
# work properly (i.e., refer to `conftest.exe'), while it won't with
1998
for ac_file in conftest.exe conftest conftest.*; do
1999
test -f "$ac_file" || continue
2001
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2002
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2010
See \`config.log' for more details." >&5
2011
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2012
See \`config.log' for more details." >&2;}
2013
{ (exit 1); exit 1; }; }
2016
rm -f conftest$ac_cv_exeext
2017
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2018
echo "${ECHO_T}$ac_cv_exeext" >&6
2020
rm -f conftest.$ac_ext
2021
EXEEXT=$ac_cv_exeext
2023
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2024
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2025
if test "${ac_cv_objext+set}" = set; then
2026
echo $ECHO_N "(cached) $ECHO_C" >&6
2028
cat >conftest.$ac_ext <<_ACEOF
2031
cat confdefs.h >>conftest.$ac_ext
2032
cat >>conftest.$ac_ext <<_ACEOF
2033
/* end confdefs.h. */
2043
rm -f conftest.o conftest.obj
2044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045
(eval $ac_compile) 2>&5
2047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048
(exit $ac_status); }; then
2049
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2051
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2052
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2057
echo "$as_me: failed program was:" >&5
2058
sed 's/^/| /' conftest.$ac_ext >&5
2060
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2061
See \`config.log' for more details." >&5
2062
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2063
See \`config.log' for more details." >&2;}
2064
{ (exit 1); exit 1; }; }
2067
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2069
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2070
echo "${ECHO_T}$ac_cv_objext" >&6
2071
OBJEXT=$ac_cv_objext
2073
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2074
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2075
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2076
echo $ECHO_N "(cached) $ECHO_C" >&6
2078
cat >conftest.$ac_ext <<_ACEOF
2081
cat confdefs.h >>conftest.$ac_ext
2082
cat >>conftest.$ac_ext <<_ACEOF
2083
/* end confdefs.h. */
2096
rm -f conftest.$ac_objext
2097
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098
(eval $ac_compile) 2>conftest.er1
2100
grep -v '^ *+' conftest.er1 >conftest.err
2102
cat conftest.err >&5
2103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
(exit $ac_status); } &&
2105
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110
(exit $ac_status); }; } &&
2111
{ ac_try='test -s conftest.$ac_objext'
2112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116
(exit $ac_status); }; }; then
2119
echo "$as_me: failed program was:" >&5
2120
sed 's/^/| /' conftest.$ac_ext >&5
2124
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2125
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2128
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2129
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2130
GCC=`test $ac_compiler_gnu = yes && echo yes`
2131
ac_test_CFLAGS=${CFLAGS+set}
2132
ac_save_CFLAGS=$CFLAGS
2134
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2135
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2136
if test "${ac_cv_prog_cc_g+set}" = set; then
2137
echo $ECHO_N "(cached) $ECHO_C" >&6
2139
cat >conftest.$ac_ext <<_ACEOF
2142
cat confdefs.h >>conftest.$ac_ext
2143
cat >>conftest.$ac_ext <<_ACEOF
2144
/* end confdefs.h. */
2154
rm -f conftest.$ac_objext
2155
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156
(eval $ac_compile) 2>conftest.er1
2158
grep -v '^ *+' conftest.er1 >conftest.err
2160
cat conftest.err >&5
2161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162
(exit $ac_status); } &&
2163
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168
(exit $ac_status); }; } &&
2169
{ ac_try='test -s conftest.$ac_objext'
2170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174
(exit $ac_status); }; }; then
2177
echo "$as_me: failed program was:" >&5
2178
sed 's/^/| /' conftest.$ac_ext >&5
2182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2184
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2185
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2186
if test "$ac_test_CFLAGS" = set; then
2187
CFLAGS=$ac_save_CFLAGS
2188
elif test $ac_cv_prog_cc_g = yes; then
2189
if test "$GCC" = yes; then
2195
if test "$GCC" = yes; then
2201
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2202
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2203
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2204
echo $ECHO_N "(cached) $ECHO_C" >&6
2206
ac_cv_prog_cc_stdc=no
2208
cat >conftest.$ac_ext <<_ACEOF
2211
cat confdefs.h >>conftest.$ac_ext
2212
cat >>conftest.$ac_ext <<_ACEOF
2213
/* end confdefs.h. */
2216
#include <sys/types.h>
2217
#include <sys/stat.h>
2218
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2219
struct buf { int x; };
2220
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2221
static char *e (p, i)
2227
static char *f (char * (*g) (char **, int), char **p, ...)
2232
s = g (p, va_arg (v,int));
2237
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2238
function prototypes and stuff, but not '\xHH' hex character constants.
2239
These don't provoke an error unfortunately, instead are silently treated
2240
as 'x'. The following induces an error, until -std1 is added to get
2241
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2242
array size at least. It's necessary to write '\x00'==0 to get something
2243
that's true only with -std1. */
2244
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2246
int test (int i, double x);
2247
struct s1 {int (*f) (int a);};
2248
struct s2 {int (*f) (double a);};
2249
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2255
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2260
# Don't try gcc -ansi; that turns off useful extensions and
2261
# breaks some systems' header files.
2262
# AIX -qlanglvl=ansi
2263
# Ultrix and OSF/1 -std1
2264
# HP-UX 10.20 and later -Ae
2265
# HP-UX older versions -Aa -D_HPUX_SOURCE
2266
# SVR4 -Xc -D__EXTENSIONS__
2267
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2269
CC="$ac_save_CC $ac_arg"
2270
rm -f conftest.$ac_objext
2271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272
(eval $ac_compile) 2>conftest.er1
2274
grep -v '^ *+' conftest.er1 >conftest.err
2276
cat conftest.err >&5
2277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278
(exit $ac_status); } &&
2279
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284
(exit $ac_status); }; } &&
2285
{ ac_try='test -s conftest.$ac_objext'
2286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290
(exit $ac_status); }; }; then
2291
ac_cv_prog_cc_stdc=$ac_arg
2294
echo "$as_me: failed program was:" >&5
2295
sed 's/^/| /' conftest.$ac_ext >&5
2298
rm -f conftest.err conftest.$ac_objext
2300
rm -f conftest.$ac_ext conftest.$ac_objext
2305
case "x$ac_cv_prog_cc_stdc" in
2307
echo "$as_me:$LINENO: result: none needed" >&5
2308
echo "${ECHO_T}none needed" >&6 ;;
2310
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312
CC="$CC $ac_cv_prog_cc_stdc" ;;
2315
# Some people use a C++ compiler to compile C. Since we use `exit',
2316
# in C++ we need to declare it. In case someone uses the same compiler
2317
# for both compiling C and C++ we need to have the C++ compiler decide
2318
# the declaration of exit, since it's the most demanding environment.
2319
cat >conftest.$ac_ext <<_ACEOF
2320
@%:@ifndef __cplusplus
2324
rm -f conftest.$ac_objext
2325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326
(eval $ac_compile) 2>conftest.er1
2328
grep -v '^ *+' conftest.er1 >conftest.err
2330
cat conftest.err >&5
2331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332
(exit $ac_status); } &&
2333
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338
(exit $ac_status); }; } &&
2339
{ ac_try='test -s conftest.$ac_objext'
2340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344
(exit $ac_status); }; }; then
2345
for ac_declaration in \
2347
'extern "C" void std::exit (int) throw (); using std::exit;' \
2348
'extern "C" void std::exit (int); using std::exit;' \
2349
'extern "C" void exit (int) throw ();' \
2350
'extern "C" void exit (int);' \
2353
cat >conftest.$ac_ext <<_ACEOF
2356
cat confdefs.h >>conftest.$ac_ext
2357
cat >>conftest.$ac_ext <<_ACEOF
2358
/* end confdefs.h. */
2360
@%:@include <stdlib.h>
2369
rm -f conftest.$ac_objext
2370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371
(eval $ac_compile) 2>conftest.er1
2373
grep -v '^ *+' conftest.er1 >conftest.err
2375
cat conftest.err >&5
2376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377
(exit $ac_status); } &&
2378
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383
(exit $ac_status); }; } &&
2384
{ ac_try='test -s conftest.$ac_objext'
2385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389
(exit $ac_status); }; }; then
2392
echo "$as_me: failed program was:" >&5
2393
sed 's/^/| /' conftest.$ac_ext >&5
2397
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398
cat >conftest.$ac_ext <<_ACEOF
2401
cat confdefs.h >>conftest.$ac_ext
2402
cat >>conftest.$ac_ext <<_ACEOF
2403
/* end confdefs.h. */
2413
rm -f conftest.$ac_objext
2414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415
(eval $ac_compile) 2>conftest.er1
2417
grep -v '^ *+' conftest.er1 >conftest.err
2419
cat conftest.err >&5
2420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421
(exit $ac_status); } &&
2422
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427
(exit $ac_status); }; } &&
2428
{ ac_try='test -s conftest.$ac_objext'
2429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
(exit $ac_status); }; }; then
2436
echo "$as_me: failed program was:" >&5
2437
sed 's/^/| /' conftest.$ac_ext >&5
2440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443
if test -n "$ac_declaration"; then
2444
echo '#ifdef __cplusplus' >>confdefs.h
2445
echo $ac_declaration >>confdefs.h
2446
echo '#endif' >>confdefs.h
2450
echo "$as_me: failed program was:" >&5
2451
sed 's/^/| /' conftest.$ac_ext >&5
2454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456
ac_cpp='$CPP $CPPFLAGS'
2457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
ac_cpp='$CXXCPP $CPPFLAGS'
2463
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2466
if test -n "$ac_tool_prefix"; then
2467
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2469
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2470
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2471
echo "$as_me:$LINENO: checking for $ac_word" >&5
2472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473
if test "${ac_cv_prog_CXX+set}" = set; then
2474
echo $ECHO_N "(cached) $ECHO_C" >&6
2476
if test -n "$CXX"; then
2477
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483
test -z "$as_dir" && as_dir=.
2484
for ac_exec_ext in '' $ac_executable_extensions; do
2485
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2487
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496
if test -n "$CXX"; then
2497
echo "$as_me:$LINENO: result: $CXX" >&5
2498
echo "${ECHO_T}$CXX" >&6
2500
echo "$as_me:$LINENO: result: no" >&5
2501
echo "${ECHO_T}no" >&6
2504
test -n "$CXX" && break
2507
if test -z "$CXX"; then
2509
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2511
# Extract the first word of "$ac_prog", so it can be a program name with args.
2512
set dummy $ac_prog; ac_word=$2
2513
echo "$as_me:$LINENO: checking for $ac_word" >&5
2514
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2515
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2516
echo $ECHO_N "(cached) $ECHO_C" >&6
2518
if test -n "$ac_ct_CXX"; then
2519
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
test -z "$as_dir" && as_dir=.
2526
for ac_exec_ext in '' $ac_executable_extensions; do
2527
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528
ac_cv_prog_ac_ct_CXX="$ac_prog"
2529
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2538
if test -n "$ac_ct_CXX"; then
2539
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2540
echo "${ECHO_T}$ac_ct_CXX" >&6
2542
echo "$as_me:$LINENO: result: no" >&5
2543
echo "${ECHO_T}no" >&6
2546
test -n "$ac_ct_CXX" && break
2548
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2554
# Provide some information about the compiler.
2555
echo "$as_me:$LINENO:" \
2556
"checking for C++ compiler version" >&5
2557
ac_compiler=`set X $ac_compile; echo $2`
2558
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2559
(eval $ac_compiler --version </dev/null >&5) 2>&5
2561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562
(exit $ac_status); }
2563
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2564
(eval $ac_compiler -v </dev/null >&5) 2>&5
2566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567
(exit $ac_status); }
2568
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2569
(eval $ac_compiler -V </dev/null >&5) 2>&5
2571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572
(exit $ac_status); }
2574
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2575
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2576
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2577
echo $ECHO_N "(cached) $ECHO_C" >&6
2579
cat >conftest.$ac_ext <<_ACEOF
2582
cat confdefs.h >>conftest.$ac_ext
2583
cat >>conftest.$ac_ext <<_ACEOF
2584
/* end confdefs.h. */
2597
rm -f conftest.$ac_objext
2598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599
(eval $ac_compile) 2>conftest.er1
2601
grep -v '^ *+' conftest.er1 >conftest.err
2603
cat conftest.err >&5
2604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605
(exit $ac_status); } &&
2606
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611
(exit $ac_status); }; } &&
2612
{ ac_try='test -s conftest.$ac_objext'
2613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617
(exit $ac_status); }; }; then
2620
echo "$as_me: failed program was:" >&5
2621
sed 's/^/| /' conftest.$ac_ext >&5
2625
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2630
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2631
GXX=`test $ac_compiler_gnu = yes && echo yes`
2632
ac_test_CXXFLAGS=${CXXFLAGS+set}
2633
ac_save_CXXFLAGS=$CXXFLAGS
2635
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2636
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2637
if test "${ac_cv_prog_cxx_g+set}" = set; then
2638
echo $ECHO_N "(cached) $ECHO_C" >&6
2640
cat >conftest.$ac_ext <<_ACEOF
2643
cat confdefs.h >>conftest.$ac_ext
2644
cat >>conftest.$ac_ext <<_ACEOF
2645
/* end confdefs.h. */
2655
rm -f conftest.$ac_objext
2656
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657
(eval $ac_compile) 2>conftest.er1
2659
grep -v '^ *+' conftest.er1 >conftest.err
2661
cat conftest.err >&5
2662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663
(exit $ac_status); } &&
2664
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669
(exit $ac_status); }; } &&
2670
{ ac_try='test -s conftest.$ac_objext'
2671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675
(exit $ac_status); }; }; then
2676
ac_cv_prog_cxx_g=yes
2678
echo "$as_me: failed program was:" >&5
2679
sed 's/^/| /' conftest.$ac_ext >&5
2683
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2686
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2687
if test "$ac_test_CXXFLAGS" = set; then
2688
CXXFLAGS=$ac_save_CXXFLAGS
2689
elif test $ac_cv_prog_cxx_g = yes; then
2690
if test "$GXX" = yes; then
2696
if test "$GXX" = yes; then
2702
for ac_declaration in \
2704
'extern "C" void std::exit (int) throw (); using std::exit;' \
2705
'extern "C" void std::exit (int); using std::exit;' \
2706
'extern "C" void exit (int) throw ();' \
2707
'extern "C" void exit (int);' \
2710
cat >conftest.$ac_ext <<_ACEOF
2713
cat confdefs.h >>conftest.$ac_ext
2714
cat >>conftest.$ac_ext <<_ACEOF
2715
/* end confdefs.h. */
2717
@%:@include <stdlib.h>
2726
rm -f conftest.$ac_objext
2727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728
(eval $ac_compile) 2>conftest.er1
2730
grep -v '^ *+' conftest.er1 >conftest.err
2732
cat conftest.err >&5
2733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734
(exit $ac_status); } &&
2735
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740
(exit $ac_status); }; } &&
2741
{ ac_try='test -s conftest.$ac_objext'
2742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
(exit $ac_status); }; }; then
2749
echo "$as_me: failed program was:" >&5
2750
sed 's/^/| /' conftest.$ac_ext >&5
2754
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755
cat >conftest.$ac_ext <<_ACEOF
2758
cat confdefs.h >>conftest.$ac_ext
2759
cat >>conftest.$ac_ext <<_ACEOF
2760
/* end confdefs.h. */
2770
rm -f conftest.$ac_objext
2771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772
(eval $ac_compile) 2>conftest.er1
2774
grep -v '^ *+' conftest.er1 >conftest.err
2776
cat conftest.err >&5
2777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
(exit $ac_status); } &&
2779
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
(exit $ac_status); }; } &&
2785
{ ac_try='test -s conftest.$ac_objext'
2786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); }; }; then
2793
echo "$as_me: failed program was:" >&5
2794
sed 's/^/| /' conftest.$ac_ext >&5
2797
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800
if test -n "$ac_declaration"; then
2801
echo '#ifdef __cplusplus' >>confdefs.h
2802
echo $ac_declaration >>confdefs.h
2803
echo '#endif' >>confdefs.h
2807
ac_cpp='$CPP $CPPFLAGS'
2808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
LIBOFX_MAJOR_VERSION=0
2815
LIBOFX_MINOR_VERSION=8
2816
LIBOFX_MICRO_VERSION=0
2817
LIBOFX_VERSION=$LIBOFX_MAJOR_VERSION.$LIBOFX_MINOR_VERSION.$LIBOFX_MICRO_VERSION
2823
am__api_version="1.9"
2824
# Find a good install program. We prefer a C program (faster),
2825
# so one script is as good as another. But avoid the broken or
2826
# incompatible versions:
2827
# SysV /etc/install, /usr/sbin/install
2828
# SunOS /usr/etc/install
2829
# IRIX /sbin/install
2831
# AmigaOS /C/install, which installs bootblocks on floppy discs
2832
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2833
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2834
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2835
# OS/2's system install, which has a completely different semantic
2836
# ./install, which can be erroneously created by make from ./install.sh.
2837
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2838
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2839
if test -z "$INSTALL"; then
2840
if test "${ac_cv_path_install+set}" = set; then
2841
echo $ECHO_N "(cached) $ECHO_C" >&6
2843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847
test -z "$as_dir" && as_dir=.
2848
# Account for people who put trailing slashes in PATH elements.
2850
./ | .// | /cC/* | \
2851
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2852
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2855
# OSF1 and SCO ODT 3.0 have their own names for install.
2856
# Don't use installbsd from OSF since it installs stuff as root
2858
for ac_prog in ginstall scoinst install; do
2859
for ac_exec_ext in '' $ac_executable_extensions; do
2860
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2861
if test $ac_prog = install &&
2862
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2863
# AIX install. It has an incompatible calling convention.
2865
elif test $ac_prog = install &&
2866
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867
# program-specific install script used by HP pwplus--don't use.
2870
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2882
if test "${ac_cv_path_install+set}" = set; then
2883
INSTALL=$ac_cv_path_install
2885
# As a last resort, use the slow shell script. We don't cache a
2886
# path for INSTALL within a source directory, because that will
2887
# break other packages using the cache if that directory is
2888
# removed, or if the path is relative.
2889
INSTALL=$ac_install_sh
2892
echo "$as_me:$LINENO: result: $INSTALL" >&5
2893
echo "${ECHO_T}$INSTALL" >&6
2895
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2896
# It thinks the first close brace ends the variable substitution.
2897
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2899
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2901
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2903
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2904
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2907
echo timestamp > conftest.file
2908
# Do `set' in a subshell so we don't clobber the current shell's
2909
# arguments. Must try -L first in case configure is actually a
2910
# symlink; some systems play weird games with the mod time of symlinks
2911
# (eg FreeBSD returns the mod time of the symlink's containing
2914
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2915
if test "$*" = "X"; then
2917
set X `ls -t $srcdir/configure conftest.file`
2920
if test "$*" != "X $srcdir/configure conftest.file" \
2921
&& test "$*" != "X conftest.file $srcdir/configure"; then
2923
# If neither matched, then we have a broken ls. This can happen
2924
# if, for instance, CONFIG_SHELL is bash and it inherits a
2925
# broken ls alias from the environment. This has actually
2926
# happened. Such a system could not be considered "sane".
2927
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2928
alias in your environment" >&5
2929
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2930
alias in your environment" >&2;}
2931
{ (exit 1); exit 1; }; }
2934
test "$2" = conftest.file
2940
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2941
Check your system clock" >&5
2942
echo "$as_me: error: newly created file is older than distributed files!
2943
Check your system clock" >&2;}
2944
{ (exit 1); exit 1; }; }
2946
echo "$as_me:$LINENO: result: yes" >&5
2947
echo "${ECHO_T}yes" >&6
2948
test "$program_prefix" != NONE &&
2949
program_transform_name="s,^,$program_prefix,;$program_transform_name"
2950
# Use a double $ so make ignores it.
2951
test "$program_suffix" != NONE &&
2952
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2953
# Double any \ or $. echo might interpret backslashes.
2954
# By default was `s,x,x', remove it if useless.
2955
cat <<\_ACEOF >conftest.sed
2956
s/[\\$]/&&/g;s/;s,x,x,$//
2958
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2961
# expand $ac_aux_dir to an absolute path
2962
am_aux_dir=`cd $ac_aux_dir && pwd`
2964
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2965
# Use eval to expand $SHELL
2966
if eval "$MISSING --run true"; then
2967
am_missing_run="$MISSING --run "
2970
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2971
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2974
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2975
# We used to keeping the `.' as first argument, in order to
2976
# allow $(mkdir_p) to be used without argument. As in
2977
# $(mkdir_p) $(somedir)
2978
# where $(somedir) is conditionally defined. However this is wrong
2980
# 1. if the package is installed by a user who cannot write `.'
2981
# make install will fail,
2982
# 2. the above comment should most certainly read
2983
# $(mkdir_p) $(DESTDIR)$(somedir)
2984
# so it does not work when $(somedir) is undefined and
2985
# $(DESTDIR) is not.
2986
# To support the latter case, we have to write
2987
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2988
# so the `.' trick is pointless.
2989
mkdir_p='mkdir -p --'
2991
# On NextStep and OpenStep, the `mkdir' command does not
2992
# recognize any option. It will interpret all options as
2993
# directories to create, and then abort because `.' already
2995
for d in ./-p ./--version;
2997
test -d $d && rmdir $d
2999
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3000
if test -f "$ac_aux_dir/mkinstalldirs"; then
3001
mkdir_p='$(mkinstalldirs)'
3003
mkdir_p='$(install_sh) -d'
3007
for ac_prog in gawk mawk nawk awk
3009
# Extract the first word of "$ac_prog", so it can be a program name with args.
3010
set dummy $ac_prog; ac_word=$2
3011
echo "$as_me:$LINENO: checking for $ac_word" >&5
3012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013
if test "${ac_cv_prog_AWK+set}" = set; then
3014
echo $ECHO_N "(cached) $ECHO_C" >&6
3016
if test -n "$AWK"; then
3017
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023
test -z "$as_dir" && as_dir=.
3024
for ac_exec_ext in '' $ac_executable_extensions; do
3025
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026
ac_cv_prog_AWK="$ac_prog"
3027
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036
if test -n "$AWK"; then
3037
echo "$as_me:$LINENO: result: $AWK" >&5
3038
echo "${ECHO_T}$AWK" >&6
3040
echo "$as_me:$LINENO: result: no" >&5
3041
echo "${ECHO_T}no" >&6
3044
test -n "$AWK" && break
3047
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3049
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3050
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3051
echo $ECHO_N "(cached) $ECHO_C" >&6
3053
cat >conftest.make <<\_ACEOF
3055
@echo 'ac_maketemp="$(MAKE)"'
3057
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3058
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3059
if test -n "$ac_maketemp"; then
3060
eval ac_cv_prog_make_${ac_make}_set=yes
3062
eval ac_cv_prog_make_${ac_make}_set=no
3066
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3067
echo "$as_me:$LINENO: result: yes" >&5
3068
echo "${ECHO_T}yes" >&6
3071
echo "$as_me:$LINENO: result: no" >&5
3072
echo "${ECHO_T}no" >&6
3073
SET_MAKE="MAKE=${MAKE-make}"
3076
rm -rf .tst 2>/dev/null
3077
mkdir .tst 2>/dev/null
3078
if test -d .tst; then
3083
rmdir .tst 2>/dev/null
3085
DEPDIR="${am__leading_dot}deps"
3087
ac_config_commands="$ac_config_commands depfiles"
3090
am_make=${MAKE-make}
3091
cat > confinc << 'END'
3096
# If we don't find an include directive, just comment out the code.
3097
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3098
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3102
# First try GNU make style include.
3103
echo "include confinc" > confmf
3104
# We grep out `Entering directory' and `Leaving directory'
3105
# messages which can occur if `w' ends up in MAKEFLAGS.
3106
# In particular we don't look at `^make:' because GNU make might
3107
# be invoked under some other name (usually "gmake"), in which
3108
# case it prints its new name instead of `make'.
3109
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3114
# Now try BSD make style include.
3115
if test "$am__include" = "#"; then
3116
echo '.include "confinc"' > confmf
3117
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3118
am__include=.include
3125
echo "$as_me:$LINENO: result: $_am_result" >&5
3126
echo "${ECHO_T}$_am_result" >&6
3127
rm -f confinc confmf
3129
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3130
if test "${enable_dependency_tracking+set}" = set; then
3131
enableval="$enable_dependency_tracking"
3134
if test "x$enable_dependency_tracking" != xno; then
3135
am_depcomp="$ac_aux_dir/depcomp"
3140
if test "x$enable_dependency_tracking" != xno; then
3150
# test to see if srcdir already configured
3151
if test "`cd $srcdir && pwd`" != "`pwd`" &&
3152
test -f $srcdir/config.status; then
3153
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3154
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3155
{ (exit 1); exit 1; }; }
3158
# test whether we have cygpath
3159
if test -z "$CYGPATH_W"; then
3160
if (cygpath --version) >/dev/null 2>/dev/null; then
3161
CYGPATH_W='cygpath -w'
3168
# Define the identity of the package.
3170
VERSION=$LIBOFX_VERSION
3173
cat >>confdefs.h <<_ACEOF
3174
@%:@define PACKAGE "$PACKAGE"
3178
cat >>confdefs.h <<_ACEOF
3179
@%:@define VERSION "$VERSION"
3182
# Some tools Automake needs.
3184
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3187
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3190
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3193
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3196
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3198
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3200
# Installed binaries are usually stripped using `strip' when the user
3201
# run `make install-strip'. However `strip' might not be the right
3202
# tool to use in cross-compilation environments, therefore Automake
3203
# will honor the `STRIP' environment variable to overrule this program.
3204
if test "$cross_compiling" != no; then
3205
if test -n "$ac_tool_prefix"; then
3206
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3207
set dummy ${ac_tool_prefix}strip; ac_word=$2
3208
echo "$as_me:$LINENO: checking for $ac_word" >&5
3209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210
if test "${ac_cv_prog_STRIP+set}" = set; then
3211
echo $ECHO_N "(cached) $ECHO_C" >&6
3213
if test -n "$STRIP"; then
3214
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220
test -z "$as_dir" && as_dir=.
3221
for ac_exec_ext in '' $ac_executable_extensions; do
3222
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3224
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232
STRIP=$ac_cv_prog_STRIP
3233
if test -n "$STRIP"; then
3234
echo "$as_me:$LINENO: result: $STRIP" >&5
3235
echo "${ECHO_T}$STRIP" >&6
3237
echo "$as_me:$LINENO: result: no" >&5
3238
echo "${ECHO_T}no" >&6
3242
if test -z "$ac_cv_prog_STRIP"; then
3244
# Extract the first word of "strip", so it can be a program name with args.
3245
set dummy strip; ac_word=$2
3246
echo "$as_me:$LINENO: checking for $ac_word" >&5
3247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3249
echo $ECHO_N "(cached) $ECHO_C" >&6
3251
if test -n "$ac_ct_STRIP"; then
3252
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258
test -z "$as_dir" && as_dir=.
3259
for ac_exec_ext in '' $ac_executable_extensions; do
3260
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261
ac_cv_prog_ac_ct_STRIP="strip"
3262
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3271
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3272
if test -n "$ac_ct_STRIP"; then
3273
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3274
echo "${ECHO_T}$ac_ct_STRIP" >&6
3276
echo "$as_me:$LINENO: result: no" >&5
3277
echo "${ECHO_T}no" >&6
3282
STRIP="$ac_cv_prog_STRIP"
3286
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3288
# We need awk for the "check" target. The system "awk" is bad on
3290
# Always define AMTAR for backward compatibility.
3292
AMTAR=${AMTAR-"${am_missing_run}tar"}
3294
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3299
depcc="$CC" am_compiler_list=
3301
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3302
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3303
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3304
echo $ECHO_N "(cached) $ECHO_C" >&6
3306
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3307
# We make a subdir and do the tests there. Otherwise we can end up
3308
# making bogus files that we don't know about and never remove. For
3309
# instance it was reported that on HP-UX the gcc test will end up
3310
# making a dummy file named `D' -- because `-MD' means `put the output
3313
# Copy depcomp to subdir because otherwise we won't find it if we're
3314
# using a relative directory.
3315
cp "$am_depcomp" conftest.dir
3317
# We will build objects and dependencies in a subdirectory because
3318
# it helps to detect inapplicable dependency modes. For instance
3319
# both Tru64's cc and ICC support -MD to output dependencies as a
3320
# side effect of compilation, but ICC will put the dependencies in
3321
# the current directory while Tru64 will put them in the object
3325
am_cv_CC_dependencies_compiler_type=none
3326
if test "$am_compiler_list" = ""; then
3327
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3329
for depmode in $am_compiler_list; do
3330
# Setup a source with many dependencies, because some compilers
3331
# like to wrap large dependency lists on column 80 (with \), and
3332
# we should not choose a depcomp mode which is confused by this.
3334
# We need to recreate these files for each test, as the compiler may
3335
# overwrite some of them when testing with obscure command lines.
3336
# This happens at least with the AIX C compiler.
3338
for i in 1 2 3 4 5 6; do
3339
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3340
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3341
# Solaris 8's {/usr,}/bin/sh.
3342
touch sub/conftst$i.h
3344
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3348
# after this tag, mechanisms are not by side-effect, so they'll
3349
# only be used when explicitly requested
3350
if test "x$enable_dependency_tracking" = xyes; then
3358
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3359
# mode. It turns out that the SunPro C++ compiler does not properly
3360
# handle `-M -o', and we need to detect this.
3361
if depmode=$depmode \
3362
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3363
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3364
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3365
>/dev/null 2>conftest.err &&
3366
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3367
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3368
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3369
# icc doesn't choke on unknown options, it will just issue warnings
3370
# or remarks (even with -Werror). So we grep stderr for any message
3371
# that says an option was ignored or not supported.
3372
# When given -MP, icc 7.0 and 7.1 complain thusly:
3373
# icc: Command line warning: ignoring option '-M'; no argument required
3374
# The diagnosis changed in icc 8.0:
3375
# icc: Command line remark: option '-MP' not supported
3376
if (grep 'ignoring option' conftest.err ||
3377
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3378
am_cv_CC_dependencies_compiler_type=$depmode
3387
am_cv_CC_dependencies_compiler_type=none
3391
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3392
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3393
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3398
test "x$enable_dependency_tracking" != xno \
3399
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3401
am__fastdepCC_FALSE='#'
3403
am__fastdepCC_TRUE='#'
3404
am__fastdepCC_FALSE=
3408
depcc="$CXX" am_compiler_list=
3410
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3412
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3413
echo $ECHO_N "(cached) $ECHO_C" >&6
3415
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416
# We make a subdir and do the tests there. Otherwise we can end up
3417
# making bogus files that we don't know about and never remove. For
3418
# instance it was reported that on HP-UX the gcc test will end up
3419
# making a dummy file named `D' -- because `-MD' means `put the output
3422
# Copy depcomp to subdir because otherwise we won't find it if we're
3423
# using a relative directory.
3424
cp "$am_depcomp" conftest.dir
3426
# We will build objects and dependencies in a subdirectory because
3427
# it helps to detect inapplicable dependency modes. For instance
3428
# both Tru64's cc and ICC support -MD to output dependencies as a
3429
# side effect of compilation, but ICC will put the dependencies in
3430
# the current directory while Tru64 will put them in the object
3434
am_cv_CXX_dependencies_compiler_type=none
3435
if test "$am_compiler_list" = ""; then
3436
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3438
for depmode in $am_compiler_list; do
3439
# Setup a source with many dependencies, because some compilers
3440
# like to wrap large dependency lists on column 80 (with \), and
3441
# we should not choose a depcomp mode which is confused by this.
3443
# We need to recreate these files for each test, as the compiler may
3444
# overwrite some of them when testing with obscure command lines.
3445
# This happens at least with the AIX C compiler.
3447
for i in 1 2 3 4 5 6; do
3448
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450
# Solaris 8's {/usr,}/bin/sh.
3451
touch sub/conftst$i.h
3453
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3457
# after this tag, mechanisms are not by side-effect, so they'll
3458
# only be used when explicitly requested
3459
if test "x$enable_dependency_tracking" = xyes; then
3467
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3468
# mode. It turns out that the SunPro C++ compiler does not properly
3469
# handle `-M -o', and we need to detect this.
3470
if depmode=$depmode \
3471
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474
>/dev/null 2>conftest.err &&
3475
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3476
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3477
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3478
# icc doesn't choke on unknown options, it will just issue warnings
3479
# or remarks (even with -Werror). So we grep stderr for any message
3480
# that says an option was ignored or not supported.
3481
# When given -MP, icc 7.0 and 7.1 complain thusly:
3482
# icc: Command line warning: ignoring option '-M'; no argument required
3483
# The diagnosis changed in icc 8.0:
3484
# icc: Command line remark: option '-MP' not supported
3485
if (grep 'ignoring option' conftest.err ||
3486
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3487
am_cv_CXX_dependencies_compiler_type=$depmode
3496
am_cv_CXX_dependencies_compiler_type=none
3500
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3501
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3502
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3507
test "x$enable_dependency_tracking" != xno \
3508
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3509
am__fastdepCXX_TRUE=
3510
am__fastdepCXX_FALSE='#'
3512
am__fastdepCXX_TRUE='#'
3513
am__fastdepCXX_FALSE=
3520
LIBOFX_SO_REVISION=0
3522
LIBOFX_SO_EFFECTIVE="`echo \$(($LIBOFX_SO_CURRENT-$LIBOFX_SO_AGE))`"
3527
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3528
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3529
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3530
if test "${enable_maintainer_mode+set}" = set; then
3531
enableval="$enable_maintainer_mode"
3532
USE_MAINTAINER_MODE=$enableval
3534
USE_MAINTAINER_MODE=no
3536
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3537
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3540
if test $USE_MAINTAINER_MODE = yes; then
3541
MAINTAINER_MODE_TRUE=
3542
MAINTAINER_MODE_FALSE='#'
3544
MAINTAINER_MODE_TRUE='#'
3545
MAINTAINER_MODE_FALSE=
3548
MAINT=$MAINTAINER_MODE_TRUE
3552
# Find a good install program. We prefer a C program (faster),
3553
# so one script is as good as another. But avoid the broken or
3554
# incompatible versions:
3555
# SysV /etc/install, /usr/sbin/install
3556
# SunOS /usr/etc/install
3557
# IRIX /sbin/install
3559
# AmigaOS /C/install, which installs bootblocks on floppy discs
3560
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3561
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3562
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3563
# OS/2's system install, which has a completely different semantic
3564
# ./install, which can be erroneously created by make from ./install.sh.
3565
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3566
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3567
if test -z "$INSTALL"; then
3568
if test "${ac_cv_path_install+set}" = set; then
3569
echo $ECHO_N "(cached) $ECHO_C" >&6
3571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575
test -z "$as_dir" && as_dir=.
3576
# Account for people who put trailing slashes in PATH elements.
3578
./ | .// | /cC/* | \
3579
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3583
# OSF1 and SCO ODT 3.0 have their own names for install.
3584
# Don't use installbsd from OSF since it installs stuff as root
3586
for ac_prog in ginstall scoinst install; do
3587
for ac_exec_ext in '' $ac_executable_extensions; do
3588
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3589
if test $ac_prog = install &&
3590
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591
# AIX install. It has an incompatible calling convention.
3593
elif test $ac_prog = install &&
3594
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595
# program-specific install script used by HP pwplus--don't use.
3598
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3610
if test "${ac_cv_path_install+set}" = set; then
3611
INSTALL=$ac_cv_path_install
3613
# As a last resort, use the slow shell script. We don't cache a
3614
# path for INSTALL within a source directory, because that will
3615
# break other packages using the cache if that directory is
3616
# removed, or if the path is relative.
3617
INSTALL=$ac_install_sh
3620
echo "$as_me:$LINENO: result: $INSTALL" >&5
3621
echo "${ECHO_T}$INSTALL" >&6
3623
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624
# It thinks the first close brace ends the variable substitution.
3625
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3627
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3629
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3634
# Check whether --enable-shared or --disable-shared was given.
3635
if test "${enable_shared+set}" = set; then
3636
enableval="$enable_shared"
3637
p=${PACKAGE-default}
3639
yes) enable_shared=yes ;;
3640
no) enable_shared=no ;;
3643
# Look at the argument we got. We use all the common list separators.
3644
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3645
for pkg in $enableval; do
3647
if test "X$pkg" = "X$p"; then
3658
# Check whether --enable-static or --disable-static was given.
3659
if test "${enable_static+set}" = set; then
3660
enableval="$enable_static"
3661
p=${PACKAGE-default}
3663
yes) enable_static=yes ;;
3664
no) enable_static=no ;;
3667
# Look at the argument we got. We use all the common list separators.
3668
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3669
for pkg in $enableval; do
3671
if test "X$pkg" = "X$p"; then
3682
# Check whether --enable-fast-install or --disable-fast-install was given.
3683
if test "${enable_fast_install+set}" = set; then
3684
enableval="$enable_fast_install"
3685
p=${PACKAGE-default}
3687
yes) enable_fast_install=yes ;;
3688
no) enable_fast_install=no ;;
3690
enable_fast_install=no
3691
# Look at the argument we got. We use all the common list separators.
3692
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3693
for pkg in $enableval; do
3695
if test "X$pkg" = "X$p"; then
3696
enable_fast_install=yes
3703
enable_fast_install=yes
3706
# Make sure we can run config.sub.
3707
$ac_config_sub sun4 >/dev/null 2>&1 ||
3708
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3709
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3710
{ (exit 1); exit 1; }; }
3712
echo "$as_me:$LINENO: checking build system type" >&5
3713
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3714
if test "${ac_cv_build+set}" = set; then
3715
echo $ECHO_N "(cached) $ECHO_C" >&6
3717
ac_cv_build_alias=$build_alias
3718
test -z "$ac_cv_build_alias" &&
3719
ac_cv_build_alias=`$ac_config_guess`
3720
test -z "$ac_cv_build_alias" &&
3721
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3722
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3723
{ (exit 1); exit 1; }; }
3724
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3725
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3726
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3727
{ (exit 1); exit 1; }; }
3730
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3731
echo "${ECHO_T}$ac_cv_build" >&6
3733
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3734
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3735
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3738
echo "$as_me:$LINENO: checking host system type" >&5
3739
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3740
if test "${ac_cv_host+set}" = set; then
3741
echo $ECHO_N "(cached) $ECHO_C" >&6
3743
ac_cv_host_alias=$host_alias
3744
test -z "$ac_cv_host_alias" &&
3745
ac_cv_host_alias=$ac_cv_build_alias
3746
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3747
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3748
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3749
{ (exit 1); exit 1; }; }
3752
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3753
echo "${ECHO_T}$ac_cv_host" >&6
3755
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3756
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3757
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3760
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3761
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3762
if test "${lt_cv_path_SED+set}" = set; then
3763
echo $ECHO_N "(cached) $ECHO_C" >&6
3765
# Loop through the user's path and test for sed and gsed.
3766
# Then use that list of sed's as ones to test for truncation.
3767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771
test -z "$as_dir" && as_dir=.
3772
for lt_ac_prog in sed gsed; do
3773
for ac_exec_ext in '' $ac_executable_extensions; do
3774
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3775
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3782
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3783
# along with /bin/sed that truncates output.
3784
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3785
test ! -f $lt_ac_sed && continue
3786
cat /dev/null > conftest.in
3788
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3789
# Check for GNU sed and select it if it is found.
3790
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3791
lt_cv_path_SED=$lt_ac_sed
3795
cat conftest.in conftest.in >conftest.tmp
3796
mv conftest.tmp conftest.in
3797
cp conftest.in conftest.nl
3799
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3800
cmp -s conftest.out conftest.nl || break
3801
# 10000 chars as input seems more than enough
3802
test $lt_ac_count -gt 10 && break
3803
lt_ac_count=`expr $lt_ac_count + 1`
3804
if test $lt_ac_count -gt $lt_ac_max; then
3805
lt_ac_max=$lt_ac_count
3806
lt_cv_path_SED=$lt_ac_sed
3814
echo "$as_me:$LINENO: result: $SED" >&5
3815
echo "${ECHO_T}$SED" >&6
3817
echo "$as_me:$LINENO: checking for egrep" >&5
3818
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3819
if test "${ac_cv_prog_egrep+set}" = set; then
3820
echo $ECHO_N "(cached) $ECHO_C" >&6
3822
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3823
then ac_cv_prog_egrep='grep -E'
3824
else ac_cv_prog_egrep='egrep'
3827
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3828
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3829
EGREP=$ac_cv_prog_egrep
3833
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3834
if test "${with_gnu_ld+set}" = set; then
3835
withval="$with_gnu_ld"
3836
test "$withval" = no || with_gnu_ld=yes
3841
if test "$GCC" = yes; then
3842
# Check if gcc -print-prog-name=ld gives a path.
3843
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3844
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3847
# gcc leaves a trailing carriage return which upsets mingw
3848
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3850
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3853
# Accept absolute paths.
3855
re_direlt='/[^/][^/]*/\.\./'
3856
# Canonicalize the pathname of ld
3857
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3858
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3859
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3861
test -z "$LD" && LD="$ac_prog"
3864
# If it fails, then pretend we aren't using GCC.
3868
# If it is relative, then search for the first ld in PATH.
3872
elif test "$with_gnu_ld" = yes; then
3873
echo "$as_me:$LINENO: checking for GNU ld" >&5
3874
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3876
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3877
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3879
if test "${lt_cv_path_LD+set}" = set; then
3880
echo $ECHO_N "(cached) $ECHO_C" >&6
3882
if test -z "$LD"; then
3883
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3884
for ac_dir in $PATH; do
3886
test -z "$ac_dir" && ac_dir=.
3887
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3888
lt_cv_path_LD="$ac_dir/$ac_prog"
3889
# Check to see if the program is GNU ld. I'd rather use --version,
3890
# but apparently some variants of GNU ld only accept -v.
3891
# Break only if it was the GNU/non-GNU ld that we prefer.
3892
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3893
*GNU* | *'with BFD'*)
3894
test "$with_gnu_ld" != no && break
3897
test "$with_gnu_ld" != yes && break
3904
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3909
if test -n "$LD"; then
3910
echo "$as_me:$LINENO: result: $LD" >&5
3911
echo "${ECHO_T}$LD" >&6
3913
echo "$as_me:$LINENO: result: no" >&5
3914
echo "${ECHO_T}no" >&6
3916
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3917
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3918
{ (exit 1); exit 1; }; }
3919
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3920
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3921
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3922
echo $ECHO_N "(cached) $ECHO_C" >&6
3924
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3925
case `$LD -v 2>&1 </dev/null` in
3926
*GNU* | *'with BFD'*)
3927
lt_cv_prog_gnu_ld=yes
3930
lt_cv_prog_gnu_ld=no
3934
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3935
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3936
with_gnu_ld=$lt_cv_prog_gnu_ld
3939
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3940
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3941
if test "${lt_cv_ld_reload_flag+set}" = set; then
3942
echo $ECHO_N "(cached) $ECHO_C" >&6
3944
lt_cv_ld_reload_flag='-r'
3946
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3947
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3948
reload_flag=$lt_cv_ld_reload_flag
3949
case $reload_flag in
3951
*) reload_flag=" $reload_flag" ;;
3953
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3956
if test "$GCC" = yes; then
3957
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3959
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3964
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3965
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3966
if test "${lt_cv_path_NM+set}" = set; then
3967
echo $ECHO_N "(cached) $ECHO_C" >&6
3969
if test -n "$NM"; then
3970
# Let the user override the test.
3973
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3974
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3976
test -z "$ac_dir" && ac_dir=.
3977
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3978
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3979
# Check to see if the nm accepts a BSD-compat flag.
3980
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3981
# nm: unknown option "B" ignored
3982
# Tru64's nm complains that /dev/null is an invalid object file
3983
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3984
*/dev/null* | *'Invalid file or object type'*)
3985
lt_cv_path_NM="$tmp_nm -B"
3989
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3991
lt_cv_path_NM="$tmp_nm -p"
3995
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3996
continue # so that we can try to find one that supports BSD flags
4003
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4006
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4007
echo "${ECHO_T}$lt_cv_path_NM" >&6
4010
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4011
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4013
if test "$LN_S" = "ln -s"; then
4014
echo "$as_me:$LINENO: result: yes" >&5
4015
echo "${ECHO_T}yes" >&6
4017
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4018
echo "${ECHO_T}no, using $LN_S" >&6
4021
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4022
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4023
if test "${lt_cv_deplibs_check_method+set}" = set; then
4024
echo $ECHO_N "(cached) $ECHO_C" >&6
4026
lt_cv_file_magic_cmd='$MAGIC_CMD'
4027
lt_cv_file_magic_test_file=
4028
lt_cv_deplibs_check_method='unknown'
4029
# Need to set the preceding variable on all platforms that support
4030
# interlibrary dependencies.
4031
# 'none' -- dependencies not supported.
4032
# `unknown' -- same as none, but documents that we really don't know.
4033
# 'pass_all' -- all dependencies passed with no checks.
4034
# 'test_compile' -- check by making test program.
4035
# 'file_magic [[regex]]' -- check by looking for files in library path
4036
# which responds to the $file_magic_cmd with a given extended regex.
4037
# If you have `file' or equivalent on your system and you're not sure
4038
# whether `pass_all' will *always* work, you probably want this one.
4042
lt_cv_deplibs_check_method=pass_all
4046
lt_cv_deplibs_check_method=pass_all
4050
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4051
lt_cv_file_magic_cmd='/usr/bin/file -L'
4052
lt_cv_file_magic_test_file=/shlib/libc.so
4056
# func_win32_libid is a shell function defined in ltmain.sh
4057
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4058
lt_cv_file_magic_cmd='func_win32_libid'
4062
# Base MSYS/MinGW do not provide the 'file' command needed by
4063
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4064
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4065
lt_cv_file_magic_cmd='$OBJDUMP -f'
4068
darwin* | rhapsody*)
4069
lt_cv_deplibs_check_method=pass_all
4072
freebsd* | kfreebsd*-gnu | dragonfly*)
4073
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4076
# Not sure whether the presence of OpenBSD here was a mistake.
4077
# Let's accept both of them until this is cleared up.
4078
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4079
lt_cv_file_magic_cmd=/usr/bin/file
4080
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4084
lt_cv_deplibs_check_method=pass_all
4089
lt_cv_deplibs_check_method=pass_all
4092
hpux10.20* | hpux11*)
4093
lt_cv_file_magic_cmd=/usr/bin/file
4096
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4097
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4100
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4101
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4104
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4105
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4110
irix5* | irix6* | nonstopux*)
4112
*-32|*"-32 ") libmagic=32-bit;;
4113
*-n32|*"-n32 ") libmagic=N32;;
4114
*-64|*"-64 ") libmagic=64-bit;;
4115
*) libmagic=never-match;;
4117
lt_cv_deplibs_check_method=pass_all
4120
# This must be Linux ELF.
4122
lt_cv_deplibs_check_method=pass_all
4125
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4126
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4127
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4129
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4134
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4135
lt_cv_file_magic_cmd=/usr/bin/file
4136
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4140
lt_cv_deplibs_check_method=unknown
4144
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4145
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4147
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4151
osf3* | osf4* | osf5*)
4152
lt_cv_deplibs_check_method=pass_all
4156
lt_cv_deplibs_check_method=pass_all
4160
lt_cv_deplibs_check_method=pass_all
4163
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4164
case $host_vendor in
4166
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]'
4167
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4170
lt_cv_deplibs_check_method=pass_all
4173
lt_cv_file_magic_cmd='/bin/file'
4174
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4177
lt_cv_file_magic_cmd='/bin/file'
4178
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4179
lt_cv_file_magic_test_file=/lib/libc.so
4182
lt_cv_deplibs_check_method=pass_all
4187
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4188
lt_cv_deplibs_check_method=pass_all
4193
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4194
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4195
file_magic_cmd=$lt_cv_file_magic_cmd
4196
deplibs_check_method=$lt_cv_deplibs_check_method
4197
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4202
# If no C compiler was specified, use CC.
4205
# Allow CC to be a program name with arguments.
4209
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4210
if test "${enable_libtool_lock+set}" = set; then
4211
enableval="$enable_libtool_lock"
4214
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4216
# Some flags need to be propagated to the compiler or linker for good
4220
# Find out which ABI we are using.
4221
echo 'int i;' > conftest.$ac_ext
4222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223
(eval $ac_compile) 2>&5
4225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226
(exit $ac_status); }; then
4227
case `/usr/bin/file conftest.$ac_objext` in
4239
# Find out which ABI we are using.
4240
echo '#line __oline__ "configure"' > conftest.$ac_ext
4241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242
(eval $ac_compile) 2>&5
4244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
(exit $ac_status); }; then
4246
if test "$lt_cv_prog_gnu_ld" = yes; then
4247
case `/usr/bin/file conftest.$ac_objext` in
4249
LD="${LD-ld} -melf32bsmip"
4252
LD="${LD-ld} -melf32bmipn32"
4255
LD="${LD-ld} -melf64bmip"
4259
case `/usr/bin/file conftest.$ac_objext` in
4275
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4276
# Find out which ABI we are using.
4277
echo 'int i;' > conftest.$ac_ext
4278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279
(eval $ac_compile) 2>&5
4281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282
(exit $ac_status); }; then
4283
case `/usr/bin/file conftest.o` in
4287
LD="${LD-ld} -m elf_i386"
4289
ppc64-*linux*|powerpc64-*linux*)
4290
LD="${LD-ld} -m elf32ppclinux"
4293
LD="${LD-ld} -m elf_s390"
4296
LD="${LD-ld} -m elf32_sparc"
4303
LD="${LD-ld} -m elf_x86_64"
4305
ppc*-*linux*|powerpc*-*linux*)
4306
LD="${LD-ld} -m elf64ppc"
4309
LD="${LD-ld} -m elf64_s390"
4312
LD="${LD-ld} -m elf64_sparc"
4322
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323
SAVE_CFLAGS="$CFLAGS"
4324
CFLAGS="$CFLAGS -belf"
4325
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327
if test "${lt_cv_cc_needs_belf+set}" = set; then
4328
echo $ECHO_N "(cached) $ECHO_C" >&6
4331
ac_cpp='$CPP $CPPFLAGS'
4332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
cat >conftest.$ac_ext <<_ACEOF
4339
cat confdefs.h >>conftest.$ac_ext
4340
cat >>conftest.$ac_ext <<_ACEOF
4341
/* end confdefs.h. */
4351
rm -f conftest.$ac_objext conftest$ac_exeext
4352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353
(eval $ac_link) 2>conftest.er1
4355
grep -v '^ *+' conftest.er1 >conftest.err
4357
cat conftest.err >&5
4358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
(exit $ac_status); } &&
4360
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
(exit $ac_status); }; } &&
4366
{ ac_try='test -s conftest$ac_exeext'
4367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
(exit $ac_status); }; }; then
4372
lt_cv_cc_needs_belf=yes
4374
echo "$as_me: failed program was:" >&5
4375
sed 's/^/| /' conftest.$ac_ext >&5
4377
lt_cv_cc_needs_belf=no
4379
rm -f conftest.err conftest.$ac_objext \
4380
conftest$ac_exeext conftest.$ac_ext
4382
ac_cpp='$CPP $CPPFLAGS'
4383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4389
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4390
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4391
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4392
CFLAGS="$SAVE_CFLAGS"
4398
need_locks="$enable_libtool_lock"
4402
ac_cpp='$CPP $CPPFLAGS'
4403
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4407
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4408
# On Suns, sometimes $CPP names a directory.
4409
if test -n "$CPP" && test -d "$CPP"; then
4412
if test -z "$CPP"; then
4413
if test "${ac_cv_prog_CPP+set}" = set; then
4414
echo $ECHO_N "(cached) $ECHO_C" >&6
4416
# Double quotes because CPP needs to be expanded
4417
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4420
for ac_c_preproc_warn_flag in '' yes
4422
# Use a header file that comes with gcc, so configuring glibc
4423
# with a fresh cross-compiler works.
4424
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425
# <limits.h> exists even on freestanding compilers.
4426
# On the NeXT, cc -E runs the code through the compiler's parser,
4427
# not just through cpp. "Syntax error" is here to catch this case.
4428
cat >conftest.$ac_ext <<_ACEOF
4431
cat confdefs.h >>conftest.$ac_ext
4432
cat >>conftest.$ac_ext <<_ACEOF
4433
/* end confdefs.h. */
4435
@%:@ include <limits.h>
4437
@%:@ include <assert.h>
4441
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4442
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444
grep -v '^ *+' conftest.er1 >conftest.err
4446
cat conftest.err >&5
4447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448
(exit $ac_status); } >/dev/null; then
4449
if test -s conftest.err; then
4450
ac_cpp_err=$ac_c_preproc_warn_flag
4451
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4458
if test -z "$ac_cpp_err"; then
4461
echo "$as_me: failed program was:" >&5
4462
sed 's/^/| /' conftest.$ac_ext >&5
4464
# Broken: fails on valid input.
4467
rm -f conftest.err conftest.$ac_ext
4469
# OK, works on sane cases. Now check whether non-existent headers
4470
# can be detected and how.
4471
cat >conftest.$ac_ext <<_ACEOF
4474
cat confdefs.h >>conftest.$ac_ext
4475
cat >>conftest.$ac_ext <<_ACEOF
4476
/* end confdefs.h. */
4477
@%:@include <ac_nonexistent.h>
4479
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4480
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4482
grep -v '^ *+' conftest.er1 >conftest.err
4484
cat conftest.err >&5
4485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486
(exit $ac_status); } >/dev/null; then
4487
if test -s conftest.err; then
4488
ac_cpp_err=$ac_c_preproc_warn_flag
4489
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4496
if test -z "$ac_cpp_err"; then
4497
# Broken: success on invalid input.
4500
echo "$as_me: failed program was:" >&5
4501
sed 's/^/| /' conftest.$ac_ext >&5
4503
# Passes both tests.
4507
rm -f conftest.err conftest.$ac_ext
4510
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511
rm -f conftest.err conftest.$ac_ext
4512
if $ac_preproc_ok; then
4524
echo "$as_me:$LINENO: result: $CPP" >&5
4525
echo "${ECHO_T}$CPP" >&6
4527
for ac_c_preproc_warn_flag in '' yes
4529
# Use a header file that comes with gcc, so configuring glibc
4530
# with a fresh cross-compiler works.
4531
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532
# <limits.h> exists even on freestanding compilers.
4533
# On the NeXT, cc -E runs the code through the compiler's parser,
4534
# not just through cpp. "Syntax error" is here to catch this case.
4535
cat >conftest.$ac_ext <<_ACEOF
4538
cat confdefs.h >>conftest.$ac_ext
4539
cat >>conftest.$ac_ext <<_ACEOF
4540
/* end confdefs.h. */
4542
@%:@ include <limits.h>
4544
@%:@ include <assert.h>
4548
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4549
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551
grep -v '^ *+' conftest.er1 >conftest.err
4553
cat conftest.err >&5
4554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555
(exit $ac_status); } >/dev/null; then
4556
if test -s conftest.err; then
4557
ac_cpp_err=$ac_c_preproc_warn_flag
4558
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4565
if test -z "$ac_cpp_err"; then
4568
echo "$as_me: failed program was:" >&5
4569
sed 's/^/| /' conftest.$ac_ext >&5
4571
# Broken: fails on valid input.
4574
rm -f conftest.err conftest.$ac_ext
4576
# OK, works on sane cases. Now check whether non-existent headers
4577
# can be detected and how.
4578
cat >conftest.$ac_ext <<_ACEOF
4581
cat confdefs.h >>conftest.$ac_ext
4582
cat >>conftest.$ac_ext <<_ACEOF
4583
/* end confdefs.h. */
4584
@%:@include <ac_nonexistent.h>
4586
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4587
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4589
grep -v '^ *+' conftest.er1 >conftest.err
4591
cat conftest.err >&5
4592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593
(exit $ac_status); } >/dev/null; then
4594
if test -s conftest.err; then
4595
ac_cpp_err=$ac_c_preproc_warn_flag
4596
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4603
if test -z "$ac_cpp_err"; then
4604
# Broken: success on invalid input.
4607
echo "$as_me: failed program was:" >&5
4608
sed 's/^/| /' conftest.$ac_ext >&5
4610
# Passes both tests.
4614
rm -f conftest.err conftest.$ac_ext
4617
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4618
rm -f conftest.err conftest.$ac_ext
4619
if $ac_preproc_ok; then
4622
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4623
See \`config.log' for more details." >&5
4624
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4625
See \`config.log' for more details." >&2;}
4626
{ (exit 1); exit 1; }; }
4630
ac_cpp='$CPP $CPPFLAGS'
4631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4637
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4638
if test "${ac_cv_header_stdc+set}" = set; then
4639
echo $ECHO_N "(cached) $ECHO_C" >&6
4641
cat >conftest.$ac_ext <<_ACEOF
4644
cat confdefs.h >>conftest.$ac_ext
4645
cat >>conftest.$ac_ext <<_ACEOF
4646
/* end confdefs.h. */
4660
rm -f conftest.$ac_objext
4661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662
(eval $ac_compile) 2>conftest.er1
4664
grep -v '^ *+' conftest.er1 >conftest.err
4666
cat conftest.err >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); } &&
4669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674
(exit $ac_status); }; } &&
4675
{ ac_try='test -s conftest.$ac_objext'
4676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680
(exit $ac_status); }; }; then
4681
ac_cv_header_stdc=yes
4683
echo "$as_me: failed program was:" >&5
4684
sed 's/^/| /' conftest.$ac_ext >&5
4686
ac_cv_header_stdc=no
4688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690
if test $ac_cv_header_stdc = yes; then
4691
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4692
cat >conftest.$ac_ext <<_ACEOF
4695
cat confdefs.h >>conftest.$ac_ext
4696
cat >>conftest.$ac_ext <<_ACEOF
4697
/* end confdefs.h. */
4701
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702
$EGREP "memchr" >/dev/null 2>&1; then
4705
ac_cv_header_stdc=no
4711
if test $ac_cv_header_stdc = yes; then
4712
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4713
cat >conftest.$ac_ext <<_ACEOF
4716
cat confdefs.h >>conftest.$ac_ext
4717
cat >>conftest.$ac_ext <<_ACEOF
4718
/* end confdefs.h. */
4722
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723
$EGREP "free" >/dev/null 2>&1; then
4726
ac_cv_header_stdc=no
4732
if test $ac_cv_header_stdc = yes; then
4733
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4734
if test "$cross_compiling" = yes; then
4737
cat >conftest.$ac_ext <<_ACEOF
4740
cat confdefs.h >>conftest.$ac_ext
4741
cat >>conftest.$ac_ext <<_ACEOF
4742
/* end confdefs.h. */
4744
#if ((' ' & 0x0FF) == 0x020)
4745
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4746
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4748
# define ISLOWER(c) \
4749
(('a' <= (c) && (c) <= 'i') \
4750
|| ('j' <= (c) && (c) <= 'r') \
4751
|| ('s' <= (c) && (c) <= 'z'))
4752
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4755
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4760
for (i = 0; i < 256; i++)
4761
if (XOR (islower (i), ISLOWER (i))
4762
|| toupper (i) != TOUPPER (i))
4767
rm -f conftest$ac_exeext
4768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769
(eval $ac_link) 2>&5
4771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
(exit $ac_status); }; }; then
4780
echo "$as_me: program exited with status $ac_status" >&5
4781
echo "$as_me: failed program was:" >&5
4782
sed 's/^/| /' conftest.$ac_ext >&5
4785
ac_cv_header_stdc=no
4787
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4791
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4792
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4793
if test $ac_cv_header_stdc = yes; then
4795
cat >>confdefs.h <<\_ACEOF
4796
@%:@define STDC_HEADERS 1
4801
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4811
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4812
inttypes.h stdint.h unistd.h
4814
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815
echo "$as_me:$LINENO: checking for $ac_header" >&5
4816
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4817
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4818
echo $ECHO_N "(cached) $ECHO_C" >&6
4820
cat >conftest.$ac_ext <<_ACEOF
4823
cat confdefs.h >>conftest.$ac_ext
4824
cat >>conftest.$ac_ext <<_ACEOF
4825
/* end confdefs.h. */
4826
$ac_includes_default
4828
@%:@include <$ac_header>
4830
rm -f conftest.$ac_objext
4831
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832
(eval $ac_compile) 2>conftest.er1
4834
grep -v '^ *+' conftest.er1 >conftest.err
4836
cat conftest.err >&5
4837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838
(exit $ac_status); } &&
4839
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844
(exit $ac_status); }; } &&
4845
{ ac_try='test -s conftest.$ac_objext'
4846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850
(exit $ac_status); }; }; then
4851
eval "$as_ac_Header=yes"
4853
echo "$as_me: failed program was:" >&5
4854
sed 's/^/| /' conftest.$ac_ext >&5
4856
eval "$as_ac_Header=no"
4858
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4863
cat >>confdefs.h <<_ACEOF
4864
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4873
for ac_header in dlfcn.h
4875
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4876
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4877
echo "$as_me:$LINENO: checking for $ac_header" >&5
4878
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4879
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4880
echo $ECHO_N "(cached) $ECHO_C" >&6
4882
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4883
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4885
# Is the header compilable?
4886
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4887
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4888
cat >conftest.$ac_ext <<_ACEOF
4891
cat confdefs.h >>conftest.$ac_ext
4892
cat >>conftest.$ac_ext <<_ACEOF
4893
/* end confdefs.h. */
4894
$ac_includes_default
4895
@%:@include <$ac_header>
4897
rm -f conftest.$ac_objext
4898
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899
(eval $ac_compile) 2>conftest.er1
4901
grep -v '^ *+' conftest.er1 >conftest.err
4903
cat conftest.err >&5
4904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905
(exit $ac_status); } &&
4906
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911
(exit $ac_status); }; } &&
4912
{ ac_try='test -s conftest.$ac_objext'
4913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917
(exit $ac_status); }; }; then
4918
ac_header_compiler=yes
4920
echo "$as_me: failed program was:" >&5
4921
sed 's/^/| /' conftest.$ac_ext >&5
4923
ac_header_compiler=no
4925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4926
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4927
echo "${ECHO_T}$ac_header_compiler" >&6
4929
# Is the header present?
4930
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4931
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4932
cat >conftest.$ac_ext <<_ACEOF
4935
cat confdefs.h >>conftest.$ac_ext
4936
cat >>conftest.$ac_ext <<_ACEOF
4937
/* end confdefs.h. */
4938
@%:@include <$ac_header>
4940
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943
grep -v '^ *+' conftest.er1 >conftest.err
4945
cat conftest.err >&5
4946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
(exit $ac_status); } >/dev/null; then
4948
if test -s conftest.err; then
4949
ac_cpp_err=$ac_c_preproc_warn_flag
4950
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4957
if test -z "$ac_cpp_err"; then
4958
ac_header_preproc=yes
4960
echo "$as_me: failed program was:" >&5
4961
sed 's/^/| /' conftest.$ac_ext >&5
4963
ac_header_preproc=no
4965
rm -f conftest.err conftest.$ac_ext
4966
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4967
echo "${ECHO_T}$ac_header_preproc" >&6
4969
# So? What about this header?
4970
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4972
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4973
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4974
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4975
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4976
ac_header_preproc=yes
4979
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4980
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4981
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4982
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4983
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4984
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4985
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4986
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4987
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4988
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4989
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4990
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4993
@%:@@%:@ ------------------------------------------ @%:@@%:@
4994
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
4995
@%:@@%:@ ------------------------------------------ @%:@@%:@
4998
sed "s/^/$as_me: WARNING: /" >&2
5001
echo "$as_me:$LINENO: checking for $ac_header" >&5
5002
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5003
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5004
echo $ECHO_N "(cached) $ECHO_C" >&6
5006
eval "$as_ac_Header=\$ac_header_preproc"
5008
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5009
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5012
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5013
cat >>confdefs.h <<_ACEOF
5014
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5024
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5025
(test "X$CXX" != "Xg++"))) ; then
5027
ac_cpp='$CXXCPP $CPPFLAGS'
5028
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5032
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5033
if test -z "$CXXCPP"; then
5034
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5035
echo $ECHO_N "(cached) $ECHO_C" >&6
5037
# Double quotes because CXXCPP needs to be expanded
5038
for CXXCPP in "$CXX -E" "/lib/cpp"
5041
for ac_cxx_preproc_warn_flag in '' yes
5043
# Use a header file that comes with gcc, so configuring glibc
5044
# with a fresh cross-compiler works.
5045
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046
# <limits.h> exists even on freestanding compilers.
5047
# On the NeXT, cc -E runs the code through the compiler's parser,
5048
# not just through cpp. "Syntax error" is here to catch this case.
5049
cat >conftest.$ac_ext <<_ACEOF
5052
cat confdefs.h >>conftest.$ac_ext
5053
cat >>conftest.$ac_ext <<_ACEOF
5054
/* end confdefs.h. */
5056
@%:@ include <limits.h>
5058
@%:@ include <assert.h>
5062
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065
grep -v '^ *+' conftest.er1 >conftest.err
5067
cat conftest.err >&5
5068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069
(exit $ac_status); } >/dev/null; then
5070
if test -s conftest.err; then
5071
ac_cpp_err=$ac_cxx_preproc_warn_flag
5072
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079
if test -z "$ac_cpp_err"; then
5082
echo "$as_me: failed program was:" >&5
5083
sed 's/^/| /' conftest.$ac_ext >&5
5085
# Broken: fails on valid input.
5088
rm -f conftest.err conftest.$ac_ext
5090
# OK, works on sane cases. Now check whether non-existent headers
5091
# can be detected and how.
5092
cat >conftest.$ac_ext <<_ACEOF
5095
cat confdefs.h >>conftest.$ac_ext
5096
cat >>conftest.$ac_ext <<_ACEOF
5097
/* end confdefs.h. */
5098
@%:@include <ac_nonexistent.h>
5100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103
grep -v '^ *+' conftest.er1 >conftest.err
5105
cat conftest.err >&5
5106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107
(exit $ac_status); } >/dev/null; then
5108
if test -s conftest.err; then
5109
ac_cpp_err=$ac_cxx_preproc_warn_flag
5110
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117
if test -z "$ac_cpp_err"; then
5118
# Broken: success on invalid input.
5121
echo "$as_me: failed program was:" >&5
5122
sed 's/^/| /' conftest.$ac_ext >&5
5124
# Passes both tests.
5128
rm -f conftest.err conftest.$ac_ext
5131
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132
rm -f conftest.err conftest.$ac_ext
5133
if $ac_preproc_ok; then
5138
ac_cv_prog_CXXCPP=$CXXCPP
5141
CXXCPP=$ac_cv_prog_CXXCPP
5143
ac_cv_prog_CXXCPP=$CXXCPP
5145
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5146
echo "${ECHO_T}$CXXCPP" >&6
5148
for ac_cxx_preproc_warn_flag in '' yes
5150
# Use a header file that comes with gcc, so configuring glibc
5151
# with a fresh cross-compiler works.
5152
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153
# <limits.h> exists even on freestanding compilers.
5154
# On the NeXT, cc -E runs the code through the compiler's parser,
5155
# not just through cpp. "Syntax error" is here to catch this case.
5156
cat >conftest.$ac_ext <<_ACEOF
5159
cat confdefs.h >>conftest.$ac_ext
5160
cat >>conftest.$ac_ext <<_ACEOF
5161
/* end confdefs.h. */
5163
@%:@ include <limits.h>
5165
@%:@ include <assert.h>
5169
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172
grep -v '^ *+' conftest.er1 >conftest.err
5174
cat conftest.err >&5
5175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176
(exit $ac_status); } >/dev/null; then
5177
if test -s conftest.err; then
5178
ac_cpp_err=$ac_cxx_preproc_warn_flag
5179
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5186
if test -z "$ac_cpp_err"; then
5189
echo "$as_me: failed program was:" >&5
5190
sed 's/^/| /' conftest.$ac_ext >&5
5192
# Broken: fails on valid input.
5195
rm -f conftest.err conftest.$ac_ext
5197
# OK, works on sane cases. Now check whether non-existent headers
5198
# can be detected and how.
5199
cat >conftest.$ac_ext <<_ACEOF
5202
cat confdefs.h >>conftest.$ac_ext
5203
cat >>conftest.$ac_ext <<_ACEOF
5204
/* end confdefs.h. */
5205
@%:@include <ac_nonexistent.h>
5207
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5208
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5210
grep -v '^ *+' conftest.er1 >conftest.err
5212
cat conftest.err >&5
5213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214
(exit $ac_status); } >/dev/null; then
5215
if test -s conftest.err; then
5216
ac_cpp_err=$ac_cxx_preproc_warn_flag
5217
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5224
if test -z "$ac_cpp_err"; then
5225
# Broken: success on invalid input.
5228
echo "$as_me: failed program was:" >&5
5229
sed 's/^/| /' conftest.$ac_ext >&5
5231
# Passes both tests.
5235
rm -f conftest.err conftest.$ac_ext
5238
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239
rm -f conftest.err conftest.$ac_ext
5240
if $ac_preproc_ok; then
5243
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5244
See \`config.log' for more details." >&5
5245
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5246
See \`config.log' for more details." >&2;}
5247
{ (exit 1); exit 1; }; }
5251
ac_cpp='$CXXCPP $CPPFLAGS'
5252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5261
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5263
if test -n "$ac_tool_prefix"; then
5264
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5266
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268
echo "$as_me:$LINENO: checking for $ac_word" >&5
5269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270
if test "${ac_cv_prog_F77+set}" = set; then
5271
echo $ECHO_N "(cached) $ECHO_C" >&6
5273
if test -n "$F77"; then
5274
ac_cv_prog_F77="$F77" # Let the user override the test.
5276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280
test -z "$as_dir" && as_dir=.
5281
for ac_exec_ext in '' $ac_executable_extensions; do
5282
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5284
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293
if test -n "$F77"; then
5294
echo "$as_me:$LINENO: result: $F77" >&5
5295
echo "${ECHO_T}$F77" >&6
5297
echo "$as_me:$LINENO: result: no" >&5
5298
echo "${ECHO_T}no" >&6
5301
test -n "$F77" && break
5304
if test -z "$F77"; then
5306
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5308
# Extract the first word of "$ac_prog", so it can be a program name with args.
5309
set dummy $ac_prog; ac_word=$2
5310
echo "$as_me:$LINENO: checking for $ac_word" >&5
5311
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5313
echo $ECHO_N "(cached) $ECHO_C" >&6
5315
if test -n "$ac_ct_F77"; then
5316
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322
test -z "$as_dir" && as_dir=.
5323
for ac_exec_ext in '' $ac_executable_extensions; do
5324
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325
ac_cv_prog_ac_ct_F77="$ac_prog"
5326
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5335
if test -n "$ac_ct_F77"; then
5336
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5337
echo "${ECHO_T}$ac_ct_F77" >&6
5339
echo "$as_me:$LINENO: result: no" >&5
5340
echo "${ECHO_T}no" >&6
5343
test -n "$ac_ct_F77" && break
5350
# Provide some information about the compiler.
5351
echo "$as_me:__oline__:" \
5352
"checking for Fortran 77 compiler version" >&5
5353
ac_compiler=`set X $ac_compile; echo $2`
5354
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5355
(eval $ac_compiler --version </dev/null >&5) 2>&5
5357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358
(exit $ac_status); }
5359
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5360
(eval $ac_compiler -v </dev/null >&5) 2>&5
5362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
(exit $ac_status); }
5364
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5365
(eval $ac_compiler -V </dev/null >&5) 2>&5
5367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368
(exit $ac_status); }
5371
# If we don't use `.F' as extension, the preprocessor is not run on the
5372
# input file. (Note that this only needs to work for GNU compilers.)
5375
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5376
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5377
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5378
echo $ECHO_N "(cached) $ECHO_C" >&6
5380
cat >conftest.$ac_ext <<_ACEOF
5388
rm -f conftest.$ac_objext
5389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390
(eval $ac_compile) 2>conftest.er1
5392
grep -v '^ *+' conftest.er1 >conftest.err
5394
cat conftest.err >&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); } &&
5397
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402
(exit $ac_status); }; } &&
5403
{ ac_try='test -s conftest.$ac_objext'
5404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); }; }; then
5411
echo "$as_me: failed program was:" >&5
5412
sed 's/^/| /' conftest.$ac_ext >&5
5416
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5420
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5421
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5423
ac_test_FFLAGS=${FFLAGS+set}
5424
ac_save_FFLAGS=$FFLAGS
5426
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5427
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5428
if test "${ac_cv_prog_f77_g+set}" = set; then
5429
echo $ECHO_N "(cached) $ECHO_C" >&6
5432
cat >conftest.$ac_ext <<_ACEOF
5437
rm -f conftest.$ac_objext
5438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439
(eval $ac_compile) 2>conftest.er1
5441
grep -v '^ *+' conftest.er1 >conftest.err
5443
cat conftest.err >&5
5444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445
(exit $ac_status); } &&
5446
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451
(exit $ac_status); }; } &&
5452
{ ac_try='test -s conftest.$ac_objext'
5453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457
(exit $ac_status); }; }; then
5458
ac_cv_prog_f77_g=yes
5460
echo "$as_me: failed program was:" >&5
5461
sed 's/^/| /' conftest.$ac_ext >&5
5465
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5469
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5470
if test "$ac_test_FFLAGS" = set; then
5471
FFLAGS=$ac_save_FFLAGS
5472
elif test $ac_cv_prog_f77_g = yes; then
5473
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5479
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5486
G77=`test $ac_compiler_gnu = yes && echo yes`
5488
ac_cpp='$CPP $CPPFLAGS'
5489
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5497
# find the maximum length of command line arguments
5498
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5499
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5500
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5501
echo $ECHO_N "(cached) $ECHO_C" >&6
5508
# On DJGPP, this test can blow up pretty badly due to problems in libc
5509
# (any single argument exceeding 2000 bytes causes a buffer overrun
5510
# during glob expansion). Even if it were fixed, the result of this
5511
# check would be larger than it should be.
5512
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5516
# Under GNU Hurd, this test is not required because there is
5517
# no limit to the length of command line arguments.
5518
# Libtool will interpret -1 as no limit whatsoever
5519
lt_cv_sys_max_cmd_len=-1;
5523
# On Win9x/ME, this test blows up -- it succeeds, but takes
5524
# about 5 minutes as the teststring grows exponentially.
5525
# Worse, since 9x/ME are not pre-emptively multitasking,
5526
# you end up with a "frozen" computer, even though with patience
5527
# the test eventually succeeds (with a max line length of 256k).
5528
# Instead, let's just punt: use the minimum linelength reported by
5529
# all of the supported platforms: 8192 (on NT/2K/XP).
5530
lt_cv_sys_max_cmd_len=8192;
5534
# On AmigaOS with pdksh, this test takes hours, literally.
5535
# So we just punt and use a minimum line length of 8192.
5536
lt_cv_sys_max_cmd_len=8192;
5539
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5540
# This has been around since 386BSD, at least. Likely further.
5541
if test -x /sbin/sysctl; then
5542
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5543
elif test -x /usr/sbin/sysctl; then
5544
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5546
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5548
# And add a safety zone
5549
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5550
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5553
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5554
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5555
# nice to cause kernel panics so lets avoid the loop below.
5556
# First set a reasonable default.
5557
lt_cv_sys_max_cmd_len=16384
5559
if test -x /sbin/sysconfig; then
5560
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5561
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5566
# If test is not a shell built-in, we'll probably end up computing a
5567
# maximum length that is only half of the actual maximum length, but
5569
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5571
= "XX$teststring") >/dev/null 2>&1 &&
5572
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5573
lt_cv_sys_max_cmd_len=$new_result &&
5574
test $i != 17 # 1/2 MB should be enough
5577
teststring=$teststring$teststring
5580
# Add a significant safety factor because C++ compilers can tack on massive
5581
# amounts of additional arguments before passing them to the linker.
5582
# It appears as though 1/2 is a usable value.
5583
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5589
if test -n $lt_cv_sys_max_cmd_len ; then
5590
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5591
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5593
echo "$as_me:$LINENO: result: none" >&5
5594
echo "${ECHO_T}none" >&6
5600
# Check for command to grab the raw symbol name followed by C symbol from nm.
5601
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5603
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604
echo $ECHO_N "(cached) $ECHO_C" >&6
5607
# These are sane defaults that work on at least a few old systems.
5608
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5610
# Character class describing NM global symbol codes.
5611
symcode='[BCDEGRST]'
5613
# Regexp to match symbols that can be accessed directly from C.
5614
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5616
# Transform an extracted symbol line into a proper C declaration
5617
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5619
# Transform an extracted symbol line into symbol name and symbol address
5620
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'"
5622
# Define system-specific variables.
5627
cygwin* | mingw* | pw32*)
5628
symcode='[ABCDGISTW]'
5630
hpux*) # Its linker distinguishes data from code symbols
5631
if test "$host_cpu" = ia64; then
5632
symcode='[ABCDEGRST]'
5634
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5635
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'"
5638
if test "$host_cpu" = ia64; then
5639
symcode='[ABCDGIRSTW]'
5640
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5641
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'"
5645
symcode='[BCDEGRST]'
5648
symcode='[BCDEGQRST]'
5658
# Handle CRLF in mingw tool chain
5662
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5666
# If we're using GNU nm, then use its standard symbol codes.
5667
case `$NM -V 2>&1` in
5668
*GNU* | *'with BFD'*)
5669
symcode='[ABCDGIRSTW]' ;;
5672
# Try without a prefix undercore, then with it.
5673
for ac_symprfx in "" "_"; do
5675
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5676
symxfrm="\\1 $ac_symprfx\\2 \\2"
5678
# Write the raw and C identifiers.
5679
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5681
# Check to see that the pipe works correctly.
5685
cat > conftest.$ac_ext <<EOF
5690
void nm_test_func(){}
5694
int main(){nm_test_var='a';nm_test_func();return(0);}
5697
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698
(eval $ac_compile) 2>&5
5700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701
(exit $ac_status); }; then
5702
# Now try to grab the symbols.
5704
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5705
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708
(exit $ac_status); } && test -s "$nlist"; then
5709
# Try sorting and uniquifying the output.
5710
if sort "$nlist" | uniq > "$nlist"T; then
5711
mv -f "$nlist"T "$nlist"
5716
# Make sure that we snagged all the symbols we need.
5717
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5718
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5719
cat <<EOF > conftest.$ac_ext
5725
# Now generate the symbol file.
5726
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5728
cat <<EOF >> conftest.$ac_ext
5729
#if defined (__STDC__) && __STDC__
5730
# define lt_ptr_t void *
5732
# define lt_ptr_t char *
5736
/* The mapping between symbol names and symbols. */
5741
lt_preloaded_symbols[] =
5744
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5745
cat <<\EOF >> conftest.$ac_ext
5753
# Now try linking the two files.
5754
mv conftest.$ac_objext conftstm.$ac_objext
5755
lt_save_LIBS="$LIBS"
5756
lt_save_CFLAGS="$CFLAGS"
5757
LIBS="conftstm.$ac_objext"
5758
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760
(eval $ac_link) 2>&5
5762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5766
LIBS="$lt_save_LIBS"
5767
CFLAGS="$lt_save_CFLAGS"
5769
echo "cannot find nm_test_func in $nlist" >&5
5772
echo "cannot find nm_test_var in $nlist" >&5
5775
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5778
echo "$progname: failed program was:" >&5
5779
cat conftest.$ac_ext >&5
5781
rm -f conftest* conftst*
5783
# Do not use the global_symbol_pipe unless it works.
5784
if test "$pipe_works" = yes; then
5787
lt_cv_sys_global_symbol_pipe=
5793
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5794
lt_cv_sys_global_symbol_to_cdecl=
5796
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5797
echo "$as_me:$LINENO: result: failed" >&5
5798
echo "${ECHO_T}failed" >&6
5800
echo "$as_me:$LINENO: result: ok" >&5
5801
echo "${ECHO_T}ok" >&6
5804
echo "$as_me:$LINENO: checking for objdir" >&5
5805
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5806
if test "${lt_cv_objdir+set}" = set; then
5807
echo $ECHO_N "(cached) $ECHO_C" >&6
5809
rm -f .libs 2>/dev/null
5810
mkdir .libs 2>/dev/null
5811
if test -d .libs; then
5814
# MS-DOS does not allow filenames that begin with a dot.
5817
rmdir .libs 2>/dev/null
5819
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5820
echo "${ECHO_T}$lt_cv_objdir" >&6
5821
objdir=$lt_cv_objdir
5829
# AIX sometimes has problems with the GCC collect2 program. For some
5830
# reason, if we set the COLLECT_NAMES environment variable, the problems
5831
# vanish in a puff of smoke.
5832
if test "X${COLLECT_NAMES+set}" != Xset; then
5834
export COLLECT_NAMES
5839
# Sed substitution that helps us do robust quoting. It backslashifies
5840
# metacharacters that are still active within double-quoted strings.
5841
Xsed='sed -e 1s/^X//'
5842
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5844
# Same as above, but do not quote variable references.
5845
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5847
# Sed substitution to delay expansion of an escaped shell variable in a
5848
# double_quote_subst'ed string.
5849
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5851
# Sed substitution to avoid accidental globbing in evaled expressions
5852
no_glob_subst='s/\*/\\\*/g'
5858
default_ofile=libtool
5859
can_build_shared=yes
5861
# All known linkers require a `.a' archive for static linking (except MSVC,
5862
# which needs '.lib').
5864
ltmain="$ac_aux_dir/ltmain.sh"
5865
ofile="$default_ofile"
5866
with_gnu_ld="$lt_cv_prog_gnu_ld"
5868
if test -n "$ac_tool_prefix"; then
5869
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5870
set dummy ${ac_tool_prefix}ar; ac_word=$2
5871
echo "$as_me:$LINENO: checking for $ac_word" >&5
5872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873
if test "${ac_cv_prog_AR+set}" = set; then
5874
echo $ECHO_N "(cached) $ECHO_C" >&6
5876
if test -n "$AR"; then
5877
ac_cv_prog_AR="$AR" # Let the user override the test.
5879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883
test -z "$as_dir" && as_dir=.
5884
for ac_exec_ext in '' $ac_executable_extensions; do
5885
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886
ac_cv_prog_AR="${ac_tool_prefix}ar"
5887
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896
if test -n "$AR"; then
5897
echo "$as_me:$LINENO: result: $AR" >&5
5898
echo "${ECHO_T}$AR" >&6
5900
echo "$as_me:$LINENO: result: no" >&5
5901
echo "${ECHO_T}no" >&6
5905
if test -z "$ac_cv_prog_AR"; then
5907
# Extract the first word of "ar", so it can be a program name with args.
5908
set dummy ar; ac_word=$2
5909
echo "$as_me:$LINENO: checking for $ac_word" >&5
5910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5911
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5912
echo $ECHO_N "(cached) $ECHO_C" >&6
5914
if test -n "$ac_ct_AR"; then
5915
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921
test -z "$as_dir" && as_dir=.
5922
for ac_exec_ext in '' $ac_executable_extensions; do
5923
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924
ac_cv_prog_ac_ct_AR="ar"
5925
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5934
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5935
if test -n "$ac_ct_AR"; then
5936
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5937
echo "${ECHO_T}$ac_ct_AR" >&6
5939
echo "$as_me:$LINENO: result: no" >&5
5940
echo "${ECHO_T}no" >&6
5948
if test -n "$ac_tool_prefix"; then
5949
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5950
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5951
echo "$as_me:$LINENO: checking for $ac_word" >&5
5952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953
if test "${ac_cv_prog_RANLIB+set}" = set; then
5954
echo $ECHO_N "(cached) $ECHO_C" >&6
5956
if test -n "$RANLIB"; then
5957
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963
test -z "$as_dir" && as_dir=.
5964
for ac_exec_ext in '' $ac_executable_extensions; do
5965
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5967
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975
RANLIB=$ac_cv_prog_RANLIB
5976
if test -n "$RANLIB"; then
5977
echo "$as_me:$LINENO: result: $RANLIB" >&5
5978
echo "${ECHO_T}$RANLIB" >&6
5980
echo "$as_me:$LINENO: result: no" >&5
5981
echo "${ECHO_T}no" >&6
5985
if test -z "$ac_cv_prog_RANLIB"; then
5986
ac_ct_RANLIB=$RANLIB
5987
# Extract the first word of "ranlib", so it can be a program name with args.
5988
set dummy ranlib; ac_word=$2
5989
echo "$as_me:$LINENO: checking for $ac_word" >&5
5990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5991
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5992
echo $ECHO_N "(cached) $ECHO_C" >&6
5994
if test -n "$ac_ct_RANLIB"; then
5995
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001
test -z "$as_dir" && as_dir=.
6002
for ac_exec_ext in '' $ac_executable_extensions; do
6003
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004
ac_cv_prog_ac_ct_RANLIB="ranlib"
6005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6014
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6015
if test -n "$ac_ct_RANLIB"; then
6016
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6017
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6019
echo "$as_me:$LINENO: result: no" >&5
6020
echo "${ECHO_T}no" >&6
6023
RANLIB=$ac_ct_RANLIB
6025
RANLIB="$ac_cv_prog_RANLIB"
6028
if test -n "$ac_tool_prefix"; then
6029
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6030
set dummy ${ac_tool_prefix}strip; ac_word=$2
6031
echo "$as_me:$LINENO: checking for $ac_word" >&5
6032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033
if test "${ac_cv_prog_STRIP+set}" = set; then
6034
echo $ECHO_N "(cached) $ECHO_C" >&6
6036
if test -n "$STRIP"; then
6037
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043
test -z "$as_dir" && as_dir=.
6044
for ac_exec_ext in '' $ac_executable_extensions; do
6045
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6047
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055
STRIP=$ac_cv_prog_STRIP
6056
if test -n "$STRIP"; then
6057
echo "$as_me:$LINENO: result: $STRIP" >&5
6058
echo "${ECHO_T}$STRIP" >&6
6060
echo "$as_me:$LINENO: result: no" >&5
6061
echo "${ECHO_T}no" >&6
6065
if test -z "$ac_cv_prog_STRIP"; then
6067
# Extract the first word of "strip", so it can be a program name with args.
6068
set dummy strip; ac_word=$2
6069
echo "$as_me:$LINENO: checking for $ac_word" >&5
6070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6071
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6072
echo $ECHO_N "(cached) $ECHO_C" >&6
6074
if test -n "$ac_ct_STRIP"; then
6075
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081
test -z "$as_dir" && as_dir=.
6082
for ac_exec_ext in '' $ac_executable_extensions; do
6083
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084
ac_cv_prog_ac_ct_STRIP="strip"
6085
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6094
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6095
if test -n "$ac_ct_STRIP"; then
6096
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6097
echo "${ECHO_T}$ac_ct_STRIP" >&6
6099
echo "$as_me:$LINENO: result: no" >&5
6100
echo "${ECHO_T}no" >&6
6105
STRIP="$ac_cv_prog_STRIP"
6110
old_CFLAGS="$CFLAGS"
6112
# Set sane defaults for various variables
6113
test -z "$AR" && AR=ar
6114
test -z "$AR_FLAGS" && AR_FLAGS=cru
6115
test -z "$AS" && AS=as
6116
test -z "$CC" && CC=cc
6117
test -z "$LTCC" && LTCC=$CC
6118
test -z "$DLLTOOL" && DLLTOOL=dlltool
6119
test -z "$LD" && LD=ld
6120
test -z "$LN_S" && LN_S="ln -s"
6121
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6122
test -z "$NM" && NM=nm
6123
test -z "$SED" && SED=sed
6124
test -z "$OBJDUMP" && OBJDUMP=objdump
6125
test -z "$RANLIB" && RANLIB=:
6126
test -z "$STRIP" && STRIP=:
6127
test -z "$ac_objext" && ac_objext=o
6129
# Determine commands to create old-style static archives.
6130
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6131
old_postinstall_cmds='chmod 644 $oldlib'
6132
old_postuninstall_cmds=
6134
if test -n "$RANLIB"; then
6137
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6140
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6143
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6146
for cc_temp in $compiler""; do
6148
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6149
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6154
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6157
# Only perform the check for file, if the check method requires it
6158
case $deplibs_check_method in
6160
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6161
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6162
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6163
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6164
echo $ECHO_N "(cached) $ECHO_C" >&6
6168
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171
lt_save_MAGIC_CMD="$MAGIC_CMD"
6172
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6173
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6174
for ac_dir in $ac_dummy; do
6176
test -z "$ac_dir" && ac_dir=.
6177
if test -f $ac_dir/${ac_tool_prefix}file; then
6178
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6179
if test -n "$file_magic_test_file"; then
6180
case $deplibs_check_method in
6182
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6183
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6184
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6185
$EGREP "$file_magic_regex" > /dev/null; then
6190
*** Warning: the command libtool uses to detect shared libraries,
6191
*** $file_magic_cmd, produces output that libtool cannot recognize.
6192
*** The result is that libtool may fail to recognize shared libraries
6193
*** as such. This will affect the creation of libtool libraries that
6194
*** depend on shared libraries, but programs linked with such libtool
6195
*** libraries will work regardless of this problem. Nevertheless, you
6196
*** may want to report the problem to your system manager and/or to
6197
*** bug-libtool@gnu.org
6207
MAGIC_CMD="$lt_save_MAGIC_CMD"
6212
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6213
if test -n "$MAGIC_CMD"; then
6214
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6215
echo "${ECHO_T}$MAGIC_CMD" >&6
6217
echo "$as_me:$LINENO: result: no" >&5
6218
echo "${ECHO_T}no" >&6
6221
if test -z "$lt_cv_path_MAGIC_CMD"; then
6222
if test -n "$ac_tool_prefix"; then
6223
echo "$as_me:$LINENO: checking for file" >&5
6224
echo $ECHO_N "checking for file... $ECHO_C" >&6
6225
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6226
echo $ECHO_N "(cached) $ECHO_C" >&6
6230
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6233
lt_save_MAGIC_CMD="$MAGIC_CMD"
6234
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6235
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6236
for ac_dir in $ac_dummy; do
6238
test -z "$ac_dir" && ac_dir=.
6239
if test -f $ac_dir/file; then
6240
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6241
if test -n "$file_magic_test_file"; then
6242
case $deplibs_check_method in
6244
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6245
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6246
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6247
$EGREP "$file_magic_regex" > /dev/null; then
6252
*** Warning: the command libtool uses to detect shared libraries,
6253
*** $file_magic_cmd, produces output that libtool cannot recognize.
6254
*** The result is that libtool may fail to recognize shared libraries
6255
*** as such. This will affect the creation of libtool libraries that
6256
*** depend on shared libraries, but programs linked with such libtool
6257
*** libraries will work regardless of this problem. Nevertheless, you
6258
*** may want to report the problem to your system manager and/or to
6259
*** bug-libtool@gnu.org
6269
MAGIC_CMD="$lt_save_MAGIC_CMD"
6274
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6275
if test -n "$MAGIC_CMD"; then
6276
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6277
echo "${ECHO_T}$MAGIC_CMD" >&6
6279
echo "$as_me:$LINENO: result: no" >&5
6280
echo "${ECHO_T}no" >&6
6295
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6296
if test "${enable_libtool_lock+set}" = set; then
6297
enableval="$enable_libtool_lock"
6300
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6303
# Check whether --with-pic or --without-pic was given.
6304
if test "${with_pic+set}" = set; then
6310
test -z "$pic_mode" && pic_mode=default
6312
# Use C for the default configuration in the libtool script
6316
ac_cpp='$CPP $CPPFLAGS'
6317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
# Source file extension for C test sources.
6325
# Object file extension for compiled C test sources.
6329
# Code to be used in simple compile tests
6330
lt_simple_compile_test_code="int some_variable = 0;\n"
6332
# Code to be used in simple link tests
6333
lt_simple_link_test_code='int main(){return(0);}\n'
6336
# If no C compiler was specified, use CC.
6339
# Allow CC to be a program name with arguments.
6343
# save warnings/boilerplate of simple test code
6344
ac_outfile=conftest.$ac_objext
6345
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6346
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6347
_lt_compiler_boilerplate=`cat conftest.err`
6350
ac_outfile=conftest.$ac_objext
6351
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6352
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6353
_lt_linker_boilerplate=`cat conftest.err`
6358
# Check for any special shared library compilation flags.
6361
if test "$GCC" = no; then
6364
lt_prog_cc_shlib='-belf'
6368
if test -n "$lt_prog_cc_shlib"; then
6369
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6370
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6371
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6373
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6374
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6375
lt_cv_prog_cc_can_build_shared=no
6381
# Check to make sure the static flag actually works.
6383
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6384
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6385
if test "${lt_prog_compiler_static_works+set}" = set; then
6386
echo $ECHO_N "(cached) $ECHO_C" >&6
6388
lt_prog_compiler_static_works=no
6389
save_LDFLAGS="$LDFLAGS"
6390
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6391
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6392
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6393
# The linker can only warn and ignore the option if not recognized
6394
# So say no if there are warnings
6395
if test -s conftest.err; then
6396
# Append any errors to the config.log.
6397
cat conftest.err 1>&5
6398
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6399
$SED '/^$/d' conftest.err >conftest.er2
6400
if diff conftest.exp conftest.er2 >/dev/null; then
6401
lt_prog_compiler_static_works=yes
6404
lt_prog_compiler_static_works=yes
6408
LDFLAGS="$save_LDFLAGS"
6411
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6412
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6414
if test x"$lt_prog_compiler_static_works" = xyes; then
6417
lt_prog_compiler_static=
6423
lt_prog_compiler_no_builtin_flag=
6425
if test "$GCC" = yes; then
6426
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6429
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6430
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6431
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6432
echo $ECHO_N "(cached) $ECHO_C" >&6
6434
lt_cv_prog_compiler_rtti_exceptions=no
6435
ac_outfile=conftest.$ac_objext
6436
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6437
lt_compiler_flag="-fno-rtti -fno-exceptions"
6438
# Insert the option either (1) after the last *FLAGS variable, or
6439
# (2) before a word containing "conftest.", or (3) at the end.
6440
# Note that $ac_compile itself does not contain backslashes and begins
6441
# with a dollar sign (not a hyphen), so the echo should work correctly.
6442
# The option is referenced via a variable to avoid confusing sed.
6443
lt_compile=`echo "$ac_compile" | $SED \
6444
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6445
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6446
-e 's:$: $lt_compiler_flag:'`
6447
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6448
(eval "$lt_compile" 2>conftest.err)
6450
cat conftest.err >&5
6451
echo "$as_me:__oline__: \$? = $ac_status" >&5
6452
if (exit $ac_status) && test -s "$ac_outfile"; then
6453
# The compiler can only warn and ignore the option if not recognized
6454
# So say no if there are warnings other than the usual output.
6455
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6456
$SED '/^$/d' conftest.err >conftest.er2
6457
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6458
lt_cv_prog_compiler_rtti_exceptions=yes
6464
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6465
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6467
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6468
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6475
lt_prog_compiler_wl=
6476
lt_prog_compiler_pic=
6477
lt_prog_compiler_static=
6479
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6480
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6482
if test "$GCC" = yes; then
6483
lt_prog_compiler_wl='-Wl,'
6484
lt_prog_compiler_static='-static'
6488
# All AIX code is PIC.
6489
if test "$host_cpu" = ia64; then
6490
# AIX 5 now supports IA64 processor
6491
lt_prog_compiler_static='-Bstatic'
6496
# FIXME: we need at least 68020 code to build shared libraries, but
6497
# adding the `-m68020' flag to GCC prevents building anything better,
6499
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6502
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6503
# PIC is the default for these OSes.
6506
mingw* | pw32* | os2*)
6507
# This hack is so that the source file can tell whether it is being
6508
# built for inclusion in a dll (and should export symbols for example).
6509
lt_prog_compiler_pic='-DDLL_EXPORT'
6512
darwin* | rhapsody*)
6513
# PIC is the default on this platform
6514
# Common symbols not allowed in MH_DYLIB files
6515
lt_prog_compiler_pic='-fno-common'
6519
# Just because we use GCC doesn't mean we suddenly get shared libraries
6520
# on systems that don't support them.
6521
lt_prog_compiler_can_build_shared=no
6526
if test -d /usr/nec; then
6527
lt_prog_compiler_pic=-Kconform_pic
6532
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6539
lt_prog_compiler_pic='-fPIC'
6545
lt_prog_compiler_pic='-fPIC'
6549
# PORTME Check for flag to pass linker flags through the system compiler.
6552
lt_prog_compiler_wl='-Wl,'
6553
if test "$host_cpu" = ia64; then
6554
# AIX 5 now supports IA64 processor
6555
lt_prog_compiler_static='-Bstatic'
6557
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6561
# PIC is the default on this platform
6562
# Common symbols not allowed in MH_DYLIB files
6563
case $cc_basename in
6565
lt_prog_compiler_pic='-qnocommon'
6566
lt_prog_compiler_wl='-Wl,'
6571
mingw* | pw32* | os2*)
6572
# This hack is so that the source file can tell whether it is being
6573
# built for inclusion in a dll (and should export symbols for example).
6574
lt_prog_compiler_pic='-DDLL_EXPORT'
6577
hpux9* | hpux10* | hpux11*)
6578
lt_prog_compiler_wl='-Wl,'
6579
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6586
lt_prog_compiler_pic='+Z'
6589
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6590
lt_prog_compiler_static='${wl}-a ${wl}archive'
6593
irix5* | irix6* | nonstopux*)
6594
lt_prog_compiler_wl='-Wl,'
6595
# PIC (with -KPIC) is the default.
6596
lt_prog_compiler_static='-non_shared'
6600
lt_prog_compiler_pic='-KPIC'
6601
lt_prog_compiler_static='-Bstatic'
6605
case $cc_basename in
6607
lt_prog_compiler_wl='-Wl,'
6608
lt_prog_compiler_pic='-KPIC'
6609
lt_prog_compiler_static='-static'
6611
pgcc* | pgf77* | pgf90* | pgf95*)
6612
# Portland Group compilers (*not* the Pentium gcc compiler,
6613
# which looks to be a dead project)
6614
lt_prog_compiler_wl='-Wl,'
6615
lt_prog_compiler_pic='-fpic'
6616
lt_prog_compiler_static='-Bstatic'
6619
lt_prog_compiler_wl='-Wl,'
6620
# All Alpha code is PIC.
6621
lt_prog_compiler_static='-non_shared'
6626
osf3* | osf4* | osf5*)
6627
lt_prog_compiler_wl='-Wl,'
6628
# All OSF/1 code is PIC.
6629
lt_prog_compiler_static='-non_shared'
6633
lt_prog_compiler_pic='-Kpic'
6634
lt_prog_compiler_static='-dn'
6638
lt_prog_compiler_pic='-KPIC'
6639
lt_prog_compiler_static='-Bstatic'
6640
case $cc_basename in
6642
lt_prog_compiler_wl='-Qoption ld ';;
6644
lt_prog_compiler_wl='-Wl,';;
6649
lt_prog_compiler_wl='-Qoption ld '
6650
lt_prog_compiler_pic='-PIC'
6651
lt_prog_compiler_static='-Bstatic'
6654
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6655
lt_prog_compiler_wl='-Wl,'
6656
lt_prog_compiler_pic='-KPIC'
6657
lt_prog_compiler_static='-Bstatic'
6661
if test -d /usr/nec ;then
6662
lt_prog_compiler_pic='-Kconform_pic'
6663
lt_prog_compiler_static='-Bstatic'
6668
lt_prog_compiler_wl='-Wl,'
6669
lt_prog_compiler_can_build_shared=no
6673
lt_prog_compiler_pic='-pic'
6674
lt_prog_compiler_static='-Bstatic'
6678
lt_prog_compiler_can_build_shared=no
6683
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6684
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6687
# Check to make sure the PIC flag actually works.
6689
if test -n "$lt_prog_compiler_pic"; then
6691
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6692
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6693
if test "${lt_prog_compiler_pic_works+set}" = set; then
6694
echo $ECHO_N "(cached) $ECHO_C" >&6
6696
lt_prog_compiler_pic_works=no
6697
ac_outfile=conftest.$ac_objext
6698
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6699
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6700
# Insert the option either (1) after the last *FLAGS variable, or
6701
# (2) before a word containing "conftest.", or (3) at the end.
6702
# Note that $ac_compile itself does not contain backslashes and begins
6703
# with a dollar sign (not a hyphen), so the echo should work correctly.
6704
# The option is referenced via a variable to avoid confusing sed.
6705
lt_compile=`echo "$ac_compile" | $SED \
6706
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6707
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6708
-e 's:$: $lt_compiler_flag:'`
6709
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6710
(eval "$lt_compile" 2>conftest.err)
6712
cat conftest.err >&5
6713
echo "$as_me:__oline__: \$? = $ac_status" >&5
6714
if (exit $ac_status) && test -s "$ac_outfile"; then
6715
# The compiler can only warn and ignore the option if not recognized
6716
# So say no if there are warnings other than the usual output.
6717
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6718
$SED '/^$/d' conftest.err >conftest.er2
6719
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6720
lt_prog_compiler_pic_works=yes
6726
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6727
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6729
if test x"$lt_prog_compiler_pic_works" = xyes; then
6730
case $lt_prog_compiler_pic in
6732
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6735
lt_prog_compiler_pic=
6736
lt_prog_compiler_can_build_shared=no
6741
# For platforms which do not support PIC, -DPIC is meaningless:
6743
lt_prog_compiler_pic=
6746
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6750
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6751
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6752
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6753
echo $ECHO_N "(cached) $ECHO_C" >&6
6755
lt_cv_prog_compiler_c_o=no
6756
$rm -r conftest 2>/dev/null
6760
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6762
lt_compiler_flag="-o out/conftest2.$ac_objext"
6763
# Insert the option either (1) after the last *FLAGS variable, or
6764
# (2) before a word containing "conftest.", or (3) at the end.
6765
# Note that $ac_compile itself does not contain backslashes and begins
6766
# with a dollar sign (not a hyphen), so the echo should work correctly.
6767
lt_compile=`echo "$ac_compile" | $SED \
6768
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6769
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6770
-e 's:$: $lt_compiler_flag:'`
6771
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6772
(eval "$lt_compile" 2>out/conftest.err)
6774
cat out/conftest.err >&5
6775
echo "$as_me:__oline__: \$? = $ac_status" >&5
6776
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6778
# The compiler can only warn and ignore the option if not recognized
6779
# So say no if there are warnings
6780
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6781
$SED '/^$/d' out/conftest.err >out/conftest.er2
6782
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6783
lt_cv_prog_compiler_c_o=yes
6788
# SGI C++ compiler will create directory out/ii_files/ for
6789
# template instantiation
6790
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6791
$rm out/* && rmdir out
6797
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6798
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6801
hard_links="nottested"
6802
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6803
# do not overwrite the value of need_locks provided by the user
6804
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6805
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6808
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6810
ln conftest.a conftest.b 2>&5 || hard_links=no
6811
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6812
echo "$as_me:$LINENO: result: $hard_links" >&5
6813
echo "${ECHO_T}$hard_links" >&6
6814
if test "$hard_links" = no; then
6815
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6816
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6823
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6824
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6827
allow_undefined_flag=
6828
enable_shared_with_static_runtimes=no
6830
archive_expsym_cmds=
6831
old_archive_From_new_cmds=
6832
old_archive_from_expsyms_cmds=
6833
export_dynamic_flag_spec=
6834
whole_archive_flag_spec=
6835
thread_safe_flag_spec=
6836
hardcode_libdir_flag_spec=
6837
hardcode_libdir_flag_spec_ld=
6838
hardcode_libdir_separator=
6841
hardcode_shlibpath_var=unsupported
6842
link_all_deplibs=unknown
6843
hardcode_automatic=no
6846
always_export_symbols=no
6847
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6848
# include_expsyms should be a list of space-separated symbols to be *always*
6849
# included in the symbol list
6851
# exclude_expsyms can be an extended regexp of symbols to exclude
6852
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6853
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6854
# as well as any symbol that contains `d'.
6855
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6856
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6857
# platforms (ab)use it in PIC code, but their linkers get confused if
6858
# the symbol is explicitly referenced. Since portable code cannot
6859
# rely on this symbol name, it's probably fine to never include it in
6860
# preloaded symbol tables.
6861
extract_expsyms_cmds=
6862
# Just being paranoid about ensuring that cc_basename is set.
6863
for cc_temp in $compiler""; do
6865
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6866
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6871
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6874
cygwin* | mingw* | pw32*)
6875
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6876
# When not using gcc, we currently assume that we are using
6877
# Microsoft Visual C++.
6878
if test "$GCC" != yes; then
6888
if test "$with_gnu_ld" = yes; then
6889
# If archive_cmds runs LD, not CC, wlarc should be empty
6892
# Set some defaults for GNU ld with shared library support. These
6893
# are reset later if shared libraries are not supported. Putting them
6894
# here allows them to be overridden if necessary.
6895
runpath_var=LD_RUN_PATH
6896
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6897
export_dynamic_flag_spec='${wl}--export-dynamic'
6898
# ancient GNU ld didn't support --whole-archive et. al.
6899
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6900
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6902
whole_archive_flag_spec=
6904
supports_anon_versioning=no
6905
case `$LD -v 2>/dev/null` in
6906
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6907
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6908
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6909
*\ 2.11.*) ;; # other 2.11 versions
6910
*) supports_anon_versioning=yes ;;
6913
# See if GNU ld supports shared libraries.
6915
aix3* | aix4* | aix5*)
6916
# On AIX/PPC, the GNU linker is very broken
6917
if test "$host_cpu" != ia64; then
6921
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6922
*** to be unable to reliably create shared libraries on AIX.
6923
*** Therefore, libtool is disabling shared libraries support. If you
6924
*** really care for shared libraries, you may want to modify your PATH
6925
*** so that a non-GNU linker is found, and then restart.
6932
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)'
6933
hardcode_libdir_flag_spec='-L$libdir'
6934
hardcode_minus_L=yes
6936
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6937
# that the semantics of dynamic libraries on AmigaOS, at least up
6938
# to version 4, is to share data among multiple programs linked
6939
# with the same dynamic library. Since this doesn't match the
6940
# behavior of shared libraries on other platforms, we can't use
6946
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947
allow_undefined_flag=unsupported
6948
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6949
# support --undefined. This deserves some investigation. FIXME
6950
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6956
cygwin* | mingw* | pw32*)
6957
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6958
# as there is no search path for DLLs.
6959
hardcode_libdir_flag_spec='-L$libdir'
6960
allow_undefined_flag=unsupported
6961
always_export_symbols=no
6962
enable_shared_with_static_runtimes=yes
6963
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6965
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6966
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6967
# If the export-symbols file already is a .def file (1st line
6968
# is EXPORTS), use it as is; otherwise, prepend...
6969
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6970
cp $export_symbols $output_objdir/$soname.def;
6972
echo EXPORTS > $output_objdir/$soname.def;
6973
cat $export_symbols >> $output_objdir/$soname.def;
6975
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6982
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6984
case $cc_basename,$host_cpu in
6985
pgcc*) # Portland Group C compiler
6986
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6987
tmp_addflag=' $pic_flag'
6989
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6990
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6991
tmp_addflag=' $pic_flag -Mnomain' ;;
6992
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6993
tmp_addflag=' -i_dynamic' ;;
6994
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6995
tmp_addflag=' -i_dynamic -nofor_main' ;;
6996
ifc* | ifort*) # Intel Fortran compiler
6997
tmp_addflag=' -nofor_main' ;;
6999
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001
if test $supports_anon_versioning = yes; then
7002
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7003
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7004
$echo "local: *; };" >> $output_objdir/$libname.ver~
7005
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7013
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7014
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7015
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7018
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7019
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7024
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7028
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7029
*** create shared libraries on Solaris systems. Therefore, libtool
7030
*** is disabling shared libraries support. We urge you to upgrade GNU
7031
*** binutils to release 2.9.1 or newer. Another option is to modify
7032
*** your PATH or compiler configuration so that the native linker is
7033
*** used, and then restart.
7036
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7037
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7038
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7048
hardcode_shlibpath_var=no
7052
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7053
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7054
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7061
if test "$ld_shlibs" = no; then
7063
hardcode_libdir_flag_spec=
7064
export_dynamic_flag_spec=
7065
whole_archive_flag_spec=
7068
# PORTME fill in a description of your system's linker (not GNU ld)
7071
allow_undefined_flag=unsupported
7072
always_export_symbols=yes
7073
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'
7074
# Note: this linker hardcodes the directories in LIBPATH if there
7075
# are no directories specified by -L.
7076
hardcode_minus_L=yes
7077
if test "$GCC" = yes && test -z "$link_static_flag"; then
7078
# Neither direct hardcoding nor static linking is supported with a
7080
hardcode_direct=unsupported
7085
if test "$host_cpu" = ia64; then
7086
# On IA64, the linker does run time linking by default, so we don't
7087
# have to do anything special.
7088
aix_use_runtimelinking=no
7089
exp_sym_flag='-Bexport'
7092
# If we're using GNU nm, then we don't want the "-C" option.
7093
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7094
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7095
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'
7097
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'
7099
aix_use_runtimelinking=no
7101
# Test if we are trying to use run time linking or normal
7102
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7103
# need to do runtime linking.
7104
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7105
for ld_flag in $LDFLAGS; do
7106
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7107
aix_use_runtimelinking=yes
7113
exp_sym_flag='-bexport'
7114
no_entry_flag='-bnoentry'
7117
# When large executables or shared objects are built, AIX ld can
7118
# have problems creating the table of contents. If linking a library
7119
# or program results in "error TOC overflow" add -mminimal-toc to
7120
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7121
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7125
hardcode_libdir_separator=':'
7126
link_all_deplibs=yes
7128
if test "$GCC" = yes; then
7129
case $host_os in aix4.[012]|aix4.[012].*)
7130
# We only want to do this on AIX 4.2 and lower, the check
7131
# below for broken collect2 doesn't work under 4.3+
7132
collect2name=`${CC} -print-prog-name=collect2`
7133
if test -f "$collect2name" && \
7134
strings "$collect2name" | grep resolve_lib_name >/dev/null
7136
# We have reworked collect2
7139
# We have old collect2
7140
hardcode_direct=unsupported
7141
# It fails to find uninstalled libraries when the uninstalled
7142
# path is not listed in the libpath. Setting hardcode_minus_L
7143
# to unsupported forces relinking
7144
hardcode_minus_L=yes
7145
hardcode_libdir_flag_spec='-L$libdir'
7146
hardcode_libdir_separator=
7149
shared_flag='-shared'
7150
if test "$aix_use_runtimelinking" = yes; then
7151
shared_flag="$shared_flag "'${wl}-G'
7155
if test "$host_cpu" = ia64; then
7156
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7157
# chokes on -Wl,-G. The following line is correct:
7160
if test "$aix_use_runtimelinking" = yes; then
7161
shared_flag='${wl}-G'
7163
shared_flag='${wl}-bM:SRE'
7168
# It seems that -bexpall does not export symbols beginning with
7169
# underscore (_), so it is better to generate a list of symbols to export.
7170
always_export_symbols=yes
7171
if test "$aix_use_runtimelinking" = yes; then
7172
# Warning - without using the other runtime loading flags (-brtl),
7173
# -berok will link without error, but may produce a broken library.
7174
allow_undefined_flag='-berok'
7175
# Determine the default libpath from the value encoded in an empty executable.
7176
cat >conftest.$ac_ext <<_ACEOF
7179
cat confdefs.h >>conftest.$ac_ext
7180
cat >>conftest.$ac_ext <<_ACEOF
7181
/* end confdefs.h. */
7191
rm -f conftest.$ac_objext conftest$ac_exeext
7192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193
(eval $ac_link) 2>conftest.er1
7195
grep -v '^ *+' conftest.er1 >conftest.err
7197
cat conftest.err >&5
7198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199
(exit $ac_status); } &&
7200
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205
(exit $ac_status); }; } &&
7206
{ ac_try='test -s conftest$ac_exeext'
7207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
(exit $ac_status); }; }; then
7213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7215
# Check for a 64-bit object if we didn't find anything.
7216
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; }
7219
echo "$as_me: failed program was:" >&5
7220
sed 's/^/| /' conftest.$ac_ext >&5
7223
rm -f conftest.err conftest.$ac_objext \
7224
conftest$ac_exeext conftest.$ac_ext
7225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7227
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7228
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"
7230
if test "$host_cpu" = ia64; then
7231
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7232
allow_undefined_flag="-z nodefs"
7233
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"
7235
# Determine the default libpath from the value encoded in an empty executable.
7236
cat >conftest.$ac_ext <<_ACEOF
7239
cat confdefs.h >>conftest.$ac_ext
7240
cat >>conftest.$ac_ext <<_ACEOF
7241
/* end confdefs.h. */
7251
rm -f conftest.$ac_objext conftest$ac_exeext
7252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253
(eval $ac_link) 2>conftest.er1
7255
grep -v '^ *+' conftest.er1 >conftest.err
7257
cat conftest.err >&5
7258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259
(exit $ac_status); } &&
7260
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265
(exit $ac_status); }; } &&
7266
{ ac_try='test -s conftest$ac_exeext'
7267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271
(exit $ac_status); }; }; then
7273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7275
# Check for a 64-bit object if we didn't find anything.
7276
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; }
7279
echo "$as_me: failed program was:" >&5
7280
sed 's/^/| /' conftest.$ac_ext >&5
7283
rm -f conftest.err conftest.$ac_objext \
7284
conftest$ac_exeext conftest.$ac_ext
7285
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7287
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7288
# Warning - without using the other run time loading flags,
7289
# -berok will link without error, but may produce a broken library.
7290
no_undefined_flag=' ${wl}-bernotok'
7291
allow_undefined_flag=' ${wl}-berok'
7292
# -bexpall does not export symbols beginning with underscore (_)
7293
always_export_symbols=yes
7294
# Exported symbols can be pulled into shared objects from archives
7295
whole_archive_flag_spec=' '
7296
archive_cmds_need_lc=yes
7297
# This is similar to how AIX traditionally builds its shared libraries.
7298
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'
7304
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)'
7305
hardcode_libdir_flag_spec='-L$libdir'
7306
hardcode_minus_L=yes
7307
# see comment about different semantics on the GNU ld section
7312
export_dynamic_flag_spec=-rdynamic
7315
cygwin* | mingw* | pw32*)
7316
# When not using gcc, we currently assume that we are using
7317
# Microsoft Visual C++.
7318
# hardcode_libdir_flag_spec is actually meaningless, as there is
7319
# no search path for DLLs.
7320
hardcode_libdir_flag_spec=' '
7321
allow_undefined_flag=unsupported
7322
# Tell ltmain to make .lib files, not .a files.
7324
# Tell ltmain to make .dll files, not .so files.
7326
# FIXME: Setting linknames here is a bad hack.
7327
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7328
# The linker will automatically build a .lib file if we build a DLL.
7329
old_archive_From_new_cmds='true'
7330
# FIXME: Should let the user specify the lib program.
7331
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7332
fix_srcfile_path='`cygpath -w "$srcfile"`'
7333
enable_shared_with_static_runtimes=yes
7336
darwin* | rhapsody*)
7338
rhapsody* | darwin1.[012])
7339
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7342
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7343
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7345
case ${MACOSX_DEPLOYMENT_TARGET} in
7347
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7350
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7356
archive_cmds_need_lc=no
7358
hardcode_automatic=yes
7359
hardcode_shlibpath_var=unsupported
7360
whole_archive_flag_spec=''
7361
link_all_deplibs=yes
7362
if test "$GCC" = yes ; then
7363
output_verbose_link_cmd='echo'
7364
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7365
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7366
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7367
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7368
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7370
case $cc_basename in
7372
output_verbose_link_cmd='echo'
7373
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7374
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7375
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7376
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7377
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7387
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7388
hardcode_libdir_flag_spec='-L$libdir'
7389
hardcode_shlibpath_var=no
7396
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7397
# support. Future versions do this automatically, but an explicit c++rt0.o
7398
# does not break anything, and helps significantly (at the cost of a little
7401
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7402
hardcode_libdir_flag_spec='-R$libdir'
7404
hardcode_shlibpath_var=no
7407
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7409
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7411
hardcode_minus_L=yes
7412
hardcode_shlibpath_var=no
7415
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7416
freebsd* | kfreebsd*-gnu | dragonfly*)
7417
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7418
hardcode_libdir_flag_spec='-R$libdir'
7420
hardcode_shlibpath_var=no
7424
if test "$GCC" = yes; then
7425
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'
7427
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'
7429
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7430
hardcode_libdir_separator=:
7433
# hardcode_minus_L: Not really in the search PATH,
7434
# but as the default location of the library.
7435
hardcode_minus_L=yes
7436
export_dynamic_flag_spec='${wl}-E'
7440
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7443
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7452
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7455
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7459
if test "$with_gnu_ld" = no; then
7462
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7463
hardcode_libdir_flag_spec_ld='+b $libdir'
7464
hardcode_libdir_separator=:
7466
hardcode_shlibpath_var=no
7469
hardcode_libdir_flag_spec='-L$libdir'
7471
hardcode_shlibpath_var=no
7473
# hardcode_minus_L: Not really in the search PATH,
7474
# but as the default location of the library.
7475
hardcode_minus_L=yes
7478
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7479
hardcode_libdir_separator=:
7481
export_dynamic_flag_spec='${wl}-E'
7483
# hardcode_minus_L: Not really in the search PATH,
7484
# but as the default location of the library.
7485
hardcode_minus_L=yes
7491
irix5* | irix6* | nonstopux*)
7492
if test "$GCC" = yes; then
7493
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'
7495
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'
7496
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7498
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7499
hardcode_libdir_separator=:
7500
link_all_deplibs=yes
7503
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7504
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7505
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7507
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7509
hardcode_libdir_flag_spec='-R$libdir'
7511
hardcode_shlibpath_var=no
7515
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7518
hardcode_libdir_separator=:
7519
hardcode_shlibpath_var=no
7524
hardcode_shlibpath_var=no
7525
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7526
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7527
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7528
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7529
export_dynamic_flag_spec='${wl}-E'
7532
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7533
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7534
hardcode_libdir_flag_spec='-R$libdir'
7537
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7538
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7545
hardcode_libdir_flag_spec='-L$libdir'
7546
hardcode_minus_L=yes
7547
allow_undefined_flag=unsupported
7548
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'
7549
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7553
if test "$GCC" = yes; then
7554
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7555
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'
7557
allow_undefined_flag=' -expect_unresolved \*'
7558
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'
7560
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7561
hardcode_libdir_separator=:
7564
osf4* | osf5*) # as osf3* with the addition of -msym flag
7565
if test "$GCC" = yes; then
7566
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7567
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'
7568
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7570
allow_undefined_flag=' -expect_unresolved \*'
7571
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'
7572
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7573
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7575
# Both c and cxx compiler support -rpath directly
7576
hardcode_libdir_flag_spec='-rpath $libdir'
7578
hardcode_libdir_separator=:
7582
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7583
hardcode_shlibpath_var=no
7584
export_dynamic_flag_spec='${wl}-Bexport'
7585
runpath_var=LD_RUN_PATH
7586
hardcode_runpath_var=yes
7590
no_undefined_flag=' -z text'
7591
if test "$GCC" = yes; then
7593
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7594
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7595
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7598
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7599
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7600
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7602
hardcode_libdir_flag_spec='-R$libdir'
7603
hardcode_shlibpath_var=no
7605
solaris2.[0-5] | solaris2.[0-5].*) ;;
7607
# The compiler driver will combine linker options so we
7608
# cannot just pass the convience library names through
7609
# without $wl, iff we do not link with $LD.
7610
# Luckily, gcc supports the same syntax we need for Sun Studio.
7611
# Supported since Solaris 2.6 (maybe 2.5.1?)
7614
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7616
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7619
link_all_deplibs=yes
7623
if test "x$host_vendor" = xsequent; then
7624
# Use $CC to link under sequent, because it throws in some extra .o
7625
# files that make .init and .fini sections work.
7626
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7628
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7630
hardcode_libdir_flag_spec='-L$libdir'
7632
hardcode_minus_L=yes
7633
hardcode_shlibpath_var=no
7637
case $host_vendor in
7639
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7640
hardcode_direct=yes # is this really true???
7643
## LD is ld it makes a PLAMLIB
7644
## CC just makes a GrossModule.
7645
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7646
reload_cmds='$CC -r -o $output$reload_objs'
7650
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7651
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7654
runpath_var='LD_RUN_PATH'
7655
hardcode_shlibpath_var=no
7659
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660
hardcode_shlibpath_var=no
7661
export_dynamic_flag_spec='-Bexport'
7665
if test -d /usr/nec; then
7666
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667
hardcode_shlibpath_var=no
7668
runpath_var=LD_RUN_PATH
7669
hardcode_runpath_var=yes
7675
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7678
hardcode_shlibpath_var=no
7679
hardcode_runpath_var=yes
7680
runpath_var=LD_RUN_PATH
7683
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7684
no_undefined_flag='${wl}-z ${wl}text'
7685
if test "$GCC" = yes; then
7686
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7688
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7690
runpath_var='LD_RUN_PATH'
7691
hardcode_shlibpath_var=no
7695
no_undefined_flag=' -z text'
7696
# $CC -shared without GNU ld will not create a library from C++
7697
# object files and a static libstdc++, better avoid it by now
7698
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7699
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7700
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7701
hardcode_libdir_flag_spec=
7702
hardcode_shlibpath_var=no
7703
runpath_var='LD_RUN_PATH'
7707
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7708
hardcode_libdir_flag_spec='-L$libdir'
7709
hardcode_shlibpath_var=no
7718
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7719
echo "${ECHO_T}$ld_shlibs" >&6
7720
test "$ld_shlibs" = no && can_build_shared=no
7722
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7723
if test "$GCC" = yes; then
7724
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7728
# Do we need to explicitly link libc?
7730
case "x$archive_cmds_need_lc" in
7732
# Assume -lc should be added
7733
archive_cmds_need_lc=yes
7735
if test "$enable_shared" = yes && test "$GCC" = yes; then
7736
case $archive_cmds in
7738
# FIXME: we may have to deal with multi-command sequences.
7741
# Test whether the compiler implicitly links with -lc since on some
7742
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7743
# to ld, don't add -lc before -lgcc.
7744
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7745
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7747
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7749
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750
(eval $ac_compile) 2>&5
7752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753
(exit $ac_status); } 2>conftest.err; then
7756
libobjs=conftest.$ac_objext
7758
wl=$lt_prog_compiler_wl
7764
lt_save_allow_undefined_flag=$allow_undefined_flag
7765
allow_undefined_flag=
7766
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7767
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770
(exit $ac_status); }
7772
archive_cmds_need_lc=no
7774
archive_cmds_need_lc=yes
7776
allow_undefined_flag=$lt_save_allow_undefined_flag
7778
cat conftest.err 1>&5
7781
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7782
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7789
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7790
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7792
libname_spec='lib$name'
7800
shlibpath_overrides_runpath=unknown
7802
dynamic_linker="$host_os ld.so"
7803
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7804
if test "$GCC" = yes; then
7805
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7806
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7807
# if the path contains ";" then we assume it to be the separator
7808
# otherwise default to the standard path separator (i.e. ":") - it is
7809
# assumed that no part of a normal pathname contains ";" but that should
7810
# okay in the real world where ";" in dirpaths is itself problematic.
7811
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7813
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7816
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7818
need_lib_prefix=unknown
7819
hardcode_into_libs=no
7821
# when you set need_version to no, make sure it does not cause -set_version
7822
# flags to be left without arguments
7823
need_version=unknown
7828
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7829
shlibpath_var=LIBPATH
7831
# AIX 3 has no versioning support, so we append a major version to the name.
7832
soname_spec='${libname}${release}${shared_ext}$major'
7839
hardcode_into_libs=yes
7840
if test "$host_cpu" = ia64; then
7841
# AIX 5 supports IA64
7842
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7843
shlibpath_var=LD_LIBRARY_PATH
7845
# With GCC up to 2.95.x, collect2 would create an import file
7846
# for dependence libraries. The import file would start with
7847
# the line `#! .'. This would cause the generated library to
7848
# depend on `.', always an invalid library. This was fixed in
7849
# development snapshots of GCC prior to 3.0.
7851
aix4 | aix4.[01] | aix4.[01].*)
7852
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7854
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7861
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7862
# soname into executable. Probably we can add versioning support to
7863
# collect2, so additional links can be useful in future.
7864
if test "$aix_use_runtimelinking" = yes; then
7865
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7866
# instead of lib<name>.a to let people know that these are not
7867
# typical AIX shared libraries.
7868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7870
# We preserve .a as extension for shared libraries through AIX4.2
7871
# and later when we are not doing run time linking.
7872
library_names_spec='${libname}${release}.a $libname.a'
7873
soname_spec='${libname}${release}${shared_ext}$major'
7875
shlibpath_var=LIBPATH
7880
library_names_spec='$libname.ixlibrary $libname.a'
7881
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7882
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'
7886
library_names_spec='${libname}${shared_ext}'
7887
dynamic_linker="$host_os ld.so"
7888
shlibpath_var=LIBRARY_PATH
7894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895
soname_spec='${libname}${release}${shared_ext}$major'
7896
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7897
shlibpath_var=LD_LIBRARY_PATH
7898
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7899
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7900
# the default ld.so.conf also contains /usr/contrib/lib and
7901
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7902
# libtool to hard-code these into programs
7905
cygwin* | mingw* | pw32*)
7906
version_type=windows
7911
case $GCC,$host_os in
7912
yes,cygwin* | yes,mingw* | yes,pw32*)
7913
library_names_spec='$libname.dll.a'
7914
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7915
postinstall_cmds='base_file=`basename \${file}`~
7916
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7917
dldir=$destdir/`dirname \$dlpath`~
7918
test -d \$dldir || mkdir -p \$dldir~
7919
$install_prog $dir/$dlname \$dldir/$dlname~
7920
chmod a+x \$dldir/$dlname'
7921
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7922
dlpath=$dir/\$dldll~
7924
shlibpath_overrides_runpath=yes
7928
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7929
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7930
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7933
# MinGW DLLs use traditional 'lib' prefix
7934
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7935
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7936
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7937
# It is most probably a Windows format PATH printed by
7938
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7939
# path with ; separators, and with drive letters. We can handle the
7940
# drive letters (cygwin fileutils understands them), so leave them,
7941
# especially as we might pass files found there to a mingw objdump,
7942
# which wouldn't understand a cygwinified path. Ahh.
7943
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7945
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7949
# pw32 DLLs use 'pw' prefix rather than 'lib'
7950
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7956
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7959
dynamic_linker='Win32 ld.exe'
7960
# FIXME: first we should search . and the directory the executable is in
7964
darwin* | rhapsody*)
7965
dynamic_linker="$host_os dyld"
7969
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7970
soname_spec='${libname}${release}${major}$shared_ext'
7971
shlibpath_overrides_runpath=yes
7972
shlibpath_var=DYLD_LIBRARY_PATH
7973
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7974
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7975
if test "$GCC" = yes; then
7976
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7978
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7980
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7988
soname_spec='${libname}${release}${shared_ext}$major'
7989
shlibpath_var=LD_LIBRARY_PATH
8000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8001
soname_spec='${libname}${release}${shared_ext}$major'
8002
shlibpath_var=LD_LIBRARY_PATH
8003
shlibpath_overrides_runpath=no
8004
hardcode_into_libs=yes
8005
dynamic_linker='GNU ld.so'
8008
freebsd* | dragonfly*)
8009
# DragonFly does not have aout. When/if they implement a new
8010
# versioning mechanism, adjust this.
8011
if test -x /usr/bin/objformat; then
8012
objformat=`/usr/bin/objformat`
8015
freebsd[123]*) objformat=aout ;;
8019
version_type=freebsd-$objformat
8020
case $version_type in
8022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8027
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8031
shlibpath_var=LD_LIBRARY_PATH
8034
shlibpath_overrides_runpath=yes
8036
freebsd3.[01]* | freebsdelf3.[01]*)
8037
shlibpath_overrides_runpath=yes
8038
hardcode_into_libs=yes
8041
shlibpath_overrides_runpath=no
8042
hardcode_into_libs=yes
8051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8052
soname_spec='${libname}${release}${shared_ext}$major'
8053
shlibpath_var=LD_LIBRARY_PATH
8054
hardcode_into_libs=yes
8057
hpux9* | hpux10* | hpux11*)
8058
# Give a soname corresponding to the major version so that dld.sl refuses to
8059
# link against other versions.
8066
hardcode_into_libs=yes
8067
dynamic_linker="$host_os dld.so"
8068
shlibpath_var=LD_LIBRARY_PATH
8069
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071
soname_spec='${libname}${release}${shared_ext}$major'
8072
if test "X$HPUX_IA64_MODE" = X32; then
8073
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8075
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8077
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8081
hardcode_into_libs=yes
8082
dynamic_linker="$host_os dld.sl"
8083
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8084
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8086
soname_spec='${libname}${release}${shared_ext}$major'
8087
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8088
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8092
dynamic_linker="$host_os dld.sl"
8093
shlibpath_var=SHLIB_PATH
8094
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096
soname_spec='${libname}${release}${shared_ext}$major'
8099
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8100
postinstall_cmds='chmod 555 $lib'
8103
irix5* | irix6* | nonstopux*)
8105
nonstopux*) version_type=nonstopux ;;
8107
if test "$lt_cv_prog_gnu_ld" = yes; then
8115
soname_spec='${libname}${release}${shared_ext}$major'
8116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8118
irix5* | nonstopux*)
8122
case $LD in # libtool.m4 will add one of these switches to LD
8123
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8124
libsuff= shlibsuff= libmagic=32-bit;;
8125
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8126
libsuff=32 shlibsuff=N32 libmagic=N32;;
8127
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8128
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8129
*) libsuff= shlibsuff= libmagic=never-match;;
8133
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8134
shlibpath_overrides_runpath=no
8135
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8136
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8137
hardcode_into_libs=yes
8140
# No shared lib support for Linux oldld, aout, or coff.
8141
linux*oldld* | linux*aout* | linux*coff*)
8145
# This must be Linux ELF.
8150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8151
soname_spec='${libname}${release}${shared_ext}$major'
8152
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8153
shlibpath_var=LD_LIBRARY_PATH
8154
shlibpath_overrides_runpath=no
8155
# This implies no fast_install, which is unacceptable.
8156
# Some rework will be needed to allow for fast_install
8157
# before this can be enabled.
8158
hardcode_into_libs=yes
8160
# Append ld.so.conf contents to the search path
8161
if test -f /etc/ld.so.conf; then
8162
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8163
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8166
# We used to test for /lib/ld.so.1 and disable shared libraries on
8167
# powerpc, because MkLinux only supported shared libraries with the
8168
# GNU dynamic linker. Since this was broken with cross compilers,
8169
# most powerpc-linux boxes support dynamic linking these days and
8170
# people can always --disable-shared, the test was removed, and we
8171
# assume the GNU/Linux dynamic linker is in use.
8172
dynamic_linker='GNU/Linux ld.so'
8179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8180
soname_spec='${libname}${release}${shared_ext}$major'
8181
shlibpath_var=LD_LIBRARY_PATH
8182
shlibpath_overrides_runpath=no
8183
hardcode_into_libs=yes
8184
dynamic_linker='NetBSD ld.elf_so'
8191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8192
soname_spec='${libname}${release}${shared_ext}$major'
8193
shlibpath_var=LD_LIBRARY_PATH
8194
shlibpath_overrides_runpath=no
8195
hardcode_into_libs=yes
8196
dynamic_linker='GNU ld.so'
8203
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8205
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8206
dynamic_linker='NetBSD (a.out) ld.so'
8208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8209
soname_spec='${libname}${release}${shared_ext}$major'
8210
dynamic_linker='NetBSD ld.elf_so'
8212
shlibpath_var=LD_LIBRARY_PATH
8213
shlibpath_overrides_runpath=yes
8214
hardcode_into_libs=yes
8219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8220
shlibpath_var=LD_LIBRARY_PATH
8221
shlibpath_overrides_runpath=yes
8228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8229
soname_spec='${libname}${release}${shared_ext}$major'
8230
shlibpath_var=LD_LIBRARY_PATH
8231
shlibpath_overrides_runpath=yes
8237
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8239
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8240
*) need_version=no ;;
8242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8243
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8244
shlibpath_var=LD_LIBRARY_PATH
8245
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8247
openbsd2.[89] | openbsd2.[89].*)
8248
shlibpath_overrides_runpath=no
8251
shlibpath_overrides_runpath=yes
8255
shlibpath_overrides_runpath=yes
8260
libname_spec='$name'
8263
library_names_spec='$libname${shared_ext} $libname.a'
8264
dynamic_linker='OS/2 ld.exe'
8265
shlibpath_var=LIBPATH
8268
osf3* | osf4* | osf5*)
8272
soname_spec='${libname}${release}${shared_ext}$major'
8273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274
shlibpath_var=LD_LIBRARY_PATH
8275
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8276
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8281
soname_spec='${libname}${release}${shared_ext}$major'
8282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8283
shlibpath_var=LD_LIBRARY_PATH
8290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291
soname_spec='${libname}${release}${shared_ext}$major'
8292
shlibpath_var=LD_LIBRARY_PATH
8293
shlibpath_overrides_runpath=yes
8294
hardcode_into_libs=yes
8295
# ldd complains unless libraries are executable
8296
postinstall_cmds='chmod +x $lib'
8301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8302
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8303
shlibpath_var=LD_LIBRARY_PATH
8304
shlibpath_overrides_runpath=yes
8305
if test "$with_gnu_ld" = yes; then
8311
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8314
soname_spec='${libname}${release}${shared_ext}$major'
8315
shlibpath_var=LD_LIBRARY_PATH
8316
case $host_vendor in
8318
shlibpath_overrides_runpath=no
8320
export_dynamic_flag_spec='${wl}-Blargedynsym'
8321
runpath_var=LD_RUN_PATH
8329
shlibpath_overrides_runpath=no
8330
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8336
if test -d /usr/nec ;then
8338
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8339
soname_spec='$libname${shared_ext}.$major'
8340
shlibpath_var=LD_LIBRARY_PATH
8346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347
soname_spec='${libname}${release}${shared_ext}$major'
8348
shlibpath_var=LD_LIBRARY_PATH
8355
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8356
echo "${ECHO_T}$dynamic_linker" >&6
8357
test "$dynamic_linker" = no && can_build_shared=no
8359
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8360
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8362
if test -n "$hardcode_libdir_flag_spec" || \
8363
test -n "$runpath_var" || \
8364
test "X$hardcode_automatic" = "Xyes" ; then
8366
# We can hardcode non-existant directories.
8367
if test "$hardcode_direct" != no &&
8368
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8369
# have to relink, otherwise we might link with an installed library
8370
# when we should be linking with a yet-to-be-installed one
8371
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8372
test "$hardcode_minus_L" != no; then
8373
# Linking always hardcodes the temporary library directory.
8374
hardcode_action=relink
8376
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8377
hardcode_action=immediate
8380
# We cannot hardcode anything, or else we can only hardcode existing
8382
hardcode_action=unsupported
8384
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8385
echo "${ECHO_T}$hardcode_action" >&6
8387
if test "$hardcode_action" = relink; then
8388
# Fast installation is not supported
8389
enable_fast_install=no
8390
elif test "$shlibpath_overrides_runpath" = yes ||
8391
test "$enable_shared" = no; then
8392
# Fast installation is not necessary
8393
enable_fast_install=needless
8398
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8399
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8400
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8401
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8402
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8403
echo "$as_me:$LINENO: result: yes" >&5
8404
echo "${ECHO_T}yes" >&6
8406
# FIXME - insert some real tests, host_os isn't really good enough
8409
if test -n "$STRIP" ; then
8410
striplib="$STRIP -x"
8411
echo "$as_me:$LINENO: result: yes" >&5
8412
echo "${ECHO_T}yes" >&6
8414
echo "$as_me:$LINENO: result: no" >&5
8415
echo "${ECHO_T}no" >&6
8419
echo "$as_me:$LINENO: result: no" >&5
8420
echo "${ECHO_T}no" >&6
8425
if test "x$enable_dlopen" != xyes; then
8426
enable_dlopen=unknown
8427
enable_dlopen_self=unknown
8428
enable_dlopen_self_static=unknown
8435
lt_cv_dlopen="load_add_on"
8437
lt_cv_dlopen_self=yes
8441
lt_cv_dlopen="LoadLibrary"
8446
lt_cv_dlopen="dlopen"
8451
# if libdl is installed we need to link against it
8452
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8453
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8454
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8455
echo $ECHO_N "(cached) $ECHO_C" >&6
8457
ac_check_lib_save_LIBS=$LIBS
8459
cat >conftest.$ac_ext <<_ACEOF
8462
cat confdefs.h >>conftest.$ac_ext
8463
cat >>conftest.$ac_ext <<_ACEOF
8464
/* end confdefs.h. */
8466
/* Override any gcc2 internal prototype to avoid an error. */
8470
/* We use char because int might match the return type of a gcc2
8471
builtin and then its argument prototype would still apply. */
8481
rm -f conftest.$ac_objext conftest$ac_exeext
8482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483
(eval $ac_link) 2>conftest.er1
8485
grep -v '^ *+' conftest.er1 >conftest.err
8487
cat conftest.err >&5
8488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489
(exit $ac_status); } &&
8490
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495
(exit $ac_status); }; } &&
8496
{ ac_try='test -s conftest$ac_exeext'
8497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501
(exit $ac_status); }; }; then
8502
ac_cv_lib_dl_dlopen=yes
8504
echo "$as_me: failed program was:" >&5
8505
sed 's/^/| /' conftest.$ac_ext >&5
8507
ac_cv_lib_dl_dlopen=no
8509
rm -f conftest.err conftest.$ac_objext \
8510
conftest$ac_exeext conftest.$ac_ext
8511
LIBS=$ac_check_lib_save_LIBS
8513
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8514
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8515
if test $ac_cv_lib_dl_dlopen = yes; then
8516
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8521
lt_cv_dlopen_self=yes
8528
echo "$as_me:$LINENO: checking for shl_load" >&5
8529
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8530
if test "${ac_cv_func_shl_load+set}" = set; then
8531
echo $ECHO_N "(cached) $ECHO_C" >&6
8533
cat >conftest.$ac_ext <<_ACEOF
8536
cat confdefs.h >>conftest.$ac_ext
8537
cat >>conftest.$ac_ext <<_ACEOF
8538
/* end confdefs.h. */
8539
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8540
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8541
#define shl_load innocuous_shl_load
8543
/* System header to define __stub macros and hopefully few prototypes,
8544
which can conflict with char shl_load (); below.
8545
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546
<limits.h> exists even on freestanding compilers. */
8549
# include <limits.h>
8551
# include <assert.h>
8556
/* Override any gcc2 internal prototype to avoid an error. */
8561
/* We use char because int might match the return type of a gcc2
8562
builtin and then its argument prototype would still apply. */
8564
/* The GNU C library defines this for functions which it implements
8565
to always fail with ENOSYS. Some functions are actually named
8566
something starting with __ and the normal name is an alias. */
8567
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8570
char (*f) () = shl_load;
8579
return f != shl_load;
8584
rm -f conftest.$ac_objext conftest$ac_exeext
8585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586
(eval $ac_link) 2>conftest.er1
8588
grep -v '^ *+' conftest.er1 >conftest.err
8590
cat conftest.err >&5
8591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592
(exit $ac_status); } &&
8593
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
(exit $ac_status); }; } &&
8599
{ ac_try='test -s conftest$ac_exeext'
8600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604
(exit $ac_status); }; }; then
8605
ac_cv_func_shl_load=yes
8607
echo "$as_me: failed program was:" >&5
8608
sed 's/^/| /' conftest.$ac_ext >&5
8610
ac_cv_func_shl_load=no
8612
rm -f conftest.err conftest.$ac_objext \
8613
conftest$ac_exeext conftest.$ac_ext
8615
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8616
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8617
if test $ac_cv_func_shl_load = yes; then
8618
lt_cv_dlopen="shl_load"
8620
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8621
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8622
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8623
echo $ECHO_N "(cached) $ECHO_C" >&6
8625
ac_check_lib_save_LIBS=$LIBS
8627
cat >conftest.$ac_ext <<_ACEOF
8630
cat confdefs.h >>conftest.$ac_ext
8631
cat >>conftest.$ac_ext <<_ACEOF
8632
/* end confdefs.h. */
8634
/* Override any gcc2 internal prototype to avoid an error. */
8638
/* We use char because int might match the return type of a gcc2
8639
builtin and then its argument prototype would still apply. */
8649
rm -f conftest.$ac_objext conftest$ac_exeext
8650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651
(eval $ac_link) 2>conftest.er1
8653
grep -v '^ *+' conftest.er1 >conftest.err
8655
cat conftest.err >&5
8656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657
(exit $ac_status); } &&
8658
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663
(exit $ac_status); }; } &&
8664
{ ac_try='test -s conftest$ac_exeext'
8665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669
(exit $ac_status); }; }; then
8670
ac_cv_lib_dld_shl_load=yes
8672
echo "$as_me: failed program was:" >&5
8673
sed 's/^/| /' conftest.$ac_ext >&5
8675
ac_cv_lib_dld_shl_load=no
8677
rm -f conftest.err conftest.$ac_objext \
8678
conftest$ac_exeext conftest.$ac_ext
8679
LIBS=$ac_check_lib_save_LIBS
8681
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8682
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8683
if test $ac_cv_lib_dld_shl_load = yes; then
8684
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8686
echo "$as_me:$LINENO: checking for dlopen" >&5
8687
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8688
if test "${ac_cv_func_dlopen+set}" = set; then
8689
echo $ECHO_N "(cached) $ECHO_C" >&6
8691
cat >conftest.$ac_ext <<_ACEOF
8694
cat confdefs.h >>conftest.$ac_ext
8695
cat >>conftest.$ac_ext <<_ACEOF
8696
/* end confdefs.h. */
8697
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8698
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8699
#define dlopen innocuous_dlopen
8701
/* System header to define __stub macros and hopefully few prototypes,
8702
which can conflict with char dlopen (); below.
8703
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704
<limits.h> exists even on freestanding compilers. */
8707
# include <limits.h>
8709
# include <assert.h>
8714
/* Override any gcc2 internal prototype to avoid an error. */
8719
/* We use char because int might match the return type of a gcc2
8720
builtin and then its argument prototype would still apply. */
8722
/* The GNU C library defines this for functions which it implements
8723
to always fail with ENOSYS. Some functions are actually named
8724
something starting with __ and the normal name is an alias. */
8725
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8728
char (*f) () = dlopen;
8742
rm -f conftest.$ac_objext conftest$ac_exeext
8743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744
(eval $ac_link) 2>conftest.er1
8746
grep -v '^ *+' conftest.er1 >conftest.err
8748
cat conftest.err >&5
8749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750
(exit $ac_status); } &&
8751
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756
(exit $ac_status); }; } &&
8757
{ ac_try='test -s conftest$ac_exeext'
8758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762
(exit $ac_status); }; }; then
8763
ac_cv_func_dlopen=yes
8765
echo "$as_me: failed program was:" >&5
8766
sed 's/^/| /' conftest.$ac_ext >&5
8768
ac_cv_func_dlopen=no
8770
rm -f conftest.err conftest.$ac_objext \
8771
conftest$ac_exeext conftest.$ac_ext
8773
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8774
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8775
if test $ac_cv_func_dlopen = yes; then
8776
lt_cv_dlopen="dlopen"
8778
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8779
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8780
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8781
echo $ECHO_N "(cached) $ECHO_C" >&6
8783
ac_check_lib_save_LIBS=$LIBS
8785
cat >conftest.$ac_ext <<_ACEOF
8788
cat confdefs.h >>conftest.$ac_ext
8789
cat >>conftest.$ac_ext <<_ACEOF
8790
/* end confdefs.h. */
8792
/* Override any gcc2 internal prototype to avoid an error. */
8796
/* We use char because int might match the return type of a gcc2
8797
builtin and then its argument prototype would still apply. */
8807
rm -f conftest.$ac_objext conftest$ac_exeext
8808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809
(eval $ac_link) 2>conftest.er1
8811
grep -v '^ *+' conftest.er1 >conftest.err
8813
cat conftest.err >&5
8814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815
(exit $ac_status); } &&
8816
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821
(exit $ac_status); }; } &&
8822
{ ac_try='test -s conftest$ac_exeext'
8823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827
(exit $ac_status); }; }; then
8828
ac_cv_lib_dl_dlopen=yes
8830
echo "$as_me: failed program was:" >&5
8831
sed 's/^/| /' conftest.$ac_ext >&5
8833
ac_cv_lib_dl_dlopen=no
8835
rm -f conftest.err conftest.$ac_objext \
8836
conftest$ac_exeext conftest.$ac_ext
8837
LIBS=$ac_check_lib_save_LIBS
8839
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8840
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8841
if test $ac_cv_lib_dl_dlopen = yes; then
8842
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8844
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8845
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8846
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8847
echo $ECHO_N "(cached) $ECHO_C" >&6
8849
ac_check_lib_save_LIBS=$LIBS
8851
cat >conftest.$ac_ext <<_ACEOF
8854
cat confdefs.h >>conftest.$ac_ext
8855
cat >>conftest.$ac_ext <<_ACEOF
8856
/* end confdefs.h. */
8858
/* Override any gcc2 internal prototype to avoid an error. */
8862
/* We use char because int might match the return type of a gcc2
8863
builtin and then its argument prototype would still apply. */
8873
rm -f conftest.$ac_objext conftest$ac_exeext
8874
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875
(eval $ac_link) 2>conftest.er1
8877
grep -v '^ *+' conftest.er1 >conftest.err
8879
cat conftest.err >&5
8880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881
(exit $ac_status); } &&
8882
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887
(exit $ac_status); }; } &&
8888
{ ac_try='test -s conftest$ac_exeext'
8889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893
(exit $ac_status); }; }; then
8894
ac_cv_lib_svld_dlopen=yes
8896
echo "$as_me: failed program was:" >&5
8897
sed 's/^/| /' conftest.$ac_ext >&5
8899
ac_cv_lib_svld_dlopen=no
8901
rm -f conftest.err conftest.$ac_objext \
8902
conftest$ac_exeext conftest.$ac_ext
8903
LIBS=$ac_check_lib_save_LIBS
8905
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8906
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8907
if test $ac_cv_lib_svld_dlopen = yes; then
8908
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8910
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8911
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8912
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8913
echo $ECHO_N "(cached) $ECHO_C" >&6
8915
ac_check_lib_save_LIBS=$LIBS
8917
cat >conftest.$ac_ext <<_ACEOF
8920
cat confdefs.h >>conftest.$ac_ext
8921
cat >>conftest.$ac_ext <<_ACEOF
8922
/* end confdefs.h. */
8924
/* Override any gcc2 internal prototype to avoid an error. */
8928
/* We use char because int might match the return type of a gcc2
8929
builtin and then its argument prototype would still apply. */
8939
rm -f conftest.$ac_objext conftest$ac_exeext
8940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941
(eval $ac_link) 2>conftest.er1
8943
grep -v '^ *+' conftest.er1 >conftest.err
8945
cat conftest.err >&5
8946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947
(exit $ac_status); } &&
8948
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953
(exit $ac_status); }; } &&
8954
{ ac_try='test -s conftest$ac_exeext'
8955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959
(exit $ac_status); }; }; then
8960
ac_cv_lib_dld_dld_link=yes
8962
echo "$as_me: failed program was:" >&5
8963
sed 's/^/| /' conftest.$ac_ext >&5
8965
ac_cv_lib_dld_dld_link=no
8967
rm -f conftest.err conftest.$ac_objext \
8968
conftest$ac_exeext conftest.$ac_ext
8969
LIBS=$ac_check_lib_save_LIBS
8971
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8972
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8973
if test $ac_cv_lib_dld_dld_link = yes; then
8974
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8995
if test "x$lt_cv_dlopen" != xno; then
9001
case $lt_cv_dlopen in
9003
save_CPPFLAGS="$CPPFLAGS"
9004
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9006
save_LDFLAGS="$LDFLAGS"
9007
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9010
LIBS="$lt_cv_dlopen_libs $LIBS"
9012
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9013
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9014
if test "${lt_cv_dlopen_self+set}" = set; then
9015
echo $ECHO_N "(cached) $ECHO_C" >&6
9017
if test "$cross_compiling" = yes; then :
9018
lt_cv_dlopen_self=cross
9020
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9021
lt_status=$lt_dlunknown
9022
cat > conftest.$ac_ext <<EOF
9023
#line __oline__ "configure"
9024
#include "confdefs.h"
9033
# define LT_DLGLOBAL RTLD_GLOBAL
9036
# define LT_DLGLOBAL DL_GLOBAL
9038
# define LT_DLGLOBAL 0
9042
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9043
find out it does not work in some platform. */
9044
#ifndef LT_DLLAZY_OR_NOW
9046
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9049
# define LT_DLLAZY_OR_NOW DL_LAZY
9052
# define LT_DLLAZY_OR_NOW RTLD_NOW
9055
# define LT_DLLAZY_OR_NOW DL_NOW
9057
# define LT_DLLAZY_OR_NOW 0
9065
extern "C" void exit (int);
9068
void fnord() { int i=42;}
9071
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9072
int status = $lt_dlunknown;
9076
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9077
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9078
/* dlclose (self); */
9084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085
(eval $ac_link) 2>&5
9087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9089
(./conftest; exit; ) >&5 2>/dev/null
9092
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9093
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9094
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9097
# compilation failed
9098
lt_cv_dlopen_self=no
9105
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9106
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9108
if test "x$lt_cv_dlopen_self" = xyes; then
9109
LDFLAGS="$LDFLAGS $link_static_flag"
9110
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9111
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9112
if test "${lt_cv_dlopen_self_static+set}" = set; then
9113
echo $ECHO_N "(cached) $ECHO_C" >&6
9115
if test "$cross_compiling" = yes; then :
9116
lt_cv_dlopen_self_static=cross
9118
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9119
lt_status=$lt_dlunknown
9120
cat > conftest.$ac_ext <<EOF
9121
#line __oline__ "configure"
9122
#include "confdefs.h"
9131
# define LT_DLGLOBAL RTLD_GLOBAL
9134
# define LT_DLGLOBAL DL_GLOBAL
9136
# define LT_DLGLOBAL 0
9140
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9141
find out it does not work in some platform. */
9142
#ifndef LT_DLLAZY_OR_NOW
9144
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9147
# define LT_DLLAZY_OR_NOW DL_LAZY
9150
# define LT_DLLAZY_OR_NOW RTLD_NOW
9153
# define LT_DLLAZY_OR_NOW DL_NOW
9155
# define LT_DLLAZY_OR_NOW 0
9163
extern "C" void exit (int);
9166
void fnord() { int i=42;}
9169
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9170
int status = $lt_dlunknown;
9174
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9175
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9176
/* dlclose (self); */
9182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183
(eval $ac_link) 2>&5
9185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9187
(./conftest; exit; ) >&5 2>/dev/null
9190
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9191
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9192
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9195
# compilation failed
9196
lt_cv_dlopen_self_static=no
9203
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9204
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9207
CPPFLAGS="$save_CPPFLAGS"
9208
LDFLAGS="$save_LDFLAGS"
9213
case $lt_cv_dlopen_self in
9214
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9215
*) enable_dlopen_self=unknown ;;
9218
case $lt_cv_dlopen_self_static in
9219
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9220
*) enable_dlopen_self_static=unknown ;;
9225
# Report which librarie types wil actually be built
9226
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9227
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9228
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9229
echo "${ECHO_T}$can_build_shared" >&6
9231
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9232
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9233
test "$can_build_shared" = "no" && enable_shared=no
9235
# On AIX, shared libraries and static libraries use the same namespace, and
9236
# are all built from PIC.
9239
test "$enable_shared" = yes && enable_static=no
9240
if test -n "$RANLIB"; then
9241
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9242
postinstall_cmds='$RANLIB $lib'
9247
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9248
test "$enable_shared" = yes && enable_static=no
9252
echo "$as_me:$LINENO: result: $enable_shared" >&5
9253
echo "${ECHO_T}$enable_shared" >&6
9255
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9256
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9257
# Make sure either enable_shared or enable_static is yes.
9258
test "$enable_shared" = yes || enable_static=yes
9259
echo "$as_me:$LINENO: result: $enable_static" >&5
9260
echo "${ECHO_T}$enable_static" >&6
9262
# The else clause should only fire when bootstrapping the
9263
# libtool distribution, otherwise you forgot to ship ltmain.sh
9264
# with your package, and you will get complaints that there are
9265
# no rules to generate ltmain.sh.
9266
if test -f "$ltmain"; then
9267
# See if we are running on zsh, and set the options which allow our commands through
9268
# without removal of \ escapes.
9269
if test -n "${ZSH_VERSION+set}" ; then
9270
setopt NO_GLOB_SUBST
9272
# Now quote all the things that may contain metacharacters while being
9273
# careful not to overquote the AC_SUBSTed values. We take copies of the
9274
# variables and quote the copies for generation of the libtool script.
9275
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9277
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9278
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9279
deplibs_check_method reload_flag reload_cmds need_locks \
9280
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9281
lt_cv_sys_global_symbol_to_c_name_address \
9282
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9283
old_postinstall_cmds old_postuninstall_cmds \
9287
lt_prog_compiler_wl \
9288
lt_prog_compiler_pic \
9289
lt_prog_compiler_static \
9290
lt_prog_compiler_no_builtin_flag \
9291
export_dynamic_flag_spec \
9292
thread_safe_flag_spec \
9293
whole_archive_flag_spec \
9294
enable_shared_with_static_runtimes \
9296
old_archive_from_new_cmds \
9301
compiler_lib_search_path \
9303
archive_expsym_cmds \
9305
postuninstall_cmds \
9306
old_archive_from_expsyms_cmds \
9307
allow_undefined_flag \
9309
export_symbols_cmds \
9310
hardcode_libdir_flag_spec \
9311
hardcode_libdir_flag_spec_ld \
9312
hardcode_libdir_separator \
9313
hardcode_automatic \
9315
module_expsym_cmds \
9316
lt_cv_prog_compiler_c_o \
9321
old_archive_cmds | \
9322
old_archive_from_new_cmds | \
9324
archive_expsym_cmds | \
9326
module_expsym_cmds | \
9327
old_archive_from_expsyms_cmds | \
9328
export_symbols_cmds | \
9329
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9330
postinstall_cmds | postuninstall_cmds | \
9331
old_postinstall_cmds | old_postuninstall_cmds | \
9332
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9333
# Double-quote double-evaled strings.
9334
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9337
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9343
*'\$0 --fallback-echo"')
9344
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9349
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9351
{ echo "$as_me:$LINENO: creating $ofile" >&5
9352
echo "$as_me: creating $ofile" >&6;}
9354
cat <<__EOF__ >> "$cfgfile"
9357
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9358
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9359
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9361
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9362
# Free Software Foundation, Inc.
9364
# This file is part of GNU Libtool:
9365
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9367
# This program is free software; you can redistribute it and/or modify
9368
# it under the terms of the GNU General Public License as published by
9369
# the Free Software Foundation; either version 2 of the License, or
9370
# (at your option) any later version.
9372
# This program is distributed in the hope that it will be useful, but
9373
# WITHOUT ANY WARRANTY; without even the implied warranty of
9374
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9375
# General Public License for more details.
9377
# You should have received a copy of the GNU General Public License
9378
# along with this program; if not, write to the Free Software
9379
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9381
# As a special exception to the GNU General Public License, if you
9382
# distribute this file as part of a program that contains a
9383
# configuration script generated by Autoconf, you may include it under
9384
# the same distribution terms that you use for the rest of that program.
9386
# A sed program that does not truncate output.
9389
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9390
Xsed="$SED -e 1s/^X//"
9392
# The HP-UX ksh and POSIX shell print the target directory to stdout
9394
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9396
# The names of the tagged configurations supported by this script.
9399
# ### BEGIN LIBTOOL CONFIG
9401
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9403
# Shell to use when invoking shell scripts.
9406
# Whether or not to build shared libraries.
9407
build_libtool_libs=$enable_shared
9409
# Whether or not to build static libraries.
9410
build_old_libs=$enable_static
9412
# Whether or not to add -lc for building shared libraries.
9413
build_libtool_need_lc=$archive_cmds_need_lc
9415
# Whether or not to disallow shared libs when runtime libs are static
9416
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9418
# Whether or not to optimize for fast installation.
9419
fast_install=$enable_fast_install
9422
host_alias=$host_alias
9427
build_alias=$build_alias
9431
# An echo program that does not interpret backslashes.
9436
AR_FLAGS=$lt_AR_FLAGS
9441
# A language-specific compiler.
9444
# Is the compiler the GNU C compiler?
9450
# The linker used to build libraries.
9453
# Whether we need hard or soft links.
9456
# A BSD-compatible nm program.
9459
# A symbol stripping program
9462
# Used to examine libraries when file_magic_cmd begins "file"
9463
MAGIC_CMD=$MAGIC_CMD
9465
# Used on cygwin: DLL creation program.
9468
# Used on cygwin: object dumper.
9471
# Used on cygwin: assembler.
9474
# The name of the directory that contains temporary libtool files.
9477
# How to create reloadable object files.
9478
reload_flag=$lt_reload_flag
9479
reload_cmds=$lt_reload_cmds
9481
# How to pass a linker flag through the compiler.
9482
wl=$lt_lt_prog_compiler_wl
9484
# Object file suffix (normally "o").
9487
# Old archive suffix (normally "a").
9490
# Shared library suffix (normally ".so").
9491
shrext_cmds='$shrext_cmds'
9493
# Executable file suffix (normally "").
9496
# Additional compiler flags for building library objects.
9497
pic_flag=$lt_lt_prog_compiler_pic
9500
# What is the maximum length of a command?
9501
max_cmd_len=$lt_cv_sys_max_cmd_len
9503
# Does compiler simultaneously support -c and -o options?
9504
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9506
# Must we lock files when doing compilation?
9507
need_locks=$lt_need_locks
9509
# Do we need the lib prefix for modules?
9510
need_lib_prefix=$need_lib_prefix
9512
# Do we need a version for libraries?
9513
need_version=$need_version
9515
# Whether dlopen is supported.
9516
dlopen_support=$enable_dlopen
9518
# Whether dlopen of programs is supported.
9519
dlopen_self=$enable_dlopen_self
9521
# Whether dlopen of statically linked programs is supported.
9522
dlopen_self_static=$enable_dlopen_self_static
9524
# Compiler flag to prevent dynamic linking.
9525
link_static_flag=$lt_lt_prog_compiler_static
9527
# Compiler flag to turn off builtin functions.
9528
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9530
# Compiler flag to allow reflexive dlopens.
9531
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9533
# Compiler flag to generate shared objects directly from archives.
9534
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9536
# Compiler flag to generate thread-safe objects.
9537
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9539
# Library versioning type.
9540
version_type=$version_type
9542
# Format of library name prefix.
9543
libname_spec=$lt_libname_spec
9545
# List of archive names. First name is the real one, the rest are links.
9546
# The last name is the one that the linker finds with -lNAME.
9547
library_names_spec=$lt_library_names_spec
9549
# The coded name of the library, if different from the real name.
9550
soname_spec=$lt_soname_spec
9552
# Commands used to build and install an old-style archive.
9554
old_archive_cmds=$lt_old_archive_cmds
9555
old_postinstall_cmds=$lt_old_postinstall_cmds
9556
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9558
# Create an old-style archive from a shared archive.
9559
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9561
# Create a temporary old-style archive to link instead of a shared archive.
9562
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9564
# Commands used to build and install a shared archive.
9565
archive_cmds=$lt_archive_cmds
9566
archive_expsym_cmds=$lt_archive_expsym_cmds
9567
postinstall_cmds=$lt_postinstall_cmds
9568
postuninstall_cmds=$lt_postuninstall_cmds
9570
# Commands used to build a loadable module (assumed same as above if empty)
9571
module_cmds=$lt_module_cmds
9572
module_expsym_cmds=$lt_module_expsym_cmds
9574
# Commands to strip libraries.
9575
old_striplib=$lt_old_striplib
9576
striplib=$lt_striplib
9578
# Dependencies to place before the objects being linked to create a
9580
predep_objects=$lt_predep_objects
9582
# Dependencies to place after the objects being linked to create a
9584
postdep_objects=$lt_postdep_objects
9586
# Dependencies to place before the objects being linked to create a
9590
# Dependencies to place after the objects being linked to create a
9592
postdeps=$lt_postdeps
9594
# The library search path used internally by the compiler when linking
9596
compiler_lib_search_path=$lt_compiler_lib_search_path
9598
# Method to check whether dependent libraries are shared objects.
9599
deplibs_check_method=$lt_deplibs_check_method
9601
# Command to use when deplibs_check_method == file_magic.
9602
file_magic_cmd=$lt_file_magic_cmd
9604
# Flag that allows shared libraries with undefined symbols to be built.
9605
allow_undefined_flag=$lt_allow_undefined_flag
9607
# Flag that forces no undefined symbols.
9608
no_undefined_flag=$lt_no_undefined_flag
9610
# Commands used to finish a libtool library installation in a directory.
9611
finish_cmds=$lt_finish_cmds
9613
# Same as above, but a single script fragment to be evaled but not shown.
9614
finish_eval=$lt_finish_eval
9616
# Take the output of nm and produce a listing of raw symbols and C names.
9617
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9619
# Transform the output of nm in a proper C declaration
9620
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9622
# Transform the output of nm in a C name address pair
9623
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9625
# This is the shared library runtime path variable.
9626
runpath_var=$runpath_var
9628
# This is the shared library path variable.
9629
shlibpath_var=$shlibpath_var
9631
# Is shlibpath searched before the hard-coded library search path?
9632
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9634
# How to hardcode a shared library path into an executable.
9635
hardcode_action=$hardcode_action
9637
# Whether we should hardcode library paths into libraries.
9638
hardcode_into_libs=$hardcode_into_libs
9640
# Flag to hardcode \$libdir into a binary during linking.
9641
# This must work even if \$libdir does not exist.
9642
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9644
# If ld is used when linking, flag to hardcode \$libdir into
9645
# a binary during linking. This must work even if \$libdir does
9647
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9649
# Whether we need a single -rpath flag with a separated argument.
9650
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9652
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9654
hardcode_direct=$hardcode_direct
9656
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9658
hardcode_minus_L=$hardcode_minus_L
9660
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9661
# the resulting binary.
9662
hardcode_shlibpath_var=$hardcode_shlibpath_var
9664
# Set to yes if building a shared library automatically hardcodes DIR into the library
9665
# and all subsequent libraries and executables linked against it.
9666
hardcode_automatic=$hardcode_automatic
9668
# Variables whose values should be saved in libtool wrapper scripts and
9669
# restored at relink time.
9670
variables_saved_for_relink="$variables_saved_for_relink"
9672
# Whether libtool must link a program against all its dependency libraries.
9673
link_all_deplibs=$link_all_deplibs
9675
# Compile-time system search path for libraries
9676
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9678
# Run-time system search path for libraries
9679
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9681
# Fix the shell variable \$srcfile for the compiler.
9682
fix_srcfile_path="$fix_srcfile_path"
9684
# Set to yes if exported symbols are required.
9685
always_export_symbols=$always_export_symbols
9687
# The commands to list exported symbols.
9688
export_symbols_cmds=$lt_export_symbols_cmds
9690
# The commands to extract the exported symbol list from a shared archive.
9691
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9693
# Symbols that should not be listed in the preloaded symbols.
9694
exclude_expsyms=$lt_exclude_expsyms
9696
# Symbols that must always be exported.
9697
include_expsyms=$lt_include_expsyms
9699
# ### END LIBTOOL CONFIG
9706
cat <<\EOF >> "$cfgfile"
9708
# AIX sometimes has problems with the GCC collect2 program. For some
9709
# reason, if we set the COLLECT_NAMES environment variable, the problems
9710
# vanish in a puff of smoke.
9711
if test "X${COLLECT_NAMES+set}" != Xset; then
9713
export COLLECT_NAMES
9719
# We use sed instead of cat because bash on DJGPP gets confused if
9720
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9721
# text mode, it properly converts lines to CR/LF. This bash problem
9722
# is reportedly fixed, but why not run on old versions too?
9723
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9725
mv -f "$cfgfile" "$ofile" || \
9726
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9730
# If there is no Makefile yet, we rely on a make rule to execute
9731
# `config.status --recheck' to rerun these tests and create the
9732
# libtool script then.
9733
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9734
if test -f "$ltmain_in"; then
9735
test -f Makefile && make "$ltmain"
9741
ac_cpp='$CPP $CPPFLAGS'
9742
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9743
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9744
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9749
# Check whether --with-tags or --without-tags was given.
9750
if test "${with_tags+set}" = set; then
9751
withval="$with_tags"
9755
if test -f "$ltmain" && test -n "$tagnames"; then
9756
if test ! -f "${ofile}"; then
9757
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9758
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9761
if test -z "$LTCC"; then
9762
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9763
if test -z "$LTCC"; then
9764
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9765
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9767
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9768
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9772
# Extract list of available tagged configurations in $ofile.
9773
# Note that this assumes the entire list is on one line.
9774
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9776
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9777
for tagname in $tagnames; do
9779
# Check whether tagname contains only valid characters
9780
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9782
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9783
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9784
{ (exit 1); exit 1; }; }
9788
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9790
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9791
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9792
{ (exit 1); exit 1; }; }
9795
# Update the list of available tags.
9796
if test -n "$tagname"; then
9797
echo appending configuration tag \"$tagname\" to $ofile
9801
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9802
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9803
(test "X$CXX" != "Xg++"))) ; then
9805
ac_cpp='$CXXCPP $CPPFLAGS'
9806
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9813
archive_cmds_need_lc_CXX=no
9814
allow_undefined_flag_CXX=
9815
always_export_symbols_CXX=no
9816
archive_expsym_cmds_CXX=
9817
export_dynamic_flag_spec_CXX=
9818
hardcode_direct_CXX=no
9819
hardcode_libdir_flag_spec_CXX=
9820
hardcode_libdir_flag_spec_ld_CXX=
9821
hardcode_libdir_separator_CXX=
9822
hardcode_minus_L_CXX=no
9823
hardcode_automatic_CXX=no
9825
module_expsym_cmds_CXX=
9826
link_all_deplibs_CXX=unknown
9827
old_archive_cmds_CXX=$old_archive_cmds
9828
no_undefined_flag_CXX=
9829
whole_archive_flag_spec_CXX=
9830
enable_shared_with_static_runtimes_CXX=no
9832
# Dependencies to place before and after the object being linked:
9834
postdep_objects_CXX=
9837
compiler_lib_search_path_CXX=
9839
# Source file extension for C++ test sources.
9842
# Object file extension for compiled C++ test sources.
9846
# Code to be used in simple compile tests
9847
lt_simple_compile_test_code="int some_variable = 0;\n"
9849
# Code to be used in simple link tests
9850
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9852
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9854
# If no C compiler was specified, use CC.
9857
# Allow CC to be a program name with arguments.
9861
# save warnings/boilerplate of simple test code
9862
ac_outfile=conftest.$ac_objext
9863
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9864
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9865
_lt_compiler_boilerplate=`cat conftest.err`
9868
ac_outfile=conftest.$ac_objext
9869
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9870
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9871
_lt_linker_boilerplate=`cat conftest.err`
9875
# Allow CC to be a program name with arguments.
9880
lt_save_with_gnu_ld=$with_gnu_ld
9881
lt_save_path_LD=$lt_cv_path_LD
9882
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9883
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9885
unset lt_cv_prog_gnu_ld
9887
if test -n "${lt_cv_path_LDCXX+set}"; then
9888
lt_cv_path_LD=$lt_cv_path_LDCXX
9892
test -z "${LDCXX+set}" || LD=$LDCXX
9896
for cc_temp in $compiler""; do
9898
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9899
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9904
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9907
# We don't want -fno-exception wen compiling C++ code, so set the
9908
# no_builtin_flag separately
9909
if test "$GXX" = yes; then
9910
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9912
lt_prog_compiler_no_builtin_flag_CXX=
9915
if test "$GXX" = yes; then
9916
# Set up default GNU C++ configuration
9919
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9920
if test "${with_gnu_ld+set}" = set; then
9921
withval="$with_gnu_ld"
9922
test "$withval" = no || with_gnu_ld=yes
9927
if test "$GCC" = yes; then
9928
# Check if gcc -print-prog-name=ld gives a path.
9929
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9930
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9933
# gcc leaves a trailing carriage return which upsets mingw
9934
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9936
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9939
# Accept absolute paths.
9941
re_direlt='/[^/][^/]*/\.\./'
9942
# Canonicalize the pathname of ld
9943
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9944
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9945
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9947
test -z "$LD" && LD="$ac_prog"
9950
# If it fails, then pretend we aren't using GCC.
9954
# If it is relative, then search for the first ld in PATH.
9958
elif test "$with_gnu_ld" = yes; then
9959
echo "$as_me:$LINENO: checking for GNU ld" >&5
9960
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9962
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9963
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9965
if test "${lt_cv_path_LD+set}" = set; then
9966
echo $ECHO_N "(cached) $ECHO_C" >&6
9968
if test -z "$LD"; then
9969
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9970
for ac_dir in $PATH; do
9972
test -z "$ac_dir" && ac_dir=.
9973
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9974
lt_cv_path_LD="$ac_dir/$ac_prog"
9975
# Check to see if the program is GNU ld. I'd rather use --version,
9976
# but apparently some variants of GNU ld only accept -v.
9977
# Break only if it was the GNU/non-GNU ld that we prefer.
9978
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9979
*GNU* | *'with BFD'*)
9980
test "$with_gnu_ld" != no && break
9983
test "$with_gnu_ld" != yes && break
9990
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9995
if test -n "$LD"; then
9996
echo "$as_me:$LINENO: result: $LD" >&5
9997
echo "${ECHO_T}$LD" >&6
9999
echo "$as_me:$LINENO: result: no" >&5
10000
echo "${ECHO_T}no" >&6
10002
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10003
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10004
{ (exit 1); exit 1; }; }
10005
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10006
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10007
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10008
echo $ECHO_N "(cached) $ECHO_C" >&6
10010
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10011
case `$LD -v 2>&1 </dev/null` in
10012
*GNU* | *'with BFD'*)
10013
lt_cv_prog_gnu_ld=yes
10016
lt_cv_prog_gnu_ld=no
10020
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10021
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10022
with_gnu_ld=$lt_cv_prog_gnu_ld
10026
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10027
# archiving commands below assume that GNU ld is being used.
10028
if test "$with_gnu_ld" = yes; then
10029
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030
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'
10032
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10033
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10035
# If archive_cmds runs LD, not CC, wlarc should be empty
10036
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10037
# investigate it a little bit more. (MM)
10040
# ancient GNU ld didn't support --whole-archive et. al.
10041
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10042
grep 'no-whole-archive' > /dev/null; then
10043
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10045
whole_archive_flag_spec_CXX=
10051
# A generic and very simple default shared library creation
10052
# command for GNU C++ for the case where it uses the native
10053
# linker, instead of GNU ld. If possible, this setting should
10054
# overridden to take advantage of the native linker features on
10055
# the platform it is being used on.
10056
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10059
# Commands to make compiler produce verbose output that lists
10060
# what "hidden" libraries, object files and flags are used when
10061
# linking a shared library.
10062
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10070
# PORTME: fill in a description of your system's C++ link characteristics
10071
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10072
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10076
# FIXME: insert proper C++ library support
10080
if test "$host_cpu" = ia64; then
10081
# On IA64, the linker does run time linking by default, so we don't
10082
# have to do anything special.
10083
aix_use_runtimelinking=no
10084
exp_sym_flag='-Bexport'
10087
aix_use_runtimelinking=no
10089
# Test if we are trying to use run time linking or normal
10090
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10091
# need to do runtime linking.
10092
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10093
for ld_flag in $LDFLAGS; do
10096
aix_use_runtimelinking=yes
10103
exp_sym_flag='-bexport'
10104
no_entry_flag='-bnoentry'
10107
# When large executables or shared objects are built, AIX ld can
10108
# have problems creating the table of contents. If linking a library
10109
# or program results in "error TOC overflow" add -mminimal-toc to
10110
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10111
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10113
archive_cmds_CXX=''
10114
hardcode_direct_CXX=yes
10115
hardcode_libdir_separator_CXX=':'
10116
link_all_deplibs_CXX=yes
10118
if test "$GXX" = yes; then
10119
case $host_os in aix4.[012]|aix4.[012].*)
10120
# We only want to do this on AIX 4.2 and lower, the check
10121
# below for broken collect2 doesn't work under 4.3+
10122
collect2name=`${CC} -print-prog-name=collect2`
10123
if test -f "$collect2name" && \
10124
strings "$collect2name" | grep resolve_lib_name >/dev/null
10126
# We have reworked collect2
10127
hardcode_direct_CXX=yes
10129
# We have old collect2
10130
hardcode_direct_CXX=unsupported
10131
# It fails to find uninstalled libraries when the uninstalled
10132
# path is not listed in the libpath. Setting hardcode_minus_L
10133
# to unsupported forces relinking
10134
hardcode_minus_L_CXX=yes
10135
hardcode_libdir_flag_spec_CXX='-L$libdir'
10136
hardcode_libdir_separator_CXX=
10139
shared_flag='-shared'
10140
if test "$aix_use_runtimelinking" = yes; then
10141
shared_flag="$shared_flag "'${wl}-G'
10145
if test "$host_cpu" = ia64; then
10146
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10147
# chokes on -Wl,-G. The following line is correct:
10150
if test "$aix_use_runtimelinking" = yes; then
10151
shared_flag='${wl}-G'
10153
shared_flag='${wl}-bM:SRE'
10158
# It seems that -bexpall does not export symbols beginning with
10159
# underscore (_), so it is better to generate a list of symbols to export.
10160
always_export_symbols_CXX=yes
10161
if test "$aix_use_runtimelinking" = yes; then
10162
# Warning - without using the other runtime loading flags (-brtl),
10163
# -berok will link without error, but may produce a broken library.
10164
allow_undefined_flag_CXX='-berok'
10165
# Determine the default libpath from the value encoded in an empty executable.
10166
cat >conftest.$ac_ext <<_ACEOF
10169
cat confdefs.h >>conftest.$ac_ext
10170
cat >>conftest.$ac_ext <<_ACEOF
10171
/* end confdefs.h. */
10181
rm -f conftest.$ac_objext conftest$ac_exeext
10182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10183
(eval $ac_link) 2>conftest.er1
10185
grep -v '^ *+' conftest.er1 >conftest.err
10187
cat conftest.err >&5
10188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189
(exit $ac_status); } &&
10190
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192
(eval $ac_try) 2>&5
10194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195
(exit $ac_status); }; } &&
10196
{ ac_try='test -s conftest$ac_exeext'
10197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198
(eval $ac_try) 2>&5
10200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201
(exit $ac_status); }; }; then
10203
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10205
# Check for a 64-bit object if we didn't find anything.
10206
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; }
10209
echo "$as_me: failed program was:" >&5
10210
sed 's/^/| /' conftest.$ac_ext >&5
10213
rm -f conftest.err conftest.$ac_objext \
10214
conftest$ac_exeext conftest.$ac_ext
10215
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10217
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10219
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"
10221
if test "$host_cpu" = ia64; then
10222
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10223
allow_undefined_flag_CXX="-z nodefs"
10224
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"
10226
# Determine the default libpath from the value encoded in an empty executable.
10227
cat >conftest.$ac_ext <<_ACEOF
10230
cat confdefs.h >>conftest.$ac_ext
10231
cat >>conftest.$ac_ext <<_ACEOF
10232
/* end confdefs.h. */
10242
rm -f conftest.$ac_objext conftest$ac_exeext
10243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244
(eval $ac_link) 2>conftest.er1
10246
grep -v '^ *+' conftest.er1 >conftest.err
10248
cat conftest.err >&5
10249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250
(exit $ac_status); } &&
10251
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253
(eval $ac_try) 2>&5
10255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256
(exit $ac_status); }; } &&
10257
{ ac_try='test -s conftest$ac_exeext'
10258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259
(eval $ac_try) 2>&5
10261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262
(exit $ac_status); }; }; then
10264
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10266
# Check for a 64-bit object if we didn't find anything.
10267
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; }
10270
echo "$as_me: failed program was:" >&5
10271
sed 's/^/| /' conftest.$ac_ext >&5
10274
rm -f conftest.err conftest.$ac_objext \
10275
conftest$ac_exeext conftest.$ac_ext
10276
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10278
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10279
# Warning - without using the other run time loading flags,
10280
# -berok will link without error, but may produce a broken library.
10281
no_undefined_flag_CXX=' ${wl}-bernotok'
10282
allow_undefined_flag_CXX=' ${wl}-berok'
10283
# -bexpall does not export symbols beginning with underscore (_)
10284
always_export_symbols_CXX=yes
10285
# Exported symbols can be pulled into shared objects from archives
10286
whole_archive_flag_spec_CXX=' '
10287
archive_cmds_need_lc_CXX=yes
10288
# This is similar to how AIX traditionally builds its shared libraries.
10289
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'
10294
case $cc_basename in
10296
# FIXME: insert proper C++ library support
10303
cygwin* | mingw* | pw32*)
10304
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10305
# as there is no search path for DLLs.
10306
hardcode_libdir_flag_spec_CXX='-L$libdir'
10307
allow_undefined_flag_CXX=unsupported
10308
always_export_symbols_CXX=no
10309
enable_shared_with_static_runtimes_CXX=yes
10311
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10312
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'
10313
# If the export-symbols file already is a .def file (1st line
10314
# is EXPORTS), use it as is; otherwise, prepend...
10315
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10316
cp $export_symbols $output_objdir/$soname.def;
10318
echo EXPORTS > $output_objdir/$soname.def;
10319
cat $export_symbols >> $output_objdir/$soname.def;
10321
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10326
darwin* | rhapsody*)
10328
rhapsody* | darwin1.[012])
10329
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10332
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10333
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10335
case ${MACOSX_DEPLOYMENT_TARGET} in
10337
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10340
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10346
archive_cmds_need_lc_CXX=no
10347
hardcode_direct_CXX=no
10348
hardcode_automatic_CXX=yes
10349
hardcode_shlibpath_var_CXX=unsupported
10350
whole_archive_flag_spec_CXX=''
10351
link_all_deplibs_CXX=yes
10353
if test "$GXX" = yes ; then
10354
lt_int_apple_cc_single_mod=no
10355
output_verbose_link_cmd='echo'
10356
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10357
lt_int_apple_cc_single_mod=yes
10359
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10360
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10362
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10364
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10365
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10366
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10367
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10369
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10371
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10373
case $cc_basename in
10375
output_verbose_link_cmd='echo'
10376
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10377
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10378
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10379
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10380
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10390
case $cc_basename in
10392
# FIXME: insert proper C++ library support
10396
# Green Hills C++ Compiler
10397
# FIXME: insert proper C++ library support
10401
# FIXME: insert proper C++ library support
10407
# C++ shared libraries reported to be fairly broken before switch to ELF
10411
archive_cmds_need_lc_CXX=no
10413
freebsd* | kfreebsd*-gnu | dragonfly*)
10414
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10421
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10422
hardcode_libdir_separator_CXX=:
10423
export_dynamic_flag_spec_CXX='${wl}-E'
10424
hardcode_direct_CXX=yes
10425
hardcode_minus_L_CXX=yes # Not in the search PATH,
10426
# but as the default
10427
# location of the library.
10429
case $cc_basename in
10431
# FIXME: insert proper C++ library support
10435
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'
10436
# Commands to make compiler produce verbose output that lists
10437
# what "hidden" libraries, object files and flags are used when
10438
# linking a shared library.
10440
# There doesn't appear to be a way to prevent this compiler from
10441
# explicitly linking system object files so we need to strip them
10442
# from the output so that they don't get included in the library
10444
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10447
if test "$GXX" = yes; then
10448
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'
10450
# FIXME: insert proper C++ library support
10457
if test $with_gnu_ld = no; then
10460
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10461
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10462
hardcode_libdir_separator_CXX=:
10465
hardcode_libdir_flag_spec_CXX='-L$libdir'
10468
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10469
hardcode_libdir_separator_CXX=:
10470
export_dynamic_flag_spec_CXX='${wl}-E'
10476
hardcode_direct_CXX=no
10477
hardcode_shlibpath_var_CXX=no
10480
hardcode_direct_CXX=no
10481
hardcode_shlibpath_var_CXX=no
10482
hardcode_minus_L_CXX=yes # Not in the search PATH,
10483
# but as the default
10484
# location of the library.
10487
hardcode_direct_CXX=yes
10488
hardcode_minus_L_CXX=yes # Not in the search PATH,
10489
# but as the default
10490
# location of the library.
10494
case $cc_basename in
10496
# FIXME: insert proper C++ library support
10502
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10505
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10508
# Commands to make compiler produce verbose output that lists
10509
# what "hidden" libraries, object files and flags are used when
10510
# linking a shared library.
10512
# There doesn't appear to be a way to prevent this compiler from
10513
# explicitly linking system object files so we need to strip them
10514
# from the output so that they don't get included in the library
10516
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10519
if test "$GXX" = yes; then
10520
if test $with_gnu_ld = no; then
10523
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10526
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'
10531
# FIXME: insert proper C++ library support
10538
case $cc_basename in
10541
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10543
# Archives containing C++ object files must be created using
10544
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10545
# necessary to make sure instantiated templates are included
10547
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10550
if test "$GXX" = yes; then
10551
if test "$with_gnu_ld" = no; then
10552
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10554
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10557
link_all_deplibs_CXX=yes
10560
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10561
hardcode_libdir_separator_CXX=:
10564
case $cc_basename in
10566
# Kuck and Associates, Inc. (KAI) C++ Compiler
10568
# KCC will only create a shared library if the output file
10569
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10570
# to its proper name (with version) after linking.
10571
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10572
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10573
# Commands to make compiler produce verbose output that lists
10574
# what "hidden" libraries, object files and flags are used when
10575
# linking a shared library.
10577
# There doesn't appear to be a way to prevent this compiler from
10578
# explicitly linking system object files so we need to strip them
10579
# from the output so that they don't get included in the library
10581
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10583
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10584
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10586
# Archives containing C++ object files must be created using
10587
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10588
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10593
# version 8.0 and above of icpc choke on multiply defined symbols
10594
# if we add $predep_objects and $postdep_objects, however 7.1 and
10595
# earlier do not add the objects themselves.
10596
case `$CC -V 2>&1` in
10598
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10599
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10601
*) # Version 8.0 or newer
10604
ia64*) tmp_idyn=' -i_dynamic';;
10606
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10607
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10610
archive_cmds_need_lc_CXX=no
10611
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10612
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10613
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10616
# Portland Group C++ compiler
10617
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10618
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10620
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10621
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10622
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10626
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627
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'
10629
runpath_var=LD_RUN_PATH
10630
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10631
hardcode_libdir_separator_CXX=:
10633
# Commands to make compiler produce verbose output that lists
10634
# what "hidden" libraries, object files and flags are used when
10635
# linking a shared library.
10637
# There doesn't appear to be a way to prevent this compiler from
10638
# explicitly linking system object files so we need to strip them
10639
# from the output so that they don't get included in the library
10641
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'
10646
# FIXME: insert proper C++ library support
10650
# FIXME: insert proper C++ library support
10654
case $cc_basename in
10656
# FIXME: insert proper C++ library support
10660
# FIXME: insert proper C++ library support
10665
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10666
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10667
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10669
hardcode_libdir_flag_spec_CXX='-R$libdir'
10670
hardcode_direct_CXX=yes
10671
hardcode_shlibpath_var_CXX=no
10673
# Workaround some broken pre-1.5 toolchains
10674
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10677
# C++ shared libraries are fairly broken
10681
hardcode_direct_CXX=yes
10682
hardcode_shlibpath_var_CXX=no
10683
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10684
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10685
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10686
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10687
export_dynamic_flag_spec_CXX='${wl}-E'
10688
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10690
output_verbose_link_cmd='echo'
10693
case $cc_basename in
10695
# Kuck and Associates, Inc. (KAI) C++ Compiler
10697
# KCC will only create a shared library if the output file
10698
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10699
# to its proper name (with version) after linking.
10700
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10702
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10703
hardcode_libdir_separator_CXX=:
10705
# Archives containing C++ object files must be created using
10706
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10707
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10711
# Rational C++ 2.4.1
10712
# FIXME: insert proper C++ library support
10716
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10717
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10719
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10720
hardcode_libdir_separator_CXX=:
10722
# Commands to make compiler produce verbose output that lists
10723
# what "hidden" libraries, object files and flags are used when
10724
# linking a shared library.
10726
# There doesn't appear to be a way to prevent this compiler from
10727
# explicitly linking system object files so we need to strip them
10728
# from the output so that they don't get included in the library
10730
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'
10733
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10734
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10735
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10737
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10738
hardcode_libdir_separator_CXX=:
10740
# Commands to make compiler produce verbose output that lists
10741
# what "hidden" libraries, object files and flags are used when
10742
# linking a shared library.
10743
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10746
# FIXME: insert proper C++ library support
10753
case $cc_basename in
10755
# Kuck and Associates, Inc. (KAI) C++ Compiler
10757
# KCC will only create a shared library if the output file
10758
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10759
# to its proper name (with version) after linking.
10760
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10762
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10763
hardcode_libdir_separator_CXX=:
10765
# Archives containing C++ object files must be created using
10766
# the KAI C++ compiler.
10767
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10770
# Rational C++ 2.4.1
10771
# FIXME: insert proper C++ library support
10775
allow_undefined_flag_CXX=' -expect_unresolved \*'
10776
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10777
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10778
echo "-hidden">> $lib.exp~
10779
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10782
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10783
hardcode_libdir_separator_CXX=:
10785
# Commands to make compiler produce verbose output that lists
10786
# what "hidden" libraries, object files and flags are used when
10787
# linking a shared library.
10789
# There doesn't appear to be a way to prevent this compiler from
10790
# explicitly linking system object files so we need to strip them
10791
# from the output so that they don't get included in the library
10793
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'
10796
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10797
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10798
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10800
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10801
hardcode_libdir_separator_CXX=:
10803
# Commands to make compiler produce verbose output that lists
10804
# what "hidden" libraries, object files and flags are used when
10805
# linking a shared library.
10806
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10809
# FIXME: insert proper C++ library support
10816
# FIXME: insert proper C++ library support
10820
archive_cmds_need_lc_CXX=no
10821
case $cc_basename in
10823
# FIXME: insert proper C++ library support
10827
# FIXME: insert proper C++ library support
10833
case $cc_basename in
10836
# FIXME: insert proper C++ library support
10841
# FIXME: insert proper C++ library support
10845
# FIXME: insert proper C++ library support
10851
case $cc_basename in
10853
# Sun C++ 4.2, 5.x and Centerline C++
10854
archive_cmds_need_lc_CXX=yes
10855
no_undefined_flag_CXX=' -zdefs'
10856
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10857
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10858
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10860
hardcode_libdir_flag_spec_CXX='-R$libdir'
10861
hardcode_shlibpath_var_CXX=no
10863
solaris2.[0-5] | solaris2.[0-5].*) ;;
10865
# The C++ compiler is used as linker so we must use $wl
10866
# flag to pass the commands to the underlying system
10867
# linker. We must also pass each convience library through
10868
# to the system linker between allextract/defaultextract.
10869
# The C++ compiler will combine linker options so we
10870
# cannot just pass the convience library names through
10872
# Supported since Solaris 2.6 (maybe 2.5.1?)
10873
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10876
link_all_deplibs_CXX=yes
10878
output_verbose_link_cmd='echo'
10880
# Archives containing C++ object files must be created using
10881
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10882
# necessary to make sure instantiated templates are included
10884
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10887
# Green Hills C++ Compiler
10888
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10890
# The C++ compiler must be used to create the archive.
10891
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10894
# GNU C++ compiler with Solaris linker
10895
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10896
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10897
if $CC --version | grep -v '^2\.7' > /dev/null; then
10898
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10899
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10900
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10902
# Commands to make compiler produce verbose output that lists
10903
# what "hidden" libraries, object files and flags are used when
10904
# linking a shared library.
10905
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10907
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10909
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10910
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10911
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10913
# Commands to make compiler produce verbose output that lists
10914
# what "hidden" libraries, object files and flags are used when
10915
# linking a shared library.
10916
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10919
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10924
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10925
archive_cmds_need_lc_CXX=no
10928
case $cc_basename in
10930
# NonStop-UX NCC 3.20
10931
# FIXME: insert proper C++ library support
10935
# FIXME: insert proper C++ library support
10941
# FIXME: insert proper C++ library support
10945
# FIXME: insert proper C++ library support
10949
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10950
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10951
test "$ld_shlibs_CXX" = no && can_build_shared=no
10957
cat > conftest.$ac_ext <<EOF
10961
Foo (void) { a = 0; }
10967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968
(eval $ac_compile) 2>&5
10970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971
(exit $ac_status); }; then
10972
# Parse the compiler output and extract the necessary
10973
# objects, libraries and library flags.
10975
# Sentinel used to keep track of whether or not we are before
10976
# the conftest object file.
10977
pre_test_object_deps_done=no
10979
# The `*' in the case matches for architectures that use `case' in
10980
# $output_verbose_cmd can trigger glob expansion during the loop
10981
# eval without this substitution.
10982
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10984
for p in `eval $output_verbose_link_cmd`; do
10988
# Some compilers place space between "-{L,R}" and the path.
10989
# Remove the space.
10990
if test $p = "-L" \
10991
|| test $p = "-R"; then
10998
if test "$pre_test_object_deps_done" = no; then
11001
# Internal compiler library paths should come after those
11002
# provided the user. The postdeps already come after the
11003
# user supplied libs so there is no need to process them.
11004
if test -z "$compiler_lib_search_path_CXX"; then
11005
compiler_lib_search_path_CXX="${prev}${p}"
11007
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11010
# The "-l" case would never come before the object being
11011
# linked, so don't bother handling this case.
11014
if test -z "$postdeps_CXX"; then
11015
postdeps_CXX="${prev}${p}"
11017
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11023
# This assumes that the test object file only shows up
11024
# once in the compiler output.
11025
if test "$p" = "conftest.$objext"; then
11026
pre_test_object_deps_done=yes
11030
if test "$pre_test_object_deps_done" = no; then
11031
if test -z "$predep_objects_CXX"; then
11032
predep_objects_CXX="$p"
11034
predep_objects_CXX="$predep_objects_CXX $p"
11037
if test -z "$postdep_objects_CXX"; then
11038
postdep_objects_CXX="$p"
11040
postdep_objects_CXX="$postdep_objects_CXX $p"
11045
*) ;; # Ignore the rest.
11053
echo "libtool.m4: error: problem compiling CXX test program"
11056
$rm -f confest.$objext
11058
# PORTME: override above test on systems where it is broken
11061
case $cc_basename in
11063
# Adding this requires a known-good setup of shared libraries for
11064
# Sun compiler versions before 5.6, else PIC objects from an old
11065
# archive will be linked into the output, leading to subtle bugs.
11066
postdeps_CXX='-lCstd -lCrun'
11072
case " $postdeps_CXX " in
11073
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11076
lt_prog_compiler_wl_CXX=
11077
lt_prog_compiler_pic_CXX=
11078
lt_prog_compiler_static_CXX=
11080
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11081
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11083
# C++ specific cases for pic, static, wl, etc.
11084
if test "$GXX" = yes; then
11085
lt_prog_compiler_wl_CXX='-Wl,'
11086
lt_prog_compiler_static_CXX='-static'
11090
# All AIX code is PIC.
11091
if test "$host_cpu" = ia64; then
11092
# AIX 5 now supports IA64 processor
11093
lt_prog_compiler_static_CXX='-Bstatic'
11097
# FIXME: we need at least 68020 code to build shared libraries, but
11098
# adding the `-m68020' flag to GCC prevents building anything better,
11100
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11102
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11103
# PIC is the default for these OSes.
11105
mingw* | os2* | pw32*)
11106
# This hack is so that the source file can tell whether it is being
11107
# built for inclusion in a dll (and should export symbols for example).
11108
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11110
darwin* | rhapsody*)
11111
# PIC is the default on this platform
11112
# Common symbols not allowed in MH_DYLIB files
11113
lt_prog_compiler_pic_CXX='-fno-common'
11116
# DJGPP does not support shared libraries at all
11117
lt_prog_compiler_pic_CXX=
11120
if test -d /usr/nec; then
11121
lt_prog_compiler_pic_CXX=-Kconform_pic
11125
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11126
# not for PA HP-UX.
11131
lt_prog_compiler_pic_CXX='-fPIC'
11136
lt_prog_compiler_pic_CXX='-fPIC'
11142
# All AIX code is PIC.
11143
if test "$host_cpu" = ia64; then
11144
# AIX 5 now supports IA64 processor
11145
lt_prog_compiler_static_CXX='-Bstatic'
11147
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11151
case $cc_basename in
11153
# Green Hills C++ Compiler
11154
# _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"
11159
# PIC is the default on this platform
11160
# Common symbols not allowed in MH_DYLIB files
11161
case $cc_basename in
11163
lt_prog_compiler_pic_CXX='-qnocommon'
11164
lt_prog_compiler_wl_CXX='-Wl,'
11169
case $cc_basename in
11171
lt_prog_compiler_pic_CXX='-KPIC'
11174
# Green Hills C++ Compiler
11175
lt_prog_compiler_pic_CXX='-pic'
11181
freebsd* | kfreebsd*-gnu | dragonfly*)
11182
# FreeBSD uses GNU C++
11184
hpux9* | hpux10* | hpux11*)
11185
case $cc_basename in
11187
lt_prog_compiler_wl_CXX='-Wl,'
11188
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11189
if test "$host_cpu" != ia64; then
11190
lt_prog_compiler_pic_CXX='+Z'
11194
lt_prog_compiler_wl_CXX='-Wl,'
11195
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11201
lt_prog_compiler_pic_CXX='+Z'
11209
irix5* | irix6* | nonstopux*)
11210
case $cc_basename in
11212
lt_prog_compiler_wl_CXX='-Wl,'
11213
lt_prog_compiler_static_CXX='-non_shared'
11214
# CC pic flag -KPIC is the default.
11221
case $cc_basename in
11224
lt_prog_compiler_wl_CXX='--backend -Wl,'
11225
lt_prog_compiler_pic_CXX='-fPIC'
11229
lt_prog_compiler_wl_CXX='-Wl,'
11230
lt_prog_compiler_pic_CXX='-KPIC'
11231
lt_prog_compiler_static_CXX='-static'
11234
# Portland Group C++ compiler.
11235
lt_prog_compiler_wl_CXX='-Wl,'
11236
lt_prog_compiler_pic_CXX='-fpic'
11237
lt_prog_compiler_static_CXX='-Bstatic'
11241
# Make sure the PIC flag is empty. It appears that all Alpha
11242
# Linux and Compaq Tru64 Unix objects are PIC.
11243
lt_prog_compiler_pic_CXX=
11244
lt_prog_compiler_static_CXX='-non_shared'
11255
case $cc_basename in
11257
lt_prog_compiler_pic_CXX='-W c,exportall'
11263
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11265
osf3* | osf4* | osf5*)
11266
case $cc_basename in
11268
lt_prog_compiler_wl_CXX='--backend -Wl,'
11271
# Rational C++ 2.4.1
11272
lt_prog_compiler_pic_CXX='-pic'
11275
# Digital/Compaq C++
11276
lt_prog_compiler_wl_CXX='-Wl,'
11277
# Make sure the PIC flag is empty. It appears that all Alpha
11278
# Linux and Compaq Tru64 Unix objects are PIC.
11279
lt_prog_compiler_pic_CXX=
11280
lt_prog_compiler_static_CXX='-non_shared'
11289
case $cc_basename in
11291
lt_prog_compiler_pic_CXX='-fPIC'
11298
case $cc_basename in
11300
# Sun C++ 4.2, 5.x and Centerline C++
11301
lt_prog_compiler_pic_CXX='-KPIC'
11302
lt_prog_compiler_static_CXX='-Bstatic'
11303
lt_prog_compiler_wl_CXX='-Qoption ld '
11306
# Green Hills C++ Compiler
11307
lt_prog_compiler_pic_CXX='-PIC'
11314
case $cc_basename in
11317
lt_prog_compiler_pic_CXX='-pic'
11318
lt_prog_compiler_static_CXX='-Bstatic'
11322
lt_prog_compiler_pic_CXX='-pic'
11329
case $cc_basename in
11331
# NonStop-UX NCC 3.20
11332
lt_prog_compiler_pic_CXX='-KPIC'
11343
lt_prog_compiler_can_build_shared_CXX=no
11348
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11349
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11352
# Check to make sure the PIC flag actually works.
11354
if test -n "$lt_prog_compiler_pic_CXX"; then
11356
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11357
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11358
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11359
echo $ECHO_N "(cached) $ECHO_C" >&6
11361
lt_prog_compiler_pic_works_CXX=no
11362
ac_outfile=conftest.$ac_objext
11363
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11364
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11365
# Insert the option either (1) after the last *FLAGS variable, or
11366
# (2) before a word containing "conftest.", or (3) at the end.
11367
# Note that $ac_compile itself does not contain backslashes and begins
11368
# with a dollar sign (not a hyphen), so the echo should work correctly.
11369
# The option is referenced via a variable to avoid confusing sed.
11370
lt_compile=`echo "$ac_compile" | $SED \
11371
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11372
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11373
-e 's:$: $lt_compiler_flag:'`
11374
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11375
(eval "$lt_compile" 2>conftest.err)
11377
cat conftest.err >&5
11378
echo "$as_me:__oline__: \$? = $ac_status" >&5
11379
if (exit $ac_status) && test -s "$ac_outfile"; then
11380
# The compiler can only warn and ignore the option if not recognized
11381
# So say no if there are warnings other than the usual output.
11382
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11383
$SED '/^$/d' conftest.err >conftest.er2
11384
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11385
lt_prog_compiler_pic_works_CXX=yes
11391
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11392
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11394
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11395
case $lt_prog_compiler_pic_CXX in
11397
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11400
lt_prog_compiler_pic_CXX=
11401
lt_prog_compiler_can_build_shared_CXX=no
11406
# For platforms which do not support PIC, -DPIC is meaningless:
11408
lt_prog_compiler_pic_CXX=
11411
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11415
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11416
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11417
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11418
echo $ECHO_N "(cached) $ECHO_C" >&6
11420
lt_cv_prog_compiler_c_o_CXX=no
11421
$rm -r conftest 2>/dev/null
11425
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11427
lt_compiler_flag="-o out/conftest2.$ac_objext"
11428
# Insert the option either (1) after the last *FLAGS variable, or
11429
# (2) before a word containing "conftest.", or (3) at the end.
11430
# Note that $ac_compile itself does not contain backslashes and begins
11431
# with a dollar sign (not a hyphen), so the echo should work correctly.
11432
lt_compile=`echo "$ac_compile" | $SED \
11433
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11434
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11435
-e 's:$: $lt_compiler_flag:'`
11436
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11437
(eval "$lt_compile" 2>out/conftest.err)
11439
cat out/conftest.err >&5
11440
echo "$as_me:__oline__: \$? = $ac_status" >&5
11441
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11443
# The compiler can only warn and ignore the option if not recognized
11444
# So say no if there are warnings
11445
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11446
$SED '/^$/d' out/conftest.err >out/conftest.er2
11447
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11448
lt_cv_prog_compiler_c_o_CXX=yes
11453
# SGI C++ compiler will create directory out/ii_files/ for
11454
# template instantiation
11455
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11456
$rm out/* && rmdir out
11462
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11463
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11466
hard_links="nottested"
11467
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11468
# do not overwrite the value of need_locks provided by the user
11469
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11470
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11473
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11475
ln conftest.a conftest.b 2>&5 || hard_links=no
11476
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11477
echo "$as_me:$LINENO: result: $hard_links" >&5
11478
echo "${ECHO_T}$hard_links" >&6
11479
if test "$hard_links" = no; then
11480
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11481
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11488
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11489
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11491
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11494
# If we're using GNU nm, then we don't want the "-C" option.
11495
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11496
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11497
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'
11499
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'
11503
export_symbols_cmds_CXX="$ltdll_cmds"
11506
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11509
link_all_deplibs_CXX=no
11512
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11516
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11517
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11518
test "$ld_shlibs_CXX" = no && can_build_shared=no
11520
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11521
if test "$GCC" = yes; then
11522
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11526
# Do we need to explicitly link libc?
11528
case "x$archive_cmds_need_lc_CXX" in
11530
# Assume -lc should be added
11531
archive_cmds_need_lc_CXX=yes
11533
if test "$enable_shared" = yes && test "$GCC" = yes; then
11534
case $archive_cmds_CXX in
11536
# FIXME: we may have to deal with multi-command sequences.
11539
# Test whether the compiler implicitly links with -lc since on some
11540
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11541
# to ld, don't add -lc before -lgcc.
11542
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11543
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11545
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11547
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548
(eval $ac_compile) 2>&5
11550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551
(exit $ac_status); } 2>conftest.err; then
11554
libobjs=conftest.$ac_objext
11556
wl=$lt_prog_compiler_wl_CXX
11562
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11563
allow_undefined_flag_CXX=
11564
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11565
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568
(exit $ac_status); }
11570
archive_cmds_need_lc_CXX=no
11572
archive_cmds_need_lc_CXX=yes
11574
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11576
cat conftest.err 1>&5
11579
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11580
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11587
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11588
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11589
library_names_spec=
11590
libname_spec='lib$name'
11594
postuninstall_cmds=
11598
shlibpath_overrides_runpath=unknown
11600
dynamic_linker="$host_os ld.so"
11601
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11602
if test "$GCC" = yes; then
11603
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11604
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11605
# if the path contains ";" then we assume it to be the separator
11606
# otherwise default to the standard path separator (i.e. ":") - it is
11607
# assumed that no part of a normal pathname contains ";" but that should
11608
# okay in the real world where ";" in dirpaths is itself problematic.
11609
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11611
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11614
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11616
need_lib_prefix=unknown
11617
hardcode_into_libs=no
11619
# when you set need_version to no, make sure it does not cause -set_version
11620
# flags to be left without arguments
11621
need_version=unknown
11626
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11627
shlibpath_var=LIBPATH
11629
# AIX 3 has no versioning support, so we append a major version to the name.
11630
soname_spec='${libname}${release}${shared_ext}$major'
11637
hardcode_into_libs=yes
11638
if test "$host_cpu" = ia64; then
11639
# AIX 5 supports IA64
11640
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11641
shlibpath_var=LD_LIBRARY_PATH
11643
# With GCC up to 2.95.x, collect2 would create an import file
11644
# for dependence libraries. The import file would start with
11645
# the line `#! .'. This would cause the generated library to
11646
# depend on `.', always an invalid library. This was fixed in
11647
# development snapshots of GCC prior to 3.0.
11649
aix4 | aix4.[01] | aix4.[01].*)
11650
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11652
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11655
can_build_shared=no
11659
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11660
# soname into executable. Probably we can add versioning support to
11661
# collect2, so additional links can be useful in future.
11662
if test "$aix_use_runtimelinking" = yes; then
11663
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11664
# instead of lib<name>.a to let people know that these are not
11665
# typical AIX shared libraries.
11666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668
# We preserve .a as extension for shared libraries through AIX4.2
11669
# and later when we are not doing run time linking.
11670
library_names_spec='${libname}${release}.a $libname.a'
11671
soname_spec='${libname}${release}${shared_ext}$major'
11673
shlibpath_var=LIBPATH
11678
library_names_spec='$libname.ixlibrary $libname.a'
11679
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11680
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'
11684
library_names_spec='${libname}${shared_ext}'
11685
dynamic_linker="$host_os ld.so"
11686
shlibpath_var=LIBRARY_PATH
11692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693
soname_spec='${libname}${release}${shared_ext}$major'
11694
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11695
shlibpath_var=LD_LIBRARY_PATH
11696
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11697
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11698
# the default ld.so.conf also contains /usr/contrib/lib and
11699
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11700
# libtool to hard-code these into programs
11703
cygwin* | mingw* | pw32*)
11704
version_type=windows
11709
case $GCC,$host_os in
11710
yes,cygwin* | yes,mingw* | yes,pw32*)
11711
library_names_spec='$libname.dll.a'
11712
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11713
postinstall_cmds='base_file=`basename \${file}`~
11714
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11715
dldir=$destdir/`dirname \$dlpath`~
11716
test -d \$dldir || mkdir -p \$dldir~
11717
$install_prog $dir/$dlname \$dldir/$dlname~
11718
chmod a+x \$dldir/$dlname'
11719
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11720
dlpath=$dir/\$dldll~
11722
shlibpath_overrides_runpath=yes
11726
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11727
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11728
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11731
# MinGW DLLs use traditional 'lib' prefix
11732
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11733
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11734
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11735
# It is most probably a Windows format PATH printed by
11736
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11737
# path with ; separators, and with drive letters. We can handle the
11738
# drive letters (cygwin fileutils understands them), so leave them,
11739
# especially as we might pass files found there to a mingw objdump,
11740
# which wouldn't understand a cygwinified path. Ahh.
11741
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11743
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11747
# pw32 DLLs use 'pw' prefix rather than 'lib'
11748
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11754
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11757
dynamic_linker='Win32 ld.exe'
11758
# FIXME: first we should search . and the directory the executable is in
11762
darwin* | rhapsody*)
11763
dynamic_linker="$host_os dyld"
11764
version_type=darwin
11767
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11768
soname_spec='${libname}${release}${major}$shared_ext'
11769
shlibpath_overrides_runpath=yes
11770
shlibpath_var=DYLD_LIBRARY_PATH
11771
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11772
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11773
if test "$GCC" = yes; then
11774
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11776
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11778
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11786
soname_spec='${libname}${release}${shared_ext}$major'
11787
shlibpath_var=LD_LIBRARY_PATH
11798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799
soname_spec='${libname}${release}${shared_ext}$major'
11800
shlibpath_var=LD_LIBRARY_PATH
11801
shlibpath_overrides_runpath=no
11802
hardcode_into_libs=yes
11803
dynamic_linker='GNU ld.so'
11806
freebsd* | dragonfly*)
11807
# DragonFly does not have aout. When/if they implement a new
11808
# versioning mechanism, adjust this.
11809
if test -x /usr/bin/objformat; then
11810
objformat=`/usr/bin/objformat`
11813
freebsd[123]*) objformat=aout ;;
11814
*) objformat=elf ;;
11817
version_type=freebsd-$objformat
11818
case $version_type in
11820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11825
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11829
shlibpath_var=LD_LIBRARY_PATH
11832
shlibpath_overrides_runpath=yes
11834
freebsd3.[01]* | freebsdelf3.[01]*)
11835
shlibpath_overrides_runpath=yes
11836
hardcode_into_libs=yes
11839
shlibpath_overrides_runpath=no
11840
hardcode_into_libs=yes
11849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11850
soname_spec='${libname}${release}${shared_ext}$major'
11851
shlibpath_var=LD_LIBRARY_PATH
11852
hardcode_into_libs=yes
11855
hpux9* | hpux10* | hpux11*)
11856
# Give a soname corresponding to the major version so that dld.sl refuses to
11857
# link against other versions.
11864
hardcode_into_libs=yes
11865
dynamic_linker="$host_os dld.so"
11866
shlibpath_var=LD_LIBRARY_PATH
11867
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869
soname_spec='${libname}${release}${shared_ext}$major'
11870
if test "X$HPUX_IA64_MODE" = X32; then
11871
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11873
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11875
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11879
hardcode_into_libs=yes
11880
dynamic_linker="$host_os dld.sl"
11881
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11882
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884
soname_spec='${libname}${release}${shared_ext}$major'
11885
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11886
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11890
dynamic_linker="$host_os dld.sl"
11891
shlibpath_var=SHLIB_PATH
11892
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11894
soname_spec='${libname}${release}${shared_ext}$major'
11897
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11898
postinstall_cmds='chmod 555 $lib'
11901
irix5* | irix6* | nonstopux*)
11903
nonstopux*) version_type=nonstopux ;;
11905
if test "$lt_cv_prog_gnu_ld" = yes; then
11913
soname_spec='${libname}${release}${shared_ext}$major'
11914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11916
irix5* | nonstopux*)
11917
libsuff= shlibsuff=
11920
case $LD in # libtool.m4 will add one of these switches to LD
11921
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11922
libsuff= shlibsuff= libmagic=32-bit;;
11923
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11924
libsuff=32 shlibsuff=N32 libmagic=N32;;
11925
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11926
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11927
*) libsuff= shlibsuff= libmagic=never-match;;
11931
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11932
shlibpath_overrides_runpath=no
11933
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11934
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11935
hardcode_into_libs=yes
11938
# No shared lib support for Linux oldld, aout, or coff.
11939
linux*oldld* | linux*aout* | linux*coff*)
11943
# This must be Linux ELF.
11948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949
soname_spec='${libname}${release}${shared_ext}$major'
11950
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11951
shlibpath_var=LD_LIBRARY_PATH
11952
shlibpath_overrides_runpath=no
11953
# This implies no fast_install, which is unacceptable.
11954
# Some rework will be needed to allow for fast_install
11955
# before this can be enabled.
11956
hardcode_into_libs=yes
11958
# Append ld.so.conf contents to the search path
11959
if test -f /etc/ld.so.conf; then
11960
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11961
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11964
# We used to test for /lib/ld.so.1 and disable shared libraries on
11965
# powerpc, because MkLinux only supported shared libraries with the
11966
# GNU dynamic linker. Since this was broken with cross compilers,
11967
# most powerpc-linux boxes support dynamic linking these days and
11968
# people can always --disable-shared, the test was removed, and we
11969
# assume the GNU/Linux dynamic linker is in use.
11970
dynamic_linker='GNU/Linux ld.so'
11977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11978
soname_spec='${libname}${release}${shared_ext}$major'
11979
shlibpath_var=LD_LIBRARY_PATH
11980
shlibpath_overrides_runpath=no
11981
hardcode_into_libs=yes
11982
dynamic_linker='NetBSD ld.elf_so'
11989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11990
soname_spec='${libname}${release}${shared_ext}$major'
11991
shlibpath_var=LD_LIBRARY_PATH
11992
shlibpath_overrides_runpath=no
11993
hardcode_into_libs=yes
11994
dynamic_linker='GNU ld.so'
12001
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12003
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12004
dynamic_linker='NetBSD (a.out) ld.so'
12006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12007
soname_spec='${libname}${release}${shared_ext}$major'
12008
dynamic_linker='NetBSD ld.elf_so'
12010
shlibpath_var=LD_LIBRARY_PATH
12011
shlibpath_overrides_runpath=yes
12012
hardcode_into_libs=yes
12017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018
shlibpath_var=LD_LIBRARY_PATH
12019
shlibpath_overrides_runpath=yes
12026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12027
soname_spec='${libname}${release}${shared_ext}$major'
12028
shlibpath_var=LD_LIBRARY_PATH
12029
shlibpath_overrides_runpath=yes
12035
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12037
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12038
*) need_version=no ;;
12040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12041
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12042
shlibpath_var=LD_LIBRARY_PATH
12043
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12045
openbsd2.[89] | openbsd2.[89].*)
12046
shlibpath_overrides_runpath=no
12049
shlibpath_overrides_runpath=yes
12053
shlibpath_overrides_runpath=yes
12058
libname_spec='$name'
12061
library_names_spec='$libname${shared_ext} $libname.a'
12062
dynamic_linker='OS/2 ld.exe'
12063
shlibpath_var=LIBPATH
12066
osf3* | osf4* | osf5*)
12070
soname_spec='${libname}${release}${shared_ext}$major'
12071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072
shlibpath_var=LD_LIBRARY_PATH
12073
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12074
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12079
soname_spec='${libname}${release}${shared_ext}$major'
12080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081
shlibpath_var=LD_LIBRARY_PATH
12088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089
soname_spec='${libname}${release}${shared_ext}$major'
12090
shlibpath_var=LD_LIBRARY_PATH
12091
shlibpath_overrides_runpath=yes
12092
hardcode_into_libs=yes
12093
# ldd complains unless libraries are executable
12094
postinstall_cmds='chmod +x $lib'
12099
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12100
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12101
shlibpath_var=LD_LIBRARY_PATH
12102
shlibpath_overrides_runpath=yes
12103
if test "$with_gnu_ld" = yes; then
12109
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112
soname_spec='${libname}${release}${shared_ext}$major'
12113
shlibpath_var=LD_LIBRARY_PATH
12114
case $host_vendor in
12116
shlibpath_overrides_runpath=no
12118
export_dynamic_flag_spec='${wl}-Blargedynsym'
12119
runpath_var=LD_RUN_PATH
12127
shlibpath_overrides_runpath=no
12128
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12134
if test -d /usr/nec ;then
12136
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12137
soname_spec='$libname${shared_ext}.$major'
12138
shlibpath_var=LD_LIBRARY_PATH
12144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145
soname_spec='${libname}${release}${shared_ext}$major'
12146
shlibpath_var=LD_LIBRARY_PATH
12153
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12154
echo "${ECHO_T}$dynamic_linker" >&6
12155
test "$dynamic_linker" = no && can_build_shared=no
12157
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12158
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12159
hardcode_action_CXX=
12160
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12161
test -n "$runpath_var_CXX" || \
12162
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12164
# We can hardcode non-existant directories.
12165
if test "$hardcode_direct_CXX" != no &&
12166
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12167
# have to relink, otherwise we might link with an installed library
12168
# when we should be linking with a yet-to-be-installed one
12169
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12170
test "$hardcode_minus_L_CXX" != no; then
12171
# Linking always hardcodes the temporary library directory.
12172
hardcode_action_CXX=relink
12174
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12175
hardcode_action_CXX=immediate
12178
# We cannot hardcode anything, or else we can only hardcode existing
12180
hardcode_action_CXX=unsupported
12182
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12183
echo "${ECHO_T}$hardcode_action_CXX" >&6
12185
if test "$hardcode_action_CXX" = relink; then
12186
# Fast installation is not supported
12187
enable_fast_install=no
12188
elif test "$shlibpath_overrides_runpath" = yes ||
12189
test "$enable_shared" = no; then
12190
# Fast installation is not necessary
12191
enable_fast_install=needless
12196
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12197
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12198
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12199
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12200
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12201
echo "$as_me:$LINENO: result: yes" >&5
12202
echo "${ECHO_T}yes" >&6
12204
# FIXME - insert some real tests, host_os isn't really good enough
12207
if test -n "$STRIP" ; then
12208
striplib="$STRIP -x"
12209
echo "$as_me:$LINENO: result: yes" >&5
12210
echo "${ECHO_T}yes" >&6
12212
echo "$as_me:$LINENO: result: no" >&5
12213
echo "${ECHO_T}no" >&6
12217
echo "$as_me:$LINENO: result: no" >&5
12218
echo "${ECHO_T}no" >&6
12223
if test "x$enable_dlopen" != xyes; then
12224
enable_dlopen=unknown
12225
enable_dlopen_self=unknown
12226
enable_dlopen_self_static=unknown
12233
lt_cv_dlopen="load_add_on"
12235
lt_cv_dlopen_self=yes
12239
lt_cv_dlopen="LoadLibrary"
12244
lt_cv_dlopen="dlopen"
12249
# if libdl is installed we need to link against it
12250
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12251
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12252
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12253
echo $ECHO_N "(cached) $ECHO_C" >&6
12255
ac_check_lib_save_LIBS=$LIBS
12257
cat >conftest.$ac_ext <<_ACEOF
12260
cat confdefs.h >>conftest.$ac_ext
12261
cat >>conftest.$ac_ext <<_ACEOF
12262
/* end confdefs.h. */
12264
/* Override any gcc2 internal prototype to avoid an error. */
12268
/* We use char because int might match the return type of a gcc2
12269
builtin and then its argument prototype would still apply. */
12279
rm -f conftest.$ac_objext conftest$ac_exeext
12280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281
(eval $ac_link) 2>conftest.er1
12283
grep -v '^ *+' conftest.er1 >conftest.err
12285
cat conftest.err >&5
12286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
(exit $ac_status); } &&
12288
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290
(eval $ac_try) 2>&5
12292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293
(exit $ac_status); }; } &&
12294
{ ac_try='test -s conftest$ac_exeext'
12295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296
(eval $ac_try) 2>&5
12298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299
(exit $ac_status); }; }; then
12300
ac_cv_lib_dl_dlopen=yes
12302
echo "$as_me: failed program was:" >&5
12303
sed 's/^/| /' conftest.$ac_ext >&5
12305
ac_cv_lib_dl_dlopen=no
12307
rm -f conftest.err conftest.$ac_objext \
12308
conftest$ac_exeext conftest.$ac_ext
12309
LIBS=$ac_check_lib_save_LIBS
12311
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12312
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12313
if test $ac_cv_lib_dl_dlopen = yes; then
12314
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12317
lt_cv_dlopen="dyld"
12319
lt_cv_dlopen_self=yes
12326
echo "$as_me:$LINENO: checking for shl_load" >&5
12327
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12328
if test "${ac_cv_func_shl_load+set}" = set; then
12329
echo $ECHO_N "(cached) $ECHO_C" >&6
12331
cat >conftest.$ac_ext <<_ACEOF
12334
cat confdefs.h >>conftest.$ac_ext
12335
cat >>conftest.$ac_ext <<_ACEOF
12336
/* end confdefs.h. */
12337
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12338
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339
#define shl_load innocuous_shl_load
12341
/* System header to define __stub macros and hopefully few prototypes,
12342
which can conflict with char shl_load (); below.
12343
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344
<limits.h> exists even on freestanding compilers. */
12347
# include <limits.h>
12349
# include <assert.h>
12354
/* Override any gcc2 internal prototype to avoid an error. */
12359
/* We use char because int might match the return type of a gcc2
12360
builtin and then its argument prototype would still apply. */
12362
/* The GNU C library defines this for functions which it implements
12363
to always fail with ENOSYS. Some functions are actually named
12364
something starting with __ and the normal name is an alias. */
12365
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12368
char (*f) () = shl_load;
12377
return f != shl_load;
12382
rm -f conftest.$ac_objext conftest$ac_exeext
12383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384
(eval $ac_link) 2>conftest.er1
12386
grep -v '^ *+' conftest.er1 >conftest.err
12388
cat conftest.err >&5
12389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390
(exit $ac_status); } &&
12391
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393
(eval $ac_try) 2>&5
12395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396
(exit $ac_status); }; } &&
12397
{ ac_try='test -s conftest$ac_exeext'
12398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399
(eval $ac_try) 2>&5
12401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402
(exit $ac_status); }; }; then
12403
ac_cv_func_shl_load=yes
12405
echo "$as_me: failed program was:" >&5
12406
sed 's/^/| /' conftest.$ac_ext >&5
12408
ac_cv_func_shl_load=no
12410
rm -f conftest.err conftest.$ac_objext \
12411
conftest$ac_exeext conftest.$ac_ext
12413
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12414
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12415
if test $ac_cv_func_shl_load = yes; then
12416
lt_cv_dlopen="shl_load"
12418
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12419
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12420
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12421
echo $ECHO_N "(cached) $ECHO_C" >&6
12423
ac_check_lib_save_LIBS=$LIBS
12425
cat >conftest.$ac_ext <<_ACEOF
12428
cat confdefs.h >>conftest.$ac_ext
12429
cat >>conftest.$ac_ext <<_ACEOF
12430
/* end confdefs.h. */
12432
/* Override any gcc2 internal prototype to avoid an error. */
12436
/* We use char because int might match the return type of a gcc2
12437
builtin and then its argument prototype would still apply. */
12447
rm -f conftest.$ac_objext conftest$ac_exeext
12448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449
(eval $ac_link) 2>conftest.er1
12451
grep -v '^ *+' conftest.er1 >conftest.err
12453
cat conftest.err >&5
12454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455
(exit $ac_status); } &&
12456
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458
(eval $ac_try) 2>&5
12460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461
(exit $ac_status); }; } &&
12462
{ ac_try='test -s conftest$ac_exeext'
12463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464
(eval $ac_try) 2>&5
12466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467
(exit $ac_status); }; }; then
12468
ac_cv_lib_dld_shl_load=yes
12470
echo "$as_me: failed program was:" >&5
12471
sed 's/^/| /' conftest.$ac_ext >&5
12473
ac_cv_lib_dld_shl_load=no
12475
rm -f conftest.err conftest.$ac_objext \
12476
conftest$ac_exeext conftest.$ac_ext
12477
LIBS=$ac_check_lib_save_LIBS
12479
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12480
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12481
if test $ac_cv_lib_dld_shl_load = yes; then
12482
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12484
echo "$as_me:$LINENO: checking for dlopen" >&5
12485
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12486
if test "${ac_cv_func_dlopen+set}" = set; then
12487
echo $ECHO_N "(cached) $ECHO_C" >&6
12489
cat >conftest.$ac_ext <<_ACEOF
12492
cat confdefs.h >>conftest.$ac_ext
12493
cat >>conftest.$ac_ext <<_ACEOF
12494
/* end confdefs.h. */
12495
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12496
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497
#define dlopen innocuous_dlopen
12499
/* System header to define __stub macros and hopefully few prototypes,
12500
which can conflict with char dlopen (); below.
12501
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502
<limits.h> exists even on freestanding compilers. */
12505
# include <limits.h>
12507
# include <assert.h>
12512
/* Override any gcc2 internal prototype to avoid an error. */
12517
/* We use char because int might match the return type of a gcc2
12518
builtin and then its argument prototype would still apply. */
12520
/* The GNU C library defines this for functions which it implements
12521
to always fail with ENOSYS. Some functions are actually named
12522
something starting with __ and the normal name is an alias. */
12523
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12526
char (*f) () = dlopen;
12535
return f != dlopen;
12540
rm -f conftest.$ac_objext conftest$ac_exeext
12541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542
(eval $ac_link) 2>conftest.er1
12544
grep -v '^ *+' conftest.er1 >conftest.err
12546
cat conftest.err >&5
12547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548
(exit $ac_status); } &&
12549
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551
(eval $ac_try) 2>&5
12553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554
(exit $ac_status); }; } &&
12555
{ ac_try='test -s conftest$ac_exeext'
12556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557
(eval $ac_try) 2>&5
12559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560
(exit $ac_status); }; }; then
12561
ac_cv_func_dlopen=yes
12563
echo "$as_me: failed program was:" >&5
12564
sed 's/^/| /' conftest.$ac_ext >&5
12566
ac_cv_func_dlopen=no
12568
rm -f conftest.err conftest.$ac_objext \
12569
conftest$ac_exeext conftest.$ac_ext
12571
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12572
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12573
if test $ac_cv_func_dlopen = yes; then
12574
lt_cv_dlopen="dlopen"
12576
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12577
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12578
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12579
echo $ECHO_N "(cached) $ECHO_C" >&6
12581
ac_check_lib_save_LIBS=$LIBS
12583
cat >conftest.$ac_ext <<_ACEOF
12586
cat confdefs.h >>conftest.$ac_ext
12587
cat >>conftest.$ac_ext <<_ACEOF
12588
/* end confdefs.h. */
12590
/* Override any gcc2 internal prototype to avoid an error. */
12594
/* We use char because int might match the return type of a gcc2
12595
builtin and then its argument prototype would still apply. */
12605
rm -f conftest.$ac_objext conftest$ac_exeext
12606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12607
(eval $ac_link) 2>conftest.er1
12609
grep -v '^ *+' conftest.er1 >conftest.err
12611
cat conftest.err >&5
12612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613
(exit $ac_status); } &&
12614
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616
(eval $ac_try) 2>&5
12618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619
(exit $ac_status); }; } &&
12620
{ ac_try='test -s conftest$ac_exeext'
12621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622
(eval $ac_try) 2>&5
12624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625
(exit $ac_status); }; }; then
12626
ac_cv_lib_dl_dlopen=yes
12628
echo "$as_me: failed program was:" >&5
12629
sed 's/^/| /' conftest.$ac_ext >&5
12631
ac_cv_lib_dl_dlopen=no
12633
rm -f conftest.err conftest.$ac_objext \
12634
conftest$ac_exeext conftest.$ac_ext
12635
LIBS=$ac_check_lib_save_LIBS
12637
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12638
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12639
if test $ac_cv_lib_dl_dlopen = yes; then
12640
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12642
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12643
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12644
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12645
echo $ECHO_N "(cached) $ECHO_C" >&6
12647
ac_check_lib_save_LIBS=$LIBS
12648
LIBS="-lsvld $LIBS"
12649
cat >conftest.$ac_ext <<_ACEOF
12652
cat confdefs.h >>conftest.$ac_ext
12653
cat >>conftest.$ac_ext <<_ACEOF
12654
/* end confdefs.h. */
12656
/* Override any gcc2 internal prototype to avoid an error. */
12660
/* We use char because int might match the return type of a gcc2
12661
builtin and then its argument prototype would still apply. */
12671
rm -f conftest.$ac_objext conftest$ac_exeext
12672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673
(eval $ac_link) 2>conftest.er1
12675
grep -v '^ *+' conftest.er1 >conftest.err
12677
cat conftest.err >&5
12678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679
(exit $ac_status); } &&
12680
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682
(eval $ac_try) 2>&5
12684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685
(exit $ac_status); }; } &&
12686
{ ac_try='test -s conftest$ac_exeext'
12687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688
(eval $ac_try) 2>&5
12690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691
(exit $ac_status); }; }; then
12692
ac_cv_lib_svld_dlopen=yes
12694
echo "$as_me: failed program was:" >&5
12695
sed 's/^/| /' conftest.$ac_ext >&5
12697
ac_cv_lib_svld_dlopen=no
12699
rm -f conftest.err conftest.$ac_objext \
12700
conftest$ac_exeext conftest.$ac_ext
12701
LIBS=$ac_check_lib_save_LIBS
12703
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12704
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12705
if test $ac_cv_lib_svld_dlopen = yes; then
12706
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12708
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12709
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12710
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12711
echo $ECHO_N "(cached) $ECHO_C" >&6
12713
ac_check_lib_save_LIBS=$LIBS
12715
cat >conftest.$ac_ext <<_ACEOF
12718
cat confdefs.h >>conftest.$ac_ext
12719
cat >>conftest.$ac_ext <<_ACEOF
12720
/* end confdefs.h. */
12722
/* Override any gcc2 internal prototype to avoid an error. */
12726
/* We use char because int might match the return type of a gcc2
12727
builtin and then its argument prototype would still apply. */
12737
rm -f conftest.$ac_objext conftest$ac_exeext
12738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739
(eval $ac_link) 2>conftest.er1
12741
grep -v '^ *+' conftest.er1 >conftest.err
12743
cat conftest.err >&5
12744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745
(exit $ac_status); } &&
12746
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748
(eval $ac_try) 2>&5
12750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751
(exit $ac_status); }; } &&
12752
{ ac_try='test -s conftest$ac_exeext'
12753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754
(eval $ac_try) 2>&5
12756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757
(exit $ac_status); }; }; then
12758
ac_cv_lib_dld_dld_link=yes
12760
echo "$as_me: failed program was:" >&5
12761
sed 's/^/| /' conftest.$ac_ext >&5
12763
ac_cv_lib_dld_dld_link=no
12765
rm -f conftest.err conftest.$ac_objext \
12766
conftest$ac_exeext conftest.$ac_ext
12767
LIBS=$ac_check_lib_save_LIBS
12769
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12770
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12771
if test $ac_cv_lib_dld_dld_link = yes; then
12772
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12793
if test "x$lt_cv_dlopen" != xno; then
12799
case $lt_cv_dlopen in
12801
save_CPPFLAGS="$CPPFLAGS"
12802
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12804
save_LDFLAGS="$LDFLAGS"
12805
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12808
LIBS="$lt_cv_dlopen_libs $LIBS"
12810
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12811
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12812
if test "${lt_cv_dlopen_self+set}" = set; then
12813
echo $ECHO_N "(cached) $ECHO_C" >&6
12815
if test "$cross_compiling" = yes; then :
12816
lt_cv_dlopen_self=cross
12818
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12819
lt_status=$lt_dlunknown
12820
cat > conftest.$ac_ext <<EOF
12821
#line __oline__ "configure"
12822
#include "confdefs.h"
12831
# define LT_DLGLOBAL RTLD_GLOBAL
12834
# define LT_DLGLOBAL DL_GLOBAL
12836
# define LT_DLGLOBAL 0
12840
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12841
find out it does not work in some platform. */
12842
#ifndef LT_DLLAZY_OR_NOW
12844
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12847
# define LT_DLLAZY_OR_NOW DL_LAZY
12850
# define LT_DLLAZY_OR_NOW RTLD_NOW
12853
# define LT_DLLAZY_OR_NOW DL_NOW
12855
# define LT_DLLAZY_OR_NOW 0
12863
extern "C" void exit (int);
12866
void fnord() { int i=42;}
12869
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12870
int status = $lt_dlunknown;
12874
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12875
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12876
/* dlclose (self); */
12882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12883
(eval $ac_link) 2>&5
12885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12887
(./conftest; exit; ) >&5 2>/dev/null
12889
case x$lt_status in
12890
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12891
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12892
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12895
# compilation failed
12896
lt_cv_dlopen_self=no
12903
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12904
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12906
if test "x$lt_cv_dlopen_self" = xyes; then
12907
LDFLAGS="$LDFLAGS $link_static_flag"
12908
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12909
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12910
if test "${lt_cv_dlopen_self_static+set}" = set; then
12911
echo $ECHO_N "(cached) $ECHO_C" >&6
12913
if test "$cross_compiling" = yes; then :
12914
lt_cv_dlopen_self_static=cross
12916
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12917
lt_status=$lt_dlunknown
12918
cat > conftest.$ac_ext <<EOF
12919
#line __oline__ "configure"
12920
#include "confdefs.h"
12929
# define LT_DLGLOBAL RTLD_GLOBAL
12932
# define LT_DLGLOBAL DL_GLOBAL
12934
# define LT_DLGLOBAL 0
12938
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12939
find out it does not work in some platform. */
12940
#ifndef LT_DLLAZY_OR_NOW
12942
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12945
# define LT_DLLAZY_OR_NOW DL_LAZY
12948
# define LT_DLLAZY_OR_NOW RTLD_NOW
12951
# define LT_DLLAZY_OR_NOW DL_NOW
12953
# define LT_DLLAZY_OR_NOW 0
12961
extern "C" void exit (int);
12964
void fnord() { int i=42;}
12967
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12968
int status = $lt_dlunknown;
12972
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12973
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12974
/* dlclose (self); */
12980
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12981
(eval $ac_link) 2>&5
12983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12985
(./conftest; exit; ) >&5 2>/dev/null
12987
case x$lt_status in
12988
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12989
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12990
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12993
# compilation failed
12994
lt_cv_dlopen_self_static=no
13001
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13002
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13005
CPPFLAGS="$save_CPPFLAGS"
13006
LDFLAGS="$save_LDFLAGS"
13011
case $lt_cv_dlopen_self in
13012
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13013
*) enable_dlopen_self=unknown ;;
13016
case $lt_cv_dlopen_self_static in
13017
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13018
*) enable_dlopen_self_static=unknown ;;
13023
# The else clause should only fire when bootstrapping the
13024
# libtool distribution, otherwise you forgot to ship ltmain.sh
13025
# with your package, and you will get complaints that there are
13026
# no rules to generate ltmain.sh.
13027
if test -f "$ltmain"; then
13028
# See if we are running on zsh, and set the options which allow our commands through
13029
# without removal of \ escapes.
13030
if test -n "${ZSH_VERSION+set}" ; then
13031
setopt NO_GLOB_SUBST
13033
# Now quote all the things that may contain metacharacters while being
13034
# careful not to overquote the AC_SUBSTed values. We take copies of the
13035
# variables and quote the copies for generation of the libtool script.
13036
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13038
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13039
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13040
deplibs_check_method reload_flag reload_cmds need_locks \
13041
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13042
lt_cv_sys_global_symbol_to_c_name_address \
13043
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13044
old_postinstall_cmds old_postuninstall_cmds \
13048
lt_prog_compiler_wl_CXX \
13049
lt_prog_compiler_pic_CXX \
13050
lt_prog_compiler_static_CXX \
13051
lt_prog_compiler_no_builtin_flag_CXX \
13052
export_dynamic_flag_spec_CXX \
13053
thread_safe_flag_spec_CXX \
13054
whole_archive_flag_spec_CXX \
13055
enable_shared_with_static_runtimes_CXX \
13056
old_archive_cmds_CXX \
13057
old_archive_from_new_cmds_CXX \
13058
predep_objects_CXX \
13059
postdep_objects_CXX \
13062
compiler_lib_search_path_CXX \
13064
archive_expsym_cmds_CXX \
13065
postinstall_cmds_CXX \
13066
postuninstall_cmds_CXX \
13067
old_archive_from_expsyms_cmds_CXX \
13068
allow_undefined_flag_CXX \
13069
no_undefined_flag_CXX \
13070
export_symbols_cmds_CXX \
13071
hardcode_libdir_flag_spec_CXX \
13072
hardcode_libdir_flag_spec_ld_CXX \
13073
hardcode_libdir_separator_CXX \
13074
hardcode_automatic_CXX \
13076
module_expsym_cmds_CXX \
13077
lt_cv_prog_compiler_c_o_CXX \
13078
exclude_expsyms_CXX \
13079
include_expsyms_CXX; do
13082
old_archive_cmds_CXX | \
13083
old_archive_from_new_cmds_CXX | \
13084
archive_cmds_CXX | \
13085
archive_expsym_cmds_CXX | \
13086
module_cmds_CXX | \
13087
module_expsym_cmds_CXX | \
13088
old_archive_from_expsyms_cmds_CXX | \
13089
export_symbols_cmds_CXX | \
13090
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13091
postinstall_cmds | postuninstall_cmds | \
13092
old_postinstall_cmds | old_postuninstall_cmds | \
13093
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13094
# Double-quote double-evaled strings.
13095
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13098
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13104
*'\$0 --fallback-echo"')
13105
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13111
cat <<__EOF__ >> "$cfgfile"
13112
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13114
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13116
# Shell to use when invoking shell scripts.
13119
# Whether or not to build shared libraries.
13120
build_libtool_libs=$enable_shared
13122
# Whether or not to build static libraries.
13123
build_old_libs=$enable_static
13125
# Whether or not to add -lc for building shared libraries.
13126
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13128
# Whether or not to disallow shared libs when runtime libs are static
13129
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13131
# Whether or not to optimize for fast installation.
13132
fast_install=$enable_fast_install
13135
host_alias=$host_alias
13139
# The build system.
13140
build_alias=$build_alias
13144
# An echo program that does not interpret backslashes.
13149
AR_FLAGS=$lt_AR_FLAGS
13154
# A language-specific compiler.
13155
CC=$lt_compiler_CXX
13157
# Is the compiler the GNU C compiler?
13163
# The linker used to build libraries.
13166
# Whether we need hard or soft links.
13169
# A BSD-compatible nm program.
13172
# A symbol stripping program
13175
# Used to examine libraries when file_magic_cmd begins "file"
13176
MAGIC_CMD=$MAGIC_CMD
13178
# Used on cygwin: DLL creation program.
13181
# Used on cygwin: object dumper.
13184
# Used on cygwin: assembler.
13187
# The name of the directory that contains temporary libtool files.
13190
# How to create reloadable object files.
13191
reload_flag=$lt_reload_flag
13192
reload_cmds=$lt_reload_cmds
13194
# How to pass a linker flag through the compiler.
13195
wl=$lt_lt_prog_compiler_wl_CXX
13197
# Object file suffix (normally "o").
13198
objext="$ac_objext"
13200
# Old archive suffix (normally "a").
13203
# Shared library suffix (normally ".so").
13204
shrext_cmds='$shrext_cmds'
13206
# Executable file suffix (normally "").
13209
# Additional compiler flags for building library objects.
13210
pic_flag=$lt_lt_prog_compiler_pic_CXX
13213
# What is the maximum length of a command?
13214
max_cmd_len=$lt_cv_sys_max_cmd_len
13216
# Does compiler simultaneously support -c and -o options?
13217
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13219
# Must we lock files when doing compilation?
13220
need_locks=$lt_need_locks
13222
# Do we need the lib prefix for modules?
13223
need_lib_prefix=$need_lib_prefix
13225
# Do we need a version for libraries?
13226
need_version=$need_version
13228
# Whether dlopen is supported.
13229
dlopen_support=$enable_dlopen
13231
# Whether dlopen of programs is supported.
13232
dlopen_self=$enable_dlopen_self
13234
# Whether dlopen of statically linked programs is supported.
13235
dlopen_self_static=$enable_dlopen_self_static
13237
# Compiler flag to prevent dynamic linking.
13238
link_static_flag=$lt_lt_prog_compiler_static_CXX
13240
# Compiler flag to turn off builtin functions.
13241
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13243
# Compiler flag to allow reflexive dlopens.
13244
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13246
# Compiler flag to generate shared objects directly from archives.
13247
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13249
# Compiler flag to generate thread-safe objects.
13250
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13252
# Library versioning type.
13253
version_type=$version_type
13255
# Format of library name prefix.
13256
libname_spec=$lt_libname_spec
13258
# List of archive names. First name is the real one, the rest are links.
13259
# The last name is the one that the linker finds with -lNAME.
13260
library_names_spec=$lt_library_names_spec
13262
# The coded name of the library, if different from the real name.
13263
soname_spec=$lt_soname_spec
13265
# Commands used to build and install an old-style archive.
13267
old_archive_cmds=$lt_old_archive_cmds_CXX
13268
old_postinstall_cmds=$lt_old_postinstall_cmds
13269
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13271
# Create an old-style archive from a shared archive.
13272
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13274
# Create a temporary old-style archive to link instead of a shared archive.
13275
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13277
# Commands used to build and install a shared archive.
13278
archive_cmds=$lt_archive_cmds_CXX
13279
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13280
postinstall_cmds=$lt_postinstall_cmds
13281
postuninstall_cmds=$lt_postuninstall_cmds
13283
# Commands used to build a loadable module (assumed same as above if empty)
13284
module_cmds=$lt_module_cmds_CXX
13285
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13287
# Commands to strip libraries.
13288
old_striplib=$lt_old_striplib
13289
striplib=$lt_striplib
13291
# Dependencies to place before the objects being linked to create a
13293
predep_objects=$lt_predep_objects_CXX
13295
# Dependencies to place after the objects being linked to create a
13297
postdep_objects=$lt_postdep_objects_CXX
13299
# Dependencies to place before the objects being linked to create a
13301
predeps=$lt_predeps_CXX
13303
# Dependencies to place after the objects being linked to create a
13305
postdeps=$lt_postdeps_CXX
13307
# The library search path used internally by the compiler when linking
13308
# a shared library.
13309
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13311
# Method to check whether dependent libraries are shared objects.
13312
deplibs_check_method=$lt_deplibs_check_method
13314
# Command to use when deplibs_check_method == file_magic.
13315
file_magic_cmd=$lt_file_magic_cmd
13317
# Flag that allows shared libraries with undefined symbols to be built.
13318
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13320
# Flag that forces no undefined symbols.
13321
no_undefined_flag=$lt_no_undefined_flag_CXX
13323
# Commands used to finish a libtool library installation in a directory.
13324
finish_cmds=$lt_finish_cmds
13326
# Same as above, but a single script fragment to be evaled but not shown.
13327
finish_eval=$lt_finish_eval
13329
# Take the output of nm and produce a listing of raw symbols and C names.
13330
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13332
# Transform the output of nm in a proper C declaration
13333
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13335
# Transform the output of nm in a C name address pair
13336
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13338
# This is the shared library runtime path variable.
13339
runpath_var=$runpath_var
13341
# This is the shared library path variable.
13342
shlibpath_var=$shlibpath_var
13344
# Is shlibpath searched before the hard-coded library search path?
13345
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13347
# How to hardcode a shared library path into an executable.
13348
hardcode_action=$hardcode_action_CXX
13350
# Whether we should hardcode library paths into libraries.
13351
hardcode_into_libs=$hardcode_into_libs
13353
# Flag to hardcode \$libdir into a binary during linking.
13354
# This must work even if \$libdir does not exist.
13355
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13357
# If ld is used when linking, flag to hardcode \$libdir into
13358
# a binary during linking. This must work even if \$libdir does
13360
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13362
# Whether we need a single -rpath flag with a separated argument.
13363
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13365
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13366
# resulting binary.
13367
hardcode_direct=$hardcode_direct_CXX
13369
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13370
# resulting binary.
13371
hardcode_minus_L=$hardcode_minus_L_CXX
13373
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13374
# the resulting binary.
13375
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13377
# Set to yes if building a shared library automatically hardcodes DIR into the library
13378
# and all subsequent libraries and executables linked against it.
13379
hardcode_automatic=$hardcode_automatic_CXX
13381
# Variables whose values should be saved in libtool wrapper scripts and
13382
# restored at relink time.
13383
variables_saved_for_relink="$variables_saved_for_relink"
13385
# Whether libtool must link a program against all its dependency libraries.
13386
link_all_deplibs=$link_all_deplibs_CXX
13388
# Compile-time system search path for libraries
13389
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13391
# Run-time system search path for libraries
13392
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13394
# Fix the shell variable \$srcfile for the compiler.
13395
fix_srcfile_path="$fix_srcfile_path_CXX"
13397
# Set to yes if exported symbols are required.
13398
always_export_symbols=$always_export_symbols_CXX
13400
# The commands to list exported symbols.
13401
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13403
# The commands to extract the exported symbol list from a shared archive.
13404
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13406
# Symbols that should not be listed in the preloaded symbols.
13407
exclude_expsyms=$lt_exclude_expsyms_CXX
13409
# Symbols that must always be exported.
13410
include_expsyms=$lt_include_expsyms_CXX
13412
# ### END LIBTOOL TAG CONFIG: $tagname
13418
# If there is no Makefile yet, we rely on a make rule to execute
13419
# `config.status --recheck' to rerun these tests and create the
13420
# libtool script then.
13421
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13422
if test -f "$ltmain_in"; then
13423
test -f Makefile && make "$ltmain"
13429
ac_cpp='$CPP $CPPFLAGS'
13430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13438
with_gnu_ldcxx=$with_gnu_ld
13439
with_gnu_ld=$lt_save_with_gnu_ld
13440
lt_cv_path_LDCXX=$lt_cv_path_LD
13441
lt_cv_path_LD=$lt_save_path_LD
13442
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13443
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13451
if test -n "$F77" && test "X$F77" != "Xno"; then
13454
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13455
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13459
archive_cmds_need_lc_F77=no
13460
allow_undefined_flag_F77=
13461
always_export_symbols_F77=no
13462
archive_expsym_cmds_F77=
13463
export_dynamic_flag_spec_F77=
13464
hardcode_direct_F77=no
13465
hardcode_libdir_flag_spec_F77=
13466
hardcode_libdir_flag_spec_ld_F77=
13467
hardcode_libdir_separator_F77=
13468
hardcode_minus_L_F77=no
13469
hardcode_automatic_F77=no
13471
module_expsym_cmds_F77=
13472
link_all_deplibs_F77=unknown
13473
old_archive_cmds_F77=$old_archive_cmds
13474
no_undefined_flag_F77=
13475
whole_archive_flag_spec_F77=
13476
enable_shared_with_static_runtimes_F77=no
13478
# Source file extension for f77 test sources.
13481
# Object file extension for compiled f77 test sources.
13485
# Code to be used in simple compile tests
13486
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13488
# Code to be used in simple link tests
13489
lt_simple_link_test_code=" program t\n end\n"
13491
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13493
# If no C compiler was specified, use CC.
13496
# Allow CC to be a program name with arguments.
13500
# save warnings/boilerplate of simple test code
13501
ac_outfile=conftest.$ac_objext
13502
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13503
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13504
_lt_compiler_boilerplate=`cat conftest.err`
13507
ac_outfile=conftest.$ac_objext
13508
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13509
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13510
_lt_linker_boilerplate=`cat conftest.err`
13514
# Allow CC to be a program name with arguments.
13519
for cc_temp in $compiler""; do
13521
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13522
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13527
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13530
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13531
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13532
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13533
echo "${ECHO_T}$can_build_shared" >&6
13535
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13536
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13537
test "$can_build_shared" = "no" && enable_shared=no
13539
# On AIX, shared libraries and static libraries use the same namespace, and
13540
# are all built from PIC.
13543
test "$enable_shared" = yes && enable_static=no
13544
if test -n "$RANLIB"; then
13545
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13546
postinstall_cmds='$RANLIB $lib'
13550
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13551
test "$enable_shared" = yes && enable_static=no
13555
echo "$as_me:$LINENO: result: $enable_shared" >&5
13556
echo "${ECHO_T}$enable_shared" >&6
13558
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13559
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13560
# Make sure either enable_shared or enable_static is yes.
13561
test "$enable_shared" = yes || enable_static=yes
13562
echo "$as_me:$LINENO: result: $enable_static" >&5
13563
echo "${ECHO_T}$enable_static" >&6
13565
test "$ld_shlibs_F77" = no && can_build_shared=no
13570
lt_prog_compiler_wl_F77=
13571
lt_prog_compiler_pic_F77=
13572
lt_prog_compiler_static_F77=
13574
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13575
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13577
if test "$GCC" = yes; then
13578
lt_prog_compiler_wl_F77='-Wl,'
13579
lt_prog_compiler_static_F77='-static'
13583
# All AIX code is PIC.
13584
if test "$host_cpu" = ia64; then
13585
# AIX 5 now supports IA64 processor
13586
lt_prog_compiler_static_F77='-Bstatic'
13591
# FIXME: we need at least 68020 code to build shared libraries, but
13592
# adding the `-m68020' flag to GCC prevents building anything better,
13594
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13597
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13598
# PIC is the default for these OSes.
13601
mingw* | pw32* | os2*)
13602
# This hack is so that the source file can tell whether it is being
13603
# built for inclusion in a dll (and should export symbols for example).
13604
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13607
darwin* | rhapsody*)
13608
# PIC is the default on this platform
13609
# Common symbols not allowed in MH_DYLIB files
13610
lt_prog_compiler_pic_F77='-fno-common'
13614
# Just because we use GCC doesn't mean we suddenly get shared libraries
13615
# on systems that don't support them.
13616
lt_prog_compiler_can_build_shared_F77=no
13621
if test -d /usr/nec; then
13622
lt_prog_compiler_pic_F77=-Kconform_pic
13627
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13628
# not for PA HP-UX.
13634
lt_prog_compiler_pic_F77='-fPIC'
13640
lt_prog_compiler_pic_F77='-fPIC'
13644
# PORTME Check for flag to pass linker flags through the system compiler.
13647
lt_prog_compiler_wl_F77='-Wl,'
13648
if test "$host_cpu" = ia64; then
13649
# AIX 5 now supports IA64 processor
13650
lt_prog_compiler_static_F77='-Bstatic'
13652
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13656
# PIC is the default on this platform
13657
# Common symbols not allowed in MH_DYLIB files
13658
case $cc_basename in
13660
lt_prog_compiler_pic_F77='-qnocommon'
13661
lt_prog_compiler_wl_F77='-Wl,'
13666
mingw* | pw32* | os2*)
13667
# This hack is so that the source file can tell whether it is being
13668
# built for inclusion in a dll (and should export symbols for example).
13669
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13672
hpux9* | hpux10* | hpux11*)
13673
lt_prog_compiler_wl_F77='-Wl,'
13674
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13675
# not for PA HP-UX.
13681
lt_prog_compiler_pic_F77='+Z'
13684
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13685
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13688
irix5* | irix6* | nonstopux*)
13689
lt_prog_compiler_wl_F77='-Wl,'
13690
# PIC (with -KPIC) is the default.
13691
lt_prog_compiler_static_F77='-non_shared'
13695
lt_prog_compiler_pic_F77='-KPIC'
13696
lt_prog_compiler_static_F77='-Bstatic'
13700
case $cc_basename in
13702
lt_prog_compiler_wl_F77='-Wl,'
13703
lt_prog_compiler_pic_F77='-KPIC'
13704
lt_prog_compiler_static_F77='-static'
13706
pgcc* | pgf77* | pgf90* | pgf95*)
13707
# Portland Group compilers (*not* the Pentium gcc compiler,
13708
# which looks to be a dead project)
13709
lt_prog_compiler_wl_F77='-Wl,'
13710
lt_prog_compiler_pic_F77='-fpic'
13711
lt_prog_compiler_static_F77='-Bstatic'
13714
lt_prog_compiler_wl_F77='-Wl,'
13715
# All Alpha code is PIC.
13716
lt_prog_compiler_static_F77='-non_shared'
13721
osf3* | osf4* | osf5*)
13722
lt_prog_compiler_wl_F77='-Wl,'
13723
# All OSF/1 code is PIC.
13724
lt_prog_compiler_static_F77='-non_shared'
13728
lt_prog_compiler_pic_F77='-Kpic'
13729
lt_prog_compiler_static_F77='-dn'
13733
lt_prog_compiler_pic_F77='-KPIC'
13734
lt_prog_compiler_static_F77='-Bstatic'
13735
case $cc_basename in
13736
f77* | f90* | f95*)
13737
lt_prog_compiler_wl_F77='-Qoption ld ';;
13739
lt_prog_compiler_wl_F77='-Wl,';;
13744
lt_prog_compiler_wl_F77='-Qoption ld '
13745
lt_prog_compiler_pic_F77='-PIC'
13746
lt_prog_compiler_static_F77='-Bstatic'
13749
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13750
lt_prog_compiler_wl_F77='-Wl,'
13751
lt_prog_compiler_pic_F77='-KPIC'
13752
lt_prog_compiler_static_F77='-Bstatic'
13756
if test -d /usr/nec ;then
13757
lt_prog_compiler_pic_F77='-Kconform_pic'
13758
lt_prog_compiler_static_F77='-Bstatic'
13763
lt_prog_compiler_wl_F77='-Wl,'
13764
lt_prog_compiler_can_build_shared_F77=no
13768
lt_prog_compiler_pic_F77='-pic'
13769
lt_prog_compiler_static_F77='-Bstatic'
13773
lt_prog_compiler_can_build_shared_F77=no
13778
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13779
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13782
# Check to make sure the PIC flag actually works.
13784
if test -n "$lt_prog_compiler_pic_F77"; then
13786
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13787
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13788
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13789
echo $ECHO_N "(cached) $ECHO_C" >&6
13791
lt_prog_compiler_pic_works_F77=no
13792
ac_outfile=conftest.$ac_objext
13793
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13794
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13795
# Insert the option either (1) after the last *FLAGS variable, or
13796
# (2) before a word containing "conftest.", or (3) at the end.
13797
# Note that $ac_compile itself does not contain backslashes and begins
13798
# with a dollar sign (not a hyphen), so the echo should work correctly.
13799
# The option is referenced via a variable to avoid confusing sed.
13800
lt_compile=`echo "$ac_compile" | $SED \
13801
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13802
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13803
-e 's:$: $lt_compiler_flag:'`
13804
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13805
(eval "$lt_compile" 2>conftest.err)
13807
cat conftest.err >&5
13808
echo "$as_me:__oline__: \$? = $ac_status" >&5
13809
if (exit $ac_status) && test -s "$ac_outfile"; then
13810
# The compiler can only warn and ignore the option if not recognized
13811
# So say no if there are warnings other than the usual output.
13812
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13813
$SED '/^$/d' conftest.err >conftest.er2
13814
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13815
lt_prog_compiler_pic_works_F77=yes
13821
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13822
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13824
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13825
case $lt_prog_compiler_pic_F77 in
13827
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13830
lt_prog_compiler_pic_F77=
13831
lt_prog_compiler_can_build_shared_F77=no
13836
# For platforms which do not support PIC, -DPIC is meaningless:
13838
lt_prog_compiler_pic_F77=
13841
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13845
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13846
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13847
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13848
echo $ECHO_N "(cached) $ECHO_C" >&6
13850
lt_cv_prog_compiler_c_o_F77=no
13851
$rm -r conftest 2>/dev/null
13855
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13857
lt_compiler_flag="-o out/conftest2.$ac_objext"
13858
# Insert the option either (1) after the last *FLAGS variable, or
13859
# (2) before a word containing "conftest.", or (3) at the end.
13860
# Note that $ac_compile itself does not contain backslashes and begins
13861
# with a dollar sign (not a hyphen), so the echo should work correctly.
13862
lt_compile=`echo "$ac_compile" | $SED \
13863
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13864
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13865
-e 's:$: $lt_compiler_flag:'`
13866
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13867
(eval "$lt_compile" 2>out/conftest.err)
13869
cat out/conftest.err >&5
13870
echo "$as_me:__oline__: \$? = $ac_status" >&5
13871
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13873
# The compiler can only warn and ignore the option if not recognized
13874
# So say no if there are warnings
13875
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13876
$SED '/^$/d' out/conftest.err >out/conftest.er2
13877
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13878
lt_cv_prog_compiler_c_o_F77=yes
13883
# SGI C++ compiler will create directory out/ii_files/ for
13884
# template instantiation
13885
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13886
$rm out/* && rmdir out
13892
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13893
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13896
hard_links="nottested"
13897
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13898
# do not overwrite the value of need_locks provided by the user
13899
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13900
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13903
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13905
ln conftest.a conftest.b 2>&5 || hard_links=no
13906
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13907
echo "$as_me:$LINENO: result: $hard_links" >&5
13908
echo "${ECHO_T}$hard_links" >&6
13909
if test "$hard_links" = no; then
13910
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13911
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13918
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13919
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13922
allow_undefined_flag_F77=
13923
enable_shared_with_static_runtimes_F77=no
13925
archive_expsym_cmds_F77=
13926
old_archive_From_new_cmds_F77=
13927
old_archive_from_expsyms_cmds_F77=
13928
export_dynamic_flag_spec_F77=
13929
whole_archive_flag_spec_F77=
13930
thread_safe_flag_spec_F77=
13931
hardcode_libdir_flag_spec_F77=
13932
hardcode_libdir_flag_spec_ld_F77=
13933
hardcode_libdir_separator_F77=
13934
hardcode_direct_F77=no
13935
hardcode_minus_L_F77=no
13936
hardcode_shlibpath_var_F77=unsupported
13937
link_all_deplibs_F77=unknown
13938
hardcode_automatic_F77=no
13940
module_expsym_cmds_F77=
13941
always_export_symbols_F77=no
13942
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13943
# include_expsyms should be a list of space-separated symbols to be *always*
13944
# included in the symbol list
13945
include_expsyms_F77=
13946
# exclude_expsyms can be an extended regexp of symbols to exclude
13947
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13948
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13949
# as well as any symbol that contains `d'.
13950
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13951
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13952
# platforms (ab)use it in PIC code, but their linkers get confused if
13953
# the symbol is explicitly referenced. Since portable code cannot
13954
# rely on this symbol name, it's probably fine to never include it in
13955
# preloaded symbol tables.
13956
extract_expsyms_cmds=
13957
# Just being paranoid about ensuring that cc_basename is set.
13958
for cc_temp in $compiler""; do
13960
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13961
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13966
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13969
cygwin* | mingw* | pw32*)
13970
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13971
# When not using gcc, we currently assume that we are using
13972
# Microsoft Visual C++.
13973
if test "$GCC" != yes; then
13983
if test "$with_gnu_ld" = yes; then
13984
# If archive_cmds runs LD, not CC, wlarc should be empty
13987
# Set some defaults for GNU ld with shared library support. These
13988
# are reset later if shared libraries are not supported. Putting them
13989
# here allows them to be overridden if necessary.
13990
runpath_var=LD_RUN_PATH
13991
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13992
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13993
# ancient GNU ld didn't support --whole-archive et. al.
13994
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13995
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13997
whole_archive_flag_spec_F77=
13999
supports_anon_versioning=no
14000
case `$LD -v 2>/dev/null` in
14001
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14002
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14003
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14004
*\ 2.11.*) ;; # other 2.11 versions
14005
*) supports_anon_versioning=yes ;;
14008
# See if GNU ld supports shared libraries.
14010
aix3* | aix4* | aix5*)
14011
# On AIX/PPC, the GNU linker is very broken
14012
if test "$host_cpu" != ia64; then
14016
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14017
*** to be unable to reliably create shared libraries on AIX.
14018
*** Therefore, libtool is disabling shared libraries support. If you
14019
*** really care for shared libraries, you may want to modify your PATH
14020
*** so that a non-GNU linker is found, and then restart.
14027
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14028
hardcode_libdir_flag_spec_F77='-L$libdir'
14029
hardcode_minus_L_F77=yes
14031
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14032
# that the semantics of dynamic libraries on AmigaOS, at least up
14033
# to version 4, is to share data among multiple programs linked
14034
# with the same dynamic library. Since this doesn't match the
14035
# behavior of shared libraries on other platforms, we can't use
14041
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14042
allow_undefined_flag_F77=unsupported
14043
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14044
# support --undefined. This deserves some investigation. FIXME
14045
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14051
cygwin* | mingw* | pw32*)
14052
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14053
# as there is no search path for DLLs.
14054
hardcode_libdir_flag_spec_F77='-L$libdir'
14055
allow_undefined_flag_F77=unsupported
14056
always_export_symbols_F77=no
14057
enable_shared_with_static_runtimes_F77=yes
14058
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14060
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14061
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14062
# If the export-symbols file already is a .def file (1st line
14063
# is EXPORTS), use it as is; otherwise, prepend...
14064
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14065
cp $export_symbols $output_objdir/$soname.def;
14067
echo EXPORTS > $output_objdir/$soname.def;
14068
cat $export_symbols >> $output_objdir/$soname.def;
14070
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14077
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14079
case $cc_basename,$host_cpu in
14080
pgcc*) # Portland Group C compiler
14081
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14082
tmp_addflag=' $pic_flag'
14084
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14085
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14086
tmp_addflag=' $pic_flag -Mnomain' ;;
14087
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14088
tmp_addflag=' -i_dynamic' ;;
14089
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14090
tmp_addflag=' -i_dynamic -nofor_main' ;;
14091
ifc* | ifort*) # Intel Fortran compiler
14092
tmp_addflag=' -nofor_main' ;;
14094
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096
if test $supports_anon_versioning = yes; then
14097
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14098
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14099
$echo "local: *; };" >> $output_objdir/$libname.ver~
14100
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14102
link_all_deplibs_F77=no
14108
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14109
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14110
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14113
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14114
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14119
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14123
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14124
*** create shared libraries on Solaris systems. Therefore, libtool
14125
*** is disabling shared libraries support. We urge you to upgrade GNU
14126
*** binutils to release 2.9.1 or newer. Another option is to modify
14127
*** your PATH or compiler configuration so that the native linker is
14128
*** used, and then restart.
14131
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14132
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14133
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14140
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14142
hardcode_direct_F77=yes
14143
hardcode_shlibpath_var_F77=no
14147
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14148
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14156
if test "$ld_shlibs_F77" = no; then
14158
hardcode_libdir_flag_spec_F77=
14159
export_dynamic_flag_spec_F77=
14160
whole_archive_flag_spec_F77=
14163
# PORTME fill in a description of your system's linker (not GNU ld)
14166
allow_undefined_flag_F77=unsupported
14167
always_export_symbols_F77=yes
14168
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14169
# Note: this linker hardcodes the directories in LIBPATH if there
14170
# are no directories specified by -L.
14171
hardcode_minus_L_F77=yes
14172
if test "$GCC" = yes && test -z "$link_static_flag"; then
14173
# Neither direct hardcoding nor static linking is supported with a
14175
hardcode_direct_F77=unsupported
14180
if test "$host_cpu" = ia64; then
14181
# On IA64, the linker does run time linking by default, so we don't
14182
# have to do anything special.
14183
aix_use_runtimelinking=no
14184
exp_sym_flag='-Bexport'
14187
# If we're using GNU nm, then we don't want the "-C" option.
14188
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14189
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14190
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14192
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14194
aix_use_runtimelinking=no
14196
# Test if we are trying to use run time linking or normal
14197
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14198
# need to do runtime linking.
14199
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14200
for ld_flag in $LDFLAGS; do
14201
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14202
aix_use_runtimelinking=yes
14208
exp_sym_flag='-bexport'
14209
no_entry_flag='-bnoentry'
14212
# When large executables or shared objects are built, AIX ld can
14213
# have problems creating the table of contents. If linking a library
14214
# or program results in "error TOC overflow" add -mminimal-toc to
14215
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14216
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14218
archive_cmds_F77=''
14219
hardcode_direct_F77=yes
14220
hardcode_libdir_separator_F77=':'
14221
link_all_deplibs_F77=yes
14223
if test "$GCC" = yes; then
14224
case $host_os in aix4.[012]|aix4.[012].*)
14225
# We only want to do this on AIX 4.2 and lower, the check
14226
# below for broken collect2 doesn't work under 4.3+
14227
collect2name=`${CC} -print-prog-name=collect2`
14228
if test -f "$collect2name" && \
14229
strings "$collect2name" | grep resolve_lib_name >/dev/null
14231
# We have reworked collect2
14232
hardcode_direct_F77=yes
14234
# We have old collect2
14235
hardcode_direct_F77=unsupported
14236
# It fails to find uninstalled libraries when the uninstalled
14237
# path is not listed in the libpath. Setting hardcode_minus_L
14238
# to unsupported forces relinking
14239
hardcode_minus_L_F77=yes
14240
hardcode_libdir_flag_spec_F77='-L$libdir'
14241
hardcode_libdir_separator_F77=
14244
shared_flag='-shared'
14245
if test "$aix_use_runtimelinking" = yes; then
14246
shared_flag="$shared_flag "'${wl}-G'
14250
if test "$host_cpu" = ia64; then
14251
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14252
# chokes on -Wl,-G. The following line is correct:
14255
if test "$aix_use_runtimelinking" = yes; then
14256
shared_flag='${wl}-G'
14258
shared_flag='${wl}-bM:SRE'
14263
# It seems that -bexpall does not export symbols beginning with
14264
# underscore (_), so it is better to generate a list of symbols to export.
14265
always_export_symbols_F77=yes
14266
if test "$aix_use_runtimelinking" = yes; then
14267
# Warning - without using the other runtime loading flags (-brtl),
14268
# -berok will link without error, but may produce a broken library.
14269
allow_undefined_flag_F77='-berok'
14270
# Determine the default libpath from the value encoded in an empty executable.
14271
cat >conftest.$ac_ext <<_ACEOF
14276
rm -f conftest.$ac_objext conftest$ac_exeext
14277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14278
(eval $ac_link) 2>conftest.er1
14280
grep -v '^ *+' conftest.er1 >conftest.err
14282
cat conftest.err >&5
14283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284
(exit $ac_status); } &&
14285
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287
(eval $ac_try) 2>&5
14289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290
(exit $ac_status); }; } &&
14291
{ ac_try='test -s conftest$ac_exeext'
14292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293
(eval $ac_try) 2>&5
14295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296
(exit $ac_status); }; }; then
14298
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14300
# Check for a 64-bit object if we didn't find anything.
14301
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; }
14304
echo "$as_me: failed program was:" >&5
14305
sed 's/^/| /' conftest.$ac_ext >&5
14308
rm -f conftest.err conftest.$ac_objext \
14309
conftest$ac_exeext conftest.$ac_ext
14310
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14312
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14313
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14315
if test "$host_cpu" = ia64; then
14316
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14317
allow_undefined_flag_F77="-z nodefs"
14318
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14320
# Determine the default libpath from the value encoded in an empty executable.
14321
cat >conftest.$ac_ext <<_ACEOF
14326
rm -f conftest.$ac_objext conftest$ac_exeext
14327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328
(eval $ac_link) 2>conftest.er1
14330
grep -v '^ *+' conftest.er1 >conftest.err
14332
cat conftest.err >&5
14333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334
(exit $ac_status); } &&
14335
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337
(eval $ac_try) 2>&5
14339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340
(exit $ac_status); }; } &&
14341
{ ac_try='test -s conftest$ac_exeext'
14342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343
(eval $ac_try) 2>&5
14345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346
(exit $ac_status); }; }; then
14348
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14350
# Check for a 64-bit object if we didn't find anything.
14351
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; }
14354
echo "$as_me: failed program was:" >&5
14355
sed 's/^/| /' conftest.$ac_ext >&5
14358
rm -f conftest.err conftest.$ac_objext \
14359
conftest$ac_exeext conftest.$ac_ext
14360
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14362
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14363
# Warning - without using the other run time loading flags,
14364
# -berok will link without error, but may produce a broken library.
14365
no_undefined_flag_F77=' ${wl}-bernotok'
14366
allow_undefined_flag_F77=' ${wl}-berok'
14367
# -bexpall does not export symbols beginning with underscore (_)
14368
always_export_symbols_F77=yes
14369
# Exported symbols can be pulled into shared objects from archives
14370
whole_archive_flag_spec_F77=' '
14371
archive_cmds_need_lc_F77=yes
14372
# This is similar to how AIX traditionally builds its shared libraries.
14373
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14379
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14380
hardcode_libdir_flag_spec_F77='-L$libdir'
14381
hardcode_minus_L_F77=yes
14382
# see comment about different semantics on the GNU ld section
14387
export_dynamic_flag_spec_F77=-rdynamic
14390
cygwin* | mingw* | pw32*)
14391
# When not using gcc, we currently assume that we are using
14392
# Microsoft Visual C++.
14393
# hardcode_libdir_flag_spec is actually meaningless, as there is
14394
# no search path for DLLs.
14395
hardcode_libdir_flag_spec_F77=' '
14396
allow_undefined_flag_F77=unsupported
14397
# Tell ltmain to make .lib files, not .a files.
14399
# Tell ltmain to make .dll files, not .so files.
14401
# FIXME: Setting linknames here is a bad hack.
14402
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14403
# The linker will automatically build a .lib file if we build a DLL.
14404
old_archive_From_new_cmds_F77='true'
14405
# FIXME: Should let the user specify the lib program.
14406
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14407
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14408
enable_shared_with_static_runtimes_F77=yes
14411
darwin* | rhapsody*)
14413
rhapsody* | darwin1.[012])
14414
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14417
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14418
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14420
case ${MACOSX_DEPLOYMENT_TARGET} in
14422
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14425
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14431
archive_cmds_need_lc_F77=no
14432
hardcode_direct_F77=no
14433
hardcode_automatic_F77=yes
14434
hardcode_shlibpath_var_F77=unsupported
14435
whole_archive_flag_spec_F77=''
14436
link_all_deplibs_F77=yes
14437
if test "$GCC" = yes ; then
14438
output_verbose_link_cmd='echo'
14439
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14440
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14441
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14442
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14443
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14445
case $cc_basename in
14447
output_verbose_link_cmd='echo'
14448
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14449
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14450
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14451
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14452
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14462
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463
hardcode_libdir_flag_spec_F77='-L$libdir'
14464
hardcode_shlibpath_var_F77=no
14471
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14472
# support. Future versions do this automatically, but an explicit c++rt0.o
14473
# does not break anything, and helps significantly (at the cost of a little
14476
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14477
hardcode_libdir_flag_spec_F77='-R$libdir'
14478
hardcode_direct_F77=yes
14479
hardcode_shlibpath_var_F77=no
14482
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14484
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14485
hardcode_direct_F77=yes
14486
hardcode_minus_L_F77=yes
14487
hardcode_shlibpath_var_F77=no
14490
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14491
freebsd* | kfreebsd*-gnu | dragonfly*)
14492
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14493
hardcode_libdir_flag_spec_F77='-R$libdir'
14494
hardcode_direct_F77=yes
14495
hardcode_shlibpath_var_F77=no
14499
if test "$GCC" = yes; then
14500
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14502
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14504
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14505
hardcode_libdir_separator_F77=:
14506
hardcode_direct_F77=yes
14508
# hardcode_minus_L: Not really in the search PATH,
14509
# but as the default location of the library.
14510
hardcode_minus_L_F77=yes
14511
export_dynamic_flag_spec_F77='${wl}-E'
14515
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14518
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14521
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14527
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14530
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14534
if test "$with_gnu_ld" = no; then
14537
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14538
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14539
hardcode_libdir_separator_F77=:
14540
hardcode_direct_F77=no
14541
hardcode_shlibpath_var_F77=no
14544
hardcode_libdir_flag_spec_F77='-L$libdir'
14545
hardcode_direct_F77=no
14546
hardcode_shlibpath_var_F77=no
14548
# hardcode_minus_L: Not really in the search PATH,
14549
# but as the default location of the library.
14550
hardcode_minus_L_F77=yes
14553
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14554
hardcode_libdir_separator_F77=:
14555
hardcode_direct_F77=yes
14556
export_dynamic_flag_spec_F77='${wl}-E'
14558
# hardcode_minus_L: Not really in the search PATH,
14559
# but as the default location of the library.
14560
hardcode_minus_L_F77=yes
14566
irix5* | irix6* | nonstopux*)
14567
if test "$GCC" = yes; then
14568
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14570
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14571
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14573
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14574
hardcode_libdir_separator_F77=:
14575
link_all_deplibs_F77=yes
14578
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14579
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14580
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14582
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14584
hardcode_libdir_flag_spec_F77='-R$libdir'
14585
hardcode_direct_F77=yes
14586
hardcode_shlibpath_var_F77=no
14590
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14591
hardcode_direct_F77=yes
14592
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14593
hardcode_libdir_separator_F77=:
14594
hardcode_shlibpath_var_F77=no
14598
hardcode_direct_F77=yes
14599
hardcode_shlibpath_var_F77=no
14600
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14601
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14602
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14603
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14604
export_dynamic_flag_spec_F77='${wl}-E'
14607
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14608
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14609
hardcode_libdir_flag_spec_F77='-R$libdir'
14612
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14613
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14620
hardcode_libdir_flag_spec_F77='-L$libdir'
14621
hardcode_minus_L_F77=yes
14622
allow_undefined_flag_F77=unsupported
14623
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14624
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14628
if test "$GCC" = yes; then
14629
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14630
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14632
allow_undefined_flag_F77=' -expect_unresolved \*'
14633
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14635
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14636
hardcode_libdir_separator_F77=:
14639
osf4* | osf5*) # as osf3* with the addition of -msym flag
14640
if test "$GCC" = yes; then
14641
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14642
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14643
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14645
allow_undefined_flag_F77=' -expect_unresolved \*'
14646
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14647
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14648
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14650
# Both c and cxx compiler support -rpath directly
14651
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14653
hardcode_libdir_separator_F77=:
14657
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658
hardcode_shlibpath_var_F77=no
14659
export_dynamic_flag_spec_F77='${wl}-Bexport'
14660
runpath_var=LD_RUN_PATH
14661
hardcode_runpath_var=yes
14665
no_undefined_flag_F77=' -z text'
14666
if test "$GCC" = yes; then
14668
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14669
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14670
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14673
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14675
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14677
hardcode_libdir_flag_spec_F77='-R$libdir'
14678
hardcode_shlibpath_var_F77=no
14680
solaris2.[0-5] | solaris2.[0-5].*) ;;
14682
# The compiler driver will combine linker options so we
14683
# cannot just pass the convience library names through
14684
# without $wl, iff we do not link with $LD.
14685
# Luckily, gcc supports the same syntax we need for Sun Studio.
14686
# Supported since Solaris 2.6 (maybe 2.5.1?)
14689
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14691
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14694
link_all_deplibs_F77=yes
14698
if test "x$host_vendor" = xsequent; then
14699
# Use $CC to link under sequent, because it throws in some extra .o
14700
# files that make .init and .fini sections work.
14701
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14703
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14705
hardcode_libdir_flag_spec_F77='-L$libdir'
14706
hardcode_direct_F77=yes
14707
hardcode_minus_L_F77=yes
14708
hardcode_shlibpath_var_F77=no
14712
case $host_vendor in
14714
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715
hardcode_direct_F77=yes # is this really true???
14718
## LD is ld it makes a PLAMLIB
14719
## CC just makes a GrossModule.
14720
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14721
reload_cmds_F77='$CC -r -o $output$reload_objs'
14722
hardcode_direct_F77=no
14725
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14726
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14729
runpath_var='LD_RUN_PATH'
14730
hardcode_shlibpath_var_F77=no
14734
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735
hardcode_shlibpath_var_F77=no
14736
export_dynamic_flag_spec_F77='-Bexport'
14740
if test -d /usr/nec; then
14741
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14742
hardcode_shlibpath_var_F77=no
14743
runpath_var=LD_RUN_PATH
14744
hardcode_runpath_var=yes
14750
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14751
hardcode_direct_F77=yes
14752
hardcode_minus_L_F77=no
14753
hardcode_shlibpath_var_F77=no
14754
hardcode_runpath_var=yes
14755
runpath_var=LD_RUN_PATH
14758
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14759
no_undefined_flag_F77='${wl}-z ${wl}text'
14760
if test "$GCC" = yes; then
14761
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14763
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14765
runpath_var='LD_RUN_PATH'
14766
hardcode_shlibpath_var_F77=no
14770
no_undefined_flag_F77=' -z text'
14771
# $CC -shared without GNU ld will not create a library from C++
14772
# object files and a static libstdc++, better avoid it by now
14773
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14774
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14775
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14776
hardcode_libdir_flag_spec_F77=
14777
hardcode_shlibpath_var_F77=no
14778
runpath_var='LD_RUN_PATH'
14782
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783
hardcode_libdir_flag_spec_F77='-L$libdir'
14784
hardcode_shlibpath_var_F77=no
14793
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14794
echo "${ECHO_T}$ld_shlibs_F77" >&6
14795
test "$ld_shlibs_F77" = no && can_build_shared=no
14797
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14798
if test "$GCC" = yes; then
14799
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14803
# Do we need to explicitly link libc?
14805
case "x$archive_cmds_need_lc_F77" in
14807
# Assume -lc should be added
14808
archive_cmds_need_lc_F77=yes
14810
if test "$enable_shared" = yes && test "$GCC" = yes; then
14811
case $archive_cmds_F77 in
14813
# FIXME: we may have to deal with multi-command sequences.
14816
# Test whether the compiler implicitly links with -lc since on some
14817
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14818
# to ld, don't add -lc before -lgcc.
14819
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14820
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14822
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825
(eval $ac_compile) 2>&5
14827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828
(exit $ac_status); } 2>conftest.err; then
14831
libobjs=conftest.$ac_objext
14833
wl=$lt_prog_compiler_wl_F77
14839
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14840
allow_undefined_flag_F77=
14841
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14842
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845
(exit $ac_status); }
14847
archive_cmds_need_lc_F77=no
14849
archive_cmds_need_lc_F77=yes
14851
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14853
cat conftest.err 1>&5
14856
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14857
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14864
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14865
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14866
library_names_spec=
14867
libname_spec='lib$name'
14871
postuninstall_cmds=
14875
shlibpath_overrides_runpath=unknown
14877
dynamic_linker="$host_os ld.so"
14878
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14879
if test "$GCC" = yes; then
14880
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14881
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14882
# if the path contains ";" then we assume it to be the separator
14883
# otherwise default to the standard path separator (i.e. ":") - it is
14884
# assumed that no part of a normal pathname contains ";" but that should
14885
# okay in the real world where ";" in dirpaths is itself problematic.
14886
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14888
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14891
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14893
need_lib_prefix=unknown
14894
hardcode_into_libs=no
14896
# when you set need_version to no, make sure it does not cause -set_version
14897
# flags to be left without arguments
14898
need_version=unknown
14903
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14904
shlibpath_var=LIBPATH
14906
# AIX 3 has no versioning support, so we append a major version to the name.
14907
soname_spec='${libname}${release}${shared_ext}$major'
14914
hardcode_into_libs=yes
14915
if test "$host_cpu" = ia64; then
14916
# AIX 5 supports IA64
14917
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14918
shlibpath_var=LD_LIBRARY_PATH
14920
# With GCC up to 2.95.x, collect2 would create an import file
14921
# for dependence libraries. The import file would start with
14922
# the line `#! .'. This would cause the generated library to
14923
# depend on `.', always an invalid library. This was fixed in
14924
# development snapshots of GCC prior to 3.0.
14926
aix4 | aix4.[01] | aix4.[01].*)
14927
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14929
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14932
can_build_shared=no
14936
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14937
# soname into executable. Probably we can add versioning support to
14938
# collect2, so additional links can be useful in future.
14939
if test "$aix_use_runtimelinking" = yes; then
14940
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14941
# instead of lib<name>.a to let people know that these are not
14942
# typical AIX shared libraries.
14943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945
# We preserve .a as extension for shared libraries through AIX4.2
14946
# and later when we are not doing run time linking.
14947
library_names_spec='${libname}${release}.a $libname.a'
14948
soname_spec='${libname}${release}${shared_ext}$major'
14950
shlibpath_var=LIBPATH
14955
library_names_spec='$libname.ixlibrary $libname.a'
14956
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14957
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'
14961
library_names_spec='${libname}${shared_ext}'
14962
dynamic_linker="$host_os ld.so"
14963
shlibpath_var=LIBRARY_PATH
14969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970
soname_spec='${libname}${release}${shared_ext}$major'
14971
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14972
shlibpath_var=LD_LIBRARY_PATH
14973
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14974
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14975
# the default ld.so.conf also contains /usr/contrib/lib and
14976
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14977
# libtool to hard-code these into programs
14980
cygwin* | mingw* | pw32*)
14981
version_type=windows
14986
case $GCC,$host_os in
14987
yes,cygwin* | yes,mingw* | yes,pw32*)
14988
library_names_spec='$libname.dll.a'
14989
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14990
postinstall_cmds='base_file=`basename \${file}`~
14991
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14992
dldir=$destdir/`dirname \$dlpath`~
14993
test -d \$dldir || mkdir -p \$dldir~
14994
$install_prog $dir/$dlname \$dldir/$dlname~
14995
chmod a+x \$dldir/$dlname'
14996
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14997
dlpath=$dir/\$dldll~
14999
shlibpath_overrides_runpath=yes
15003
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15004
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15005
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15008
# MinGW DLLs use traditional 'lib' prefix
15009
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15010
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15011
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15012
# It is most probably a Windows format PATH printed by
15013
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15014
# path with ; separators, and with drive letters. We can handle the
15015
# drive letters (cygwin fileutils understands them), so leave them,
15016
# especially as we might pass files found there to a mingw objdump,
15017
# which wouldn't understand a cygwinified path. Ahh.
15018
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15020
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15024
# pw32 DLLs use 'pw' prefix rather than 'lib'
15025
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15031
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15034
dynamic_linker='Win32 ld.exe'
15035
# FIXME: first we should search . and the directory the executable is in
15039
darwin* | rhapsody*)
15040
dynamic_linker="$host_os dyld"
15041
version_type=darwin
15044
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15045
soname_spec='${libname}${release}${major}$shared_ext'
15046
shlibpath_overrides_runpath=yes
15047
shlibpath_var=DYLD_LIBRARY_PATH
15048
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15049
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15050
if test "$GCC" = yes; then
15051
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15053
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15055
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15063
soname_spec='${libname}${release}${shared_ext}$major'
15064
shlibpath_var=LD_LIBRARY_PATH
15075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076
soname_spec='${libname}${release}${shared_ext}$major'
15077
shlibpath_var=LD_LIBRARY_PATH
15078
shlibpath_overrides_runpath=no
15079
hardcode_into_libs=yes
15080
dynamic_linker='GNU ld.so'
15083
freebsd* | dragonfly*)
15084
# DragonFly does not have aout. When/if they implement a new
15085
# versioning mechanism, adjust this.
15086
if test -x /usr/bin/objformat; then
15087
objformat=`/usr/bin/objformat`
15090
freebsd[123]*) objformat=aout ;;
15091
*) objformat=elf ;;
15094
version_type=freebsd-$objformat
15095
case $version_type in
15097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15102
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15106
shlibpath_var=LD_LIBRARY_PATH
15109
shlibpath_overrides_runpath=yes
15111
freebsd3.[01]* | freebsdelf3.[01]*)
15112
shlibpath_overrides_runpath=yes
15113
hardcode_into_libs=yes
15116
shlibpath_overrides_runpath=no
15117
hardcode_into_libs=yes
15126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15127
soname_spec='${libname}${release}${shared_ext}$major'
15128
shlibpath_var=LD_LIBRARY_PATH
15129
hardcode_into_libs=yes
15132
hpux9* | hpux10* | hpux11*)
15133
# Give a soname corresponding to the major version so that dld.sl refuses to
15134
# link against other versions.
15141
hardcode_into_libs=yes
15142
dynamic_linker="$host_os dld.so"
15143
shlibpath_var=LD_LIBRARY_PATH
15144
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146
soname_spec='${libname}${release}${shared_ext}$major'
15147
if test "X$HPUX_IA64_MODE" = X32; then
15148
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15150
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15152
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15156
hardcode_into_libs=yes
15157
dynamic_linker="$host_os dld.sl"
15158
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15159
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161
soname_spec='${libname}${release}${shared_ext}$major'
15162
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15163
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15167
dynamic_linker="$host_os dld.sl"
15168
shlibpath_var=SHLIB_PATH
15169
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171
soname_spec='${libname}${release}${shared_ext}$major'
15174
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15175
postinstall_cmds='chmod 555 $lib'
15178
irix5* | irix6* | nonstopux*)
15180
nonstopux*) version_type=nonstopux ;;
15182
if test "$lt_cv_prog_gnu_ld" = yes; then
15190
soname_spec='${libname}${release}${shared_ext}$major'
15191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15193
irix5* | nonstopux*)
15194
libsuff= shlibsuff=
15197
case $LD in # libtool.m4 will add one of these switches to LD
15198
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15199
libsuff= shlibsuff= libmagic=32-bit;;
15200
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15201
libsuff=32 shlibsuff=N32 libmagic=N32;;
15202
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15203
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15204
*) libsuff= shlibsuff= libmagic=never-match;;
15208
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15209
shlibpath_overrides_runpath=no
15210
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15211
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15212
hardcode_into_libs=yes
15215
# No shared lib support for Linux oldld, aout, or coff.
15216
linux*oldld* | linux*aout* | linux*coff*)
15220
# This must be Linux ELF.
15225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226
soname_spec='${libname}${release}${shared_ext}$major'
15227
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15228
shlibpath_var=LD_LIBRARY_PATH
15229
shlibpath_overrides_runpath=no
15230
# This implies no fast_install, which is unacceptable.
15231
# Some rework will be needed to allow for fast_install
15232
# before this can be enabled.
15233
hardcode_into_libs=yes
15235
# Append ld.so.conf contents to the search path
15236
if test -f /etc/ld.so.conf; then
15237
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15238
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15241
# We used to test for /lib/ld.so.1 and disable shared libraries on
15242
# powerpc, because MkLinux only supported shared libraries with the
15243
# GNU dynamic linker. Since this was broken with cross compilers,
15244
# most powerpc-linux boxes support dynamic linking these days and
15245
# people can always --disable-shared, the test was removed, and we
15246
# assume the GNU/Linux dynamic linker is in use.
15247
dynamic_linker='GNU/Linux ld.so'
15254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15255
soname_spec='${libname}${release}${shared_ext}$major'
15256
shlibpath_var=LD_LIBRARY_PATH
15257
shlibpath_overrides_runpath=no
15258
hardcode_into_libs=yes
15259
dynamic_linker='NetBSD ld.elf_so'
15266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15267
soname_spec='${libname}${release}${shared_ext}$major'
15268
shlibpath_var=LD_LIBRARY_PATH
15269
shlibpath_overrides_runpath=no
15270
hardcode_into_libs=yes
15271
dynamic_linker='GNU ld.so'
15278
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15280
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15281
dynamic_linker='NetBSD (a.out) ld.so'
15283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15284
soname_spec='${libname}${release}${shared_ext}$major'
15285
dynamic_linker='NetBSD ld.elf_so'
15287
shlibpath_var=LD_LIBRARY_PATH
15288
shlibpath_overrides_runpath=yes
15289
hardcode_into_libs=yes
15294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295
shlibpath_var=LD_LIBRARY_PATH
15296
shlibpath_overrides_runpath=yes
15303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15304
soname_spec='${libname}${release}${shared_ext}$major'
15305
shlibpath_var=LD_LIBRARY_PATH
15306
shlibpath_overrides_runpath=yes
15312
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15314
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15315
*) need_version=no ;;
15317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15318
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15319
shlibpath_var=LD_LIBRARY_PATH
15320
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15322
openbsd2.[89] | openbsd2.[89].*)
15323
shlibpath_overrides_runpath=no
15326
shlibpath_overrides_runpath=yes
15330
shlibpath_overrides_runpath=yes
15335
libname_spec='$name'
15338
library_names_spec='$libname${shared_ext} $libname.a'
15339
dynamic_linker='OS/2 ld.exe'
15340
shlibpath_var=LIBPATH
15343
osf3* | osf4* | osf5*)
15347
soname_spec='${libname}${release}${shared_ext}$major'
15348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349
shlibpath_var=LD_LIBRARY_PATH
15350
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15351
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15356
soname_spec='${libname}${release}${shared_ext}$major'
15357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358
shlibpath_var=LD_LIBRARY_PATH
15365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366
soname_spec='${libname}${release}${shared_ext}$major'
15367
shlibpath_var=LD_LIBRARY_PATH
15368
shlibpath_overrides_runpath=yes
15369
hardcode_into_libs=yes
15370
# ldd complains unless libraries are executable
15371
postinstall_cmds='chmod +x $lib'
15376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15377
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15378
shlibpath_var=LD_LIBRARY_PATH
15379
shlibpath_overrides_runpath=yes
15380
if test "$with_gnu_ld" = yes; then
15386
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389
soname_spec='${libname}${release}${shared_ext}$major'
15390
shlibpath_var=LD_LIBRARY_PATH
15391
case $host_vendor in
15393
shlibpath_overrides_runpath=no
15395
export_dynamic_flag_spec='${wl}-Blargedynsym'
15396
runpath_var=LD_RUN_PATH
15404
shlibpath_overrides_runpath=no
15405
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15411
if test -d /usr/nec ;then
15413
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15414
soname_spec='$libname${shared_ext}.$major'
15415
shlibpath_var=LD_LIBRARY_PATH
15421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422
soname_spec='${libname}${release}${shared_ext}$major'
15423
shlibpath_var=LD_LIBRARY_PATH
15430
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15431
echo "${ECHO_T}$dynamic_linker" >&6
15432
test "$dynamic_linker" = no && can_build_shared=no
15434
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15435
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15436
hardcode_action_F77=
15437
if test -n "$hardcode_libdir_flag_spec_F77" || \
15438
test -n "$runpath_var_F77" || \
15439
test "X$hardcode_automatic_F77" = "Xyes" ; then
15441
# We can hardcode non-existant directories.
15442
if test "$hardcode_direct_F77" != no &&
15443
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15444
# have to relink, otherwise we might link with an installed library
15445
# when we should be linking with a yet-to-be-installed one
15446
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15447
test "$hardcode_minus_L_F77" != no; then
15448
# Linking always hardcodes the temporary library directory.
15449
hardcode_action_F77=relink
15451
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15452
hardcode_action_F77=immediate
15455
# We cannot hardcode anything, or else we can only hardcode existing
15457
hardcode_action_F77=unsupported
15459
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15460
echo "${ECHO_T}$hardcode_action_F77" >&6
15462
if test "$hardcode_action_F77" = relink; then
15463
# Fast installation is not supported
15464
enable_fast_install=no
15465
elif test "$shlibpath_overrides_runpath" = yes ||
15466
test "$enable_shared" = no; then
15467
# Fast installation is not necessary
15468
enable_fast_install=needless
15473
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15474
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15475
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15476
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15477
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15478
echo "$as_me:$LINENO: result: yes" >&5
15479
echo "${ECHO_T}yes" >&6
15481
# FIXME - insert some real tests, host_os isn't really good enough
15484
if test -n "$STRIP" ; then
15485
striplib="$STRIP -x"
15486
echo "$as_me:$LINENO: result: yes" >&5
15487
echo "${ECHO_T}yes" >&6
15489
echo "$as_me:$LINENO: result: no" >&5
15490
echo "${ECHO_T}no" >&6
15494
echo "$as_me:$LINENO: result: no" >&5
15495
echo "${ECHO_T}no" >&6
15502
# The else clause should only fire when bootstrapping the
15503
# libtool distribution, otherwise you forgot to ship ltmain.sh
15504
# with your package, and you will get complaints that there are
15505
# no rules to generate ltmain.sh.
15506
if test -f "$ltmain"; then
15507
# See if we are running on zsh, and set the options which allow our commands through
15508
# without removal of \ escapes.
15509
if test -n "${ZSH_VERSION+set}" ; then
15510
setopt NO_GLOB_SUBST
15512
# Now quote all the things that may contain metacharacters while being
15513
# careful not to overquote the AC_SUBSTed values. We take copies of the
15514
# variables and quote the copies for generation of the libtool script.
15515
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15517
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15518
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15519
deplibs_check_method reload_flag reload_cmds need_locks \
15520
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15521
lt_cv_sys_global_symbol_to_c_name_address \
15522
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15523
old_postinstall_cmds old_postuninstall_cmds \
15527
lt_prog_compiler_wl_F77 \
15528
lt_prog_compiler_pic_F77 \
15529
lt_prog_compiler_static_F77 \
15530
lt_prog_compiler_no_builtin_flag_F77 \
15531
export_dynamic_flag_spec_F77 \
15532
thread_safe_flag_spec_F77 \
15533
whole_archive_flag_spec_F77 \
15534
enable_shared_with_static_runtimes_F77 \
15535
old_archive_cmds_F77 \
15536
old_archive_from_new_cmds_F77 \
15537
predep_objects_F77 \
15538
postdep_objects_F77 \
15541
compiler_lib_search_path_F77 \
15543
archive_expsym_cmds_F77 \
15544
postinstall_cmds_F77 \
15545
postuninstall_cmds_F77 \
15546
old_archive_from_expsyms_cmds_F77 \
15547
allow_undefined_flag_F77 \
15548
no_undefined_flag_F77 \
15549
export_symbols_cmds_F77 \
15550
hardcode_libdir_flag_spec_F77 \
15551
hardcode_libdir_flag_spec_ld_F77 \
15552
hardcode_libdir_separator_F77 \
15553
hardcode_automatic_F77 \
15555
module_expsym_cmds_F77 \
15556
lt_cv_prog_compiler_c_o_F77 \
15557
exclude_expsyms_F77 \
15558
include_expsyms_F77; do
15561
old_archive_cmds_F77 | \
15562
old_archive_from_new_cmds_F77 | \
15563
archive_cmds_F77 | \
15564
archive_expsym_cmds_F77 | \
15565
module_cmds_F77 | \
15566
module_expsym_cmds_F77 | \
15567
old_archive_from_expsyms_cmds_F77 | \
15568
export_symbols_cmds_F77 | \
15569
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15570
postinstall_cmds | postuninstall_cmds | \
15571
old_postinstall_cmds | old_postuninstall_cmds | \
15572
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15573
# Double-quote double-evaled strings.
15574
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15577
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15583
*'\$0 --fallback-echo"')
15584
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15590
cat <<__EOF__ >> "$cfgfile"
15591
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15593
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15595
# Shell to use when invoking shell scripts.
15598
# Whether or not to build shared libraries.
15599
build_libtool_libs=$enable_shared
15601
# Whether or not to build static libraries.
15602
build_old_libs=$enable_static
15604
# Whether or not to add -lc for building shared libraries.
15605
build_libtool_need_lc=$archive_cmds_need_lc_F77
15607
# Whether or not to disallow shared libs when runtime libs are static
15608
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15610
# Whether or not to optimize for fast installation.
15611
fast_install=$enable_fast_install
15614
host_alias=$host_alias
15618
# The build system.
15619
build_alias=$build_alias
15623
# An echo program that does not interpret backslashes.
15628
AR_FLAGS=$lt_AR_FLAGS
15633
# A language-specific compiler.
15634
CC=$lt_compiler_F77
15636
# Is the compiler the GNU C compiler?
15642
# The linker used to build libraries.
15645
# Whether we need hard or soft links.
15648
# A BSD-compatible nm program.
15651
# A symbol stripping program
15654
# Used to examine libraries when file_magic_cmd begins "file"
15655
MAGIC_CMD=$MAGIC_CMD
15657
# Used on cygwin: DLL creation program.
15660
# Used on cygwin: object dumper.
15663
# Used on cygwin: assembler.
15666
# The name of the directory that contains temporary libtool files.
15669
# How to create reloadable object files.
15670
reload_flag=$lt_reload_flag
15671
reload_cmds=$lt_reload_cmds
15673
# How to pass a linker flag through the compiler.
15674
wl=$lt_lt_prog_compiler_wl_F77
15676
# Object file suffix (normally "o").
15677
objext="$ac_objext"
15679
# Old archive suffix (normally "a").
15682
# Shared library suffix (normally ".so").
15683
shrext_cmds='$shrext_cmds'
15685
# Executable file suffix (normally "").
15688
# Additional compiler flags for building library objects.
15689
pic_flag=$lt_lt_prog_compiler_pic_F77
15692
# What is the maximum length of a command?
15693
max_cmd_len=$lt_cv_sys_max_cmd_len
15695
# Does compiler simultaneously support -c and -o options?
15696
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15698
# Must we lock files when doing compilation?
15699
need_locks=$lt_need_locks
15701
# Do we need the lib prefix for modules?
15702
need_lib_prefix=$need_lib_prefix
15704
# Do we need a version for libraries?
15705
need_version=$need_version
15707
# Whether dlopen is supported.
15708
dlopen_support=$enable_dlopen
15710
# Whether dlopen of programs is supported.
15711
dlopen_self=$enable_dlopen_self
15713
# Whether dlopen of statically linked programs is supported.
15714
dlopen_self_static=$enable_dlopen_self_static
15716
# Compiler flag to prevent dynamic linking.
15717
link_static_flag=$lt_lt_prog_compiler_static_F77
15719
# Compiler flag to turn off builtin functions.
15720
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15722
# Compiler flag to allow reflexive dlopens.
15723
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15725
# Compiler flag to generate shared objects directly from archives.
15726
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15728
# Compiler flag to generate thread-safe objects.
15729
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15731
# Library versioning type.
15732
version_type=$version_type
15734
# Format of library name prefix.
15735
libname_spec=$lt_libname_spec
15737
# List of archive names. First name is the real one, the rest are links.
15738
# The last name is the one that the linker finds with -lNAME.
15739
library_names_spec=$lt_library_names_spec
15741
# The coded name of the library, if different from the real name.
15742
soname_spec=$lt_soname_spec
15744
# Commands used to build and install an old-style archive.
15746
old_archive_cmds=$lt_old_archive_cmds_F77
15747
old_postinstall_cmds=$lt_old_postinstall_cmds
15748
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15750
# Create an old-style archive from a shared archive.
15751
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15753
# Create a temporary old-style archive to link instead of a shared archive.
15754
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15756
# Commands used to build and install a shared archive.
15757
archive_cmds=$lt_archive_cmds_F77
15758
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15759
postinstall_cmds=$lt_postinstall_cmds
15760
postuninstall_cmds=$lt_postuninstall_cmds
15762
# Commands used to build a loadable module (assumed same as above if empty)
15763
module_cmds=$lt_module_cmds_F77
15764
module_expsym_cmds=$lt_module_expsym_cmds_F77
15766
# Commands to strip libraries.
15767
old_striplib=$lt_old_striplib
15768
striplib=$lt_striplib
15770
# Dependencies to place before the objects being linked to create a
15772
predep_objects=$lt_predep_objects_F77
15774
# Dependencies to place after the objects being linked to create a
15776
postdep_objects=$lt_postdep_objects_F77
15778
# Dependencies to place before the objects being linked to create a
15780
predeps=$lt_predeps_F77
15782
# Dependencies to place after the objects being linked to create a
15784
postdeps=$lt_postdeps_F77
15786
# The library search path used internally by the compiler when linking
15787
# a shared library.
15788
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15790
# Method to check whether dependent libraries are shared objects.
15791
deplibs_check_method=$lt_deplibs_check_method
15793
# Command to use when deplibs_check_method == file_magic.
15794
file_magic_cmd=$lt_file_magic_cmd
15796
# Flag that allows shared libraries with undefined symbols to be built.
15797
allow_undefined_flag=$lt_allow_undefined_flag_F77
15799
# Flag that forces no undefined symbols.
15800
no_undefined_flag=$lt_no_undefined_flag_F77
15802
# Commands used to finish a libtool library installation in a directory.
15803
finish_cmds=$lt_finish_cmds
15805
# Same as above, but a single script fragment to be evaled but not shown.
15806
finish_eval=$lt_finish_eval
15808
# Take the output of nm and produce a listing of raw symbols and C names.
15809
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15811
# Transform the output of nm in a proper C declaration
15812
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15814
# Transform the output of nm in a C name address pair
15815
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15817
# This is the shared library runtime path variable.
15818
runpath_var=$runpath_var
15820
# This is the shared library path variable.
15821
shlibpath_var=$shlibpath_var
15823
# Is shlibpath searched before the hard-coded library search path?
15824
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15826
# How to hardcode a shared library path into an executable.
15827
hardcode_action=$hardcode_action_F77
15829
# Whether we should hardcode library paths into libraries.
15830
hardcode_into_libs=$hardcode_into_libs
15832
# Flag to hardcode \$libdir into a binary during linking.
15833
# This must work even if \$libdir does not exist.
15834
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15836
# If ld is used when linking, flag to hardcode \$libdir into
15837
# a binary during linking. This must work even if \$libdir does
15839
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15841
# Whether we need a single -rpath flag with a separated argument.
15842
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15844
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15845
# resulting binary.
15846
hardcode_direct=$hardcode_direct_F77
15848
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15849
# resulting binary.
15850
hardcode_minus_L=$hardcode_minus_L_F77
15852
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15853
# the resulting binary.
15854
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15856
# Set to yes if building a shared library automatically hardcodes DIR into the library
15857
# and all subsequent libraries and executables linked against it.
15858
hardcode_automatic=$hardcode_automatic_F77
15860
# Variables whose values should be saved in libtool wrapper scripts and
15861
# restored at relink time.
15862
variables_saved_for_relink="$variables_saved_for_relink"
15864
# Whether libtool must link a program against all its dependency libraries.
15865
link_all_deplibs=$link_all_deplibs_F77
15867
# Compile-time system search path for libraries
15868
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15870
# Run-time system search path for libraries
15871
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15873
# Fix the shell variable \$srcfile for the compiler.
15874
fix_srcfile_path="$fix_srcfile_path_F77"
15876
# Set to yes if exported symbols are required.
15877
always_export_symbols=$always_export_symbols_F77
15879
# The commands to list exported symbols.
15880
export_symbols_cmds=$lt_export_symbols_cmds_F77
15882
# The commands to extract the exported symbol list from a shared archive.
15883
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15885
# Symbols that should not be listed in the preloaded symbols.
15886
exclude_expsyms=$lt_exclude_expsyms_F77
15888
# Symbols that must always be exported.
15889
include_expsyms=$lt_include_expsyms_F77
15891
# ### END LIBTOOL TAG CONFIG: $tagname
15897
# If there is no Makefile yet, we rely on a make rule to execute
15898
# `config.status --recheck' to rerun these tests and create the
15899
# libtool script then.
15900
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15901
if test -f "$ltmain_in"; then
15902
test -f Makefile && make "$ltmain"
15908
ac_cpp='$CPP $CPPFLAGS'
15909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15921
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15925
# Source file extension for Java test sources.
15928
# Object file extension for compiled Java test sources.
15932
# Code to be used in simple compile tests
15933
lt_simple_compile_test_code="class foo {}\n"
15935
# Code to be used in simple link tests
15936
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15938
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15940
# If no C compiler was specified, use CC.
15943
# Allow CC to be a program name with arguments.
15947
# save warnings/boilerplate of simple test code
15948
ac_outfile=conftest.$ac_objext
15949
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15950
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15951
_lt_compiler_boilerplate=`cat conftest.err`
15954
ac_outfile=conftest.$ac_objext
15955
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15956
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15957
_lt_linker_boilerplate=`cat conftest.err`
15961
# Allow CC to be a program name with arguments.
15966
for cc_temp in $compiler""; do
15968
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15969
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15974
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15977
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15978
archive_cmds_need_lc_GCJ=no
15980
old_archive_cmds_GCJ=$old_archive_cmds
15983
lt_prog_compiler_no_builtin_flag_GCJ=
15985
if test "$GCC" = yes; then
15986
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15989
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15990
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15991
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15992
echo $ECHO_N "(cached) $ECHO_C" >&6
15994
lt_cv_prog_compiler_rtti_exceptions=no
15995
ac_outfile=conftest.$ac_objext
15996
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15997
lt_compiler_flag="-fno-rtti -fno-exceptions"
15998
# Insert the option either (1) after the last *FLAGS variable, or
15999
# (2) before a word containing "conftest.", or (3) at the end.
16000
# Note that $ac_compile itself does not contain backslashes and begins
16001
# with a dollar sign (not a hyphen), so the echo should work correctly.
16002
# The option is referenced via a variable to avoid confusing sed.
16003
lt_compile=`echo "$ac_compile" | $SED \
16004
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16005
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16006
-e 's:$: $lt_compiler_flag:'`
16007
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16008
(eval "$lt_compile" 2>conftest.err)
16010
cat conftest.err >&5
16011
echo "$as_me:__oline__: \$? = $ac_status" >&5
16012
if (exit $ac_status) && test -s "$ac_outfile"; then
16013
# The compiler can only warn and ignore the option if not recognized
16014
# So say no if there are warnings other than the usual output.
16015
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16016
$SED '/^$/d' conftest.err >conftest.er2
16017
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16018
lt_cv_prog_compiler_rtti_exceptions=yes
16024
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16025
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16027
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16028
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16035
lt_prog_compiler_wl_GCJ=
16036
lt_prog_compiler_pic_GCJ=
16037
lt_prog_compiler_static_GCJ=
16039
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16040
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16042
if test "$GCC" = yes; then
16043
lt_prog_compiler_wl_GCJ='-Wl,'
16044
lt_prog_compiler_static_GCJ='-static'
16048
# All AIX code is PIC.
16049
if test "$host_cpu" = ia64; then
16050
# AIX 5 now supports IA64 processor
16051
lt_prog_compiler_static_GCJ='-Bstatic'
16056
# FIXME: we need at least 68020 code to build shared libraries, but
16057
# adding the `-m68020' flag to GCC prevents building anything better,
16059
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16062
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16063
# PIC is the default for these OSes.
16066
mingw* | pw32* | os2*)
16067
# This hack is so that the source file can tell whether it is being
16068
# built for inclusion in a dll (and should export symbols for example).
16069
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16072
darwin* | rhapsody*)
16073
# PIC is the default on this platform
16074
# Common symbols not allowed in MH_DYLIB files
16075
lt_prog_compiler_pic_GCJ='-fno-common'
16079
# Just because we use GCC doesn't mean we suddenly get shared libraries
16080
# on systems that don't support them.
16081
lt_prog_compiler_can_build_shared_GCJ=no
16086
if test -d /usr/nec; then
16087
lt_prog_compiler_pic_GCJ=-Kconform_pic
16092
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16093
# not for PA HP-UX.
16099
lt_prog_compiler_pic_GCJ='-fPIC'
16105
lt_prog_compiler_pic_GCJ='-fPIC'
16109
# PORTME Check for flag to pass linker flags through the system compiler.
16112
lt_prog_compiler_wl_GCJ='-Wl,'
16113
if test "$host_cpu" = ia64; then
16114
# AIX 5 now supports IA64 processor
16115
lt_prog_compiler_static_GCJ='-Bstatic'
16117
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16121
# PIC is the default on this platform
16122
# Common symbols not allowed in MH_DYLIB files
16123
case $cc_basename in
16125
lt_prog_compiler_pic_GCJ='-qnocommon'
16126
lt_prog_compiler_wl_GCJ='-Wl,'
16131
mingw* | pw32* | os2*)
16132
# This hack is so that the source file can tell whether it is being
16133
# built for inclusion in a dll (and should export symbols for example).
16134
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16137
hpux9* | hpux10* | hpux11*)
16138
lt_prog_compiler_wl_GCJ='-Wl,'
16139
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16140
# not for PA HP-UX.
16146
lt_prog_compiler_pic_GCJ='+Z'
16149
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16150
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16153
irix5* | irix6* | nonstopux*)
16154
lt_prog_compiler_wl_GCJ='-Wl,'
16155
# PIC (with -KPIC) is the default.
16156
lt_prog_compiler_static_GCJ='-non_shared'
16160
lt_prog_compiler_pic_GCJ='-KPIC'
16161
lt_prog_compiler_static_GCJ='-Bstatic'
16165
case $cc_basename in
16167
lt_prog_compiler_wl_GCJ='-Wl,'
16168
lt_prog_compiler_pic_GCJ='-KPIC'
16169
lt_prog_compiler_static_GCJ='-static'
16171
pgcc* | pgf77* | pgf90* | pgf95*)
16172
# Portland Group compilers (*not* the Pentium gcc compiler,
16173
# which looks to be a dead project)
16174
lt_prog_compiler_wl_GCJ='-Wl,'
16175
lt_prog_compiler_pic_GCJ='-fpic'
16176
lt_prog_compiler_static_GCJ='-Bstatic'
16179
lt_prog_compiler_wl_GCJ='-Wl,'
16180
# All Alpha code is PIC.
16181
lt_prog_compiler_static_GCJ='-non_shared'
16186
osf3* | osf4* | osf5*)
16187
lt_prog_compiler_wl_GCJ='-Wl,'
16188
# All OSF/1 code is PIC.
16189
lt_prog_compiler_static_GCJ='-non_shared'
16193
lt_prog_compiler_pic_GCJ='-Kpic'
16194
lt_prog_compiler_static_GCJ='-dn'
16198
lt_prog_compiler_pic_GCJ='-KPIC'
16199
lt_prog_compiler_static_GCJ='-Bstatic'
16200
case $cc_basename in
16201
f77* | f90* | f95*)
16202
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16204
lt_prog_compiler_wl_GCJ='-Wl,';;
16209
lt_prog_compiler_wl_GCJ='-Qoption ld '
16210
lt_prog_compiler_pic_GCJ='-PIC'
16211
lt_prog_compiler_static_GCJ='-Bstatic'
16214
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16215
lt_prog_compiler_wl_GCJ='-Wl,'
16216
lt_prog_compiler_pic_GCJ='-KPIC'
16217
lt_prog_compiler_static_GCJ='-Bstatic'
16221
if test -d /usr/nec ;then
16222
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16223
lt_prog_compiler_static_GCJ='-Bstatic'
16228
lt_prog_compiler_wl_GCJ='-Wl,'
16229
lt_prog_compiler_can_build_shared_GCJ=no
16233
lt_prog_compiler_pic_GCJ='-pic'
16234
lt_prog_compiler_static_GCJ='-Bstatic'
16238
lt_prog_compiler_can_build_shared_GCJ=no
16243
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16244
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16247
# Check to make sure the PIC flag actually works.
16249
if test -n "$lt_prog_compiler_pic_GCJ"; then
16251
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16252
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16253
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16254
echo $ECHO_N "(cached) $ECHO_C" >&6
16256
lt_prog_compiler_pic_works_GCJ=no
16257
ac_outfile=conftest.$ac_objext
16258
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16259
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16260
# Insert the option either (1) after the last *FLAGS variable, or
16261
# (2) before a word containing "conftest.", or (3) at the end.
16262
# Note that $ac_compile itself does not contain backslashes and begins
16263
# with a dollar sign (not a hyphen), so the echo should work correctly.
16264
# The option is referenced via a variable to avoid confusing sed.
16265
lt_compile=`echo "$ac_compile" | $SED \
16266
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16267
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16268
-e 's:$: $lt_compiler_flag:'`
16269
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16270
(eval "$lt_compile" 2>conftest.err)
16272
cat conftest.err >&5
16273
echo "$as_me:__oline__: \$? = $ac_status" >&5
16274
if (exit $ac_status) && test -s "$ac_outfile"; then
16275
# The compiler can only warn and ignore the option if not recognized
16276
# So say no if there are warnings other than the usual output.
16277
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16278
$SED '/^$/d' conftest.err >conftest.er2
16279
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16280
lt_prog_compiler_pic_works_GCJ=yes
16286
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16287
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16289
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16290
case $lt_prog_compiler_pic_GCJ in
16292
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16295
lt_prog_compiler_pic_GCJ=
16296
lt_prog_compiler_can_build_shared_GCJ=no
16301
# For platforms which do not support PIC, -DPIC is meaningless:
16303
lt_prog_compiler_pic_GCJ=
16306
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16310
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16311
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16312
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16313
echo $ECHO_N "(cached) $ECHO_C" >&6
16315
lt_cv_prog_compiler_c_o_GCJ=no
16316
$rm -r conftest 2>/dev/null
16320
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16322
lt_compiler_flag="-o out/conftest2.$ac_objext"
16323
# Insert the option either (1) after the last *FLAGS variable, or
16324
# (2) before a word containing "conftest.", or (3) at the end.
16325
# Note that $ac_compile itself does not contain backslashes and begins
16326
# with a dollar sign (not a hyphen), so the echo should work correctly.
16327
lt_compile=`echo "$ac_compile" | $SED \
16328
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16329
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16330
-e 's:$: $lt_compiler_flag:'`
16331
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16332
(eval "$lt_compile" 2>out/conftest.err)
16334
cat out/conftest.err >&5
16335
echo "$as_me:__oline__: \$? = $ac_status" >&5
16336
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16338
# The compiler can only warn and ignore the option if not recognized
16339
# So say no if there are warnings
16340
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16341
$SED '/^$/d' out/conftest.err >out/conftest.er2
16342
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16343
lt_cv_prog_compiler_c_o_GCJ=yes
16348
# SGI C++ compiler will create directory out/ii_files/ for
16349
# template instantiation
16350
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16351
$rm out/* && rmdir out
16357
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16358
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16361
hard_links="nottested"
16362
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16363
# do not overwrite the value of need_locks provided by the user
16364
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16365
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16368
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16370
ln conftest.a conftest.b 2>&5 || hard_links=no
16371
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16372
echo "$as_me:$LINENO: result: $hard_links" >&5
16373
echo "${ECHO_T}$hard_links" >&6
16374
if test "$hard_links" = no; then
16375
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16376
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16383
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16384
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16387
allow_undefined_flag_GCJ=
16388
enable_shared_with_static_runtimes_GCJ=no
16390
archive_expsym_cmds_GCJ=
16391
old_archive_From_new_cmds_GCJ=
16392
old_archive_from_expsyms_cmds_GCJ=
16393
export_dynamic_flag_spec_GCJ=
16394
whole_archive_flag_spec_GCJ=
16395
thread_safe_flag_spec_GCJ=
16396
hardcode_libdir_flag_spec_GCJ=
16397
hardcode_libdir_flag_spec_ld_GCJ=
16398
hardcode_libdir_separator_GCJ=
16399
hardcode_direct_GCJ=no
16400
hardcode_minus_L_GCJ=no
16401
hardcode_shlibpath_var_GCJ=unsupported
16402
link_all_deplibs_GCJ=unknown
16403
hardcode_automatic_GCJ=no
16405
module_expsym_cmds_GCJ=
16406
always_export_symbols_GCJ=no
16407
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16408
# include_expsyms should be a list of space-separated symbols to be *always*
16409
# included in the symbol list
16410
include_expsyms_GCJ=
16411
# exclude_expsyms can be an extended regexp of symbols to exclude
16412
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16413
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16414
# as well as any symbol that contains `d'.
16415
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16416
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16417
# platforms (ab)use it in PIC code, but their linkers get confused if
16418
# the symbol is explicitly referenced. Since portable code cannot
16419
# rely on this symbol name, it's probably fine to never include it in
16420
# preloaded symbol tables.
16421
extract_expsyms_cmds=
16422
# Just being paranoid about ensuring that cc_basename is set.
16423
for cc_temp in $compiler""; do
16425
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16426
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16434
cygwin* | mingw* | pw32*)
16435
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16436
# When not using gcc, we currently assume that we are using
16437
# Microsoft Visual C++.
16438
if test "$GCC" != yes; then
16448
if test "$with_gnu_ld" = yes; then
16449
# If archive_cmds runs LD, not CC, wlarc should be empty
16452
# Set some defaults for GNU ld with shared library support. These
16453
# are reset later if shared libraries are not supported. Putting them
16454
# here allows them to be overridden if necessary.
16455
runpath_var=LD_RUN_PATH
16456
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16457
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16458
# ancient GNU ld didn't support --whole-archive et. al.
16459
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16460
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16462
whole_archive_flag_spec_GCJ=
16464
supports_anon_versioning=no
16465
case `$LD -v 2>/dev/null` in
16466
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16467
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16468
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16469
*\ 2.11.*) ;; # other 2.11 versions
16470
*) supports_anon_versioning=yes ;;
16473
# See if GNU ld supports shared libraries.
16475
aix3* | aix4* | aix5*)
16476
# On AIX/PPC, the GNU linker is very broken
16477
if test "$host_cpu" != ia64; then
16481
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16482
*** to be unable to reliably create shared libraries on AIX.
16483
*** Therefore, libtool is disabling shared libraries support. If you
16484
*** really care for shared libraries, you may want to modify your PATH
16485
*** so that a non-GNU linker is found, and then restart.
16492
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)'
16493
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16494
hardcode_minus_L_GCJ=yes
16496
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16497
# that the semantics of dynamic libraries on AmigaOS, at least up
16498
# to version 4, is to share data among multiple programs linked
16499
# with the same dynamic library. Since this doesn't match the
16500
# behavior of shared libraries on other platforms, we can't use
16506
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16507
allow_undefined_flag_GCJ=unsupported
16508
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16509
# support --undefined. This deserves some investigation. FIXME
16510
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516
cygwin* | mingw* | pw32*)
16517
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16518
# as there is no search path for DLLs.
16519
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16520
allow_undefined_flag_GCJ=unsupported
16521
always_export_symbols_GCJ=no
16522
enable_shared_with_static_runtimes_GCJ=yes
16523
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16525
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16526
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16527
# If the export-symbols file already is a .def file (1st line
16528
# is EXPORTS), use it as is; otherwise, prepend...
16529
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16530
cp $export_symbols $output_objdir/$soname.def;
16532
echo EXPORTS > $output_objdir/$soname.def;
16533
cat $export_symbols >> $output_objdir/$soname.def;
16535
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16542
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16544
case $cc_basename,$host_cpu in
16545
pgcc*) # Portland Group C compiler
16546
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16547
tmp_addflag=' $pic_flag'
16549
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16550
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16551
tmp_addflag=' $pic_flag -Mnomain' ;;
16552
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16553
tmp_addflag=' -i_dynamic' ;;
16554
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16555
tmp_addflag=' -i_dynamic -nofor_main' ;;
16556
ifc* | ifort*) # Intel Fortran compiler
16557
tmp_addflag=' -nofor_main' ;;
16559
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561
if test $supports_anon_versioning = yes; then
16562
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16563
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16564
$echo "local: *; };" >> $output_objdir/$libname.ver~
16565
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16567
link_all_deplibs_GCJ=no
16573
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16574
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16575
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16578
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16584
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16588
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16589
*** create shared libraries on Solaris systems. Therefore, libtool
16590
*** is disabling shared libraries support. We urge you to upgrade GNU
16591
*** binutils to release 2.9.1 or newer. Another option is to modify
16592
*** your PATH or compiler configuration so that the native linker is
16593
*** used, and then restart.
16596
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16597
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16598
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16605
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16607
hardcode_direct_GCJ=yes
16608
hardcode_shlibpath_var_GCJ=no
16612
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16613
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16621
if test "$ld_shlibs_GCJ" = no; then
16623
hardcode_libdir_flag_spec_GCJ=
16624
export_dynamic_flag_spec_GCJ=
16625
whole_archive_flag_spec_GCJ=
16628
# PORTME fill in a description of your system's linker (not GNU ld)
16631
allow_undefined_flag_GCJ=unsupported
16632
always_export_symbols_GCJ=yes
16633
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'
16634
# Note: this linker hardcodes the directories in LIBPATH if there
16635
# are no directories specified by -L.
16636
hardcode_minus_L_GCJ=yes
16637
if test "$GCC" = yes && test -z "$link_static_flag"; then
16638
# Neither direct hardcoding nor static linking is supported with a
16640
hardcode_direct_GCJ=unsupported
16645
if test "$host_cpu" = ia64; then
16646
# On IA64, the linker does run time linking by default, so we don't
16647
# have to do anything special.
16648
aix_use_runtimelinking=no
16649
exp_sym_flag='-Bexport'
16652
# If we're using GNU nm, then we don't want the "-C" option.
16653
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16654
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16655
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'
16657
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'
16659
aix_use_runtimelinking=no
16661
# Test if we are trying to use run time linking or normal
16662
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16663
# need to do runtime linking.
16664
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16665
for ld_flag in $LDFLAGS; do
16666
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16667
aix_use_runtimelinking=yes
16673
exp_sym_flag='-bexport'
16674
no_entry_flag='-bnoentry'
16677
# When large executables or shared objects are built, AIX ld can
16678
# have problems creating the table of contents. If linking a library
16679
# or program results in "error TOC overflow" add -mminimal-toc to
16680
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16681
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16683
archive_cmds_GCJ=''
16684
hardcode_direct_GCJ=yes
16685
hardcode_libdir_separator_GCJ=':'
16686
link_all_deplibs_GCJ=yes
16688
if test "$GCC" = yes; then
16689
case $host_os in aix4.[012]|aix4.[012].*)
16690
# We only want to do this on AIX 4.2 and lower, the check
16691
# below for broken collect2 doesn't work under 4.3+
16692
collect2name=`${CC} -print-prog-name=collect2`
16693
if test -f "$collect2name" && \
16694
strings "$collect2name" | grep resolve_lib_name >/dev/null
16696
# We have reworked collect2
16697
hardcode_direct_GCJ=yes
16699
# We have old collect2
16700
hardcode_direct_GCJ=unsupported
16701
# It fails to find uninstalled libraries when the uninstalled
16702
# path is not listed in the libpath. Setting hardcode_minus_L
16703
# to unsupported forces relinking
16704
hardcode_minus_L_GCJ=yes
16705
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16706
hardcode_libdir_separator_GCJ=
16709
shared_flag='-shared'
16710
if test "$aix_use_runtimelinking" = yes; then
16711
shared_flag="$shared_flag "'${wl}-G'
16715
if test "$host_cpu" = ia64; then
16716
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16717
# chokes on -Wl,-G. The following line is correct:
16720
if test "$aix_use_runtimelinking" = yes; then
16721
shared_flag='${wl}-G'
16723
shared_flag='${wl}-bM:SRE'
16728
# It seems that -bexpall does not export symbols beginning with
16729
# underscore (_), so it is better to generate a list of symbols to export.
16730
always_export_symbols_GCJ=yes
16731
if test "$aix_use_runtimelinking" = yes; then
16732
# Warning - without using the other runtime loading flags (-brtl),
16733
# -berok will link without error, but may produce a broken library.
16734
allow_undefined_flag_GCJ='-berok'
16735
# Determine the default libpath from the value encoded in an empty executable.
16736
cat >conftest.$ac_ext <<_ACEOF
16739
cat confdefs.h >>conftest.$ac_ext
16740
cat >>conftest.$ac_ext <<_ACEOF
16741
/* end confdefs.h. */
16751
rm -f conftest.$ac_objext conftest$ac_exeext
16752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16753
(eval $ac_link) 2>conftest.er1
16755
grep -v '^ *+' conftest.er1 >conftest.err
16757
cat conftest.err >&5
16758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759
(exit $ac_status); } &&
16760
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762
(eval $ac_try) 2>&5
16764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765
(exit $ac_status); }; } &&
16766
{ ac_try='test -s conftest$ac_exeext'
16767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768
(eval $ac_try) 2>&5
16770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771
(exit $ac_status); }; }; then
16773
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16775
# Check for a 64-bit object if we didn't find anything.
16776
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; }
16779
echo "$as_me: failed program was:" >&5
16780
sed 's/^/| /' conftest.$ac_ext >&5
16783
rm -f conftest.err conftest.$ac_objext \
16784
conftest$ac_exeext conftest.$ac_ext
16785
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16787
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16788
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"
16790
if test "$host_cpu" = ia64; then
16791
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16792
allow_undefined_flag_GCJ="-z nodefs"
16793
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"
16795
# Determine the default libpath from the value encoded in an empty executable.
16796
cat >conftest.$ac_ext <<_ACEOF
16799
cat confdefs.h >>conftest.$ac_ext
16800
cat >>conftest.$ac_ext <<_ACEOF
16801
/* end confdefs.h. */
16811
rm -f conftest.$ac_objext conftest$ac_exeext
16812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813
(eval $ac_link) 2>conftest.er1
16815
grep -v '^ *+' conftest.er1 >conftest.err
16817
cat conftest.err >&5
16818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819
(exit $ac_status); } &&
16820
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822
(eval $ac_try) 2>&5
16824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825
(exit $ac_status); }; } &&
16826
{ ac_try='test -s conftest$ac_exeext'
16827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828
(eval $ac_try) 2>&5
16830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831
(exit $ac_status); }; }; then
16833
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16835
# Check for a 64-bit object if we didn't find anything.
16836
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; }
16839
echo "$as_me: failed program was:" >&5
16840
sed 's/^/| /' conftest.$ac_ext >&5
16843
rm -f conftest.err conftest.$ac_objext \
16844
conftest$ac_exeext conftest.$ac_ext
16845
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16847
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16848
# Warning - without using the other run time loading flags,
16849
# -berok will link without error, but may produce a broken library.
16850
no_undefined_flag_GCJ=' ${wl}-bernotok'
16851
allow_undefined_flag_GCJ=' ${wl}-berok'
16852
# -bexpall does not export symbols beginning with underscore (_)
16853
always_export_symbols_GCJ=yes
16854
# Exported symbols can be pulled into shared objects from archives
16855
whole_archive_flag_spec_GCJ=' '
16856
archive_cmds_need_lc_GCJ=yes
16857
# This is similar to how AIX traditionally builds its shared libraries.
16858
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'
16864
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)'
16865
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16866
hardcode_minus_L_GCJ=yes
16867
# see comment about different semantics on the GNU ld section
16872
export_dynamic_flag_spec_GCJ=-rdynamic
16875
cygwin* | mingw* | pw32*)
16876
# When not using gcc, we currently assume that we are using
16877
# Microsoft Visual C++.
16878
# hardcode_libdir_flag_spec is actually meaningless, as there is
16879
# no search path for DLLs.
16880
hardcode_libdir_flag_spec_GCJ=' '
16881
allow_undefined_flag_GCJ=unsupported
16882
# Tell ltmain to make .lib files, not .a files.
16884
# Tell ltmain to make .dll files, not .so files.
16886
# FIXME: Setting linknames here is a bad hack.
16887
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16888
# The linker will automatically build a .lib file if we build a DLL.
16889
old_archive_From_new_cmds_GCJ='true'
16890
# FIXME: Should let the user specify the lib program.
16891
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16892
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16893
enable_shared_with_static_runtimes_GCJ=yes
16896
darwin* | rhapsody*)
16898
rhapsody* | darwin1.[012])
16899
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16902
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16903
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16905
case ${MACOSX_DEPLOYMENT_TARGET} in
16907
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16910
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16916
archive_cmds_need_lc_GCJ=no
16917
hardcode_direct_GCJ=no
16918
hardcode_automatic_GCJ=yes
16919
hardcode_shlibpath_var_GCJ=unsupported
16920
whole_archive_flag_spec_GCJ=''
16921
link_all_deplibs_GCJ=yes
16922
if test "$GCC" = yes ; then
16923
output_verbose_link_cmd='echo'
16924
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16925
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16926
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16927
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16928
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16930
case $cc_basename in
16932
output_verbose_link_cmd='echo'
16933
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16934
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16935
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16936
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16937
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16947
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16948
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16949
hardcode_shlibpath_var_GCJ=no
16956
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16957
# support. Future versions do this automatically, but an explicit c++rt0.o
16958
# does not break anything, and helps significantly (at the cost of a little
16961
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16962
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16963
hardcode_direct_GCJ=yes
16964
hardcode_shlibpath_var_GCJ=no
16967
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16969
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16970
hardcode_direct_GCJ=yes
16971
hardcode_minus_L_GCJ=yes
16972
hardcode_shlibpath_var_GCJ=no
16975
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16976
freebsd* | kfreebsd*-gnu | dragonfly*)
16977
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16978
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979
hardcode_direct_GCJ=yes
16980
hardcode_shlibpath_var_GCJ=no
16984
if test "$GCC" = yes; then
16985
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'
16987
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'
16989
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16990
hardcode_libdir_separator_GCJ=:
16991
hardcode_direct_GCJ=yes
16993
# hardcode_minus_L: Not really in the search PATH,
16994
# but as the default location of the library.
16995
hardcode_minus_L_GCJ=yes
16996
export_dynamic_flag_spec_GCJ='${wl}-E'
17000
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17003
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17006
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17012
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17015
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17019
if test "$with_gnu_ld" = no; then
17022
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17023
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17024
hardcode_libdir_separator_GCJ=:
17025
hardcode_direct_GCJ=no
17026
hardcode_shlibpath_var_GCJ=no
17029
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17030
hardcode_direct_GCJ=no
17031
hardcode_shlibpath_var_GCJ=no
17033
# hardcode_minus_L: Not really in the search PATH,
17034
# but as the default location of the library.
17035
hardcode_minus_L_GCJ=yes
17038
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17039
hardcode_libdir_separator_GCJ=:
17040
hardcode_direct_GCJ=yes
17041
export_dynamic_flag_spec_GCJ='${wl}-E'
17043
# hardcode_minus_L: Not really in the search PATH,
17044
# but as the default location of the library.
17045
hardcode_minus_L_GCJ=yes
17051
irix5* | irix6* | nonstopux*)
17052
if test "$GCC" = yes; then
17053
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'
17055
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'
17056
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17058
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17059
hardcode_libdir_separator_GCJ=:
17060
link_all_deplibs_GCJ=yes
17063
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17064
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17065
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17067
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17069
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17070
hardcode_direct_GCJ=yes
17071
hardcode_shlibpath_var_GCJ=no
17075
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076
hardcode_direct_GCJ=yes
17077
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17078
hardcode_libdir_separator_GCJ=:
17079
hardcode_shlibpath_var_GCJ=no
17083
hardcode_direct_GCJ=yes
17084
hardcode_shlibpath_var_GCJ=no
17085
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17086
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17087
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17088
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17089
export_dynamic_flag_spec_GCJ='${wl}-E'
17092
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17093
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17094
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17097
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17098
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17105
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106
hardcode_minus_L_GCJ=yes
17107
allow_undefined_flag_GCJ=unsupported
17108
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'
17109
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17113
if test "$GCC" = yes; then
17114
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17115
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'
17117
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17118
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'
17120
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17121
hardcode_libdir_separator_GCJ=:
17124
osf4* | osf5*) # as osf3* with the addition of -msym flag
17125
if test "$GCC" = yes; then
17126
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17127
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'
17128
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17130
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17131
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'
17132
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17133
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17135
# Both c and cxx compiler support -rpath directly
17136
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17138
hardcode_libdir_separator_GCJ=:
17142
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17143
hardcode_shlibpath_var_GCJ=no
17144
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17145
runpath_var=LD_RUN_PATH
17146
hardcode_runpath_var=yes
17150
no_undefined_flag_GCJ=' -z text'
17151
if test "$GCC" = yes; then
17153
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17154
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17155
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17158
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17160
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17162
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17163
hardcode_shlibpath_var_GCJ=no
17165
solaris2.[0-5] | solaris2.[0-5].*) ;;
17167
# The compiler driver will combine linker options so we
17168
# cannot just pass the convience library names through
17169
# without $wl, iff we do not link with $LD.
17170
# Luckily, gcc supports the same syntax we need for Sun Studio.
17171
# Supported since Solaris 2.6 (maybe 2.5.1?)
17174
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17176
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17179
link_all_deplibs_GCJ=yes
17183
if test "x$host_vendor" = xsequent; then
17184
# Use $CC to link under sequent, because it throws in some extra .o
17185
# files that make .init and .fini sections work.
17186
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17188
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17190
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17191
hardcode_direct_GCJ=yes
17192
hardcode_minus_L_GCJ=yes
17193
hardcode_shlibpath_var_GCJ=no
17197
case $host_vendor in
17199
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17200
hardcode_direct_GCJ=yes # is this really true???
17203
## LD is ld it makes a PLAMLIB
17204
## CC just makes a GrossModule.
17205
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17206
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17207
hardcode_direct_GCJ=no
17210
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17211
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17214
runpath_var='LD_RUN_PATH'
17215
hardcode_shlibpath_var_GCJ=no
17219
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17220
hardcode_shlibpath_var_GCJ=no
17221
export_dynamic_flag_spec_GCJ='-Bexport'
17225
if test -d /usr/nec; then
17226
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17227
hardcode_shlibpath_var_GCJ=no
17228
runpath_var=LD_RUN_PATH
17229
hardcode_runpath_var=yes
17235
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17236
hardcode_direct_GCJ=yes
17237
hardcode_minus_L_GCJ=no
17238
hardcode_shlibpath_var_GCJ=no
17239
hardcode_runpath_var=yes
17240
runpath_var=LD_RUN_PATH
17243
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17244
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17245
if test "$GCC" = yes; then
17246
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17248
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17250
runpath_var='LD_RUN_PATH'
17251
hardcode_shlibpath_var_GCJ=no
17255
no_undefined_flag_GCJ=' -z text'
17256
# $CC -shared without GNU ld will not create a library from C++
17257
# object files and a static libstdc++, better avoid it by now
17258
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17260
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17261
hardcode_libdir_flag_spec_GCJ=
17262
hardcode_shlibpath_var_GCJ=no
17263
runpath_var='LD_RUN_PATH'
17267
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17268
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269
hardcode_shlibpath_var_GCJ=no
17278
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17279
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17280
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17282
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17283
if test "$GCC" = yes; then
17284
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17288
# Do we need to explicitly link libc?
17290
case "x$archive_cmds_need_lc_GCJ" in
17292
# Assume -lc should be added
17293
archive_cmds_need_lc_GCJ=yes
17295
if test "$enable_shared" = yes && test "$GCC" = yes; then
17296
case $archive_cmds_GCJ in
17298
# FIXME: we may have to deal with multi-command sequences.
17301
# Test whether the compiler implicitly links with -lc since on some
17302
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17303
# to ld, don't add -lc before -lgcc.
17304
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17305
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17307
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17310
(eval $ac_compile) 2>&5
17312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313
(exit $ac_status); } 2>conftest.err; then
17316
libobjs=conftest.$ac_objext
17318
wl=$lt_prog_compiler_wl_GCJ
17324
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17325
allow_undefined_flag_GCJ=
17326
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17327
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330
(exit $ac_status); }
17332
archive_cmds_need_lc_GCJ=no
17334
archive_cmds_need_lc_GCJ=yes
17336
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17338
cat conftest.err 1>&5
17341
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17342
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17349
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17350
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17351
library_names_spec=
17352
libname_spec='lib$name'
17356
postuninstall_cmds=
17360
shlibpath_overrides_runpath=unknown
17362
dynamic_linker="$host_os ld.so"
17363
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17364
if test "$GCC" = yes; then
17365
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17366
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17367
# if the path contains ";" then we assume it to be the separator
17368
# otherwise default to the standard path separator (i.e. ":") - it is
17369
# assumed that no part of a normal pathname contains ";" but that should
17370
# okay in the real world where ";" in dirpaths is itself problematic.
17371
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17373
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17376
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17378
need_lib_prefix=unknown
17379
hardcode_into_libs=no
17381
# when you set need_version to no, make sure it does not cause -set_version
17382
# flags to be left without arguments
17383
need_version=unknown
17388
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17389
shlibpath_var=LIBPATH
17391
# AIX 3 has no versioning support, so we append a major version to the name.
17392
soname_spec='${libname}${release}${shared_ext}$major'
17399
hardcode_into_libs=yes
17400
if test "$host_cpu" = ia64; then
17401
# AIX 5 supports IA64
17402
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17403
shlibpath_var=LD_LIBRARY_PATH
17405
# With GCC up to 2.95.x, collect2 would create an import file
17406
# for dependence libraries. The import file would start with
17407
# the line `#! .'. This would cause the generated library to
17408
# depend on `.', always an invalid library. This was fixed in
17409
# development snapshots of GCC prior to 3.0.
17411
aix4 | aix4.[01] | aix4.[01].*)
17412
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17414
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17417
can_build_shared=no
17421
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17422
# soname into executable. Probably we can add versioning support to
17423
# collect2, so additional links can be useful in future.
17424
if test "$aix_use_runtimelinking" = yes; then
17425
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17426
# instead of lib<name>.a to let people know that these are not
17427
# typical AIX shared libraries.
17428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430
# We preserve .a as extension for shared libraries through AIX4.2
17431
# and later when we are not doing run time linking.
17432
library_names_spec='${libname}${release}.a $libname.a'
17433
soname_spec='${libname}${release}${shared_ext}$major'
17435
shlibpath_var=LIBPATH
17440
library_names_spec='$libname.ixlibrary $libname.a'
17441
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17442
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'
17446
library_names_spec='${libname}${shared_ext}'
17447
dynamic_linker="$host_os ld.so"
17448
shlibpath_var=LIBRARY_PATH
17454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455
soname_spec='${libname}${release}${shared_ext}$major'
17456
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17457
shlibpath_var=LD_LIBRARY_PATH
17458
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17459
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17460
# the default ld.so.conf also contains /usr/contrib/lib and
17461
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17462
# libtool to hard-code these into programs
17465
cygwin* | mingw* | pw32*)
17466
version_type=windows
17471
case $GCC,$host_os in
17472
yes,cygwin* | yes,mingw* | yes,pw32*)
17473
library_names_spec='$libname.dll.a'
17474
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17475
postinstall_cmds='base_file=`basename \${file}`~
17476
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17477
dldir=$destdir/`dirname \$dlpath`~
17478
test -d \$dldir || mkdir -p \$dldir~
17479
$install_prog $dir/$dlname \$dldir/$dlname~
17480
chmod a+x \$dldir/$dlname'
17481
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17482
dlpath=$dir/\$dldll~
17484
shlibpath_overrides_runpath=yes
17488
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17489
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17490
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17493
# MinGW DLLs use traditional 'lib' prefix
17494
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17495
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17496
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17497
# It is most probably a Windows format PATH printed by
17498
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17499
# path with ; separators, and with drive letters. We can handle the
17500
# drive letters (cygwin fileutils understands them), so leave them,
17501
# especially as we might pass files found there to a mingw objdump,
17502
# which wouldn't understand a cygwinified path. Ahh.
17503
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17505
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17509
# pw32 DLLs use 'pw' prefix rather than 'lib'
17510
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17516
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17519
dynamic_linker='Win32 ld.exe'
17520
# FIXME: first we should search . and the directory the executable is in
17524
darwin* | rhapsody*)
17525
dynamic_linker="$host_os dyld"
17526
version_type=darwin
17529
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17530
soname_spec='${libname}${release}${major}$shared_ext'
17531
shlibpath_overrides_runpath=yes
17532
shlibpath_var=DYLD_LIBRARY_PATH
17533
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17534
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17535
if test "$GCC" = yes; then
17536
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17538
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17540
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17548
soname_spec='${libname}${release}${shared_ext}$major'
17549
shlibpath_var=LD_LIBRARY_PATH
17560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17561
soname_spec='${libname}${release}${shared_ext}$major'
17562
shlibpath_var=LD_LIBRARY_PATH
17563
shlibpath_overrides_runpath=no
17564
hardcode_into_libs=yes
17565
dynamic_linker='GNU ld.so'
17568
freebsd* | dragonfly*)
17569
# DragonFly does not have aout. When/if they implement a new
17570
# versioning mechanism, adjust this.
17571
if test -x /usr/bin/objformat; then
17572
objformat=`/usr/bin/objformat`
17575
freebsd[123]*) objformat=aout ;;
17576
*) objformat=elf ;;
17579
version_type=freebsd-$objformat
17580
case $version_type in
17582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17587
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17591
shlibpath_var=LD_LIBRARY_PATH
17594
shlibpath_overrides_runpath=yes
17596
freebsd3.[01]* | freebsdelf3.[01]*)
17597
shlibpath_overrides_runpath=yes
17598
hardcode_into_libs=yes
17601
shlibpath_overrides_runpath=no
17602
hardcode_into_libs=yes
17611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17612
soname_spec='${libname}${release}${shared_ext}$major'
17613
shlibpath_var=LD_LIBRARY_PATH
17614
hardcode_into_libs=yes
17617
hpux9* | hpux10* | hpux11*)
17618
# Give a soname corresponding to the major version so that dld.sl refuses to
17619
# link against other versions.
17626
hardcode_into_libs=yes
17627
dynamic_linker="$host_os dld.so"
17628
shlibpath_var=LD_LIBRARY_PATH
17629
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631
soname_spec='${libname}${release}${shared_ext}$major'
17632
if test "X$HPUX_IA64_MODE" = X32; then
17633
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17635
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17637
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17641
hardcode_into_libs=yes
17642
dynamic_linker="$host_os dld.sl"
17643
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17644
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646
soname_spec='${libname}${release}${shared_ext}$major'
17647
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17648
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17652
dynamic_linker="$host_os dld.sl"
17653
shlibpath_var=SHLIB_PATH
17654
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17656
soname_spec='${libname}${release}${shared_ext}$major'
17659
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17660
postinstall_cmds='chmod 555 $lib'
17663
irix5* | irix6* | nonstopux*)
17665
nonstopux*) version_type=nonstopux ;;
17667
if test "$lt_cv_prog_gnu_ld" = yes; then
17675
soname_spec='${libname}${release}${shared_ext}$major'
17676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17678
irix5* | nonstopux*)
17679
libsuff= shlibsuff=
17682
case $LD in # libtool.m4 will add one of these switches to LD
17683
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17684
libsuff= shlibsuff= libmagic=32-bit;;
17685
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17686
libsuff=32 shlibsuff=N32 libmagic=N32;;
17687
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17688
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17689
*) libsuff= shlibsuff= libmagic=never-match;;
17693
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17694
shlibpath_overrides_runpath=no
17695
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17696
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17697
hardcode_into_libs=yes
17700
# No shared lib support for Linux oldld, aout, or coff.
17701
linux*oldld* | linux*aout* | linux*coff*)
17705
# This must be Linux ELF.
17710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711
soname_spec='${libname}${release}${shared_ext}$major'
17712
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17713
shlibpath_var=LD_LIBRARY_PATH
17714
shlibpath_overrides_runpath=no
17715
# This implies no fast_install, which is unacceptable.
17716
# Some rework will be needed to allow for fast_install
17717
# before this can be enabled.
17718
hardcode_into_libs=yes
17720
# Append ld.so.conf contents to the search path
17721
if test -f /etc/ld.so.conf; then
17722
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17723
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17726
# We used to test for /lib/ld.so.1 and disable shared libraries on
17727
# powerpc, because MkLinux only supported shared libraries with the
17728
# GNU dynamic linker. Since this was broken with cross compilers,
17729
# most powerpc-linux boxes support dynamic linking these days and
17730
# people can always --disable-shared, the test was removed, and we
17731
# assume the GNU/Linux dynamic linker is in use.
17732
dynamic_linker='GNU/Linux ld.so'
17739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17740
soname_spec='${libname}${release}${shared_ext}$major'
17741
shlibpath_var=LD_LIBRARY_PATH
17742
shlibpath_overrides_runpath=no
17743
hardcode_into_libs=yes
17744
dynamic_linker='NetBSD ld.elf_so'
17751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17752
soname_spec='${libname}${release}${shared_ext}$major'
17753
shlibpath_var=LD_LIBRARY_PATH
17754
shlibpath_overrides_runpath=no
17755
hardcode_into_libs=yes
17756
dynamic_linker='GNU ld.so'
17763
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17765
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17766
dynamic_linker='NetBSD (a.out) ld.so'
17768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17769
soname_spec='${libname}${release}${shared_ext}$major'
17770
dynamic_linker='NetBSD ld.elf_so'
17772
shlibpath_var=LD_LIBRARY_PATH
17773
shlibpath_overrides_runpath=yes
17774
hardcode_into_libs=yes
17779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780
shlibpath_var=LD_LIBRARY_PATH
17781
shlibpath_overrides_runpath=yes
17788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789
soname_spec='${libname}${release}${shared_ext}$major'
17790
shlibpath_var=LD_LIBRARY_PATH
17791
shlibpath_overrides_runpath=yes
17797
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17799
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17800
*) need_version=no ;;
17802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17803
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17804
shlibpath_var=LD_LIBRARY_PATH
17805
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17807
openbsd2.[89] | openbsd2.[89].*)
17808
shlibpath_overrides_runpath=no
17811
shlibpath_overrides_runpath=yes
17815
shlibpath_overrides_runpath=yes
17820
libname_spec='$name'
17823
library_names_spec='$libname${shared_ext} $libname.a'
17824
dynamic_linker='OS/2 ld.exe'
17825
shlibpath_var=LIBPATH
17828
osf3* | osf4* | osf5*)
17832
soname_spec='${libname}${release}${shared_ext}$major'
17833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834
shlibpath_var=LD_LIBRARY_PATH
17835
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17836
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17841
soname_spec='${libname}${release}${shared_ext}$major'
17842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843
shlibpath_var=LD_LIBRARY_PATH
17850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851
soname_spec='${libname}${release}${shared_ext}$major'
17852
shlibpath_var=LD_LIBRARY_PATH
17853
shlibpath_overrides_runpath=yes
17854
hardcode_into_libs=yes
17855
# ldd complains unless libraries are executable
17856
postinstall_cmds='chmod +x $lib'
17861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17862
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17863
shlibpath_var=LD_LIBRARY_PATH
17864
shlibpath_overrides_runpath=yes
17865
if test "$with_gnu_ld" = yes; then
17871
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874
soname_spec='${libname}${release}${shared_ext}$major'
17875
shlibpath_var=LD_LIBRARY_PATH
17876
case $host_vendor in
17878
shlibpath_overrides_runpath=no
17880
export_dynamic_flag_spec='${wl}-Blargedynsym'
17881
runpath_var=LD_RUN_PATH
17889
shlibpath_overrides_runpath=no
17890
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17896
if test -d /usr/nec ;then
17898
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17899
soname_spec='$libname${shared_ext}.$major'
17900
shlibpath_var=LD_LIBRARY_PATH
17906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907
soname_spec='${libname}${release}${shared_ext}$major'
17908
shlibpath_var=LD_LIBRARY_PATH
17915
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17916
echo "${ECHO_T}$dynamic_linker" >&6
17917
test "$dynamic_linker" = no && can_build_shared=no
17919
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17920
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17921
hardcode_action_GCJ=
17922
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17923
test -n "$runpath_var_GCJ" || \
17924
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17926
# We can hardcode non-existant directories.
17927
if test "$hardcode_direct_GCJ" != no &&
17928
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17929
# have to relink, otherwise we might link with an installed library
17930
# when we should be linking with a yet-to-be-installed one
17931
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17932
test "$hardcode_minus_L_GCJ" != no; then
17933
# Linking always hardcodes the temporary library directory.
17934
hardcode_action_GCJ=relink
17936
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17937
hardcode_action_GCJ=immediate
17940
# We cannot hardcode anything, or else we can only hardcode existing
17942
hardcode_action_GCJ=unsupported
17944
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17945
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17947
if test "$hardcode_action_GCJ" = relink; then
17948
# Fast installation is not supported
17949
enable_fast_install=no
17950
elif test "$shlibpath_overrides_runpath" = yes ||
17951
test "$enable_shared" = no; then
17952
# Fast installation is not necessary
17953
enable_fast_install=needless
17958
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17959
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17960
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17961
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17962
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17963
echo "$as_me:$LINENO: result: yes" >&5
17964
echo "${ECHO_T}yes" >&6
17966
# FIXME - insert some real tests, host_os isn't really good enough
17969
if test -n "$STRIP" ; then
17970
striplib="$STRIP -x"
17971
echo "$as_me:$LINENO: result: yes" >&5
17972
echo "${ECHO_T}yes" >&6
17974
echo "$as_me:$LINENO: result: no" >&5
17975
echo "${ECHO_T}no" >&6
17979
echo "$as_me:$LINENO: result: no" >&5
17980
echo "${ECHO_T}no" >&6
17985
if test "x$enable_dlopen" != xyes; then
17986
enable_dlopen=unknown
17987
enable_dlopen_self=unknown
17988
enable_dlopen_self_static=unknown
17995
lt_cv_dlopen="load_add_on"
17997
lt_cv_dlopen_self=yes
18001
lt_cv_dlopen="LoadLibrary"
18006
lt_cv_dlopen="dlopen"
18011
# if libdl is installed we need to link against it
18012
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18013
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18014
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18015
echo $ECHO_N "(cached) $ECHO_C" >&6
18017
ac_check_lib_save_LIBS=$LIBS
18019
cat >conftest.$ac_ext <<_ACEOF
18022
cat confdefs.h >>conftest.$ac_ext
18023
cat >>conftest.$ac_ext <<_ACEOF
18024
/* end confdefs.h. */
18026
/* Override any gcc2 internal prototype to avoid an error. */
18030
/* We use char because int might match the return type of a gcc2
18031
builtin and then its argument prototype would still apply. */
18041
rm -f conftest.$ac_objext conftest$ac_exeext
18042
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043
(eval $ac_link) 2>conftest.er1
18045
grep -v '^ *+' conftest.er1 >conftest.err
18047
cat conftest.err >&5
18048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049
(exit $ac_status); } &&
18050
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052
(eval $ac_try) 2>&5
18054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055
(exit $ac_status); }; } &&
18056
{ ac_try='test -s conftest$ac_exeext'
18057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058
(eval $ac_try) 2>&5
18060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061
(exit $ac_status); }; }; then
18062
ac_cv_lib_dl_dlopen=yes
18064
echo "$as_me: failed program was:" >&5
18065
sed 's/^/| /' conftest.$ac_ext >&5
18067
ac_cv_lib_dl_dlopen=no
18069
rm -f conftest.err conftest.$ac_objext \
18070
conftest$ac_exeext conftest.$ac_ext
18071
LIBS=$ac_check_lib_save_LIBS
18073
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18074
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18075
if test $ac_cv_lib_dl_dlopen = yes; then
18076
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18079
lt_cv_dlopen="dyld"
18081
lt_cv_dlopen_self=yes
18088
echo "$as_me:$LINENO: checking for shl_load" >&5
18089
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18090
if test "${ac_cv_func_shl_load+set}" = set; then
18091
echo $ECHO_N "(cached) $ECHO_C" >&6
18093
cat >conftest.$ac_ext <<_ACEOF
18096
cat confdefs.h >>conftest.$ac_ext
18097
cat >>conftest.$ac_ext <<_ACEOF
18098
/* end confdefs.h. */
18099
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18100
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101
#define shl_load innocuous_shl_load
18103
/* System header to define __stub macros and hopefully few prototypes,
18104
which can conflict with char shl_load (); below.
18105
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106
<limits.h> exists even on freestanding compilers. */
18109
# include <limits.h>
18111
# include <assert.h>
18116
/* Override any gcc2 internal prototype to avoid an error. */
18121
/* We use char because int might match the return type of a gcc2
18122
builtin and then its argument prototype would still apply. */
18124
/* The GNU C library defines this for functions which it implements
18125
to always fail with ENOSYS. Some functions are actually named
18126
something starting with __ and the normal name is an alias. */
18127
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18130
char (*f) () = shl_load;
18139
return f != shl_load;
18144
rm -f conftest.$ac_objext conftest$ac_exeext
18145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146
(eval $ac_link) 2>conftest.er1
18148
grep -v '^ *+' conftest.er1 >conftest.err
18150
cat conftest.err >&5
18151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152
(exit $ac_status); } &&
18153
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155
(eval $ac_try) 2>&5
18157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158
(exit $ac_status); }; } &&
18159
{ ac_try='test -s conftest$ac_exeext'
18160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161
(eval $ac_try) 2>&5
18163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164
(exit $ac_status); }; }; then
18165
ac_cv_func_shl_load=yes
18167
echo "$as_me: failed program was:" >&5
18168
sed 's/^/| /' conftest.$ac_ext >&5
18170
ac_cv_func_shl_load=no
18172
rm -f conftest.err conftest.$ac_objext \
18173
conftest$ac_exeext conftest.$ac_ext
18175
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18176
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18177
if test $ac_cv_func_shl_load = yes; then
18178
lt_cv_dlopen="shl_load"
18180
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18181
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18182
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18183
echo $ECHO_N "(cached) $ECHO_C" >&6
18185
ac_check_lib_save_LIBS=$LIBS
18187
cat >conftest.$ac_ext <<_ACEOF
18190
cat confdefs.h >>conftest.$ac_ext
18191
cat >>conftest.$ac_ext <<_ACEOF
18192
/* end confdefs.h. */
18194
/* Override any gcc2 internal prototype to avoid an error. */
18198
/* We use char because int might match the return type of a gcc2
18199
builtin and then its argument prototype would still apply. */
18209
rm -f conftest.$ac_objext conftest$ac_exeext
18210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211
(eval $ac_link) 2>conftest.er1
18213
grep -v '^ *+' conftest.er1 >conftest.err
18215
cat conftest.err >&5
18216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217
(exit $ac_status); } &&
18218
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220
(eval $ac_try) 2>&5
18222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223
(exit $ac_status); }; } &&
18224
{ ac_try='test -s conftest$ac_exeext'
18225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226
(eval $ac_try) 2>&5
18228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229
(exit $ac_status); }; }; then
18230
ac_cv_lib_dld_shl_load=yes
18232
echo "$as_me: failed program was:" >&5
18233
sed 's/^/| /' conftest.$ac_ext >&5
18235
ac_cv_lib_dld_shl_load=no
18237
rm -f conftest.err conftest.$ac_objext \
18238
conftest$ac_exeext conftest.$ac_ext
18239
LIBS=$ac_check_lib_save_LIBS
18241
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18242
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18243
if test $ac_cv_lib_dld_shl_load = yes; then
18244
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18246
echo "$as_me:$LINENO: checking for dlopen" >&5
18247
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18248
if test "${ac_cv_func_dlopen+set}" = set; then
18249
echo $ECHO_N "(cached) $ECHO_C" >&6
18251
cat >conftest.$ac_ext <<_ACEOF
18254
cat confdefs.h >>conftest.$ac_ext
18255
cat >>conftest.$ac_ext <<_ACEOF
18256
/* end confdefs.h. */
18257
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18258
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18259
#define dlopen innocuous_dlopen
18261
/* System header to define __stub macros and hopefully few prototypes,
18262
which can conflict with char dlopen (); below.
18263
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264
<limits.h> exists even on freestanding compilers. */
18267
# include <limits.h>
18269
# include <assert.h>
18274
/* Override any gcc2 internal prototype to avoid an error. */
18279
/* We use char because int might match the return type of a gcc2
18280
builtin and then its argument prototype would still apply. */
18282
/* The GNU C library defines this for functions which it implements
18283
to always fail with ENOSYS. Some functions are actually named
18284
something starting with __ and the normal name is an alias. */
18285
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18288
char (*f) () = dlopen;
18297
return f != dlopen;
18302
rm -f conftest.$ac_objext conftest$ac_exeext
18303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304
(eval $ac_link) 2>conftest.er1
18306
grep -v '^ *+' conftest.er1 >conftest.err
18308
cat conftest.err >&5
18309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310
(exit $ac_status); } &&
18311
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313
(eval $ac_try) 2>&5
18315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316
(exit $ac_status); }; } &&
18317
{ ac_try='test -s conftest$ac_exeext'
18318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319
(eval $ac_try) 2>&5
18321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322
(exit $ac_status); }; }; then
18323
ac_cv_func_dlopen=yes
18325
echo "$as_me: failed program was:" >&5
18326
sed 's/^/| /' conftest.$ac_ext >&5
18328
ac_cv_func_dlopen=no
18330
rm -f conftest.err conftest.$ac_objext \
18331
conftest$ac_exeext conftest.$ac_ext
18333
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18334
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18335
if test $ac_cv_func_dlopen = yes; then
18336
lt_cv_dlopen="dlopen"
18338
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18339
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18340
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18341
echo $ECHO_N "(cached) $ECHO_C" >&6
18343
ac_check_lib_save_LIBS=$LIBS
18345
cat >conftest.$ac_ext <<_ACEOF
18348
cat confdefs.h >>conftest.$ac_ext
18349
cat >>conftest.$ac_ext <<_ACEOF
18350
/* end confdefs.h. */
18352
/* Override any gcc2 internal prototype to avoid an error. */
18356
/* We use char because int might match the return type of a gcc2
18357
builtin and then its argument prototype would still apply. */
18367
rm -f conftest.$ac_objext conftest$ac_exeext
18368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369
(eval $ac_link) 2>conftest.er1
18371
grep -v '^ *+' conftest.er1 >conftest.err
18373
cat conftest.err >&5
18374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375
(exit $ac_status); } &&
18376
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378
(eval $ac_try) 2>&5
18380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381
(exit $ac_status); }; } &&
18382
{ ac_try='test -s conftest$ac_exeext'
18383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384
(eval $ac_try) 2>&5
18386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387
(exit $ac_status); }; }; then
18388
ac_cv_lib_dl_dlopen=yes
18390
echo "$as_me: failed program was:" >&5
18391
sed 's/^/| /' conftest.$ac_ext >&5
18393
ac_cv_lib_dl_dlopen=no
18395
rm -f conftest.err conftest.$ac_objext \
18396
conftest$ac_exeext conftest.$ac_ext
18397
LIBS=$ac_check_lib_save_LIBS
18399
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18400
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18401
if test $ac_cv_lib_dl_dlopen = yes; then
18402
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18404
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18405
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18406
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18407
echo $ECHO_N "(cached) $ECHO_C" >&6
18409
ac_check_lib_save_LIBS=$LIBS
18410
LIBS="-lsvld $LIBS"
18411
cat >conftest.$ac_ext <<_ACEOF
18414
cat confdefs.h >>conftest.$ac_ext
18415
cat >>conftest.$ac_ext <<_ACEOF
18416
/* end confdefs.h. */
18418
/* Override any gcc2 internal prototype to avoid an error. */
18422
/* We use char because int might match the return type of a gcc2
18423
builtin and then its argument prototype would still apply. */
18433
rm -f conftest.$ac_objext conftest$ac_exeext
18434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435
(eval $ac_link) 2>conftest.er1
18437
grep -v '^ *+' conftest.er1 >conftest.err
18439
cat conftest.err >&5
18440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441
(exit $ac_status); } &&
18442
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444
(eval $ac_try) 2>&5
18446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447
(exit $ac_status); }; } &&
18448
{ ac_try='test -s conftest$ac_exeext'
18449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450
(eval $ac_try) 2>&5
18452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453
(exit $ac_status); }; }; then
18454
ac_cv_lib_svld_dlopen=yes
18456
echo "$as_me: failed program was:" >&5
18457
sed 's/^/| /' conftest.$ac_ext >&5
18459
ac_cv_lib_svld_dlopen=no
18461
rm -f conftest.err conftest.$ac_objext \
18462
conftest$ac_exeext conftest.$ac_ext
18463
LIBS=$ac_check_lib_save_LIBS
18465
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18466
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18467
if test $ac_cv_lib_svld_dlopen = yes; then
18468
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18470
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18471
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18472
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18473
echo $ECHO_N "(cached) $ECHO_C" >&6
18475
ac_check_lib_save_LIBS=$LIBS
18477
cat >conftest.$ac_ext <<_ACEOF
18480
cat confdefs.h >>conftest.$ac_ext
18481
cat >>conftest.$ac_ext <<_ACEOF
18482
/* end confdefs.h. */
18484
/* Override any gcc2 internal prototype to avoid an error. */
18488
/* We use char because int might match the return type of a gcc2
18489
builtin and then its argument prototype would still apply. */
18499
rm -f conftest.$ac_objext conftest$ac_exeext
18500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18501
(eval $ac_link) 2>conftest.er1
18503
grep -v '^ *+' conftest.er1 >conftest.err
18505
cat conftest.err >&5
18506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507
(exit $ac_status); } &&
18508
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510
(eval $ac_try) 2>&5
18512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513
(exit $ac_status); }; } &&
18514
{ ac_try='test -s conftest$ac_exeext'
18515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516
(eval $ac_try) 2>&5
18518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519
(exit $ac_status); }; }; then
18520
ac_cv_lib_dld_dld_link=yes
18522
echo "$as_me: failed program was:" >&5
18523
sed 's/^/| /' conftest.$ac_ext >&5
18525
ac_cv_lib_dld_dld_link=no
18527
rm -f conftest.err conftest.$ac_objext \
18528
conftest$ac_exeext conftest.$ac_ext
18529
LIBS=$ac_check_lib_save_LIBS
18531
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18532
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18533
if test $ac_cv_lib_dld_dld_link = yes; then
18534
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18555
if test "x$lt_cv_dlopen" != xno; then
18561
case $lt_cv_dlopen in
18563
save_CPPFLAGS="$CPPFLAGS"
18564
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18566
save_LDFLAGS="$LDFLAGS"
18567
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18570
LIBS="$lt_cv_dlopen_libs $LIBS"
18572
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18573
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18574
if test "${lt_cv_dlopen_self+set}" = set; then
18575
echo $ECHO_N "(cached) $ECHO_C" >&6
18577
if test "$cross_compiling" = yes; then :
18578
lt_cv_dlopen_self=cross
18580
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18581
lt_status=$lt_dlunknown
18582
cat > conftest.$ac_ext <<EOF
18583
#line __oline__ "configure"
18584
#include "confdefs.h"
18593
# define LT_DLGLOBAL RTLD_GLOBAL
18596
# define LT_DLGLOBAL DL_GLOBAL
18598
# define LT_DLGLOBAL 0
18602
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18603
find out it does not work in some platform. */
18604
#ifndef LT_DLLAZY_OR_NOW
18606
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18609
# define LT_DLLAZY_OR_NOW DL_LAZY
18612
# define LT_DLLAZY_OR_NOW RTLD_NOW
18615
# define LT_DLLAZY_OR_NOW DL_NOW
18617
# define LT_DLLAZY_OR_NOW 0
18625
extern "C" void exit (int);
18628
void fnord() { int i=42;}
18631
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18632
int status = $lt_dlunknown;
18636
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18637
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18638
/* dlclose (self); */
18644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645
(eval $ac_link) 2>&5
18647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18649
(./conftest; exit; ) >&5 2>/dev/null
18651
case x$lt_status in
18652
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18653
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18654
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18657
# compilation failed
18658
lt_cv_dlopen_self=no
18665
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18666
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18668
if test "x$lt_cv_dlopen_self" = xyes; then
18669
LDFLAGS="$LDFLAGS $link_static_flag"
18670
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18671
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18672
if test "${lt_cv_dlopen_self_static+set}" = set; then
18673
echo $ECHO_N "(cached) $ECHO_C" >&6
18675
if test "$cross_compiling" = yes; then :
18676
lt_cv_dlopen_self_static=cross
18678
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18679
lt_status=$lt_dlunknown
18680
cat > conftest.$ac_ext <<EOF
18681
#line __oline__ "configure"
18682
#include "confdefs.h"
18691
# define LT_DLGLOBAL RTLD_GLOBAL
18694
# define LT_DLGLOBAL DL_GLOBAL
18696
# define LT_DLGLOBAL 0
18700
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18701
find out it does not work in some platform. */
18702
#ifndef LT_DLLAZY_OR_NOW
18704
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18707
# define LT_DLLAZY_OR_NOW DL_LAZY
18710
# define LT_DLLAZY_OR_NOW RTLD_NOW
18713
# define LT_DLLAZY_OR_NOW DL_NOW
18715
# define LT_DLLAZY_OR_NOW 0
18723
extern "C" void exit (int);
18726
void fnord() { int i=42;}
18729
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18730
int status = $lt_dlunknown;
18734
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18735
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18736
/* dlclose (self); */
18742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743
(eval $ac_link) 2>&5
18745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18747
(./conftest; exit; ) >&5 2>/dev/null
18749
case x$lt_status in
18750
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18751
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18752
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18755
# compilation failed
18756
lt_cv_dlopen_self_static=no
18763
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18764
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18767
CPPFLAGS="$save_CPPFLAGS"
18768
LDFLAGS="$save_LDFLAGS"
18773
case $lt_cv_dlopen_self in
18774
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18775
*) enable_dlopen_self=unknown ;;
18778
case $lt_cv_dlopen_self_static in
18779
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18780
*) enable_dlopen_self_static=unknown ;;
18785
# The else clause should only fire when bootstrapping the
18786
# libtool distribution, otherwise you forgot to ship ltmain.sh
18787
# with your package, and you will get complaints that there are
18788
# no rules to generate ltmain.sh.
18789
if test -f "$ltmain"; then
18790
# See if we are running on zsh, and set the options which allow our commands through
18791
# without removal of \ escapes.
18792
if test -n "${ZSH_VERSION+set}" ; then
18793
setopt NO_GLOB_SUBST
18795
# Now quote all the things that may contain metacharacters while being
18796
# careful not to overquote the AC_SUBSTed values. We take copies of the
18797
# variables and quote the copies for generation of the libtool script.
18798
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18800
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18801
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18802
deplibs_check_method reload_flag reload_cmds need_locks \
18803
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18804
lt_cv_sys_global_symbol_to_c_name_address \
18805
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18806
old_postinstall_cmds old_postuninstall_cmds \
18810
lt_prog_compiler_wl_GCJ \
18811
lt_prog_compiler_pic_GCJ \
18812
lt_prog_compiler_static_GCJ \
18813
lt_prog_compiler_no_builtin_flag_GCJ \
18814
export_dynamic_flag_spec_GCJ \
18815
thread_safe_flag_spec_GCJ \
18816
whole_archive_flag_spec_GCJ \
18817
enable_shared_with_static_runtimes_GCJ \
18818
old_archive_cmds_GCJ \
18819
old_archive_from_new_cmds_GCJ \
18820
predep_objects_GCJ \
18821
postdep_objects_GCJ \
18824
compiler_lib_search_path_GCJ \
18826
archive_expsym_cmds_GCJ \
18827
postinstall_cmds_GCJ \
18828
postuninstall_cmds_GCJ \
18829
old_archive_from_expsyms_cmds_GCJ \
18830
allow_undefined_flag_GCJ \
18831
no_undefined_flag_GCJ \
18832
export_symbols_cmds_GCJ \
18833
hardcode_libdir_flag_spec_GCJ \
18834
hardcode_libdir_flag_spec_ld_GCJ \
18835
hardcode_libdir_separator_GCJ \
18836
hardcode_automatic_GCJ \
18838
module_expsym_cmds_GCJ \
18839
lt_cv_prog_compiler_c_o_GCJ \
18840
exclude_expsyms_GCJ \
18841
include_expsyms_GCJ; do
18844
old_archive_cmds_GCJ | \
18845
old_archive_from_new_cmds_GCJ | \
18846
archive_cmds_GCJ | \
18847
archive_expsym_cmds_GCJ | \
18848
module_cmds_GCJ | \
18849
module_expsym_cmds_GCJ | \
18850
old_archive_from_expsyms_cmds_GCJ | \
18851
export_symbols_cmds_GCJ | \
18852
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18853
postinstall_cmds | postuninstall_cmds | \
18854
old_postinstall_cmds | old_postuninstall_cmds | \
18855
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18856
# Double-quote double-evaled strings.
18857
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18860
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18866
*'\$0 --fallback-echo"')
18867
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18873
cat <<__EOF__ >> "$cfgfile"
18874
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18876
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18878
# Shell to use when invoking shell scripts.
18881
# Whether or not to build shared libraries.
18882
build_libtool_libs=$enable_shared
18884
# Whether or not to build static libraries.
18885
build_old_libs=$enable_static
18887
# Whether or not to add -lc for building shared libraries.
18888
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18890
# Whether or not to disallow shared libs when runtime libs are static
18891
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18893
# Whether or not to optimize for fast installation.
18894
fast_install=$enable_fast_install
18897
host_alias=$host_alias
18901
# The build system.
18902
build_alias=$build_alias
18906
# An echo program that does not interpret backslashes.
18911
AR_FLAGS=$lt_AR_FLAGS
18916
# A language-specific compiler.
18917
CC=$lt_compiler_GCJ
18919
# Is the compiler the GNU C compiler?
18925
# The linker used to build libraries.
18928
# Whether we need hard or soft links.
18931
# A BSD-compatible nm program.
18934
# A symbol stripping program
18937
# Used to examine libraries when file_magic_cmd begins "file"
18938
MAGIC_CMD=$MAGIC_CMD
18940
# Used on cygwin: DLL creation program.
18943
# Used on cygwin: object dumper.
18946
# Used on cygwin: assembler.
18949
# The name of the directory that contains temporary libtool files.
18952
# How to create reloadable object files.
18953
reload_flag=$lt_reload_flag
18954
reload_cmds=$lt_reload_cmds
18956
# How to pass a linker flag through the compiler.
18957
wl=$lt_lt_prog_compiler_wl_GCJ
18959
# Object file suffix (normally "o").
18960
objext="$ac_objext"
18962
# Old archive suffix (normally "a").
18965
# Shared library suffix (normally ".so").
18966
shrext_cmds='$shrext_cmds'
18968
# Executable file suffix (normally "").
18971
# Additional compiler flags for building library objects.
18972
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18975
# What is the maximum length of a command?
18976
max_cmd_len=$lt_cv_sys_max_cmd_len
18978
# Does compiler simultaneously support -c and -o options?
18979
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18981
# Must we lock files when doing compilation?
18982
need_locks=$lt_need_locks
18984
# Do we need the lib prefix for modules?
18985
need_lib_prefix=$need_lib_prefix
18987
# Do we need a version for libraries?
18988
need_version=$need_version
18990
# Whether dlopen is supported.
18991
dlopen_support=$enable_dlopen
18993
# Whether dlopen of programs is supported.
18994
dlopen_self=$enable_dlopen_self
18996
# Whether dlopen of statically linked programs is supported.
18997
dlopen_self_static=$enable_dlopen_self_static
18999
# Compiler flag to prevent dynamic linking.
19000
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19002
# Compiler flag to turn off builtin functions.
19003
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19005
# Compiler flag to allow reflexive dlopens.
19006
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19008
# Compiler flag to generate shared objects directly from archives.
19009
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19011
# Compiler flag to generate thread-safe objects.
19012
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19014
# Library versioning type.
19015
version_type=$version_type
19017
# Format of library name prefix.
19018
libname_spec=$lt_libname_spec
19020
# List of archive names. First name is the real one, the rest are links.
19021
# The last name is the one that the linker finds with -lNAME.
19022
library_names_spec=$lt_library_names_spec
19024
# The coded name of the library, if different from the real name.
19025
soname_spec=$lt_soname_spec
19027
# Commands used to build and install an old-style archive.
19029
old_archive_cmds=$lt_old_archive_cmds_GCJ
19030
old_postinstall_cmds=$lt_old_postinstall_cmds
19031
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19033
# Create an old-style archive from a shared archive.
19034
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19036
# Create a temporary old-style archive to link instead of a shared archive.
19037
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19039
# Commands used to build and install a shared archive.
19040
archive_cmds=$lt_archive_cmds_GCJ
19041
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19042
postinstall_cmds=$lt_postinstall_cmds
19043
postuninstall_cmds=$lt_postuninstall_cmds
19045
# Commands used to build a loadable module (assumed same as above if empty)
19046
module_cmds=$lt_module_cmds_GCJ
19047
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19049
# Commands to strip libraries.
19050
old_striplib=$lt_old_striplib
19051
striplib=$lt_striplib
19053
# Dependencies to place before the objects being linked to create a
19055
predep_objects=$lt_predep_objects_GCJ
19057
# Dependencies to place after the objects being linked to create a
19059
postdep_objects=$lt_postdep_objects_GCJ
19061
# Dependencies to place before the objects being linked to create a
19063
predeps=$lt_predeps_GCJ
19065
# Dependencies to place after the objects being linked to create a
19067
postdeps=$lt_postdeps_GCJ
19069
# The library search path used internally by the compiler when linking
19070
# a shared library.
19071
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19073
# Method to check whether dependent libraries are shared objects.
19074
deplibs_check_method=$lt_deplibs_check_method
19076
# Command to use when deplibs_check_method == file_magic.
19077
file_magic_cmd=$lt_file_magic_cmd
19079
# Flag that allows shared libraries with undefined symbols to be built.
19080
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19082
# Flag that forces no undefined symbols.
19083
no_undefined_flag=$lt_no_undefined_flag_GCJ
19085
# Commands used to finish a libtool library installation in a directory.
19086
finish_cmds=$lt_finish_cmds
19088
# Same as above, but a single script fragment to be evaled but not shown.
19089
finish_eval=$lt_finish_eval
19091
# Take the output of nm and produce a listing of raw symbols and C names.
19092
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19094
# Transform the output of nm in a proper C declaration
19095
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19097
# Transform the output of nm in a C name address pair
19098
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19100
# This is the shared library runtime path variable.
19101
runpath_var=$runpath_var
19103
# This is the shared library path variable.
19104
shlibpath_var=$shlibpath_var
19106
# Is shlibpath searched before the hard-coded library search path?
19107
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19109
# How to hardcode a shared library path into an executable.
19110
hardcode_action=$hardcode_action_GCJ
19112
# Whether we should hardcode library paths into libraries.
19113
hardcode_into_libs=$hardcode_into_libs
19115
# Flag to hardcode \$libdir into a binary during linking.
19116
# This must work even if \$libdir does not exist.
19117
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19119
# If ld is used when linking, flag to hardcode \$libdir into
19120
# a binary during linking. This must work even if \$libdir does
19122
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19124
# Whether we need a single -rpath flag with a separated argument.
19125
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19127
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19128
# resulting binary.
19129
hardcode_direct=$hardcode_direct_GCJ
19131
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19132
# resulting binary.
19133
hardcode_minus_L=$hardcode_minus_L_GCJ
19135
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19136
# the resulting binary.
19137
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19139
# Set to yes if building a shared library automatically hardcodes DIR into the library
19140
# and all subsequent libraries and executables linked against it.
19141
hardcode_automatic=$hardcode_automatic_GCJ
19143
# Variables whose values should be saved in libtool wrapper scripts and
19144
# restored at relink time.
19145
variables_saved_for_relink="$variables_saved_for_relink"
19147
# Whether libtool must link a program against all its dependency libraries.
19148
link_all_deplibs=$link_all_deplibs_GCJ
19150
# Compile-time system search path for libraries
19151
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19153
# Run-time system search path for libraries
19154
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19156
# Fix the shell variable \$srcfile for the compiler.
19157
fix_srcfile_path="$fix_srcfile_path_GCJ"
19159
# Set to yes if exported symbols are required.
19160
always_export_symbols=$always_export_symbols_GCJ
19162
# The commands to list exported symbols.
19163
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19165
# The commands to extract the exported symbol list from a shared archive.
19166
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19168
# Symbols that should not be listed in the preloaded symbols.
19169
exclude_expsyms=$lt_exclude_expsyms_GCJ
19171
# Symbols that must always be exported.
19172
include_expsyms=$lt_include_expsyms_GCJ
19174
# ### END LIBTOOL TAG CONFIG: $tagname
19180
# If there is no Makefile yet, we rely on a make rule to execute
19181
# `config.status --recheck' to rerun these tests and create the
19182
# libtool script then.
19183
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19184
if test -f "$ltmain_in"; then
19185
test -f Makefile && make "$ltmain"
19191
ac_cpp='$CPP $CPPFLAGS'
19192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19207
# Source file extension for RC test sources.
19210
# Object file extension for compiled RC test sources.
19214
# Code to be used in simple compile tests
19215
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19217
# Code to be used in simple link tests
19218
lt_simple_link_test_code="$lt_simple_compile_test_code"
19220
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19222
# If no C compiler was specified, use CC.
19225
# Allow CC to be a program name with arguments.
19229
# save warnings/boilerplate of simple test code
19230
ac_outfile=conftest.$ac_objext
19231
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19232
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19233
_lt_compiler_boilerplate=`cat conftest.err`
19236
ac_outfile=conftest.$ac_objext
19237
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19238
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19239
_lt_linker_boilerplate=`cat conftest.err`
19243
# Allow CC to be a program name with arguments.
19248
for cc_temp in $compiler""; do
19250
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19251
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19256
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19258
lt_cv_prog_compiler_c_o_RC=yes
19260
# The else clause should only fire when bootstrapping the
19261
# libtool distribution, otherwise you forgot to ship ltmain.sh
19262
# with your package, and you will get complaints that there are
19263
# no rules to generate ltmain.sh.
19264
if test -f "$ltmain"; then
19265
# See if we are running on zsh, and set the options which allow our commands through
19266
# without removal of \ escapes.
19267
if test -n "${ZSH_VERSION+set}" ; then
19268
setopt NO_GLOB_SUBST
19270
# Now quote all the things that may contain metacharacters while being
19271
# careful not to overquote the AC_SUBSTed values. We take copies of the
19272
# variables and quote the copies for generation of the libtool script.
19273
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19275
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19276
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19277
deplibs_check_method reload_flag reload_cmds need_locks \
19278
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19279
lt_cv_sys_global_symbol_to_c_name_address \
19280
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19281
old_postinstall_cmds old_postuninstall_cmds \
19285
lt_prog_compiler_wl_RC \
19286
lt_prog_compiler_pic_RC \
19287
lt_prog_compiler_static_RC \
19288
lt_prog_compiler_no_builtin_flag_RC \
19289
export_dynamic_flag_spec_RC \
19290
thread_safe_flag_spec_RC \
19291
whole_archive_flag_spec_RC \
19292
enable_shared_with_static_runtimes_RC \
19293
old_archive_cmds_RC \
19294
old_archive_from_new_cmds_RC \
19295
predep_objects_RC \
19296
postdep_objects_RC \
19299
compiler_lib_search_path_RC \
19301
archive_expsym_cmds_RC \
19302
postinstall_cmds_RC \
19303
postuninstall_cmds_RC \
19304
old_archive_from_expsyms_cmds_RC \
19305
allow_undefined_flag_RC \
19306
no_undefined_flag_RC \
19307
export_symbols_cmds_RC \
19308
hardcode_libdir_flag_spec_RC \
19309
hardcode_libdir_flag_spec_ld_RC \
19310
hardcode_libdir_separator_RC \
19311
hardcode_automatic_RC \
19313
module_expsym_cmds_RC \
19314
lt_cv_prog_compiler_c_o_RC \
19315
exclude_expsyms_RC \
19316
include_expsyms_RC; do
19319
old_archive_cmds_RC | \
19320
old_archive_from_new_cmds_RC | \
19321
archive_cmds_RC | \
19322
archive_expsym_cmds_RC | \
19324
module_expsym_cmds_RC | \
19325
old_archive_from_expsyms_cmds_RC | \
19326
export_symbols_cmds_RC | \
19327
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19328
postinstall_cmds | postuninstall_cmds | \
19329
old_postinstall_cmds | old_postuninstall_cmds | \
19330
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19331
# Double-quote double-evaled strings.
19332
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19335
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19341
*'\$0 --fallback-echo"')
19342
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19348
cat <<__EOF__ >> "$cfgfile"
19349
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19351
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19353
# Shell to use when invoking shell scripts.
19356
# Whether or not to build shared libraries.
19357
build_libtool_libs=$enable_shared
19359
# Whether or not to build static libraries.
19360
build_old_libs=$enable_static
19362
# Whether or not to add -lc for building shared libraries.
19363
build_libtool_need_lc=$archive_cmds_need_lc_RC
19365
# Whether or not to disallow shared libs when runtime libs are static
19366
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19368
# Whether or not to optimize for fast installation.
19369
fast_install=$enable_fast_install
19372
host_alias=$host_alias
19376
# The build system.
19377
build_alias=$build_alias
19381
# An echo program that does not interpret backslashes.
19386
AR_FLAGS=$lt_AR_FLAGS
19391
# A language-specific compiler.
19394
# Is the compiler the GNU C compiler?
19400
# The linker used to build libraries.
19403
# Whether we need hard or soft links.
19406
# A BSD-compatible nm program.
19409
# A symbol stripping program
19412
# Used to examine libraries when file_magic_cmd begins "file"
19413
MAGIC_CMD=$MAGIC_CMD
19415
# Used on cygwin: DLL creation program.
19418
# Used on cygwin: object dumper.
19421
# Used on cygwin: assembler.
19424
# The name of the directory that contains temporary libtool files.
19427
# How to create reloadable object files.
19428
reload_flag=$lt_reload_flag
19429
reload_cmds=$lt_reload_cmds
19431
# How to pass a linker flag through the compiler.
19432
wl=$lt_lt_prog_compiler_wl_RC
19434
# Object file suffix (normally "o").
19435
objext="$ac_objext"
19437
# Old archive suffix (normally "a").
19440
# Shared library suffix (normally ".so").
19441
shrext_cmds='$shrext_cmds'
19443
# Executable file suffix (normally "").
19446
# Additional compiler flags for building library objects.
19447
pic_flag=$lt_lt_prog_compiler_pic_RC
19450
# What is the maximum length of a command?
19451
max_cmd_len=$lt_cv_sys_max_cmd_len
19453
# Does compiler simultaneously support -c and -o options?
19454
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19456
# Must we lock files when doing compilation?
19457
need_locks=$lt_need_locks
19459
# Do we need the lib prefix for modules?
19460
need_lib_prefix=$need_lib_prefix
19462
# Do we need a version for libraries?
19463
need_version=$need_version
19465
# Whether dlopen is supported.
19466
dlopen_support=$enable_dlopen
19468
# Whether dlopen of programs is supported.
19469
dlopen_self=$enable_dlopen_self
19471
# Whether dlopen of statically linked programs is supported.
19472
dlopen_self_static=$enable_dlopen_self_static
19474
# Compiler flag to prevent dynamic linking.
19475
link_static_flag=$lt_lt_prog_compiler_static_RC
19477
# Compiler flag to turn off builtin functions.
19478
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19480
# Compiler flag to allow reflexive dlopens.
19481
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19483
# Compiler flag to generate shared objects directly from archives.
19484
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19486
# Compiler flag to generate thread-safe objects.
19487
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19489
# Library versioning type.
19490
version_type=$version_type
19492
# Format of library name prefix.
19493
libname_spec=$lt_libname_spec
19495
# List of archive names. First name is the real one, the rest are links.
19496
# The last name is the one that the linker finds with -lNAME.
19497
library_names_spec=$lt_library_names_spec
19499
# The coded name of the library, if different from the real name.
19500
soname_spec=$lt_soname_spec
19502
# Commands used to build and install an old-style archive.
19504
old_archive_cmds=$lt_old_archive_cmds_RC
19505
old_postinstall_cmds=$lt_old_postinstall_cmds
19506
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19508
# Create an old-style archive from a shared archive.
19509
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19511
# Create a temporary old-style archive to link instead of a shared archive.
19512
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19514
# Commands used to build and install a shared archive.
19515
archive_cmds=$lt_archive_cmds_RC
19516
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19517
postinstall_cmds=$lt_postinstall_cmds
19518
postuninstall_cmds=$lt_postuninstall_cmds
19520
# Commands used to build a loadable module (assumed same as above if empty)
19521
module_cmds=$lt_module_cmds_RC
19522
module_expsym_cmds=$lt_module_expsym_cmds_RC
19524
# Commands to strip libraries.
19525
old_striplib=$lt_old_striplib
19526
striplib=$lt_striplib
19528
# Dependencies to place before the objects being linked to create a
19530
predep_objects=$lt_predep_objects_RC
19532
# Dependencies to place after the objects being linked to create a
19534
postdep_objects=$lt_postdep_objects_RC
19536
# Dependencies to place before the objects being linked to create a
19538
predeps=$lt_predeps_RC
19540
# Dependencies to place after the objects being linked to create a
19542
postdeps=$lt_postdeps_RC
19544
# The library search path used internally by the compiler when linking
19545
# a shared library.
19546
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19548
# Method to check whether dependent libraries are shared objects.
19549
deplibs_check_method=$lt_deplibs_check_method
19551
# Command to use when deplibs_check_method == file_magic.
19552
file_magic_cmd=$lt_file_magic_cmd
19554
# Flag that allows shared libraries with undefined symbols to be built.
19555
allow_undefined_flag=$lt_allow_undefined_flag_RC
19557
# Flag that forces no undefined symbols.
19558
no_undefined_flag=$lt_no_undefined_flag_RC
19560
# Commands used to finish a libtool library installation in a directory.
19561
finish_cmds=$lt_finish_cmds
19563
# Same as above, but a single script fragment to be evaled but not shown.
19564
finish_eval=$lt_finish_eval
19566
# Take the output of nm and produce a listing of raw symbols and C names.
19567
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19569
# Transform the output of nm in a proper C declaration
19570
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19572
# Transform the output of nm in a C name address pair
19573
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19575
# This is the shared library runtime path variable.
19576
runpath_var=$runpath_var
19578
# This is the shared library path variable.
19579
shlibpath_var=$shlibpath_var
19581
# Is shlibpath searched before the hard-coded library search path?
19582
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19584
# How to hardcode a shared library path into an executable.
19585
hardcode_action=$hardcode_action_RC
19587
# Whether we should hardcode library paths into libraries.
19588
hardcode_into_libs=$hardcode_into_libs
19590
# Flag to hardcode \$libdir into a binary during linking.
19591
# This must work even if \$libdir does not exist.
19592
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19594
# If ld is used when linking, flag to hardcode \$libdir into
19595
# a binary during linking. This must work even if \$libdir does
19597
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19599
# Whether we need a single -rpath flag with a separated argument.
19600
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19602
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19603
# resulting binary.
19604
hardcode_direct=$hardcode_direct_RC
19606
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19607
# resulting binary.
19608
hardcode_minus_L=$hardcode_minus_L_RC
19610
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19611
# the resulting binary.
19612
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19614
# Set to yes if building a shared library automatically hardcodes DIR into the library
19615
# and all subsequent libraries and executables linked against it.
19616
hardcode_automatic=$hardcode_automatic_RC
19618
# Variables whose values should be saved in libtool wrapper scripts and
19619
# restored at relink time.
19620
variables_saved_for_relink="$variables_saved_for_relink"
19622
# Whether libtool must link a program against all its dependency libraries.
19623
link_all_deplibs=$link_all_deplibs_RC
19625
# Compile-time system search path for libraries
19626
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19628
# Run-time system search path for libraries
19629
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19631
# Fix the shell variable \$srcfile for the compiler.
19632
fix_srcfile_path="$fix_srcfile_path_RC"
19634
# Set to yes if exported symbols are required.
19635
always_export_symbols=$always_export_symbols_RC
19637
# The commands to list exported symbols.
19638
export_symbols_cmds=$lt_export_symbols_cmds_RC
19640
# The commands to extract the exported symbol list from a shared archive.
19641
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19643
# Symbols that should not be listed in the preloaded symbols.
19644
exclude_expsyms=$lt_exclude_expsyms_RC
19646
# Symbols that must always be exported.
19647
include_expsyms=$lt_include_expsyms_RC
19649
# ### END LIBTOOL TAG CONFIG: $tagname
19655
# If there is no Makefile yet, we rely on a make rule to execute
19656
# `config.status --recheck' to rerun these tests and create the
19657
# libtool script then.
19658
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19659
if test -f "$ltmain_in"; then
19660
test -f Makefile && make "$ltmain"
19666
ac_cpp='$CPP $CPPFLAGS'
19667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19677
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19678
{ (exit 1); exit 1; }; }
19682
# Append the new tag name to the list of available tags.
19683
if test -n "$tagname" ; then
19684
available_tags="$available_tags $tagname"
19690
# Now substitute the updated list of available tags.
19691
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19692
mv "${ofile}T" "$ofile"
19696
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19697
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19698
{ (exit 1); exit 1; }; }
19704
# This can be used to rebuild libtool when needed
19705
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19707
# Always use our own libtool.
19708
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19710
# Prevent multiple expansion
19732
echo "$as_me:$LINENO: checking for library containing strerror" >&5
19733
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
19734
if test "${ac_cv_search_strerror+set}" = set; then
19735
echo $ECHO_N "(cached) $ECHO_C" >&6
19737
ac_func_search_save_LIBS=$LIBS
19738
ac_cv_search_strerror=no
19739
cat >conftest.$ac_ext <<_ACEOF
19742
cat confdefs.h >>conftest.$ac_ext
19743
cat >>conftest.$ac_ext <<_ACEOF
19744
/* end confdefs.h. */
19746
/* Override any gcc2 internal prototype to avoid an error. */
19750
/* We use char because int might match the return type of a gcc2
19751
builtin and then its argument prototype would still apply. */
19761
rm -f conftest.$ac_objext conftest$ac_exeext
19762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19763
(eval $ac_link) 2>conftest.er1
19765
grep -v '^ *+' conftest.er1 >conftest.err
19767
cat conftest.err >&5
19768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769
(exit $ac_status); } &&
19770
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772
(eval $ac_try) 2>&5
19774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775
(exit $ac_status); }; } &&
19776
{ ac_try='test -s conftest$ac_exeext'
19777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778
(eval $ac_try) 2>&5
19780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781
(exit $ac_status); }; }; then
19782
ac_cv_search_strerror="none required"
19784
echo "$as_me: failed program was:" >&5
19785
sed 's/^/| /' conftest.$ac_ext >&5
19788
rm -f conftest.err conftest.$ac_objext \
19789
conftest$ac_exeext conftest.$ac_ext
19790
if test "$ac_cv_search_strerror" = no; then
19791
for ac_lib in cposix; do
19792
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19793
cat >conftest.$ac_ext <<_ACEOF
19796
cat confdefs.h >>conftest.$ac_ext
19797
cat >>conftest.$ac_ext <<_ACEOF
19798
/* end confdefs.h. */
19800
/* Override any gcc2 internal prototype to avoid an error. */
19804
/* We use char because int might match the return type of a gcc2
19805
builtin and then its argument prototype would still apply. */
19815
rm -f conftest.$ac_objext conftest$ac_exeext
19816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19817
(eval $ac_link) 2>conftest.er1
19819
grep -v '^ *+' conftest.er1 >conftest.err
19821
cat conftest.err >&5
19822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823
(exit $ac_status); } &&
19824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826
(eval $ac_try) 2>&5
19828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829
(exit $ac_status); }; } &&
19830
{ ac_try='test -s conftest$ac_exeext'
19831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832
(eval $ac_try) 2>&5
19834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835
(exit $ac_status); }; }; then
19836
ac_cv_search_strerror="-l$ac_lib"
19839
echo "$as_me: failed program was:" >&5
19840
sed 's/^/| /' conftest.$ac_ext >&5
19843
rm -f conftest.err conftest.$ac_objext \
19844
conftest$ac_exeext conftest.$ac_ext
19847
LIBS=$ac_func_search_save_LIBS
19849
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
19850
echo "${ECHO_T}$ac_cv_search_strerror" >&6
19851
if test "$ac_cv_search_strerror" != no; then
19852
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
19856
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19857
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19858
if test "${ac_cv_c_bigendian+set}" = set; then
19859
echo $ECHO_N "(cached) $ECHO_C" >&6
19861
# See if sys/param.h defines the BYTE_ORDER macro.
19862
cat >conftest.$ac_ext <<_ACEOF
19865
cat confdefs.h >>conftest.$ac_ext
19866
cat >>conftest.$ac_ext <<_ACEOF
19867
/* end confdefs.h. */
19868
#include <sys/types.h>
19869
#include <sys/param.h>
19874
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19875
bogus endian macros
19882
rm -f conftest.$ac_objext
19883
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884
(eval $ac_compile) 2>conftest.er1
19886
grep -v '^ *+' conftest.er1 >conftest.err
19888
cat conftest.err >&5
19889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890
(exit $ac_status); } &&
19891
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893
(eval $ac_try) 2>&5
19895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896
(exit $ac_status); }; } &&
19897
{ ac_try='test -s conftest.$ac_objext'
19898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899
(eval $ac_try) 2>&5
19901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902
(exit $ac_status); }; }; then
19903
# It does; now see whether it defined to BIG_ENDIAN or not.
19904
cat >conftest.$ac_ext <<_ACEOF
19907
cat confdefs.h >>conftest.$ac_ext
19908
cat >>conftest.$ac_ext <<_ACEOF
19909
/* end confdefs.h. */
19910
#include <sys/types.h>
19911
#include <sys/param.h>
19916
#if BYTE_ORDER != BIG_ENDIAN
19924
rm -f conftest.$ac_objext
19925
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926
(eval $ac_compile) 2>conftest.er1
19928
grep -v '^ *+' conftest.er1 >conftest.err
19930
cat conftest.err >&5
19931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932
(exit $ac_status); } &&
19933
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935
(eval $ac_try) 2>&5
19937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938
(exit $ac_status); }; } &&
19939
{ ac_try='test -s conftest.$ac_objext'
19940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941
(eval $ac_try) 2>&5
19943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944
(exit $ac_status); }; }; then
19945
ac_cv_c_bigendian=yes
19947
echo "$as_me: failed program was:" >&5
19948
sed 's/^/| /' conftest.$ac_ext >&5
19950
ac_cv_c_bigendian=no
19952
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19954
echo "$as_me: failed program was:" >&5
19955
sed 's/^/| /' conftest.$ac_ext >&5
19957
# It does not; compile a test program.
19958
if test "$cross_compiling" = yes; then
19959
# try to guess the endianness by grepping values into an object file
19960
ac_cv_c_bigendian=unknown
19961
cat >conftest.$ac_ext <<_ACEOF
19964
cat confdefs.h >>conftest.$ac_ext
19965
cat >>conftest.$ac_ext <<_ACEOF
19966
/* end confdefs.h. */
19967
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19968
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19969
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19970
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19971
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19972
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19976
_ascii (); _ebcdic ();
19981
rm -f conftest.$ac_objext
19982
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983
(eval $ac_compile) 2>conftest.er1
19985
grep -v '^ *+' conftest.er1 >conftest.err
19987
cat conftest.err >&5
19988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989
(exit $ac_status); } &&
19990
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992
(eval $ac_try) 2>&5
19994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995
(exit $ac_status); }; } &&
19996
{ ac_try='test -s conftest.$ac_objext'
19997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998
(eval $ac_try) 2>&5
20000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001
(exit $ac_status); }; }; then
20002
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20003
ac_cv_c_bigendian=yes
20005
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20006
if test "$ac_cv_c_bigendian" = unknown; then
20007
ac_cv_c_bigendian=no
20009
# finding both strings is unlikely to happen, but who knows?
20010
ac_cv_c_bigendian=unknown
20014
echo "$as_me: failed program was:" >&5
20015
sed 's/^/| /' conftest.$ac_ext >&5
20018
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020
cat >conftest.$ac_ext <<_ACEOF
20023
cat confdefs.h >>conftest.$ac_ext
20024
cat >>conftest.$ac_ext <<_ACEOF
20025
/* end confdefs.h. */
20029
/* Are we little or big endian? From Harbison&Steele. */
20033
char c[sizeof (long)];
20036
exit (u.c[sizeof (long) - 1] == 1);
20039
rm -f conftest$ac_exeext
20040
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041
(eval $ac_link) 2>&5
20043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046
(eval $ac_try) 2>&5
20048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049
(exit $ac_status); }; }; then
20050
ac_cv_c_bigendian=no
20052
echo "$as_me: program exited with status $ac_status" >&5
20053
echo "$as_me: failed program was:" >&5
20054
sed 's/^/| /' conftest.$ac_ext >&5
20056
( exit $ac_status )
20057
ac_cv_c_bigendian=yes
20059
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20065
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20066
case $ac_cv_c_bigendian in
20069
cat >>confdefs.h <<\_ACEOF
20070
@%:@define WORDS_BIGENDIAN 1
20076
{ { echo "$as_me:$LINENO: error: unknown endianness
20077
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20078
echo "$as_me: error: unknown endianness
20079
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20080
{ (exit 1); exit 1; }; } ;;
20083
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20084
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20085
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20086
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20087
echo $ECHO_N "(cached) $ECHO_C" >&6
20089
cat >conftest.make <<\_ACEOF
20091
@echo 'ac_maketemp="$(MAKE)"'
20093
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20094
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20095
if test -n "$ac_maketemp"; then
20096
eval ac_cv_prog_make_${ac_make}_set=yes
20098
eval ac_cv_prog_make_${ac_make}_set=no
20100
rm -f conftest.make
20102
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20103
echo "$as_me:$LINENO: result: yes" >&5
20104
echo "${ECHO_T}yes" >&6
20107
echo "$as_me:$LINENO: result: no" >&5
20108
echo "${ECHO_T}no" >&6
20109
SET_MAKE="MAKE=${MAKE-make}"
20112
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20113
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20114
if test "${ac_cv_header_stdc+set}" = set; then
20115
echo $ECHO_N "(cached) $ECHO_C" >&6
20117
cat >conftest.$ac_ext <<_ACEOF
20120
cat confdefs.h >>conftest.$ac_ext
20121
cat >>conftest.$ac_ext <<_ACEOF
20122
/* end confdefs.h. */
20123
#include <stdlib.h>
20124
#include <stdarg.h>
20125
#include <string.h>
20136
rm -f conftest.$ac_objext
20137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138
(eval $ac_compile) 2>conftest.er1
20140
grep -v '^ *+' conftest.er1 >conftest.err
20142
cat conftest.err >&5
20143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144
(exit $ac_status); } &&
20145
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147
(eval $ac_try) 2>&5
20149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150
(exit $ac_status); }; } &&
20151
{ ac_try='test -s conftest.$ac_objext'
20152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153
(eval $ac_try) 2>&5
20155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156
(exit $ac_status); }; }; then
20157
ac_cv_header_stdc=yes
20159
echo "$as_me: failed program was:" >&5
20160
sed 's/^/| /' conftest.$ac_ext >&5
20162
ac_cv_header_stdc=no
20164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20166
if test $ac_cv_header_stdc = yes; then
20167
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20168
cat >conftest.$ac_ext <<_ACEOF
20171
cat confdefs.h >>conftest.$ac_ext
20172
cat >>conftest.$ac_ext <<_ACEOF
20173
/* end confdefs.h. */
20174
#include <string.h>
20177
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178
$EGREP "memchr" >/dev/null 2>&1; then
20181
ac_cv_header_stdc=no
20187
if test $ac_cv_header_stdc = yes; then
20188
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20189
cat >conftest.$ac_ext <<_ACEOF
20192
cat confdefs.h >>conftest.$ac_ext
20193
cat >>conftest.$ac_ext <<_ACEOF
20194
/* end confdefs.h. */
20195
#include <stdlib.h>
20198
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20199
$EGREP "free" >/dev/null 2>&1; then
20202
ac_cv_header_stdc=no
20208
if test $ac_cv_header_stdc = yes; then
20209
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20210
if test "$cross_compiling" = yes; then
20213
cat >conftest.$ac_ext <<_ACEOF
20216
cat confdefs.h >>conftest.$ac_ext
20217
cat >>conftest.$ac_ext <<_ACEOF
20218
/* end confdefs.h. */
20220
#if ((' ' & 0x0FF) == 0x020)
20221
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20222
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20224
# define ISLOWER(c) \
20225
(('a' <= (c) && (c) <= 'i') \
20226
|| ('j' <= (c) && (c) <= 'r') \
20227
|| ('s' <= (c) && (c) <= 'z'))
20228
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20231
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20236
for (i = 0; i < 256; i++)
20237
if (XOR (islower (i), ISLOWER (i))
20238
|| toupper (i) != TOUPPER (i))
20243
rm -f conftest$ac_exeext
20244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20245
(eval $ac_link) 2>&5
20247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250
(eval $ac_try) 2>&5
20252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253
(exit $ac_status); }; }; then
20256
echo "$as_me: program exited with status $ac_status" >&5
20257
echo "$as_me: failed program was:" >&5
20258
sed 's/^/| /' conftest.$ac_ext >&5
20260
( exit $ac_status )
20261
ac_cv_header_stdc=no
20263
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20267
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20268
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20269
if test $ac_cv_header_stdc = yes; then
20271
cat >>confdefs.h <<\_ACEOF
20272
@%:@define STDC_HEADERS 1
20279
# Check whether --with-opensp-includes or --without-opensp-includes was given.
20280
if test "${with_opensp_includes+set}" = set; then
20281
withval="$with_opensp_includes"
20282
OPENSPINCLUDES="$with_opensp_includes"
20288
# Check whether --with-opensp-libs or --without-opensp-libs was given.
20289
if test "${with_opensp_libs+set}" = set; then
20290
withval="$with_opensp_libs"
20291
OPENSPLIBPATH="$with_opensp_libs"
20293
OPENSPLIBPATH="/usr/lib"
20296
echo $OPENSPLIBPATH
20297
for d in /usr/include/OpenSP /usr/local/include/OpenSP /usr/include/sp/generic /usr/local/include/sp/generic; do
20298
if test "x$OPENSPINCLUDES" = x; then
20299
save_CPPFLAGS="$CPPFLAGS"
20300
CPPFLAGS="$CPPFLAGS -I$d"
20301
echo "$as_me:$LINENO: checking for ParserEventGenerator.h in $d" >&5
20302
echo $ECHO_N "checking for ParserEventGenerator.h in $d... $ECHO_C" >&6
20303
cat >conftest.$ac_ext <<_ACEOF
20306
cat confdefs.h >>conftest.$ac_ext
20307
cat >>conftest.$ac_ext <<_ACEOF
20308
/* end confdefs.h. */
20309
#include <ParserEventGeneratorKit.h>
20311
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20312
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20314
grep -v '^ *+' conftest.er1 >conftest.err
20316
cat conftest.err >&5
20317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318
(exit $ac_status); } >/dev/null; then
20319
if test -s conftest.err; then
20320
ac_cpp_err=$ac_c_preproc_warn_flag
20321
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20328
if test -z "$ac_cpp_err"; then
20329
echo "$as_me:$LINENO: result: yes" >&5
20330
echo "${ECHO_T}yes" >&6; OPENSPINCLUDES=$d
20332
echo "$as_me: failed program was:" >&5
20333
sed 's/^/| /' conftest.$ac_ext >&5
20335
echo "$as_me:$LINENO: result: no" >&5
20336
echo "${ECHO_T}no" >&6
20338
rm -f conftest.err conftest.$ac_ext
20339
CPPFLAGS="$save_CPPFLAGS"
20344
##Detect if OpenSP was compiled with SP_MULTI_BYTE, and put the result in config.h
20348
##This test works for me, but breaks for most distro because the config.h installed isn't really the one that was used tu compile OpenSP
20349
## So --with-opensp-multibyte is now the default.
20354
# Check whether --with-no-opensp-multibyte or --without-no-opensp-multibyte was given.
20355
if test "${with_no_opensp_multibyte+set}" = set; then
20356
withval="$with_no_opensp_multibyte"
20360
cat >>confdefs.h <<\_ACEOF
20361
@%:@define SP_MULTI_BYTE 1
20366
##if test x"$SP_MULTI_BYTE" == x ;then
20367
##CHECK_SP_MULTI_BYTE
20370
ac_save_CPPFLAGS="$CPPFLAGS"
20371
if test "x$OPENSPINCLUDES" != x ; then
20372
CPPFLAGS="-I$OPENSPINCLUDES $CPPFLAGS"
20375
ac_cpp='$CXXCPP $CPPFLAGS'
20376
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20383
for ac_header in ParserEventGeneratorKit.h SGMLApplication.h EventGenerator.h
20385
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386
echo "$as_me:$LINENO: checking for $ac_header" >&5
20387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20389
echo $ECHO_N "(cached) $ECHO_C" >&6
20391
cat >conftest.$ac_ext <<_ACEOF
20394
cat confdefs.h >>conftest.$ac_ext
20395
cat >>conftest.$ac_ext <<_ACEOF
20396
/* end confdefs.h. */
20399
@%:@include <$ac_header>
20401
rm -f conftest.$ac_objext
20402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403
(eval $ac_compile) 2>conftest.er1
20405
grep -v '^ *+' conftest.er1 >conftest.err
20407
cat conftest.err >&5
20408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409
(exit $ac_status); } &&
20410
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412
(eval $ac_try) 2>&5
20414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415
(exit $ac_status); }; } &&
20416
{ ac_try='test -s conftest.$ac_objext'
20417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418
(eval $ac_try) 2>&5
20420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421
(exit $ac_status); }; }; then
20422
eval "$as_ac_Header=yes"
20424
echo "$as_me: failed program was:" >&5
20425
sed 's/^/| /' conftest.$ac_ext >&5
20427
eval "$as_ac_Header=no"
20429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20432
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20433
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20434
cat >>confdefs.h <<_ACEOF
20435
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20439
{ { echo "$as_me:$LINENO: error: OpenSP includes not found" >&5
20440
echo "$as_me: error: OpenSP includes not found" >&2;}
20441
{ (exit 1); exit 1; }; }
20447
OPENSPLIBS="-L$OPENSPLIBPATH -losp"
20448
ac_save_LIBS="$LIBS"
20449
LIBS="$OPENSPLIBS $LIBS"
20451
echo "$as_me:$LINENO: checking for libosp" >&5
20452
echo $ECHO_N "checking for libosp... $ECHO_C" >&6
20453
##dnl This is code from the opensp documentation, I modified it a little
20454
##dnl It is really just a link test rather than a run test, it does nothing
20456
ac_cpp='$CXXCPP $CPPFLAGS'
20457
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20461
if test "$cross_compiling" = yes; then
20462
echo "$as_me:$LINENO: result: unknown, assumed OK" >&5
20463
echo "${ECHO_T}unknown, assumed OK" >&6
20465
cat >conftest.$ac_ext <<_ACEOF
20468
cat confdefs.h >>conftest.$ac_ext
20469
cat >>conftest.$ac_ext <<_ACEOF
20470
/* end confdefs.h. */
20472
#include "ParserEventGeneratorKit.h"
20473
using namespace std;
20474
class OutlineApplication : public SGMLApplication {
20476
OutlineApplication() { }
20477
void startElement(const StartElementEvent &event) {
20479
void endElement(const EndElementEvent &) { }
20482
int main(int argc, char **argv)
20484
ParserEventGeneratorKit parserKit;
20485
EventGenerator *egp = parserKit.makeEventGenerator(argc - 1, argv + 1);
20486
OutlineApplication app;
20490
rm -f conftest$ac_exeext
20491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492
(eval $ac_link) 2>&5
20494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497
(eval $ac_try) 2>&5
20499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500
(exit $ac_status); }; }; then
20501
echo "$as_me:$LINENO: result: yes" >&5
20502
echo "${ECHO_T}yes" >&6
20504
echo "$as_me: program exited with status $ac_status" >&5
20505
echo "$as_me: failed program was:" >&5
20506
sed 's/^/| /' conftest.$ac_ext >&5
20508
( exit $ac_status )
20509
echo "$as_me:$LINENO: result: no" >&5
20510
echo "${ECHO_T}no" >&6
20511
{ { echo "$as_me:$LINENO: error: unable to link a test program, is OpenSP installed?" >&5
20512
echo "$as_me: error: unable to link a test program, is OpenSP installed?" >&2;}
20513
{ (exit 1); exit 1; }; }
20515
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20518
CPPFLAGS="$ac_save_CPPFLAGS"
20519
LIBS="$ac_save_LIBS"
20522
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
20523
# ----------------------------------------------------------------------------
20526
# check for doxygen
20527
# ----------------------------------------------------------------------------
20529
# Check whether --enable-doxygen or --disable-doxygen was given.
20530
if test "${enable_doxygen+set}" = set; then
20531
enableval="$enable_doxygen"
20534
# Check whether --enable-dot or --disable-dot was given.
20535
if test "${enable_dot+set}" = set; then
20536
enableval="$enable_dot"
20539
# Check whether --enable-html-docs or --disable-html-docs was given.
20540
if test "${enable_html_docs+set}" = set; then
20541
enableval="$enable_html_docs"
20544
enable_html_docs=yes
20546
# Check whether --enable-latex-docs or --disable-latex-docs was given.
20547
if test "${enable_latex_docs+set}" = set; then
20548
enableval="$enable_latex_docs"
20551
enable_latex_docs=no
20553
if test "x$enable_doxygen" = xno; then
20556
# Extract the first word of "doxygen", so it can be a program name with args.
20557
set dummy doxygen; ac_word=$2
20558
echo "$as_me:$LINENO: checking for $ac_word" >&5
20559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20560
if test "${ac_cv_path_DOXYGEN+set}" = set; then
20561
echo $ECHO_N "(cached) $ECHO_C" >&6
20565
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569
for as_dir in $PATH
20572
test -z "$as_dir" && as_dir=.
20573
for ac_exec_ext in '' $ac_executable_extensions; do
20574
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20575
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
20576
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20585
DOXYGEN=$ac_cv_path_DOXYGEN
20587
if test -n "$DOXYGEN"; then
20588
echo "$as_me:$LINENO: result: $DOXYGEN" >&5
20589
echo "${ECHO_T}$DOXYGEN" >&6
20591
echo "$as_me:$LINENO: result: no" >&5
20592
echo "${ECHO_T}no" >&6
20595
if test x$DOXYGEN = x; then
20596
if test "x$enable_doxygen" = xyes; then
20597
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5
20598
echo "$as_me: error: could not find doxygen" >&2;}
20599
{ (exit 1); exit 1; }; }
20604
# Extract the first word of "dot", so it can be a program name with args.
20605
set dummy dot; ac_word=$2
20606
echo "$as_me:$LINENO: checking for $ac_word" >&5
20607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20608
if test "${ac_cv_path_DOT+set}" = set; then
20609
echo $ECHO_N "(cached) $ECHO_C" >&6
20613
ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20617
for as_dir in $PATH
20620
test -z "$as_dir" && as_dir=.
20621
for ac_exec_ext in '' $ac_executable_extensions; do
20622
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20623
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20624
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20633
DOT=$ac_cv_path_DOT
20635
if test -n "$DOT"; then
20636
echo "$as_me:$LINENO: result: $DOT" >&5
20637
echo "${ECHO_T}$DOT" >&6
20639
echo "$as_me:$LINENO: result: no" >&5
20640
echo "${ECHO_T}no" >&6
20647
if test x$enable_doc = xyes; then
20656
if test x$DOT = x; then
20657
if test "x$enable_dot" = xyes; then
20658
{ { echo "$as_me:$LINENO: error: could not find dot" >&5
20659
echo "$as_me: error: could not find dot" >&2;}
20660
{ (exit 1); exit 1; }; }
20668
if test x$enable_doc = xtrue; then
20669
ENABLE_DOXYGEN_TRUE=
20670
ENABLE_DOXYGEN_FALSE='#'
20672
ENABLE_DOXYGEN_TRUE='#'
20673
ENABLE_DOXYGEN_FALSE=
20681
# Check if getopt_long is available
20682
# ----------------------------------------------------------------------------
20686
# clean out junk possibly left behind by a previous configuration
20688
# Check for getopt_long support
20690
for ac_header in getopt.h
20692
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20693
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20694
echo "$as_me:$LINENO: checking for $ac_header" >&5
20695
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20696
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20697
echo $ECHO_N "(cached) $ECHO_C" >&6
20699
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20702
# Is the header compilable?
20703
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20704
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20705
cat >conftest.$ac_ext <<_ACEOF
20708
cat confdefs.h >>conftest.$ac_ext
20709
cat >>conftest.$ac_ext <<_ACEOF
20710
/* end confdefs.h. */
20711
$ac_includes_default
20712
@%:@include <$ac_header>
20714
rm -f conftest.$ac_objext
20715
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716
(eval $ac_compile) 2>conftest.er1
20718
grep -v '^ *+' conftest.er1 >conftest.err
20720
cat conftest.err >&5
20721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722
(exit $ac_status); } &&
20723
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725
(eval $ac_try) 2>&5
20727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728
(exit $ac_status); }; } &&
20729
{ ac_try='test -s conftest.$ac_objext'
20730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731
(eval $ac_try) 2>&5
20733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734
(exit $ac_status); }; }; then
20735
ac_header_compiler=yes
20737
echo "$as_me: failed program was:" >&5
20738
sed 's/^/| /' conftest.$ac_ext >&5
20740
ac_header_compiler=no
20742
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20744
echo "${ECHO_T}$ac_header_compiler" >&6
20746
# Is the header present?
20747
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20748
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20749
cat >conftest.$ac_ext <<_ACEOF
20752
cat confdefs.h >>conftest.$ac_ext
20753
cat >>conftest.$ac_ext <<_ACEOF
20754
/* end confdefs.h. */
20755
@%:@include <$ac_header>
20757
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20758
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20760
grep -v '^ *+' conftest.er1 >conftest.err
20762
cat conftest.err >&5
20763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764
(exit $ac_status); } >/dev/null; then
20765
if test -s conftest.err; then
20766
ac_cpp_err=$ac_cxx_preproc_warn_flag
20767
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20774
if test -z "$ac_cpp_err"; then
20775
ac_header_preproc=yes
20777
echo "$as_me: failed program was:" >&5
20778
sed 's/^/| /' conftest.$ac_ext >&5
20780
ac_header_preproc=no
20782
rm -f conftest.err conftest.$ac_ext
20783
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20784
echo "${ECHO_T}$ac_header_preproc" >&6
20786
# So? What about this header?
20787
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20789
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20790
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20791
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20792
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20793
ac_header_preproc=yes
20796
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20797
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20798
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20799
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20800
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20801
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20802
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20803
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20804
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20805
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20806
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20807
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20810
@%:@@%:@ ------------------------------------------ @%:@@%:@
20811
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20812
@%:@@%:@ ------------------------------------------ @%:@@%:@
20815
sed "s/^/$as_me: WARNING: /" >&2
20818
echo "$as_me:$LINENO: checking for $ac_header" >&5
20819
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20820
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20821
echo $ECHO_N "(cached) $ECHO_C" >&6
20823
eval "$as_ac_Header=\$ac_header_preproc"
20825
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20826
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20829
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20830
cat >>confdefs.h <<_ACEOF
20831
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20839
for ac_func in getopt_long
20841
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20842
echo "$as_me:$LINENO: checking for $ac_func" >&5
20843
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20844
if eval "test \"\${$as_ac_var+set}\" = set"; then
20845
echo $ECHO_N "(cached) $ECHO_C" >&6
20847
cat >conftest.$ac_ext <<_ACEOF
20850
cat confdefs.h >>conftest.$ac_ext
20851
cat >>conftest.$ac_ext <<_ACEOF
20852
/* end confdefs.h. */
20853
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20854
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20855
#define $ac_func innocuous_$ac_func
20857
/* System header to define __stub macros and hopefully few prototypes,
20858
which can conflict with char $ac_func (); below.
20859
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20860
<limits.h> exists even on freestanding compilers. */
20863
# include <limits.h>
20865
# include <assert.h>
20870
/* Override any gcc2 internal prototype to avoid an error. */
20875
/* We use char because int might match the return type of a gcc2
20876
builtin and then its argument prototype would still apply. */
20878
/* The GNU C library defines this for functions which it implements
20879
to always fail with ENOSYS. Some functions are actually named
20880
something starting with __ and the normal name is an alias. */
20881
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20884
char (*f) () = $ac_func;
20893
return f != $ac_func;
20898
rm -f conftest.$ac_objext conftest$ac_exeext
20899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900
(eval $ac_link) 2>conftest.er1
20902
grep -v '^ *+' conftest.er1 >conftest.err
20904
cat conftest.err >&5
20905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906
(exit $ac_status); } &&
20907
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909
(eval $ac_try) 2>&5
20911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912
(exit $ac_status); }; } &&
20913
{ ac_try='test -s conftest$ac_exeext'
20914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915
(eval $ac_try) 2>&5
20917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918
(exit $ac_status); }; }; then
20919
eval "$as_ac_var=yes"
20921
echo "$as_me: failed program was:" >&5
20922
sed 's/^/| /' conftest.$ac_ext >&5
20924
eval "$as_ac_var=no"
20926
rm -f conftest.err conftest.$ac_objext \
20927
conftest$ac_exeext conftest.$ac_ext
20929
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20930
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20931
if test `eval echo '${'$as_ac_var'}'` = yes; then
20932
cat >>confdefs.h <<_ACEOF
20933
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20937
# FreeBSD has a gnugetopt library for this
20938
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
20939
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
20940
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
20941
echo $ECHO_N "(cached) $ECHO_C" >&6
20943
ac_check_lib_save_LIBS=$LIBS
20944
LIBS="-lgnugetopt $LIBS"
20945
cat >conftest.$ac_ext <<_ACEOF
20948
cat confdefs.h >>conftest.$ac_ext
20949
cat >>conftest.$ac_ext <<_ACEOF
20950
/* end confdefs.h. */
20952
/* Override any gcc2 internal prototype to avoid an error. */
20956
/* We use char because int might match the return type of a gcc2
20957
builtin and then its argument prototype would still apply. */
20958
char getopt_long ();
20967
rm -f conftest.$ac_objext conftest$ac_exeext
20968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20969
(eval $ac_link) 2>conftest.er1
20971
grep -v '^ *+' conftest.er1 >conftest.err
20973
cat conftest.err >&5
20974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975
(exit $ac_status); } &&
20976
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978
(eval $ac_try) 2>&5
20980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981
(exit $ac_status); }; } &&
20982
{ ac_try='test -s conftest$ac_exeext'
20983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984
(eval $ac_try) 2>&5
20986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987
(exit $ac_status); }; }; then
20988
ac_cv_lib_gnugetopt_getopt_long=yes
20990
echo "$as_me: failed program was:" >&5
20991
sed 's/^/| /' conftest.$ac_ext >&5
20993
ac_cv_lib_gnugetopt_getopt_long=no
20995
rm -f conftest.err conftest.$ac_objext \
20996
conftest$ac_exeext conftest.$ac_ext
20997
LIBS=$ac_check_lib_save_LIBS
20999
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
21000
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
21001
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
21002
cat >>confdefs.h <<\_ACEOF
21003
@%:@define HAVE_GETOPT_LONG 1
21007
# use the GNU replacement
21008
case $LIB@&t@OBJS in
21009
"getopt.$ac_objext" | \
21010
*" getopt.$ac_objext" | \
21011
"getopt.$ac_objext "* | \
21012
*" getopt.$ac_objext "* ) ;;
21013
*) LIB@&t@OBJS="$LIB@&t@OBJS getopt.$ac_objext" ;;
21016
case $LIB@&t@OBJS in
21017
"getopt1.$ac_objext" | \
21018
*" getopt1.$ac_objext" | \
21019
"getopt1.$ac_objext "* | \
21020
*" getopt1.$ac_objext "* ) ;;
21021
*) LIB@&t@OBJS="$LIB@&t@OBJS getopt1.$ac_objext" ;;
21024
ac_config_links="$ac_config_links lib/getopt.h:lib/gnugetopt.h"
21033
if test "$ac_cv_func_getopt_long" = no ; then
21034
NO_GETOPTLONG_TRUE=
21035
NO_GETOPTLONG_FALSE='#'
21037
NO_GETOPTLONG_TRUE='#'
21038
NO_GETOPTLONG_FALSE=
21042
# gengetopt command line parser generation
21043
# Check whether --enable-gengetopt or --disable-gengetopt was given.
21044
if test "${enable_gengetopt+set}" = set; then
21045
enableval="$enable_gengetopt"
21046
case "${enableval}" in
21047
yes) gengetopt=yes ;;
21048
no) gengetopt=no ;;
21049
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-gengetopt" >&5
21050
echo "$as_me: error: bad value ${enableval} for --disable-gengetopt" >&2;}
21051
{ (exit 1); exit 1; }; } ;;
21057
if test x$gengetopt = xyes ; then
21058
# Extract the first word of "gengetopt", so it can be a program name with args.
21059
set dummy gengetopt; ac_word=$2
21060
echo "$as_me:$LINENO: checking for $ac_word" >&5
21061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21062
if test "${ac_cv_prog_have_gengetopt+set}" = set; then
21063
echo $ECHO_N "(cached) $ECHO_C" >&6
21065
if test -n "$have_gengetopt"; then
21066
ac_cv_prog_have_gengetopt="$have_gengetopt" # Let the user override the test.
21068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21069
for as_dir in $PATH
21072
test -z "$as_dir" && as_dir=.
21073
for ac_exec_ext in '' $ac_executable_extensions; do
21074
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21075
ac_cv_prog_have_gengetopt="yes"
21076
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21082
test -z "$ac_cv_prog_have_gengetopt" && ac_cv_prog_have_gengetopt="no"
21085
have_gengetopt=$ac_cv_prog_have_gengetopt
21086
if test -n "$have_gengetopt"; then
21087
echo "$as_me:$LINENO: result: $have_gengetopt" >&5
21088
echo "${ECHO_T}$have_gengetopt" >&6
21090
echo "$as_me:$LINENO: result: no" >&5
21091
echo "${ECHO_T}no" >&6
21095
if test x$have_gengetopt = xno ; then
21096
{ echo "$as_me:$LINENO: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&5
21097
echo "$as_me: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&2;}
21104
if test "x$gengetopt" = xyes; then
21105
USE_GENGETOPT_TRUE=
21106
USE_GENGETOPT_FALSE='#'
21108
USE_GENGETOPT_TRUE='#'
21109
USE_GENGETOPT_FALSE=
21118
# ----------------------------------------------------------------------------
21120
if test "${my_cv_curl_vers+set}" = set; then
21121
echo $ECHO_N "(cached) $ECHO_C" >&6
21124
my_cv_curl_vers=NONE
21128
echo "$as_me:$LINENO: checking for curl >= $check" >&5
21129
echo $ECHO_N "checking for curl >= $check... $ECHO_C" >&6
21131
if eval curl-config --version 2>/dev/null >/dev/null; then
21132
ver=`curl-config --version | sed -e "s/libcurl //g"`
21133
# hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'`
21134
# ok=`echo "ibase=16; if($hex_ver>=$check_hex) $hex_ver else 0" | bc`
21136
if test x$ok != x0; then
21137
my_cv_curl_vers="$ver"
21138
echo "$as_me:$LINENO: result: $my_cv_curl_vers" >&5
21139
echo "${ECHO_T}$my_cv_curl_vers" >&6
21141
echo "$as_me:$LINENO: result: FAILED" >&5
21142
echo "${ECHO_T}FAILED" >&6
21143
{ echo "$as_me:$LINENO: WARNING: $ver is too old. Need version $check or higher." >&5
21144
echo "$as_me: WARNING: $ver is too old. Need version $check or higher." >&2;}
21147
echo "$as_me:$LINENO: result: FAILED" >&5
21148
echo "${ECHO_T}FAILED" >&6
21149
{ { echo "$as_me:$LINENO: error: curl-config was not found" >&5
21150
echo "$as_me: error: curl-config was not found" >&2;}
21151
{ (exit 1); exit 1; }; }
21158
if test x$my_cv_curl_vers != xNONE; then
21160
cat >>confdefs.h <<\_ACEOF
21161
@%:@define HAVE_CURL
21168
LIBOFX_DTD_DIR='${datadir}/libofx/dtd'
21172
ac_config_files="$ac_config_files Makefile libofx.spec lib/Makefile inc/Makefile dtd/Makefile doc/Makefile ofx2qif/Makefile ofxdump/Makefile ofxconnect/Makefile"
21173
cat >confcache <<\_ACEOF
21174
# This file is a shell script that caches the results of configure
21175
# tests run on this system so they can be shared between configure
21176
# scripts and configure runs, see configure's option --config-cache.
21177
# It is not useful on other systems. If it contains results you don't
21178
# want to keep, you may remove or edit it.
21180
# config.status only pays attention to the cache file if you give it
21181
# the --recheck option to rerun configure.
21183
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21184
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21185
# following values.
21189
# The following way of writing the cache mishandles newlines in values,
21190
# but we know of no workaround that is simple, portable, and efficient.
21191
# So, don't put newlines in cache variables' values.
21192
# Ultrix sh set writes to stderr and can't be redirected directly,
21193
# and sets the high bit in the cache file unless we assign to the vars.
21196
case `(ac_space=' '; set | grep ac_space) 2>&1` in
21198
# `set' does not quote correctly, so add quotes (double-quote
21199
# substitution turns \\\\ into \\, and sed turns \\ into \).
21202
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21205
# `set' quotes correctly as required by POSIX, so do not add quotes.
21207
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21214
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21216
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21218
if diff $cache_file confcache >/dev/null 2>&1; then :; else
21219
if test -w $cache_file; then
21220
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21221
cat confcache >$cache_file
21223
echo "not updating unwritable cache $cache_file"
21228
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21229
# Let make expand exec_prefix.
21230
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21232
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21233
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21234
# trailing colons and then remove the whole line if VPATH becomes empty
21235
# (actually we leave an empty line to preserve line numbers).
21236
if test "x$srcdir" = x.; then
21237
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21238
s/:*\$(srcdir):*/:/;
21239
s/:*\${srcdir}:*/:/;
21241
s/^\([^=]*=[ ]*\):*/\1/;
21247
DEFS=-DHAVE_CONFIG_H
21251
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21252
# 1. Remove the extension, and $U if already installed.
21253
ac_i=`echo "$ac_i" |
21254
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21256
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21257
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21259
LIB@&t@OBJS=$ac_libobjs
21261
LTLIBOBJS=$ac_ltlibobjs
21264
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21265
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21266
Usually this means the macro was only invoked conditionally." >&5
21267
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21268
Usually this means the macro was only invoked conditionally." >&2;}
21269
{ (exit 1); exit 1; }; }
21271
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21272
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21273
Usually this means the macro was only invoked conditionally." >&5
21274
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21275
Usually this means the macro was only invoked conditionally." >&2;}
21276
{ (exit 1); exit 1; }; }
21278
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21279
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21280
Usually this means the macro was only invoked conditionally." >&5
21281
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21282
Usually this means the macro was only invoked conditionally." >&2;}
21283
{ (exit 1); exit 1; }; }
21285
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21286
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21287
Usually this means the macro was only invoked conditionally." >&5
21288
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21289
Usually this means the macro was only invoked conditionally." >&2;}
21290
{ (exit 1); exit 1; }; }
21292
if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
21293
{ { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
21294
Usually this means the macro was only invoked conditionally." >&5
21295
echo "$as_me: error: conditional \"DOC\" was never defined.
21296
Usually this means the macro was only invoked conditionally." >&2;}
21297
{ (exit 1); exit 1; }; }
21299
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
21300
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOXYGEN\" was never defined.
21301
Usually this means the macro was only invoked conditionally." >&5
21302
echo "$as_me: error: conditional \"ENABLE_DOXYGEN\" was never defined.
21303
Usually this means the macro was only invoked conditionally." >&2;}
21304
{ (exit 1); exit 1; }; }
21306
if test -z "${NO_GETOPTLONG_TRUE}" && test -z "${NO_GETOPTLONG_FALSE}"; then
21307
{ { echo "$as_me:$LINENO: error: conditional \"NO_GETOPTLONG\" was never defined.
21308
Usually this means the macro was only invoked conditionally." >&5
21309
echo "$as_me: error: conditional \"NO_GETOPTLONG\" was never defined.
21310
Usually this means the macro was only invoked conditionally." >&2;}
21311
{ (exit 1); exit 1; }; }
21313
if test -z "${USE_GENGETOPT_TRUE}" && test -z "${USE_GENGETOPT_FALSE}"; then
21314
{ { echo "$as_me:$LINENO: error: conditional \"USE_GENGETOPT\" was never defined.
21315
Usually this means the macro was only invoked conditionally." >&5
21316
echo "$as_me: error: conditional \"USE_GENGETOPT\" was never defined.
21317
Usually this means the macro was only invoked conditionally." >&2;}
21318
{ (exit 1); exit 1; }; }
21321
: ${CONFIG_STATUS=./config.status}
21322
ac_clean_files_save=$ac_clean_files
21323
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21324
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21325
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21326
cat >$CONFIG_STATUS <<_ACEOF
21328
# Generated by $as_me.
21329
# Run this file to recreate the current configuration.
21330
# Compiler output produced by configure, useful for debugging
21331
# configure, is in config.log if it exists.
21334
ac_cs_recheck=false
21336
SHELL=\${CONFIG_SHELL-$SHELL}
21339
cat >>$CONFIG_STATUS <<\_ACEOF
21340
## --------------------- ##
21341
## M4sh Initialization. ##
21342
## --------------------- ##
21344
# Be Bourne compatible
21345
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21348
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21349
# is contrary to our usage. Disable this feature.
21350
alias -g '${1+"$@"}'='"$@"'
21351
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21354
DUALCASE=1; export DUALCASE # for MKS sh
21356
# Support unset when possible.
21357
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21364
# Work around bugs in pre-3.0 UWIN ksh.
21365
$as_unset ENV MAIL MAILPATH
21372
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21373
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21374
LC_TELEPHONE LC_TIME
21376
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21377
eval $as_var=C; export $as_var
21383
# Required to use basename.
21384
if expr a : '\(a\)' >/dev/null 2>&1; then
21390
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21391
as_basename=basename
21397
# Name of the executable.
21398
as_me=`$as_basename "$0" ||
21399
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21400
X"$0" : 'X\(//\)$' \| \
21401
X"$0" : 'X\(/\)$' \| \
21402
. : '\(.\)' 2>/dev/null ||
21404
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21405
/^X\/\(\/\/\)$/{ s//\1/; q; }
21406
/^X\/\(\/\).*/{ s//\1/; q; }
21410
# PATH needs CR, and LINENO needs CR and PATH.
21411
# Avoid depending upon Character Ranges.
21412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21415
as_cr_digits='0123456789'
21416
as_cr_alnum=$as_cr_Letters$as_cr_digits
21418
# The user is always right.
21419
if test "${PATH_SEPARATOR+set}" != set; then
21420
echo "#! /bin/sh" >conf$$.sh
21421
echo "exit 0" >>conf$$.sh
21423
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21432
as_lineno_1=$LINENO
21433
as_lineno_2=$LINENO
21434
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21435
test "x$as_lineno_1" != "x$as_lineno_2" &&
21436
test "x$as_lineno_3" = "x$as_lineno_2" || {
21437
# Find who we are. Look in the path if we contain no path at all
21440
*[\\/]* ) as_myself=$0 ;;
21441
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21442
for as_dir in $PATH
21445
test -z "$as_dir" && as_dir=.
21446
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21451
# We did not find ourselves, most probably we were run as `sh COMMAND'
21452
# in which case we are not to be found in the path.
21453
if test "x$as_myself" = x; then
21456
if test ! -f "$as_myself"; then
21457
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21458
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21459
{ (exit 1); exit 1; }; }
21461
case $CONFIG_SHELL in
21463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21464
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21467
test -z "$as_dir" && as_dir=.
21468
for as_base in sh bash ksh sh5; do
21471
if ("$as_dir/$as_base" -c '
21472
as_lineno_1=$LINENO
21473
as_lineno_2=$LINENO
21474
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21475
test "x$as_lineno_1" != "x$as_lineno_2" &&
21476
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21477
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21478
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21479
CONFIG_SHELL=$as_dir/$as_base
21480
export CONFIG_SHELL
21481
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21489
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21490
# uniformly replaced by the line number. The first 'sed' inserts a
21491
# line-number line before each line; the second 'sed' does the real
21492
# work. The second script uses 'N' to pair each line-number line
21493
# with the numbered line, and appends trailing '-' during
21494
# substitution so that $LINENO is not a special case at line end.
21495
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21496
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21497
sed '=' <$as_myself |
21502
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21505
s,^['$as_cr_digits']*\n,,
21506
' >$as_me.lineno &&
21507
chmod +x $as_me.lineno ||
21508
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21509
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21510
{ (exit 1); exit 1; }; }
21512
# Don't try to exec as it changes $[0], causing all sort of problems
21513
# (the dirname of $[0] is not the place where we might find the
21514
# original and so on. Autoconf is especially sensible to this).
21516
# Exit status is that of the last command.
21521
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21522
*c*,-n*) ECHO_N= ECHO_C='
21524
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21525
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21528
if expr a : '\(a\)' >/dev/null 2>&1; then
21534
rm -f conf$$ conf$$.exe conf$$.file
21536
if ln -s conf$$.file conf$$ 2>/dev/null; then
21537
# We could just check for DJGPP; but this test a) works b) is more generic
21538
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21539
if test -f conf$$.exe; then
21540
# Don't use ln at all; we don't have any links
21545
elif ln conf$$.file conf$$ 2>/dev/null; then
21550
rm -f conf$$ conf$$.exe conf$$.file
21552
if mkdir -p . 2>/dev/null; then
21555
test -d ./-p && rmdir ./-p
21559
as_executable_p="test -f"
21561
# Sed expression to map a string onto a valid CPP name.
21562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21564
# Sed expression to map a string onto a valid variable name.
21565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21569
# We need space, tab and new line, in precisely that order.
21579
# Open the log real soon, to keep \$[0] and so on meaningful, and to
21580
# report actual input values of CONFIG_FILES etc. instead of their
21581
# values after options handling. Logging --version etc. is OK.
21585
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21586
@%:@@%:@ Running $as_me. @%:@@%:@
21591
This file was extended by $as_me, which was
21592
generated by GNU Autoconf 2.59. Invocation command line was
21594
CONFIG_FILES = $CONFIG_FILES
21595
CONFIG_HEADERS = $CONFIG_HEADERS
21596
CONFIG_LINKS = $CONFIG_LINKS
21597
CONFIG_COMMANDS = $CONFIG_COMMANDS
21601
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21605
# Files that config.status was made for.
21606
if test -n "$ac_config_files"; then
21607
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21610
if test -n "$ac_config_headers"; then
21611
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21614
if test -n "$ac_config_links"; then
21615
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21618
if test -n "$ac_config_commands"; then
21619
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21622
cat >>$CONFIG_STATUS <<\_ACEOF
21625
\`$as_me' instantiates files from templates according to the
21626
current configuration.
21628
Usage: $0 [OPTIONS] [FILE]...
21630
-h, --help print this help, then exit
21631
-V, --version print version number, then exit
21632
-q, --quiet do not print progress messages
21633
-d, --debug don't remove temporary files
21634
--recheck update $as_me by reconfiguring in the same conditions
21635
--file=FILE[:TEMPLATE]
21636
instantiate the configuration file FILE
21637
--header=FILE[:TEMPLATE]
21638
instantiate the configuration header FILE
21640
Configuration files:
21643
Configuration headers:
21646
Configuration links:
21649
Configuration commands:
21652
Report bugs to <bug-autoconf@gnu.org>."
21655
cat >>$CONFIG_STATUS <<_ACEOF
21658
configured by $0, generated by GNU Autoconf 2.59,
21659
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21661
Copyright (C) 2003 Free Software Foundation, Inc.
21662
This config.status script is free software; the Free Software Foundation
21663
gives unlimited permission to copy, distribute and modify it."
21668
cat >>$CONFIG_STATUS <<\_ACEOF
21669
# If no file are specified by the user, then we need to provide default
21670
# value. By we need to know if files were specified by the user.
21676
ac_option=`expr "x$1" : 'x\([^=]*\)='`
21677
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21685
*) # This is not an option, so the user has probably given explicit
21688
ac_need_defaults=false;;
21692
# Handling of the options.
21694
cat >>$CONFIG_STATUS <<\_ACEOF
21695
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21697
--version | --vers* | -V )
21698
echo "$ac_cs_version"; exit 0 ;;
21700
# Conflict between --help and --header
21701
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
21702
Try \`$0 --help' for more information." >&5
21703
echo "$as_me: error: ambiguous option: $1
21704
Try \`$0 --help' for more information." >&2;}
21705
{ (exit 1); exit 1; }; };;
21706
--help | --hel | -h )
21707
echo "$ac_cs_usage"; exit 0 ;;
21708
--debug | --d* | -d )
21710
--file | --fil | --fi | --f )
21712
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21713
ac_need_defaults=false;;
21714
--header | --heade | --head | --hea )
21716
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21717
ac_need_defaults=false;;
21718
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21719
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21722
# This is an error.
21723
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21724
Try \`$0 --help' for more information." >&5
21725
echo "$as_me: error: unrecognized option: $1
21726
Try \`$0 --help' for more information." >&2;}
21727
{ (exit 1); exit 1; }; } ;;
21729
*) ac_config_targets="$ac_config_targets $1" ;;
21735
ac_configure_extra_args=
21737
if $ac_cs_silent; then
21739
ac_configure_extra_args="$ac_configure_extra_args --silent"
21743
cat >>$CONFIG_STATUS <<_ACEOF
21744
if \$ac_cs_recheck; then
21745
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21746
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21751
cat >>$CONFIG_STATUS <<_ACEOF
21753
# INIT-COMMANDS section.
21756
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21762
cat >>$CONFIG_STATUS <<\_ACEOF
21763
for ac_config_target in $ac_config_targets
21765
case "$ac_config_target" in
21766
# Handling of arguments.
21767
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21768
"libofx.spec" ) CONFIG_FILES="$CONFIG_FILES libofx.spec" ;;
21769
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21770
"inc/Makefile" ) CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
21771
"dtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dtd/Makefile" ;;
21772
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21773
"ofx2qif/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofx2qif/Makefile" ;;
21774
"ofxdump/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxdump/Makefile" ;;
21775
"ofxconnect/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxconnect/Makefile" ;;
21776
"lib/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/getopt.h:lib/gnugetopt.h" ;;
21777
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21778
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21779
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21780
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21781
{ (exit 1); exit 1; }; };;
21785
# If the user did not use the arguments to specify the items to instantiate,
21786
# then the envvar interface is used. Set only those that are not.
21787
# We use the long form for the default assignment because of an extremely
21788
# bizarre bug on SunOS 4.1.3.
21789
if $ac_need_defaults; then
21790
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21791
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21792
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21793
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21796
# Have a temporary directory for convenience. Make it in the build tree
21797
# simply because there is no reason to put it here, and in addition,
21798
# creating and moving files from /tmp can sometimes cause problems.
21799
# Create a temporary directory, and hook for its removal unless debugging.
21802
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21803
trap '{ (exit 1); exit 1; }' 1 2 13 15
21806
# Create a (secure) tmp directory for tmp files.
21809
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21810
test -n "$tmp" && test -d "$tmp"
21813
tmp=./confstat$$-$RANDOM
21814
(umask 077 && mkdir $tmp)
21817
echo "$me: cannot create a temporary directory in ." >&2
21818
{ (exit 1); exit 1; }
21823
cat >>$CONFIG_STATUS <<_ACEOF
21826
# CONFIG_FILES section.
21829
# No need to generate the scripts if there are no CONFIG_FILES.
21830
# This happens for instance when ./config.status config.h
21831
if test -n "\$CONFIG_FILES"; then
21832
# Protect against being on the right side of a sed subst in config.status.
21833
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21834
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21835
s,@SHELL@,$SHELL,;t t
21836
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21837
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21838
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21839
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21840
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21841
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21842
s,@exec_prefix@,$exec_prefix,;t t
21843
s,@prefix@,$prefix,;t t
21844
s,@program_transform_name@,$program_transform_name,;t t
21845
s,@bindir@,$bindir,;t t
21846
s,@sbindir@,$sbindir,;t t
21847
s,@libexecdir@,$libexecdir,;t t
21848
s,@datadir@,$datadir,;t t
21849
s,@sysconfdir@,$sysconfdir,;t t
21850
s,@sharedstatedir@,$sharedstatedir,;t t
21851
s,@localstatedir@,$localstatedir,;t t
21852
s,@libdir@,$libdir,;t t
21853
s,@includedir@,$includedir,;t t
21854
s,@oldincludedir@,$oldincludedir,;t t
21855
s,@infodir@,$infodir,;t t
21856
s,@mandir@,$mandir,;t t
21857
s,@build_alias@,$build_alias,;t t
21858
s,@host_alias@,$host_alias,;t t
21859
s,@target_alias@,$target_alias,;t t
21860
s,@DEFS@,$DEFS,;t t
21861
s,@ECHO_C@,$ECHO_C,;t t
21862
s,@ECHO_N@,$ECHO_N,;t t
21863
s,@ECHO_T@,$ECHO_T,;t t
21864
s,@LIBS@,$LIBS,;t t
21866
s,@CFLAGS@,$CFLAGS,;t t
21867
s,@LDFLAGS@,$LDFLAGS,;t t
21868
s,@CPPFLAGS@,$CPPFLAGS,;t t
21869
s,@ac_ct_CC@,$ac_ct_CC,;t t
21870
s,@EXEEXT@,$EXEEXT,;t t
21871
s,@OBJEXT@,$OBJEXT,;t t
21873
s,@CXXFLAGS@,$CXXFLAGS,;t t
21874
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21875
s,@LIBOFX_MAJOR_VERSION@,$LIBOFX_MAJOR_VERSION,;t t
21876
s,@LIBOFX_MINOR_VERSION@,$LIBOFX_MINOR_VERSION,;t t
21877
s,@LIBOFX_MICRO_VERSION@,$LIBOFX_MICRO_VERSION,;t t
21878
s,@LIBOFX_VERSION@,$LIBOFX_VERSION,;t t
21879
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21880
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21881
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21882
s,@CYGPATH_W@,$CYGPATH_W,;t t
21883
s,@PACKAGE@,$PACKAGE,;t t
21884
s,@VERSION@,$VERSION,;t t
21885
s,@ACLOCAL@,$ACLOCAL,;t t
21886
s,@AUTOCONF@,$AUTOCONF,;t t
21887
s,@AUTOMAKE@,$AUTOMAKE,;t t
21888
s,@AUTOHEADER@,$AUTOHEADER,;t t
21889
s,@MAKEINFO@,$MAKEINFO,;t t
21890
s,@install_sh@,$install_sh,;t t
21891
s,@STRIP@,$STRIP,;t t
21892
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21893
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21894
s,@mkdir_p@,$mkdir_p,;t t
21896
s,@SET_MAKE@,$SET_MAKE,;t t
21897
s,@am__leading_dot@,$am__leading_dot,;t t
21898
s,@AMTAR@,$AMTAR,;t t
21899
s,@am__tar@,$am__tar,;t t
21900
s,@am__untar@,$am__untar,;t t
21901
s,@DEPDIR@,$DEPDIR,;t t
21902
s,@am__include@,$am__include,;t t
21903
s,@am__quote@,$am__quote,;t t
21904
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21905
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21906
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21907
s,@CCDEPMODE@,$CCDEPMODE,;t t
21908
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21909
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21910
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21911
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21912
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21913
s,@LIBOFX_SO_CURRENT@,$LIBOFX_SO_CURRENT,;t t
21914
s,@LIBOFX_SO_REVISION@,$LIBOFX_SO_REVISION,;t t
21915
s,@LIBOFX_SO_AGE@,$LIBOFX_SO_AGE,;t t
21916
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21917
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21918
s,@MAINT@,$MAINT,;t t
21919
s,@build@,$build,;t t
21920
s,@build_cpu@,$build_cpu,;t t
21921
s,@build_vendor@,$build_vendor,;t t
21922
s,@build_os@,$build_os,;t t
21923
s,@host@,$host,;t t
21924
s,@host_cpu@,$host_cpu,;t t
21925
s,@host_vendor@,$host_vendor,;t t
21926
s,@host_os@,$host_os,;t t
21927
s,@EGREP@,$EGREP,;t t
21928
s,@LN_S@,$LN_S,;t t
21929
s,@ECHO@,$ECHO,;t t
21931
s,@ac_ct_AR@,$ac_ct_AR,;t t
21932
s,@RANLIB@,$RANLIB,;t t
21933
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21935
s,@CXXCPP@,$CXXCPP,;t t
21937
s,@FFLAGS@,$FFLAGS,;t t
21938
s,@ac_ct_F77@,$ac_ct_F77,;t t
21939
s,@LIBTOOL@,$LIBTOOL,;t t
21940
s,@DOXYGEN@,$DOXYGEN,;t t
21942
s,@DOC_TRUE@,$DOC_TRUE,;t t
21943
s,@DOC_FALSE@,$DOC_FALSE,;t t
21944
s,@ENABLE_DOXYGEN_TRUE@,$ENABLE_DOXYGEN_TRUE,;t t
21945
s,@ENABLE_DOXYGEN_FALSE@,$ENABLE_DOXYGEN_FALSE,;t t
21946
s,@enable_dot@,$enable_dot,;t t
21947
s,@enable_html_docs@,$enable_html_docs,;t t
21948
s,@enable_latex_docs@,$enable_latex_docs,;t t
21949
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21950
s,@NO_GETOPTLONG_TRUE@,$NO_GETOPTLONG_TRUE,;t t
21951
s,@NO_GETOPTLONG_FALSE@,$NO_GETOPTLONG_FALSE,;t t
21952
s,@have_gengetopt@,$have_gengetopt,;t t
21953
s,@USE_GENGETOPT_TRUE@,$USE_GENGETOPT_TRUE,;t t
21954
s,@USE_GENGETOPT_FALSE@,$USE_GENGETOPT_FALSE,;t t
21955
s,@OPENSPINCLUDES@,$OPENSPINCLUDES,;t t
21956
s,@OPENSPLIBS@,$OPENSPLIBS,;t t
21957
s,@LIBOFX_DTD_DIR@,$LIBOFX_DTD_DIR,;t t
21958
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21963
cat >>$CONFIG_STATUS <<\_ACEOF
21964
# Split the substitutions into bite-sized pieces for seds with
21965
# small command number limits, like on Digital OSF/1 and HP-UX.
21966
ac_max_sed_lines=48
21967
ac_sed_frag=1 # Number of current file.
21968
ac_beg=1 # First line for current file.
21969
ac_end=$ac_max_sed_lines # Line after last line for current file.
21972
while $ac_more_lines; do
21973
if test $ac_beg -gt 1; then
21974
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21976
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21978
if test ! -s $tmp/subs.frag; then
21979
ac_more_lines=false
21981
# The purpose of the label and of the branching condition is to
21982
# speed up the sed processing (if there are no `@' at all, there
21983
# is no need to browse any of the substitutions).
21984
# These are the two extra sed commands mentioned above.
21986
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21987
if test -z "$ac_sed_cmds"; then
21988
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21990
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21992
ac_sed_frag=`expr $ac_sed_frag + 1`
21994
ac_end=`expr $ac_end + $ac_max_sed_lines`
21997
if test -z "$ac_sed_cmds"; then
22000
fi # test -n "$CONFIG_FILES"
22003
cat >>$CONFIG_STATUS <<\_ACEOF
22004
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22005
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22007
- | *:- | *:-:* ) # input from stdin
22009
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22010
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22011
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22012
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22013
* ) ac_file_in=$ac_file.in ;;
22016
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22017
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22018
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22019
X"$ac_file" : 'X\(//\)[^/]' \| \
22020
X"$ac_file" : 'X\(//\)$' \| \
22021
X"$ac_file" : 'X\(/\)' \| \
22022
. : '\(.\)' 2>/dev/null ||
22024
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22025
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22026
/^X\(\/\/\)$/{ s//\1/; q; }
22027
/^X\(\/\).*/{ s//\1/; q; }
22029
{ if $as_mkdir_p; then
22034
while test ! -d "$as_dir"; do
22035
as_dirs="$as_dir $as_dirs"
22036
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22037
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22038
X"$as_dir" : 'X\(//\)[^/]' \| \
22039
X"$as_dir" : 'X\(//\)$' \| \
22040
X"$as_dir" : 'X\(/\)' \| \
22041
. : '\(.\)' 2>/dev/null ||
22043
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22044
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22045
/^X\(\/\/\)$/{ s//\1/; q; }
22046
/^X\(\/\).*/{ s//\1/; q; }
22049
test ! -n "$as_dirs" || mkdir $as_dirs
22050
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22051
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22052
{ (exit 1); exit 1; }; }; }
22056
if test "$ac_dir" != .; then
22057
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22058
# A "../" for each directory in $ac_dir_suffix.
22059
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22061
ac_dir_suffix= ac_top_builddir=
22065
.) # No --srcdir option. We are building in place.
22067
if test -z "$ac_top_builddir"; then
22070
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22072
[\\/]* | ?:[\\/]* ) # Absolute path.
22073
ac_srcdir=$srcdir$ac_dir_suffix;
22074
ac_top_srcdir=$srcdir ;;
22075
*) # Relative path.
22076
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22077
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22080
# Do not use `cd foo && pwd` to compute absolute paths, because
22081
# the directories may not exist.
22083
.) ac_abs_builddir="$ac_dir";;
22086
.) ac_abs_builddir=`pwd`;;
22087
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22088
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22091
case $ac_abs_builddir in
22092
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22094
case ${ac_top_builddir}. in
22095
.) ac_abs_top_builddir=$ac_abs_builddir;;
22096
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22097
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22100
case $ac_abs_builddir in
22101
.) ac_abs_srcdir=$ac_srcdir;;
22104
.) ac_abs_srcdir=$ac_abs_builddir;;
22105
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22106
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22109
case $ac_abs_builddir in
22110
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22112
case $ac_top_srcdir in
22113
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22114
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22115
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22121
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22122
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22125
# Let's still pretend it is `configure' which instantiates (i.e., don't
22126
# use $as_me), people would be surprised to read:
22127
# /* config.h. Generated by config.status. */
22128
if test x"$ac_file" = x-; then
22131
configure_input="$ac_file. "
22133
configure_input=$configure_input"Generated from `echo $ac_file_in |
22134
sed 's,.*/,,'` by configure."
22136
# First look for the input files in the build tree, otherwise in the
22138
ac_file_inputs=`IFS=:
22139
for f in $ac_file_in; do
22141
-) echo $tmp/stdin ;;
22143
# Absolute (can't be DOS-style, as IFS=:)
22144
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22145
echo "$as_me: error: cannot find input file: $f" >&2;}
22146
{ (exit 1); exit 1; }; }
22149
if test -f "$f"; then
22152
elif test -f "$srcdir/$f"; then
22157
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22158
echo "$as_me: error: cannot find input file: $f" >&2;}
22159
{ (exit 1); exit 1; }; }
22162
done` || { (exit 1); exit 1; }
22164
if test x"$ac_file" != x-; then
22165
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22166
echo "$as_me: creating $ac_file" >&6;}
22170
cat >>$CONFIG_STATUS <<_ACEOF
22174
cat >>$CONFIG_STATUS <<\_ACEOF
22176
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22177
s,@configure_input@,$configure_input,;t t
22178
s,@srcdir@,$ac_srcdir,;t t
22179
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22180
s,@top_srcdir@,$ac_top_srcdir,;t t
22181
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22182
s,@builddir@,$ac_builddir,;t t
22183
s,@abs_builddir@,$ac_abs_builddir,;t t
22184
s,@top_builddir@,$ac_top_builddir,;t t
22185
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22186
s,@INSTALL@,$ac_INSTALL,;t t
22187
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22189
if test x"$ac_file" != x-; then
22190
mv $tmp/out $ac_file
22198
cat >>$CONFIG_STATUS <<\_ACEOF
22201
# CONFIG_HEADER section.
22204
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22205
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22207
# ac_d sets the value in "#define NAME VALUE" lines.
22208
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22209
ac_dB='[ ].*$,\1#\2'
22212
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22213
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22214
ac_uB='$,\1#\2define\3'
22218
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22219
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22221
- | *:- | *:-:* ) # input from stdin
22223
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22224
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22225
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22226
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22227
* ) ac_file_in=$ac_file.in ;;
22230
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22231
echo "$as_me: creating $ac_file" >&6;}
22233
# First look for the input files in the build tree, otherwise in the
22235
ac_file_inputs=`IFS=:
22236
for f in $ac_file_in; do
22238
-) echo $tmp/stdin ;;
22240
# Absolute (can't be DOS-style, as IFS=:)
22241
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22242
echo "$as_me: error: cannot find input file: $f" >&2;}
22243
{ (exit 1); exit 1; }; }
22244
# Do quote $f, to prevent DOS paths from being IFS'd.
22247
if test -f "$f"; then
22250
elif test -f "$srcdir/$f"; then
22255
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22256
echo "$as_me: error: cannot find input file: $f" >&2;}
22257
{ (exit 1); exit 1; }; }
22260
done` || { (exit 1); exit 1; }
22261
# Remove the trailing spaces.
22262
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22266
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22267
# `conftest.undefs', that substitutes the proper values into
22268
# config.h.in to produce config.h. The first handles `#define'
22269
# templates, and the second `#undef' templates.
22270
# And first: Protect against being on the right side of a sed subst in
22271
# config.status. Protect against being in an unquoted here document
22272
# in config.status.
22273
rm -f conftest.defines conftest.undefs
22274
# Using a here document instead of a string reduces the quoting nightmare.
22275
# Putting comments in sed scripts is not portable.
22277
# `end' is used to avoid that the second main sed command (meant for
22278
# 0-ary CPP macros) applies to n-ary macro definitions.
22279
# See the Autoconf documentation for `clear'.
22280
cat >confdef2sed.sed <<\_ACEOF
22285
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22287
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22290
# If some macros were called several times there might be several times
22291
# the same #defines, which is useless. Nevertheless, we may not want to
22292
# sort them, since we want the *last* AC-DEFINE to be honored.
22293
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22294
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22295
rm -f confdef2sed.sed
22297
# This sed command replaces #undef with comments. This is necessary, for
22298
# example, in the case of _POSIX_SOURCE, which is predefined and required
22299
# on some systems where configure will not decide to define it.
22300
cat >>conftest.undefs <<\_ACEOF
22301
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22304
# Break up conftest.defines because some shells have a limit on the size
22305
# of here documents, and old seds have small limits too (100 cmds).
22306
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22307
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22308
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22309
echo ' :' >>$CONFIG_STATUS
22310
rm -f conftest.tail
22311
while grep . conftest.defines >/dev/null
22313
# Write a limited-size here document to $tmp/defines.sed.
22314
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22315
# Speed up: don't consider the non `#define' lines.
22316
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22317
# Work around the forget-to-reset-the-flag bug.
22318
echo 't clr' >>$CONFIG_STATUS
22319
echo ': clr' >>$CONFIG_STATUS
22320
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22322
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22324
mv $tmp/out $tmp/in
22326
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22327
rm -f conftest.defines
22328
mv conftest.tail conftest.defines
22330
rm -f conftest.defines
22331
echo ' fi # grep' >>$CONFIG_STATUS
22332
echo >>$CONFIG_STATUS
22334
# Break up conftest.undefs because some shells have a limit on the size
22335
# of here documents, and old seds have small limits too (100 cmds).
22336
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22337
rm -f conftest.tail
22338
while grep . conftest.undefs >/dev/null
22340
# Write a limited-size here document to $tmp/undefs.sed.
22341
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22342
# Speed up: don't consider the non `#undef'
22343
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22344
# Work around the forget-to-reset-the-flag bug.
22345
echo 't clr' >>$CONFIG_STATUS
22346
echo ': clr' >>$CONFIG_STATUS
22347
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22349
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22351
mv $tmp/out $tmp/in
22353
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22354
rm -f conftest.undefs
22355
mv conftest.tail conftest.undefs
22357
rm -f conftest.undefs
22359
cat >>$CONFIG_STATUS <<\_ACEOF
22360
# Let's still pretend it is `configure' which instantiates (i.e., don't
22361
# use $as_me), people would be surprised to read:
22362
# /* config.h. Generated by config.status. */
22363
if test x"$ac_file" = x-; then
22364
echo "/* Generated by configure. */" >$tmp/config.h
22366
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22368
cat $tmp/in >>$tmp/config.h
22370
if test x"$ac_file" != x-; then
22371
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22372
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22373
echo "$as_me: $ac_file is unchanged" >&6;}
22375
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22376
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22377
X"$ac_file" : 'X\(//\)[^/]' \| \
22378
X"$ac_file" : 'X\(//\)$' \| \
22379
X"$ac_file" : 'X\(/\)' \| \
22380
. : '\(.\)' 2>/dev/null ||
22382
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22383
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22384
/^X\(\/\/\)$/{ s//\1/; q; }
22385
/^X\(\/\).*/{ s//\1/; q; }
22387
{ if $as_mkdir_p; then
22392
while test ! -d "$as_dir"; do
22393
as_dirs="$as_dir $as_dirs"
22394
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22395
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396
X"$as_dir" : 'X\(//\)[^/]' \| \
22397
X"$as_dir" : 'X\(//\)$' \| \
22398
X"$as_dir" : 'X\(/\)' \| \
22399
. : '\(.\)' 2>/dev/null ||
22401
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22402
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22403
/^X\(\/\/\)$/{ s//\1/; q; }
22404
/^X\(\/\).*/{ s//\1/; q; }
22407
test ! -n "$as_dirs" || mkdir $as_dirs
22408
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22409
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22410
{ (exit 1); exit 1; }; }; }
22413
mv $tmp/config.h $ac_file
22417
rm -f $tmp/config.h
22419
# Compute $ac_file's index in $config_headers.
22421
for _am_header in $config_headers :; do
22422
case $_am_header in
22423
$ac_file | $ac_file:* )
22426
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
22429
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22430
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22431
X$ac_file : 'X\(//\)[^/]' \| \
22432
X$ac_file : 'X\(//\)$' \| \
22433
X$ac_file : 'X\(/\)' \| \
22434
. : '\(.\)' 2>/dev/null ||
22436
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22437
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22438
/^X\(\/\/\)$/{ s//\1/; q; }
22439
/^X\(\/\).*/{ s//\1/; q; }
22440
s/.*/./; q'`/stamp-h$_am_stamp_count
22443
cat >>$CONFIG_STATUS <<\_ACEOF
22446
# CONFIG_LINKS section.
22449
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22450
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22451
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22453
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22454
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22456
if test ! -r $srcdir/$ac_source; then
22457
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22458
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22459
{ (exit 1); exit 1; }; }
22463
# Make relative symlinks.
22464
ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22465
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466
X"$ac_dest" : 'X\(//\)[^/]' \| \
22467
X"$ac_dest" : 'X\(//\)$' \| \
22468
X"$ac_dest" : 'X\(/\)' \| \
22469
. : '\(.\)' 2>/dev/null ||
22471
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22472
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22473
/^X\(\/\/\)$/{ s//\1/; q; }
22474
/^X\(\/\).*/{ s//\1/; q; }
22476
{ if $as_mkdir_p; then
22477
mkdir -p "$ac_dest_dir"
22479
as_dir="$ac_dest_dir"
22481
while test ! -d "$as_dir"; do
22482
as_dirs="$as_dir $as_dirs"
22483
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22484
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485
X"$as_dir" : 'X\(//\)[^/]' \| \
22486
X"$as_dir" : 'X\(//\)$' \| \
22487
X"$as_dir" : 'X\(/\)' \| \
22488
. : '\(.\)' 2>/dev/null ||
22490
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22491
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22492
/^X\(\/\/\)$/{ s//\1/; q; }
22493
/^X\(\/\).*/{ s//\1/; q; }
22496
test ! -n "$as_dirs" || mkdir $as_dirs
22497
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22498
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22499
{ (exit 1); exit 1; }; }; }
22503
if test "$ac_dest_dir" != .; then
22504
ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22505
# A "../" for each directory in $ac_dir_suffix.
22506
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22508
ac_dir_suffix= ac_top_builddir=
22512
.) # No --srcdir option. We are building in place.
22514
if test -z "$ac_top_builddir"; then
22517
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22519
[\\/]* | ?:[\\/]* ) # Absolute path.
22520
ac_srcdir=$srcdir$ac_dir_suffix;
22521
ac_top_srcdir=$srcdir ;;
22522
*) # Relative path.
22523
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22524
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22527
# Do not use `cd foo && pwd` to compute absolute paths, because
22528
# the directories may not exist.
22530
.) ac_abs_builddir="$ac_dest_dir";;
22532
case "$ac_dest_dir" in
22533
.) ac_abs_builddir=`pwd`;;
22534
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22535
*) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22538
case $ac_abs_builddir in
22539
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22541
case ${ac_top_builddir}. in
22542
.) ac_abs_top_builddir=$ac_abs_builddir;;
22543
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22544
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22547
case $ac_abs_builddir in
22548
.) ac_abs_srcdir=$ac_srcdir;;
22551
.) ac_abs_srcdir=$ac_abs_builddir;;
22552
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22553
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22556
case $ac_abs_builddir in
22557
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22559
case $ac_top_srcdir in
22560
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22561
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22562
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22568
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22569
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22572
# Try a symlink, then a hard link, then a copy.
22573
ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22574
ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22575
cp -p $srcdir/$ac_source $ac_dest ||
22576
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22577
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22578
{ (exit 1); exit 1; }; }
22581
cat >>$CONFIG_STATUS <<\_ACEOF
22584
# CONFIG_COMMANDS section.
22586
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22587
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22588
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22589
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22590
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22591
X"$ac_dest" : 'X\(//\)[^/]' \| \
22592
X"$ac_dest" : 'X\(//\)$' \| \
22593
X"$ac_dest" : 'X\(/\)' \| \
22594
. : '\(.\)' 2>/dev/null ||
22596
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22597
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22598
/^X\(\/\/\)$/{ s//\1/; q; }
22599
/^X\(\/\).*/{ s//\1/; q; }
22601
{ if $as_mkdir_p; then
22606
while test ! -d "$as_dir"; do
22607
as_dirs="$as_dir $as_dirs"
22608
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22609
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22610
X"$as_dir" : 'X\(//\)[^/]' \| \
22611
X"$as_dir" : 'X\(//\)$' \| \
22612
X"$as_dir" : 'X\(/\)' \| \
22613
. : '\(.\)' 2>/dev/null ||
22615
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22616
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22617
/^X\(\/\/\)$/{ s//\1/; q; }
22618
/^X\(\/\).*/{ s//\1/; q; }
22621
test ! -n "$as_dirs" || mkdir $as_dirs
22622
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22623
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22624
{ (exit 1); exit 1; }; }; }
22628
if test "$ac_dir" != .; then
22629
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22630
# A "../" for each directory in $ac_dir_suffix.
22631
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22633
ac_dir_suffix= ac_top_builddir=
22637
.) # No --srcdir option. We are building in place.
22639
if test -z "$ac_top_builddir"; then
22642
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22644
[\\/]* | ?:[\\/]* ) # Absolute path.
22645
ac_srcdir=$srcdir$ac_dir_suffix;
22646
ac_top_srcdir=$srcdir ;;
22647
*) # Relative path.
22648
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22649
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22652
# Do not use `cd foo && pwd` to compute absolute paths, because
22653
# the directories may not exist.
22655
.) ac_abs_builddir="$ac_dir";;
22658
.) ac_abs_builddir=`pwd`;;
22659
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22660
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22663
case $ac_abs_builddir in
22664
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22666
case ${ac_top_builddir}. in
22667
.) ac_abs_top_builddir=$ac_abs_builddir;;
22668
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22669
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22672
case $ac_abs_builddir in
22673
.) ac_abs_srcdir=$ac_srcdir;;
22676
.) ac_abs_srcdir=$ac_abs_builddir;;
22677
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22678
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22681
case $ac_abs_builddir in
22682
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22684
case $ac_top_srcdir in
22685
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22686
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22687
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22692
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22693
echo "$as_me: executing $ac_dest commands" >&6;}
22695
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22696
# Strip MF so we end up with the name of the file.
22697
mf=`echo "$mf" | sed -e 's/:.*$//'`
22698
# Check whether this is an Automake generated Makefile or not.
22699
# We used to match only the files named `Makefile.in', but
22700
# some people rename them; so instead we look at the file content.
22701
# Grep'ing the first line is not enough: some people post-process
22702
# each Makefile.in and add a new line on top of each file to say so.
22703
# So let's grep whole file.
22704
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22705
dirpart=`(dirname "$mf") 2>/dev/null ||
22706
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22707
X"$mf" : 'X\(//\)[^/]' \| \
22708
X"$mf" : 'X\(//\)$' \| \
22709
X"$mf" : 'X\(/\)' \| \
22710
. : '\(.\)' 2>/dev/null ||
22712
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22713
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22714
/^X\(\/\/\)$/{ s//\1/; q; }
22715
/^X\(\/\).*/{ s//\1/; q; }
22720
# Extract the definition of DEPDIR, am__include, and am__quote
22721
# from the Makefile without running `make'.
22722
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22723
test -z "$DEPDIR" && continue
22724
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22725
test -z "am__include" && continue
22726
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22727
# When using ansi2knr, U may be empty or an underscore; expand it
22728
U=`sed -n 's/^U = //p' < "$mf"`
22729
# Find all dependency output files, they are included files with
22730
# $(DEPDIR) in their names. We invoke sed twice because it is the
22731
# simplest approach to changing $(DEPDIR) to its actual value in the
22733
for file in `sed -n "
22734
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22735
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22736
# Make sure the directory exists.
22737
test -f "$dirpart/$file" && continue
22738
fdir=`(dirname "$file") 2>/dev/null ||
22739
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740
X"$file" : 'X\(//\)[^/]' \| \
22741
X"$file" : 'X\(//\)$' \| \
22742
X"$file" : 'X\(/\)' \| \
22743
. : '\(.\)' 2>/dev/null ||
22745
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22746
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22747
/^X\(\/\/\)$/{ s//\1/; q; }
22748
/^X\(\/\).*/{ s//\1/; q; }
22750
{ if $as_mkdir_p; then
22751
mkdir -p $dirpart/$fdir
22753
as_dir=$dirpart/$fdir
22755
while test ! -d "$as_dir"; do
22756
as_dirs="$as_dir $as_dirs"
22757
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22758
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22759
X"$as_dir" : 'X\(//\)[^/]' \| \
22760
X"$as_dir" : 'X\(//\)$' \| \
22761
X"$as_dir" : 'X\(/\)' \| \
22762
. : '\(.\)' 2>/dev/null ||
22764
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22765
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22766
/^X\(\/\/\)$/{ s//\1/; q; }
22767
/^X\(\/\).*/{ s//\1/; q; }
22770
test ! -n "$as_dirs" || mkdir $as_dirs
22771
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22772
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22773
{ (exit 1); exit 1; }; }; }
22775
# echo "creating $dirpart/$file"
22776
echo '# dummy' > "$dirpart/$file"
22784
cat >>$CONFIG_STATUS <<\_ACEOF
22786
{ (exit 0); exit 0; }
22788
chmod +x $CONFIG_STATUS
22789
ac_clean_files=$ac_clean_files_save
22792
# configure is writing to config.log, and then calls config.status.
22793
# config.status does its own redirection, appending to config.log.
22794
# Unfortunately, on DOS this fails, as config.log is still kept open
22795
# by configure, so config.status won't be able to write to it; its
22796
# output is simply discarded. So we exec the FD to /dev/null,
22797
# effectively closing config.log, so it can be properly (re)opened and
22798
# appended to by config.status. When coming back to configure, we
22799
# need to make the FD available again.
22800
if test "$no_create" != yes; then
22802
ac_config_status_args=
22803
test "$silent" = yes &&
22804
ac_config_status_args="$ac_config_status_args --quiet"
22806
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22808
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
22809
# would make configure fail if this is the last instruction.
22810
$ac_cs_success || { (exit 1); exit 1; }