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
## There is no encapsulation within the following macros, do not change
6424
## the running order or otherwise move them around unless you know exactly
6425
## what you are doing...
6427
lt_prog_compiler_no_builtin_flag=
6429
if test "$GCC" = yes; then
6430
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6433
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6434
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6435
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6436
echo $ECHO_N "(cached) $ECHO_C" >&6
6438
lt_cv_prog_compiler_rtti_exceptions=no
6439
ac_outfile=conftest.$ac_objext
6440
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6441
lt_compiler_flag="-fno-rtti -fno-exceptions"
6442
# Insert the option either (1) after the last *FLAGS variable, or
6443
# (2) before a word containing "conftest.", or (3) at the end.
6444
# Note that $ac_compile itself does not contain backslashes and begins
6445
# with a dollar sign (not a hyphen), so the echo should work correctly.
6446
# The option is referenced via a variable to avoid confusing sed.
6447
lt_compile=`echo "$ac_compile" | $SED \
6448
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6449
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6450
-e 's:$: $lt_compiler_flag:'`
6451
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6452
(eval "$lt_compile" 2>conftest.err)
6454
cat conftest.err >&5
6455
echo "$as_me:__oline__: \$? = $ac_status" >&5
6456
if (exit $ac_status) && test -s "$ac_outfile"; then
6457
# The compiler can only warn and ignore the option if not recognized
6458
# So say no if there are warnings other than the usual output.
6459
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6460
$SED '/^$/d' conftest.err >conftest.er2
6461
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6462
lt_cv_prog_compiler_rtti_exceptions=yes
6468
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6469
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6471
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6472
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6479
lt_prog_compiler_wl=
6480
lt_prog_compiler_pic=
6481
lt_prog_compiler_static=
6483
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6484
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6486
if test "$GCC" = yes; then
6487
lt_prog_compiler_wl='-Wl,'
6488
lt_prog_compiler_static='-static'
6492
# All AIX code is PIC.
6493
if test "$host_cpu" = ia64; then
6494
# AIX 5 now supports IA64 processor
6495
lt_prog_compiler_static='-Bstatic'
6500
# FIXME: we need at least 68020 code to build shared libraries, but
6501
# adding the `-m68020' flag to GCC prevents building anything better,
6503
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6506
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6507
# PIC is the default for these OSes.
6510
mingw* | pw32* | os2*)
6511
# This hack is so that the source file can tell whether it is being
6512
# built for inclusion in a dll (and should export symbols for example).
6513
lt_prog_compiler_pic='-DDLL_EXPORT'
6516
darwin* | rhapsody*)
6517
# PIC is the default on this platform
6518
# Common symbols not allowed in MH_DYLIB files
6519
lt_prog_compiler_pic='-fno-common'
6523
# Just because we use GCC doesn't mean we suddenly get shared libraries
6524
# on systems that don't support them.
6525
lt_prog_compiler_can_build_shared=no
6530
if test -d /usr/nec; then
6531
lt_prog_compiler_pic=-Kconform_pic
6536
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6543
lt_prog_compiler_pic='-fPIC'
6549
lt_prog_compiler_pic='-fPIC'
6553
# PORTME Check for flag to pass linker flags through the system compiler.
6556
lt_prog_compiler_wl='-Wl,'
6557
if test "$host_cpu" = ia64; then
6558
# AIX 5 now supports IA64 processor
6559
lt_prog_compiler_static='-Bstatic'
6561
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6565
# PIC is the default on this platform
6566
# Common symbols not allowed in MH_DYLIB files
6567
case $cc_basename in
6569
lt_prog_compiler_pic='-qnocommon'
6570
lt_prog_compiler_wl='-Wl,'
6575
mingw* | pw32* | os2*)
6576
# This hack is so that the source file can tell whether it is being
6577
# built for inclusion in a dll (and should export symbols for example).
6578
lt_prog_compiler_pic='-DDLL_EXPORT'
6581
hpux9* | hpux10* | hpux11*)
6582
lt_prog_compiler_wl='-Wl,'
6583
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6590
lt_prog_compiler_pic='+Z'
6593
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6594
lt_prog_compiler_static='${wl}-a ${wl}archive'
6597
irix5* | irix6* | nonstopux*)
6598
lt_prog_compiler_wl='-Wl,'
6599
# PIC (with -KPIC) is the default.
6600
lt_prog_compiler_static='-non_shared'
6604
lt_prog_compiler_pic='-KPIC'
6605
lt_prog_compiler_static='-Bstatic'
6609
case $cc_basename in
6611
lt_prog_compiler_wl='-Wl,'
6612
lt_prog_compiler_pic='-KPIC'
6613
lt_prog_compiler_static='-static'
6615
pgcc* | pgf77* | pgf90* | pgf95*)
6616
# Portland Group compilers (*not* the Pentium gcc compiler,
6617
# which looks to be a dead project)
6618
lt_prog_compiler_wl='-Wl,'
6619
lt_prog_compiler_pic='-fpic'
6620
lt_prog_compiler_static='-Bstatic'
6623
lt_prog_compiler_wl='-Wl,'
6624
# All Alpha code is PIC.
6625
lt_prog_compiler_static='-non_shared'
6630
osf3* | osf4* | osf5*)
6631
lt_prog_compiler_wl='-Wl,'
6632
# All OSF/1 code is PIC.
6633
lt_prog_compiler_static='-non_shared'
6637
lt_prog_compiler_pic='-Kpic'
6638
lt_prog_compiler_static='-dn'
6642
lt_prog_compiler_pic='-KPIC'
6643
lt_prog_compiler_static='-Bstatic'
6644
case $cc_basename in
6646
lt_prog_compiler_wl='-Qoption ld ';;
6648
lt_prog_compiler_wl='-Wl,';;
6653
lt_prog_compiler_wl='-Qoption ld '
6654
lt_prog_compiler_pic='-PIC'
6655
lt_prog_compiler_static='-Bstatic'
6658
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6659
lt_prog_compiler_wl='-Wl,'
6660
lt_prog_compiler_pic='-KPIC'
6661
lt_prog_compiler_static='-Bstatic'
6665
if test -d /usr/nec ;then
6666
lt_prog_compiler_pic='-Kconform_pic'
6667
lt_prog_compiler_static='-Bstatic'
6672
lt_prog_compiler_wl='-Wl,'
6673
lt_prog_compiler_can_build_shared=no
6677
lt_prog_compiler_pic='-pic'
6678
lt_prog_compiler_static='-Bstatic'
6682
lt_prog_compiler_can_build_shared=no
6687
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6688
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6691
# Check to make sure the PIC flag actually works.
6693
if test -n "$lt_prog_compiler_pic"; then
6695
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6696
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6697
if test "${lt_prog_compiler_pic_works+set}" = set; then
6698
echo $ECHO_N "(cached) $ECHO_C" >&6
6700
lt_prog_compiler_pic_works=no
6701
ac_outfile=conftest.$ac_objext
6702
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6703
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6704
# Insert the option either (1) after the last *FLAGS variable, or
6705
# (2) before a word containing "conftest.", or (3) at the end.
6706
# Note that $ac_compile itself does not contain backslashes and begins
6707
# with a dollar sign (not a hyphen), so the echo should work correctly.
6708
# The option is referenced via a variable to avoid confusing sed.
6709
lt_compile=`echo "$ac_compile" | $SED \
6710
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6711
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6712
-e 's:$: $lt_compiler_flag:'`
6713
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6714
(eval "$lt_compile" 2>conftest.err)
6716
cat conftest.err >&5
6717
echo "$as_me:__oline__: \$? = $ac_status" >&5
6718
if (exit $ac_status) && test -s "$ac_outfile"; then
6719
# The compiler can only warn and ignore the option if not recognized
6720
# So say no if there are warnings other than the usual output.
6721
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6722
$SED '/^$/d' conftest.err >conftest.er2
6723
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6724
lt_prog_compiler_pic_works=yes
6730
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6731
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6733
if test x"$lt_prog_compiler_pic_works" = xyes; then
6734
case $lt_prog_compiler_pic in
6736
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6739
lt_prog_compiler_pic=
6740
lt_prog_compiler_can_build_shared=no
6745
# For platforms which do not support PIC, -DPIC is meaningless:
6747
lt_prog_compiler_pic=
6750
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6754
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6755
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6756
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6757
echo $ECHO_N "(cached) $ECHO_C" >&6
6759
lt_cv_prog_compiler_c_o=no
6760
$rm -r conftest 2>/dev/null
6764
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6766
lt_compiler_flag="-o out/conftest2.$ac_objext"
6767
# Insert the option either (1) after the last *FLAGS variable, or
6768
# (2) before a word containing "conftest.", or (3) at the end.
6769
# Note that $ac_compile itself does not contain backslashes and begins
6770
# with a dollar sign (not a hyphen), so the echo should work correctly.
6771
lt_compile=`echo "$ac_compile" | $SED \
6772
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6773
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6774
-e 's:$: $lt_compiler_flag:'`
6775
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6776
(eval "$lt_compile" 2>out/conftest.err)
6778
cat out/conftest.err >&5
6779
echo "$as_me:__oline__: \$? = $ac_status" >&5
6780
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6782
# The compiler can only warn and ignore the option if not recognized
6783
# So say no if there are warnings
6784
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6785
$SED '/^$/d' out/conftest.err >out/conftest.er2
6786
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6787
lt_cv_prog_compiler_c_o=yes
6792
# SGI C++ compiler will create directory out/ii_files/ for
6793
# template instantiation
6794
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6795
$rm out/* && rmdir out
6801
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6802
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6805
hard_links="nottested"
6806
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6807
# do not overwrite the value of need_locks provided by the user
6808
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6809
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6812
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6814
ln conftest.a conftest.b 2>&5 || hard_links=no
6815
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6816
echo "$as_me:$LINENO: result: $hard_links" >&5
6817
echo "${ECHO_T}$hard_links" >&6
6818
if test "$hard_links" = no; then
6819
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6820
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6827
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6828
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6831
allow_undefined_flag=
6832
enable_shared_with_static_runtimes=no
6834
archive_expsym_cmds=
6835
old_archive_From_new_cmds=
6836
old_archive_from_expsyms_cmds=
6837
export_dynamic_flag_spec=
6838
whole_archive_flag_spec=
6839
thread_safe_flag_spec=
6840
hardcode_libdir_flag_spec=
6841
hardcode_libdir_flag_spec_ld=
6842
hardcode_libdir_separator=
6845
hardcode_shlibpath_var=unsupported
6846
link_all_deplibs=unknown
6847
hardcode_automatic=no
6850
always_export_symbols=no
6851
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6852
# include_expsyms should be a list of space-separated symbols to be *always*
6853
# included in the symbol list
6855
# exclude_expsyms can be an extended regexp of symbols to exclude
6856
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6857
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6858
# as well as any symbol that contains `d'.
6859
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6860
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6861
# platforms (ab)use it in PIC code, but their linkers get confused if
6862
# the symbol is explicitly referenced. Since portable code cannot
6863
# rely on this symbol name, it's probably fine to never include it in
6864
# preloaded symbol tables.
6865
extract_expsyms_cmds=
6866
# Just being paranoid about ensuring that cc_basename is set.
6867
for cc_temp in $compiler""; do
6869
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6870
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6875
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6878
cygwin* | mingw* | pw32*)
6879
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6880
# When not using gcc, we currently assume that we are using
6881
# Microsoft Visual C++.
6882
if test "$GCC" != yes; then
6892
if test "$with_gnu_ld" = yes; then
6893
# If archive_cmds runs LD, not CC, wlarc should be empty
6896
# Set some defaults for GNU ld with shared library support. These
6897
# are reset later if shared libraries are not supported. Putting them
6898
# here allows them to be overridden if necessary.
6899
runpath_var=LD_RUN_PATH
6900
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6901
export_dynamic_flag_spec='${wl}--export-dynamic'
6902
# ancient GNU ld didn't support --whole-archive et. al.
6903
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6904
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6906
whole_archive_flag_spec=
6908
supports_anon_versioning=no
6909
case `$LD -v 2>/dev/null` in
6910
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6911
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6912
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6913
*\ 2.11.*) ;; # other 2.11 versions
6914
*) supports_anon_versioning=yes ;;
6917
# See if GNU ld supports shared libraries.
6919
aix3* | aix4* | aix5*)
6920
# On AIX/PPC, the GNU linker is very broken
6921
if test "$host_cpu" != ia64; then
6925
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6926
*** to be unable to reliably create shared libraries on AIX.
6927
*** Therefore, libtool is disabling shared libraries support. If you
6928
*** really care for shared libraries, you may want to modify your PATH
6929
*** so that a non-GNU linker is found, and then restart.
6936
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)'
6937
hardcode_libdir_flag_spec='-L$libdir'
6938
hardcode_minus_L=yes
6940
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6941
# that the semantics of dynamic libraries on AmigaOS, at least up
6942
# to version 4, is to share data among multiple programs linked
6943
# with the same dynamic library. Since this doesn't match the
6944
# behavior of shared libraries on other platforms, we can't use
6950
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6951
allow_undefined_flag=unsupported
6952
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6953
# support --undefined. This deserves some investigation. FIXME
6954
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6960
cygwin* | mingw* | pw32*)
6961
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6962
# as there is no search path for DLLs.
6963
hardcode_libdir_flag_spec='-L$libdir'
6964
allow_undefined_flag=unsupported
6965
always_export_symbols=no
6966
enable_shared_with_static_runtimes=yes
6967
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6969
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6970
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6971
# If the export-symbols file already is a .def file (1st line
6972
# is EXPORTS), use it as is; otherwise, prepend...
6973
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6974
cp $export_symbols $output_objdir/$soname.def;
6976
echo EXPORTS > $output_objdir/$soname.def;
6977
cat $export_symbols >> $output_objdir/$soname.def;
6979
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6986
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6988
case $cc_basename,$host_cpu in
6989
pgcc*) # Portland Group C compiler
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'
6993
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6994
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'
6995
tmp_addflag=' $pic_flag -Mnomain' ;;
6996
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6997
tmp_addflag=' -i_dynamic' ;;
6998
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6999
tmp_addflag=' -i_dynamic -nofor_main' ;;
7000
ifc* | ifort*) # Intel Fortran compiler
7001
tmp_addflag=' -nofor_main' ;;
7003
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7005
if test $supports_anon_versioning = yes; then
7006
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7007
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7008
$echo "local: *; };" >> $output_objdir/$libname.ver~
7009
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7017
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7018
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7019
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7022
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7023
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7028
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7032
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7033
*** create shared libraries on Solaris systems. Therefore, libtool
7034
*** is disabling shared libraries support. We urge you to upgrade GNU
7035
*** binutils to release 2.9.1 or newer. Another option is to modify
7036
*** your PATH or compiler configuration so that the native linker is
7037
*** used, and then restart.
7040
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7041
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7042
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7049
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7052
hardcode_shlibpath_var=no
7056
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7057
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7058
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7065
if test "$ld_shlibs" = no; then
7067
hardcode_libdir_flag_spec=
7068
export_dynamic_flag_spec=
7069
whole_archive_flag_spec=
7072
# PORTME fill in a description of your system's linker (not GNU ld)
7075
allow_undefined_flag=unsupported
7076
always_export_symbols=yes
7077
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'
7078
# Note: this linker hardcodes the directories in LIBPATH if there
7079
# are no directories specified by -L.
7080
hardcode_minus_L=yes
7081
if test "$GCC" = yes && test -z "$link_static_flag"; then
7082
# Neither direct hardcoding nor static linking is supported with a
7084
hardcode_direct=unsupported
7089
if test "$host_cpu" = ia64; then
7090
# On IA64, the linker does run time linking by default, so we don't
7091
# have to do anything special.
7092
aix_use_runtimelinking=no
7093
exp_sym_flag='-Bexport'
7096
# If we're using GNU nm, then we don't want the "-C" option.
7097
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7098
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7099
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'
7101
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'
7103
aix_use_runtimelinking=no
7105
# Test if we are trying to use run time linking or normal
7106
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7107
# need to do runtime linking.
7108
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7109
for ld_flag in $LDFLAGS; do
7110
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7111
aix_use_runtimelinking=yes
7117
exp_sym_flag='-bexport'
7118
no_entry_flag='-bnoentry'
7121
# When large executables or shared objects are built, AIX ld can
7122
# have problems creating the table of contents. If linking a library
7123
# or program results in "error TOC overflow" add -mminimal-toc to
7124
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7125
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7129
hardcode_libdir_separator=':'
7130
link_all_deplibs=yes
7132
if test "$GCC" = yes; then
7133
case $host_os in aix4.[012]|aix4.[012].*)
7134
# We only want to do this on AIX 4.2 and lower, the check
7135
# below for broken collect2 doesn't work under 4.3+
7136
collect2name=`${CC} -print-prog-name=collect2`
7137
if test -f "$collect2name" && \
7138
strings "$collect2name" | grep resolve_lib_name >/dev/null
7140
# We have reworked collect2
7143
# We have old collect2
7144
hardcode_direct=unsupported
7145
# It fails to find uninstalled libraries when the uninstalled
7146
# path is not listed in the libpath. Setting hardcode_minus_L
7147
# to unsupported forces relinking
7148
hardcode_minus_L=yes
7149
hardcode_libdir_flag_spec='-L$libdir'
7150
hardcode_libdir_separator=
7153
shared_flag='-shared'
7154
if test "$aix_use_runtimelinking" = yes; then
7155
shared_flag="$shared_flag "'${wl}-G'
7159
if test "$host_cpu" = ia64; then
7160
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7161
# chokes on -Wl,-G. The following line is correct:
7164
if test "$aix_use_runtimelinking" = yes; then
7165
shared_flag='${wl}-G'
7167
shared_flag='${wl}-bM:SRE'
7172
# It seems that -bexpall does not export symbols beginning with
7173
# underscore (_), so it is better to generate a list of symbols to export.
7174
always_export_symbols=yes
7175
if test "$aix_use_runtimelinking" = yes; then
7176
# Warning - without using the other runtime loading flags (-brtl),
7177
# -berok will link without error, but may produce a broken library.
7178
allow_undefined_flag='-berok'
7179
# Determine the default libpath from the value encoded in an empty executable.
7180
cat >conftest.$ac_ext <<_ACEOF
7183
cat confdefs.h >>conftest.$ac_ext
7184
cat >>conftest.$ac_ext <<_ACEOF
7185
/* end confdefs.h. */
7195
rm -f conftest.$ac_objext conftest$ac_exeext
7196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197
(eval $ac_link) 2>conftest.er1
7199
grep -v '^ *+' conftest.er1 >conftest.err
7201
cat conftest.err >&5
7202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203
(exit $ac_status); } &&
7204
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209
(exit $ac_status); }; } &&
7210
{ ac_try='test -s conftest$ac_exeext'
7211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215
(exit $ac_status); }; }; then
7217
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7219
# Check for a 64-bit object if we didn't find anything.
7220
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; }
7223
echo "$as_me: failed program was:" >&5
7224
sed 's/^/| /' conftest.$ac_ext >&5
7227
rm -f conftest.err conftest.$ac_objext \
7228
conftest$ac_exeext conftest.$ac_ext
7229
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7231
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7232
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"
7234
if test "$host_cpu" = ia64; then
7235
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7236
allow_undefined_flag="-z nodefs"
7237
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"
7239
# Determine the default libpath from the value encoded in an empty executable.
7240
cat >conftest.$ac_ext <<_ACEOF
7243
cat confdefs.h >>conftest.$ac_ext
7244
cat >>conftest.$ac_ext <<_ACEOF
7245
/* end confdefs.h. */
7255
rm -f conftest.$ac_objext conftest$ac_exeext
7256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257
(eval $ac_link) 2>conftest.er1
7259
grep -v '^ *+' conftest.er1 >conftest.err
7261
cat conftest.err >&5
7262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263
(exit $ac_status); } &&
7264
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269
(exit $ac_status); }; } &&
7270
{ ac_try='test -s conftest$ac_exeext'
7271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275
(exit $ac_status); }; }; then
7277
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7279
# Check for a 64-bit object if we didn't find anything.
7280
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; }
7283
echo "$as_me: failed program was:" >&5
7284
sed 's/^/| /' conftest.$ac_ext >&5
7287
rm -f conftest.err conftest.$ac_objext \
7288
conftest$ac_exeext conftest.$ac_ext
7289
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7291
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7292
# Warning - without using the other run time loading flags,
7293
# -berok will link without error, but may produce a broken library.
7294
no_undefined_flag=' ${wl}-bernotok'
7295
allow_undefined_flag=' ${wl}-berok'
7296
# -bexpall does not export symbols beginning with underscore (_)
7297
always_export_symbols=yes
7298
# Exported symbols can be pulled into shared objects from archives
7299
whole_archive_flag_spec=' '
7300
archive_cmds_need_lc=yes
7301
# This is similar to how AIX traditionally builds its shared libraries.
7302
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'
7308
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)'
7309
hardcode_libdir_flag_spec='-L$libdir'
7310
hardcode_minus_L=yes
7311
# see comment about different semantics on the GNU ld section
7316
export_dynamic_flag_spec=-rdynamic
7319
cygwin* | mingw* | pw32*)
7320
# When not using gcc, we currently assume that we are using
7321
# Microsoft Visual C++.
7322
# hardcode_libdir_flag_spec is actually meaningless, as there is
7323
# no search path for DLLs.
7324
hardcode_libdir_flag_spec=' '
7325
allow_undefined_flag=unsupported
7326
# Tell ltmain to make .lib files, not .a files.
7328
# Tell ltmain to make .dll files, not .so files.
7330
# FIXME: Setting linknames here is a bad hack.
7331
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7332
# The linker will automatically build a .lib file if we build a DLL.
7333
old_archive_From_new_cmds='true'
7334
# FIXME: Should let the user specify the lib program.
7335
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7336
fix_srcfile_path='`cygpath -w "$srcfile"`'
7337
enable_shared_with_static_runtimes=yes
7340
darwin* | rhapsody*)
7342
rhapsody* | darwin1.[012])
7343
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7346
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7347
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7349
case ${MACOSX_DEPLOYMENT_TARGET} in
7351
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7354
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7360
archive_cmds_need_lc=no
7362
hardcode_automatic=yes
7363
hardcode_shlibpath_var=unsupported
7364
whole_archive_flag_spec=''
7365
link_all_deplibs=yes
7366
if test "$GCC" = yes ; then
7367
output_verbose_link_cmd='echo'
7368
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7369
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7370
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7371
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}'
7372
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}'
7374
case $cc_basename in
7376
output_verbose_link_cmd='echo'
7377
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7378
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7379
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7380
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}'
7381
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}'
7391
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392
hardcode_libdir_flag_spec='-L$libdir'
7393
hardcode_shlibpath_var=no
7400
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7401
# support. Future versions do this automatically, but an explicit c++rt0.o
7402
# does not break anything, and helps significantly (at the cost of a little
7405
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7406
hardcode_libdir_flag_spec='-R$libdir'
7408
hardcode_shlibpath_var=no
7411
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7413
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7415
hardcode_minus_L=yes
7416
hardcode_shlibpath_var=no
7419
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7420
freebsd* | kfreebsd*-gnu | dragonfly*)
7421
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7422
hardcode_libdir_flag_spec='-R$libdir'
7424
hardcode_shlibpath_var=no
7428
if test "$GCC" = yes; then
7429
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'
7431
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'
7433
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7434
hardcode_libdir_separator=:
7437
# hardcode_minus_L: Not really in the search PATH,
7438
# but as the default location of the library.
7439
hardcode_minus_L=yes
7440
export_dynamic_flag_spec='${wl}-E'
7444
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7447
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7456
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7459
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7463
if test "$with_gnu_ld" = no; then
7466
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7467
hardcode_libdir_flag_spec_ld='+b $libdir'
7468
hardcode_libdir_separator=:
7470
hardcode_shlibpath_var=no
7473
hardcode_libdir_flag_spec='-L$libdir'
7475
hardcode_shlibpath_var=no
7477
# hardcode_minus_L: Not really in the search PATH,
7478
# but as the default location of the library.
7479
hardcode_minus_L=yes
7482
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7483
hardcode_libdir_separator=:
7485
export_dynamic_flag_spec='${wl}-E'
7487
# hardcode_minus_L: Not really in the search PATH,
7488
# but as the default location of the library.
7489
hardcode_minus_L=yes
7495
irix5* | irix6* | nonstopux*)
7496
if test "$GCC" = yes; then
7497
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'
7499
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'
7500
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7502
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7503
hardcode_libdir_separator=:
7504
link_all_deplibs=yes
7507
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7508
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7509
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7511
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7513
hardcode_libdir_flag_spec='-R$libdir'
7515
hardcode_shlibpath_var=no
7519
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7522
hardcode_libdir_separator=:
7523
hardcode_shlibpath_var=no
7528
hardcode_shlibpath_var=no
7529
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7530
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7531
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7532
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7533
export_dynamic_flag_spec='${wl}-E'
7536
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7537
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7538
hardcode_libdir_flag_spec='-R$libdir'
7541
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7542
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7549
hardcode_libdir_flag_spec='-L$libdir'
7550
hardcode_minus_L=yes
7551
allow_undefined_flag=unsupported
7552
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'
7553
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7557
if test "$GCC" = yes; then
7558
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7559
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'
7561
allow_undefined_flag=' -expect_unresolved \*'
7562
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'
7564
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7565
hardcode_libdir_separator=:
7568
osf4* | osf5*) # as osf3* with the addition of -msym flag
7569
if test "$GCC" = yes; then
7570
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7571
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'
7572
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7574
allow_undefined_flag=' -expect_unresolved \*'
7575
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'
7576
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7577
$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'
7579
# Both c and cxx compiler support -rpath directly
7580
hardcode_libdir_flag_spec='-rpath $libdir'
7582
hardcode_libdir_separator=:
7586
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587
hardcode_shlibpath_var=no
7588
export_dynamic_flag_spec='${wl}-Bexport'
7589
runpath_var=LD_RUN_PATH
7590
hardcode_runpath_var=yes
7594
no_undefined_flag=' -z text'
7595
if test "$GCC" = yes; then
7597
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7598
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7599
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7602
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7603
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7604
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7606
hardcode_libdir_flag_spec='-R$libdir'
7607
hardcode_shlibpath_var=no
7609
solaris2.[0-5] | solaris2.[0-5].*) ;;
7611
# The compiler driver will combine linker options so we
7612
# cannot just pass the convience library names through
7613
# without $wl, iff we do not link with $LD.
7614
# Luckily, gcc supports the same syntax we need for Sun Studio.
7615
# Supported since Solaris 2.6 (maybe 2.5.1?)
7618
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7620
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' ;;
7623
link_all_deplibs=yes
7627
if test "x$host_vendor" = xsequent; then
7628
# Use $CC to link under sequent, because it throws in some extra .o
7629
# files that make .init and .fini sections work.
7630
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7632
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7634
hardcode_libdir_flag_spec='-L$libdir'
7636
hardcode_minus_L=yes
7637
hardcode_shlibpath_var=no
7641
case $host_vendor in
7643
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7644
hardcode_direct=yes # is this really true???
7647
## LD is ld it makes a PLAMLIB
7648
## CC just makes a GrossModule.
7649
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7650
reload_cmds='$CC -r -o $output$reload_objs'
7654
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7658
runpath_var='LD_RUN_PATH'
7659
hardcode_shlibpath_var=no
7663
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664
hardcode_shlibpath_var=no
7665
export_dynamic_flag_spec='-Bexport'
7669
if test -d /usr/nec; then
7670
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7671
hardcode_shlibpath_var=no
7672
runpath_var=LD_RUN_PATH
7673
hardcode_runpath_var=yes
7679
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7682
hardcode_shlibpath_var=no
7683
hardcode_runpath_var=yes
7684
runpath_var=LD_RUN_PATH
7687
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7688
no_undefined_flag='${wl}-z ${wl}text'
7689
if test "$GCC" = yes; then
7690
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7692
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7694
runpath_var='LD_RUN_PATH'
7695
hardcode_shlibpath_var=no
7699
no_undefined_flag=' -z text'
7700
# $CC -shared without GNU ld will not create a library from C++
7701
# object files and a static libstdc++, better avoid it by now
7702
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7703
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7704
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7705
hardcode_libdir_flag_spec=
7706
hardcode_shlibpath_var=no
7707
runpath_var='LD_RUN_PATH'
7711
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712
hardcode_libdir_flag_spec='-L$libdir'
7713
hardcode_shlibpath_var=no
7722
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7723
echo "${ECHO_T}$ld_shlibs" >&6
7724
test "$ld_shlibs" = no && can_build_shared=no
7726
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7727
if test "$GCC" = yes; then
7728
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7732
# Do we need to explicitly link libc?
7734
case "x$archive_cmds_need_lc" in
7736
# Assume -lc should be added
7737
archive_cmds_need_lc=yes
7739
if test "$enable_shared" = yes && test "$GCC" = yes; then
7740
case $archive_cmds in
7742
# FIXME: we may have to deal with multi-command sequences.
7745
# Test whether the compiler implicitly links with -lc since on some
7746
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7747
# to ld, don't add -lc before -lgcc.
7748
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7749
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7751
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754
(eval $ac_compile) 2>&5
7756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757
(exit $ac_status); } 2>conftest.err; then
7760
libobjs=conftest.$ac_objext
7762
wl=$lt_prog_compiler_wl
7768
lt_save_allow_undefined_flag=$allow_undefined_flag
7769
allow_undefined_flag=
7770
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7771
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774
(exit $ac_status); }
7776
archive_cmds_need_lc=no
7778
archive_cmds_need_lc=yes
7780
allow_undefined_flag=$lt_save_allow_undefined_flag
7782
cat conftest.err 1>&5
7785
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7786
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7793
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7794
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7796
libname_spec='lib$name'
7804
shlibpath_overrides_runpath=unknown
7806
dynamic_linker="$host_os ld.so"
7807
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7808
if test "$GCC" = yes; then
7809
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7810
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7811
# if the path contains ";" then we assume it to be the separator
7812
# otherwise default to the standard path separator (i.e. ":") - it is
7813
# assumed that no part of a normal pathname contains ";" but that should
7814
# okay in the real world where ";" in dirpaths is itself problematic.
7815
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7817
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7820
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7822
need_lib_prefix=unknown
7823
hardcode_into_libs=no
7825
# when you set need_version to no, make sure it does not cause -set_version
7826
# flags to be left without arguments
7827
need_version=unknown
7832
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7833
shlibpath_var=LIBPATH
7835
# AIX 3 has no versioning support, so we append a major version to the name.
7836
soname_spec='${libname}${release}${shared_ext}$major'
7843
hardcode_into_libs=yes
7844
if test "$host_cpu" = ia64; then
7845
# AIX 5 supports IA64
7846
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7847
shlibpath_var=LD_LIBRARY_PATH
7849
# With GCC up to 2.95.x, collect2 would create an import file
7850
# for dependence libraries. The import file would start with
7851
# the line `#! .'. This would cause the generated library to
7852
# depend on `.', always an invalid library. This was fixed in
7853
# development snapshots of GCC prior to 3.0.
7855
aix4 | aix4.[01] | aix4.[01].*)
7856
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7858
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7865
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7866
# soname into executable. Probably we can add versioning support to
7867
# collect2, so additional links can be useful in future.
7868
if test "$aix_use_runtimelinking" = yes; then
7869
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7870
# instead of lib<name>.a to let people know that these are not
7871
# typical AIX shared libraries.
7872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874
# We preserve .a as extension for shared libraries through AIX4.2
7875
# and later when we are not doing run time linking.
7876
library_names_spec='${libname}${release}.a $libname.a'
7877
soname_spec='${libname}${release}${shared_ext}$major'
7879
shlibpath_var=LIBPATH
7884
library_names_spec='$libname.ixlibrary $libname.a'
7885
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7886
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'
7890
library_names_spec='${libname}${shared_ext}'
7891
dynamic_linker="$host_os ld.so"
7892
shlibpath_var=LIBRARY_PATH
7898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899
soname_spec='${libname}${release}${shared_ext}$major'
7900
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7901
shlibpath_var=LD_LIBRARY_PATH
7902
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7903
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7904
# the default ld.so.conf also contains /usr/contrib/lib and
7905
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7906
# libtool to hard-code these into programs
7909
cygwin* | mingw* | pw32*)
7910
version_type=windows
7915
case $GCC,$host_os in
7916
yes,cygwin* | yes,mingw* | yes,pw32*)
7917
library_names_spec='$libname.dll.a'
7918
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7919
postinstall_cmds='base_file=`basename \${file}`~
7920
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7921
dldir=$destdir/`dirname \$dlpath`~
7922
test -d \$dldir || mkdir -p \$dldir~
7923
$install_prog $dir/$dlname \$dldir/$dlname~
7924
chmod a+x \$dldir/$dlname'
7925
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7926
dlpath=$dir/\$dldll~
7928
shlibpath_overrides_runpath=yes
7932
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7933
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7934
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7937
# MinGW DLLs use traditional 'lib' prefix
7938
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7939
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7940
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7941
# It is most probably a Windows format PATH printed by
7942
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7943
# path with ; separators, and with drive letters. We can handle the
7944
# drive letters (cygwin fileutils understands them), so leave them,
7945
# especially as we might pass files found there to a mingw objdump,
7946
# which wouldn't understand a cygwinified path. Ahh.
7947
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7949
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7953
# pw32 DLLs use 'pw' prefix rather than 'lib'
7954
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7960
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7963
dynamic_linker='Win32 ld.exe'
7964
# FIXME: first we should search . and the directory the executable is in
7968
darwin* | rhapsody*)
7969
dynamic_linker="$host_os dyld"
7973
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7974
soname_spec='${libname}${release}${major}$shared_ext'
7975
shlibpath_overrides_runpath=yes
7976
shlibpath_var=DYLD_LIBRARY_PATH
7977
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7978
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7979
if test "$GCC" = yes; then
7980
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"`
7982
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7984
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7992
soname_spec='${libname}${release}${shared_ext}$major'
7993
shlibpath_var=LD_LIBRARY_PATH
8004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8005
soname_spec='${libname}${release}${shared_ext}$major'
8006
shlibpath_var=LD_LIBRARY_PATH
8007
shlibpath_overrides_runpath=no
8008
hardcode_into_libs=yes
8009
dynamic_linker='GNU ld.so'
8012
freebsd* | dragonfly*)
8013
# DragonFly does not have aout. When/if they implement a new
8014
# versioning mechanism, adjust this.
8015
if test -x /usr/bin/objformat; then
8016
objformat=`/usr/bin/objformat`
8019
freebsd[123]*) objformat=aout ;;
8023
version_type=freebsd-$objformat
8024
case $version_type in
8026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8031
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8035
shlibpath_var=LD_LIBRARY_PATH
8038
shlibpath_overrides_runpath=yes
8040
freebsd3.[01]* | freebsdelf3.[01]*)
8041
shlibpath_overrides_runpath=yes
8042
hardcode_into_libs=yes
8045
shlibpath_overrides_runpath=no
8046
hardcode_into_libs=yes
8055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8056
soname_spec='${libname}${release}${shared_ext}$major'
8057
shlibpath_var=LD_LIBRARY_PATH
8058
hardcode_into_libs=yes
8061
hpux9* | hpux10* | hpux11*)
8062
# Give a soname corresponding to the major version so that dld.sl refuses to
8063
# link against other versions.
8070
hardcode_into_libs=yes
8071
dynamic_linker="$host_os dld.so"
8072
shlibpath_var=LD_LIBRARY_PATH
8073
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075
soname_spec='${libname}${release}${shared_ext}$major'
8076
if test "X$HPUX_IA64_MODE" = X32; then
8077
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8079
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8081
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8085
hardcode_into_libs=yes
8086
dynamic_linker="$host_os dld.sl"
8087
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8088
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8090
soname_spec='${libname}${release}${shared_ext}$major'
8091
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8092
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8096
dynamic_linker="$host_os dld.sl"
8097
shlibpath_var=SHLIB_PATH
8098
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8099
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8100
soname_spec='${libname}${release}${shared_ext}$major'
8103
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8104
postinstall_cmds='chmod 555 $lib'
8107
irix5* | irix6* | nonstopux*)
8109
nonstopux*) version_type=nonstopux ;;
8111
if test "$lt_cv_prog_gnu_ld" = yes; then
8119
soname_spec='${libname}${release}${shared_ext}$major'
8120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8122
irix5* | nonstopux*)
8126
case $LD in # libtool.m4 will add one of these switches to LD
8127
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8128
libsuff= shlibsuff= libmagic=32-bit;;
8129
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8130
libsuff=32 shlibsuff=N32 libmagic=N32;;
8131
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8132
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8133
*) libsuff= shlibsuff= libmagic=never-match;;
8137
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8138
shlibpath_overrides_runpath=no
8139
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8140
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8141
hardcode_into_libs=yes
8144
# No shared lib support for Linux oldld, aout, or coff.
8145
linux*oldld* | linux*aout* | linux*coff*)
8149
# This must be Linux ELF.
8154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8155
soname_spec='${libname}${release}${shared_ext}$major'
8156
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8157
shlibpath_var=LD_LIBRARY_PATH
8158
shlibpath_overrides_runpath=no
8159
# This implies no fast_install, which is unacceptable.
8160
# Some rework will be needed to allow for fast_install
8161
# before this can be enabled.
8162
hardcode_into_libs=yes
8164
# Append ld.so.conf contents to the search path
8165
if test -f /etc/ld.so.conf; then
8166
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' ' '`
8167
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8170
# We used to test for /lib/ld.so.1 and disable shared libraries on
8171
# powerpc, because MkLinux only supported shared libraries with the
8172
# GNU dynamic linker. Since this was broken with cross compilers,
8173
# most powerpc-linux boxes support dynamic linking these days and
8174
# people can always --disable-shared, the test was removed, and we
8175
# assume the GNU/Linux dynamic linker is in use.
8176
dynamic_linker='GNU/Linux ld.so'
8183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8184
soname_spec='${libname}${release}${shared_ext}$major'
8185
shlibpath_var=LD_LIBRARY_PATH
8186
shlibpath_overrides_runpath=no
8187
hardcode_into_libs=yes
8188
dynamic_linker='NetBSD ld.elf_so'
8195
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8196
soname_spec='${libname}${release}${shared_ext}$major'
8197
shlibpath_var=LD_LIBRARY_PATH
8198
shlibpath_overrides_runpath=no
8199
hardcode_into_libs=yes
8200
dynamic_linker='GNU ld.so'
8207
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8209
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8210
dynamic_linker='NetBSD (a.out) ld.so'
8212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8213
soname_spec='${libname}${release}${shared_ext}$major'
8214
dynamic_linker='NetBSD ld.elf_so'
8216
shlibpath_var=LD_LIBRARY_PATH
8217
shlibpath_overrides_runpath=yes
8218
hardcode_into_libs=yes
8223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8224
shlibpath_var=LD_LIBRARY_PATH
8225
shlibpath_overrides_runpath=yes
8232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8233
soname_spec='${libname}${release}${shared_ext}$major'
8234
shlibpath_var=LD_LIBRARY_PATH
8235
shlibpath_overrides_runpath=yes
8241
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8243
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8244
*) need_version=no ;;
8246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8248
shlibpath_var=LD_LIBRARY_PATH
8249
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8251
openbsd2.[89] | openbsd2.[89].*)
8252
shlibpath_overrides_runpath=no
8255
shlibpath_overrides_runpath=yes
8259
shlibpath_overrides_runpath=yes
8264
libname_spec='$name'
8267
library_names_spec='$libname${shared_ext} $libname.a'
8268
dynamic_linker='OS/2 ld.exe'
8269
shlibpath_var=LIBPATH
8272
osf3* | osf4* | osf5*)
8276
soname_spec='${libname}${release}${shared_ext}$major'
8277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8278
shlibpath_var=LD_LIBRARY_PATH
8279
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8280
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8285
soname_spec='${libname}${release}${shared_ext}$major'
8286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8287
shlibpath_var=LD_LIBRARY_PATH
8294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295
soname_spec='${libname}${release}${shared_ext}$major'
8296
shlibpath_var=LD_LIBRARY_PATH
8297
shlibpath_overrides_runpath=yes
8298
hardcode_into_libs=yes
8299
# ldd complains unless libraries are executable
8300
postinstall_cmds='chmod +x $lib'
8305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8307
shlibpath_var=LD_LIBRARY_PATH
8308
shlibpath_overrides_runpath=yes
8309
if test "$with_gnu_ld" = yes; then
8315
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318
soname_spec='${libname}${release}${shared_ext}$major'
8319
shlibpath_var=LD_LIBRARY_PATH
8320
case $host_vendor in
8322
shlibpath_overrides_runpath=no
8324
export_dynamic_flag_spec='${wl}-Blargedynsym'
8325
runpath_var=LD_RUN_PATH
8333
shlibpath_overrides_runpath=no
8334
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8340
if test -d /usr/nec ;then
8342
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8343
soname_spec='$libname${shared_ext}.$major'
8344
shlibpath_var=LD_LIBRARY_PATH
8350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351
soname_spec='${libname}${release}${shared_ext}$major'
8352
shlibpath_var=LD_LIBRARY_PATH
8359
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8360
echo "${ECHO_T}$dynamic_linker" >&6
8361
test "$dynamic_linker" = no && can_build_shared=no
8363
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8364
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8366
if test -n "$hardcode_libdir_flag_spec" || \
8367
test -n "$runpath_var" || \
8368
test "X$hardcode_automatic" = "Xyes" ; then
8370
# We can hardcode non-existant directories.
8371
if test "$hardcode_direct" != no &&
8372
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8373
# have to relink, otherwise we might link with an installed library
8374
# when we should be linking with a yet-to-be-installed one
8375
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8376
test "$hardcode_minus_L" != no; then
8377
# Linking always hardcodes the temporary library directory.
8378
hardcode_action=relink
8380
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8381
hardcode_action=immediate
8384
# We cannot hardcode anything, or else we can only hardcode existing
8386
hardcode_action=unsupported
8388
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8389
echo "${ECHO_T}$hardcode_action" >&6
8391
if test "$hardcode_action" = relink; then
8392
# Fast installation is not supported
8393
enable_fast_install=no
8394
elif test "$shlibpath_overrides_runpath" = yes ||
8395
test "$enable_shared" = no; then
8396
# Fast installation is not necessary
8397
enable_fast_install=needless
8402
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8403
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8404
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8405
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8406
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8407
echo "$as_me:$LINENO: result: yes" >&5
8408
echo "${ECHO_T}yes" >&6
8410
# FIXME - insert some real tests, host_os isn't really good enough
8413
if test -n "$STRIP" ; then
8414
striplib="$STRIP -x"
8415
echo "$as_me:$LINENO: result: yes" >&5
8416
echo "${ECHO_T}yes" >&6
8418
echo "$as_me:$LINENO: result: no" >&5
8419
echo "${ECHO_T}no" >&6
8423
echo "$as_me:$LINENO: result: no" >&5
8424
echo "${ECHO_T}no" >&6
8429
if test "x$enable_dlopen" != xyes; then
8430
enable_dlopen=unknown
8431
enable_dlopen_self=unknown
8432
enable_dlopen_self_static=unknown
8439
lt_cv_dlopen="load_add_on"
8441
lt_cv_dlopen_self=yes
8445
lt_cv_dlopen="LoadLibrary"
8450
lt_cv_dlopen="dlopen"
8455
# if libdl is installed we need to link against it
8456
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8457
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8458
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8459
echo $ECHO_N "(cached) $ECHO_C" >&6
8461
ac_check_lib_save_LIBS=$LIBS
8463
cat >conftest.$ac_ext <<_ACEOF
8466
cat confdefs.h >>conftest.$ac_ext
8467
cat >>conftest.$ac_ext <<_ACEOF
8468
/* end confdefs.h. */
8470
/* Override any gcc2 internal prototype to avoid an error. */
8474
/* We use char because int might match the return type of a gcc2
8475
builtin and then its argument prototype would still apply. */
8485
rm -f conftest.$ac_objext conftest$ac_exeext
8486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487
(eval $ac_link) 2>conftest.er1
8489
grep -v '^ *+' conftest.er1 >conftest.err
8491
cat conftest.err >&5
8492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493
(exit $ac_status); } &&
8494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499
(exit $ac_status); }; } &&
8500
{ ac_try='test -s conftest$ac_exeext'
8501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505
(exit $ac_status); }; }; then
8506
ac_cv_lib_dl_dlopen=yes
8508
echo "$as_me: failed program was:" >&5
8509
sed 's/^/| /' conftest.$ac_ext >&5
8511
ac_cv_lib_dl_dlopen=no
8513
rm -f conftest.err conftest.$ac_objext \
8514
conftest$ac_exeext conftest.$ac_ext
8515
LIBS=$ac_check_lib_save_LIBS
8517
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8518
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8519
if test $ac_cv_lib_dl_dlopen = yes; then
8520
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8525
lt_cv_dlopen_self=yes
8532
echo "$as_me:$LINENO: checking for shl_load" >&5
8533
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8534
if test "${ac_cv_func_shl_load+set}" = set; then
8535
echo $ECHO_N "(cached) $ECHO_C" >&6
8537
cat >conftest.$ac_ext <<_ACEOF
8540
cat confdefs.h >>conftest.$ac_ext
8541
cat >>conftest.$ac_ext <<_ACEOF
8542
/* end confdefs.h. */
8543
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8544
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8545
#define shl_load innocuous_shl_load
8547
/* System header to define __stub macros and hopefully few prototypes,
8548
which can conflict with char shl_load (); below.
8549
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8550
<limits.h> exists even on freestanding compilers. */
8553
# include <limits.h>
8555
# include <assert.h>
8560
/* Override any gcc2 internal prototype to avoid an error. */
8565
/* We use char because int might match the return type of a gcc2
8566
builtin and then its argument prototype would still apply. */
8568
/* The GNU C library defines this for functions which it implements
8569
to always fail with ENOSYS. Some functions are actually named
8570
something starting with __ and the normal name is an alias. */
8571
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8574
char (*f) () = shl_load;
8583
return f != shl_load;
8588
rm -f conftest.$ac_objext conftest$ac_exeext
8589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590
(eval $ac_link) 2>conftest.er1
8592
grep -v '^ *+' conftest.er1 >conftest.err
8594
cat conftest.err >&5
8595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596
(exit $ac_status); } &&
8597
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602
(exit $ac_status); }; } &&
8603
{ ac_try='test -s conftest$ac_exeext'
8604
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608
(exit $ac_status); }; }; then
8609
ac_cv_func_shl_load=yes
8611
echo "$as_me: failed program was:" >&5
8612
sed 's/^/| /' conftest.$ac_ext >&5
8614
ac_cv_func_shl_load=no
8616
rm -f conftest.err conftest.$ac_objext \
8617
conftest$ac_exeext conftest.$ac_ext
8619
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8620
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8621
if test $ac_cv_func_shl_load = yes; then
8622
lt_cv_dlopen="shl_load"
8624
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8625
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8626
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8627
echo $ECHO_N "(cached) $ECHO_C" >&6
8629
ac_check_lib_save_LIBS=$LIBS
8631
cat >conftest.$ac_ext <<_ACEOF
8634
cat confdefs.h >>conftest.$ac_ext
8635
cat >>conftest.$ac_ext <<_ACEOF
8636
/* end confdefs.h. */
8638
/* Override any gcc2 internal prototype to avoid an error. */
8642
/* We use char because int might match the return type of a gcc2
8643
builtin and then its argument prototype would still apply. */
8653
rm -f conftest.$ac_objext conftest$ac_exeext
8654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655
(eval $ac_link) 2>conftest.er1
8657
grep -v '^ *+' conftest.er1 >conftest.err
8659
cat conftest.err >&5
8660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661
(exit $ac_status); } &&
8662
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8663
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667
(exit $ac_status); }; } &&
8668
{ ac_try='test -s conftest$ac_exeext'
8669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673
(exit $ac_status); }; }; then
8674
ac_cv_lib_dld_shl_load=yes
8676
echo "$as_me: failed program was:" >&5
8677
sed 's/^/| /' conftest.$ac_ext >&5
8679
ac_cv_lib_dld_shl_load=no
8681
rm -f conftest.err conftest.$ac_objext \
8682
conftest$ac_exeext conftest.$ac_ext
8683
LIBS=$ac_check_lib_save_LIBS
8685
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8686
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8687
if test $ac_cv_lib_dld_shl_load = yes; then
8688
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8690
echo "$as_me:$LINENO: checking for dlopen" >&5
8691
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8692
if test "${ac_cv_func_dlopen+set}" = set; then
8693
echo $ECHO_N "(cached) $ECHO_C" >&6
8695
cat >conftest.$ac_ext <<_ACEOF
8698
cat confdefs.h >>conftest.$ac_ext
8699
cat >>conftest.$ac_ext <<_ACEOF
8700
/* end confdefs.h. */
8701
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8702
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8703
#define dlopen innocuous_dlopen
8705
/* System header to define __stub macros and hopefully few prototypes,
8706
which can conflict with char dlopen (); below.
8707
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8708
<limits.h> exists even on freestanding compilers. */
8711
# include <limits.h>
8713
# include <assert.h>
8718
/* Override any gcc2 internal prototype to avoid an error. */
8723
/* We use char because int might match the return type of a gcc2
8724
builtin and then its argument prototype would still apply. */
8726
/* The GNU C library defines this for functions which it implements
8727
to always fail with ENOSYS. Some functions are actually named
8728
something starting with __ and the normal name is an alias. */
8729
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8732
char (*f) () = dlopen;
8746
rm -f conftest.$ac_objext conftest$ac_exeext
8747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748
(eval $ac_link) 2>conftest.er1
8750
grep -v '^ *+' conftest.er1 >conftest.err
8752
cat conftest.err >&5
8753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754
(exit $ac_status); } &&
8755
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760
(exit $ac_status); }; } &&
8761
{ ac_try='test -s conftest$ac_exeext'
8762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766
(exit $ac_status); }; }; then
8767
ac_cv_func_dlopen=yes
8769
echo "$as_me: failed program was:" >&5
8770
sed 's/^/| /' conftest.$ac_ext >&5
8772
ac_cv_func_dlopen=no
8774
rm -f conftest.err conftest.$ac_objext \
8775
conftest$ac_exeext conftest.$ac_ext
8777
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8778
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8779
if test $ac_cv_func_dlopen = yes; then
8780
lt_cv_dlopen="dlopen"
8782
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8783
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8784
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8785
echo $ECHO_N "(cached) $ECHO_C" >&6
8787
ac_check_lib_save_LIBS=$LIBS
8789
cat >conftest.$ac_ext <<_ACEOF
8792
cat confdefs.h >>conftest.$ac_ext
8793
cat >>conftest.$ac_ext <<_ACEOF
8794
/* end confdefs.h. */
8796
/* Override any gcc2 internal prototype to avoid an error. */
8800
/* We use char because int might match the return type of a gcc2
8801
builtin and then its argument prototype would still apply. */
8811
rm -f conftest.$ac_objext conftest$ac_exeext
8812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813
(eval $ac_link) 2>conftest.er1
8815
grep -v '^ *+' conftest.er1 >conftest.err
8817
cat conftest.err >&5
8818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819
(exit $ac_status); } &&
8820
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825
(exit $ac_status); }; } &&
8826
{ ac_try='test -s conftest$ac_exeext'
8827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831
(exit $ac_status); }; }; then
8832
ac_cv_lib_dl_dlopen=yes
8834
echo "$as_me: failed program was:" >&5
8835
sed 's/^/| /' conftest.$ac_ext >&5
8837
ac_cv_lib_dl_dlopen=no
8839
rm -f conftest.err conftest.$ac_objext \
8840
conftest$ac_exeext conftest.$ac_ext
8841
LIBS=$ac_check_lib_save_LIBS
8843
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8844
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8845
if test $ac_cv_lib_dl_dlopen = yes; then
8846
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8848
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8849
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8850
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8851
echo $ECHO_N "(cached) $ECHO_C" >&6
8853
ac_check_lib_save_LIBS=$LIBS
8855
cat >conftest.$ac_ext <<_ACEOF
8858
cat confdefs.h >>conftest.$ac_ext
8859
cat >>conftest.$ac_ext <<_ACEOF
8860
/* end confdefs.h. */
8862
/* Override any gcc2 internal prototype to avoid an error. */
8866
/* We use char because int might match the return type of a gcc2
8867
builtin and then its argument prototype would still apply. */
8877
rm -f conftest.$ac_objext conftest$ac_exeext
8878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879
(eval $ac_link) 2>conftest.er1
8881
grep -v '^ *+' conftest.er1 >conftest.err
8883
cat conftest.err >&5
8884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885
(exit $ac_status); } &&
8886
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891
(exit $ac_status); }; } &&
8892
{ ac_try='test -s conftest$ac_exeext'
8893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897
(exit $ac_status); }; }; then
8898
ac_cv_lib_svld_dlopen=yes
8900
echo "$as_me: failed program was:" >&5
8901
sed 's/^/| /' conftest.$ac_ext >&5
8903
ac_cv_lib_svld_dlopen=no
8905
rm -f conftest.err conftest.$ac_objext \
8906
conftest$ac_exeext conftest.$ac_ext
8907
LIBS=$ac_check_lib_save_LIBS
8909
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8910
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8911
if test $ac_cv_lib_svld_dlopen = yes; then
8912
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8914
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8915
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8916
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8917
echo $ECHO_N "(cached) $ECHO_C" >&6
8919
ac_check_lib_save_LIBS=$LIBS
8921
cat >conftest.$ac_ext <<_ACEOF
8924
cat confdefs.h >>conftest.$ac_ext
8925
cat >>conftest.$ac_ext <<_ACEOF
8926
/* end confdefs.h. */
8928
/* Override any gcc2 internal prototype to avoid an error. */
8932
/* We use char because int might match the return type of a gcc2
8933
builtin and then its argument prototype would still apply. */
8943
rm -f conftest.$ac_objext conftest$ac_exeext
8944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945
(eval $ac_link) 2>conftest.er1
8947
grep -v '^ *+' conftest.er1 >conftest.err
8949
cat conftest.err >&5
8950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951
(exit $ac_status); } &&
8952
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957
(exit $ac_status); }; } &&
8958
{ ac_try='test -s conftest$ac_exeext'
8959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963
(exit $ac_status); }; }; then
8964
ac_cv_lib_dld_dld_link=yes
8966
echo "$as_me: failed program was:" >&5
8967
sed 's/^/| /' conftest.$ac_ext >&5
8969
ac_cv_lib_dld_dld_link=no
8971
rm -f conftest.err conftest.$ac_objext \
8972
conftest$ac_exeext conftest.$ac_ext
8973
LIBS=$ac_check_lib_save_LIBS
8975
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8976
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8977
if test $ac_cv_lib_dld_dld_link = yes; then
8978
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8999
if test "x$lt_cv_dlopen" != xno; then
9005
case $lt_cv_dlopen in
9007
save_CPPFLAGS="$CPPFLAGS"
9008
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9010
save_LDFLAGS="$LDFLAGS"
9011
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9014
LIBS="$lt_cv_dlopen_libs $LIBS"
9016
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9017
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9018
if test "${lt_cv_dlopen_self+set}" = set; then
9019
echo $ECHO_N "(cached) $ECHO_C" >&6
9021
if test "$cross_compiling" = yes; then :
9022
lt_cv_dlopen_self=cross
9024
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9025
lt_status=$lt_dlunknown
9026
cat > conftest.$ac_ext <<EOF
9027
#line __oline__ "configure"
9028
#include "confdefs.h"
9037
# define LT_DLGLOBAL RTLD_GLOBAL
9040
# define LT_DLGLOBAL DL_GLOBAL
9042
# define LT_DLGLOBAL 0
9046
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9047
find out it does not work in some platform. */
9048
#ifndef LT_DLLAZY_OR_NOW
9050
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9053
# define LT_DLLAZY_OR_NOW DL_LAZY
9056
# define LT_DLLAZY_OR_NOW RTLD_NOW
9059
# define LT_DLLAZY_OR_NOW DL_NOW
9061
# define LT_DLLAZY_OR_NOW 0
9069
extern "C" void exit (int);
9072
void fnord() { int i=42;}
9075
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9076
int status = $lt_dlunknown;
9080
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9081
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9082
/* dlclose (self); */
9088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089
(eval $ac_link) 2>&5
9091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9093
(./conftest; exit; ) >&5 2>/dev/null
9096
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9097
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9098
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9101
# compilation failed
9102
lt_cv_dlopen_self=no
9109
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9110
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9112
if test "x$lt_cv_dlopen_self" = xyes; then
9113
LDFLAGS="$LDFLAGS $link_static_flag"
9114
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9115
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9116
if test "${lt_cv_dlopen_self_static+set}" = set; then
9117
echo $ECHO_N "(cached) $ECHO_C" >&6
9119
if test "$cross_compiling" = yes; then :
9120
lt_cv_dlopen_self_static=cross
9122
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9123
lt_status=$lt_dlunknown
9124
cat > conftest.$ac_ext <<EOF
9125
#line __oline__ "configure"
9126
#include "confdefs.h"
9135
# define LT_DLGLOBAL RTLD_GLOBAL
9138
# define LT_DLGLOBAL DL_GLOBAL
9140
# define LT_DLGLOBAL 0
9144
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9145
find out it does not work in some platform. */
9146
#ifndef LT_DLLAZY_OR_NOW
9148
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9151
# define LT_DLLAZY_OR_NOW DL_LAZY
9154
# define LT_DLLAZY_OR_NOW RTLD_NOW
9157
# define LT_DLLAZY_OR_NOW DL_NOW
9159
# define LT_DLLAZY_OR_NOW 0
9167
extern "C" void exit (int);
9170
void fnord() { int i=42;}
9173
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9174
int status = $lt_dlunknown;
9178
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9179
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9180
/* dlclose (self); */
9186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187
(eval $ac_link) 2>&5
9189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9191
(./conftest; exit; ) >&5 2>/dev/null
9194
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9195
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9196
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9199
# compilation failed
9200
lt_cv_dlopen_self_static=no
9207
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9208
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9211
CPPFLAGS="$save_CPPFLAGS"
9212
LDFLAGS="$save_LDFLAGS"
9217
case $lt_cv_dlopen_self in
9218
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9219
*) enable_dlopen_self=unknown ;;
9222
case $lt_cv_dlopen_self_static in
9223
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9224
*) enable_dlopen_self_static=unknown ;;
9229
# Report which librarie types wil actually be built
9230
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9231
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9232
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9233
echo "${ECHO_T}$can_build_shared" >&6
9235
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9236
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9237
test "$can_build_shared" = "no" && enable_shared=no
9239
# On AIX, shared libraries and static libraries use the same namespace, and
9240
# are all built from PIC.
9243
test "$enable_shared" = yes && enable_static=no
9244
if test -n "$RANLIB"; then
9245
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9246
postinstall_cmds='$RANLIB $lib'
9251
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9252
test "$enable_shared" = yes && enable_static=no
9256
echo "$as_me:$LINENO: result: $enable_shared" >&5
9257
echo "${ECHO_T}$enable_shared" >&6
9259
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9260
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9261
# Make sure either enable_shared or enable_static is yes.
9262
test "$enable_shared" = yes || enable_static=yes
9263
echo "$as_me:$LINENO: result: $enable_static" >&5
9264
echo "${ECHO_T}$enable_static" >&6
9266
# The else clause should only fire when bootstrapping the
9267
# libtool distribution, otherwise you forgot to ship ltmain.sh
9268
# with your package, and you will get complaints that there are
9269
# no rules to generate ltmain.sh.
9270
if test -f "$ltmain"; then
9271
# See if we are running on zsh, and set the options which allow our commands through
9272
# without removal of \ escapes.
9273
if test -n "${ZSH_VERSION+set}" ; then
9274
setopt NO_GLOB_SUBST
9276
# Now quote all the things that may contain metacharacters while being
9277
# careful not to overquote the AC_SUBSTed values. We take copies of the
9278
# variables and quote the copies for generation of the libtool script.
9279
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9281
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9282
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9283
deplibs_check_method reload_flag reload_cmds need_locks \
9284
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9285
lt_cv_sys_global_symbol_to_c_name_address \
9286
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9287
old_postinstall_cmds old_postuninstall_cmds \
9291
lt_prog_compiler_wl \
9292
lt_prog_compiler_pic \
9293
lt_prog_compiler_static \
9294
lt_prog_compiler_no_builtin_flag \
9295
export_dynamic_flag_spec \
9296
thread_safe_flag_spec \
9297
whole_archive_flag_spec \
9298
enable_shared_with_static_runtimes \
9300
old_archive_from_new_cmds \
9305
compiler_lib_search_path \
9307
archive_expsym_cmds \
9309
postuninstall_cmds \
9310
old_archive_from_expsyms_cmds \
9311
allow_undefined_flag \
9313
export_symbols_cmds \
9314
hardcode_libdir_flag_spec \
9315
hardcode_libdir_flag_spec_ld \
9316
hardcode_libdir_separator \
9317
hardcode_automatic \
9319
module_expsym_cmds \
9320
lt_cv_prog_compiler_c_o \
9325
old_archive_cmds | \
9326
old_archive_from_new_cmds | \
9328
archive_expsym_cmds | \
9330
module_expsym_cmds | \
9331
old_archive_from_expsyms_cmds | \
9332
export_symbols_cmds | \
9333
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9334
postinstall_cmds | postuninstall_cmds | \
9335
old_postinstall_cmds | old_postuninstall_cmds | \
9336
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9337
# Double-quote double-evaled strings.
9338
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9341
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9347
*'\$0 --fallback-echo"')
9348
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9353
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9355
{ echo "$as_me:$LINENO: creating $ofile" >&5
9356
echo "$as_me: creating $ofile" >&6;}
9358
cat <<__EOF__ >> "$cfgfile"
9361
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9362
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9363
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9365
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9366
# Free Software Foundation, Inc.
9368
# This file is part of GNU Libtool:
9369
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9371
# This program is free software; you can redistribute it and/or modify
9372
# it under the terms of the GNU General Public License as published by
9373
# the Free Software Foundation; either version 2 of the License, or
9374
# (at your option) any later version.
9376
# This program is distributed in the hope that it will be useful, but
9377
# WITHOUT ANY WARRANTY; without even the implied warranty of
9378
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9379
# General Public License for more details.
9381
# You should have received a copy of the GNU General Public License
9382
# along with this program; if not, write to the Free Software
9383
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9385
# As a special exception to the GNU General Public License, if you
9386
# distribute this file as part of a program that contains a
9387
# configuration script generated by Autoconf, you may include it under
9388
# the same distribution terms that you use for the rest of that program.
9390
# A sed program that does not truncate output.
9393
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9394
Xsed="$SED -e 1s/^X//"
9396
# The HP-UX ksh and POSIX shell print the target directory to stdout
9398
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9400
# The names of the tagged configurations supported by this script.
9403
# ### BEGIN LIBTOOL CONFIG
9405
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9407
# Shell to use when invoking shell scripts.
9410
# Whether or not to build shared libraries.
9411
build_libtool_libs=$enable_shared
9413
# Whether or not to build static libraries.
9414
build_old_libs=$enable_static
9416
# Whether or not to add -lc for building shared libraries.
9417
build_libtool_need_lc=$archive_cmds_need_lc
9419
# Whether or not to disallow shared libs when runtime libs are static
9420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9422
# Whether or not to optimize for fast installation.
9423
fast_install=$enable_fast_install
9426
host_alias=$host_alias
9431
build_alias=$build_alias
9435
# An echo program that does not interpret backslashes.
9440
AR_FLAGS=$lt_AR_FLAGS
9445
# A language-specific compiler.
9448
# Is the compiler the GNU C compiler?
9454
# The linker used to build libraries.
9457
# Whether we need hard or soft links.
9460
# A BSD-compatible nm program.
9463
# A symbol stripping program
9466
# Used to examine libraries when file_magic_cmd begins "file"
9467
MAGIC_CMD=$MAGIC_CMD
9469
# Used on cygwin: DLL creation program.
9472
# Used on cygwin: object dumper.
9475
# Used on cygwin: assembler.
9478
# The name of the directory that contains temporary libtool files.
9481
# How to create reloadable object files.
9482
reload_flag=$lt_reload_flag
9483
reload_cmds=$lt_reload_cmds
9485
# How to pass a linker flag through the compiler.
9486
wl=$lt_lt_prog_compiler_wl
9488
# Object file suffix (normally "o").
9491
# Old archive suffix (normally "a").
9494
# Shared library suffix (normally ".so").
9495
shrext_cmds='$shrext_cmds'
9497
# Executable file suffix (normally "").
9500
# Additional compiler flags for building library objects.
9501
pic_flag=$lt_lt_prog_compiler_pic
9504
# What is the maximum length of a command?
9505
max_cmd_len=$lt_cv_sys_max_cmd_len
9507
# Does compiler simultaneously support -c and -o options?
9508
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9510
# Must we lock files when doing compilation?
9511
need_locks=$lt_need_locks
9513
# Do we need the lib prefix for modules?
9514
need_lib_prefix=$need_lib_prefix
9516
# Do we need a version for libraries?
9517
need_version=$need_version
9519
# Whether dlopen is supported.
9520
dlopen_support=$enable_dlopen
9522
# Whether dlopen of programs is supported.
9523
dlopen_self=$enable_dlopen_self
9525
# Whether dlopen of statically linked programs is supported.
9526
dlopen_self_static=$enable_dlopen_self_static
9528
# Compiler flag to prevent dynamic linking.
9529
link_static_flag=$lt_lt_prog_compiler_static
9531
# Compiler flag to turn off builtin functions.
9532
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9534
# Compiler flag to allow reflexive dlopens.
9535
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9537
# Compiler flag to generate shared objects directly from archives.
9538
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9540
# Compiler flag to generate thread-safe objects.
9541
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9543
# Library versioning type.
9544
version_type=$version_type
9546
# Format of library name prefix.
9547
libname_spec=$lt_libname_spec
9549
# List of archive names. First name is the real one, the rest are links.
9550
# The last name is the one that the linker finds with -lNAME.
9551
library_names_spec=$lt_library_names_spec
9553
# The coded name of the library, if different from the real name.
9554
soname_spec=$lt_soname_spec
9556
# Commands used to build and install an old-style archive.
9558
old_archive_cmds=$lt_old_archive_cmds
9559
old_postinstall_cmds=$lt_old_postinstall_cmds
9560
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9562
# Create an old-style archive from a shared archive.
9563
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9565
# Create a temporary old-style archive to link instead of a shared archive.
9566
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9568
# Commands used to build and install a shared archive.
9569
archive_cmds=$lt_archive_cmds
9570
archive_expsym_cmds=$lt_archive_expsym_cmds
9571
postinstall_cmds=$lt_postinstall_cmds
9572
postuninstall_cmds=$lt_postuninstall_cmds
9574
# Commands used to build a loadable module (assumed same as above if empty)
9575
module_cmds=$lt_module_cmds
9576
module_expsym_cmds=$lt_module_expsym_cmds
9578
# Commands to strip libraries.
9579
old_striplib=$lt_old_striplib
9580
striplib=$lt_striplib
9582
# Dependencies to place before the objects being linked to create a
9584
predep_objects=$lt_predep_objects
9586
# Dependencies to place after the objects being linked to create a
9588
postdep_objects=$lt_postdep_objects
9590
# Dependencies to place before the objects being linked to create a
9594
# Dependencies to place after the objects being linked to create a
9596
postdeps=$lt_postdeps
9598
# The library search path used internally by the compiler when linking
9600
compiler_lib_search_path=$lt_compiler_lib_search_path
9602
# Method to check whether dependent libraries are shared objects.
9603
deplibs_check_method=$lt_deplibs_check_method
9605
# Command to use when deplibs_check_method == file_magic.
9606
file_magic_cmd=$lt_file_magic_cmd
9608
# Flag that allows shared libraries with undefined symbols to be built.
9609
allow_undefined_flag=$lt_allow_undefined_flag
9611
# Flag that forces no undefined symbols.
9612
no_undefined_flag=$lt_no_undefined_flag
9614
# Commands used to finish a libtool library installation in a directory.
9615
finish_cmds=$lt_finish_cmds
9617
# Same as above, but a single script fragment to be evaled but not shown.
9618
finish_eval=$lt_finish_eval
9620
# Take the output of nm and produce a listing of raw symbols and C names.
9621
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9623
# Transform the output of nm in a proper C declaration
9624
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9626
# Transform the output of nm in a C name address pair
9627
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9629
# This is the shared library runtime path variable.
9630
runpath_var=$runpath_var
9632
# This is the shared library path variable.
9633
shlibpath_var=$shlibpath_var
9635
# Is shlibpath searched before the hard-coded library search path?
9636
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9638
# How to hardcode a shared library path into an executable.
9639
hardcode_action=$hardcode_action
9641
# Whether we should hardcode library paths into libraries.
9642
hardcode_into_libs=$hardcode_into_libs
9644
# Flag to hardcode \$libdir into a binary during linking.
9645
# This must work even if \$libdir does not exist.
9646
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9648
# If ld is used when linking, flag to hardcode \$libdir into
9649
# a binary during linking. This must work even if \$libdir does
9651
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9653
# Whether we need a single -rpath flag with a separated argument.
9654
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9656
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9658
hardcode_direct=$hardcode_direct
9660
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9662
hardcode_minus_L=$hardcode_minus_L
9664
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9665
# the resulting binary.
9666
hardcode_shlibpath_var=$hardcode_shlibpath_var
9668
# Set to yes if building a shared library automatically hardcodes DIR into the library
9669
# and all subsequent libraries and executables linked against it.
9670
hardcode_automatic=$hardcode_automatic
9672
# Variables whose values should be saved in libtool wrapper scripts and
9673
# restored at relink time.
9674
variables_saved_for_relink="$variables_saved_for_relink"
9676
# Whether libtool must link a program against all its dependency libraries.
9677
link_all_deplibs=$link_all_deplibs
9679
# Compile-time system search path for libraries
9680
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9682
# Run-time system search path for libraries
9683
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9685
# Fix the shell variable \$srcfile for the compiler.
9686
fix_srcfile_path="$fix_srcfile_path"
9688
# Set to yes if exported symbols are required.
9689
always_export_symbols=$always_export_symbols
9691
# The commands to list exported symbols.
9692
export_symbols_cmds=$lt_export_symbols_cmds
9694
# The commands to extract the exported symbol list from a shared archive.
9695
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9697
# Symbols that should not be listed in the preloaded symbols.
9698
exclude_expsyms=$lt_exclude_expsyms
9700
# Symbols that must always be exported.
9701
include_expsyms=$lt_include_expsyms
9703
# ### END LIBTOOL CONFIG
9710
cat <<\EOF >> "$cfgfile"
9712
# AIX sometimes has problems with the GCC collect2 program. For some
9713
# reason, if we set the COLLECT_NAMES environment variable, the problems
9714
# vanish in a puff of smoke.
9715
if test "X${COLLECT_NAMES+set}" != Xset; then
9717
export COLLECT_NAMES
9723
# We use sed instead of cat because bash on DJGPP gets confused if
9724
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9725
# text mode, it properly converts lines to CR/LF. This bash problem
9726
# is reportedly fixed, but why not run on old versions too?
9727
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9729
mv -f "$cfgfile" "$ofile" || \
9730
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9734
# If there is no Makefile yet, we rely on a make rule to execute
9735
# `config.status --recheck' to rerun these tests and create the
9736
# libtool script then.
9737
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9738
if test -f "$ltmain_in"; then
9739
test -f Makefile && make "$ltmain"
9745
ac_cpp='$CPP $CPPFLAGS'
9746
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753
# Check whether --with-tags or --without-tags was given.
9754
if test "${with_tags+set}" = set; then
9755
withval="$with_tags"
9759
if test -f "$ltmain" && test -n "$tagnames"; then
9760
if test ! -f "${ofile}"; then
9761
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9762
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9765
if test -z "$LTCC"; then
9766
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9767
if test -z "$LTCC"; then
9768
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9769
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9771
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9772
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9776
# Extract list of available tagged configurations in $ofile.
9777
# Note that this assumes the entire list is on one line.
9778
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9780
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9781
for tagname in $tagnames; do
9783
# Check whether tagname contains only valid characters
9784
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9786
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9787
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9788
{ (exit 1); exit 1; }; }
9792
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9794
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9795
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9796
{ (exit 1); exit 1; }; }
9799
# Update the list of available tags.
9800
if test -n "$tagname"; then
9801
echo appending configuration tag \"$tagname\" to $ofile
9805
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9806
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9807
(test "X$CXX" != "Xg++"))) ; then
9809
ac_cpp='$CXXCPP $CPPFLAGS'
9810
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9817
archive_cmds_need_lc_CXX=no
9818
allow_undefined_flag_CXX=
9819
always_export_symbols_CXX=no
9820
archive_expsym_cmds_CXX=
9821
export_dynamic_flag_spec_CXX=
9822
hardcode_direct_CXX=no
9823
hardcode_libdir_flag_spec_CXX=
9824
hardcode_libdir_flag_spec_ld_CXX=
9825
hardcode_libdir_separator_CXX=
9826
hardcode_minus_L_CXX=no
9827
hardcode_automatic_CXX=no
9829
module_expsym_cmds_CXX=
9830
link_all_deplibs_CXX=unknown
9831
old_archive_cmds_CXX=$old_archive_cmds
9832
no_undefined_flag_CXX=
9833
whole_archive_flag_spec_CXX=
9834
enable_shared_with_static_runtimes_CXX=no
9836
# Dependencies to place before and after the object being linked:
9838
postdep_objects_CXX=
9841
compiler_lib_search_path_CXX=
9843
# Source file extension for C++ test sources.
9846
# Object file extension for compiled C++ test sources.
9850
# Code to be used in simple compile tests
9851
lt_simple_compile_test_code="int some_variable = 0;\n"
9853
# Code to be used in simple link tests
9854
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9856
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9858
# If no C compiler was specified, use CC.
9861
# Allow CC to be a program name with arguments.
9865
# save warnings/boilerplate of simple test code
9866
ac_outfile=conftest.$ac_objext
9867
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9868
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9869
_lt_compiler_boilerplate=`cat conftest.err`
9872
ac_outfile=conftest.$ac_objext
9873
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9874
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9875
_lt_linker_boilerplate=`cat conftest.err`
9879
# Allow CC to be a program name with arguments.
9884
lt_save_with_gnu_ld=$with_gnu_ld
9885
lt_save_path_LD=$lt_cv_path_LD
9886
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9887
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9889
unset lt_cv_prog_gnu_ld
9891
if test -n "${lt_cv_path_LDCXX+set}"; then
9892
lt_cv_path_LD=$lt_cv_path_LDCXX
9896
test -z "${LDCXX+set}" || LD=$LDCXX
9900
for cc_temp in $compiler""; do
9902
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9903
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9908
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9911
# We don't want -fno-exception wen compiling C++ code, so set the
9912
# no_builtin_flag separately
9913
if test "$GXX" = yes; then
9914
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9916
lt_prog_compiler_no_builtin_flag_CXX=
9919
if test "$GXX" = yes; then
9920
# Set up default GNU C++ configuration
9923
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9924
if test "${with_gnu_ld+set}" = set; then
9925
withval="$with_gnu_ld"
9926
test "$withval" = no || with_gnu_ld=yes
9931
if test "$GCC" = yes; then
9932
# Check if gcc -print-prog-name=ld gives a path.
9933
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9934
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9937
# gcc leaves a trailing carriage return which upsets mingw
9938
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9940
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9943
# Accept absolute paths.
9945
re_direlt='/[^/][^/]*/\.\./'
9946
# Canonicalize the pathname of ld
9947
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9948
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9949
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9951
test -z "$LD" && LD="$ac_prog"
9954
# If it fails, then pretend we aren't using GCC.
9958
# If it is relative, then search for the first ld in PATH.
9962
elif test "$with_gnu_ld" = yes; then
9963
echo "$as_me:$LINENO: checking for GNU ld" >&5
9964
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9966
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9967
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9969
if test "${lt_cv_path_LD+set}" = set; then
9970
echo $ECHO_N "(cached) $ECHO_C" >&6
9972
if test -z "$LD"; then
9973
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9974
for ac_dir in $PATH; do
9976
test -z "$ac_dir" && ac_dir=.
9977
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9978
lt_cv_path_LD="$ac_dir/$ac_prog"
9979
# Check to see if the program is GNU ld. I'd rather use --version,
9980
# but apparently some variants of GNU ld only accept -v.
9981
# Break only if it was the GNU/non-GNU ld that we prefer.
9982
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9983
*GNU* | *'with BFD'*)
9984
test "$with_gnu_ld" != no && break
9987
test "$with_gnu_ld" != yes && break
9994
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9999
if test -n "$LD"; then
10000
echo "$as_me:$LINENO: result: $LD" >&5
10001
echo "${ECHO_T}$LD" >&6
10003
echo "$as_me:$LINENO: result: no" >&5
10004
echo "${ECHO_T}no" >&6
10006
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10007
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10008
{ (exit 1); exit 1; }; }
10009
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10010
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10011
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10012
echo $ECHO_N "(cached) $ECHO_C" >&6
10014
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10015
case `$LD -v 2>&1 </dev/null` in
10016
*GNU* | *'with BFD'*)
10017
lt_cv_prog_gnu_ld=yes
10020
lt_cv_prog_gnu_ld=no
10024
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10025
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10026
with_gnu_ld=$lt_cv_prog_gnu_ld
10030
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10031
# archiving commands below assume that GNU ld is being used.
10032
if test "$with_gnu_ld" = yes; then
10033
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034
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'
10036
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10037
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10039
# If archive_cmds runs LD, not CC, wlarc should be empty
10040
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10041
# investigate it a little bit more. (MM)
10044
# ancient GNU ld didn't support --whole-archive et. al.
10045
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10046
grep 'no-whole-archive' > /dev/null; then
10047
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10049
whole_archive_flag_spec_CXX=
10055
# A generic and very simple default shared library creation
10056
# command for GNU C++ for the case where it uses the native
10057
# linker, instead of GNU ld. If possible, this setting should
10058
# overridden to take advantage of the native linker features on
10059
# the platform it is being used on.
10060
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10063
# Commands to make compiler produce verbose output that lists
10064
# what "hidden" libraries, object files and flags are used when
10065
# linking a shared library.
10066
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10074
# PORTME: fill in a description of your system's C++ link characteristics
10075
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10076
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10080
# FIXME: insert proper C++ library support
10084
if test "$host_cpu" = ia64; then
10085
# On IA64, the linker does run time linking by default, so we don't
10086
# have to do anything special.
10087
aix_use_runtimelinking=no
10088
exp_sym_flag='-Bexport'
10091
aix_use_runtimelinking=no
10093
# Test if we are trying to use run time linking or normal
10094
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10095
# need to do runtime linking.
10096
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10097
for ld_flag in $LDFLAGS; do
10100
aix_use_runtimelinking=yes
10107
exp_sym_flag='-bexport'
10108
no_entry_flag='-bnoentry'
10111
# When large executables or shared objects are built, AIX ld can
10112
# have problems creating the table of contents. If linking a library
10113
# or program results in "error TOC overflow" add -mminimal-toc to
10114
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10115
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10117
archive_cmds_CXX=''
10118
hardcode_direct_CXX=yes
10119
hardcode_libdir_separator_CXX=':'
10120
link_all_deplibs_CXX=yes
10122
if test "$GXX" = yes; then
10123
case $host_os in aix4.[012]|aix4.[012].*)
10124
# We only want to do this on AIX 4.2 and lower, the check
10125
# below for broken collect2 doesn't work under 4.3+
10126
collect2name=`${CC} -print-prog-name=collect2`
10127
if test -f "$collect2name" && \
10128
strings "$collect2name" | grep resolve_lib_name >/dev/null
10130
# We have reworked collect2
10131
hardcode_direct_CXX=yes
10133
# We have old collect2
10134
hardcode_direct_CXX=unsupported
10135
# It fails to find uninstalled libraries when the uninstalled
10136
# path is not listed in the libpath. Setting hardcode_minus_L
10137
# to unsupported forces relinking
10138
hardcode_minus_L_CXX=yes
10139
hardcode_libdir_flag_spec_CXX='-L$libdir'
10140
hardcode_libdir_separator_CXX=
10143
shared_flag='-shared'
10144
if test "$aix_use_runtimelinking" = yes; then
10145
shared_flag="$shared_flag "'${wl}-G'
10149
if test "$host_cpu" = ia64; then
10150
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10151
# chokes on -Wl,-G. The following line is correct:
10154
if test "$aix_use_runtimelinking" = yes; then
10155
shared_flag='${wl}-G'
10157
shared_flag='${wl}-bM:SRE'
10162
# It seems that -bexpall does not export symbols beginning with
10163
# underscore (_), so it is better to generate a list of symbols to export.
10164
always_export_symbols_CXX=yes
10165
if test "$aix_use_runtimelinking" = yes; then
10166
# Warning - without using the other runtime loading flags (-brtl),
10167
# -berok will link without error, but may produce a broken library.
10168
allow_undefined_flag_CXX='-berok'
10169
# Determine the default libpath from the value encoded in an empty executable.
10170
cat >conftest.$ac_ext <<_ACEOF
10173
cat confdefs.h >>conftest.$ac_ext
10174
cat >>conftest.$ac_ext <<_ACEOF
10175
/* end confdefs.h. */
10185
rm -f conftest.$ac_objext conftest$ac_exeext
10186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187
(eval $ac_link) 2>conftest.er1
10189
grep -v '^ *+' conftest.er1 >conftest.err
10191
cat conftest.err >&5
10192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193
(exit $ac_status); } &&
10194
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196
(eval $ac_try) 2>&5
10198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199
(exit $ac_status); }; } &&
10200
{ ac_try='test -s conftest$ac_exeext'
10201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202
(eval $ac_try) 2>&5
10204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205
(exit $ac_status); }; }; then
10207
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10209
# Check for a 64-bit object if we didn't find anything.
10210
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; }
10213
echo "$as_me: failed program was:" >&5
10214
sed 's/^/| /' conftest.$ac_ext >&5
10217
rm -f conftest.err conftest.$ac_objext \
10218
conftest$ac_exeext conftest.$ac_ext
10219
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10221
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10223
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"
10225
if test "$host_cpu" = ia64; then
10226
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10227
allow_undefined_flag_CXX="-z nodefs"
10228
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"
10230
# Determine the default libpath from the value encoded in an empty executable.
10231
cat >conftest.$ac_ext <<_ACEOF
10234
cat confdefs.h >>conftest.$ac_ext
10235
cat >>conftest.$ac_ext <<_ACEOF
10236
/* end confdefs.h. */
10246
rm -f conftest.$ac_objext conftest$ac_exeext
10247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248
(eval $ac_link) 2>conftest.er1
10250
grep -v '^ *+' conftest.er1 >conftest.err
10252
cat conftest.err >&5
10253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254
(exit $ac_status); } &&
10255
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257
(eval $ac_try) 2>&5
10259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260
(exit $ac_status); }; } &&
10261
{ ac_try='test -s conftest$ac_exeext'
10262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263
(eval $ac_try) 2>&5
10265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266
(exit $ac_status); }; }; then
10268
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10270
# Check for a 64-bit object if we didn't find anything.
10271
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; }
10274
echo "$as_me: failed program was:" >&5
10275
sed 's/^/| /' conftest.$ac_ext >&5
10278
rm -f conftest.err conftest.$ac_objext \
10279
conftest$ac_exeext conftest.$ac_ext
10280
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10283
# Warning - without using the other run time loading flags,
10284
# -berok will link without error, but may produce a broken library.
10285
no_undefined_flag_CXX=' ${wl}-bernotok'
10286
allow_undefined_flag_CXX=' ${wl}-berok'
10287
# -bexpall does not export symbols beginning with underscore (_)
10288
always_export_symbols_CXX=yes
10289
# Exported symbols can be pulled into shared objects from archives
10290
whole_archive_flag_spec_CXX=' '
10291
archive_cmds_need_lc_CXX=yes
10292
# This is similar to how AIX traditionally builds its shared libraries.
10293
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'
10298
case $cc_basename in
10300
# FIXME: insert proper C++ library support
10307
cygwin* | mingw* | pw32*)
10308
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10309
# as there is no search path for DLLs.
10310
hardcode_libdir_flag_spec_CXX='-L$libdir'
10311
allow_undefined_flag_CXX=unsupported
10312
always_export_symbols_CXX=no
10313
enable_shared_with_static_runtimes_CXX=yes
10315
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10316
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'
10317
# If the export-symbols file already is a .def file (1st line
10318
# is EXPORTS), use it as is; otherwise, prepend...
10319
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320
cp $export_symbols $output_objdir/$soname.def;
10322
echo EXPORTS > $output_objdir/$soname.def;
10323
cat $export_symbols >> $output_objdir/$soname.def;
10325
$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'
10330
darwin* | rhapsody*)
10332
rhapsody* | darwin1.[012])
10333
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10336
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10337
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10339
case ${MACOSX_DEPLOYMENT_TARGET} in
10341
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10344
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10350
archive_cmds_need_lc_CXX=no
10351
hardcode_direct_CXX=no
10352
hardcode_automatic_CXX=yes
10353
hardcode_shlibpath_var_CXX=unsupported
10354
whole_archive_flag_spec_CXX=''
10355
link_all_deplibs_CXX=yes
10357
if test "$GXX" = yes ; then
10358
lt_int_apple_cc_single_mod=no
10359
output_verbose_link_cmd='echo'
10360
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10361
lt_int_apple_cc_single_mod=yes
10363
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10364
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10366
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'
10368
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10369
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10370
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10371
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}'
10373
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}'
10375
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}'
10377
case $cc_basename in
10379
output_verbose_link_cmd='echo'
10380
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'
10381
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10382
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10383
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}'
10384
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}'
10394
case $cc_basename in
10396
# FIXME: insert proper C++ library support
10400
# Green Hills C++ Compiler
10401
# FIXME: insert proper C++ library support
10405
# FIXME: insert proper C++ library support
10411
# C++ shared libraries reported to be fairly broken before switch to ELF
10415
archive_cmds_need_lc_CXX=no
10417
freebsd* | kfreebsd*-gnu | dragonfly*)
10418
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10425
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10426
hardcode_libdir_separator_CXX=:
10427
export_dynamic_flag_spec_CXX='${wl}-E'
10428
hardcode_direct_CXX=yes
10429
hardcode_minus_L_CXX=yes # Not in the search PATH,
10430
# but as the default
10431
# location of the library.
10433
case $cc_basename in
10435
# FIXME: insert proper C++ library support
10439
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'
10440
# Commands to make compiler produce verbose output that lists
10441
# what "hidden" libraries, object files and flags are used when
10442
# linking a shared library.
10444
# There doesn't appear to be a way to prevent this compiler from
10445
# explicitly linking system object files so we need to strip them
10446
# from the output so that they don't get included in the library
10448
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'
10451
if test "$GXX" = yes; then
10452
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'
10454
# FIXME: insert proper C++ library support
10461
if test $with_gnu_ld = no; then
10464
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10465
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10466
hardcode_libdir_separator_CXX=:
10469
hardcode_libdir_flag_spec_CXX='-L$libdir'
10472
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10473
hardcode_libdir_separator_CXX=:
10474
export_dynamic_flag_spec_CXX='${wl}-E'
10480
hardcode_direct_CXX=no
10481
hardcode_shlibpath_var_CXX=no
10484
hardcode_direct_CXX=no
10485
hardcode_shlibpath_var_CXX=no
10486
hardcode_minus_L_CXX=yes # Not in the search PATH,
10487
# but as the default
10488
# location of the library.
10491
hardcode_direct_CXX=yes
10492
hardcode_minus_L_CXX=yes # Not in the search PATH,
10493
# but as the default
10494
# location of the library.
10498
case $cc_basename in
10500
# FIXME: insert proper C++ library support
10506
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10509
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10512
# Commands to make compiler produce verbose output that lists
10513
# what "hidden" libraries, object files and flags are used when
10514
# linking a shared library.
10516
# There doesn't appear to be a way to prevent this compiler from
10517
# explicitly linking system object files so we need to strip them
10518
# from the output so that they don't get included in the library
10520
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'
10523
if test "$GXX" = yes; then
10524
if test $with_gnu_ld = no; then
10527
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10530
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'
10535
# FIXME: insert proper C++ library support
10542
case $cc_basename in
10545
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'
10547
# Archives containing C++ object files must be created using
10548
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10549
# necessary to make sure instantiated templates are included
10551
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10554
if test "$GXX" = yes; then
10555
if test "$with_gnu_ld" = no; then
10556
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'
10558
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'
10561
link_all_deplibs_CXX=yes
10564
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10565
hardcode_libdir_separator_CXX=:
10568
case $cc_basename in
10570
# Kuck and Associates, Inc. (KAI) C++ Compiler
10572
# KCC will only create a shared library if the output file
10573
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10574
# to its proper name (with version) after linking.
10575
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'
10576
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'
10577
# Commands to make compiler produce verbose output that lists
10578
# what "hidden" libraries, object files and flags are used when
10579
# linking a shared library.
10581
# There doesn't appear to be a way to prevent this compiler from
10582
# explicitly linking system object files so we need to strip them
10583
# from the output so that they don't get included in the library
10585
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'
10587
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10588
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10590
# Archives containing C++ object files must be created using
10591
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10592
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10597
# version 8.0 and above of icpc choke on multiply defined symbols
10598
# if we add $predep_objects and $postdep_objects, however 7.1 and
10599
# earlier do not add the objects themselves.
10600
case `$CC -V 2>&1` in
10602
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603
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'
10605
*) # Version 8.0 or newer
10608
ia64*) tmp_idyn=' -i_dynamic';;
10610
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10611
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'
10614
archive_cmds_need_lc_CXX=no
10615
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10616
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10617
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10620
# Portland Group C++ compiler
10621
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10622
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'
10624
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10625
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10626
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'
10630
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10631
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'
10633
runpath_var=LD_RUN_PATH
10634
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10635
hardcode_libdir_separator_CXX=:
10637
# Commands to make compiler produce verbose output that lists
10638
# what "hidden" libraries, object files and flags are used when
10639
# linking a shared library.
10641
# There doesn't appear to be a way to prevent this compiler from
10642
# explicitly linking system object files so we need to strip them
10643
# from the output so that they don't get included in the library
10645
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'
10650
# FIXME: insert proper C++ library support
10654
# FIXME: insert proper C++ library support
10658
case $cc_basename in
10660
# FIXME: insert proper C++ library support
10664
# FIXME: insert proper C++ library support
10669
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10670
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10671
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10673
hardcode_libdir_flag_spec_CXX='-R$libdir'
10674
hardcode_direct_CXX=yes
10675
hardcode_shlibpath_var_CXX=no
10677
# Workaround some broken pre-1.5 toolchains
10678
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10681
# C++ shared libraries are fairly broken
10685
hardcode_direct_CXX=yes
10686
hardcode_shlibpath_var_CXX=no
10687
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10688
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10689
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10691
export_dynamic_flag_spec_CXX='${wl}-E'
10692
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10694
output_verbose_link_cmd='echo'
10697
case $cc_basename in
10699
# Kuck and Associates, Inc. (KAI) C++ Compiler
10701
# KCC will only create a shared library if the output file
10702
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10703
# to its proper name (with version) after linking.
10704
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'
10706
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10707
hardcode_libdir_separator_CXX=:
10709
# Archives containing C++ object files must be created using
10710
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10711
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10715
# Rational C++ 2.4.1
10716
# FIXME: insert proper C++ library support
10720
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10721
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'
10723
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10724
hardcode_libdir_separator_CXX=:
10726
# Commands to make compiler produce verbose output that lists
10727
# what "hidden" libraries, object files and flags are used when
10728
# linking a shared library.
10730
# There doesn't appear to be a way to prevent this compiler from
10731
# explicitly linking system object files so we need to strip them
10732
# from the output so that they don't get included in the library
10734
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'
10737
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10738
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10739
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'
10741
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10742
hardcode_libdir_separator_CXX=:
10744
# Commands to make compiler produce verbose output that lists
10745
# what "hidden" libraries, object files and flags are used when
10746
# linking a shared library.
10747
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10750
# FIXME: insert proper C++ library support
10757
case $cc_basename in
10759
# Kuck and Associates, Inc. (KAI) C++ Compiler
10761
# KCC will only create a shared library if the output file
10762
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10763
# to its proper name (with version) after linking.
10764
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'
10766
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10767
hardcode_libdir_separator_CXX=:
10769
# Archives containing C++ object files must be created using
10770
# the KAI C++ compiler.
10771
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10774
# Rational C++ 2.4.1
10775
# FIXME: insert proper C++ library support
10779
allow_undefined_flag_CXX=' -expect_unresolved \*'
10780
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'
10781
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10782
echo "-hidden">> $lib.exp~
10783
$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~
10786
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10787
hardcode_libdir_separator_CXX=:
10789
# Commands to make compiler produce verbose output that lists
10790
# what "hidden" libraries, object files and flags are used when
10791
# linking a shared library.
10793
# There doesn't appear to be a way to prevent this compiler from
10794
# explicitly linking system object files so we need to strip them
10795
# from the output so that they don't get included in the library
10797
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'
10800
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10801
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10802
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'
10804
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10805
hardcode_libdir_separator_CXX=:
10807
# Commands to make compiler produce verbose output that lists
10808
# what "hidden" libraries, object files and flags are used when
10809
# linking a shared library.
10810
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10813
# FIXME: insert proper C++ library support
10820
# FIXME: insert proper C++ library support
10824
archive_cmds_need_lc_CXX=no
10825
case $cc_basename in
10827
# FIXME: insert proper C++ library support
10831
# FIXME: insert proper C++ library support
10837
case $cc_basename in
10840
# FIXME: insert proper C++ library support
10845
# FIXME: insert proper C++ library support
10849
# FIXME: insert proper C++ library support
10855
case $cc_basename in
10857
# Sun C++ 4.2, 5.x and Centerline C++
10858
archive_cmds_need_lc_CXX=yes
10859
no_undefined_flag_CXX=' -zdefs'
10860
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10861
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10862
$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'
10864
hardcode_libdir_flag_spec_CXX='-R$libdir'
10865
hardcode_shlibpath_var_CXX=no
10867
solaris2.[0-5] | solaris2.[0-5].*) ;;
10869
# The C++ compiler is used as linker so we must use $wl
10870
# flag to pass the commands to the underlying system
10871
# linker. We must also pass each convience library through
10872
# to the system linker between allextract/defaultextract.
10873
# The C++ compiler will combine linker options so we
10874
# cannot just pass the convience library names through
10876
# Supported since Solaris 2.6 (maybe 2.5.1?)
10877
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'
10880
link_all_deplibs_CXX=yes
10882
output_verbose_link_cmd='echo'
10884
# Archives containing C++ object files must be created using
10885
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10886
# necessary to make sure instantiated templates are included
10888
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10891
# Green Hills C++ Compiler
10892
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10894
# The C++ compiler must be used to create the archive.
10895
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10898
# GNU C++ compiler with Solaris linker
10899
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10900
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10901
if $CC --version | grep -v '^2\.7' > /dev/null; then
10902
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10903
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10904
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10906
# Commands to make compiler produce verbose output that lists
10907
# what "hidden" libraries, object files and flags are used when
10908
# linking a shared library.
10909
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10911
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10913
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10914
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10915
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10917
# Commands to make compiler produce verbose output that lists
10918
# what "hidden" libraries, object files and flags are used when
10919
# linking a shared library.
10920
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10923
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10928
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10929
archive_cmds_need_lc_CXX=no
10932
case $cc_basename in
10934
# NonStop-UX NCC 3.20
10935
# FIXME: insert proper C++ library support
10939
# FIXME: insert proper C++ library support
10945
# FIXME: insert proper C++ library support
10949
# FIXME: insert proper C++ library support
10953
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10954
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10955
test "$ld_shlibs_CXX" = no && can_build_shared=no
10961
## There is no encapsulation within the following macros, do not change
10962
## the running order or otherwise move them around unless you know exactly
10963
## what you are doing...
10965
cat > conftest.$ac_ext <<EOF
10969
Foo (void) { a = 0; }
10975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976
(eval $ac_compile) 2>&5
10978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979
(exit $ac_status); }; then
10980
# Parse the compiler output and extract the necessary
10981
# objects, libraries and library flags.
10983
# Sentinel used to keep track of whether or not we are before
10984
# the conftest object file.
10985
pre_test_object_deps_done=no
10987
# The `*' in the case matches for architectures that use `case' in
10988
# $output_verbose_cmd can trigger glob expansion during the loop
10989
# eval without this substitution.
10990
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10992
for p in `eval $output_verbose_link_cmd`; do
10996
# Some compilers place space between "-{L,R}" and the path.
10997
# Remove the space.
10998
if test $p = "-L" \
10999
|| test $p = "-R"; then
11006
if test "$pre_test_object_deps_done" = no; then
11009
# Internal compiler library paths should come after those
11010
# provided the user. The postdeps already come after the
11011
# user supplied libs so there is no need to process them.
11012
if test -z "$compiler_lib_search_path_CXX"; then
11013
compiler_lib_search_path_CXX="${prev}${p}"
11015
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11018
# The "-l" case would never come before the object being
11019
# linked, so don't bother handling this case.
11022
if test -z "$postdeps_CXX"; then
11023
postdeps_CXX="${prev}${p}"
11025
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11031
# This assumes that the test object file only shows up
11032
# once in the compiler output.
11033
if test "$p" = "conftest.$objext"; then
11034
pre_test_object_deps_done=yes
11038
if test "$pre_test_object_deps_done" = no; then
11039
if test -z "$predep_objects_CXX"; then
11040
predep_objects_CXX="$p"
11042
predep_objects_CXX="$predep_objects_CXX $p"
11045
if test -z "$postdep_objects_CXX"; then
11046
postdep_objects_CXX="$p"
11048
postdep_objects_CXX="$postdep_objects_CXX $p"
11053
*) ;; # Ignore the rest.
11061
echo "libtool.m4: error: problem compiling CXX test program"
11064
$rm -f confest.$objext
11066
# PORTME: override above test on systems where it is broken
11069
case $cc_basename in
11071
# Adding this requires a known-good setup of shared libraries for
11072
# Sun compiler versions before 5.6, else PIC objects from an old
11073
# archive will be linked into the output, leading to subtle bugs.
11074
postdeps_CXX='-lCstd -lCrun'
11080
case " $postdeps_CXX " in
11081
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11084
lt_prog_compiler_wl_CXX=
11085
lt_prog_compiler_pic_CXX=
11086
lt_prog_compiler_static_CXX=
11088
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11089
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11091
# C++ specific cases for pic, static, wl, etc.
11092
if test "$GXX" = yes; then
11093
lt_prog_compiler_wl_CXX='-Wl,'
11094
lt_prog_compiler_static_CXX='-static'
11098
# All AIX code is PIC.
11099
if test "$host_cpu" = ia64; then
11100
# AIX 5 now supports IA64 processor
11101
lt_prog_compiler_static_CXX='-Bstatic'
11105
# FIXME: we need at least 68020 code to build shared libraries, but
11106
# adding the `-m68020' flag to GCC prevents building anything better,
11108
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11110
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11111
# PIC is the default for these OSes.
11113
mingw* | os2* | pw32*)
11114
# This hack is so that the source file can tell whether it is being
11115
# built for inclusion in a dll (and should export symbols for example).
11116
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11118
darwin* | rhapsody*)
11119
# PIC is the default on this platform
11120
# Common symbols not allowed in MH_DYLIB files
11121
lt_prog_compiler_pic_CXX='-fno-common'
11124
# DJGPP does not support shared libraries at all
11125
lt_prog_compiler_pic_CXX=
11128
if test -d /usr/nec; then
11129
lt_prog_compiler_pic_CXX=-Kconform_pic
11133
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11134
# not for PA HP-UX.
11139
lt_prog_compiler_pic_CXX='-fPIC'
11144
lt_prog_compiler_pic_CXX='-fPIC'
11150
# All AIX code is PIC.
11151
if test "$host_cpu" = ia64; then
11152
# AIX 5 now supports IA64 processor
11153
lt_prog_compiler_static_CXX='-Bstatic'
11155
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11159
case $cc_basename in
11161
# Green Hills C++ Compiler
11162
# _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"
11167
# PIC is the default on this platform
11168
# Common symbols not allowed in MH_DYLIB files
11169
case $cc_basename in
11171
lt_prog_compiler_pic_CXX='-qnocommon'
11172
lt_prog_compiler_wl_CXX='-Wl,'
11177
case $cc_basename in
11179
lt_prog_compiler_pic_CXX='-KPIC'
11182
# Green Hills C++ Compiler
11183
lt_prog_compiler_pic_CXX='-pic'
11189
freebsd* | kfreebsd*-gnu | dragonfly*)
11190
# FreeBSD uses GNU C++
11192
hpux9* | hpux10* | hpux11*)
11193
case $cc_basename in
11195
lt_prog_compiler_wl_CXX='-Wl,'
11196
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11197
if test "$host_cpu" != ia64; then
11198
lt_prog_compiler_pic_CXX='+Z'
11202
lt_prog_compiler_wl_CXX='-Wl,'
11203
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11209
lt_prog_compiler_pic_CXX='+Z'
11217
irix5* | irix6* | nonstopux*)
11218
case $cc_basename in
11220
lt_prog_compiler_wl_CXX='-Wl,'
11221
lt_prog_compiler_static_CXX='-non_shared'
11222
# CC pic flag -KPIC is the default.
11229
case $cc_basename in
11232
lt_prog_compiler_wl_CXX='--backend -Wl,'
11233
lt_prog_compiler_pic_CXX='-fPIC'
11237
lt_prog_compiler_wl_CXX='-Wl,'
11238
lt_prog_compiler_pic_CXX='-KPIC'
11239
lt_prog_compiler_static_CXX='-static'
11242
# Portland Group C++ compiler.
11243
lt_prog_compiler_wl_CXX='-Wl,'
11244
lt_prog_compiler_pic_CXX='-fpic'
11245
lt_prog_compiler_static_CXX='-Bstatic'
11249
# Make sure the PIC flag is empty. It appears that all Alpha
11250
# Linux and Compaq Tru64 Unix objects are PIC.
11251
lt_prog_compiler_pic_CXX=
11252
lt_prog_compiler_static_CXX='-non_shared'
11263
case $cc_basename in
11265
lt_prog_compiler_pic_CXX='-W c,exportall'
11271
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11273
osf3* | osf4* | osf5*)
11274
case $cc_basename in
11276
lt_prog_compiler_wl_CXX='--backend -Wl,'
11279
# Rational C++ 2.4.1
11280
lt_prog_compiler_pic_CXX='-pic'
11283
# Digital/Compaq C++
11284
lt_prog_compiler_wl_CXX='-Wl,'
11285
# Make sure the PIC flag is empty. It appears that all Alpha
11286
# Linux and Compaq Tru64 Unix objects are PIC.
11287
lt_prog_compiler_pic_CXX=
11288
lt_prog_compiler_static_CXX='-non_shared'
11297
case $cc_basename in
11299
lt_prog_compiler_pic_CXX='-fPIC'
11306
case $cc_basename in
11308
# Sun C++ 4.2, 5.x and Centerline C++
11309
lt_prog_compiler_pic_CXX='-KPIC'
11310
lt_prog_compiler_static_CXX='-Bstatic'
11311
lt_prog_compiler_wl_CXX='-Qoption ld '
11314
# Green Hills C++ Compiler
11315
lt_prog_compiler_pic_CXX='-PIC'
11322
case $cc_basename in
11325
lt_prog_compiler_pic_CXX='-pic'
11326
lt_prog_compiler_static_CXX='-Bstatic'
11330
lt_prog_compiler_pic_CXX='-pic'
11337
case $cc_basename in
11339
# NonStop-UX NCC 3.20
11340
lt_prog_compiler_pic_CXX='-KPIC'
11351
lt_prog_compiler_can_build_shared_CXX=no
11356
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11357
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11360
# Check to make sure the PIC flag actually works.
11362
if test -n "$lt_prog_compiler_pic_CXX"; then
11364
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11365
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11366
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11367
echo $ECHO_N "(cached) $ECHO_C" >&6
11369
lt_prog_compiler_pic_works_CXX=no
11370
ac_outfile=conftest.$ac_objext
11371
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11372
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11373
# Insert the option either (1) after the last *FLAGS variable, or
11374
# (2) before a word containing "conftest.", or (3) at the end.
11375
# Note that $ac_compile itself does not contain backslashes and begins
11376
# with a dollar sign (not a hyphen), so the echo should work correctly.
11377
# The option is referenced via a variable to avoid confusing sed.
11378
lt_compile=`echo "$ac_compile" | $SED \
11379
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11380
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11381
-e 's:$: $lt_compiler_flag:'`
11382
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11383
(eval "$lt_compile" 2>conftest.err)
11385
cat conftest.err >&5
11386
echo "$as_me:__oline__: \$? = $ac_status" >&5
11387
if (exit $ac_status) && test -s "$ac_outfile"; then
11388
# The compiler can only warn and ignore the option if not recognized
11389
# So say no if there are warnings other than the usual output.
11390
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11391
$SED '/^$/d' conftest.err >conftest.er2
11392
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11393
lt_prog_compiler_pic_works_CXX=yes
11399
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11400
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11402
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11403
case $lt_prog_compiler_pic_CXX in
11405
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11408
lt_prog_compiler_pic_CXX=
11409
lt_prog_compiler_can_build_shared_CXX=no
11414
# For platforms which do not support PIC, -DPIC is meaningless:
11416
lt_prog_compiler_pic_CXX=
11419
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11423
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11424
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11425
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11426
echo $ECHO_N "(cached) $ECHO_C" >&6
11428
lt_cv_prog_compiler_c_o_CXX=no
11429
$rm -r conftest 2>/dev/null
11433
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11435
lt_compiler_flag="-o out/conftest2.$ac_objext"
11436
# Insert the option either (1) after the last *FLAGS variable, or
11437
# (2) before a word containing "conftest.", or (3) at the end.
11438
# Note that $ac_compile itself does not contain backslashes and begins
11439
# with a dollar sign (not a hyphen), so the echo should work correctly.
11440
lt_compile=`echo "$ac_compile" | $SED \
11441
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11442
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11443
-e 's:$: $lt_compiler_flag:'`
11444
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11445
(eval "$lt_compile" 2>out/conftest.err)
11447
cat out/conftest.err >&5
11448
echo "$as_me:__oline__: \$? = $ac_status" >&5
11449
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11451
# The compiler can only warn and ignore the option if not recognized
11452
# So say no if there are warnings
11453
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11454
$SED '/^$/d' out/conftest.err >out/conftest.er2
11455
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11456
lt_cv_prog_compiler_c_o_CXX=yes
11461
# SGI C++ compiler will create directory out/ii_files/ for
11462
# template instantiation
11463
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11464
$rm out/* && rmdir out
11470
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11471
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11474
hard_links="nottested"
11475
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11476
# do not overwrite the value of need_locks provided by the user
11477
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11478
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11481
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11483
ln conftest.a conftest.b 2>&5 || hard_links=no
11484
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11485
echo "$as_me:$LINENO: result: $hard_links" >&5
11486
echo "${ECHO_T}$hard_links" >&6
11487
if test "$hard_links" = no; then
11488
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11489
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11496
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11497
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11499
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11502
# If we're using GNU nm, then we don't want the "-C" option.
11503
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11504
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11505
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'
11507
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'
11511
export_symbols_cmds_CXX="$ltdll_cmds"
11514
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'
11517
link_all_deplibs_CXX=no
11520
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11524
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11525
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11526
test "$ld_shlibs_CXX" = no && can_build_shared=no
11528
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11529
if test "$GCC" = yes; then
11530
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11534
# Do we need to explicitly link libc?
11536
case "x$archive_cmds_need_lc_CXX" in
11538
# Assume -lc should be added
11539
archive_cmds_need_lc_CXX=yes
11541
if test "$enable_shared" = yes && test "$GCC" = yes; then
11542
case $archive_cmds_CXX in
11544
# FIXME: we may have to deal with multi-command sequences.
11547
# Test whether the compiler implicitly links with -lc since on some
11548
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11549
# to ld, don't add -lc before -lgcc.
11550
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11551
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11553
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556
(eval $ac_compile) 2>&5
11558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559
(exit $ac_status); } 2>conftest.err; then
11562
libobjs=conftest.$ac_objext
11564
wl=$lt_prog_compiler_wl_CXX
11570
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11571
allow_undefined_flag_CXX=
11572
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11573
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576
(exit $ac_status); }
11578
archive_cmds_need_lc_CXX=no
11580
archive_cmds_need_lc_CXX=yes
11582
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11584
cat conftest.err 1>&5
11587
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11588
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11595
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11596
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11597
library_names_spec=
11598
libname_spec='lib$name'
11602
postuninstall_cmds=
11606
shlibpath_overrides_runpath=unknown
11608
dynamic_linker="$host_os ld.so"
11609
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11610
if test "$GCC" = yes; then
11611
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11612
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11613
# if the path contains ";" then we assume it to be the separator
11614
# otherwise default to the standard path separator (i.e. ":") - it is
11615
# assumed that no part of a normal pathname contains ";" but that should
11616
# okay in the real world where ";" in dirpaths is itself problematic.
11617
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11619
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11622
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11624
need_lib_prefix=unknown
11625
hardcode_into_libs=no
11627
# when you set need_version to no, make sure it does not cause -set_version
11628
# flags to be left without arguments
11629
need_version=unknown
11634
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11635
shlibpath_var=LIBPATH
11637
# AIX 3 has no versioning support, so we append a major version to the name.
11638
soname_spec='${libname}${release}${shared_ext}$major'
11645
hardcode_into_libs=yes
11646
if test "$host_cpu" = ia64; then
11647
# AIX 5 supports IA64
11648
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11649
shlibpath_var=LD_LIBRARY_PATH
11651
# With GCC up to 2.95.x, collect2 would create an import file
11652
# for dependence libraries. The import file would start with
11653
# the line `#! .'. This would cause the generated library to
11654
# depend on `.', always an invalid library. This was fixed in
11655
# development snapshots of GCC prior to 3.0.
11657
aix4 | aix4.[01] | aix4.[01].*)
11658
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11660
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11663
can_build_shared=no
11667
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11668
# soname into executable. Probably we can add versioning support to
11669
# collect2, so additional links can be useful in future.
11670
if test "$aix_use_runtimelinking" = yes; then
11671
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11672
# instead of lib<name>.a to let people know that these are not
11673
# typical AIX shared libraries.
11674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676
# We preserve .a as extension for shared libraries through AIX4.2
11677
# and later when we are not doing run time linking.
11678
library_names_spec='${libname}${release}.a $libname.a'
11679
soname_spec='${libname}${release}${shared_ext}$major'
11681
shlibpath_var=LIBPATH
11686
library_names_spec='$libname.ixlibrary $libname.a'
11687
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11688
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'
11692
library_names_spec='${libname}${shared_ext}'
11693
dynamic_linker="$host_os ld.so"
11694
shlibpath_var=LIBRARY_PATH
11700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701
soname_spec='${libname}${release}${shared_ext}$major'
11702
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11703
shlibpath_var=LD_LIBRARY_PATH
11704
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11705
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11706
# the default ld.so.conf also contains /usr/contrib/lib and
11707
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11708
# libtool to hard-code these into programs
11711
cygwin* | mingw* | pw32*)
11712
version_type=windows
11717
case $GCC,$host_os in
11718
yes,cygwin* | yes,mingw* | yes,pw32*)
11719
library_names_spec='$libname.dll.a'
11720
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11721
postinstall_cmds='base_file=`basename \${file}`~
11722
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11723
dldir=$destdir/`dirname \$dlpath`~
11724
test -d \$dldir || mkdir -p \$dldir~
11725
$install_prog $dir/$dlname \$dldir/$dlname~
11726
chmod a+x \$dldir/$dlname'
11727
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11728
dlpath=$dir/\$dldll~
11730
shlibpath_overrides_runpath=yes
11734
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11735
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11736
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11739
# MinGW DLLs use traditional 'lib' prefix
11740
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11741
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11742
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11743
# It is most probably a Windows format PATH printed by
11744
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11745
# path with ; separators, and with drive letters. We can handle the
11746
# drive letters (cygwin fileutils understands them), so leave them,
11747
# especially as we might pass files found there to a mingw objdump,
11748
# which wouldn't understand a cygwinified path. Ahh.
11749
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11751
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11755
# pw32 DLLs use 'pw' prefix rather than 'lib'
11756
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11762
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11765
dynamic_linker='Win32 ld.exe'
11766
# FIXME: first we should search . and the directory the executable is in
11770
darwin* | rhapsody*)
11771
dynamic_linker="$host_os dyld"
11772
version_type=darwin
11775
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11776
soname_spec='${libname}${release}${major}$shared_ext'
11777
shlibpath_overrides_runpath=yes
11778
shlibpath_var=DYLD_LIBRARY_PATH
11779
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11780
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11781
if test "$GCC" = yes; then
11782
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"`
11784
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11786
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11794
soname_spec='${libname}${release}${shared_ext}$major'
11795
shlibpath_var=LD_LIBRARY_PATH
11806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11807
soname_spec='${libname}${release}${shared_ext}$major'
11808
shlibpath_var=LD_LIBRARY_PATH
11809
shlibpath_overrides_runpath=no
11810
hardcode_into_libs=yes
11811
dynamic_linker='GNU ld.so'
11814
freebsd* | dragonfly*)
11815
# DragonFly does not have aout. When/if they implement a new
11816
# versioning mechanism, adjust this.
11817
if test -x /usr/bin/objformat; then
11818
objformat=`/usr/bin/objformat`
11821
freebsd[123]*) objformat=aout ;;
11822
*) objformat=elf ;;
11825
version_type=freebsd-$objformat
11826
case $version_type in
11828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11833
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11837
shlibpath_var=LD_LIBRARY_PATH
11840
shlibpath_overrides_runpath=yes
11842
freebsd3.[01]* | freebsdelf3.[01]*)
11843
shlibpath_overrides_runpath=yes
11844
hardcode_into_libs=yes
11847
shlibpath_overrides_runpath=no
11848
hardcode_into_libs=yes
11857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11858
soname_spec='${libname}${release}${shared_ext}$major'
11859
shlibpath_var=LD_LIBRARY_PATH
11860
hardcode_into_libs=yes
11863
hpux9* | hpux10* | hpux11*)
11864
# Give a soname corresponding to the major version so that dld.sl refuses to
11865
# link against other versions.
11872
hardcode_into_libs=yes
11873
dynamic_linker="$host_os dld.so"
11874
shlibpath_var=LD_LIBRARY_PATH
11875
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877
soname_spec='${libname}${release}${shared_ext}$major'
11878
if test "X$HPUX_IA64_MODE" = X32; then
11879
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11881
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11883
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11887
hardcode_into_libs=yes
11888
dynamic_linker="$host_os dld.sl"
11889
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11890
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892
soname_spec='${libname}${release}${shared_ext}$major'
11893
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11894
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11898
dynamic_linker="$host_os dld.sl"
11899
shlibpath_var=SHLIB_PATH
11900
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902
soname_spec='${libname}${release}${shared_ext}$major'
11905
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11906
postinstall_cmds='chmod 555 $lib'
11909
irix5* | irix6* | nonstopux*)
11911
nonstopux*) version_type=nonstopux ;;
11913
if test "$lt_cv_prog_gnu_ld" = yes; then
11921
soname_spec='${libname}${release}${shared_ext}$major'
11922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11924
irix5* | nonstopux*)
11925
libsuff= shlibsuff=
11928
case $LD in # libtool.m4 will add one of these switches to LD
11929
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11930
libsuff= shlibsuff= libmagic=32-bit;;
11931
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11932
libsuff=32 shlibsuff=N32 libmagic=N32;;
11933
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11934
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11935
*) libsuff= shlibsuff= libmagic=never-match;;
11939
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11940
shlibpath_overrides_runpath=no
11941
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11942
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11943
hardcode_into_libs=yes
11946
# No shared lib support for Linux oldld, aout, or coff.
11947
linux*oldld* | linux*aout* | linux*coff*)
11951
# This must be Linux ELF.
11956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957
soname_spec='${libname}${release}${shared_ext}$major'
11958
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11959
shlibpath_var=LD_LIBRARY_PATH
11960
shlibpath_overrides_runpath=no
11961
# This implies no fast_install, which is unacceptable.
11962
# Some rework will be needed to allow for fast_install
11963
# before this can be enabled.
11964
hardcode_into_libs=yes
11966
# Append ld.so.conf contents to the search path
11967
if test -f /etc/ld.so.conf; then
11968
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' ' '`
11969
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11972
# We used to test for /lib/ld.so.1 and disable shared libraries on
11973
# powerpc, because MkLinux only supported shared libraries with the
11974
# GNU dynamic linker. Since this was broken with cross compilers,
11975
# most powerpc-linux boxes support dynamic linking these days and
11976
# people can always --disable-shared, the test was removed, and we
11977
# assume the GNU/Linux dynamic linker is in use.
11978
dynamic_linker='GNU/Linux ld.so'
11985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11986
soname_spec='${libname}${release}${shared_ext}$major'
11987
shlibpath_var=LD_LIBRARY_PATH
11988
shlibpath_overrides_runpath=no
11989
hardcode_into_libs=yes
11990
dynamic_linker='NetBSD ld.elf_so'
11997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11998
soname_spec='${libname}${release}${shared_ext}$major'
11999
shlibpath_var=LD_LIBRARY_PATH
12000
shlibpath_overrides_runpath=no
12001
hardcode_into_libs=yes
12002
dynamic_linker='GNU ld.so'
12009
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12011
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12012
dynamic_linker='NetBSD (a.out) ld.so'
12014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12015
soname_spec='${libname}${release}${shared_ext}$major'
12016
dynamic_linker='NetBSD ld.elf_so'
12018
shlibpath_var=LD_LIBRARY_PATH
12019
shlibpath_overrides_runpath=yes
12020
hardcode_into_libs=yes
12025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12026
shlibpath_var=LD_LIBRARY_PATH
12027
shlibpath_overrides_runpath=yes
12034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12035
soname_spec='${libname}${release}${shared_ext}$major'
12036
shlibpath_var=LD_LIBRARY_PATH
12037
shlibpath_overrides_runpath=yes
12043
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12045
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12046
*) need_version=no ;;
12048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12049
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12050
shlibpath_var=LD_LIBRARY_PATH
12051
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12053
openbsd2.[89] | openbsd2.[89].*)
12054
shlibpath_overrides_runpath=no
12057
shlibpath_overrides_runpath=yes
12061
shlibpath_overrides_runpath=yes
12066
libname_spec='$name'
12069
library_names_spec='$libname${shared_ext} $libname.a'
12070
dynamic_linker='OS/2 ld.exe'
12071
shlibpath_var=LIBPATH
12074
osf3* | osf4* | osf5*)
12078
soname_spec='${libname}${release}${shared_ext}$major'
12079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080
shlibpath_var=LD_LIBRARY_PATH
12081
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12082
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12087
soname_spec='${libname}${release}${shared_ext}$major'
12088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089
shlibpath_var=LD_LIBRARY_PATH
12096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097
soname_spec='${libname}${release}${shared_ext}$major'
12098
shlibpath_var=LD_LIBRARY_PATH
12099
shlibpath_overrides_runpath=yes
12100
hardcode_into_libs=yes
12101
# ldd complains unless libraries are executable
12102
postinstall_cmds='chmod +x $lib'
12107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12108
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12109
shlibpath_var=LD_LIBRARY_PATH
12110
shlibpath_overrides_runpath=yes
12111
if test "$with_gnu_ld" = yes; then
12117
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120
soname_spec='${libname}${release}${shared_ext}$major'
12121
shlibpath_var=LD_LIBRARY_PATH
12122
case $host_vendor in
12124
shlibpath_overrides_runpath=no
12126
export_dynamic_flag_spec='${wl}-Blargedynsym'
12127
runpath_var=LD_RUN_PATH
12135
shlibpath_overrides_runpath=no
12136
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12142
if test -d /usr/nec ;then
12144
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12145
soname_spec='$libname${shared_ext}.$major'
12146
shlibpath_var=LD_LIBRARY_PATH
12152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153
soname_spec='${libname}${release}${shared_ext}$major'
12154
shlibpath_var=LD_LIBRARY_PATH
12161
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12162
echo "${ECHO_T}$dynamic_linker" >&6
12163
test "$dynamic_linker" = no && can_build_shared=no
12165
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12166
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12167
hardcode_action_CXX=
12168
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12169
test -n "$runpath_var_CXX" || \
12170
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12172
# We can hardcode non-existant directories.
12173
if test "$hardcode_direct_CXX" != no &&
12174
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12175
# have to relink, otherwise we might link with an installed library
12176
# when we should be linking with a yet-to-be-installed one
12177
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12178
test "$hardcode_minus_L_CXX" != no; then
12179
# Linking always hardcodes the temporary library directory.
12180
hardcode_action_CXX=relink
12182
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12183
hardcode_action_CXX=immediate
12186
# We cannot hardcode anything, or else we can only hardcode existing
12188
hardcode_action_CXX=unsupported
12190
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12191
echo "${ECHO_T}$hardcode_action_CXX" >&6
12193
if test "$hardcode_action_CXX" = relink; then
12194
# Fast installation is not supported
12195
enable_fast_install=no
12196
elif test "$shlibpath_overrides_runpath" = yes ||
12197
test "$enable_shared" = no; then
12198
# Fast installation is not necessary
12199
enable_fast_install=needless
12204
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12205
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12206
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12207
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12208
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12209
echo "$as_me:$LINENO: result: yes" >&5
12210
echo "${ECHO_T}yes" >&6
12212
# FIXME - insert some real tests, host_os isn't really good enough
12215
if test -n "$STRIP" ; then
12216
striplib="$STRIP -x"
12217
echo "$as_me:$LINENO: result: yes" >&5
12218
echo "${ECHO_T}yes" >&6
12220
echo "$as_me:$LINENO: result: no" >&5
12221
echo "${ECHO_T}no" >&6
12225
echo "$as_me:$LINENO: result: no" >&5
12226
echo "${ECHO_T}no" >&6
12231
if test "x$enable_dlopen" != xyes; then
12232
enable_dlopen=unknown
12233
enable_dlopen_self=unknown
12234
enable_dlopen_self_static=unknown
12241
lt_cv_dlopen="load_add_on"
12243
lt_cv_dlopen_self=yes
12247
lt_cv_dlopen="LoadLibrary"
12252
lt_cv_dlopen="dlopen"
12257
# if libdl is installed we need to link against it
12258
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12259
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12260
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12261
echo $ECHO_N "(cached) $ECHO_C" >&6
12263
ac_check_lib_save_LIBS=$LIBS
12265
cat >conftest.$ac_ext <<_ACEOF
12268
cat confdefs.h >>conftest.$ac_ext
12269
cat >>conftest.$ac_ext <<_ACEOF
12270
/* end confdefs.h. */
12272
/* Override any gcc2 internal prototype to avoid an error. */
12276
/* We use char because int might match the return type of a gcc2
12277
builtin and then its argument prototype would still apply. */
12287
rm -f conftest.$ac_objext conftest$ac_exeext
12288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289
(eval $ac_link) 2>conftest.er1
12291
grep -v '^ *+' conftest.er1 >conftest.err
12293
cat conftest.err >&5
12294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
(exit $ac_status); } &&
12296
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298
(eval $ac_try) 2>&5
12300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301
(exit $ac_status); }; } &&
12302
{ ac_try='test -s conftest$ac_exeext'
12303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304
(eval $ac_try) 2>&5
12306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307
(exit $ac_status); }; }; then
12308
ac_cv_lib_dl_dlopen=yes
12310
echo "$as_me: failed program was:" >&5
12311
sed 's/^/| /' conftest.$ac_ext >&5
12313
ac_cv_lib_dl_dlopen=no
12315
rm -f conftest.err conftest.$ac_objext \
12316
conftest$ac_exeext conftest.$ac_ext
12317
LIBS=$ac_check_lib_save_LIBS
12319
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12320
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12321
if test $ac_cv_lib_dl_dlopen = yes; then
12322
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12325
lt_cv_dlopen="dyld"
12327
lt_cv_dlopen_self=yes
12334
echo "$as_me:$LINENO: checking for shl_load" >&5
12335
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12336
if test "${ac_cv_func_shl_load+set}" = set; then
12337
echo $ECHO_N "(cached) $ECHO_C" >&6
12339
cat >conftest.$ac_ext <<_ACEOF
12342
cat confdefs.h >>conftest.$ac_ext
12343
cat >>conftest.$ac_ext <<_ACEOF
12344
/* end confdefs.h. */
12345
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12346
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12347
#define shl_load innocuous_shl_load
12349
/* System header to define __stub macros and hopefully few prototypes,
12350
which can conflict with char shl_load (); below.
12351
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12352
<limits.h> exists even on freestanding compilers. */
12355
# include <limits.h>
12357
# include <assert.h>
12362
/* Override any gcc2 internal prototype to avoid an error. */
12367
/* We use char because int might match the return type of a gcc2
12368
builtin and then its argument prototype would still apply. */
12370
/* The GNU C library defines this for functions which it implements
12371
to always fail with ENOSYS. Some functions are actually named
12372
something starting with __ and the normal name is an alias. */
12373
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12376
char (*f) () = shl_load;
12385
return f != shl_load;
12390
rm -f conftest.$ac_objext conftest$ac_exeext
12391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392
(eval $ac_link) 2>conftest.er1
12394
grep -v '^ *+' conftest.er1 >conftest.err
12396
cat conftest.err >&5
12397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398
(exit $ac_status); } &&
12399
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401
(eval $ac_try) 2>&5
12403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404
(exit $ac_status); }; } &&
12405
{ ac_try='test -s conftest$ac_exeext'
12406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407
(eval $ac_try) 2>&5
12409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410
(exit $ac_status); }; }; then
12411
ac_cv_func_shl_load=yes
12413
echo "$as_me: failed program was:" >&5
12414
sed 's/^/| /' conftest.$ac_ext >&5
12416
ac_cv_func_shl_load=no
12418
rm -f conftest.err conftest.$ac_objext \
12419
conftest$ac_exeext conftest.$ac_ext
12421
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12422
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12423
if test $ac_cv_func_shl_load = yes; then
12424
lt_cv_dlopen="shl_load"
12426
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12427
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12428
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12429
echo $ECHO_N "(cached) $ECHO_C" >&6
12431
ac_check_lib_save_LIBS=$LIBS
12433
cat >conftest.$ac_ext <<_ACEOF
12436
cat confdefs.h >>conftest.$ac_ext
12437
cat >>conftest.$ac_ext <<_ACEOF
12438
/* end confdefs.h. */
12440
/* Override any gcc2 internal prototype to avoid an error. */
12444
/* We use char because int might match the return type of a gcc2
12445
builtin and then its argument prototype would still apply. */
12455
rm -f conftest.$ac_objext conftest$ac_exeext
12456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457
(eval $ac_link) 2>conftest.er1
12459
grep -v '^ *+' conftest.er1 >conftest.err
12461
cat conftest.err >&5
12462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463
(exit $ac_status); } &&
12464
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466
(eval $ac_try) 2>&5
12468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469
(exit $ac_status); }; } &&
12470
{ ac_try='test -s conftest$ac_exeext'
12471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472
(eval $ac_try) 2>&5
12474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475
(exit $ac_status); }; }; then
12476
ac_cv_lib_dld_shl_load=yes
12478
echo "$as_me: failed program was:" >&5
12479
sed 's/^/| /' conftest.$ac_ext >&5
12481
ac_cv_lib_dld_shl_load=no
12483
rm -f conftest.err conftest.$ac_objext \
12484
conftest$ac_exeext conftest.$ac_ext
12485
LIBS=$ac_check_lib_save_LIBS
12487
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12488
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12489
if test $ac_cv_lib_dld_shl_load = yes; then
12490
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12492
echo "$as_me:$LINENO: checking for dlopen" >&5
12493
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12494
if test "${ac_cv_func_dlopen+set}" = set; then
12495
echo $ECHO_N "(cached) $ECHO_C" >&6
12497
cat >conftest.$ac_ext <<_ACEOF
12500
cat confdefs.h >>conftest.$ac_ext
12501
cat >>conftest.$ac_ext <<_ACEOF
12502
/* end confdefs.h. */
12503
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12504
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12505
#define dlopen innocuous_dlopen
12507
/* System header to define __stub macros and hopefully few prototypes,
12508
which can conflict with char dlopen (); below.
12509
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12510
<limits.h> exists even on freestanding compilers. */
12513
# include <limits.h>
12515
# include <assert.h>
12520
/* Override any gcc2 internal prototype to avoid an error. */
12525
/* We use char because int might match the return type of a gcc2
12526
builtin and then its argument prototype would still apply. */
12528
/* The GNU C library defines this for functions which it implements
12529
to always fail with ENOSYS. Some functions are actually named
12530
something starting with __ and the normal name is an alias. */
12531
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12534
char (*f) () = dlopen;
12543
return f != dlopen;
12548
rm -f conftest.$ac_objext conftest$ac_exeext
12549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550
(eval $ac_link) 2>conftest.er1
12552
grep -v '^ *+' conftest.er1 >conftest.err
12554
cat conftest.err >&5
12555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556
(exit $ac_status); } &&
12557
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559
(eval $ac_try) 2>&5
12561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562
(exit $ac_status); }; } &&
12563
{ ac_try='test -s conftest$ac_exeext'
12564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565
(eval $ac_try) 2>&5
12567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568
(exit $ac_status); }; }; then
12569
ac_cv_func_dlopen=yes
12571
echo "$as_me: failed program was:" >&5
12572
sed 's/^/| /' conftest.$ac_ext >&5
12574
ac_cv_func_dlopen=no
12576
rm -f conftest.err conftest.$ac_objext \
12577
conftest$ac_exeext conftest.$ac_ext
12579
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12580
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12581
if test $ac_cv_func_dlopen = yes; then
12582
lt_cv_dlopen="dlopen"
12584
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12585
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12586
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12587
echo $ECHO_N "(cached) $ECHO_C" >&6
12589
ac_check_lib_save_LIBS=$LIBS
12591
cat >conftest.$ac_ext <<_ACEOF
12594
cat confdefs.h >>conftest.$ac_ext
12595
cat >>conftest.$ac_ext <<_ACEOF
12596
/* end confdefs.h. */
12598
/* Override any gcc2 internal prototype to avoid an error. */
12602
/* We use char because int might match the return type of a gcc2
12603
builtin and then its argument prototype would still apply. */
12613
rm -f conftest.$ac_objext conftest$ac_exeext
12614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615
(eval $ac_link) 2>conftest.er1
12617
grep -v '^ *+' conftest.er1 >conftest.err
12619
cat conftest.err >&5
12620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621
(exit $ac_status); } &&
12622
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624
(eval $ac_try) 2>&5
12626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627
(exit $ac_status); }; } &&
12628
{ ac_try='test -s conftest$ac_exeext'
12629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630
(eval $ac_try) 2>&5
12632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633
(exit $ac_status); }; }; then
12634
ac_cv_lib_dl_dlopen=yes
12636
echo "$as_me: failed program was:" >&5
12637
sed 's/^/| /' conftest.$ac_ext >&5
12639
ac_cv_lib_dl_dlopen=no
12641
rm -f conftest.err conftest.$ac_objext \
12642
conftest$ac_exeext conftest.$ac_ext
12643
LIBS=$ac_check_lib_save_LIBS
12645
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12646
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12647
if test $ac_cv_lib_dl_dlopen = yes; then
12648
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12650
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12651
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12652
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12653
echo $ECHO_N "(cached) $ECHO_C" >&6
12655
ac_check_lib_save_LIBS=$LIBS
12656
LIBS="-lsvld $LIBS"
12657
cat >conftest.$ac_ext <<_ACEOF
12660
cat confdefs.h >>conftest.$ac_ext
12661
cat >>conftest.$ac_ext <<_ACEOF
12662
/* end confdefs.h. */
12664
/* Override any gcc2 internal prototype to avoid an error. */
12668
/* We use char because int might match the return type of a gcc2
12669
builtin and then its argument prototype would still apply. */
12679
rm -f conftest.$ac_objext conftest$ac_exeext
12680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12681
(eval $ac_link) 2>conftest.er1
12683
grep -v '^ *+' conftest.er1 >conftest.err
12685
cat conftest.err >&5
12686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687
(exit $ac_status); } &&
12688
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690
(eval $ac_try) 2>&5
12692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
(exit $ac_status); }; } &&
12694
{ ac_try='test -s conftest$ac_exeext'
12695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696
(eval $ac_try) 2>&5
12698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699
(exit $ac_status); }; }; then
12700
ac_cv_lib_svld_dlopen=yes
12702
echo "$as_me: failed program was:" >&5
12703
sed 's/^/| /' conftest.$ac_ext >&5
12705
ac_cv_lib_svld_dlopen=no
12707
rm -f conftest.err conftest.$ac_objext \
12708
conftest$ac_exeext conftest.$ac_ext
12709
LIBS=$ac_check_lib_save_LIBS
12711
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12712
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12713
if test $ac_cv_lib_svld_dlopen = yes; then
12714
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12716
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12717
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12718
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12719
echo $ECHO_N "(cached) $ECHO_C" >&6
12721
ac_check_lib_save_LIBS=$LIBS
12723
cat >conftest.$ac_ext <<_ACEOF
12726
cat confdefs.h >>conftest.$ac_ext
12727
cat >>conftest.$ac_ext <<_ACEOF
12728
/* end confdefs.h. */
12730
/* Override any gcc2 internal prototype to avoid an error. */
12734
/* We use char because int might match the return type of a gcc2
12735
builtin and then its argument prototype would still apply. */
12745
rm -f conftest.$ac_objext conftest$ac_exeext
12746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12747
(eval $ac_link) 2>conftest.er1
12749
grep -v '^ *+' conftest.er1 >conftest.err
12751
cat conftest.err >&5
12752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753
(exit $ac_status); } &&
12754
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756
(eval $ac_try) 2>&5
12758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759
(exit $ac_status); }; } &&
12760
{ ac_try='test -s conftest$ac_exeext'
12761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762
(eval $ac_try) 2>&5
12764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765
(exit $ac_status); }; }; then
12766
ac_cv_lib_dld_dld_link=yes
12768
echo "$as_me: failed program was:" >&5
12769
sed 's/^/| /' conftest.$ac_ext >&5
12771
ac_cv_lib_dld_dld_link=no
12773
rm -f conftest.err conftest.$ac_objext \
12774
conftest$ac_exeext conftest.$ac_ext
12775
LIBS=$ac_check_lib_save_LIBS
12777
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12778
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12779
if test $ac_cv_lib_dld_dld_link = yes; then
12780
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12801
if test "x$lt_cv_dlopen" != xno; then
12807
case $lt_cv_dlopen in
12809
save_CPPFLAGS="$CPPFLAGS"
12810
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12812
save_LDFLAGS="$LDFLAGS"
12813
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12816
LIBS="$lt_cv_dlopen_libs $LIBS"
12818
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12819
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12820
if test "${lt_cv_dlopen_self+set}" = set; then
12821
echo $ECHO_N "(cached) $ECHO_C" >&6
12823
if test "$cross_compiling" = yes; then :
12824
lt_cv_dlopen_self=cross
12826
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12827
lt_status=$lt_dlunknown
12828
cat > conftest.$ac_ext <<EOF
12829
#line __oline__ "configure"
12830
#include "confdefs.h"
12839
# define LT_DLGLOBAL RTLD_GLOBAL
12842
# define LT_DLGLOBAL DL_GLOBAL
12844
# define LT_DLGLOBAL 0
12848
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12849
find out it does not work in some platform. */
12850
#ifndef LT_DLLAZY_OR_NOW
12852
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12855
# define LT_DLLAZY_OR_NOW DL_LAZY
12858
# define LT_DLLAZY_OR_NOW RTLD_NOW
12861
# define LT_DLLAZY_OR_NOW DL_NOW
12863
# define LT_DLLAZY_OR_NOW 0
12871
extern "C" void exit (int);
12874
void fnord() { int i=42;}
12877
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12878
int status = $lt_dlunknown;
12882
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12883
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12884
/* dlclose (self); */
12890
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891
(eval $ac_link) 2>&5
12893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12895
(./conftest; exit; ) >&5 2>/dev/null
12897
case x$lt_status in
12898
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12899
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12900
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12903
# compilation failed
12904
lt_cv_dlopen_self=no
12911
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12912
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12914
if test "x$lt_cv_dlopen_self" = xyes; then
12915
LDFLAGS="$LDFLAGS $link_static_flag"
12916
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12917
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12918
if test "${lt_cv_dlopen_self_static+set}" = set; then
12919
echo $ECHO_N "(cached) $ECHO_C" >&6
12921
if test "$cross_compiling" = yes; then :
12922
lt_cv_dlopen_self_static=cross
12924
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12925
lt_status=$lt_dlunknown
12926
cat > conftest.$ac_ext <<EOF
12927
#line __oline__ "configure"
12928
#include "confdefs.h"
12937
# define LT_DLGLOBAL RTLD_GLOBAL
12940
# define LT_DLGLOBAL DL_GLOBAL
12942
# define LT_DLGLOBAL 0
12946
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12947
find out it does not work in some platform. */
12948
#ifndef LT_DLLAZY_OR_NOW
12950
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12953
# define LT_DLLAZY_OR_NOW DL_LAZY
12956
# define LT_DLLAZY_OR_NOW RTLD_NOW
12959
# define LT_DLLAZY_OR_NOW DL_NOW
12961
# define LT_DLLAZY_OR_NOW 0
12969
extern "C" void exit (int);
12972
void fnord() { int i=42;}
12975
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12976
int status = $lt_dlunknown;
12980
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12981
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12982
/* dlclose (self); */
12988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989
(eval $ac_link) 2>&5
12991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12993
(./conftest; exit; ) >&5 2>/dev/null
12995
case x$lt_status in
12996
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12997
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12998
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13001
# compilation failed
13002
lt_cv_dlopen_self_static=no
13009
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13010
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13013
CPPFLAGS="$save_CPPFLAGS"
13014
LDFLAGS="$save_LDFLAGS"
13019
case $lt_cv_dlopen_self in
13020
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13021
*) enable_dlopen_self=unknown ;;
13024
case $lt_cv_dlopen_self_static in
13025
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13026
*) enable_dlopen_self_static=unknown ;;
13031
# The else clause should only fire when bootstrapping the
13032
# libtool distribution, otherwise you forgot to ship ltmain.sh
13033
# with your package, and you will get complaints that there are
13034
# no rules to generate ltmain.sh.
13035
if test -f "$ltmain"; then
13036
# See if we are running on zsh, and set the options which allow our commands through
13037
# without removal of \ escapes.
13038
if test -n "${ZSH_VERSION+set}" ; then
13039
setopt NO_GLOB_SUBST
13041
# Now quote all the things that may contain metacharacters while being
13042
# careful not to overquote the AC_SUBSTed values. We take copies of the
13043
# variables and quote the copies for generation of the libtool script.
13044
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13046
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13047
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13048
deplibs_check_method reload_flag reload_cmds need_locks \
13049
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13050
lt_cv_sys_global_symbol_to_c_name_address \
13051
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13052
old_postinstall_cmds old_postuninstall_cmds \
13056
lt_prog_compiler_wl_CXX \
13057
lt_prog_compiler_pic_CXX \
13058
lt_prog_compiler_static_CXX \
13059
lt_prog_compiler_no_builtin_flag_CXX \
13060
export_dynamic_flag_spec_CXX \
13061
thread_safe_flag_spec_CXX \
13062
whole_archive_flag_spec_CXX \
13063
enable_shared_with_static_runtimes_CXX \
13064
old_archive_cmds_CXX \
13065
old_archive_from_new_cmds_CXX \
13066
predep_objects_CXX \
13067
postdep_objects_CXX \
13070
compiler_lib_search_path_CXX \
13072
archive_expsym_cmds_CXX \
13073
postinstall_cmds_CXX \
13074
postuninstall_cmds_CXX \
13075
old_archive_from_expsyms_cmds_CXX \
13076
allow_undefined_flag_CXX \
13077
no_undefined_flag_CXX \
13078
export_symbols_cmds_CXX \
13079
hardcode_libdir_flag_spec_CXX \
13080
hardcode_libdir_flag_spec_ld_CXX \
13081
hardcode_libdir_separator_CXX \
13082
hardcode_automatic_CXX \
13084
module_expsym_cmds_CXX \
13085
lt_cv_prog_compiler_c_o_CXX \
13086
exclude_expsyms_CXX \
13087
include_expsyms_CXX; do
13090
old_archive_cmds_CXX | \
13091
old_archive_from_new_cmds_CXX | \
13092
archive_cmds_CXX | \
13093
archive_expsym_cmds_CXX | \
13094
module_cmds_CXX | \
13095
module_expsym_cmds_CXX | \
13096
old_archive_from_expsyms_cmds_CXX | \
13097
export_symbols_cmds_CXX | \
13098
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13099
postinstall_cmds | postuninstall_cmds | \
13100
old_postinstall_cmds | old_postuninstall_cmds | \
13101
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13102
# Double-quote double-evaled strings.
13103
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13106
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13112
*'\$0 --fallback-echo"')
13113
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13119
cat <<__EOF__ >> "$cfgfile"
13120
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13122
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13124
# Shell to use when invoking shell scripts.
13127
# Whether or not to build shared libraries.
13128
build_libtool_libs=$enable_shared
13130
# Whether or not to build static libraries.
13131
build_old_libs=$enable_static
13133
# Whether or not to add -lc for building shared libraries.
13134
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13136
# Whether or not to disallow shared libs when runtime libs are static
13137
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13139
# Whether or not to optimize for fast installation.
13140
fast_install=$enable_fast_install
13143
host_alias=$host_alias
13147
# The build system.
13148
build_alias=$build_alias
13152
# An echo program that does not interpret backslashes.
13157
AR_FLAGS=$lt_AR_FLAGS
13162
# A language-specific compiler.
13163
CC=$lt_compiler_CXX
13165
# Is the compiler the GNU C compiler?
13171
# The linker used to build libraries.
13174
# Whether we need hard or soft links.
13177
# A BSD-compatible nm program.
13180
# A symbol stripping program
13183
# Used to examine libraries when file_magic_cmd begins "file"
13184
MAGIC_CMD=$MAGIC_CMD
13186
# Used on cygwin: DLL creation program.
13189
# Used on cygwin: object dumper.
13192
# Used on cygwin: assembler.
13195
# The name of the directory that contains temporary libtool files.
13198
# How to create reloadable object files.
13199
reload_flag=$lt_reload_flag
13200
reload_cmds=$lt_reload_cmds
13202
# How to pass a linker flag through the compiler.
13203
wl=$lt_lt_prog_compiler_wl_CXX
13205
# Object file suffix (normally "o").
13206
objext="$ac_objext"
13208
# Old archive suffix (normally "a").
13211
# Shared library suffix (normally ".so").
13212
shrext_cmds='$shrext_cmds'
13214
# Executable file suffix (normally "").
13217
# Additional compiler flags for building library objects.
13218
pic_flag=$lt_lt_prog_compiler_pic_CXX
13221
# What is the maximum length of a command?
13222
max_cmd_len=$lt_cv_sys_max_cmd_len
13224
# Does compiler simultaneously support -c and -o options?
13225
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13227
# Must we lock files when doing compilation?
13228
need_locks=$lt_need_locks
13230
# Do we need the lib prefix for modules?
13231
need_lib_prefix=$need_lib_prefix
13233
# Do we need a version for libraries?
13234
need_version=$need_version
13236
# Whether dlopen is supported.
13237
dlopen_support=$enable_dlopen
13239
# Whether dlopen of programs is supported.
13240
dlopen_self=$enable_dlopen_self
13242
# Whether dlopen of statically linked programs is supported.
13243
dlopen_self_static=$enable_dlopen_self_static
13245
# Compiler flag to prevent dynamic linking.
13246
link_static_flag=$lt_lt_prog_compiler_static_CXX
13248
# Compiler flag to turn off builtin functions.
13249
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13251
# Compiler flag to allow reflexive dlopens.
13252
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13254
# Compiler flag to generate shared objects directly from archives.
13255
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13257
# Compiler flag to generate thread-safe objects.
13258
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13260
# Library versioning type.
13261
version_type=$version_type
13263
# Format of library name prefix.
13264
libname_spec=$lt_libname_spec
13266
# List of archive names. First name is the real one, the rest are links.
13267
# The last name is the one that the linker finds with -lNAME.
13268
library_names_spec=$lt_library_names_spec
13270
# The coded name of the library, if different from the real name.
13271
soname_spec=$lt_soname_spec
13273
# Commands used to build and install an old-style archive.
13275
old_archive_cmds=$lt_old_archive_cmds_CXX
13276
old_postinstall_cmds=$lt_old_postinstall_cmds
13277
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13279
# Create an old-style archive from a shared archive.
13280
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13282
# Create a temporary old-style archive to link instead of a shared archive.
13283
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13285
# Commands used to build and install a shared archive.
13286
archive_cmds=$lt_archive_cmds_CXX
13287
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13288
postinstall_cmds=$lt_postinstall_cmds
13289
postuninstall_cmds=$lt_postuninstall_cmds
13291
# Commands used to build a loadable module (assumed same as above if empty)
13292
module_cmds=$lt_module_cmds_CXX
13293
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13295
# Commands to strip libraries.
13296
old_striplib=$lt_old_striplib
13297
striplib=$lt_striplib
13299
# Dependencies to place before the objects being linked to create a
13301
predep_objects=$lt_predep_objects_CXX
13303
# Dependencies to place after the objects being linked to create a
13305
postdep_objects=$lt_postdep_objects_CXX
13307
# Dependencies to place before the objects being linked to create a
13309
predeps=$lt_predeps_CXX
13311
# Dependencies to place after the objects being linked to create a
13313
postdeps=$lt_postdeps_CXX
13315
# The library search path used internally by the compiler when linking
13316
# a shared library.
13317
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13319
# Method to check whether dependent libraries are shared objects.
13320
deplibs_check_method=$lt_deplibs_check_method
13322
# Command to use when deplibs_check_method == file_magic.
13323
file_magic_cmd=$lt_file_magic_cmd
13325
# Flag that allows shared libraries with undefined symbols to be built.
13326
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13328
# Flag that forces no undefined symbols.
13329
no_undefined_flag=$lt_no_undefined_flag_CXX
13331
# Commands used to finish a libtool library installation in a directory.
13332
finish_cmds=$lt_finish_cmds
13334
# Same as above, but a single script fragment to be evaled but not shown.
13335
finish_eval=$lt_finish_eval
13337
# Take the output of nm and produce a listing of raw symbols and C names.
13338
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13340
# Transform the output of nm in a proper C declaration
13341
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13343
# Transform the output of nm in a C name address pair
13344
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13346
# This is the shared library runtime path variable.
13347
runpath_var=$runpath_var
13349
# This is the shared library path variable.
13350
shlibpath_var=$shlibpath_var
13352
# Is shlibpath searched before the hard-coded library search path?
13353
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13355
# How to hardcode a shared library path into an executable.
13356
hardcode_action=$hardcode_action_CXX
13358
# Whether we should hardcode library paths into libraries.
13359
hardcode_into_libs=$hardcode_into_libs
13361
# Flag to hardcode \$libdir into a binary during linking.
13362
# This must work even if \$libdir does not exist.
13363
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13365
# If ld is used when linking, flag to hardcode \$libdir into
13366
# a binary during linking. This must work even if \$libdir does
13368
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13370
# Whether we need a single -rpath flag with a separated argument.
13371
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13373
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13374
# resulting binary.
13375
hardcode_direct=$hardcode_direct_CXX
13377
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13378
# resulting binary.
13379
hardcode_minus_L=$hardcode_minus_L_CXX
13381
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13382
# the resulting binary.
13383
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13385
# Set to yes if building a shared library automatically hardcodes DIR into the library
13386
# and all subsequent libraries and executables linked against it.
13387
hardcode_automatic=$hardcode_automatic_CXX
13389
# Variables whose values should be saved in libtool wrapper scripts and
13390
# restored at relink time.
13391
variables_saved_for_relink="$variables_saved_for_relink"
13393
# Whether libtool must link a program against all its dependency libraries.
13394
link_all_deplibs=$link_all_deplibs_CXX
13396
# Compile-time system search path for libraries
13397
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13399
# Run-time system search path for libraries
13400
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13402
# Fix the shell variable \$srcfile for the compiler.
13403
fix_srcfile_path="$fix_srcfile_path_CXX"
13405
# Set to yes if exported symbols are required.
13406
always_export_symbols=$always_export_symbols_CXX
13408
# The commands to list exported symbols.
13409
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13411
# The commands to extract the exported symbol list from a shared archive.
13412
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13414
# Symbols that should not be listed in the preloaded symbols.
13415
exclude_expsyms=$lt_exclude_expsyms_CXX
13417
# Symbols that must always be exported.
13418
include_expsyms=$lt_include_expsyms_CXX
13420
# ### END LIBTOOL TAG CONFIG: $tagname
13426
# If there is no Makefile yet, we rely on a make rule to execute
13427
# `config.status --recheck' to rerun these tests and create the
13428
# libtool script then.
13429
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13430
if test -f "$ltmain_in"; then
13431
test -f Makefile && make "$ltmain"
13437
ac_cpp='$CPP $CPPFLAGS'
13438
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13446
with_gnu_ldcxx=$with_gnu_ld
13447
with_gnu_ld=$lt_save_with_gnu_ld
13448
lt_cv_path_LDCXX=$lt_cv_path_LD
13449
lt_cv_path_LD=$lt_save_path_LD
13450
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13451
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13459
if test -n "$F77" && test "X$F77" != "Xno"; then
13462
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13463
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13464
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13467
archive_cmds_need_lc_F77=no
13468
allow_undefined_flag_F77=
13469
always_export_symbols_F77=no
13470
archive_expsym_cmds_F77=
13471
export_dynamic_flag_spec_F77=
13472
hardcode_direct_F77=no
13473
hardcode_libdir_flag_spec_F77=
13474
hardcode_libdir_flag_spec_ld_F77=
13475
hardcode_libdir_separator_F77=
13476
hardcode_minus_L_F77=no
13477
hardcode_automatic_F77=no
13479
module_expsym_cmds_F77=
13480
link_all_deplibs_F77=unknown
13481
old_archive_cmds_F77=$old_archive_cmds
13482
no_undefined_flag_F77=
13483
whole_archive_flag_spec_F77=
13484
enable_shared_with_static_runtimes_F77=no
13486
# Source file extension for f77 test sources.
13489
# Object file extension for compiled f77 test sources.
13493
# Code to be used in simple compile tests
13494
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13496
# Code to be used in simple link tests
13497
lt_simple_link_test_code=" program t\n end\n"
13499
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13501
# If no C compiler was specified, use CC.
13504
# Allow CC to be a program name with arguments.
13508
# save warnings/boilerplate of simple test code
13509
ac_outfile=conftest.$ac_objext
13510
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13511
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13512
_lt_compiler_boilerplate=`cat conftest.err`
13515
ac_outfile=conftest.$ac_objext
13516
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13517
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13518
_lt_linker_boilerplate=`cat conftest.err`
13522
# Allow CC to be a program name with arguments.
13527
for cc_temp in $compiler""; do
13529
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13530
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13535
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13538
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13539
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13540
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13541
echo "${ECHO_T}$can_build_shared" >&6
13543
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13544
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13545
test "$can_build_shared" = "no" && enable_shared=no
13547
# On AIX, shared libraries and static libraries use the same namespace, and
13548
# are all built from PIC.
13551
test "$enable_shared" = yes && enable_static=no
13552
if test -n "$RANLIB"; then
13553
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13554
postinstall_cmds='$RANLIB $lib'
13558
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13559
test "$enable_shared" = yes && enable_static=no
13563
echo "$as_me:$LINENO: result: $enable_shared" >&5
13564
echo "${ECHO_T}$enable_shared" >&6
13566
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13567
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13568
# Make sure either enable_shared or enable_static is yes.
13569
test "$enable_shared" = yes || enable_static=yes
13570
echo "$as_me:$LINENO: result: $enable_static" >&5
13571
echo "${ECHO_T}$enable_static" >&6
13573
test "$ld_shlibs_F77" = no && can_build_shared=no
13578
lt_prog_compiler_wl_F77=
13579
lt_prog_compiler_pic_F77=
13580
lt_prog_compiler_static_F77=
13582
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13583
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13585
if test "$GCC" = yes; then
13586
lt_prog_compiler_wl_F77='-Wl,'
13587
lt_prog_compiler_static_F77='-static'
13591
# All AIX code is PIC.
13592
if test "$host_cpu" = ia64; then
13593
# AIX 5 now supports IA64 processor
13594
lt_prog_compiler_static_F77='-Bstatic'
13599
# FIXME: we need at least 68020 code to build shared libraries, but
13600
# adding the `-m68020' flag to GCC prevents building anything better,
13602
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13605
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13606
# PIC is the default for these OSes.
13609
mingw* | pw32* | os2*)
13610
# This hack is so that the source file can tell whether it is being
13611
# built for inclusion in a dll (and should export symbols for example).
13612
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13615
darwin* | rhapsody*)
13616
# PIC is the default on this platform
13617
# Common symbols not allowed in MH_DYLIB files
13618
lt_prog_compiler_pic_F77='-fno-common'
13622
# Just because we use GCC doesn't mean we suddenly get shared libraries
13623
# on systems that don't support them.
13624
lt_prog_compiler_can_build_shared_F77=no
13629
if test -d /usr/nec; then
13630
lt_prog_compiler_pic_F77=-Kconform_pic
13635
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13636
# not for PA HP-UX.
13642
lt_prog_compiler_pic_F77='-fPIC'
13648
lt_prog_compiler_pic_F77='-fPIC'
13652
# PORTME Check for flag to pass linker flags through the system compiler.
13655
lt_prog_compiler_wl_F77='-Wl,'
13656
if test "$host_cpu" = ia64; then
13657
# AIX 5 now supports IA64 processor
13658
lt_prog_compiler_static_F77='-Bstatic'
13660
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13664
# PIC is the default on this platform
13665
# Common symbols not allowed in MH_DYLIB files
13666
case $cc_basename in
13668
lt_prog_compiler_pic_F77='-qnocommon'
13669
lt_prog_compiler_wl_F77='-Wl,'
13674
mingw* | pw32* | os2*)
13675
# This hack is so that the source file can tell whether it is being
13676
# built for inclusion in a dll (and should export symbols for example).
13677
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13680
hpux9* | hpux10* | hpux11*)
13681
lt_prog_compiler_wl_F77='-Wl,'
13682
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683
# not for PA HP-UX.
13689
lt_prog_compiler_pic_F77='+Z'
13692
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13693
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13696
irix5* | irix6* | nonstopux*)
13697
lt_prog_compiler_wl_F77='-Wl,'
13698
# PIC (with -KPIC) is the default.
13699
lt_prog_compiler_static_F77='-non_shared'
13703
lt_prog_compiler_pic_F77='-KPIC'
13704
lt_prog_compiler_static_F77='-Bstatic'
13708
case $cc_basename in
13710
lt_prog_compiler_wl_F77='-Wl,'
13711
lt_prog_compiler_pic_F77='-KPIC'
13712
lt_prog_compiler_static_F77='-static'
13714
pgcc* | pgf77* | pgf90* | pgf95*)
13715
# Portland Group compilers (*not* the Pentium gcc compiler,
13716
# which looks to be a dead project)
13717
lt_prog_compiler_wl_F77='-Wl,'
13718
lt_prog_compiler_pic_F77='-fpic'
13719
lt_prog_compiler_static_F77='-Bstatic'
13722
lt_prog_compiler_wl_F77='-Wl,'
13723
# All Alpha code is PIC.
13724
lt_prog_compiler_static_F77='-non_shared'
13729
osf3* | osf4* | osf5*)
13730
lt_prog_compiler_wl_F77='-Wl,'
13731
# All OSF/1 code is PIC.
13732
lt_prog_compiler_static_F77='-non_shared'
13736
lt_prog_compiler_pic_F77='-Kpic'
13737
lt_prog_compiler_static_F77='-dn'
13741
lt_prog_compiler_pic_F77='-KPIC'
13742
lt_prog_compiler_static_F77='-Bstatic'
13743
case $cc_basename in
13744
f77* | f90* | f95*)
13745
lt_prog_compiler_wl_F77='-Qoption ld ';;
13747
lt_prog_compiler_wl_F77='-Wl,';;
13752
lt_prog_compiler_wl_F77='-Qoption ld '
13753
lt_prog_compiler_pic_F77='-PIC'
13754
lt_prog_compiler_static_F77='-Bstatic'
13757
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13758
lt_prog_compiler_wl_F77='-Wl,'
13759
lt_prog_compiler_pic_F77='-KPIC'
13760
lt_prog_compiler_static_F77='-Bstatic'
13764
if test -d /usr/nec ;then
13765
lt_prog_compiler_pic_F77='-Kconform_pic'
13766
lt_prog_compiler_static_F77='-Bstatic'
13771
lt_prog_compiler_wl_F77='-Wl,'
13772
lt_prog_compiler_can_build_shared_F77=no
13776
lt_prog_compiler_pic_F77='-pic'
13777
lt_prog_compiler_static_F77='-Bstatic'
13781
lt_prog_compiler_can_build_shared_F77=no
13786
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13787
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13790
# Check to make sure the PIC flag actually works.
13792
if test -n "$lt_prog_compiler_pic_F77"; then
13794
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13795
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13796
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13797
echo $ECHO_N "(cached) $ECHO_C" >&6
13799
lt_prog_compiler_pic_works_F77=no
13800
ac_outfile=conftest.$ac_objext
13801
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13802
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13803
# Insert the option either (1) after the last *FLAGS variable, or
13804
# (2) before a word containing "conftest.", or (3) at the end.
13805
# Note that $ac_compile itself does not contain backslashes and begins
13806
# with a dollar sign (not a hyphen), so the echo should work correctly.
13807
# The option is referenced via a variable to avoid confusing sed.
13808
lt_compile=`echo "$ac_compile" | $SED \
13809
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13810
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13811
-e 's:$: $lt_compiler_flag:'`
13812
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13813
(eval "$lt_compile" 2>conftest.err)
13815
cat conftest.err >&5
13816
echo "$as_me:__oline__: \$? = $ac_status" >&5
13817
if (exit $ac_status) && test -s "$ac_outfile"; then
13818
# The compiler can only warn and ignore the option if not recognized
13819
# So say no if there are warnings other than the usual output.
13820
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13821
$SED '/^$/d' conftest.err >conftest.er2
13822
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13823
lt_prog_compiler_pic_works_F77=yes
13829
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13830
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13832
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13833
case $lt_prog_compiler_pic_F77 in
13835
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13838
lt_prog_compiler_pic_F77=
13839
lt_prog_compiler_can_build_shared_F77=no
13844
# For platforms which do not support PIC, -DPIC is meaningless:
13846
lt_prog_compiler_pic_F77=
13849
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13853
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13854
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13855
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13856
echo $ECHO_N "(cached) $ECHO_C" >&6
13858
lt_cv_prog_compiler_c_o_F77=no
13859
$rm -r conftest 2>/dev/null
13863
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13865
lt_compiler_flag="-o out/conftest2.$ac_objext"
13866
# Insert the option either (1) after the last *FLAGS variable, or
13867
# (2) before a word containing "conftest.", or (3) at the end.
13868
# Note that $ac_compile itself does not contain backslashes and begins
13869
# with a dollar sign (not a hyphen), so the echo should work correctly.
13870
lt_compile=`echo "$ac_compile" | $SED \
13871
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13872
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13873
-e 's:$: $lt_compiler_flag:'`
13874
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13875
(eval "$lt_compile" 2>out/conftest.err)
13877
cat out/conftest.err >&5
13878
echo "$as_me:__oline__: \$? = $ac_status" >&5
13879
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13881
# The compiler can only warn and ignore the option if not recognized
13882
# So say no if there are warnings
13883
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13884
$SED '/^$/d' out/conftest.err >out/conftest.er2
13885
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13886
lt_cv_prog_compiler_c_o_F77=yes
13891
# SGI C++ compiler will create directory out/ii_files/ for
13892
# template instantiation
13893
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13894
$rm out/* && rmdir out
13900
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13901
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13904
hard_links="nottested"
13905
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13906
# do not overwrite the value of need_locks provided by the user
13907
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13908
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13911
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13913
ln conftest.a conftest.b 2>&5 || hard_links=no
13914
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13915
echo "$as_me:$LINENO: result: $hard_links" >&5
13916
echo "${ECHO_T}$hard_links" >&6
13917
if test "$hard_links" = no; then
13918
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13919
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13926
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13927
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13930
allow_undefined_flag_F77=
13931
enable_shared_with_static_runtimes_F77=no
13933
archive_expsym_cmds_F77=
13934
old_archive_From_new_cmds_F77=
13935
old_archive_from_expsyms_cmds_F77=
13936
export_dynamic_flag_spec_F77=
13937
whole_archive_flag_spec_F77=
13938
thread_safe_flag_spec_F77=
13939
hardcode_libdir_flag_spec_F77=
13940
hardcode_libdir_flag_spec_ld_F77=
13941
hardcode_libdir_separator_F77=
13942
hardcode_direct_F77=no
13943
hardcode_minus_L_F77=no
13944
hardcode_shlibpath_var_F77=unsupported
13945
link_all_deplibs_F77=unknown
13946
hardcode_automatic_F77=no
13948
module_expsym_cmds_F77=
13949
always_export_symbols_F77=no
13950
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13951
# include_expsyms should be a list of space-separated symbols to be *always*
13952
# included in the symbol list
13953
include_expsyms_F77=
13954
# exclude_expsyms can be an extended regexp of symbols to exclude
13955
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13956
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13957
# as well as any symbol that contains `d'.
13958
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13959
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13960
# platforms (ab)use it in PIC code, but their linkers get confused if
13961
# the symbol is explicitly referenced. Since portable code cannot
13962
# rely on this symbol name, it's probably fine to never include it in
13963
# preloaded symbol tables.
13964
extract_expsyms_cmds=
13965
# Just being paranoid about ensuring that cc_basename is set.
13966
for cc_temp in $compiler""; do
13968
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13969
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13974
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13977
cygwin* | mingw* | pw32*)
13978
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13979
# When not using gcc, we currently assume that we are using
13980
# Microsoft Visual C++.
13981
if test "$GCC" != yes; then
13991
if test "$with_gnu_ld" = yes; then
13992
# If archive_cmds runs LD, not CC, wlarc should be empty
13995
# Set some defaults for GNU ld with shared library support. These
13996
# are reset later if shared libraries are not supported. Putting them
13997
# here allows them to be overridden if necessary.
13998
runpath_var=LD_RUN_PATH
13999
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14000
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14001
# ancient GNU ld didn't support --whole-archive et. al.
14002
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14003
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14005
whole_archive_flag_spec_F77=
14007
supports_anon_versioning=no
14008
case `$LD -v 2>/dev/null` in
14009
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14010
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14011
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14012
*\ 2.11.*) ;; # other 2.11 versions
14013
*) supports_anon_versioning=yes ;;
14016
# See if GNU ld supports shared libraries.
14018
aix3* | aix4* | aix5*)
14019
# On AIX/PPC, the GNU linker is very broken
14020
if test "$host_cpu" != ia64; then
14024
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14025
*** to be unable to reliably create shared libraries on AIX.
14026
*** Therefore, libtool is disabling shared libraries support. If you
14027
*** really care for shared libraries, you may want to modify your PATH
14028
*** so that a non-GNU linker is found, and then restart.
14035
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)'
14036
hardcode_libdir_flag_spec_F77='-L$libdir'
14037
hardcode_minus_L_F77=yes
14039
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14040
# that the semantics of dynamic libraries on AmigaOS, at least up
14041
# to version 4, is to share data among multiple programs linked
14042
# with the same dynamic library. Since this doesn't match the
14043
# behavior of shared libraries on other platforms, we can't use
14049
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14050
allow_undefined_flag_F77=unsupported
14051
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14052
# support --undefined. This deserves some investigation. FIXME
14053
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14059
cygwin* | mingw* | pw32*)
14060
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14061
# as there is no search path for DLLs.
14062
hardcode_libdir_flag_spec_F77='-L$libdir'
14063
allow_undefined_flag_F77=unsupported
14064
always_export_symbols_F77=no
14065
enable_shared_with_static_runtimes_F77=yes
14066
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14068
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14069
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14070
# If the export-symbols file already is a .def file (1st line
14071
# is EXPORTS), use it as is; otherwise, prepend...
14072
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14073
cp $export_symbols $output_objdir/$soname.def;
14075
echo EXPORTS > $output_objdir/$soname.def;
14076
cat $export_symbols >> $output_objdir/$soname.def;
14078
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14085
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14087
case $cc_basename,$host_cpu in
14088
pgcc*) # Portland Group C compiler
14089
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'
14090
tmp_addflag=' $pic_flag'
14092
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14093
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'
14094
tmp_addflag=' $pic_flag -Mnomain' ;;
14095
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14096
tmp_addflag=' -i_dynamic' ;;
14097
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14098
tmp_addflag=' -i_dynamic -nofor_main' ;;
14099
ifc* | ifort*) # Intel Fortran compiler
14100
tmp_addflag=' -nofor_main' ;;
14102
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14104
if test $supports_anon_versioning = yes; then
14105
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14106
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14107
$echo "local: *; };" >> $output_objdir/$libname.ver~
14108
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14110
link_all_deplibs_F77=no
14116
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14117
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14118
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14121
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14122
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14127
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14131
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14132
*** create shared libraries on Solaris systems. Therefore, libtool
14133
*** is disabling shared libraries support. We urge you to upgrade GNU
14134
*** binutils to release 2.9.1 or newer. Another option is to modify
14135
*** your PATH or compiler configuration so that the native linker is
14136
*** used, and then restart.
14139
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14140
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14141
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14148
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14150
hardcode_direct_F77=yes
14151
hardcode_shlibpath_var_F77=no
14155
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14156
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14164
if test "$ld_shlibs_F77" = no; then
14166
hardcode_libdir_flag_spec_F77=
14167
export_dynamic_flag_spec_F77=
14168
whole_archive_flag_spec_F77=
14171
# PORTME fill in a description of your system's linker (not GNU ld)
14174
allow_undefined_flag_F77=unsupported
14175
always_export_symbols_F77=yes
14176
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'
14177
# Note: this linker hardcodes the directories in LIBPATH if there
14178
# are no directories specified by -L.
14179
hardcode_minus_L_F77=yes
14180
if test "$GCC" = yes && test -z "$link_static_flag"; then
14181
# Neither direct hardcoding nor static linking is supported with a
14183
hardcode_direct_F77=unsupported
14188
if test "$host_cpu" = ia64; then
14189
# On IA64, the linker does run time linking by default, so we don't
14190
# have to do anything special.
14191
aix_use_runtimelinking=no
14192
exp_sym_flag='-Bexport'
14195
# If we're using GNU nm, then we don't want the "-C" option.
14196
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14197
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14198
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'
14200
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'
14202
aix_use_runtimelinking=no
14204
# Test if we are trying to use run time linking or normal
14205
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14206
# need to do runtime linking.
14207
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14208
for ld_flag in $LDFLAGS; do
14209
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14210
aix_use_runtimelinking=yes
14216
exp_sym_flag='-bexport'
14217
no_entry_flag='-bnoentry'
14220
# When large executables or shared objects are built, AIX ld can
14221
# have problems creating the table of contents. If linking a library
14222
# or program results in "error TOC overflow" add -mminimal-toc to
14223
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14224
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14226
archive_cmds_F77=''
14227
hardcode_direct_F77=yes
14228
hardcode_libdir_separator_F77=':'
14229
link_all_deplibs_F77=yes
14231
if test "$GCC" = yes; then
14232
case $host_os in aix4.[012]|aix4.[012].*)
14233
# We only want to do this on AIX 4.2 and lower, the check
14234
# below for broken collect2 doesn't work under 4.3+
14235
collect2name=`${CC} -print-prog-name=collect2`
14236
if test -f "$collect2name" && \
14237
strings "$collect2name" | grep resolve_lib_name >/dev/null
14239
# We have reworked collect2
14240
hardcode_direct_F77=yes
14242
# We have old collect2
14243
hardcode_direct_F77=unsupported
14244
# It fails to find uninstalled libraries when the uninstalled
14245
# path is not listed in the libpath. Setting hardcode_minus_L
14246
# to unsupported forces relinking
14247
hardcode_minus_L_F77=yes
14248
hardcode_libdir_flag_spec_F77='-L$libdir'
14249
hardcode_libdir_separator_F77=
14252
shared_flag='-shared'
14253
if test "$aix_use_runtimelinking" = yes; then
14254
shared_flag="$shared_flag "'${wl}-G'
14258
if test "$host_cpu" = ia64; then
14259
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14260
# chokes on -Wl,-G. The following line is correct:
14263
if test "$aix_use_runtimelinking" = yes; then
14264
shared_flag='${wl}-G'
14266
shared_flag='${wl}-bM:SRE'
14271
# It seems that -bexpall does not export symbols beginning with
14272
# underscore (_), so it is better to generate a list of symbols to export.
14273
always_export_symbols_F77=yes
14274
if test "$aix_use_runtimelinking" = yes; then
14275
# Warning - without using the other runtime loading flags (-brtl),
14276
# -berok will link without error, but may produce a broken library.
14277
allow_undefined_flag_F77='-berok'
14278
# Determine the default libpath from the value encoded in an empty executable.
14279
cat >conftest.$ac_ext <<_ACEOF
14284
rm -f conftest.$ac_objext conftest$ac_exeext
14285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14286
(eval $ac_link) 2>conftest.er1
14288
grep -v '^ *+' conftest.er1 >conftest.err
14290
cat conftest.err >&5
14291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292
(exit $ac_status); } &&
14293
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295
(eval $ac_try) 2>&5
14297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298
(exit $ac_status); }; } &&
14299
{ ac_try='test -s conftest$ac_exeext'
14300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301
(eval $ac_try) 2>&5
14303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304
(exit $ac_status); }; }; then
14306
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14308
# Check for a 64-bit object if we didn't find anything.
14309
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; }
14312
echo "$as_me: failed program was:" >&5
14313
sed 's/^/| /' conftest.$ac_ext >&5
14316
rm -f conftest.err conftest.$ac_objext \
14317
conftest$ac_exeext conftest.$ac_ext
14318
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14320
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14321
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"
14323
if test "$host_cpu" = ia64; then
14324
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14325
allow_undefined_flag_F77="-z nodefs"
14326
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"
14328
# Determine the default libpath from the value encoded in an empty executable.
14329
cat >conftest.$ac_ext <<_ACEOF
14334
rm -f conftest.$ac_objext conftest$ac_exeext
14335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14336
(eval $ac_link) 2>conftest.er1
14338
grep -v '^ *+' conftest.er1 >conftest.err
14340
cat conftest.err >&5
14341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342
(exit $ac_status); } &&
14343
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345
(eval $ac_try) 2>&5
14347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348
(exit $ac_status); }; } &&
14349
{ ac_try='test -s conftest$ac_exeext'
14350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351
(eval $ac_try) 2>&5
14353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354
(exit $ac_status); }; }; then
14356
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14358
# Check for a 64-bit object if we didn't find anything.
14359
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; }
14362
echo "$as_me: failed program was:" >&5
14363
sed 's/^/| /' conftest.$ac_ext >&5
14366
rm -f conftest.err conftest.$ac_objext \
14367
conftest$ac_exeext conftest.$ac_ext
14368
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14370
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14371
# Warning - without using the other run time loading flags,
14372
# -berok will link without error, but may produce a broken library.
14373
no_undefined_flag_F77=' ${wl}-bernotok'
14374
allow_undefined_flag_F77=' ${wl}-berok'
14375
# -bexpall does not export symbols beginning with underscore (_)
14376
always_export_symbols_F77=yes
14377
# Exported symbols can be pulled into shared objects from archives
14378
whole_archive_flag_spec_F77=' '
14379
archive_cmds_need_lc_F77=yes
14380
# This is similar to how AIX traditionally builds its shared libraries.
14381
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'
14387
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)'
14388
hardcode_libdir_flag_spec_F77='-L$libdir'
14389
hardcode_minus_L_F77=yes
14390
# see comment about different semantics on the GNU ld section
14395
export_dynamic_flag_spec_F77=-rdynamic
14398
cygwin* | mingw* | pw32*)
14399
# When not using gcc, we currently assume that we are using
14400
# Microsoft Visual C++.
14401
# hardcode_libdir_flag_spec is actually meaningless, as there is
14402
# no search path for DLLs.
14403
hardcode_libdir_flag_spec_F77=' '
14404
allow_undefined_flag_F77=unsupported
14405
# Tell ltmain to make .lib files, not .a files.
14407
# Tell ltmain to make .dll files, not .so files.
14409
# FIXME: Setting linknames here is a bad hack.
14410
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14411
# The linker will automatically build a .lib file if we build a DLL.
14412
old_archive_From_new_cmds_F77='true'
14413
# FIXME: Should let the user specify the lib program.
14414
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14415
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14416
enable_shared_with_static_runtimes_F77=yes
14419
darwin* | rhapsody*)
14421
rhapsody* | darwin1.[012])
14422
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14425
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14426
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14428
case ${MACOSX_DEPLOYMENT_TARGET} in
14430
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14433
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14439
archive_cmds_need_lc_F77=no
14440
hardcode_direct_F77=no
14441
hardcode_automatic_F77=yes
14442
hardcode_shlibpath_var_F77=unsupported
14443
whole_archive_flag_spec_F77=''
14444
link_all_deplibs_F77=yes
14445
if test "$GCC" = yes ; then
14446
output_verbose_link_cmd='echo'
14447
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14448
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14449
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14450
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}'
14451
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}'
14453
case $cc_basename in
14455
output_verbose_link_cmd='echo'
14456
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14457
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14458
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14459
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}'
14460
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}'
14470
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14471
hardcode_libdir_flag_spec_F77='-L$libdir'
14472
hardcode_shlibpath_var_F77=no
14479
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14480
# support. Future versions do this automatically, but an explicit c++rt0.o
14481
# does not break anything, and helps significantly (at the cost of a little
14484
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14485
hardcode_libdir_flag_spec_F77='-R$libdir'
14486
hardcode_direct_F77=yes
14487
hardcode_shlibpath_var_F77=no
14490
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14492
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14493
hardcode_direct_F77=yes
14494
hardcode_minus_L_F77=yes
14495
hardcode_shlibpath_var_F77=no
14498
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14499
freebsd* | kfreebsd*-gnu | dragonfly*)
14500
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14501
hardcode_libdir_flag_spec_F77='-R$libdir'
14502
hardcode_direct_F77=yes
14503
hardcode_shlibpath_var_F77=no
14507
if test "$GCC" = yes; then
14508
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'
14510
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'
14512
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14513
hardcode_libdir_separator_F77=:
14514
hardcode_direct_F77=yes
14516
# hardcode_minus_L: Not really in the search PATH,
14517
# but as the default location of the library.
14518
hardcode_minus_L_F77=yes
14519
export_dynamic_flag_spec_F77='${wl}-E'
14523
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14526
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14529
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14535
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14538
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14542
if test "$with_gnu_ld" = no; then
14545
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14546
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14547
hardcode_libdir_separator_F77=:
14548
hardcode_direct_F77=no
14549
hardcode_shlibpath_var_F77=no
14552
hardcode_libdir_flag_spec_F77='-L$libdir'
14553
hardcode_direct_F77=no
14554
hardcode_shlibpath_var_F77=no
14556
# hardcode_minus_L: Not really in the search PATH,
14557
# but as the default location of the library.
14558
hardcode_minus_L_F77=yes
14561
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14562
hardcode_libdir_separator_F77=:
14563
hardcode_direct_F77=yes
14564
export_dynamic_flag_spec_F77='${wl}-E'
14566
# hardcode_minus_L: Not really in the search PATH,
14567
# but as the default location of the library.
14568
hardcode_minus_L_F77=yes
14574
irix5* | irix6* | nonstopux*)
14575
if test "$GCC" = yes; then
14576
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'
14578
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'
14579
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14581
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14582
hardcode_libdir_separator_F77=:
14583
link_all_deplibs_F77=yes
14586
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14587
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14588
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14590
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14592
hardcode_libdir_flag_spec_F77='-R$libdir'
14593
hardcode_direct_F77=yes
14594
hardcode_shlibpath_var_F77=no
14598
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14599
hardcode_direct_F77=yes
14600
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14601
hardcode_libdir_separator_F77=:
14602
hardcode_shlibpath_var_F77=no
14606
hardcode_direct_F77=yes
14607
hardcode_shlibpath_var_F77=no
14608
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14609
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14610
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14611
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14612
export_dynamic_flag_spec_F77='${wl}-E'
14615
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14616
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14617
hardcode_libdir_flag_spec_F77='-R$libdir'
14620
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14621
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14628
hardcode_libdir_flag_spec_F77='-L$libdir'
14629
hardcode_minus_L_F77=yes
14630
allow_undefined_flag_F77=unsupported
14631
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'
14632
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14636
if test "$GCC" = yes; then
14637
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14638
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'
14640
allow_undefined_flag_F77=' -expect_unresolved \*'
14641
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'
14643
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14644
hardcode_libdir_separator_F77=:
14647
osf4* | osf5*) # as osf3* with the addition of -msym flag
14648
if test "$GCC" = yes; then
14649
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14650
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'
14651
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14653
allow_undefined_flag_F77=' -expect_unresolved \*'
14654
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'
14655
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~
14656
$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'
14658
# Both c and cxx compiler support -rpath directly
14659
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14661
hardcode_libdir_separator_F77=:
14665
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666
hardcode_shlibpath_var_F77=no
14667
export_dynamic_flag_spec_F77='${wl}-Bexport'
14668
runpath_var=LD_RUN_PATH
14669
hardcode_runpath_var=yes
14673
no_undefined_flag_F77=' -z text'
14674
if test "$GCC" = yes; then
14676
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14677
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14678
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14681
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14682
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14683
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14685
hardcode_libdir_flag_spec_F77='-R$libdir'
14686
hardcode_shlibpath_var_F77=no
14688
solaris2.[0-5] | solaris2.[0-5].*) ;;
14690
# The compiler driver will combine linker options so we
14691
# cannot just pass the convience library names through
14692
# without $wl, iff we do not link with $LD.
14693
# Luckily, gcc supports the same syntax we need for Sun Studio.
14694
# Supported since Solaris 2.6 (maybe 2.5.1?)
14697
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14699
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' ;;
14702
link_all_deplibs_F77=yes
14706
if test "x$host_vendor" = xsequent; then
14707
# Use $CC to link under sequent, because it throws in some extra .o
14708
# files that make .init and .fini sections work.
14709
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14711
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14713
hardcode_libdir_flag_spec_F77='-L$libdir'
14714
hardcode_direct_F77=yes
14715
hardcode_minus_L_F77=yes
14716
hardcode_shlibpath_var_F77=no
14720
case $host_vendor in
14722
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14723
hardcode_direct_F77=yes # is this really true???
14726
## LD is ld it makes a PLAMLIB
14727
## CC just makes a GrossModule.
14728
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14729
reload_cmds_F77='$CC -r -o $output$reload_objs'
14730
hardcode_direct_F77=no
14733
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14737
runpath_var='LD_RUN_PATH'
14738
hardcode_shlibpath_var_F77=no
14742
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743
hardcode_shlibpath_var_F77=no
14744
export_dynamic_flag_spec_F77='-Bexport'
14748
if test -d /usr/nec; then
14749
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14750
hardcode_shlibpath_var_F77=no
14751
runpath_var=LD_RUN_PATH
14752
hardcode_runpath_var=yes
14758
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14759
hardcode_direct_F77=yes
14760
hardcode_minus_L_F77=no
14761
hardcode_shlibpath_var_F77=no
14762
hardcode_runpath_var=yes
14763
runpath_var=LD_RUN_PATH
14766
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14767
no_undefined_flag_F77='${wl}-z ${wl}text'
14768
if test "$GCC" = yes; then
14769
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14771
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14773
runpath_var='LD_RUN_PATH'
14774
hardcode_shlibpath_var_F77=no
14778
no_undefined_flag_F77=' -z text'
14779
# $CC -shared without GNU ld will not create a library from C++
14780
# object files and a static libstdc++, better avoid it by now
14781
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14782
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14783
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14784
hardcode_libdir_flag_spec_F77=
14785
hardcode_shlibpath_var_F77=no
14786
runpath_var='LD_RUN_PATH'
14790
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14791
hardcode_libdir_flag_spec_F77='-L$libdir'
14792
hardcode_shlibpath_var_F77=no
14801
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14802
echo "${ECHO_T}$ld_shlibs_F77" >&6
14803
test "$ld_shlibs_F77" = no && can_build_shared=no
14805
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14806
if test "$GCC" = yes; then
14807
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14811
# Do we need to explicitly link libc?
14813
case "x$archive_cmds_need_lc_F77" in
14815
# Assume -lc should be added
14816
archive_cmds_need_lc_F77=yes
14818
if test "$enable_shared" = yes && test "$GCC" = yes; then
14819
case $archive_cmds_F77 in
14821
# FIXME: we may have to deal with multi-command sequences.
14824
# Test whether the compiler implicitly links with -lc since on some
14825
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14826
# to ld, don't add -lc before -lgcc.
14827
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14828
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14830
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14833
(eval $ac_compile) 2>&5
14835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836
(exit $ac_status); } 2>conftest.err; then
14839
libobjs=conftest.$ac_objext
14841
wl=$lt_prog_compiler_wl_F77
14847
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14848
allow_undefined_flag_F77=
14849
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14850
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853
(exit $ac_status); }
14855
archive_cmds_need_lc_F77=no
14857
archive_cmds_need_lc_F77=yes
14859
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14861
cat conftest.err 1>&5
14864
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14865
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14872
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14873
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14874
library_names_spec=
14875
libname_spec='lib$name'
14879
postuninstall_cmds=
14883
shlibpath_overrides_runpath=unknown
14885
dynamic_linker="$host_os ld.so"
14886
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14887
if test "$GCC" = yes; then
14888
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14889
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14890
# if the path contains ";" then we assume it to be the separator
14891
# otherwise default to the standard path separator (i.e. ":") - it is
14892
# assumed that no part of a normal pathname contains ";" but that should
14893
# okay in the real world where ";" in dirpaths is itself problematic.
14894
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14896
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14899
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14901
need_lib_prefix=unknown
14902
hardcode_into_libs=no
14904
# when you set need_version to no, make sure it does not cause -set_version
14905
# flags to be left without arguments
14906
need_version=unknown
14911
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14912
shlibpath_var=LIBPATH
14914
# AIX 3 has no versioning support, so we append a major version to the name.
14915
soname_spec='${libname}${release}${shared_ext}$major'
14922
hardcode_into_libs=yes
14923
if test "$host_cpu" = ia64; then
14924
# AIX 5 supports IA64
14925
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14926
shlibpath_var=LD_LIBRARY_PATH
14928
# With GCC up to 2.95.x, collect2 would create an import file
14929
# for dependence libraries. The import file would start with
14930
# the line `#! .'. This would cause the generated library to
14931
# depend on `.', always an invalid library. This was fixed in
14932
# development snapshots of GCC prior to 3.0.
14934
aix4 | aix4.[01] | aix4.[01].*)
14935
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14937
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14940
can_build_shared=no
14944
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14945
# soname into executable. Probably we can add versioning support to
14946
# collect2, so additional links can be useful in future.
14947
if test "$aix_use_runtimelinking" = yes; then
14948
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14949
# instead of lib<name>.a to let people know that these are not
14950
# typical AIX shared libraries.
14951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953
# We preserve .a as extension for shared libraries through AIX4.2
14954
# and later when we are not doing run time linking.
14955
library_names_spec='${libname}${release}.a $libname.a'
14956
soname_spec='${libname}${release}${shared_ext}$major'
14958
shlibpath_var=LIBPATH
14963
library_names_spec='$libname.ixlibrary $libname.a'
14964
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14965
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'
14969
library_names_spec='${libname}${shared_ext}'
14970
dynamic_linker="$host_os ld.so"
14971
shlibpath_var=LIBRARY_PATH
14977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978
soname_spec='${libname}${release}${shared_ext}$major'
14979
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14980
shlibpath_var=LD_LIBRARY_PATH
14981
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14982
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14983
# the default ld.so.conf also contains /usr/contrib/lib and
14984
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14985
# libtool to hard-code these into programs
14988
cygwin* | mingw* | pw32*)
14989
version_type=windows
14994
case $GCC,$host_os in
14995
yes,cygwin* | yes,mingw* | yes,pw32*)
14996
library_names_spec='$libname.dll.a'
14997
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14998
postinstall_cmds='base_file=`basename \${file}`~
14999
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15000
dldir=$destdir/`dirname \$dlpath`~
15001
test -d \$dldir || mkdir -p \$dldir~
15002
$install_prog $dir/$dlname \$dldir/$dlname~
15003
chmod a+x \$dldir/$dlname'
15004
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15005
dlpath=$dir/\$dldll~
15007
shlibpath_overrides_runpath=yes
15011
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15012
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15013
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15016
# MinGW DLLs use traditional 'lib' prefix
15017
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15018
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15019
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15020
# It is most probably a Windows format PATH printed by
15021
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15022
# path with ; separators, and with drive letters. We can handle the
15023
# drive letters (cygwin fileutils understands them), so leave them,
15024
# especially as we might pass files found there to a mingw objdump,
15025
# which wouldn't understand a cygwinified path. Ahh.
15026
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15028
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15032
# pw32 DLLs use 'pw' prefix rather than 'lib'
15033
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15039
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15042
dynamic_linker='Win32 ld.exe'
15043
# FIXME: first we should search . and the directory the executable is in
15047
darwin* | rhapsody*)
15048
dynamic_linker="$host_os dyld"
15049
version_type=darwin
15052
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15053
soname_spec='${libname}${release}${major}$shared_ext'
15054
shlibpath_overrides_runpath=yes
15055
shlibpath_var=DYLD_LIBRARY_PATH
15056
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15057
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15058
if test "$GCC" = yes; then
15059
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"`
15061
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15063
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15071
soname_spec='${libname}${release}${shared_ext}$major'
15072
shlibpath_var=LD_LIBRARY_PATH
15083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15084
soname_spec='${libname}${release}${shared_ext}$major'
15085
shlibpath_var=LD_LIBRARY_PATH
15086
shlibpath_overrides_runpath=no
15087
hardcode_into_libs=yes
15088
dynamic_linker='GNU ld.so'
15091
freebsd* | dragonfly*)
15092
# DragonFly does not have aout. When/if they implement a new
15093
# versioning mechanism, adjust this.
15094
if test -x /usr/bin/objformat; then
15095
objformat=`/usr/bin/objformat`
15098
freebsd[123]*) objformat=aout ;;
15099
*) objformat=elf ;;
15102
version_type=freebsd-$objformat
15103
case $version_type in
15105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15110
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15114
shlibpath_var=LD_LIBRARY_PATH
15117
shlibpath_overrides_runpath=yes
15119
freebsd3.[01]* | freebsdelf3.[01]*)
15120
shlibpath_overrides_runpath=yes
15121
hardcode_into_libs=yes
15124
shlibpath_overrides_runpath=no
15125
hardcode_into_libs=yes
15134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15135
soname_spec='${libname}${release}${shared_ext}$major'
15136
shlibpath_var=LD_LIBRARY_PATH
15137
hardcode_into_libs=yes
15140
hpux9* | hpux10* | hpux11*)
15141
# Give a soname corresponding to the major version so that dld.sl refuses to
15142
# link against other versions.
15149
hardcode_into_libs=yes
15150
dynamic_linker="$host_os dld.so"
15151
shlibpath_var=LD_LIBRARY_PATH
15152
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154
soname_spec='${libname}${release}${shared_ext}$major'
15155
if test "X$HPUX_IA64_MODE" = X32; then
15156
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15158
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15160
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15164
hardcode_into_libs=yes
15165
dynamic_linker="$host_os dld.sl"
15166
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15167
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169
soname_spec='${libname}${release}${shared_ext}$major'
15170
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15171
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15175
dynamic_linker="$host_os dld.sl"
15176
shlibpath_var=SHLIB_PATH
15177
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179
soname_spec='${libname}${release}${shared_ext}$major'
15182
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15183
postinstall_cmds='chmod 555 $lib'
15186
irix5* | irix6* | nonstopux*)
15188
nonstopux*) version_type=nonstopux ;;
15190
if test "$lt_cv_prog_gnu_ld" = yes; then
15198
soname_spec='${libname}${release}${shared_ext}$major'
15199
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15201
irix5* | nonstopux*)
15202
libsuff= shlibsuff=
15205
case $LD in # libtool.m4 will add one of these switches to LD
15206
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15207
libsuff= shlibsuff= libmagic=32-bit;;
15208
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15209
libsuff=32 shlibsuff=N32 libmagic=N32;;
15210
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15211
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15212
*) libsuff= shlibsuff= libmagic=never-match;;
15216
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15217
shlibpath_overrides_runpath=no
15218
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15219
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15220
hardcode_into_libs=yes
15223
# No shared lib support for Linux oldld, aout, or coff.
15224
linux*oldld* | linux*aout* | linux*coff*)
15228
# This must be Linux ELF.
15233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234
soname_spec='${libname}${release}${shared_ext}$major'
15235
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15236
shlibpath_var=LD_LIBRARY_PATH
15237
shlibpath_overrides_runpath=no
15238
# This implies no fast_install, which is unacceptable.
15239
# Some rework will be needed to allow for fast_install
15240
# before this can be enabled.
15241
hardcode_into_libs=yes
15243
# Append ld.so.conf contents to the search path
15244
if test -f /etc/ld.so.conf; then
15245
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' ' '`
15246
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15249
# We used to test for /lib/ld.so.1 and disable shared libraries on
15250
# powerpc, because MkLinux only supported shared libraries with the
15251
# GNU dynamic linker. Since this was broken with cross compilers,
15252
# most powerpc-linux boxes support dynamic linking these days and
15253
# people can always --disable-shared, the test was removed, and we
15254
# assume the GNU/Linux dynamic linker is in use.
15255
dynamic_linker='GNU/Linux ld.so'
15262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15263
soname_spec='${libname}${release}${shared_ext}$major'
15264
shlibpath_var=LD_LIBRARY_PATH
15265
shlibpath_overrides_runpath=no
15266
hardcode_into_libs=yes
15267
dynamic_linker='NetBSD ld.elf_so'
15274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15275
soname_spec='${libname}${release}${shared_ext}$major'
15276
shlibpath_var=LD_LIBRARY_PATH
15277
shlibpath_overrides_runpath=no
15278
hardcode_into_libs=yes
15279
dynamic_linker='GNU ld.so'
15286
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15288
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15289
dynamic_linker='NetBSD (a.out) ld.so'
15291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292
soname_spec='${libname}${release}${shared_ext}$major'
15293
dynamic_linker='NetBSD ld.elf_so'
15295
shlibpath_var=LD_LIBRARY_PATH
15296
shlibpath_overrides_runpath=yes
15297
hardcode_into_libs=yes
15302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303
shlibpath_var=LD_LIBRARY_PATH
15304
shlibpath_overrides_runpath=yes
15311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312
soname_spec='${libname}${release}${shared_ext}$major'
15313
shlibpath_var=LD_LIBRARY_PATH
15314
shlibpath_overrides_runpath=yes
15320
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15322
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15323
*) need_version=no ;;
15325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15327
shlibpath_var=LD_LIBRARY_PATH
15328
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15330
openbsd2.[89] | openbsd2.[89].*)
15331
shlibpath_overrides_runpath=no
15334
shlibpath_overrides_runpath=yes
15338
shlibpath_overrides_runpath=yes
15343
libname_spec='$name'
15346
library_names_spec='$libname${shared_ext} $libname.a'
15347
dynamic_linker='OS/2 ld.exe'
15348
shlibpath_var=LIBPATH
15351
osf3* | osf4* | osf5*)
15355
soname_spec='${libname}${release}${shared_ext}$major'
15356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357
shlibpath_var=LD_LIBRARY_PATH
15358
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15359
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15364
soname_spec='${libname}${release}${shared_ext}$major'
15365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366
shlibpath_var=LD_LIBRARY_PATH
15373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374
soname_spec='${libname}${release}${shared_ext}$major'
15375
shlibpath_var=LD_LIBRARY_PATH
15376
shlibpath_overrides_runpath=yes
15377
hardcode_into_libs=yes
15378
# ldd complains unless libraries are executable
15379
postinstall_cmds='chmod +x $lib'
15384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15385
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15386
shlibpath_var=LD_LIBRARY_PATH
15387
shlibpath_overrides_runpath=yes
15388
if test "$with_gnu_ld" = yes; then
15394
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397
soname_spec='${libname}${release}${shared_ext}$major'
15398
shlibpath_var=LD_LIBRARY_PATH
15399
case $host_vendor in
15401
shlibpath_overrides_runpath=no
15403
export_dynamic_flag_spec='${wl}-Blargedynsym'
15404
runpath_var=LD_RUN_PATH
15412
shlibpath_overrides_runpath=no
15413
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15419
if test -d /usr/nec ;then
15421
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15422
soname_spec='$libname${shared_ext}.$major'
15423
shlibpath_var=LD_LIBRARY_PATH
15429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430
soname_spec='${libname}${release}${shared_ext}$major'
15431
shlibpath_var=LD_LIBRARY_PATH
15438
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15439
echo "${ECHO_T}$dynamic_linker" >&6
15440
test "$dynamic_linker" = no && can_build_shared=no
15442
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15443
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15444
hardcode_action_F77=
15445
if test -n "$hardcode_libdir_flag_spec_F77" || \
15446
test -n "$runpath_var_F77" || \
15447
test "X$hardcode_automatic_F77" = "Xyes" ; then
15449
# We can hardcode non-existant directories.
15450
if test "$hardcode_direct_F77" != no &&
15451
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15452
# have to relink, otherwise we might link with an installed library
15453
# when we should be linking with a yet-to-be-installed one
15454
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15455
test "$hardcode_minus_L_F77" != no; then
15456
# Linking always hardcodes the temporary library directory.
15457
hardcode_action_F77=relink
15459
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15460
hardcode_action_F77=immediate
15463
# We cannot hardcode anything, or else we can only hardcode existing
15465
hardcode_action_F77=unsupported
15467
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15468
echo "${ECHO_T}$hardcode_action_F77" >&6
15470
if test "$hardcode_action_F77" = relink; then
15471
# Fast installation is not supported
15472
enable_fast_install=no
15473
elif test "$shlibpath_overrides_runpath" = yes ||
15474
test "$enable_shared" = no; then
15475
# Fast installation is not necessary
15476
enable_fast_install=needless
15481
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15482
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15483
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15484
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15485
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15486
echo "$as_me:$LINENO: result: yes" >&5
15487
echo "${ECHO_T}yes" >&6
15489
# FIXME - insert some real tests, host_os isn't really good enough
15492
if test -n "$STRIP" ; then
15493
striplib="$STRIP -x"
15494
echo "$as_me:$LINENO: result: yes" >&5
15495
echo "${ECHO_T}yes" >&6
15497
echo "$as_me:$LINENO: result: no" >&5
15498
echo "${ECHO_T}no" >&6
15502
echo "$as_me:$LINENO: result: no" >&5
15503
echo "${ECHO_T}no" >&6
15510
# The else clause should only fire when bootstrapping the
15511
# libtool distribution, otherwise you forgot to ship ltmain.sh
15512
# with your package, and you will get complaints that there are
15513
# no rules to generate ltmain.sh.
15514
if test -f "$ltmain"; then
15515
# See if we are running on zsh, and set the options which allow our commands through
15516
# without removal of \ escapes.
15517
if test -n "${ZSH_VERSION+set}" ; then
15518
setopt NO_GLOB_SUBST
15520
# Now quote all the things that may contain metacharacters while being
15521
# careful not to overquote the AC_SUBSTed values. We take copies of the
15522
# variables and quote the copies for generation of the libtool script.
15523
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15525
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15526
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15527
deplibs_check_method reload_flag reload_cmds need_locks \
15528
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15529
lt_cv_sys_global_symbol_to_c_name_address \
15530
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15531
old_postinstall_cmds old_postuninstall_cmds \
15535
lt_prog_compiler_wl_F77 \
15536
lt_prog_compiler_pic_F77 \
15537
lt_prog_compiler_static_F77 \
15538
lt_prog_compiler_no_builtin_flag_F77 \
15539
export_dynamic_flag_spec_F77 \
15540
thread_safe_flag_spec_F77 \
15541
whole_archive_flag_spec_F77 \
15542
enable_shared_with_static_runtimes_F77 \
15543
old_archive_cmds_F77 \
15544
old_archive_from_new_cmds_F77 \
15545
predep_objects_F77 \
15546
postdep_objects_F77 \
15549
compiler_lib_search_path_F77 \
15551
archive_expsym_cmds_F77 \
15552
postinstall_cmds_F77 \
15553
postuninstall_cmds_F77 \
15554
old_archive_from_expsyms_cmds_F77 \
15555
allow_undefined_flag_F77 \
15556
no_undefined_flag_F77 \
15557
export_symbols_cmds_F77 \
15558
hardcode_libdir_flag_spec_F77 \
15559
hardcode_libdir_flag_spec_ld_F77 \
15560
hardcode_libdir_separator_F77 \
15561
hardcode_automatic_F77 \
15563
module_expsym_cmds_F77 \
15564
lt_cv_prog_compiler_c_o_F77 \
15565
exclude_expsyms_F77 \
15566
include_expsyms_F77; do
15569
old_archive_cmds_F77 | \
15570
old_archive_from_new_cmds_F77 | \
15571
archive_cmds_F77 | \
15572
archive_expsym_cmds_F77 | \
15573
module_cmds_F77 | \
15574
module_expsym_cmds_F77 | \
15575
old_archive_from_expsyms_cmds_F77 | \
15576
export_symbols_cmds_F77 | \
15577
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15578
postinstall_cmds | postuninstall_cmds | \
15579
old_postinstall_cmds | old_postuninstall_cmds | \
15580
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15581
# Double-quote double-evaled strings.
15582
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15585
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15591
*'\$0 --fallback-echo"')
15592
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15598
cat <<__EOF__ >> "$cfgfile"
15599
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15601
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15603
# Shell to use when invoking shell scripts.
15606
# Whether or not to build shared libraries.
15607
build_libtool_libs=$enable_shared
15609
# Whether or not to build static libraries.
15610
build_old_libs=$enable_static
15612
# Whether or not to add -lc for building shared libraries.
15613
build_libtool_need_lc=$archive_cmds_need_lc_F77
15615
# Whether or not to disallow shared libs when runtime libs are static
15616
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15618
# Whether or not to optimize for fast installation.
15619
fast_install=$enable_fast_install
15622
host_alias=$host_alias
15626
# The build system.
15627
build_alias=$build_alias
15631
# An echo program that does not interpret backslashes.
15636
AR_FLAGS=$lt_AR_FLAGS
15641
# A language-specific compiler.
15642
CC=$lt_compiler_F77
15644
# Is the compiler the GNU C compiler?
15650
# The linker used to build libraries.
15653
# Whether we need hard or soft links.
15656
# A BSD-compatible nm program.
15659
# A symbol stripping program
15662
# Used to examine libraries when file_magic_cmd begins "file"
15663
MAGIC_CMD=$MAGIC_CMD
15665
# Used on cygwin: DLL creation program.
15668
# Used on cygwin: object dumper.
15671
# Used on cygwin: assembler.
15674
# The name of the directory that contains temporary libtool files.
15677
# How to create reloadable object files.
15678
reload_flag=$lt_reload_flag
15679
reload_cmds=$lt_reload_cmds
15681
# How to pass a linker flag through the compiler.
15682
wl=$lt_lt_prog_compiler_wl_F77
15684
# Object file suffix (normally "o").
15685
objext="$ac_objext"
15687
# Old archive suffix (normally "a").
15690
# Shared library suffix (normally ".so").
15691
shrext_cmds='$shrext_cmds'
15693
# Executable file suffix (normally "").
15696
# Additional compiler flags for building library objects.
15697
pic_flag=$lt_lt_prog_compiler_pic_F77
15700
# What is the maximum length of a command?
15701
max_cmd_len=$lt_cv_sys_max_cmd_len
15703
# Does compiler simultaneously support -c and -o options?
15704
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15706
# Must we lock files when doing compilation?
15707
need_locks=$lt_need_locks
15709
# Do we need the lib prefix for modules?
15710
need_lib_prefix=$need_lib_prefix
15712
# Do we need a version for libraries?
15713
need_version=$need_version
15715
# Whether dlopen is supported.
15716
dlopen_support=$enable_dlopen
15718
# Whether dlopen of programs is supported.
15719
dlopen_self=$enable_dlopen_self
15721
# Whether dlopen of statically linked programs is supported.
15722
dlopen_self_static=$enable_dlopen_self_static
15724
# Compiler flag to prevent dynamic linking.
15725
link_static_flag=$lt_lt_prog_compiler_static_F77
15727
# Compiler flag to turn off builtin functions.
15728
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15730
# Compiler flag to allow reflexive dlopens.
15731
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15733
# Compiler flag to generate shared objects directly from archives.
15734
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15736
# Compiler flag to generate thread-safe objects.
15737
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15739
# Library versioning type.
15740
version_type=$version_type
15742
# Format of library name prefix.
15743
libname_spec=$lt_libname_spec
15745
# List of archive names. First name is the real one, the rest are links.
15746
# The last name is the one that the linker finds with -lNAME.
15747
library_names_spec=$lt_library_names_spec
15749
# The coded name of the library, if different from the real name.
15750
soname_spec=$lt_soname_spec
15752
# Commands used to build and install an old-style archive.
15754
old_archive_cmds=$lt_old_archive_cmds_F77
15755
old_postinstall_cmds=$lt_old_postinstall_cmds
15756
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15758
# Create an old-style archive from a shared archive.
15759
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15761
# Create a temporary old-style archive to link instead of a shared archive.
15762
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15764
# Commands used to build and install a shared archive.
15765
archive_cmds=$lt_archive_cmds_F77
15766
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15767
postinstall_cmds=$lt_postinstall_cmds
15768
postuninstall_cmds=$lt_postuninstall_cmds
15770
# Commands used to build a loadable module (assumed same as above if empty)
15771
module_cmds=$lt_module_cmds_F77
15772
module_expsym_cmds=$lt_module_expsym_cmds_F77
15774
# Commands to strip libraries.
15775
old_striplib=$lt_old_striplib
15776
striplib=$lt_striplib
15778
# Dependencies to place before the objects being linked to create a
15780
predep_objects=$lt_predep_objects_F77
15782
# Dependencies to place after the objects being linked to create a
15784
postdep_objects=$lt_postdep_objects_F77
15786
# Dependencies to place before the objects being linked to create a
15788
predeps=$lt_predeps_F77
15790
# Dependencies to place after the objects being linked to create a
15792
postdeps=$lt_postdeps_F77
15794
# The library search path used internally by the compiler when linking
15795
# a shared library.
15796
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15798
# Method to check whether dependent libraries are shared objects.
15799
deplibs_check_method=$lt_deplibs_check_method
15801
# Command to use when deplibs_check_method == file_magic.
15802
file_magic_cmd=$lt_file_magic_cmd
15804
# Flag that allows shared libraries with undefined symbols to be built.
15805
allow_undefined_flag=$lt_allow_undefined_flag_F77
15807
# Flag that forces no undefined symbols.
15808
no_undefined_flag=$lt_no_undefined_flag_F77
15810
# Commands used to finish a libtool library installation in a directory.
15811
finish_cmds=$lt_finish_cmds
15813
# Same as above, but a single script fragment to be evaled but not shown.
15814
finish_eval=$lt_finish_eval
15816
# Take the output of nm and produce a listing of raw symbols and C names.
15817
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15819
# Transform the output of nm in a proper C declaration
15820
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15822
# Transform the output of nm in a C name address pair
15823
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15825
# This is the shared library runtime path variable.
15826
runpath_var=$runpath_var
15828
# This is the shared library path variable.
15829
shlibpath_var=$shlibpath_var
15831
# Is shlibpath searched before the hard-coded library search path?
15832
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15834
# How to hardcode a shared library path into an executable.
15835
hardcode_action=$hardcode_action_F77
15837
# Whether we should hardcode library paths into libraries.
15838
hardcode_into_libs=$hardcode_into_libs
15840
# Flag to hardcode \$libdir into a binary during linking.
15841
# This must work even if \$libdir does not exist.
15842
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15844
# If ld is used when linking, flag to hardcode \$libdir into
15845
# a binary during linking. This must work even if \$libdir does
15847
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15849
# Whether we need a single -rpath flag with a separated argument.
15850
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15852
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15853
# resulting binary.
15854
hardcode_direct=$hardcode_direct_F77
15856
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15857
# resulting binary.
15858
hardcode_minus_L=$hardcode_minus_L_F77
15860
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15861
# the resulting binary.
15862
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15864
# Set to yes if building a shared library automatically hardcodes DIR into the library
15865
# and all subsequent libraries and executables linked against it.
15866
hardcode_automatic=$hardcode_automatic_F77
15868
# Variables whose values should be saved in libtool wrapper scripts and
15869
# restored at relink time.
15870
variables_saved_for_relink="$variables_saved_for_relink"
15872
# Whether libtool must link a program against all its dependency libraries.
15873
link_all_deplibs=$link_all_deplibs_F77
15875
# Compile-time system search path for libraries
15876
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15878
# Run-time system search path for libraries
15879
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15881
# Fix the shell variable \$srcfile for the compiler.
15882
fix_srcfile_path="$fix_srcfile_path_F77"
15884
# Set to yes if exported symbols are required.
15885
always_export_symbols=$always_export_symbols_F77
15887
# The commands to list exported symbols.
15888
export_symbols_cmds=$lt_export_symbols_cmds_F77
15890
# The commands to extract the exported symbol list from a shared archive.
15891
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15893
# Symbols that should not be listed in the preloaded symbols.
15894
exclude_expsyms=$lt_exclude_expsyms_F77
15896
# Symbols that must always be exported.
15897
include_expsyms=$lt_include_expsyms_F77
15899
# ### END LIBTOOL TAG CONFIG: $tagname
15905
# If there is no Makefile yet, we rely on a make rule to execute
15906
# `config.status --recheck' to rerun these tests and create the
15907
# libtool script then.
15908
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15909
if test -f "$ltmain_in"; then
15910
test -f Makefile && make "$ltmain"
15916
ac_cpp='$CPP $CPPFLAGS'
15917
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15918
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15919
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15929
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15933
# Source file extension for Java test sources.
15936
# Object file extension for compiled Java test sources.
15940
# Code to be used in simple compile tests
15941
lt_simple_compile_test_code="class foo {}\n"
15943
# Code to be used in simple link tests
15944
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15946
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15948
# If no C compiler was specified, use CC.
15951
# Allow CC to be a program name with arguments.
15955
# save warnings/boilerplate of simple test code
15956
ac_outfile=conftest.$ac_objext
15957
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15958
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15959
_lt_compiler_boilerplate=`cat conftest.err`
15962
ac_outfile=conftest.$ac_objext
15963
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15964
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15965
_lt_linker_boilerplate=`cat conftest.err`
15969
# Allow CC to be a program name with arguments.
15974
for cc_temp in $compiler""; do
15976
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15977
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15982
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15985
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15986
archive_cmds_need_lc_GCJ=no
15988
old_archive_cmds_GCJ=$old_archive_cmds
15991
## There is no encapsulation within the following macros, do not change
15992
## the running order or otherwise move them around unless you know exactly
15993
## what you are doing...
15995
lt_prog_compiler_no_builtin_flag_GCJ=
15997
if test "$GCC" = yes; then
15998
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16001
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16002
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16003
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16004
echo $ECHO_N "(cached) $ECHO_C" >&6
16006
lt_cv_prog_compiler_rtti_exceptions=no
16007
ac_outfile=conftest.$ac_objext
16008
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16009
lt_compiler_flag="-fno-rtti -fno-exceptions"
16010
# Insert the option either (1) after the last *FLAGS variable, or
16011
# (2) before a word containing "conftest.", or (3) at the end.
16012
# Note that $ac_compile itself does not contain backslashes and begins
16013
# with a dollar sign (not a hyphen), so the echo should work correctly.
16014
# The option is referenced via a variable to avoid confusing sed.
16015
lt_compile=`echo "$ac_compile" | $SED \
16016
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16017
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16018
-e 's:$: $lt_compiler_flag:'`
16019
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16020
(eval "$lt_compile" 2>conftest.err)
16022
cat conftest.err >&5
16023
echo "$as_me:__oline__: \$? = $ac_status" >&5
16024
if (exit $ac_status) && test -s "$ac_outfile"; then
16025
# The compiler can only warn and ignore the option if not recognized
16026
# So say no if there are warnings other than the usual output.
16027
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16028
$SED '/^$/d' conftest.err >conftest.er2
16029
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16030
lt_cv_prog_compiler_rtti_exceptions=yes
16036
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16037
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16039
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16040
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16047
lt_prog_compiler_wl_GCJ=
16048
lt_prog_compiler_pic_GCJ=
16049
lt_prog_compiler_static_GCJ=
16051
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16052
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16054
if test "$GCC" = yes; then
16055
lt_prog_compiler_wl_GCJ='-Wl,'
16056
lt_prog_compiler_static_GCJ='-static'
16060
# All AIX code is PIC.
16061
if test "$host_cpu" = ia64; then
16062
# AIX 5 now supports IA64 processor
16063
lt_prog_compiler_static_GCJ='-Bstatic'
16068
# FIXME: we need at least 68020 code to build shared libraries, but
16069
# adding the `-m68020' flag to GCC prevents building anything better,
16071
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16074
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16075
# PIC is the default for these OSes.
16078
mingw* | pw32* | os2*)
16079
# This hack is so that the source file can tell whether it is being
16080
# built for inclusion in a dll (and should export symbols for example).
16081
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16084
darwin* | rhapsody*)
16085
# PIC is the default on this platform
16086
# Common symbols not allowed in MH_DYLIB files
16087
lt_prog_compiler_pic_GCJ='-fno-common'
16091
# Just because we use GCC doesn't mean we suddenly get shared libraries
16092
# on systems that don't support them.
16093
lt_prog_compiler_can_build_shared_GCJ=no
16098
if test -d /usr/nec; then
16099
lt_prog_compiler_pic_GCJ=-Kconform_pic
16104
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16105
# not for PA HP-UX.
16111
lt_prog_compiler_pic_GCJ='-fPIC'
16117
lt_prog_compiler_pic_GCJ='-fPIC'
16121
# PORTME Check for flag to pass linker flags through the system compiler.
16124
lt_prog_compiler_wl_GCJ='-Wl,'
16125
if test "$host_cpu" = ia64; then
16126
# AIX 5 now supports IA64 processor
16127
lt_prog_compiler_static_GCJ='-Bstatic'
16129
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16133
# PIC is the default on this platform
16134
# Common symbols not allowed in MH_DYLIB files
16135
case $cc_basename in
16137
lt_prog_compiler_pic_GCJ='-qnocommon'
16138
lt_prog_compiler_wl_GCJ='-Wl,'
16143
mingw* | pw32* | os2*)
16144
# This hack is so that the source file can tell whether it is being
16145
# built for inclusion in a dll (and should export symbols for example).
16146
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16149
hpux9* | hpux10* | hpux11*)
16150
lt_prog_compiler_wl_GCJ='-Wl,'
16151
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16152
# not for PA HP-UX.
16158
lt_prog_compiler_pic_GCJ='+Z'
16161
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16162
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16165
irix5* | irix6* | nonstopux*)
16166
lt_prog_compiler_wl_GCJ='-Wl,'
16167
# PIC (with -KPIC) is the default.
16168
lt_prog_compiler_static_GCJ='-non_shared'
16172
lt_prog_compiler_pic_GCJ='-KPIC'
16173
lt_prog_compiler_static_GCJ='-Bstatic'
16177
case $cc_basename in
16179
lt_prog_compiler_wl_GCJ='-Wl,'
16180
lt_prog_compiler_pic_GCJ='-KPIC'
16181
lt_prog_compiler_static_GCJ='-static'
16183
pgcc* | pgf77* | pgf90* | pgf95*)
16184
# Portland Group compilers (*not* the Pentium gcc compiler,
16185
# which looks to be a dead project)
16186
lt_prog_compiler_wl_GCJ='-Wl,'
16187
lt_prog_compiler_pic_GCJ='-fpic'
16188
lt_prog_compiler_static_GCJ='-Bstatic'
16191
lt_prog_compiler_wl_GCJ='-Wl,'
16192
# All Alpha code is PIC.
16193
lt_prog_compiler_static_GCJ='-non_shared'
16198
osf3* | osf4* | osf5*)
16199
lt_prog_compiler_wl_GCJ='-Wl,'
16200
# All OSF/1 code is PIC.
16201
lt_prog_compiler_static_GCJ='-non_shared'
16205
lt_prog_compiler_pic_GCJ='-Kpic'
16206
lt_prog_compiler_static_GCJ='-dn'
16210
lt_prog_compiler_pic_GCJ='-KPIC'
16211
lt_prog_compiler_static_GCJ='-Bstatic'
16212
case $cc_basename in
16213
f77* | f90* | f95*)
16214
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16216
lt_prog_compiler_wl_GCJ='-Wl,';;
16221
lt_prog_compiler_wl_GCJ='-Qoption ld '
16222
lt_prog_compiler_pic_GCJ='-PIC'
16223
lt_prog_compiler_static_GCJ='-Bstatic'
16226
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16227
lt_prog_compiler_wl_GCJ='-Wl,'
16228
lt_prog_compiler_pic_GCJ='-KPIC'
16229
lt_prog_compiler_static_GCJ='-Bstatic'
16233
if test -d /usr/nec ;then
16234
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16235
lt_prog_compiler_static_GCJ='-Bstatic'
16240
lt_prog_compiler_wl_GCJ='-Wl,'
16241
lt_prog_compiler_can_build_shared_GCJ=no
16245
lt_prog_compiler_pic_GCJ='-pic'
16246
lt_prog_compiler_static_GCJ='-Bstatic'
16250
lt_prog_compiler_can_build_shared_GCJ=no
16255
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16256
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16259
# Check to make sure the PIC flag actually works.
16261
if test -n "$lt_prog_compiler_pic_GCJ"; then
16263
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16264
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16265
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16266
echo $ECHO_N "(cached) $ECHO_C" >&6
16268
lt_prog_compiler_pic_works_GCJ=no
16269
ac_outfile=conftest.$ac_objext
16270
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16271
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16272
# Insert the option either (1) after the last *FLAGS variable, or
16273
# (2) before a word containing "conftest.", or (3) at the end.
16274
# Note that $ac_compile itself does not contain backslashes and begins
16275
# with a dollar sign (not a hyphen), so the echo should work correctly.
16276
# The option is referenced via a variable to avoid confusing sed.
16277
lt_compile=`echo "$ac_compile" | $SED \
16278
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16279
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16280
-e 's:$: $lt_compiler_flag:'`
16281
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16282
(eval "$lt_compile" 2>conftest.err)
16284
cat conftest.err >&5
16285
echo "$as_me:__oline__: \$? = $ac_status" >&5
16286
if (exit $ac_status) && test -s "$ac_outfile"; then
16287
# The compiler can only warn and ignore the option if not recognized
16288
# So say no if there are warnings other than the usual output.
16289
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16290
$SED '/^$/d' conftest.err >conftest.er2
16291
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16292
lt_prog_compiler_pic_works_GCJ=yes
16298
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16299
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16301
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16302
case $lt_prog_compiler_pic_GCJ in
16304
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16307
lt_prog_compiler_pic_GCJ=
16308
lt_prog_compiler_can_build_shared_GCJ=no
16313
# For platforms which do not support PIC, -DPIC is meaningless:
16315
lt_prog_compiler_pic_GCJ=
16318
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16322
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16323
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16324
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16325
echo $ECHO_N "(cached) $ECHO_C" >&6
16327
lt_cv_prog_compiler_c_o_GCJ=no
16328
$rm -r conftest 2>/dev/null
16332
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16334
lt_compiler_flag="-o out/conftest2.$ac_objext"
16335
# Insert the option either (1) after the last *FLAGS variable, or
16336
# (2) before a word containing "conftest.", or (3) at the end.
16337
# Note that $ac_compile itself does not contain backslashes and begins
16338
# with a dollar sign (not a hyphen), so the echo should work correctly.
16339
lt_compile=`echo "$ac_compile" | $SED \
16340
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16341
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16342
-e 's:$: $lt_compiler_flag:'`
16343
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16344
(eval "$lt_compile" 2>out/conftest.err)
16346
cat out/conftest.err >&5
16347
echo "$as_me:__oline__: \$? = $ac_status" >&5
16348
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16350
# The compiler can only warn and ignore the option if not recognized
16351
# So say no if there are warnings
16352
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16353
$SED '/^$/d' out/conftest.err >out/conftest.er2
16354
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16355
lt_cv_prog_compiler_c_o_GCJ=yes
16360
# SGI C++ compiler will create directory out/ii_files/ for
16361
# template instantiation
16362
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16363
$rm out/* && rmdir out
16369
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16370
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16373
hard_links="nottested"
16374
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16375
# do not overwrite the value of need_locks provided by the user
16376
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16377
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16380
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16382
ln conftest.a conftest.b 2>&5 || hard_links=no
16383
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16384
echo "$as_me:$LINENO: result: $hard_links" >&5
16385
echo "${ECHO_T}$hard_links" >&6
16386
if test "$hard_links" = no; then
16387
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16388
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16395
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16396
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16399
allow_undefined_flag_GCJ=
16400
enable_shared_with_static_runtimes_GCJ=no
16402
archive_expsym_cmds_GCJ=
16403
old_archive_From_new_cmds_GCJ=
16404
old_archive_from_expsyms_cmds_GCJ=
16405
export_dynamic_flag_spec_GCJ=
16406
whole_archive_flag_spec_GCJ=
16407
thread_safe_flag_spec_GCJ=
16408
hardcode_libdir_flag_spec_GCJ=
16409
hardcode_libdir_flag_spec_ld_GCJ=
16410
hardcode_libdir_separator_GCJ=
16411
hardcode_direct_GCJ=no
16412
hardcode_minus_L_GCJ=no
16413
hardcode_shlibpath_var_GCJ=unsupported
16414
link_all_deplibs_GCJ=unknown
16415
hardcode_automatic_GCJ=no
16417
module_expsym_cmds_GCJ=
16418
always_export_symbols_GCJ=no
16419
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16420
# include_expsyms should be a list of space-separated symbols to be *always*
16421
# included in the symbol list
16422
include_expsyms_GCJ=
16423
# exclude_expsyms can be an extended regexp of symbols to exclude
16424
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16425
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16426
# as well as any symbol that contains `d'.
16427
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16428
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16429
# platforms (ab)use it in PIC code, but their linkers get confused if
16430
# the symbol is explicitly referenced. Since portable code cannot
16431
# rely on this symbol name, it's probably fine to never include it in
16432
# preloaded symbol tables.
16433
extract_expsyms_cmds=
16434
# Just being paranoid about ensuring that cc_basename is set.
16435
for cc_temp in $compiler""; do
16437
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16438
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16443
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16446
cygwin* | mingw* | pw32*)
16447
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16448
# When not using gcc, we currently assume that we are using
16449
# Microsoft Visual C++.
16450
if test "$GCC" != yes; then
16460
if test "$with_gnu_ld" = yes; then
16461
# If archive_cmds runs LD, not CC, wlarc should be empty
16464
# Set some defaults for GNU ld with shared library support. These
16465
# are reset later if shared libraries are not supported. Putting them
16466
# here allows them to be overridden if necessary.
16467
runpath_var=LD_RUN_PATH
16468
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16469
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16470
# ancient GNU ld didn't support --whole-archive et. al.
16471
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16472
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16474
whole_archive_flag_spec_GCJ=
16476
supports_anon_versioning=no
16477
case `$LD -v 2>/dev/null` in
16478
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16479
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16480
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16481
*\ 2.11.*) ;; # other 2.11 versions
16482
*) supports_anon_versioning=yes ;;
16485
# See if GNU ld supports shared libraries.
16487
aix3* | aix4* | aix5*)
16488
# On AIX/PPC, the GNU linker is very broken
16489
if test "$host_cpu" != ia64; then
16493
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16494
*** to be unable to reliably create shared libraries on AIX.
16495
*** Therefore, libtool is disabling shared libraries support. If you
16496
*** really care for shared libraries, you may want to modify your PATH
16497
*** so that a non-GNU linker is found, and then restart.
16504
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)'
16505
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16506
hardcode_minus_L_GCJ=yes
16508
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16509
# that the semantics of dynamic libraries on AmigaOS, at least up
16510
# to version 4, is to share data among multiple programs linked
16511
# with the same dynamic library. Since this doesn't match the
16512
# behavior of shared libraries on other platforms, we can't use
16518
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519
allow_undefined_flag_GCJ=unsupported
16520
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16521
# support --undefined. This deserves some investigation. FIXME
16522
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16528
cygwin* | mingw* | pw32*)
16529
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16530
# as there is no search path for DLLs.
16531
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532
allow_undefined_flag_GCJ=unsupported
16533
always_export_symbols_GCJ=no
16534
enable_shared_with_static_runtimes_GCJ=yes
16535
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16537
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16538
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16539
# If the export-symbols file already is a .def file (1st line
16540
# is EXPORTS), use it as is; otherwise, prepend...
16541
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16542
cp $export_symbols $output_objdir/$soname.def;
16544
echo EXPORTS > $output_objdir/$soname.def;
16545
cat $export_symbols >> $output_objdir/$soname.def;
16547
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16554
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16556
case $cc_basename,$host_cpu in
16557
pgcc*) # Portland Group C compiler
16558
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'
16559
tmp_addflag=' $pic_flag'
16561
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16562
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'
16563
tmp_addflag=' $pic_flag -Mnomain' ;;
16564
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16565
tmp_addflag=' -i_dynamic' ;;
16566
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16567
tmp_addflag=' -i_dynamic -nofor_main' ;;
16568
ifc* | ifort*) # Intel Fortran compiler
16569
tmp_addflag=' -nofor_main' ;;
16571
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16573
if test $supports_anon_versioning = yes; then
16574
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16575
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16576
$echo "local: *; };" >> $output_objdir/$libname.ver~
16577
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16579
link_all_deplibs_GCJ=no
16585
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16586
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16587
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16590
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16591
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16596
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16600
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16601
*** create shared libraries on Solaris systems. Therefore, libtool
16602
*** is disabling shared libraries support. We urge you to upgrade GNU
16603
*** binutils to release 2.9.1 or newer. Another option is to modify
16604
*** your PATH or compiler configuration so that the native linker is
16605
*** used, and then restart.
16608
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16609
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16610
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16617
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16619
hardcode_direct_GCJ=yes
16620
hardcode_shlibpath_var_GCJ=no
16624
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16625
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16626
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16633
if test "$ld_shlibs_GCJ" = no; then
16635
hardcode_libdir_flag_spec_GCJ=
16636
export_dynamic_flag_spec_GCJ=
16637
whole_archive_flag_spec_GCJ=
16640
# PORTME fill in a description of your system's linker (not GNU ld)
16643
allow_undefined_flag_GCJ=unsupported
16644
always_export_symbols_GCJ=yes
16645
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'
16646
# Note: this linker hardcodes the directories in LIBPATH if there
16647
# are no directories specified by -L.
16648
hardcode_minus_L_GCJ=yes
16649
if test "$GCC" = yes && test -z "$link_static_flag"; then
16650
# Neither direct hardcoding nor static linking is supported with a
16652
hardcode_direct_GCJ=unsupported
16657
if test "$host_cpu" = ia64; then
16658
# On IA64, the linker does run time linking by default, so we don't
16659
# have to do anything special.
16660
aix_use_runtimelinking=no
16661
exp_sym_flag='-Bexport'
16664
# If we're using GNU nm, then we don't want the "-C" option.
16665
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16666
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16667
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'
16669
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'
16671
aix_use_runtimelinking=no
16673
# Test if we are trying to use run time linking or normal
16674
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16675
# need to do runtime linking.
16676
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16677
for ld_flag in $LDFLAGS; do
16678
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16679
aix_use_runtimelinking=yes
16685
exp_sym_flag='-bexport'
16686
no_entry_flag='-bnoentry'
16689
# When large executables or shared objects are built, AIX ld can
16690
# have problems creating the table of contents. If linking a library
16691
# or program results in "error TOC overflow" add -mminimal-toc to
16692
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16693
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16695
archive_cmds_GCJ=''
16696
hardcode_direct_GCJ=yes
16697
hardcode_libdir_separator_GCJ=':'
16698
link_all_deplibs_GCJ=yes
16700
if test "$GCC" = yes; then
16701
case $host_os in aix4.[012]|aix4.[012].*)
16702
# We only want to do this on AIX 4.2 and lower, the check
16703
# below for broken collect2 doesn't work under 4.3+
16704
collect2name=`${CC} -print-prog-name=collect2`
16705
if test -f "$collect2name" && \
16706
strings "$collect2name" | grep resolve_lib_name >/dev/null
16708
# We have reworked collect2
16709
hardcode_direct_GCJ=yes
16711
# We have old collect2
16712
hardcode_direct_GCJ=unsupported
16713
# It fails to find uninstalled libraries when the uninstalled
16714
# path is not listed in the libpath. Setting hardcode_minus_L
16715
# to unsupported forces relinking
16716
hardcode_minus_L_GCJ=yes
16717
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16718
hardcode_libdir_separator_GCJ=
16721
shared_flag='-shared'
16722
if test "$aix_use_runtimelinking" = yes; then
16723
shared_flag="$shared_flag "'${wl}-G'
16727
if test "$host_cpu" = ia64; then
16728
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16729
# chokes on -Wl,-G. The following line is correct:
16732
if test "$aix_use_runtimelinking" = yes; then
16733
shared_flag='${wl}-G'
16735
shared_flag='${wl}-bM:SRE'
16740
# It seems that -bexpall does not export symbols beginning with
16741
# underscore (_), so it is better to generate a list of symbols to export.
16742
always_export_symbols_GCJ=yes
16743
if test "$aix_use_runtimelinking" = yes; then
16744
# Warning - without using the other runtime loading flags (-brtl),
16745
# -berok will link without error, but may produce a broken library.
16746
allow_undefined_flag_GCJ='-berok'
16747
# Determine the default libpath from the value encoded in an empty executable.
16748
cat >conftest.$ac_ext <<_ACEOF
16751
cat confdefs.h >>conftest.$ac_ext
16752
cat >>conftest.$ac_ext <<_ACEOF
16753
/* end confdefs.h. */
16763
rm -f conftest.$ac_objext conftest$ac_exeext
16764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765
(eval $ac_link) 2>conftest.er1
16767
grep -v '^ *+' conftest.er1 >conftest.err
16769
cat conftest.err >&5
16770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771
(exit $ac_status); } &&
16772
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774
(eval $ac_try) 2>&5
16776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777
(exit $ac_status); }; } &&
16778
{ ac_try='test -s conftest$ac_exeext'
16779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780
(eval $ac_try) 2>&5
16782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783
(exit $ac_status); }; }; then
16785
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16787
# Check for a 64-bit object if we didn't find anything.
16788
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; }
16791
echo "$as_me: failed program was:" >&5
16792
sed 's/^/| /' conftest.$ac_ext >&5
16795
rm -f conftest.err conftest.$ac_objext \
16796
conftest$ac_exeext conftest.$ac_ext
16797
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16799
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16800
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"
16802
if test "$host_cpu" = ia64; then
16803
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16804
allow_undefined_flag_GCJ="-z nodefs"
16805
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"
16807
# Determine the default libpath from the value encoded in an empty executable.
16808
cat >conftest.$ac_ext <<_ACEOF
16811
cat confdefs.h >>conftest.$ac_ext
16812
cat >>conftest.$ac_ext <<_ACEOF
16813
/* end confdefs.h. */
16823
rm -f conftest.$ac_objext conftest$ac_exeext
16824
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16825
(eval $ac_link) 2>conftest.er1
16827
grep -v '^ *+' conftest.er1 >conftest.err
16829
cat conftest.err >&5
16830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831
(exit $ac_status); } &&
16832
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834
(eval $ac_try) 2>&5
16836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837
(exit $ac_status); }; } &&
16838
{ ac_try='test -s conftest$ac_exeext'
16839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840
(eval $ac_try) 2>&5
16842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843
(exit $ac_status); }; }; then
16845
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16847
# Check for a 64-bit object if we didn't find anything.
16848
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; }
16851
echo "$as_me: failed program was:" >&5
16852
sed 's/^/| /' conftest.$ac_ext >&5
16855
rm -f conftest.err conftest.$ac_objext \
16856
conftest$ac_exeext conftest.$ac_ext
16857
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16859
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16860
# Warning - without using the other run time loading flags,
16861
# -berok will link without error, but may produce a broken library.
16862
no_undefined_flag_GCJ=' ${wl}-bernotok'
16863
allow_undefined_flag_GCJ=' ${wl}-berok'
16864
# -bexpall does not export symbols beginning with underscore (_)
16865
always_export_symbols_GCJ=yes
16866
# Exported symbols can be pulled into shared objects from archives
16867
whole_archive_flag_spec_GCJ=' '
16868
archive_cmds_need_lc_GCJ=yes
16869
# This is similar to how AIX traditionally builds its shared libraries.
16870
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'
16876
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)'
16877
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878
hardcode_minus_L_GCJ=yes
16879
# see comment about different semantics on the GNU ld section
16884
export_dynamic_flag_spec_GCJ=-rdynamic
16887
cygwin* | mingw* | pw32*)
16888
# When not using gcc, we currently assume that we are using
16889
# Microsoft Visual C++.
16890
# hardcode_libdir_flag_spec is actually meaningless, as there is
16891
# no search path for DLLs.
16892
hardcode_libdir_flag_spec_GCJ=' '
16893
allow_undefined_flag_GCJ=unsupported
16894
# Tell ltmain to make .lib files, not .a files.
16896
# Tell ltmain to make .dll files, not .so files.
16898
# FIXME: Setting linknames here is a bad hack.
16899
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16900
# The linker will automatically build a .lib file if we build a DLL.
16901
old_archive_From_new_cmds_GCJ='true'
16902
# FIXME: Should let the user specify the lib program.
16903
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16904
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16905
enable_shared_with_static_runtimes_GCJ=yes
16908
darwin* | rhapsody*)
16910
rhapsody* | darwin1.[012])
16911
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16914
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16915
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16917
case ${MACOSX_DEPLOYMENT_TARGET} in
16919
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16922
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16928
archive_cmds_need_lc_GCJ=no
16929
hardcode_direct_GCJ=no
16930
hardcode_automatic_GCJ=yes
16931
hardcode_shlibpath_var_GCJ=unsupported
16932
whole_archive_flag_spec_GCJ=''
16933
link_all_deplibs_GCJ=yes
16934
if test "$GCC" = yes ; then
16935
output_verbose_link_cmd='echo'
16936
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16937
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16938
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16939
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}'
16940
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}'
16942
case $cc_basename in
16944
output_verbose_link_cmd='echo'
16945
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16946
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16947
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16948
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}'
16949
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}'
16959
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16960
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961
hardcode_shlibpath_var_GCJ=no
16968
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16969
# support. Future versions do this automatically, but an explicit c++rt0.o
16970
# does not break anything, and helps significantly (at the cost of a little
16973
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16974
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16975
hardcode_direct_GCJ=yes
16976
hardcode_shlibpath_var_GCJ=no
16979
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16981
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16982
hardcode_direct_GCJ=yes
16983
hardcode_minus_L_GCJ=yes
16984
hardcode_shlibpath_var_GCJ=no
16987
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16988
freebsd* | kfreebsd*-gnu | dragonfly*)
16989
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16990
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16991
hardcode_direct_GCJ=yes
16992
hardcode_shlibpath_var_GCJ=no
16996
if test "$GCC" = yes; then
16997
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'
16999
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'
17001
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17002
hardcode_libdir_separator_GCJ=:
17003
hardcode_direct_GCJ=yes
17005
# hardcode_minus_L: Not really in the search PATH,
17006
# but as the default location of the library.
17007
hardcode_minus_L_GCJ=yes
17008
export_dynamic_flag_spec_GCJ='${wl}-E'
17012
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17015
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17018
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17024
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17027
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17031
if test "$with_gnu_ld" = no; then
17034
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17035
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17036
hardcode_libdir_separator_GCJ=:
17037
hardcode_direct_GCJ=no
17038
hardcode_shlibpath_var_GCJ=no
17041
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042
hardcode_direct_GCJ=no
17043
hardcode_shlibpath_var_GCJ=no
17045
# hardcode_minus_L: Not really in the search PATH,
17046
# but as the default location of the library.
17047
hardcode_minus_L_GCJ=yes
17050
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17051
hardcode_libdir_separator_GCJ=:
17052
hardcode_direct_GCJ=yes
17053
export_dynamic_flag_spec_GCJ='${wl}-E'
17055
# hardcode_minus_L: Not really in the search PATH,
17056
# but as the default location of the library.
17057
hardcode_minus_L_GCJ=yes
17063
irix5* | irix6* | nonstopux*)
17064
if test "$GCC" = yes; then
17065
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'
17067
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'
17068
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17070
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17071
hardcode_libdir_separator_GCJ=:
17072
link_all_deplibs_GCJ=yes
17075
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17076
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17077
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17079
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17081
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17082
hardcode_direct_GCJ=yes
17083
hardcode_shlibpath_var_GCJ=no
17087
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17088
hardcode_direct_GCJ=yes
17089
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17090
hardcode_libdir_separator_GCJ=:
17091
hardcode_shlibpath_var_GCJ=no
17095
hardcode_direct_GCJ=yes
17096
hardcode_shlibpath_var_GCJ=no
17097
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17098
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17099
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17100
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17101
export_dynamic_flag_spec_GCJ='${wl}-E'
17104
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17105
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17106
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17109
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17110
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17117
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17118
hardcode_minus_L_GCJ=yes
17119
allow_undefined_flag_GCJ=unsupported
17120
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'
17121
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17129
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17130
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'
17132
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17133
hardcode_libdir_separator_GCJ=:
17136
osf4* | osf5*) # as osf3* with the addition of -msym flag
17137
if test "$GCC" = yes; then
17138
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17139
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'
17140
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17142
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17143
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'
17144
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~
17145
$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'
17147
# Both c and cxx compiler support -rpath directly
17148
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17150
hardcode_libdir_separator_GCJ=:
17154
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17155
hardcode_shlibpath_var_GCJ=no
17156
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17157
runpath_var=LD_RUN_PATH
17158
hardcode_runpath_var=yes
17162
no_undefined_flag_GCJ=' -z text'
17163
if test "$GCC" = yes; then
17165
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17166
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17167
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17170
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17172
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17174
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17175
hardcode_shlibpath_var_GCJ=no
17177
solaris2.[0-5] | solaris2.[0-5].*) ;;
17179
# The compiler driver will combine linker options so we
17180
# cannot just pass the convience library names through
17181
# without $wl, iff we do not link with $LD.
17182
# Luckily, gcc supports the same syntax we need for Sun Studio.
17183
# Supported since Solaris 2.6 (maybe 2.5.1?)
17186
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17188
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' ;;
17191
link_all_deplibs_GCJ=yes
17195
if test "x$host_vendor" = xsequent; then
17196
# Use $CC to link under sequent, because it throws in some extra .o
17197
# files that make .init and .fini sections work.
17198
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17200
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17202
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17203
hardcode_direct_GCJ=yes
17204
hardcode_minus_L_GCJ=yes
17205
hardcode_shlibpath_var_GCJ=no
17209
case $host_vendor in
17211
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17212
hardcode_direct_GCJ=yes # is this really true???
17215
## LD is ld it makes a PLAMLIB
17216
## CC just makes a GrossModule.
17217
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17218
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17219
hardcode_direct_GCJ=no
17222
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17226
runpath_var='LD_RUN_PATH'
17227
hardcode_shlibpath_var_GCJ=no
17231
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17232
hardcode_shlibpath_var_GCJ=no
17233
export_dynamic_flag_spec_GCJ='-Bexport'
17237
if test -d /usr/nec; then
17238
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239
hardcode_shlibpath_var_GCJ=no
17240
runpath_var=LD_RUN_PATH
17241
hardcode_runpath_var=yes
17247
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17248
hardcode_direct_GCJ=yes
17249
hardcode_minus_L_GCJ=no
17250
hardcode_shlibpath_var_GCJ=no
17251
hardcode_runpath_var=yes
17252
runpath_var=LD_RUN_PATH
17255
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17256
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17257
if test "$GCC" = yes; then
17258
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17260
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262
runpath_var='LD_RUN_PATH'
17263
hardcode_shlibpath_var_GCJ=no
17267
no_undefined_flag_GCJ=' -z text'
17268
# $CC -shared without GNU ld will not create a library from C++
17269
# object files and a static libstdc++, better avoid it by now
17270
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17271
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17272
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17273
hardcode_libdir_flag_spec_GCJ=
17274
hardcode_shlibpath_var_GCJ=no
17275
runpath_var='LD_RUN_PATH'
17279
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17280
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17281
hardcode_shlibpath_var_GCJ=no
17290
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17291
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17292
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17294
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17295
if test "$GCC" = yes; then
17296
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17300
# Do we need to explicitly link libc?
17302
case "x$archive_cmds_need_lc_GCJ" in
17304
# Assume -lc should be added
17305
archive_cmds_need_lc_GCJ=yes
17307
if test "$enable_shared" = yes && test "$GCC" = yes; then
17308
case $archive_cmds_GCJ in
17310
# FIXME: we may have to deal with multi-command sequences.
17313
# Test whether the compiler implicitly links with -lc since on some
17314
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17315
# to ld, don't add -lc before -lgcc.
17316
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17317
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17319
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17321
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17322
(eval $ac_compile) 2>&5
17324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325
(exit $ac_status); } 2>conftest.err; then
17328
libobjs=conftest.$ac_objext
17330
wl=$lt_prog_compiler_wl_GCJ
17336
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17337
allow_undefined_flag_GCJ=
17338
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17339
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342
(exit $ac_status); }
17344
archive_cmds_need_lc_GCJ=no
17346
archive_cmds_need_lc_GCJ=yes
17348
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17350
cat conftest.err 1>&5
17353
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17354
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17361
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17362
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17363
library_names_spec=
17364
libname_spec='lib$name'
17368
postuninstall_cmds=
17372
shlibpath_overrides_runpath=unknown
17374
dynamic_linker="$host_os ld.so"
17375
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17376
if test "$GCC" = yes; then
17377
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17378
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17379
# if the path contains ";" then we assume it to be the separator
17380
# otherwise default to the standard path separator (i.e. ":") - it is
17381
# assumed that no part of a normal pathname contains ";" but that should
17382
# okay in the real world where ";" in dirpaths is itself problematic.
17383
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17385
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17388
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17390
need_lib_prefix=unknown
17391
hardcode_into_libs=no
17393
# when you set need_version to no, make sure it does not cause -set_version
17394
# flags to be left without arguments
17395
need_version=unknown
17400
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17401
shlibpath_var=LIBPATH
17403
# AIX 3 has no versioning support, so we append a major version to the name.
17404
soname_spec='${libname}${release}${shared_ext}$major'
17411
hardcode_into_libs=yes
17412
if test "$host_cpu" = ia64; then
17413
# AIX 5 supports IA64
17414
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17415
shlibpath_var=LD_LIBRARY_PATH
17417
# With GCC up to 2.95.x, collect2 would create an import file
17418
# for dependence libraries. The import file would start with
17419
# the line `#! .'. This would cause the generated library to
17420
# depend on `.', always an invalid library. This was fixed in
17421
# development snapshots of GCC prior to 3.0.
17423
aix4 | aix4.[01] | aix4.[01].*)
17424
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17426
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17429
can_build_shared=no
17433
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17434
# soname into executable. Probably we can add versioning support to
17435
# collect2, so additional links can be useful in future.
17436
if test "$aix_use_runtimelinking" = yes; then
17437
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17438
# instead of lib<name>.a to let people know that these are not
17439
# typical AIX shared libraries.
17440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442
# We preserve .a as extension for shared libraries through AIX4.2
17443
# and later when we are not doing run time linking.
17444
library_names_spec='${libname}${release}.a $libname.a'
17445
soname_spec='${libname}${release}${shared_ext}$major'
17447
shlibpath_var=LIBPATH
17452
library_names_spec='$libname.ixlibrary $libname.a'
17453
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17454
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'
17458
library_names_spec='${libname}${shared_ext}'
17459
dynamic_linker="$host_os ld.so"
17460
shlibpath_var=LIBRARY_PATH
17466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467
soname_spec='${libname}${release}${shared_ext}$major'
17468
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17469
shlibpath_var=LD_LIBRARY_PATH
17470
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17471
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17472
# the default ld.so.conf also contains /usr/contrib/lib and
17473
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17474
# libtool to hard-code these into programs
17477
cygwin* | mingw* | pw32*)
17478
version_type=windows
17483
case $GCC,$host_os in
17484
yes,cygwin* | yes,mingw* | yes,pw32*)
17485
library_names_spec='$libname.dll.a'
17486
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17487
postinstall_cmds='base_file=`basename \${file}`~
17488
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17489
dldir=$destdir/`dirname \$dlpath`~
17490
test -d \$dldir || mkdir -p \$dldir~
17491
$install_prog $dir/$dlname \$dldir/$dlname~
17492
chmod a+x \$dldir/$dlname'
17493
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17494
dlpath=$dir/\$dldll~
17496
shlibpath_overrides_runpath=yes
17500
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17501
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17502
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17505
# MinGW DLLs use traditional 'lib' prefix
17506
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17507
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17508
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17509
# It is most probably a Windows format PATH printed by
17510
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17511
# path with ; separators, and with drive letters. We can handle the
17512
# drive letters (cygwin fileutils understands them), so leave them,
17513
# especially as we might pass files found there to a mingw objdump,
17514
# which wouldn't understand a cygwinified path. Ahh.
17515
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17517
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17521
# pw32 DLLs use 'pw' prefix rather than 'lib'
17522
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17531
dynamic_linker='Win32 ld.exe'
17532
# FIXME: first we should search . and the directory the executable is in
17536
darwin* | rhapsody*)
17537
dynamic_linker="$host_os dyld"
17538
version_type=darwin
17541
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17542
soname_spec='${libname}${release}${major}$shared_ext'
17543
shlibpath_overrides_runpath=yes
17544
shlibpath_var=DYLD_LIBRARY_PATH
17545
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17546
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17547
if test "$GCC" = yes; then
17548
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"`
17550
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17552
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17560
soname_spec='${libname}${release}${shared_ext}$major'
17561
shlibpath_var=LD_LIBRARY_PATH
17572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17573
soname_spec='${libname}${release}${shared_ext}$major'
17574
shlibpath_var=LD_LIBRARY_PATH
17575
shlibpath_overrides_runpath=no
17576
hardcode_into_libs=yes
17577
dynamic_linker='GNU ld.so'
17580
freebsd* | dragonfly*)
17581
# DragonFly does not have aout. When/if they implement a new
17582
# versioning mechanism, adjust this.
17583
if test -x /usr/bin/objformat; then
17584
objformat=`/usr/bin/objformat`
17587
freebsd[123]*) objformat=aout ;;
17588
*) objformat=elf ;;
17591
version_type=freebsd-$objformat
17592
case $version_type in
17594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17599
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17603
shlibpath_var=LD_LIBRARY_PATH
17606
shlibpath_overrides_runpath=yes
17608
freebsd3.[01]* | freebsdelf3.[01]*)
17609
shlibpath_overrides_runpath=yes
17610
hardcode_into_libs=yes
17613
shlibpath_overrides_runpath=no
17614
hardcode_into_libs=yes
17623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17624
soname_spec='${libname}${release}${shared_ext}$major'
17625
shlibpath_var=LD_LIBRARY_PATH
17626
hardcode_into_libs=yes
17629
hpux9* | hpux10* | hpux11*)
17630
# Give a soname corresponding to the major version so that dld.sl refuses to
17631
# link against other versions.
17638
hardcode_into_libs=yes
17639
dynamic_linker="$host_os dld.so"
17640
shlibpath_var=LD_LIBRARY_PATH
17641
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643
soname_spec='${libname}${release}${shared_ext}$major'
17644
if test "X$HPUX_IA64_MODE" = X32; then
17645
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17647
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17649
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17653
hardcode_into_libs=yes
17654
dynamic_linker="$host_os dld.sl"
17655
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17656
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658
soname_spec='${libname}${release}${shared_ext}$major'
17659
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17660
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17664
dynamic_linker="$host_os dld.sl"
17665
shlibpath_var=SHLIB_PATH
17666
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668
soname_spec='${libname}${release}${shared_ext}$major'
17671
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17672
postinstall_cmds='chmod 555 $lib'
17675
irix5* | irix6* | nonstopux*)
17677
nonstopux*) version_type=nonstopux ;;
17679
if test "$lt_cv_prog_gnu_ld" = yes; then
17687
soname_spec='${libname}${release}${shared_ext}$major'
17688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17690
irix5* | nonstopux*)
17691
libsuff= shlibsuff=
17694
case $LD in # libtool.m4 will add one of these switches to LD
17695
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17696
libsuff= shlibsuff= libmagic=32-bit;;
17697
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17698
libsuff=32 shlibsuff=N32 libmagic=N32;;
17699
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17700
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17701
*) libsuff= shlibsuff= libmagic=never-match;;
17705
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17706
shlibpath_overrides_runpath=no
17707
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17708
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17709
hardcode_into_libs=yes
17712
# No shared lib support for Linux oldld, aout, or coff.
17713
linux*oldld* | linux*aout* | linux*coff*)
17717
# This must be Linux ELF.
17722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723
soname_spec='${libname}${release}${shared_ext}$major'
17724
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17725
shlibpath_var=LD_LIBRARY_PATH
17726
shlibpath_overrides_runpath=no
17727
# This implies no fast_install, which is unacceptable.
17728
# Some rework will be needed to allow for fast_install
17729
# before this can be enabled.
17730
hardcode_into_libs=yes
17732
# Append ld.so.conf contents to the search path
17733
if test -f /etc/ld.so.conf; then
17734
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' ' '`
17735
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17738
# We used to test for /lib/ld.so.1 and disable shared libraries on
17739
# powerpc, because MkLinux only supported shared libraries with the
17740
# GNU dynamic linker. Since this was broken with cross compilers,
17741
# most powerpc-linux boxes support dynamic linking these days and
17742
# people can always --disable-shared, the test was removed, and we
17743
# assume the GNU/Linux dynamic linker is in use.
17744
dynamic_linker='GNU/Linux ld.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='NetBSD ld.elf_so'
17763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17764
soname_spec='${libname}${release}${shared_ext}$major'
17765
shlibpath_var=LD_LIBRARY_PATH
17766
shlibpath_overrides_runpath=no
17767
hardcode_into_libs=yes
17768
dynamic_linker='GNU ld.so'
17775
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17777
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17778
dynamic_linker='NetBSD (a.out) ld.so'
17780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17781
soname_spec='${libname}${release}${shared_ext}$major'
17782
dynamic_linker='NetBSD ld.elf_so'
17784
shlibpath_var=LD_LIBRARY_PATH
17785
shlibpath_overrides_runpath=yes
17786
hardcode_into_libs=yes
17791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17792
shlibpath_var=LD_LIBRARY_PATH
17793
shlibpath_overrides_runpath=yes
17800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801
soname_spec='${libname}${release}${shared_ext}$major'
17802
shlibpath_var=LD_LIBRARY_PATH
17803
shlibpath_overrides_runpath=yes
17809
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17811
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17812
*) need_version=no ;;
17814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17815
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816
shlibpath_var=LD_LIBRARY_PATH
17817
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17819
openbsd2.[89] | openbsd2.[89].*)
17820
shlibpath_overrides_runpath=no
17823
shlibpath_overrides_runpath=yes
17827
shlibpath_overrides_runpath=yes
17832
libname_spec='$name'
17835
library_names_spec='$libname${shared_ext} $libname.a'
17836
dynamic_linker='OS/2 ld.exe'
17837
shlibpath_var=LIBPATH
17840
osf3* | osf4* | osf5*)
17844
soname_spec='${libname}${release}${shared_ext}$major'
17845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846
shlibpath_var=LD_LIBRARY_PATH
17847
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17848
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17853
soname_spec='${libname}${release}${shared_ext}$major'
17854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855
shlibpath_var=LD_LIBRARY_PATH
17862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17863
soname_spec='${libname}${release}${shared_ext}$major'
17864
shlibpath_var=LD_LIBRARY_PATH
17865
shlibpath_overrides_runpath=yes
17866
hardcode_into_libs=yes
17867
# ldd complains unless libraries are executable
17868
postinstall_cmds='chmod +x $lib'
17873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17874
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17875
shlibpath_var=LD_LIBRARY_PATH
17876
shlibpath_overrides_runpath=yes
17877
if test "$with_gnu_ld" = yes; then
17883
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886
soname_spec='${libname}${release}${shared_ext}$major'
17887
shlibpath_var=LD_LIBRARY_PATH
17888
case $host_vendor in
17890
shlibpath_overrides_runpath=no
17892
export_dynamic_flag_spec='${wl}-Blargedynsym'
17893
runpath_var=LD_RUN_PATH
17901
shlibpath_overrides_runpath=no
17902
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17908
if test -d /usr/nec ;then
17910
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17911
soname_spec='$libname${shared_ext}.$major'
17912
shlibpath_var=LD_LIBRARY_PATH
17918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919
soname_spec='${libname}${release}${shared_ext}$major'
17920
shlibpath_var=LD_LIBRARY_PATH
17927
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17928
echo "${ECHO_T}$dynamic_linker" >&6
17929
test "$dynamic_linker" = no && can_build_shared=no
17931
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17932
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17933
hardcode_action_GCJ=
17934
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17935
test -n "$runpath_var_GCJ" || \
17936
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17938
# We can hardcode non-existant directories.
17939
if test "$hardcode_direct_GCJ" != no &&
17940
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17941
# have to relink, otherwise we might link with an installed library
17942
# when we should be linking with a yet-to-be-installed one
17943
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17944
test "$hardcode_minus_L_GCJ" != no; then
17945
# Linking always hardcodes the temporary library directory.
17946
hardcode_action_GCJ=relink
17948
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17949
hardcode_action_GCJ=immediate
17952
# We cannot hardcode anything, or else we can only hardcode existing
17954
hardcode_action_GCJ=unsupported
17956
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17957
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17959
if test "$hardcode_action_GCJ" = relink; then
17960
# Fast installation is not supported
17961
enable_fast_install=no
17962
elif test "$shlibpath_overrides_runpath" = yes ||
17963
test "$enable_shared" = no; then
17964
# Fast installation is not necessary
17965
enable_fast_install=needless
17970
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17971
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17972
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17973
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17974
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17975
echo "$as_me:$LINENO: result: yes" >&5
17976
echo "${ECHO_T}yes" >&6
17978
# FIXME - insert some real tests, host_os isn't really good enough
17981
if test -n "$STRIP" ; then
17982
striplib="$STRIP -x"
17983
echo "$as_me:$LINENO: result: yes" >&5
17984
echo "${ECHO_T}yes" >&6
17986
echo "$as_me:$LINENO: result: no" >&5
17987
echo "${ECHO_T}no" >&6
17991
echo "$as_me:$LINENO: result: no" >&5
17992
echo "${ECHO_T}no" >&6
17997
if test "x$enable_dlopen" != xyes; then
17998
enable_dlopen=unknown
17999
enable_dlopen_self=unknown
18000
enable_dlopen_self_static=unknown
18007
lt_cv_dlopen="load_add_on"
18009
lt_cv_dlopen_self=yes
18013
lt_cv_dlopen="LoadLibrary"
18018
lt_cv_dlopen="dlopen"
18023
# if libdl is installed we need to link against it
18024
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18025
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18026
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18027
echo $ECHO_N "(cached) $ECHO_C" >&6
18029
ac_check_lib_save_LIBS=$LIBS
18031
cat >conftest.$ac_ext <<_ACEOF
18034
cat confdefs.h >>conftest.$ac_ext
18035
cat >>conftest.$ac_ext <<_ACEOF
18036
/* end confdefs.h. */
18038
/* Override any gcc2 internal prototype to avoid an error. */
18042
/* We use char because int might match the return type of a gcc2
18043
builtin and then its argument prototype would still apply. */
18053
rm -f conftest.$ac_objext conftest$ac_exeext
18054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055
(eval $ac_link) 2>conftest.er1
18057
grep -v '^ *+' conftest.er1 >conftest.err
18059
cat conftest.err >&5
18060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061
(exit $ac_status); } &&
18062
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064
(eval $ac_try) 2>&5
18066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067
(exit $ac_status); }; } &&
18068
{ ac_try='test -s conftest$ac_exeext'
18069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070
(eval $ac_try) 2>&5
18072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073
(exit $ac_status); }; }; then
18074
ac_cv_lib_dl_dlopen=yes
18076
echo "$as_me: failed program was:" >&5
18077
sed 's/^/| /' conftest.$ac_ext >&5
18079
ac_cv_lib_dl_dlopen=no
18081
rm -f conftest.err conftest.$ac_objext \
18082
conftest$ac_exeext conftest.$ac_ext
18083
LIBS=$ac_check_lib_save_LIBS
18085
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18086
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18087
if test $ac_cv_lib_dl_dlopen = yes; then
18088
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18091
lt_cv_dlopen="dyld"
18093
lt_cv_dlopen_self=yes
18100
echo "$as_me:$LINENO: checking for shl_load" >&5
18101
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18102
if test "${ac_cv_func_shl_load+set}" = set; then
18103
echo $ECHO_N "(cached) $ECHO_C" >&6
18105
cat >conftest.$ac_ext <<_ACEOF
18108
cat confdefs.h >>conftest.$ac_ext
18109
cat >>conftest.$ac_ext <<_ACEOF
18110
/* end confdefs.h. */
18111
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18112
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113
#define shl_load innocuous_shl_load
18115
/* System header to define __stub macros and hopefully few prototypes,
18116
which can conflict with char shl_load (); below.
18117
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118
<limits.h> exists even on freestanding compilers. */
18121
# include <limits.h>
18123
# include <assert.h>
18128
/* Override any gcc2 internal prototype to avoid an error. */
18133
/* We use char because int might match the return type of a gcc2
18134
builtin and then its argument prototype would still apply. */
18136
/* The GNU C library defines this for functions which it implements
18137
to always fail with ENOSYS. Some functions are actually named
18138
something starting with __ and the normal name is an alias. */
18139
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18142
char (*f) () = shl_load;
18151
return f != shl_load;
18156
rm -f conftest.$ac_objext conftest$ac_exeext
18157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158
(eval $ac_link) 2>conftest.er1
18160
grep -v '^ *+' conftest.er1 >conftest.err
18162
cat conftest.err >&5
18163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164
(exit $ac_status); } &&
18165
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167
(eval $ac_try) 2>&5
18169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170
(exit $ac_status); }; } &&
18171
{ ac_try='test -s conftest$ac_exeext'
18172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173
(eval $ac_try) 2>&5
18175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176
(exit $ac_status); }; }; then
18177
ac_cv_func_shl_load=yes
18179
echo "$as_me: failed program was:" >&5
18180
sed 's/^/| /' conftest.$ac_ext >&5
18182
ac_cv_func_shl_load=no
18184
rm -f conftest.err conftest.$ac_objext \
18185
conftest$ac_exeext conftest.$ac_ext
18187
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18188
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18189
if test $ac_cv_func_shl_load = yes; then
18190
lt_cv_dlopen="shl_load"
18192
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18193
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18194
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18195
echo $ECHO_N "(cached) $ECHO_C" >&6
18197
ac_check_lib_save_LIBS=$LIBS
18199
cat >conftest.$ac_ext <<_ACEOF
18202
cat confdefs.h >>conftest.$ac_ext
18203
cat >>conftest.$ac_ext <<_ACEOF
18204
/* end confdefs.h. */
18206
/* Override any gcc2 internal prototype to avoid an error. */
18210
/* We use char because int might match the return type of a gcc2
18211
builtin and then its argument prototype would still apply. */
18221
rm -f conftest.$ac_objext conftest$ac_exeext
18222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18223
(eval $ac_link) 2>conftest.er1
18225
grep -v '^ *+' conftest.er1 >conftest.err
18227
cat conftest.err >&5
18228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229
(exit $ac_status); } &&
18230
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232
(eval $ac_try) 2>&5
18234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235
(exit $ac_status); }; } &&
18236
{ ac_try='test -s conftest$ac_exeext'
18237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238
(eval $ac_try) 2>&5
18240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241
(exit $ac_status); }; }; then
18242
ac_cv_lib_dld_shl_load=yes
18244
echo "$as_me: failed program was:" >&5
18245
sed 's/^/| /' conftest.$ac_ext >&5
18247
ac_cv_lib_dld_shl_load=no
18249
rm -f conftest.err conftest.$ac_objext \
18250
conftest$ac_exeext conftest.$ac_ext
18251
LIBS=$ac_check_lib_save_LIBS
18253
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18254
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18255
if test $ac_cv_lib_dld_shl_load = yes; then
18256
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18258
echo "$as_me:$LINENO: checking for dlopen" >&5
18259
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18260
if test "${ac_cv_func_dlopen+set}" = set; then
18261
echo $ECHO_N "(cached) $ECHO_C" >&6
18263
cat >conftest.$ac_ext <<_ACEOF
18266
cat confdefs.h >>conftest.$ac_ext
18267
cat >>conftest.$ac_ext <<_ACEOF
18268
/* end confdefs.h. */
18269
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18270
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18271
#define dlopen innocuous_dlopen
18273
/* System header to define __stub macros and hopefully few prototypes,
18274
which can conflict with char dlopen (); below.
18275
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276
<limits.h> exists even on freestanding compilers. */
18279
# include <limits.h>
18281
# include <assert.h>
18286
/* Override any gcc2 internal prototype to avoid an error. */
18291
/* We use char because int might match the return type of a gcc2
18292
builtin and then its argument prototype would still apply. */
18294
/* The GNU C library defines this for functions which it implements
18295
to always fail with ENOSYS. Some functions are actually named
18296
something starting with __ and the normal name is an alias. */
18297
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18300
char (*f) () = dlopen;
18309
return f != dlopen;
18314
rm -f conftest.$ac_objext conftest$ac_exeext
18315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316
(eval $ac_link) 2>conftest.er1
18318
grep -v '^ *+' conftest.er1 >conftest.err
18320
cat conftest.err >&5
18321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322
(exit $ac_status); } &&
18323
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325
(eval $ac_try) 2>&5
18327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328
(exit $ac_status); }; } &&
18329
{ ac_try='test -s conftest$ac_exeext'
18330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331
(eval $ac_try) 2>&5
18333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334
(exit $ac_status); }; }; then
18335
ac_cv_func_dlopen=yes
18337
echo "$as_me: failed program was:" >&5
18338
sed 's/^/| /' conftest.$ac_ext >&5
18340
ac_cv_func_dlopen=no
18342
rm -f conftest.err conftest.$ac_objext \
18343
conftest$ac_exeext conftest.$ac_ext
18345
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18346
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18347
if test $ac_cv_func_dlopen = yes; then
18348
lt_cv_dlopen="dlopen"
18350
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18351
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18352
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18353
echo $ECHO_N "(cached) $ECHO_C" >&6
18355
ac_check_lib_save_LIBS=$LIBS
18357
cat >conftest.$ac_ext <<_ACEOF
18360
cat confdefs.h >>conftest.$ac_ext
18361
cat >>conftest.$ac_ext <<_ACEOF
18362
/* end confdefs.h. */
18364
/* Override any gcc2 internal prototype to avoid an error. */
18368
/* We use char because int might match the return type of a gcc2
18369
builtin and then its argument prototype would still apply. */
18379
rm -f conftest.$ac_objext conftest$ac_exeext
18380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381
(eval $ac_link) 2>conftest.er1
18383
grep -v '^ *+' conftest.er1 >conftest.err
18385
cat conftest.err >&5
18386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387
(exit $ac_status); } &&
18388
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18389
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390
(eval $ac_try) 2>&5
18392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393
(exit $ac_status); }; } &&
18394
{ ac_try='test -s conftest$ac_exeext'
18395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396
(eval $ac_try) 2>&5
18398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399
(exit $ac_status); }; }; then
18400
ac_cv_lib_dl_dlopen=yes
18402
echo "$as_me: failed program was:" >&5
18403
sed 's/^/| /' conftest.$ac_ext >&5
18405
ac_cv_lib_dl_dlopen=no
18407
rm -f conftest.err conftest.$ac_objext \
18408
conftest$ac_exeext conftest.$ac_ext
18409
LIBS=$ac_check_lib_save_LIBS
18411
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18412
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18413
if test $ac_cv_lib_dl_dlopen = yes; then
18414
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18416
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18417
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18418
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18419
echo $ECHO_N "(cached) $ECHO_C" >&6
18421
ac_check_lib_save_LIBS=$LIBS
18422
LIBS="-lsvld $LIBS"
18423
cat >conftest.$ac_ext <<_ACEOF
18426
cat confdefs.h >>conftest.$ac_ext
18427
cat >>conftest.$ac_ext <<_ACEOF
18428
/* end confdefs.h. */
18430
/* Override any gcc2 internal prototype to avoid an error. */
18434
/* We use char because int might match the return type of a gcc2
18435
builtin and then its argument prototype would still apply. */
18445
rm -f conftest.$ac_objext conftest$ac_exeext
18446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447
(eval $ac_link) 2>conftest.er1
18449
grep -v '^ *+' conftest.er1 >conftest.err
18451
cat conftest.err >&5
18452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453
(exit $ac_status); } &&
18454
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456
(eval $ac_try) 2>&5
18458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459
(exit $ac_status); }; } &&
18460
{ ac_try='test -s conftest$ac_exeext'
18461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462
(eval $ac_try) 2>&5
18464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465
(exit $ac_status); }; }; then
18466
ac_cv_lib_svld_dlopen=yes
18468
echo "$as_me: failed program was:" >&5
18469
sed 's/^/| /' conftest.$ac_ext >&5
18471
ac_cv_lib_svld_dlopen=no
18473
rm -f conftest.err conftest.$ac_objext \
18474
conftest$ac_exeext conftest.$ac_ext
18475
LIBS=$ac_check_lib_save_LIBS
18477
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18478
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18479
if test $ac_cv_lib_svld_dlopen = yes; then
18480
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18482
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18483
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18484
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18485
echo $ECHO_N "(cached) $ECHO_C" >&6
18487
ac_check_lib_save_LIBS=$LIBS
18489
cat >conftest.$ac_ext <<_ACEOF
18492
cat confdefs.h >>conftest.$ac_ext
18493
cat >>conftest.$ac_ext <<_ACEOF
18494
/* end confdefs.h. */
18496
/* Override any gcc2 internal prototype to avoid an error. */
18500
/* We use char because int might match the return type of a gcc2
18501
builtin and then its argument prototype would still apply. */
18511
rm -f conftest.$ac_objext conftest$ac_exeext
18512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513
(eval $ac_link) 2>conftest.er1
18515
grep -v '^ *+' conftest.er1 >conftest.err
18517
cat conftest.err >&5
18518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519
(exit $ac_status); } &&
18520
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522
(eval $ac_try) 2>&5
18524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525
(exit $ac_status); }; } &&
18526
{ ac_try='test -s conftest$ac_exeext'
18527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528
(eval $ac_try) 2>&5
18530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531
(exit $ac_status); }; }; then
18532
ac_cv_lib_dld_dld_link=yes
18534
echo "$as_me: failed program was:" >&5
18535
sed 's/^/| /' conftest.$ac_ext >&5
18537
ac_cv_lib_dld_dld_link=no
18539
rm -f conftest.err conftest.$ac_objext \
18540
conftest$ac_exeext conftest.$ac_ext
18541
LIBS=$ac_check_lib_save_LIBS
18543
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18544
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18545
if test $ac_cv_lib_dld_dld_link = yes; then
18546
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18567
if test "x$lt_cv_dlopen" != xno; then
18573
case $lt_cv_dlopen in
18575
save_CPPFLAGS="$CPPFLAGS"
18576
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18578
save_LDFLAGS="$LDFLAGS"
18579
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18582
LIBS="$lt_cv_dlopen_libs $LIBS"
18584
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18585
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18586
if test "${lt_cv_dlopen_self+set}" = set; then
18587
echo $ECHO_N "(cached) $ECHO_C" >&6
18589
if test "$cross_compiling" = yes; then :
18590
lt_cv_dlopen_self=cross
18592
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18593
lt_status=$lt_dlunknown
18594
cat > conftest.$ac_ext <<EOF
18595
#line __oline__ "configure"
18596
#include "confdefs.h"
18605
# define LT_DLGLOBAL RTLD_GLOBAL
18608
# define LT_DLGLOBAL DL_GLOBAL
18610
# define LT_DLGLOBAL 0
18614
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18615
find out it does not work in some platform. */
18616
#ifndef LT_DLLAZY_OR_NOW
18618
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18621
# define LT_DLLAZY_OR_NOW DL_LAZY
18624
# define LT_DLLAZY_OR_NOW RTLD_NOW
18627
# define LT_DLLAZY_OR_NOW DL_NOW
18629
# define LT_DLLAZY_OR_NOW 0
18637
extern "C" void exit (int);
18640
void fnord() { int i=42;}
18643
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18644
int status = $lt_dlunknown;
18648
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18649
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18650
/* dlclose (self); */
18656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18657
(eval $ac_link) 2>&5
18659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18661
(./conftest; exit; ) >&5 2>/dev/null
18663
case x$lt_status in
18664
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18665
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18666
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18669
# compilation failed
18670
lt_cv_dlopen_self=no
18677
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18678
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18680
if test "x$lt_cv_dlopen_self" = xyes; then
18681
LDFLAGS="$LDFLAGS $link_static_flag"
18682
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18683
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18684
if test "${lt_cv_dlopen_self_static+set}" = set; then
18685
echo $ECHO_N "(cached) $ECHO_C" >&6
18687
if test "$cross_compiling" = yes; then :
18688
lt_cv_dlopen_self_static=cross
18690
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18691
lt_status=$lt_dlunknown
18692
cat > conftest.$ac_ext <<EOF
18693
#line __oline__ "configure"
18694
#include "confdefs.h"
18703
# define LT_DLGLOBAL RTLD_GLOBAL
18706
# define LT_DLGLOBAL DL_GLOBAL
18708
# define LT_DLGLOBAL 0
18712
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18713
find out it does not work in some platform. */
18714
#ifndef LT_DLLAZY_OR_NOW
18716
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18719
# define LT_DLLAZY_OR_NOW DL_LAZY
18722
# define LT_DLLAZY_OR_NOW RTLD_NOW
18725
# define LT_DLLAZY_OR_NOW DL_NOW
18727
# define LT_DLLAZY_OR_NOW 0
18735
extern "C" void exit (int);
18738
void fnord() { int i=42;}
18741
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18742
int status = $lt_dlunknown;
18746
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18747
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18748
/* dlclose (self); */
18754
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18755
(eval $ac_link) 2>&5
18757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18759
(./conftest; exit; ) >&5 2>/dev/null
18761
case x$lt_status in
18762
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18763
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18764
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18767
# compilation failed
18768
lt_cv_dlopen_self_static=no
18775
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18776
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18779
CPPFLAGS="$save_CPPFLAGS"
18780
LDFLAGS="$save_LDFLAGS"
18785
case $lt_cv_dlopen_self in
18786
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18787
*) enable_dlopen_self=unknown ;;
18790
case $lt_cv_dlopen_self_static in
18791
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18792
*) enable_dlopen_self_static=unknown ;;
18797
# The else clause should only fire when bootstrapping the
18798
# libtool distribution, otherwise you forgot to ship ltmain.sh
18799
# with your package, and you will get complaints that there are
18800
# no rules to generate ltmain.sh.
18801
if test -f "$ltmain"; then
18802
# See if we are running on zsh, and set the options which allow our commands through
18803
# without removal of \ escapes.
18804
if test -n "${ZSH_VERSION+set}" ; then
18805
setopt NO_GLOB_SUBST
18807
# Now quote all the things that may contain metacharacters while being
18808
# careful not to overquote the AC_SUBSTed values. We take copies of the
18809
# variables and quote the copies for generation of the libtool script.
18810
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18812
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18813
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18814
deplibs_check_method reload_flag reload_cmds need_locks \
18815
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18816
lt_cv_sys_global_symbol_to_c_name_address \
18817
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18818
old_postinstall_cmds old_postuninstall_cmds \
18822
lt_prog_compiler_wl_GCJ \
18823
lt_prog_compiler_pic_GCJ \
18824
lt_prog_compiler_static_GCJ \
18825
lt_prog_compiler_no_builtin_flag_GCJ \
18826
export_dynamic_flag_spec_GCJ \
18827
thread_safe_flag_spec_GCJ \
18828
whole_archive_flag_spec_GCJ \
18829
enable_shared_with_static_runtimes_GCJ \
18830
old_archive_cmds_GCJ \
18831
old_archive_from_new_cmds_GCJ \
18832
predep_objects_GCJ \
18833
postdep_objects_GCJ \
18836
compiler_lib_search_path_GCJ \
18838
archive_expsym_cmds_GCJ \
18839
postinstall_cmds_GCJ \
18840
postuninstall_cmds_GCJ \
18841
old_archive_from_expsyms_cmds_GCJ \
18842
allow_undefined_flag_GCJ \
18843
no_undefined_flag_GCJ \
18844
export_symbols_cmds_GCJ \
18845
hardcode_libdir_flag_spec_GCJ \
18846
hardcode_libdir_flag_spec_ld_GCJ \
18847
hardcode_libdir_separator_GCJ \
18848
hardcode_automatic_GCJ \
18850
module_expsym_cmds_GCJ \
18851
lt_cv_prog_compiler_c_o_GCJ \
18852
exclude_expsyms_GCJ \
18853
include_expsyms_GCJ; do
18856
old_archive_cmds_GCJ | \
18857
old_archive_from_new_cmds_GCJ | \
18858
archive_cmds_GCJ | \
18859
archive_expsym_cmds_GCJ | \
18860
module_cmds_GCJ | \
18861
module_expsym_cmds_GCJ | \
18862
old_archive_from_expsyms_cmds_GCJ | \
18863
export_symbols_cmds_GCJ | \
18864
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18865
postinstall_cmds | postuninstall_cmds | \
18866
old_postinstall_cmds | old_postuninstall_cmds | \
18867
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18868
# Double-quote double-evaled strings.
18869
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18872
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18878
*'\$0 --fallback-echo"')
18879
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18885
cat <<__EOF__ >> "$cfgfile"
18886
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18888
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890
# Shell to use when invoking shell scripts.
18893
# Whether or not to build shared libraries.
18894
build_libtool_libs=$enable_shared
18896
# Whether or not to build static libraries.
18897
build_old_libs=$enable_static
18899
# Whether or not to add -lc for building shared libraries.
18900
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18902
# Whether or not to disallow shared libs when runtime libs are static
18903
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18905
# Whether or not to optimize for fast installation.
18906
fast_install=$enable_fast_install
18909
host_alias=$host_alias
18913
# The build system.
18914
build_alias=$build_alias
18918
# An echo program that does not interpret backslashes.
18923
AR_FLAGS=$lt_AR_FLAGS
18928
# A language-specific compiler.
18929
CC=$lt_compiler_GCJ
18931
# Is the compiler the GNU C compiler?
18937
# The linker used to build libraries.
18940
# Whether we need hard or soft links.
18943
# A BSD-compatible nm program.
18946
# A symbol stripping program
18949
# Used to examine libraries when file_magic_cmd begins "file"
18950
MAGIC_CMD=$MAGIC_CMD
18952
# Used on cygwin: DLL creation program.
18955
# Used on cygwin: object dumper.
18958
# Used on cygwin: assembler.
18961
# The name of the directory that contains temporary libtool files.
18964
# How to create reloadable object files.
18965
reload_flag=$lt_reload_flag
18966
reload_cmds=$lt_reload_cmds
18968
# How to pass a linker flag through the compiler.
18969
wl=$lt_lt_prog_compiler_wl_GCJ
18971
# Object file suffix (normally "o").
18972
objext="$ac_objext"
18974
# Old archive suffix (normally "a").
18977
# Shared library suffix (normally ".so").
18978
shrext_cmds='$shrext_cmds'
18980
# Executable file suffix (normally "").
18983
# Additional compiler flags for building library objects.
18984
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18987
# What is the maximum length of a command?
18988
max_cmd_len=$lt_cv_sys_max_cmd_len
18990
# Does compiler simultaneously support -c and -o options?
18991
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18993
# Must we lock files when doing compilation?
18994
need_locks=$lt_need_locks
18996
# Do we need the lib prefix for modules?
18997
need_lib_prefix=$need_lib_prefix
18999
# Do we need a version for libraries?
19000
need_version=$need_version
19002
# Whether dlopen is supported.
19003
dlopen_support=$enable_dlopen
19005
# Whether dlopen of programs is supported.
19006
dlopen_self=$enable_dlopen_self
19008
# Whether dlopen of statically linked programs is supported.
19009
dlopen_self_static=$enable_dlopen_self_static
19011
# Compiler flag to prevent dynamic linking.
19012
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19014
# Compiler flag to turn off builtin functions.
19015
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19017
# Compiler flag to allow reflexive dlopens.
19018
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19020
# Compiler flag to generate shared objects directly from archives.
19021
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19023
# Compiler flag to generate thread-safe objects.
19024
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19026
# Library versioning type.
19027
version_type=$version_type
19029
# Format of library name prefix.
19030
libname_spec=$lt_libname_spec
19032
# List of archive names. First name is the real one, the rest are links.
19033
# The last name is the one that the linker finds with -lNAME.
19034
library_names_spec=$lt_library_names_spec
19036
# The coded name of the library, if different from the real name.
19037
soname_spec=$lt_soname_spec
19039
# Commands used to build and install an old-style archive.
19041
old_archive_cmds=$lt_old_archive_cmds_GCJ
19042
old_postinstall_cmds=$lt_old_postinstall_cmds
19043
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19045
# Create an old-style archive from a shared archive.
19046
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19048
# Create a temporary old-style archive to link instead of a shared archive.
19049
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19051
# Commands used to build and install a shared archive.
19052
archive_cmds=$lt_archive_cmds_GCJ
19053
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19054
postinstall_cmds=$lt_postinstall_cmds
19055
postuninstall_cmds=$lt_postuninstall_cmds
19057
# Commands used to build a loadable module (assumed same as above if empty)
19058
module_cmds=$lt_module_cmds_GCJ
19059
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19061
# Commands to strip libraries.
19062
old_striplib=$lt_old_striplib
19063
striplib=$lt_striplib
19065
# Dependencies to place before the objects being linked to create a
19067
predep_objects=$lt_predep_objects_GCJ
19069
# Dependencies to place after the objects being linked to create a
19071
postdep_objects=$lt_postdep_objects_GCJ
19073
# Dependencies to place before the objects being linked to create a
19075
predeps=$lt_predeps_GCJ
19077
# Dependencies to place after the objects being linked to create a
19079
postdeps=$lt_postdeps_GCJ
19081
# The library search path used internally by the compiler when linking
19082
# a shared library.
19083
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19085
# Method to check whether dependent libraries are shared objects.
19086
deplibs_check_method=$lt_deplibs_check_method
19088
# Command to use when deplibs_check_method == file_magic.
19089
file_magic_cmd=$lt_file_magic_cmd
19091
# Flag that allows shared libraries with undefined symbols to be built.
19092
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19094
# Flag that forces no undefined symbols.
19095
no_undefined_flag=$lt_no_undefined_flag_GCJ
19097
# Commands used to finish a libtool library installation in a directory.
19098
finish_cmds=$lt_finish_cmds
19100
# Same as above, but a single script fragment to be evaled but not shown.
19101
finish_eval=$lt_finish_eval
19103
# Take the output of nm and produce a listing of raw symbols and C names.
19104
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19106
# Transform the output of nm in a proper C declaration
19107
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19109
# Transform the output of nm in a C name address pair
19110
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19112
# This is the shared library runtime path variable.
19113
runpath_var=$runpath_var
19115
# This is the shared library path variable.
19116
shlibpath_var=$shlibpath_var
19118
# Is shlibpath searched before the hard-coded library search path?
19119
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19121
# How to hardcode a shared library path into an executable.
19122
hardcode_action=$hardcode_action_GCJ
19124
# Whether we should hardcode library paths into libraries.
19125
hardcode_into_libs=$hardcode_into_libs
19127
# Flag to hardcode \$libdir into a binary during linking.
19128
# This must work even if \$libdir does not exist.
19129
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19131
# If ld is used when linking, flag to hardcode \$libdir into
19132
# a binary during linking. This must work even if \$libdir does
19134
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19136
# Whether we need a single -rpath flag with a separated argument.
19137
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19139
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19140
# resulting binary.
19141
hardcode_direct=$hardcode_direct_GCJ
19143
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19144
# resulting binary.
19145
hardcode_minus_L=$hardcode_minus_L_GCJ
19147
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19148
# the resulting binary.
19149
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19151
# Set to yes if building a shared library automatically hardcodes DIR into the library
19152
# and all subsequent libraries and executables linked against it.
19153
hardcode_automatic=$hardcode_automatic_GCJ
19155
# Variables whose values should be saved in libtool wrapper scripts and
19156
# restored at relink time.
19157
variables_saved_for_relink="$variables_saved_for_relink"
19159
# Whether libtool must link a program against all its dependency libraries.
19160
link_all_deplibs=$link_all_deplibs_GCJ
19162
# Compile-time system search path for libraries
19163
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19165
# Run-time system search path for libraries
19166
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19168
# Fix the shell variable \$srcfile for the compiler.
19169
fix_srcfile_path="$fix_srcfile_path_GCJ"
19171
# Set to yes if exported symbols are required.
19172
always_export_symbols=$always_export_symbols_GCJ
19174
# The commands to list exported symbols.
19175
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19177
# The commands to extract the exported symbol list from a shared archive.
19178
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19180
# Symbols that should not be listed in the preloaded symbols.
19181
exclude_expsyms=$lt_exclude_expsyms_GCJ
19183
# Symbols that must always be exported.
19184
include_expsyms=$lt_include_expsyms_GCJ
19186
# ### END LIBTOOL TAG CONFIG: $tagname
19192
# If there is no Makefile yet, we rely on a make rule to execute
19193
# `config.status --recheck' to rerun these tests and create the
19194
# libtool script then.
19195
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19196
if test -f "$ltmain_in"; then
19197
test -f Makefile && make "$ltmain"
19203
ac_cpp='$CPP $CPPFLAGS'
19204
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19205
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19206
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19219
# Source file extension for RC test sources.
19222
# Object file extension for compiled RC test sources.
19226
# Code to be used in simple compile tests
19227
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19229
# Code to be used in simple link tests
19230
lt_simple_link_test_code="$lt_simple_compile_test_code"
19232
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19234
# If no C compiler was specified, use CC.
19237
# Allow CC to be a program name with arguments.
19241
# save warnings/boilerplate of simple test code
19242
ac_outfile=conftest.$ac_objext
19243
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19244
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19245
_lt_compiler_boilerplate=`cat conftest.err`
19248
ac_outfile=conftest.$ac_objext
19249
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19250
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19251
_lt_linker_boilerplate=`cat conftest.err`
19255
# Allow CC to be a program name with arguments.
19260
for cc_temp in $compiler""; do
19262
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19263
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19268
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19270
lt_cv_prog_compiler_c_o_RC=yes
19272
# The else clause should only fire when bootstrapping the
19273
# libtool distribution, otherwise you forgot to ship ltmain.sh
19274
# with your package, and you will get complaints that there are
19275
# no rules to generate ltmain.sh.
19276
if test -f "$ltmain"; then
19277
# See if we are running on zsh, and set the options which allow our commands through
19278
# without removal of \ escapes.
19279
if test -n "${ZSH_VERSION+set}" ; then
19280
setopt NO_GLOB_SUBST
19282
# Now quote all the things that may contain metacharacters while being
19283
# careful not to overquote the AC_SUBSTed values. We take copies of the
19284
# variables and quote the copies for generation of the libtool script.
19285
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19287
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19288
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19289
deplibs_check_method reload_flag reload_cmds need_locks \
19290
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19291
lt_cv_sys_global_symbol_to_c_name_address \
19292
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19293
old_postinstall_cmds old_postuninstall_cmds \
19297
lt_prog_compiler_wl_RC \
19298
lt_prog_compiler_pic_RC \
19299
lt_prog_compiler_static_RC \
19300
lt_prog_compiler_no_builtin_flag_RC \
19301
export_dynamic_flag_spec_RC \
19302
thread_safe_flag_spec_RC \
19303
whole_archive_flag_spec_RC \
19304
enable_shared_with_static_runtimes_RC \
19305
old_archive_cmds_RC \
19306
old_archive_from_new_cmds_RC \
19307
predep_objects_RC \
19308
postdep_objects_RC \
19311
compiler_lib_search_path_RC \
19313
archive_expsym_cmds_RC \
19314
postinstall_cmds_RC \
19315
postuninstall_cmds_RC \
19316
old_archive_from_expsyms_cmds_RC \
19317
allow_undefined_flag_RC \
19318
no_undefined_flag_RC \
19319
export_symbols_cmds_RC \
19320
hardcode_libdir_flag_spec_RC \
19321
hardcode_libdir_flag_spec_ld_RC \
19322
hardcode_libdir_separator_RC \
19323
hardcode_automatic_RC \
19325
module_expsym_cmds_RC \
19326
lt_cv_prog_compiler_c_o_RC \
19327
exclude_expsyms_RC \
19328
include_expsyms_RC; do
19331
old_archive_cmds_RC | \
19332
old_archive_from_new_cmds_RC | \
19333
archive_cmds_RC | \
19334
archive_expsym_cmds_RC | \
19336
module_expsym_cmds_RC | \
19337
old_archive_from_expsyms_cmds_RC | \
19338
export_symbols_cmds_RC | \
19339
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19340
postinstall_cmds | postuninstall_cmds | \
19341
old_postinstall_cmds | old_postuninstall_cmds | \
19342
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19343
# Double-quote double-evaled strings.
19344
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19347
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19353
*'\$0 --fallback-echo"')
19354
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19360
cat <<__EOF__ >> "$cfgfile"
19361
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19365
# Shell to use when invoking shell scripts.
19368
# Whether or not to build shared libraries.
19369
build_libtool_libs=$enable_shared
19371
# Whether or not to build static libraries.
19372
build_old_libs=$enable_static
19374
# Whether or not to add -lc for building shared libraries.
19375
build_libtool_need_lc=$archive_cmds_need_lc_RC
19377
# Whether or not to disallow shared libs when runtime libs are static
19378
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19380
# Whether or not to optimize for fast installation.
19381
fast_install=$enable_fast_install
19384
host_alias=$host_alias
19388
# The build system.
19389
build_alias=$build_alias
19393
# An echo program that does not interpret backslashes.
19398
AR_FLAGS=$lt_AR_FLAGS
19403
# A language-specific compiler.
19406
# Is the compiler the GNU C compiler?
19412
# The linker used to build libraries.
19415
# Whether we need hard or soft links.
19418
# A BSD-compatible nm program.
19421
# A symbol stripping program
19424
# Used to examine libraries when file_magic_cmd begins "file"
19425
MAGIC_CMD=$MAGIC_CMD
19427
# Used on cygwin: DLL creation program.
19430
# Used on cygwin: object dumper.
19433
# Used on cygwin: assembler.
19436
# The name of the directory that contains temporary libtool files.
19439
# How to create reloadable object files.
19440
reload_flag=$lt_reload_flag
19441
reload_cmds=$lt_reload_cmds
19443
# How to pass a linker flag through the compiler.
19444
wl=$lt_lt_prog_compiler_wl_RC
19446
# Object file suffix (normally "o").
19447
objext="$ac_objext"
19449
# Old archive suffix (normally "a").
19452
# Shared library suffix (normally ".so").
19453
shrext_cmds='$shrext_cmds'
19455
# Executable file suffix (normally "").
19458
# Additional compiler flags for building library objects.
19459
pic_flag=$lt_lt_prog_compiler_pic_RC
19462
# What is the maximum length of a command?
19463
max_cmd_len=$lt_cv_sys_max_cmd_len
19465
# Does compiler simultaneously support -c and -o options?
19466
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19468
# Must we lock files when doing compilation?
19469
need_locks=$lt_need_locks
19471
# Do we need the lib prefix for modules?
19472
need_lib_prefix=$need_lib_prefix
19474
# Do we need a version for libraries?
19475
need_version=$need_version
19477
# Whether dlopen is supported.
19478
dlopen_support=$enable_dlopen
19480
# Whether dlopen of programs is supported.
19481
dlopen_self=$enable_dlopen_self
19483
# Whether dlopen of statically linked programs is supported.
19484
dlopen_self_static=$enable_dlopen_self_static
19486
# Compiler flag to prevent dynamic linking.
19487
link_static_flag=$lt_lt_prog_compiler_static_RC
19489
# Compiler flag to turn off builtin functions.
19490
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19492
# Compiler flag to allow reflexive dlopens.
19493
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19495
# Compiler flag to generate shared objects directly from archives.
19496
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19498
# Compiler flag to generate thread-safe objects.
19499
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19501
# Library versioning type.
19502
version_type=$version_type
19504
# Format of library name prefix.
19505
libname_spec=$lt_libname_spec
19507
# List of archive names. First name is the real one, the rest are links.
19508
# The last name is the one that the linker finds with -lNAME.
19509
library_names_spec=$lt_library_names_spec
19511
# The coded name of the library, if different from the real name.
19512
soname_spec=$lt_soname_spec
19514
# Commands used to build and install an old-style archive.
19516
old_archive_cmds=$lt_old_archive_cmds_RC
19517
old_postinstall_cmds=$lt_old_postinstall_cmds
19518
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19520
# Create an old-style archive from a shared archive.
19521
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19523
# Create a temporary old-style archive to link instead of a shared archive.
19524
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19526
# Commands used to build and install a shared archive.
19527
archive_cmds=$lt_archive_cmds_RC
19528
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19529
postinstall_cmds=$lt_postinstall_cmds
19530
postuninstall_cmds=$lt_postuninstall_cmds
19532
# Commands used to build a loadable module (assumed same as above if empty)
19533
module_cmds=$lt_module_cmds_RC
19534
module_expsym_cmds=$lt_module_expsym_cmds_RC
19536
# Commands to strip libraries.
19537
old_striplib=$lt_old_striplib
19538
striplib=$lt_striplib
19540
# Dependencies to place before the objects being linked to create a
19542
predep_objects=$lt_predep_objects_RC
19544
# Dependencies to place after the objects being linked to create a
19546
postdep_objects=$lt_postdep_objects_RC
19548
# Dependencies to place before the objects being linked to create a
19550
predeps=$lt_predeps_RC
19552
# Dependencies to place after the objects being linked to create a
19554
postdeps=$lt_postdeps_RC
19556
# The library search path used internally by the compiler when linking
19557
# a shared library.
19558
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19560
# Method to check whether dependent libraries are shared objects.
19561
deplibs_check_method=$lt_deplibs_check_method
19563
# Command to use when deplibs_check_method == file_magic.
19564
file_magic_cmd=$lt_file_magic_cmd
19566
# Flag that allows shared libraries with undefined symbols to be built.
19567
allow_undefined_flag=$lt_allow_undefined_flag_RC
19569
# Flag that forces no undefined symbols.
19570
no_undefined_flag=$lt_no_undefined_flag_RC
19572
# Commands used to finish a libtool library installation in a directory.
19573
finish_cmds=$lt_finish_cmds
19575
# Same as above, but a single script fragment to be evaled but not shown.
19576
finish_eval=$lt_finish_eval
19578
# Take the output of nm and produce a listing of raw symbols and C names.
19579
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19581
# Transform the output of nm in a proper C declaration
19582
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19584
# Transform the output of nm in a C name address pair
19585
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19587
# This is the shared library runtime path variable.
19588
runpath_var=$runpath_var
19590
# This is the shared library path variable.
19591
shlibpath_var=$shlibpath_var
19593
# Is shlibpath searched before the hard-coded library search path?
19594
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19596
# How to hardcode a shared library path into an executable.
19597
hardcode_action=$hardcode_action_RC
19599
# Whether we should hardcode library paths into libraries.
19600
hardcode_into_libs=$hardcode_into_libs
19602
# Flag to hardcode \$libdir into a binary during linking.
19603
# This must work even if \$libdir does not exist.
19604
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19606
# If ld is used when linking, flag to hardcode \$libdir into
19607
# a binary during linking. This must work even if \$libdir does
19609
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19611
# Whether we need a single -rpath flag with a separated argument.
19612
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19614
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19615
# resulting binary.
19616
hardcode_direct=$hardcode_direct_RC
19618
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19619
# resulting binary.
19620
hardcode_minus_L=$hardcode_minus_L_RC
19622
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19623
# the resulting binary.
19624
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19626
# Set to yes if building a shared library automatically hardcodes DIR into the library
19627
# and all subsequent libraries and executables linked against it.
19628
hardcode_automatic=$hardcode_automatic_RC
19630
# Variables whose values should be saved in libtool wrapper scripts and
19631
# restored at relink time.
19632
variables_saved_for_relink="$variables_saved_for_relink"
19634
# Whether libtool must link a program against all its dependency libraries.
19635
link_all_deplibs=$link_all_deplibs_RC
19637
# Compile-time system search path for libraries
19638
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19640
# Run-time system search path for libraries
19641
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19643
# Fix the shell variable \$srcfile for the compiler.
19644
fix_srcfile_path="$fix_srcfile_path_RC"
19646
# Set to yes if exported symbols are required.
19647
always_export_symbols=$always_export_symbols_RC
19649
# The commands to list exported symbols.
19650
export_symbols_cmds=$lt_export_symbols_cmds_RC
19652
# The commands to extract the exported symbol list from a shared archive.
19653
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19655
# Symbols that should not be listed in the preloaded symbols.
19656
exclude_expsyms=$lt_exclude_expsyms_RC
19658
# Symbols that must always be exported.
19659
include_expsyms=$lt_include_expsyms_RC
19661
# ### END LIBTOOL TAG CONFIG: $tagname
19667
# If there is no Makefile yet, we rely on a make rule to execute
19668
# `config.status --recheck' to rerun these tests and create the
19669
# libtool script then.
19670
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19671
if test -f "$ltmain_in"; then
19672
test -f Makefile && make "$ltmain"
19678
ac_cpp='$CPP $CPPFLAGS'
19679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19689
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19690
{ (exit 1); exit 1; }; }
19694
# Append the new tag name to the list of available tags.
19695
if test -n "$tagname" ; then
19696
available_tags="$available_tags $tagname"
19702
# Now substitute the updated list of available tags.
19703
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19704
mv "${ofile}T" "$ofile"
19708
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19709
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19710
{ (exit 1); exit 1; }; }
19716
# This can be used to rebuild libtool when needed
19717
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19719
# Always use our own libtool.
19720
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19722
# Prevent multiple expansion
19745
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19746
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19747
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19748
echo $ECHO_N "(cached) $ECHO_C" >&6
19750
ac_check_lib_save_LIBS=$LIBS
19751
LIBS="-lcposix $LIBS"
19752
cat >conftest.$ac_ext <<_ACEOF
19755
cat confdefs.h >>conftest.$ac_ext
19756
cat >>conftest.$ac_ext <<_ACEOF
19757
/* end confdefs.h. */
19759
/* Override any gcc2 internal prototype to avoid an error. */
19763
/* We use char because int might match the return type of a gcc2
19764
builtin and then its argument prototype would still apply. */
19774
rm -f conftest.$ac_objext conftest$ac_exeext
19775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19776
(eval $ac_link) 2>conftest.er1
19778
grep -v '^ *+' conftest.er1 >conftest.err
19780
cat conftest.err >&5
19781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782
(exit $ac_status); } &&
19783
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785
(eval $ac_try) 2>&5
19787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788
(exit $ac_status); }; } &&
19789
{ ac_try='test -s conftest$ac_exeext'
19790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791
(eval $ac_try) 2>&5
19793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794
(exit $ac_status); }; }; then
19795
ac_cv_lib_cposix_strerror=yes
19797
echo "$as_me: failed program was:" >&5
19798
sed 's/^/| /' conftest.$ac_ext >&5
19800
ac_cv_lib_cposix_strerror=no
19802
rm -f conftest.err conftest.$ac_objext \
19803
conftest$ac_exeext conftest.$ac_ext
19804
LIBS=$ac_check_lib_save_LIBS
19806
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19807
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19808
if test $ac_cv_lib_cposix_strerror = yes; then
19809
LIBS="$LIBS -lcposix"
19814
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19815
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19816
if test "${ac_cv_c_bigendian+set}" = set; then
19817
echo $ECHO_N "(cached) $ECHO_C" >&6
19819
# See if sys/param.h defines the BYTE_ORDER macro.
19820
cat >conftest.$ac_ext <<_ACEOF
19823
cat confdefs.h >>conftest.$ac_ext
19824
cat >>conftest.$ac_ext <<_ACEOF
19825
/* end confdefs.h. */
19826
#include <sys/types.h>
19827
#include <sys/param.h>
19832
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19833
bogus endian macros
19840
rm -f conftest.$ac_objext
19841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19842
(eval $ac_compile) 2>conftest.er1
19844
grep -v '^ *+' conftest.er1 >conftest.err
19846
cat conftest.err >&5
19847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848
(exit $ac_status); } &&
19849
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851
(eval $ac_try) 2>&5
19853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854
(exit $ac_status); }; } &&
19855
{ ac_try='test -s conftest.$ac_objext'
19856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857
(eval $ac_try) 2>&5
19859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860
(exit $ac_status); }; }; then
19861
# It does; now see whether it defined to BIG_ENDIAN or not.
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
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
ac_cv_c_bigendian=yes
19905
echo "$as_me: failed program was:" >&5
19906
sed 's/^/| /' conftest.$ac_ext >&5
19908
ac_cv_c_bigendian=no
19910
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19912
echo "$as_me: failed program was:" >&5
19913
sed 's/^/| /' conftest.$ac_ext >&5
19915
# It does not; compile a test program.
19916
if test "$cross_compiling" = yes; then
19917
# try to guess the endianness by grepping values into an object file
19918
ac_cv_c_bigendian=unknown
19919
cat >conftest.$ac_ext <<_ACEOF
19922
cat confdefs.h >>conftest.$ac_ext
19923
cat >>conftest.$ac_ext <<_ACEOF
19924
/* end confdefs.h. */
19925
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19926
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19927
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19928
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19929
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19930
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19934
_ascii (); _ebcdic ();
19939
rm -f conftest.$ac_objext
19940
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19941
(eval $ac_compile) 2>conftest.er1
19943
grep -v '^ *+' conftest.er1 >conftest.err
19945
cat conftest.err >&5
19946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947
(exit $ac_status); } &&
19948
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950
(eval $ac_try) 2>&5
19952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953
(exit $ac_status); }; } &&
19954
{ ac_try='test -s conftest.$ac_objext'
19955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956
(eval $ac_try) 2>&5
19958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959
(exit $ac_status); }; }; then
19960
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19961
ac_cv_c_bigendian=yes
19963
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19964
if test "$ac_cv_c_bigendian" = unknown; then
19965
ac_cv_c_bigendian=no
19967
# finding both strings is unlikely to happen, but who knows?
19968
ac_cv_c_bigendian=unknown
19972
echo "$as_me: failed program was:" >&5
19973
sed 's/^/| /' conftest.$ac_ext >&5
19976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19978
cat >conftest.$ac_ext <<_ACEOF
19981
cat confdefs.h >>conftest.$ac_ext
19982
cat >>conftest.$ac_ext <<_ACEOF
19983
/* end confdefs.h. */
19987
/* Are we little or big endian? From Harbison&Steele. */
19991
char c[sizeof (long)];
19994
exit (u.c[sizeof (long) - 1] == 1);
19997
rm -f conftest$ac_exeext
19998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999
(eval $ac_link) 2>&5
20001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004
(eval $ac_try) 2>&5
20006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007
(exit $ac_status); }; }; then
20008
ac_cv_c_bigendian=no
20010
echo "$as_me: program exited with status $ac_status" >&5
20011
echo "$as_me: failed program was:" >&5
20012
sed 's/^/| /' conftest.$ac_ext >&5
20014
( exit $ac_status )
20015
ac_cv_c_bigendian=yes
20017
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20022
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20023
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20024
case $ac_cv_c_bigendian in
20027
cat >>confdefs.h <<\_ACEOF
20028
@%:@define WORDS_BIGENDIAN 1
20034
{ { echo "$as_me:$LINENO: error: unknown endianness
20035
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20036
echo "$as_me: error: unknown endianness
20037
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20038
{ (exit 1); exit 1; }; } ;;
20041
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20042
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20043
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20044
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20045
echo $ECHO_N "(cached) $ECHO_C" >&6
20047
cat >conftest.make <<\_ACEOF
20049
@echo 'ac_maketemp="$(MAKE)"'
20051
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20052
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20053
if test -n "$ac_maketemp"; then
20054
eval ac_cv_prog_make_${ac_make}_set=yes
20056
eval ac_cv_prog_make_${ac_make}_set=no
20058
rm -f conftest.make
20060
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20061
echo "$as_me:$LINENO: result: yes" >&5
20062
echo "${ECHO_T}yes" >&6
20065
echo "$as_me:$LINENO: result: no" >&5
20066
echo "${ECHO_T}no" >&6
20067
SET_MAKE="MAKE=${MAKE-make}"
20070
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20071
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20072
if test "${ac_cv_header_stdc+set}" = set; then
20073
echo $ECHO_N "(cached) $ECHO_C" >&6
20075
cat >conftest.$ac_ext <<_ACEOF
20078
cat confdefs.h >>conftest.$ac_ext
20079
cat >>conftest.$ac_ext <<_ACEOF
20080
/* end confdefs.h. */
20081
#include <stdlib.h>
20082
#include <stdarg.h>
20083
#include <string.h>
20094
rm -f conftest.$ac_objext
20095
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096
(eval $ac_compile) 2>conftest.er1
20098
grep -v '^ *+' conftest.er1 >conftest.err
20100
cat conftest.err >&5
20101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102
(exit $ac_status); } &&
20103
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105
(eval $ac_try) 2>&5
20107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108
(exit $ac_status); }; } &&
20109
{ ac_try='test -s conftest.$ac_objext'
20110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111
(eval $ac_try) 2>&5
20113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114
(exit $ac_status); }; }; then
20115
ac_cv_header_stdc=yes
20117
echo "$as_me: failed program was:" >&5
20118
sed 's/^/| /' conftest.$ac_ext >&5
20120
ac_cv_header_stdc=no
20122
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20124
if test $ac_cv_header_stdc = yes; then
20125
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20126
cat >conftest.$ac_ext <<_ACEOF
20129
cat confdefs.h >>conftest.$ac_ext
20130
cat >>conftest.$ac_ext <<_ACEOF
20131
/* end confdefs.h. */
20132
#include <string.h>
20135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20136
$EGREP "memchr" >/dev/null 2>&1; then
20139
ac_cv_header_stdc=no
20145
if test $ac_cv_header_stdc = yes; then
20146
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20147
cat >conftest.$ac_ext <<_ACEOF
20150
cat confdefs.h >>conftest.$ac_ext
20151
cat >>conftest.$ac_ext <<_ACEOF
20152
/* end confdefs.h. */
20153
#include <stdlib.h>
20156
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157
$EGREP "free" >/dev/null 2>&1; then
20160
ac_cv_header_stdc=no
20166
if test $ac_cv_header_stdc = yes; then
20167
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20168
if test "$cross_compiling" = yes; then
20171
cat >conftest.$ac_ext <<_ACEOF
20174
cat confdefs.h >>conftest.$ac_ext
20175
cat >>conftest.$ac_ext <<_ACEOF
20176
/* end confdefs.h. */
20178
#if ((' ' & 0x0FF) == 0x020)
20179
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20180
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20182
# define ISLOWER(c) \
20183
(('a' <= (c) && (c) <= 'i') \
20184
|| ('j' <= (c) && (c) <= 'r') \
20185
|| ('s' <= (c) && (c) <= 'z'))
20186
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20189
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20194
for (i = 0; i < 256; i++)
20195
if (XOR (islower (i), ISLOWER (i))
20196
|| toupper (i) != TOUPPER (i))
20201
rm -f conftest$ac_exeext
20202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203
(eval $ac_link) 2>&5
20205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208
(eval $ac_try) 2>&5
20210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211
(exit $ac_status); }; }; then
20214
echo "$as_me: program exited with status $ac_status" >&5
20215
echo "$as_me: failed program was:" >&5
20216
sed 's/^/| /' conftest.$ac_ext >&5
20218
( exit $ac_status )
20219
ac_cv_header_stdc=no
20221
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20225
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20226
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20227
if test $ac_cv_header_stdc = yes; then
20229
cat >>confdefs.h <<\_ACEOF
20230
@%:@define STDC_HEADERS 1
20237
# Check whether --with-opensp-includes or --without-opensp-includes was given.
20238
if test "${with_opensp_includes+set}" = set; then
20239
withval="$with_opensp_includes"
20240
OPENSPINCLUDES="$with_opensp_includes"
20246
# Check whether --with-opensp-libs or --without-opensp-libs was given.
20247
if test "${with_opensp_libs+set}" = set; then
20248
withval="$with_opensp_libs"
20249
OPENSPLIBPATH="$with_opensp_libs"
20251
OPENSPLIBPATH="/usr/lib"
20254
echo $OPENSPLIBPATH
20255
for d in /usr/include/OpenSP /usr/local/include/OpenSP /usr/include/sp/generic /usr/local/include/sp/generic; do
20256
if test "x$OPENSPINCLUDES" = x; then
20257
save_CPPFLAGS="$CPPFLAGS"
20258
CPPFLAGS="$CPPFLAGS -I$d"
20259
echo "$as_me:$LINENO: checking for ParserEventGenerator.h in $d" >&5
20260
echo $ECHO_N "checking for ParserEventGenerator.h in $d... $ECHO_C" >&6
20261
cat >conftest.$ac_ext <<_ACEOF
20264
cat confdefs.h >>conftest.$ac_ext
20265
cat >>conftest.$ac_ext <<_ACEOF
20266
/* end confdefs.h. */
20267
#include <ParserEventGeneratorKit.h>
20269
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20270
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20272
grep -v '^ *+' conftest.er1 >conftest.err
20274
cat conftest.err >&5
20275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276
(exit $ac_status); } >/dev/null; then
20277
if test -s conftest.err; then
20278
ac_cpp_err=$ac_c_preproc_warn_flag
20279
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20286
if test -z "$ac_cpp_err"; then
20287
echo "$as_me:$LINENO: result: yes" >&5
20288
echo "${ECHO_T}yes" >&6; OPENSPINCLUDES=$d
20290
echo "$as_me: failed program was:" >&5
20291
sed 's/^/| /' conftest.$ac_ext >&5
20293
echo "$as_me:$LINENO: result: no" >&5
20294
echo "${ECHO_T}no" >&6
20296
rm -f conftest.err conftest.$ac_ext
20297
CPPFLAGS="$save_CPPFLAGS"
20302
##Detect if OpenSP was compiled with SP_MULTI_BYTE, and put the result in config.h
20306
##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
20307
## So --with-opensp-multibyte is now the default.
20312
# Check whether --with-no-opensp-multibyte or --without-no-opensp-multibyte was given.
20313
if test "${with_no_opensp_multibyte+set}" = set; then
20314
withval="$with_no_opensp_multibyte"
20318
cat >>confdefs.h <<\_ACEOF
20319
@%:@define SP_MULTI_BYTE 1
20324
##if test x"$SP_MULTI_BYTE" == x ;then
20325
##CHECK_SP_MULTI_BYTE
20328
ac_save_CPPFLAGS="$CPPFLAGS"
20329
if test "x$OPENSPINCLUDES" != x ; then
20330
CPPFLAGS="-I$OPENSPINCLUDES $CPPFLAGS"
20333
ac_cpp='$CXXCPP $CPPFLAGS'
20334
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20341
for ac_header in ParserEventGeneratorKit.h SGMLApplication.h EventGenerator.h
20343
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20344
echo "$as_me:$LINENO: checking for $ac_header" >&5
20345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20346
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20347
echo $ECHO_N "(cached) $ECHO_C" >&6
20349
cat >conftest.$ac_ext <<_ACEOF
20352
cat confdefs.h >>conftest.$ac_ext
20353
cat >>conftest.$ac_ext <<_ACEOF
20354
/* end confdefs.h. */
20357
@%:@include <$ac_header>
20359
rm -f conftest.$ac_objext
20360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361
(eval $ac_compile) 2>conftest.er1
20363
grep -v '^ *+' conftest.er1 >conftest.err
20365
cat conftest.err >&5
20366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367
(exit $ac_status); } &&
20368
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370
(eval $ac_try) 2>&5
20372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
(exit $ac_status); }; } &&
20374
{ ac_try='test -s conftest.$ac_objext'
20375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376
(eval $ac_try) 2>&5
20378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379
(exit $ac_status); }; }; then
20380
eval "$as_ac_Header=yes"
20382
echo "$as_me: failed program was:" >&5
20383
sed 's/^/| /' conftest.$ac_ext >&5
20385
eval "$as_ac_Header=no"
20387
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20391
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20392
cat >>confdefs.h <<_ACEOF
20393
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20397
{ { echo "$as_me:$LINENO: error: OpenSP includes not found" >&5
20398
echo "$as_me: error: OpenSP includes not found" >&2;}
20399
{ (exit 1); exit 1; }; }
20405
OPENSPLIBS="-L$OPENSPLIBPATH -losp"
20406
ac_save_LIBS="$LIBS"
20407
LIBS="$OPENSPLIBS $LIBS"
20409
echo "$as_me:$LINENO: checking for libosp" >&5
20410
echo $ECHO_N "checking for libosp... $ECHO_C" >&6
20411
##dnl This is code from the opensp documentation, I modified it a little
20412
##dnl It is really just a link test rather than a run test, it does nothing
20414
ac_cpp='$CXXCPP $CPPFLAGS'
20415
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20416
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20417
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20419
if test "$cross_compiling" = yes; then
20420
echo "$as_me:$LINENO: result: unknown, assumed OK" >&5
20421
echo "${ECHO_T}unknown, assumed OK" >&6
20423
cat >conftest.$ac_ext <<_ACEOF
20426
cat confdefs.h >>conftest.$ac_ext
20427
cat >>conftest.$ac_ext <<_ACEOF
20428
/* end confdefs.h. */
20430
#include "ParserEventGeneratorKit.h"
20431
using namespace std;
20432
class OutlineApplication : public SGMLApplication {
20434
OutlineApplication() { }
20435
void startElement(const StartElementEvent &event) {
20437
void endElement(const EndElementEvent &) { }
20440
int main(int argc, char **argv)
20442
ParserEventGeneratorKit parserKit;
20443
EventGenerator *egp = parserKit.makeEventGenerator(argc - 1, argv + 1);
20444
OutlineApplication app;
20448
rm -f conftest$ac_exeext
20449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450
(eval $ac_link) 2>&5
20452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455
(eval $ac_try) 2>&5
20457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458
(exit $ac_status); }; }; then
20459
echo "$as_me:$LINENO: result: yes" >&5
20460
echo "${ECHO_T}yes" >&6
20462
echo "$as_me: program exited with status $ac_status" >&5
20463
echo "$as_me: failed program was:" >&5
20464
sed 's/^/| /' conftest.$ac_ext >&5
20466
( exit $ac_status )
20467
echo "$as_me:$LINENO: result: no" >&5
20468
echo "${ECHO_T}no" >&6
20469
{ { echo "$as_me:$LINENO: error: unable to link a test program, is OpenSP installed?" >&5
20470
echo "$as_me: error: unable to link a test program, is OpenSP installed?" >&2;}
20471
{ (exit 1); exit 1; }; }
20473
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20476
CPPFLAGS="$ac_save_CPPFLAGS"
20477
LIBS="$ac_save_LIBS"
20480
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
20481
# ----------------------------------------------------------------------------
20484
# check for doxygen
20485
# ----------------------------------------------------------------------------
20487
# Check whether --enable-doxygen or --disable-doxygen was given.
20488
if test "${enable_doxygen+set}" = set; then
20489
enableval="$enable_doxygen"
20492
# Check whether --enable-dot or --disable-dot was given.
20493
if test "${enable_dot+set}" = set; then
20494
enableval="$enable_dot"
20497
# Check whether --enable-html-docs or --disable-html-docs was given.
20498
if test "${enable_html_docs+set}" = set; then
20499
enableval="$enable_html_docs"
20502
enable_html_docs=yes
20504
# Check whether --enable-latex-docs or --disable-latex-docs was given.
20505
if test "${enable_latex_docs+set}" = set; then
20506
enableval="$enable_latex_docs"
20509
enable_latex_docs=no
20511
if test "x$enable_doxygen" = xno; then
20514
# Extract the first word of "doxygen", so it can be a program name with args.
20515
set dummy doxygen; ac_word=$2
20516
echo "$as_me:$LINENO: checking for $ac_word" >&5
20517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20518
if test "${ac_cv_path_DOXYGEN+set}" = set; then
20519
echo $ECHO_N "(cached) $ECHO_C" >&6
20523
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527
for as_dir in $PATH
20530
test -z "$as_dir" && as_dir=.
20531
for ac_exec_ext in '' $ac_executable_extensions; do
20532
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20533
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
20534
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20543
DOXYGEN=$ac_cv_path_DOXYGEN
20545
if test -n "$DOXYGEN"; then
20546
echo "$as_me:$LINENO: result: $DOXYGEN" >&5
20547
echo "${ECHO_T}$DOXYGEN" >&6
20549
echo "$as_me:$LINENO: result: no" >&5
20550
echo "${ECHO_T}no" >&6
20553
if test x$DOXYGEN = x; then
20554
if test "x$enable_doxygen" = xyes; then
20555
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5
20556
echo "$as_me: error: could not find doxygen" >&2;}
20557
{ (exit 1); exit 1; }; }
20562
# Extract the first word of "dot", so it can be a program name with args.
20563
set dummy dot; ac_word=$2
20564
echo "$as_me:$LINENO: checking for $ac_word" >&5
20565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20566
if test "${ac_cv_path_DOT+set}" = set; then
20567
echo $ECHO_N "(cached) $ECHO_C" >&6
20571
ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20575
for as_dir in $PATH
20578
test -z "$as_dir" && as_dir=.
20579
for ac_exec_ext in '' $ac_executable_extensions; do
20580
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20581
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20582
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20591
DOT=$ac_cv_path_DOT
20593
if test -n "$DOT"; then
20594
echo "$as_me:$LINENO: result: $DOT" >&5
20595
echo "${ECHO_T}$DOT" >&6
20597
echo "$as_me:$LINENO: result: no" >&5
20598
echo "${ECHO_T}no" >&6
20605
if test x$enable_doc = xyes; then
20614
if test x$DOT = x; then
20615
if test "x$enable_dot" = xyes; then
20616
{ { echo "$as_me:$LINENO: error: could not find dot" >&5
20617
echo "$as_me: error: could not find dot" >&2;}
20618
{ (exit 1); exit 1; }; }
20626
if test x$enable_doc = xtrue; then
20627
ENABLE_DOXYGEN_TRUE=
20628
ENABLE_DOXYGEN_FALSE='#'
20630
ENABLE_DOXYGEN_TRUE='#'
20631
ENABLE_DOXYGEN_FALSE=
20639
# Check if getopt_long is available
20640
# ----------------------------------------------------------------------------
20644
# clean out junk possibly left behind by a previous configuration
20646
# Check for getopt_long support
20648
for ac_header in getopt.h
20650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20651
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20652
echo "$as_me:$LINENO: checking for $ac_header" >&5
20653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20654
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20655
echo $ECHO_N "(cached) $ECHO_C" >&6
20657
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20658
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20660
# Is the header compilable?
20661
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20662
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20663
cat >conftest.$ac_ext <<_ACEOF
20666
cat confdefs.h >>conftest.$ac_ext
20667
cat >>conftest.$ac_ext <<_ACEOF
20668
/* end confdefs.h. */
20669
$ac_includes_default
20670
@%:@include <$ac_header>
20672
rm -f conftest.$ac_objext
20673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20674
(eval $ac_compile) 2>conftest.er1
20676
grep -v '^ *+' conftest.er1 >conftest.err
20678
cat conftest.err >&5
20679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680
(exit $ac_status); } &&
20681
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683
(eval $ac_try) 2>&5
20685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686
(exit $ac_status); }; } &&
20687
{ ac_try='test -s conftest.$ac_objext'
20688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689
(eval $ac_try) 2>&5
20691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692
(exit $ac_status); }; }; then
20693
ac_header_compiler=yes
20695
echo "$as_me: failed program was:" >&5
20696
sed 's/^/| /' conftest.$ac_ext >&5
20698
ac_header_compiler=no
20700
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20701
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20702
echo "${ECHO_T}$ac_header_compiler" >&6
20704
# Is the header present?
20705
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20706
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20707
cat >conftest.$ac_ext <<_ACEOF
20710
cat confdefs.h >>conftest.$ac_ext
20711
cat >>conftest.$ac_ext <<_ACEOF
20712
/* end confdefs.h. */
20713
@%:@include <$ac_header>
20715
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20716
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20723
if test -s conftest.err; then
20724
ac_cpp_err=$ac_cxx_preproc_warn_flag
20725
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20732
if test -z "$ac_cpp_err"; then
20733
ac_header_preproc=yes
20735
echo "$as_me: failed program was:" >&5
20736
sed 's/^/| /' conftest.$ac_ext >&5
20738
ac_header_preproc=no
20740
rm -f conftest.err conftest.$ac_ext
20741
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20742
echo "${ECHO_T}$ac_header_preproc" >&6
20744
# So? What about this header?
20745
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20747
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20748
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20749
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20750
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20751
ac_header_preproc=yes
20754
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20755
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20756
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20757
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20758
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20759
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20760
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20761
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20762
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20763
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20764
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20765
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20768
@%:@@%:@ ------------------------------------------ @%:@@%:@
20769
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20770
@%:@@%:@ ------------------------------------------ @%:@@%:@
20773
sed "s/^/$as_me: WARNING: /" >&2
20776
echo "$as_me:$LINENO: checking for $ac_header" >&5
20777
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20778
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20779
echo $ECHO_N "(cached) $ECHO_C" >&6
20781
eval "$as_ac_Header=\$ac_header_preproc"
20783
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20784
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20787
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20788
cat >>confdefs.h <<_ACEOF
20789
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20797
for ac_func in getopt_long
20799
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20800
echo "$as_me:$LINENO: checking for $ac_func" >&5
20801
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20802
if eval "test \"\${$as_ac_var+set}\" = set"; then
20803
echo $ECHO_N "(cached) $ECHO_C" >&6
20805
cat >conftest.$ac_ext <<_ACEOF
20808
cat confdefs.h >>conftest.$ac_ext
20809
cat >>conftest.$ac_ext <<_ACEOF
20810
/* end confdefs.h. */
20811
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20812
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20813
#define $ac_func innocuous_$ac_func
20815
/* System header to define __stub macros and hopefully few prototypes,
20816
which can conflict with char $ac_func (); below.
20817
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20818
<limits.h> exists even on freestanding compilers. */
20821
# include <limits.h>
20823
# include <assert.h>
20828
/* Override any gcc2 internal prototype to avoid an error. */
20833
/* We use char because int might match the return type of a gcc2
20834
builtin and then its argument prototype would still apply. */
20836
/* The GNU C library defines this for functions which it implements
20837
to always fail with ENOSYS. Some functions are actually named
20838
something starting with __ and the normal name is an alias. */
20839
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20842
char (*f) () = $ac_func;
20851
return f != $ac_func;
20856
rm -f conftest.$ac_objext conftest$ac_exeext
20857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858
(eval $ac_link) 2>conftest.er1
20860
grep -v '^ *+' conftest.er1 >conftest.err
20862
cat conftest.err >&5
20863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864
(exit $ac_status); } &&
20865
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867
(eval $ac_try) 2>&5
20869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870
(exit $ac_status); }; } &&
20871
{ ac_try='test -s conftest$ac_exeext'
20872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873
(eval $ac_try) 2>&5
20875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876
(exit $ac_status); }; }; then
20877
eval "$as_ac_var=yes"
20879
echo "$as_me: failed program was:" >&5
20880
sed 's/^/| /' conftest.$ac_ext >&5
20882
eval "$as_ac_var=no"
20884
rm -f conftest.err conftest.$ac_objext \
20885
conftest$ac_exeext conftest.$ac_ext
20887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20888
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20889
if test `eval echo '${'$as_ac_var'}'` = yes; then
20890
cat >>confdefs.h <<_ACEOF
20891
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20895
# FreeBSD has a gnugetopt library for this
20896
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
20897
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
20898
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
20899
echo $ECHO_N "(cached) $ECHO_C" >&6
20901
ac_check_lib_save_LIBS=$LIBS
20902
LIBS="-lgnugetopt $LIBS"
20903
cat >conftest.$ac_ext <<_ACEOF
20906
cat confdefs.h >>conftest.$ac_ext
20907
cat >>conftest.$ac_ext <<_ACEOF
20908
/* end confdefs.h. */
20910
/* Override any gcc2 internal prototype to avoid an error. */
20914
/* We use char because int might match the return type of a gcc2
20915
builtin and then its argument prototype would still apply. */
20916
char getopt_long ();
20925
rm -f conftest.$ac_objext conftest$ac_exeext
20926
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927
(eval $ac_link) 2>conftest.er1
20929
grep -v '^ *+' conftest.er1 >conftest.err
20931
cat conftest.err >&5
20932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933
(exit $ac_status); } &&
20934
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936
(eval $ac_try) 2>&5
20938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939
(exit $ac_status); }; } &&
20940
{ ac_try='test -s conftest$ac_exeext'
20941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942
(eval $ac_try) 2>&5
20944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945
(exit $ac_status); }; }; then
20946
ac_cv_lib_gnugetopt_getopt_long=yes
20948
echo "$as_me: failed program was:" >&5
20949
sed 's/^/| /' conftest.$ac_ext >&5
20951
ac_cv_lib_gnugetopt_getopt_long=no
20953
rm -f conftest.err conftest.$ac_objext \
20954
conftest$ac_exeext conftest.$ac_ext
20955
LIBS=$ac_check_lib_save_LIBS
20957
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
20958
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
20959
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
20960
cat >>confdefs.h <<\_ACEOF
20961
@%:@define HAVE_GETOPT_LONG 1
20965
# use the GNU replacement
20966
case $LIB@&t@OBJS in
20967
"getopt.$ac_objext" | \
20968
*" getopt.$ac_objext" | \
20969
"getopt.$ac_objext "* | \
20970
*" getopt.$ac_objext "* ) ;;
20971
*) LIB@&t@OBJS="$LIB@&t@OBJS getopt.$ac_objext" ;;
20974
case $LIB@&t@OBJS in
20975
"getopt1.$ac_objext" | \
20976
*" getopt1.$ac_objext" | \
20977
"getopt1.$ac_objext "* | \
20978
*" getopt1.$ac_objext "* ) ;;
20979
*) LIB@&t@OBJS="$LIB@&t@OBJS getopt1.$ac_objext" ;;
20982
ac_config_links="$ac_config_links lib/getopt.h:lib/gnugetopt.h"
20991
if test "$ac_cv_func_getopt_long" = no ; then
20992
NO_GETOPTLONG_TRUE=
20993
NO_GETOPTLONG_FALSE='#'
20995
NO_GETOPTLONG_TRUE='#'
20996
NO_GETOPTLONG_FALSE=
21000
# gengetopt command line parser generation
21001
# Check whether --enable-gengetopt or --disable-gengetopt was given.
21002
if test "${enable_gengetopt+set}" = set; then
21003
enableval="$enable_gengetopt"
21004
case "${enableval}" in
21005
yes) gengetopt=yes ;;
21006
no) gengetopt=no ;;
21007
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-gengetopt" >&5
21008
echo "$as_me: error: bad value ${enableval} for --disable-gengetopt" >&2;}
21009
{ (exit 1); exit 1; }; } ;;
21015
if test x$gengetopt = xyes ; then
21016
# Extract the first word of "gengetopt", so it can be a program name with args.
21017
set dummy gengetopt; ac_word=$2
21018
echo "$as_me:$LINENO: checking for $ac_word" >&5
21019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21020
if test "${ac_cv_prog_have_gengetopt+set}" = set; then
21021
echo $ECHO_N "(cached) $ECHO_C" >&6
21023
if test -n "$have_gengetopt"; then
21024
ac_cv_prog_have_gengetopt="$have_gengetopt" # Let the user override the test.
21026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21027
for as_dir in $PATH
21030
test -z "$as_dir" && as_dir=.
21031
for ac_exec_ext in '' $ac_executable_extensions; do
21032
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21033
ac_cv_prog_have_gengetopt="yes"
21034
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21040
test -z "$ac_cv_prog_have_gengetopt" && ac_cv_prog_have_gengetopt="no"
21043
have_gengetopt=$ac_cv_prog_have_gengetopt
21044
if test -n "$have_gengetopt"; then
21045
echo "$as_me:$LINENO: result: $have_gengetopt" >&5
21046
echo "${ECHO_T}$have_gengetopt" >&6
21048
echo "$as_me:$LINENO: result: no" >&5
21049
echo "${ECHO_T}no" >&6
21053
if test x$have_gengetopt = xno ; then
21054
{ echo "$as_me:$LINENO: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&5
21055
echo "$as_me: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&2;}
21062
if test "x$gengetopt" = xyes; then
21063
USE_GENGETOPT_TRUE=
21064
USE_GENGETOPT_FALSE='#'
21066
USE_GENGETOPT_TRUE='#'
21067
USE_GENGETOPT_FALSE=
21076
# ----------------------------------------------------------------------------
21078
if test "${my_cv_curl_vers+set}" = set; then
21079
echo $ECHO_N "(cached) $ECHO_C" >&6
21082
my_cv_curl_vers=NONE
21086
echo "$as_me:$LINENO: checking for curl >= $check" >&5
21087
echo $ECHO_N "checking for curl >= $check... $ECHO_C" >&6
21089
if eval curl-config --version 2>/dev/null >/dev/null; then
21090
ver=`curl-config --version | sed -e "s/libcurl //g"`
21091
# hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'`
21092
# ok=`echo "ibase=16; if($hex_ver>=$check_hex) $hex_ver else 0" | bc`
21094
if test x$ok != x0; then
21095
my_cv_curl_vers="$ver"
21096
echo "$as_me:$LINENO: result: $my_cv_curl_vers" >&5
21097
echo "${ECHO_T}$my_cv_curl_vers" >&6
21099
echo "$as_me:$LINENO: result: FAILED" >&5
21100
echo "${ECHO_T}FAILED" >&6
21101
{ echo "$as_me:$LINENO: WARNING: $ver is too old. Need version $check or higher." >&5
21102
echo "$as_me: WARNING: $ver is too old. Need version $check or higher." >&2;}
21105
echo "$as_me:$LINENO: result: FAILED" >&5
21106
echo "${ECHO_T}FAILED" >&6
21107
{ { echo "$as_me:$LINENO: error: curl-config was not found" >&5
21108
echo "$as_me: error: curl-config was not found" >&2;}
21109
{ (exit 1); exit 1; }; }
21116
if test x$my_cv_curl_vers != xNONE; then
21118
cat >>confdefs.h <<\_ACEOF
21119
@%:@define HAVE_CURL
21126
LIBOFX_DTD_DIR='${datadir}/libofx/dtd'
21130
ac_config_files="$ac_config_files Makefile libofx.spec lib/Makefile inc/Makefile dtd/Makefile doc/Makefile ofx2qif/Makefile ofxdump/Makefile ofxconnect/Makefile"
21131
cat >confcache <<\_ACEOF
21132
# This file is a shell script that caches the results of configure
21133
# tests run on this system so they can be shared between configure
21134
# scripts and configure runs, see configure's option --config-cache.
21135
# It is not useful on other systems. If it contains results you don't
21136
# want to keep, you may remove or edit it.
21138
# config.status only pays attention to the cache file if you give it
21139
# the --recheck option to rerun configure.
21141
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21142
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21143
# following values.
21147
# The following way of writing the cache mishandles newlines in values,
21148
# but we know of no workaround that is simple, portable, and efficient.
21149
# So, don't put newlines in cache variables' values.
21150
# Ultrix sh set writes to stderr and can't be redirected directly,
21151
# and sets the high bit in the cache file unless we assign to the vars.
21154
case `(ac_space=' '; set | grep ac_space) 2>&1` in
21156
# `set' does not quote correctly, so add quotes (double-quote
21157
# substitution turns \\\\ into \\, and sed turns \\ into \).
21160
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21163
# `set' quotes correctly as required by POSIX, so do not add quotes.
21165
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21172
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21174
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21176
if diff $cache_file confcache >/dev/null 2>&1; then :; else
21177
if test -w $cache_file; then
21178
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21179
cat confcache >$cache_file
21181
echo "not updating unwritable cache $cache_file"
21186
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21187
# Let make expand exec_prefix.
21188
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21190
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21191
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21192
# trailing colons and then remove the whole line if VPATH becomes empty
21193
# (actually we leave an empty line to preserve line numbers).
21194
if test "x$srcdir" = x.; then
21195
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21196
s/:*\$(srcdir):*/:/;
21197
s/:*\${srcdir}:*/:/;
21199
s/^\([^=]*=[ ]*\):*/\1/;
21205
DEFS=-DHAVE_CONFIG_H
21209
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21210
# 1. Remove the extension, and $U if already installed.
21211
ac_i=`echo "$ac_i" |
21212
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21214
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21215
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21217
LIB@&t@OBJS=$ac_libobjs
21219
LTLIBOBJS=$ac_ltlibobjs
21222
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21223
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21224
Usually this means the macro was only invoked conditionally." >&5
21225
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21226
Usually this means the macro was only invoked conditionally." >&2;}
21227
{ (exit 1); exit 1; }; }
21229
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21230
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21231
Usually this means the macro was only invoked conditionally." >&5
21232
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21233
Usually this means the macro was only invoked conditionally." >&2;}
21234
{ (exit 1); exit 1; }; }
21236
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21237
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21238
Usually this means the macro was only invoked conditionally." >&5
21239
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21240
Usually this means the macro was only invoked conditionally." >&2;}
21241
{ (exit 1); exit 1; }; }
21243
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21244
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21245
Usually this means the macro was only invoked conditionally." >&5
21246
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21247
Usually this means the macro was only invoked conditionally." >&2;}
21248
{ (exit 1); exit 1; }; }
21250
if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
21251
{ { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
21252
Usually this means the macro was only invoked conditionally." >&5
21253
echo "$as_me: error: conditional \"DOC\" was never defined.
21254
Usually this means the macro was only invoked conditionally." >&2;}
21255
{ (exit 1); exit 1; }; }
21257
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
21258
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOXYGEN\" was never defined.
21259
Usually this means the macro was only invoked conditionally." >&5
21260
echo "$as_me: error: conditional \"ENABLE_DOXYGEN\" was never defined.
21261
Usually this means the macro was only invoked conditionally." >&2;}
21262
{ (exit 1); exit 1; }; }
21264
if test -z "${NO_GETOPTLONG_TRUE}" && test -z "${NO_GETOPTLONG_FALSE}"; then
21265
{ { echo "$as_me:$LINENO: error: conditional \"NO_GETOPTLONG\" was never defined.
21266
Usually this means the macro was only invoked conditionally." >&5
21267
echo "$as_me: error: conditional \"NO_GETOPTLONG\" was never defined.
21268
Usually this means the macro was only invoked conditionally." >&2;}
21269
{ (exit 1); exit 1; }; }
21271
if test -z "${USE_GENGETOPT_TRUE}" && test -z "${USE_GENGETOPT_FALSE}"; then
21272
{ { echo "$as_me:$LINENO: error: conditional \"USE_GENGETOPT\" was never defined.
21273
Usually this means the macro was only invoked conditionally." >&5
21274
echo "$as_me: error: conditional \"USE_GENGETOPT\" was never defined.
21275
Usually this means the macro was only invoked conditionally." >&2;}
21276
{ (exit 1); exit 1; }; }
21279
: ${CONFIG_STATUS=./config.status}
21280
ac_clean_files_save=$ac_clean_files
21281
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21282
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21283
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21284
cat >$CONFIG_STATUS <<_ACEOF
21286
# Generated by $as_me.
21287
# Run this file to recreate the current configuration.
21288
# Compiler output produced by configure, useful for debugging
21289
# configure, is in config.log if it exists.
21292
ac_cs_recheck=false
21294
SHELL=\${CONFIG_SHELL-$SHELL}
21297
cat >>$CONFIG_STATUS <<\_ACEOF
21298
## --------------------- ##
21299
## M4sh Initialization. ##
21300
## --------------------- ##
21302
# Be Bourne compatible
21303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21306
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21307
# is contrary to our usage. Disable this feature.
21308
alias -g '${1+"$@"}'='"$@"'
21309
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21312
DUALCASE=1; export DUALCASE # for MKS sh
21314
# Support unset when possible.
21315
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21322
# Work around bugs in pre-3.0 UWIN ksh.
21323
$as_unset ENV MAIL MAILPATH
21330
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21331
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21332
LC_TELEPHONE LC_TIME
21334
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21335
eval $as_var=C; export $as_var
21341
# Required to use basename.
21342
if expr a : '\(a\)' >/dev/null 2>&1; then
21348
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21349
as_basename=basename
21355
# Name of the executable.
21356
as_me=`$as_basename "$0" ||
21357
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21358
X"$0" : 'X\(//\)$' \| \
21359
X"$0" : 'X\(/\)$' \| \
21360
. : '\(.\)' 2>/dev/null ||
21362
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21363
/^X\/\(\/\/\)$/{ s//\1/; q; }
21364
/^X\/\(\/\).*/{ s//\1/; q; }
21368
# PATH needs CR, and LINENO needs CR and PATH.
21369
# Avoid depending upon Character Ranges.
21370
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21371
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21372
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21373
as_cr_digits='0123456789'
21374
as_cr_alnum=$as_cr_Letters$as_cr_digits
21376
# The user is always right.
21377
if test "${PATH_SEPARATOR+set}" != set; then
21378
echo "#! /bin/sh" >conf$$.sh
21379
echo "exit 0" >>conf$$.sh
21381
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21390
as_lineno_1=$LINENO
21391
as_lineno_2=$LINENO
21392
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21393
test "x$as_lineno_1" != "x$as_lineno_2" &&
21394
test "x$as_lineno_3" = "x$as_lineno_2" || {
21395
# Find who we are. Look in the path if we contain no path at all
21398
*[\\/]* ) as_myself=$0 ;;
21399
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21400
for as_dir in $PATH
21403
test -z "$as_dir" && as_dir=.
21404
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21409
# We did not find ourselves, most probably we were run as `sh COMMAND'
21410
# in which case we are not to be found in the path.
21411
if test "x$as_myself" = x; then
21414
if test ! -f "$as_myself"; then
21415
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21416
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21417
{ (exit 1); exit 1; }; }
21419
case $CONFIG_SHELL in
21421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21422
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21425
test -z "$as_dir" && as_dir=.
21426
for as_base in sh bash ksh sh5; do
21429
if ("$as_dir/$as_base" -c '
21430
as_lineno_1=$LINENO
21431
as_lineno_2=$LINENO
21432
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21433
test "x$as_lineno_1" != "x$as_lineno_2" &&
21434
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21435
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21436
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21437
CONFIG_SHELL=$as_dir/$as_base
21438
export CONFIG_SHELL
21439
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21447
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21448
# uniformly replaced by the line number. The first 'sed' inserts a
21449
# line-number line before each line; the second 'sed' does the real
21450
# work. The second script uses 'N' to pair each line-number line
21451
# with the numbered line, and appends trailing '-' during
21452
# substitution so that $LINENO is not a special case at line end.
21453
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21454
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21455
sed '=' <$as_myself |
21460
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21463
s,^['$as_cr_digits']*\n,,
21464
' >$as_me.lineno &&
21465
chmod +x $as_me.lineno ||
21466
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21467
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21468
{ (exit 1); exit 1; }; }
21470
# Don't try to exec as it changes $[0], causing all sort of problems
21471
# (the dirname of $[0] is not the place where we might find the
21472
# original and so on. Autoconf is especially sensible to this).
21474
# Exit status is that of the last command.
21479
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21480
*c*,-n*) ECHO_N= ECHO_C='
21482
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21483
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21486
if expr a : '\(a\)' >/dev/null 2>&1; then
21492
rm -f conf$$ conf$$.exe conf$$.file
21494
if ln -s conf$$.file conf$$ 2>/dev/null; then
21495
# We could just check for DJGPP; but this test a) works b) is more generic
21496
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21497
if test -f conf$$.exe; then
21498
# Don't use ln at all; we don't have any links
21503
elif ln conf$$.file conf$$ 2>/dev/null; then
21508
rm -f conf$$ conf$$.exe conf$$.file
21510
if mkdir -p . 2>/dev/null; then
21513
test -d ./-p && rmdir ./-p
21517
as_executable_p="test -f"
21519
# Sed expression to map a string onto a valid CPP name.
21520
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21522
# Sed expression to map a string onto a valid variable name.
21523
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21527
# We need space, tab and new line, in precisely that order.
21537
# Open the log real soon, to keep \$[0] and so on meaningful, and to
21538
# report actual input values of CONFIG_FILES etc. instead of their
21539
# values after options handling. Logging --version etc. is OK.
21543
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21544
@%:@@%:@ Running $as_me. @%:@@%:@
21549
This file was extended by $as_me, which was
21550
generated by GNU Autoconf 2.59. Invocation command line was
21552
CONFIG_FILES = $CONFIG_FILES
21553
CONFIG_HEADERS = $CONFIG_HEADERS
21554
CONFIG_LINKS = $CONFIG_LINKS
21555
CONFIG_COMMANDS = $CONFIG_COMMANDS
21559
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21563
# Files that config.status was made for.
21564
if test -n "$ac_config_files"; then
21565
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21568
if test -n "$ac_config_headers"; then
21569
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21572
if test -n "$ac_config_links"; then
21573
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21576
if test -n "$ac_config_commands"; then
21577
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21580
cat >>$CONFIG_STATUS <<\_ACEOF
21583
\`$as_me' instantiates files from templates according to the
21584
current configuration.
21586
Usage: $0 [OPTIONS] [FILE]...
21588
-h, --help print this help, then exit
21589
-V, --version print version number, then exit
21590
-q, --quiet do not print progress messages
21591
-d, --debug don't remove temporary files
21592
--recheck update $as_me by reconfiguring in the same conditions
21593
--file=FILE[:TEMPLATE]
21594
instantiate the configuration file FILE
21595
--header=FILE[:TEMPLATE]
21596
instantiate the configuration header FILE
21598
Configuration files:
21601
Configuration headers:
21604
Configuration links:
21607
Configuration commands:
21610
Report bugs to <bug-autoconf@gnu.org>."
21613
cat >>$CONFIG_STATUS <<_ACEOF
21616
configured by $0, generated by GNU Autoconf 2.59,
21617
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21619
Copyright (C) 2003 Free Software Foundation, Inc.
21620
This config.status script is free software; the Free Software Foundation
21621
gives unlimited permission to copy, distribute and modify it."
21626
cat >>$CONFIG_STATUS <<\_ACEOF
21627
# If no file are specified by the user, then we need to provide default
21628
# value. By we need to know if files were specified by the user.
21634
ac_option=`expr "x$1" : 'x\([^=]*\)='`
21635
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21643
*) # This is not an option, so the user has probably given explicit
21646
ac_need_defaults=false;;
21650
# Handling of the options.
21652
cat >>$CONFIG_STATUS <<\_ACEOF
21653
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21655
--version | --vers* | -V )
21656
echo "$ac_cs_version"; exit 0 ;;
21658
# Conflict between --help and --header
21659
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
21660
Try \`$0 --help' for more information." >&5
21661
echo "$as_me: error: ambiguous option: $1
21662
Try \`$0 --help' for more information." >&2;}
21663
{ (exit 1); exit 1; }; };;
21664
--help | --hel | -h )
21665
echo "$ac_cs_usage"; exit 0 ;;
21666
--debug | --d* | -d )
21668
--file | --fil | --fi | --f )
21670
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21671
ac_need_defaults=false;;
21672
--header | --heade | --head | --hea )
21674
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21675
ac_need_defaults=false;;
21676
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21677
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21680
# This is an error.
21681
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21682
Try \`$0 --help' for more information." >&5
21683
echo "$as_me: error: unrecognized option: $1
21684
Try \`$0 --help' for more information." >&2;}
21685
{ (exit 1); exit 1; }; } ;;
21687
*) ac_config_targets="$ac_config_targets $1" ;;
21693
ac_configure_extra_args=
21695
if $ac_cs_silent; then
21697
ac_configure_extra_args="$ac_configure_extra_args --silent"
21701
cat >>$CONFIG_STATUS <<_ACEOF
21702
if \$ac_cs_recheck; then
21703
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21704
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21709
cat >>$CONFIG_STATUS <<_ACEOF
21711
# INIT-COMMANDS section.
21714
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21720
cat >>$CONFIG_STATUS <<\_ACEOF
21721
for ac_config_target in $ac_config_targets
21723
case "$ac_config_target" in
21724
# Handling of arguments.
21725
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21726
"libofx.spec" ) CONFIG_FILES="$CONFIG_FILES libofx.spec" ;;
21727
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21728
"inc/Makefile" ) CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
21729
"dtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dtd/Makefile" ;;
21730
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21731
"ofx2qif/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofx2qif/Makefile" ;;
21732
"ofxdump/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxdump/Makefile" ;;
21733
"ofxconnect/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxconnect/Makefile" ;;
21734
"lib/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/getopt.h:lib/gnugetopt.h" ;;
21735
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21736
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21737
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21738
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21739
{ (exit 1); exit 1; }; };;
21743
# If the user did not use the arguments to specify the items to instantiate,
21744
# then the envvar interface is used. Set only those that are not.
21745
# We use the long form for the default assignment because of an extremely
21746
# bizarre bug on SunOS 4.1.3.
21747
if $ac_need_defaults; then
21748
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21749
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21750
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21751
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21754
# Have a temporary directory for convenience. Make it in the build tree
21755
# simply because there is no reason to put it here, and in addition,
21756
# creating and moving files from /tmp can sometimes cause problems.
21757
# Create a temporary directory, and hook for its removal unless debugging.
21760
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21761
trap '{ (exit 1); exit 1; }' 1 2 13 15
21764
# Create a (secure) tmp directory for tmp files.
21767
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21768
test -n "$tmp" && test -d "$tmp"
21771
tmp=./confstat$$-$RANDOM
21772
(umask 077 && mkdir $tmp)
21775
echo "$me: cannot create a temporary directory in ." >&2
21776
{ (exit 1); exit 1; }
21781
cat >>$CONFIG_STATUS <<_ACEOF
21784
# CONFIG_FILES section.
21787
# No need to generate the scripts if there are no CONFIG_FILES.
21788
# This happens for instance when ./config.status config.h
21789
if test -n "\$CONFIG_FILES"; then
21790
# Protect against being on the right side of a sed subst in config.status.
21791
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21792
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21793
s,@SHELL@,$SHELL,;t t
21794
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21795
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21796
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21797
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21798
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21799
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21800
s,@exec_prefix@,$exec_prefix,;t t
21801
s,@prefix@,$prefix,;t t
21802
s,@program_transform_name@,$program_transform_name,;t t
21803
s,@bindir@,$bindir,;t t
21804
s,@sbindir@,$sbindir,;t t
21805
s,@libexecdir@,$libexecdir,;t t
21806
s,@datadir@,$datadir,;t t
21807
s,@sysconfdir@,$sysconfdir,;t t
21808
s,@sharedstatedir@,$sharedstatedir,;t t
21809
s,@localstatedir@,$localstatedir,;t t
21810
s,@libdir@,$libdir,;t t
21811
s,@includedir@,$includedir,;t t
21812
s,@oldincludedir@,$oldincludedir,;t t
21813
s,@infodir@,$infodir,;t t
21814
s,@mandir@,$mandir,;t t
21815
s,@build_alias@,$build_alias,;t t
21816
s,@host_alias@,$host_alias,;t t
21817
s,@target_alias@,$target_alias,;t t
21818
s,@DEFS@,$DEFS,;t t
21819
s,@ECHO_C@,$ECHO_C,;t t
21820
s,@ECHO_N@,$ECHO_N,;t t
21821
s,@ECHO_T@,$ECHO_T,;t t
21822
s,@LIBS@,$LIBS,;t t
21824
s,@CFLAGS@,$CFLAGS,;t t
21825
s,@LDFLAGS@,$LDFLAGS,;t t
21826
s,@CPPFLAGS@,$CPPFLAGS,;t t
21827
s,@ac_ct_CC@,$ac_ct_CC,;t t
21828
s,@EXEEXT@,$EXEEXT,;t t
21829
s,@OBJEXT@,$OBJEXT,;t t
21831
s,@CXXFLAGS@,$CXXFLAGS,;t t
21832
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21833
s,@LIBOFX_MAJOR_VERSION@,$LIBOFX_MAJOR_VERSION,;t t
21834
s,@LIBOFX_MINOR_VERSION@,$LIBOFX_MINOR_VERSION,;t t
21835
s,@LIBOFX_MICRO_VERSION@,$LIBOFX_MICRO_VERSION,;t t
21836
s,@LIBOFX_VERSION@,$LIBOFX_VERSION,;t t
21837
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21838
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21839
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21840
s,@CYGPATH_W@,$CYGPATH_W,;t t
21841
s,@PACKAGE@,$PACKAGE,;t t
21842
s,@VERSION@,$VERSION,;t t
21843
s,@ACLOCAL@,$ACLOCAL,;t t
21844
s,@AUTOCONF@,$AUTOCONF,;t t
21845
s,@AUTOMAKE@,$AUTOMAKE,;t t
21846
s,@AUTOHEADER@,$AUTOHEADER,;t t
21847
s,@MAKEINFO@,$MAKEINFO,;t t
21848
s,@install_sh@,$install_sh,;t t
21849
s,@STRIP@,$STRIP,;t t
21850
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21851
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21852
s,@mkdir_p@,$mkdir_p,;t t
21854
s,@SET_MAKE@,$SET_MAKE,;t t
21855
s,@am__leading_dot@,$am__leading_dot,;t t
21856
s,@AMTAR@,$AMTAR,;t t
21857
s,@am__tar@,$am__tar,;t t
21858
s,@am__untar@,$am__untar,;t t
21859
s,@DEPDIR@,$DEPDIR,;t t
21860
s,@am__include@,$am__include,;t t
21861
s,@am__quote@,$am__quote,;t t
21862
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21863
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21864
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21865
s,@CCDEPMODE@,$CCDEPMODE,;t t
21866
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21867
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21868
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21869
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21870
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21871
s,@LIBOFX_SO_CURRENT@,$LIBOFX_SO_CURRENT,;t t
21872
s,@LIBOFX_SO_REVISION@,$LIBOFX_SO_REVISION,;t t
21873
s,@LIBOFX_SO_AGE@,$LIBOFX_SO_AGE,;t t
21874
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21875
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21876
s,@MAINT@,$MAINT,;t t
21877
s,@build@,$build,;t t
21878
s,@build_cpu@,$build_cpu,;t t
21879
s,@build_vendor@,$build_vendor,;t t
21880
s,@build_os@,$build_os,;t t
21881
s,@host@,$host,;t t
21882
s,@host_cpu@,$host_cpu,;t t
21883
s,@host_vendor@,$host_vendor,;t t
21884
s,@host_os@,$host_os,;t t
21885
s,@EGREP@,$EGREP,;t t
21886
s,@LN_S@,$LN_S,;t t
21887
s,@ECHO@,$ECHO,;t t
21889
s,@ac_ct_AR@,$ac_ct_AR,;t t
21890
s,@RANLIB@,$RANLIB,;t t
21891
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21893
s,@CXXCPP@,$CXXCPP,;t t
21895
s,@FFLAGS@,$FFLAGS,;t t
21896
s,@ac_ct_F77@,$ac_ct_F77,;t t
21897
s,@LIBTOOL@,$LIBTOOL,;t t
21898
s,@DOXYGEN@,$DOXYGEN,;t t
21900
s,@DOC_TRUE@,$DOC_TRUE,;t t
21901
s,@DOC_FALSE@,$DOC_FALSE,;t t
21902
s,@ENABLE_DOXYGEN_TRUE@,$ENABLE_DOXYGEN_TRUE,;t t
21903
s,@ENABLE_DOXYGEN_FALSE@,$ENABLE_DOXYGEN_FALSE,;t t
21904
s,@enable_dot@,$enable_dot,;t t
21905
s,@enable_html_docs@,$enable_html_docs,;t t
21906
s,@enable_latex_docs@,$enable_latex_docs,;t t
21907
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21908
s,@NO_GETOPTLONG_TRUE@,$NO_GETOPTLONG_TRUE,;t t
21909
s,@NO_GETOPTLONG_FALSE@,$NO_GETOPTLONG_FALSE,;t t
21910
s,@have_gengetopt@,$have_gengetopt,;t t
21911
s,@USE_GENGETOPT_TRUE@,$USE_GENGETOPT_TRUE,;t t
21912
s,@USE_GENGETOPT_FALSE@,$USE_GENGETOPT_FALSE,;t t
21913
s,@OPENSPINCLUDES@,$OPENSPINCLUDES,;t t
21914
s,@OPENSPLIBS@,$OPENSPLIBS,;t t
21915
s,@LIBOFX_DTD_DIR@,$LIBOFX_DTD_DIR,;t t
21916
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21921
cat >>$CONFIG_STATUS <<\_ACEOF
21922
# Split the substitutions into bite-sized pieces for seds with
21923
# small command number limits, like on Digital OSF/1 and HP-UX.
21924
ac_max_sed_lines=48
21925
ac_sed_frag=1 # Number of current file.
21926
ac_beg=1 # First line for current file.
21927
ac_end=$ac_max_sed_lines # Line after last line for current file.
21930
while $ac_more_lines; do
21931
if test $ac_beg -gt 1; then
21932
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21934
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21936
if test ! -s $tmp/subs.frag; then
21937
ac_more_lines=false
21939
# The purpose of the label and of the branching condition is to
21940
# speed up the sed processing (if there are no `@' at all, there
21941
# is no need to browse any of the substitutions).
21942
# These are the two extra sed commands mentioned above.
21944
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21945
if test -z "$ac_sed_cmds"; then
21946
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21948
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21950
ac_sed_frag=`expr $ac_sed_frag + 1`
21952
ac_end=`expr $ac_end + $ac_max_sed_lines`
21955
if test -z "$ac_sed_cmds"; then
21958
fi # test -n "$CONFIG_FILES"
21961
cat >>$CONFIG_STATUS <<\_ACEOF
21962
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21963
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21965
- | *:- | *:-:* ) # input from stdin
21967
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21968
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21969
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21970
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21971
* ) ac_file_in=$ac_file.in ;;
21974
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21975
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21976
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21977
X"$ac_file" : 'X\(//\)[^/]' \| \
21978
X"$ac_file" : 'X\(//\)$' \| \
21979
X"$ac_file" : 'X\(/\)' \| \
21980
. : '\(.\)' 2>/dev/null ||
21982
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21983
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21984
/^X\(\/\/\)$/{ s//\1/; q; }
21985
/^X\(\/\).*/{ s//\1/; q; }
21987
{ if $as_mkdir_p; then
21992
while test ! -d "$as_dir"; do
21993
as_dirs="$as_dir $as_dirs"
21994
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21995
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21996
X"$as_dir" : 'X\(//\)[^/]' \| \
21997
X"$as_dir" : 'X\(//\)$' \| \
21998
X"$as_dir" : 'X\(/\)' \| \
21999
. : '\(.\)' 2>/dev/null ||
22001
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22002
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22003
/^X\(\/\/\)$/{ s//\1/; q; }
22004
/^X\(\/\).*/{ s//\1/; q; }
22007
test ! -n "$as_dirs" || mkdir $as_dirs
22008
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22009
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22010
{ (exit 1); exit 1; }; }; }
22014
if test "$ac_dir" != .; then
22015
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22016
# A "../" for each directory in $ac_dir_suffix.
22017
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22019
ac_dir_suffix= ac_top_builddir=
22023
.) # No --srcdir option. We are building in place.
22025
if test -z "$ac_top_builddir"; then
22028
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22030
[\\/]* | ?:[\\/]* ) # Absolute path.
22031
ac_srcdir=$srcdir$ac_dir_suffix;
22032
ac_top_srcdir=$srcdir ;;
22033
*) # Relative path.
22034
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22035
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22038
# Do not use `cd foo && pwd` to compute absolute paths, because
22039
# the directories may not exist.
22041
.) ac_abs_builddir="$ac_dir";;
22044
.) ac_abs_builddir=`pwd`;;
22045
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22046
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22049
case $ac_abs_builddir in
22050
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22052
case ${ac_top_builddir}. in
22053
.) ac_abs_top_builddir=$ac_abs_builddir;;
22054
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22055
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22058
case $ac_abs_builddir in
22059
.) ac_abs_srcdir=$ac_srcdir;;
22062
.) ac_abs_srcdir=$ac_abs_builddir;;
22063
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22064
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22067
case $ac_abs_builddir in
22068
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22070
case $ac_top_srcdir in
22071
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22072
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22073
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22079
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22080
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22083
# Let's still pretend it is `configure' which instantiates (i.e., don't
22084
# use $as_me), people would be surprised to read:
22085
# /* config.h. Generated by config.status. */
22086
if test x"$ac_file" = x-; then
22089
configure_input="$ac_file. "
22091
configure_input=$configure_input"Generated from `echo $ac_file_in |
22092
sed 's,.*/,,'` by configure."
22094
# First look for the input files in the build tree, otherwise in the
22096
ac_file_inputs=`IFS=:
22097
for f in $ac_file_in; do
22099
-) echo $tmp/stdin ;;
22101
# Absolute (can't be DOS-style, as IFS=:)
22102
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22103
echo "$as_me: error: cannot find input file: $f" >&2;}
22104
{ (exit 1); exit 1; }; }
22107
if test -f "$f"; then
22110
elif test -f "$srcdir/$f"; then
22115
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22116
echo "$as_me: error: cannot find input file: $f" >&2;}
22117
{ (exit 1); exit 1; }; }
22120
done` || { (exit 1); exit 1; }
22122
if test x"$ac_file" != x-; then
22123
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22124
echo "$as_me: creating $ac_file" >&6;}
22128
cat >>$CONFIG_STATUS <<_ACEOF
22132
cat >>$CONFIG_STATUS <<\_ACEOF
22134
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22135
s,@configure_input@,$configure_input,;t t
22136
s,@srcdir@,$ac_srcdir,;t t
22137
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22138
s,@top_srcdir@,$ac_top_srcdir,;t t
22139
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22140
s,@builddir@,$ac_builddir,;t t
22141
s,@abs_builddir@,$ac_abs_builddir,;t t
22142
s,@top_builddir@,$ac_top_builddir,;t t
22143
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22144
s,@INSTALL@,$ac_INSTALL,;t t
22145
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22147
if test x"$ac_file" != x-; then
22148
mv $tmp/out $ac_file
22156
cat >>$CONFIG_STATUS <<\_ACEOF
22159
# CONFIG_HEADER section.
22162
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22163
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22165
# ac_d sets the value in "#define NAME VALUE" lines.
22166
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22167
ac_dB='[ ].*$,\1#\2'
22170
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22171
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22172
ac_uB='$,\1#\2define\3'
22176
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22177
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22179
- | *:- | *:-:* ) # input from stdin
22181
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22182
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22183
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22184
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22185
* ) ac_file_in=$ac_file.in ;;
22188
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22189
echo "$as_me: creating $ac_file" >&6;}
22191
# First look for the input files in the build tree, otherwise in the
22193
ac_file_inputs=`IFS=:
22194
for f in $ac_file_in; do
22196
-) echo $tmp/stdin ;;
22198
# Absolute (can't be DOS-style, as IFS=:)
22199
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22200
echo "$as_me: error: cannot find input file: $f" >&2;}
22201
{ (exit 1); exit 1; }; }
22202
# Do quote $f, to prevent DOS paths from being IFS'd.
22205
if test -f "$f"; then
22208
elif test -f "$srcdir/$f"; then
22213
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22214
echo "$as_me: error: cannot find input file: $f" >&2;}
22215
{ (exit 1); exit 1; }; }
22218
done` || { (exit 1); exit 1; }
22219
# Remove the trailing spaces.
22220
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22224
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22225
# `conftest.undefs', that substitutes the proper values into
22226
# config.h.in to produce config.h. The first handles `#define'
22227
# templates, and the second `#undef' templates.
22228
# And first: Protect against being on the right side of a sed subst in
22229
# config.status. Protect against being in an unquoted here document
22230
# in config.status.
22231
rm -f conftest.defines conftest.undefs
22232
# Using a here document instead of a string reduces the quoting nightmare.
22233
# Putting comments in sed scripts is not portable.
22235
# `end' is used to avoid that the second main sed command (meant for
22236
# 0-ary CPP macros) applies to n-ary macro definitions.
22237
# See the Autoconf documentation for `clear'.
22238
cat >confdef2sed.sed <<\_ACEOF
22243
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22245
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22248
# If some macros were called several times there might be several times
22249
# the same #defines, which is useless. Nevertheless, we may not want to
22250
# sort them, since we want the *last* AC-DEFINE to be honored.
22251
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22252
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22253
rm -f confdef2sed.sed
22255
# This sed command replaces #undef with comments. This is necessary, for
22256
# example, in the case of _POSIX_SOURCE, which is predefined and required
22257
# on some systems where configure will not decide to define it.
22258
cat >>conftest.undefs <<\_ACEOF
22259
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22262
# Break up conftest.defines because some shells have a limit on the size
22263
# of here documents, and old seds have small limits too (100 cmds).
22264
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22265
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22266
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22267
echo ' :' >>$CONFIG_STATUS
22268
rm -f conftest.tail
22269
while grep . conftest.defines >/dev/null
22271
# Write a limited-size here document to $tmp/defines.sed.
22272
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22273
# Speed up: don't consider the non `#define' lines.
22274
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22275
# Work around the forget-to-reset-the-flag bug.
22276
echo 't clr' >>$CONFIG_STATUS
22277
echo ': clr' >>$CONFIG_STATUS
22278
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22280
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22282
mv $tmp/out $tmp/in
22284
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22285
rm -f conftest.defines
22286
mv conftest.tail conftest.defines
22288
rm -f conftest.defines
22289
echo ' fi # grep' >>$CONFIG_STATUS
22290
echo >>$CONFIG_STATUS
22292
# Break up conftest.undefs because some shells have a limit on the size
22293
# of here documents, and old seds have small limits too (100 cmds).
22294
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22295
rm -f conftest.tail
22296
while grep . conftest.undefs >/dev/null
22298
# Write a limited-size here document to $tmp/undefs.sed.
22299
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22300
# Speed up: don't consider the non `#undef'
22301
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22302
# Work around the forget-to-reset-the-flag bug.
22303
echo 't clr' >>$CONFIG_STATUS
22304
echo ': clr' >>$CONFIG_STATUS
22305
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22307
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22309
mv $tmp/out $tmp/in
22311
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22312
rm -f conftest.undefs
22313
mv conftest.tail conftest.undefs
22315
rm -f conftest.undefs
22317
cat >>$CONFIG_STATUS <<\_ACEOF
22318
# Let's still pretend it is `configure' which instantiates (i.e., don't
22319
# use $as_me), people would be surprised to read:
22320
# /* config.h. Generated by config.status. */
22321
if test x"$ac_file" = x-; then
22322
echo "/* Generated by configure. */" >$tmp/config.h
22324
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22326
cat $tmp/in >>$tmp/config.h
22328
if test x"$ac_file" != x-; then
22329
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22330
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22331
echo "$as_me: $ac_file is unchanged" >&6;}
22333
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22334
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22335
X"$ac_file" : 'X\(//\)[^/]' \| \
22336
X"$ac_file" : 'X\(//\)$' \| \
22337
X"$ac_file" : 'X\(/\)' \| \
22338
. : '\(.\)' 2>/dev/null ||
22340
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22341
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22342
/^X\(\/\/\)$/{ s//\1/; q; }
22343
/^X\(\/\).*/{ s//\1/; q; }
22345
{ if $as_mkdir_p; then
22350
while test ! -d "$as_dir"; do
22351
as_dirs="$as_dir $as_dirs"
22352
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22353
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22354
X"$as_dir" : 'X\(//\)[^/]' \| \
22355
X"$as_dir" : 'X\(//\)$' \| \
22356
X"$as_dir" : 'X\(/\)' \| \
22357
. : '\(.\)' 2>/dev/null ||
22359
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22360
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22361
/^X\(\/\/\)$/{ s//\1/; q; }
22362
/^X\(\/\).*/{ s//\1/; q; }
22365
test ! -n "$as_dirs" || mkdir $as_dirs
22366
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22367
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22368
{ (exit 1); exit 1; }; }; }
22371
mv $tmp/config.h $ac_file
22375
rm -f $tmp/config.h
22377
# Compute $ac_file's index in $config_headers.
22379
for _am_header in $config_headers :; do
22380
case $_am_header in
22381
$ac_file | $ac_file:* )
22384
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
22387
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22388
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389
X$ac_file : 'X\(//\)[^/]' \| \
22390
X$ac_file : 'X\(//\)$' \| \
22391
X$ac_file : 'X\(/\)' \| \
22392
. : '\(.\)' 2>/dev/null ||
22394
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22395
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22396
/^X\(\/\/\)$/{ s//\1/; q; }
22397
/^X\(\/\).*/{ s//\1/; q; }
22398
s/.*/./; q'`/stamp-h$_am_stamp_count
22401
cat >>$CONFIG_STATUS <<\_ACEOF
22404
# CONFIG_LINKS section.
22407
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22408
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22409
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22411
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22412
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22414
if test ! -r $srcdir/$ac_source; then
22415
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22416
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22417
{ (exit 1); exit 1; }; }
22421
# Make relative symlinks.
22422
ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22423
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22424
X"$ac_dest" : 'X\(//\)[^/]' \| \
22425
X"$ac_dest" : 'X\(//\)$' \| \
22426
X"$ac_dest" : 'X\(/\)' \| \
22427
. : '\(.\)' 2>/dev/null ||
22429
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22430
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22431
/^X\(\/\/\)$/{ s//\1/; q; }
22432
/^X\(\/\).*/{ s//\1/; q; }
22434
{ if $as_mkdir_p; then
22435
mkdir -p "$ac_dest_dir"
22437
as_dir="$ac_dest_dir"
22439
while test ! -d "$as_dir"; do
22440
as_dirs="$as_dir $as_dirs"
22441
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22442
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22443
X"$as_dir" : 'X\(//\)[^/]' \| \
22444
X"$as_dir" : 'X\(//\)$' \| \
22445
X"$as_dir" : 'X\(/\)' \| \
22446
. : '\(.\)' 2>/dev/null ||
22448
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22449
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22450
/^X\(\/\/\)$/{ s//\1/; q; }
22451
/^X\(\/\).*/{ s//\1/; q; }
22454
test ! -n "$as_dirs" || mkdir $as_dirs
22455
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22456
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22457
{ (exit 1); exit 1; }; }; }
22461
if test "$ac_dest_dir" != .; then
22462
ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22463
# A "../" for each directory in $ac_dir_suffix.
22464
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22466
ac_dir_suffix= ac_top_builddir=
22470
.) # No --srcdir option. We are building in place.
22472
if test -z "$ac_top_builddir"; then
22475
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22477
[\\/]* | ?:[\\/]* ) # Absolute path.
22478
ac_srcdir=$srcdir$ac_dir_suffix;
22479
ac_top_srcdir=$srcdir ;;
22480
*) # Relative path.
22481
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22482
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22485
# Do not use `cd foo && pwd` to compute absolute paths, because
22486
# the directories may not exist.
22488
.) ac_abs_builddir="$ac_dest_dir";;
22490
case "$ac_dest_dir" in
22491
.) ac_abs_builddir=`pwd`;;
22492
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22493
*) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22496
case $ac_abs_builddir in
22497
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22499
case ${ac_top_builddir}. in
22500
.) ac_abs_top_builddir=$ac_abs_builddir;;
22501
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22502
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22505
case $ac_abs_builddir in
22506
.) ac_abs_srcdir=$ac_srcdir;;
22509
.) ac_abs_srcdir=$ac_abs_builddir;;
22510
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22511
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22514
case $ac_abs_builddir in
22515
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22517
case $ac_top_srcdir in
22518
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22519
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22520
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22526
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22527
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22530
# Try a symlink, then a hard link, then a copy.
22531
ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22532
ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22533
cp -p $srcdir/$ac_source $ac_dest ||
22534
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22535
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22536
{ (exit 1); exit 1; }; }
22539
cat >>$CONFIG_STATUS <<\_ACEOF
22542
# CONFIG_COMMANDS section.
22544
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22545
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22546
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22547
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22548
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22549
X"$ac_dest" : 'X\(//\)[^/]' \| \
22550
X"$ac_dest" : 'X\(//\)$' \| \
22551
X"$ac_dest" : 'X\(/\)' \| \
22552
. : '\(.\)' 2>/dev/null ||
22554
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22555
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22556
/^X\(\/\/\)$/{ s//\1/; q; }
22557
/^X\(\/\).*/{ s//\1/; q; }
22559
{ if $as_mkdir_p; then
22564
while test ! -d "$as_dir"; do
22565
as_dirs="$as_dir $as_dirs"
22566
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22567
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22568
X"$as_dir" : 'X\(//\)[^/]' \| \
22569
X"$as_dir" : 'X\(//\)$' \| \
22570
X"$as_dir" : 'X\(/\)' \| \
22571
. : '\(.\)' 2>/dev/null ||
22573
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22574
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22575
/^X\(\/\/\)$/{ s//\1/; q; }
22576
/^X\(\/\).*/{ s//\1/; q; }
22579
test ! -n "$as_dirs" || mkdir $as_dirs
22580
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22581
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22582
{ (exit 1); exit 1; }; }; }
22586
if test "$ac_dir" != .; then
22587
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22588
# A "../" for each directory in $ac_dir_suffix.
22589
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22591
ac_dir_suffix= ac_top_builddir=
22595
.) # No --srcdir option. We are building in place.
22597
if test -z "$ac_top_builddir"; then
22600
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22602
[\\/]* | ?:[\\/]* ) # Absolute path.
22603
ac_srcdir=$srcdir$ac_dir_suffix;
22604
ac_top_srcdir=$srcdir ;;
22605
*) # Relative path.
22606
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22607
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22610
# Do not use `cd foo && pwd` to compute absolute paths, because
22611
# the directories may not exist.
22613
.) ac_abs_builddir="$ac_dir";;
22616
.) ac_abs_builddir=`pwd`;;
22617
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22618
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22621
case $ac_abs_builddir in
22622
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22624
case ${ac_top_builddir}. in
22625
.) ac_abs_top_builddir=$ac_abs_builddir;;
22626
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22627
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22630
case $ac_abs_builddir in
22631
.) ac_abs_srcdir=$ac_srcdir;;
22634
.) ac_abs_srcdir=$ac_abs_builddir;;
22635
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22636
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22639
case $ac_abs_builddir in
22640
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22642
case $ac_top_srcdir in
22643
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22644
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22645
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22650
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22651
echo "$as_me: executing $ac_dest commands" >&6;}
22653
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22654
# Strip MF so we end up with the name of the file.
22655
mf=`echo "$mf" | sed -e 's/:.*$//'`
22656
# Check whether this is an Automake generated Makefile or not.
22657
# We used to match only the files named `Makefile.in', but
22658
# some people rename them; so instead we look at the file content.
22659
# Grep'ing the first line is not enough: some people post-process
22660
# each Makefile.in and add a new line on top of each file to say so.
22661
# So let's grep whole file.
22662
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22663
dirpart=`(dirname "$mf") 2>/dev/null ||
22664
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22665
X"$mf" : 'X\(//\)[^/]' \| \
22666
X"$mf" : 'X\(//\)$' \| \
22667
X"$mf" : 'X\(/\)' \| \
22668
. : '\(.\)' 2>/dev/null ||
22670
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22671
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22672
/^X\(\/\/\)$/{ s//\1/; q; }
22673
/^X\(\/\).*/{ s//\1/; q; }
22678
# Extract the definition of DEPDIR, am__include, and am__quote
22679
# from the Makefile without running `make'.
22680
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22681
test -z "$DEPDIR" && continue
22682
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22683
test -z "am__include" && continue
22684
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22685
# When using ansi2knr, U may be empty or an underscore; expand it
22686
U=`sed -n 's/^U = //p' < "$mf"`
22687
# Find all dependency output files, they are included files with
22688
# $(DEPDIR) in their names. We invoke sed twice because it is the
22689
# simplest approach to changing $(DEPDIR) to its actual value in the
22691
for file in `sed -n "
22692
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22693
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22694
# Make sure the directory exists.
22695
test -f "$dirpart/$file" && continue
22696
fdir=`(dirname "$file") 2>/dev/null ||
22697
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22698
X"$file" : 'X\(//\)[^/]' \| \
22699
X"$file" : 'X\(//\)$' \| \
22700
X"$file" : 'X\(/\)' \| \
22701
. : '\(.\)' 2>/dev/null ||
22703
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22704
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22705
/^X\(\/\/\)$/{ s//\1/; q; }
22706
/^X\(\/\).*/{ s//\1/; q; }
22708
{ if $as_mkdir_p; then
22709
mkdir -p $dirpart/$fdir
22711
as_dir=$dirpart/$fdir
22713
while test ! -d "$as_dir"; do
22714
as_dirs="$as_dir $as_dirs"
22715
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22716
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22717
X"$as_dir" : 'X\(//\)[^/]' \| \
22718
X"$as_dir" : 'X\(//\)$' \| \
22719
X"$as_dir" : 'X\(/\)' \| \
22720
. : '\(.\)' 2>/dev/null ||
22722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22723
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22724
/^X\(\/\/\)$/{ s//\1/; q; }
22725
/^X\(\/\).*/{ s//\1/; q; }
22728
test ! -n "$as_dirs" || mkdir $as_dirs
22729
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22730
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22731
{ (exit 1); exit 1; }; }; }
22733
# echo "creating $dirpart/$file"
22734
echo '# dummy' > "$dirpart/$file"
22742
cat >>$CONFIG_STATUS <<\_ACEOF
22744
{ (exit 0); exit 0; }
22746
chmod +x $CONFIG_STATUS
22747
ac_clean_files=$ac_clean_files_save
22750
# configure is writing to config.log, and then calls config.status.
22751
# config.status does its own redirection, appending to config.log.
22752
# Unfortunately, on DOS this fails, as config.log is still kept open
22753
# by configure, so config.status won't be able to write to it; its
22754
# output is simply discarded. So we exec the FD to /dev/null,
22755
# effectively closing config.log, so it can be properly (re)opened and
22756
# appended to by config.status. When coming back to configure, we
22757
# need to make the FD available again.
22758
if test "$no_create" != yes; then
22760
ac_config_status_args=
22761
test "$silent" = yes &&
22762
ac_config_status_args="$ac_config_status_args --quiet"
22764
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22766
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
22767
# would make configure fail if this is the last instruction.
22768
$ac_cs_success || { (exit 1); exit 1; }