2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for PortAudioCpp 12.
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.
422
PACKAGE_NAME='PortAudioCpp'
423
PACKAGE_TARNAME='portaudiocpp'
425
PACKAGE_STRING='PortAudioCpp 12'
428
ac_unique_file="include/portaudiocpp/PortAudioCpp.hxx"
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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DEFAULT_INCLUDES PORTAUDIO_ROOT LT_VERSION_INFO LIBOBJS 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 PortAudioCpp 12 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
1020
case $ac_init_help in
1021
short | recursive ) echo "Configuration of PortAudioCpp 12:";;
1026
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028
--enable-maintainer-mode enable make rules and dependencies not useful
1029
(and sometimes confusing) to the casual installer
1030
--disable-dependency-tracking speeds up one-time build
1031
--enable-dependency-tracking do not reject slow dependency extractors
1032
--enable-shared[=PKGS]
1033
build shared libraries [default=yes]
1034
--enable-static[=PKGS]
1035
build static libraries [default=yes]
1036
--enable-fast-install[=PKGS]
1037
optimize for fast installation [default=yes]
1038
--disable-libtool-lock avoid locking (might break parallel builds)
1041
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044
--with-pic try to use only PIC/non-PIC objects [default=use
1047
include additional configurations [automatic]
1049
Some influential environment variables:
1050
CC C compiler command
1051
CFLAGS C compiler flags
1052
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053
nonstandard directory <lib dir>
1054
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055
headers in a nonstandard directory <include dir>
1056
CXX C++ compiler command
1057
CXXFLAGS C++ compiler flags
1059
CXXCPP C++ preprocessor
1060
F77 Fortran 77 compiler command
1061
FFLAGS Fortran 77 compiler flags
1063
Use these variables to override the choices made by `configure' or to help
1064
it to find libraries and programs with nonstandard names/locations.
1069
if test "$ac_init_help" = "recursive"; then
1070
# If there are subdirs, report their specific --help.
1072
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073
test -d $ac_dir || continue
1076
if test "$ac_dir" != .; then
1077
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078
# A "../" for each directory in $ac_dir_suffix.
1079
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081
ac_dir_suffix= ac_top_builddir=
1085
.) # No --srcdir option. We are building in place.
1087
if test -z "$ac_top_builddir"; then
1090
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092
[\\/]* | ?:[\\/]* ) # Absolute path.
1093
ac_srcdir=$srcdir$ac_dir_suffix;
1094
ac_top_srcdir=$srcdir ;;
1096
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100
# Do not use `cd foo && pwd` to compute absolute paths, because
1101
# the directories may not exist.
1103
.) ac_abs_builddir="$ac_dir";;
1106
.) ac_abs_builddir=`pwd`;;
1107
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1111
case $ac_abs_builddir in
1112
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114
case ${ac_top_builddir}. in
1115
.) ac_abs_top_builddir=$ac_abs_builddir;;
1116
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120
case $ac_abs_builddir in
1121
.) ac_abs_srcdir=$ac_srcdir;;
1124
.) ac_abs_srcdir=$ac_abs_builddir;;
1125
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129
case $ac_abs_builddir in
1130
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132
case $ac_top_srcdir in
1133
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1134
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140
# Check for guested configure; otherwise get Cygnus style configure.
1141
if test -f $ac_srcdir/configure.gnu; then
1143
$SHELL $ac_srcdir/configure.gnu --help=recursive
1144
elif test -f $ac_srcdir/configure; then
1146
$SHELL $ac_srcdir/configure --help=recursive
1147
elif test -f $ac_srcdir/configure.ac ||
1148
test -f $ac_srcdir/configure.in; then
1150
$ac_configure --help
1152
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158
test -n "$ac_init_help" && exit 0
1159
if $ac_init_version; then
1161
PortAudioCpp configure 12
1162
generated by GNU Autoconf 2.59
1164
Copyright (C) 2003 Free Software Foundation, Inc.
1165
This configure script is free software; the Free Software Foundation
1166
gives unlimited permission to copy, distribute and modify it.
1172
This file contains any messages produced by compilers while
1173
running configure, to aid debugging if configure makes a mistake.
1175
It was created by PortAudioCpp $as_me 12, which was
1176
generated by GNU Autoconf 2.59. Invocation command line was
1187
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210
test -z "$as_dir" && as_dir=.
1211
echo "PATH: $as_dir"
1226
# Keep a trace of the command line.
1227
# Strip out --no-create and --no-recursion so they do not pile up.
1228
# Strip out --silent because we don't want to record it for future runs.
1229
# Also quote any args containing shell meta-characters.
1230
# Make two passes to allow for proper duplicate-argument suppression.
1235
ac_must_keep_next=false
1241
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243
| -silent | --silent | --silen | --sile | --sil)
1245
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252
if test $ac_must_keep_next = true; then
1253
ac_must_keep_next=false # Got value, back to normal.
1256
*=* | --config-cache | -C | -disable-* | --disable-* \
1257
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259
| -with-* | --with-* | -without-* | --without-* | --x)
1260
case "$ac_configure_args0 " in
1261
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264
-* ) ac_must_keep_next=true ;;
1267
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268
# Get rid of the leading space.
1274
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
# When interrupted or exit'd, cleanup temporary files, and complete
1278
# config.log. We remove comments because anyway the quotes in there
1279
# would cause problems or look ugly.
1280
# WARNING: Be sure not to use single quotes in there, as some shells,
1281
# such as our DU 5.0 friend, will then `close' the trap.
1282
trap 'exit_status=$?
1283
# Save into config.log some information that might help in debugging.
1288
## ---------------- ##
1289
## Cache variables. ##
1290
## ---------------- ##
1293
# The following way of writing the cache mishandles newlines in values,
1296
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311
## ----------------- ##
1312
## Output variables. ##
1313
## ----------------- ##
1316
for ac_var in $ac_subst_vars
1318
eval ac_val=$`echo $ac_var`
1319
echo "$ac_var='"'"'$ac_val'"'"'"
1323
if test -n "$ac_subst_files"; then
1330
for ac_var in $ac_subst_files
1332
eval ac_val=$`echo $ac_var`
1333
echo "$ac_var='"'"'$ac_val'"'"'"
1338
if test -s confdefs.h; then
1345
sed "/^$/d" confdefs.h | sort
1348
test "$ac_signal" != 0 &&
1349
echo "$as_me: caught signal $ac_signal"
1350
echo "$as_me: exit $exit_status"
1352
rm -f core *.core &&
1353
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356
for ac_signal in 1 2 13 15; do
1357
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362
rm -rf conftest* confdefs.h
1363
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366
# Predefined preprocessor variables.
1368
cat >>confdefs.h <<_ACEOF
1369
#define PACKAGE_NAME "$PACKAGE_NAME"
1373
cat >>confdefs.h <<_ACEOF
1374
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378
cat >>confdefs.h <<_ACEOF
1379
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383
cat >>confdefs.h <<_ACEOF
1384
#define PACKAGE_STRING "$PACKAGE_STRING"
1388
cat >>confdefs.h <<_ACEOF
1389
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393
# Let the site file select an alternate cache file if it wants to.
1394
# Prefer explicitly selected file to automatically selected ones.
1395
if test -z "$CONFIG_SITE"; then
1396
if test "x$prefix" != xNONE; then
1397
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402
for ac_site_file in $CONFIG_SITE; do
1403
if test -r "$ac_site_file"; then
1404
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405
echo "$as_me: loading site script $ac_site_file" >&6;}
1406
sed 's/^/| /' "$ac_site_file" >&5
1411
if test -r "$cache_file"; then
1412
# Some versions of bash will fail to source /dev/null (special
1413
# files actually), so we avoid doing that.
1414
if test -f "$cache_file"; then
1415
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416
echo "$as_me: loading cache $cache_file" >&6;}
1418
[\\/]* | ?:[\\/]* ) . $cache_file;;
1419
*) . ./$cache_file;;
1423
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424
echo "$as_me: creating cache $cache_file" >&6;}
1428
# Check that the precious variables saved in the cache have kept the same
1430
ac_cache_corrupted=false
1431
for ac_var in `(set) 2>&1 |
1432
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434
eval ac_new_set=\$ac_env_${ac_var}_set
1435
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436
eval ac_new_val="\$ac_env_${ac_var}_value"
1437
case $ac_old_set,$ac_new_set in
1439
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441
ac_cache_corrupted=: ;;
1443
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445
ac_cache_corrupted=: ;;
1448
if test "x$ac_old_val" != "x$ac_new_val"; then
1449
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452
echo "$as_me: former value: $ac_old_val" >&2;}
1453
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454
echo "$as_me: current value: $ac_new_val" >&2;}
1455
ac_cache_corrupted=:
1458
# Pass precious variables to config.status.
1459
if test "$ac_new_set" = set; then
1461
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463
*) ac_arg=$ac_var=$ac_new_val ;;
1465
case " $ac_configure_args " in
1466
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471
if $ac_cache_corrupted; then
1472
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476
{ (exit 1); exit 1; }; }
1480
ac_cpp='$CPP $CPPFLAGS'
1481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
am__api_version="1.9"
1514
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1515
if test -f $ac_dir/install-sh; then
1517
ac_install_sh="$ac_aux_dir/install-sh -c"
1519
elif test -f $ac_dir/install.sh; then
1521
ac_install_sh="$ac_aux_dir/install.sh -c"
1523
elif test -f $ac_dir/shtool; then
1525
ac_install_sh="$ac_aux_dir/shtool install -c"
1529
if test -z "$ac_aux_dir"; then
1530
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1531
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1532
{ (exit 1); exit 1; }; }
1534
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1535
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1536
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
# Find a good install program. We prefer a C program (faster),
1539
# so one script is as good as another. But avoid the broken or
1540
# incompatible versions:
1541
# SysV /etc/install, /usr/sbin/install
1542
# SunOS /usr/etc/install
1543
# IRIX /sbin/install
1545
# AmigaOS /C/install, which installs bootblocks on floppy discs
1546
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1547
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1548
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1549
# OS/2's system install, which has a completely different semantic
1550
# ./install, which can be erroneously created by make from ./install.sh.
1551
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1552
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1553
if test -z "$INSTALL"; then
1554
if test "${ac_cv_path_install+set}" = set; then
1555
echo $ECHO_N "(cached) $ECHO_C" >&6
1557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561
test -z "$as_dir" && as_dir=.
1562
# Account for people who put trailing slashes in PATH elements.
1564
./ | .// | /cC/* | \
1565
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1566
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1569
# OSF1 and SCO ODT 3.0 have their own names for install.
1570
# Don't use installbsd from OSF since it installs stuff as root
1572
for ac_prog in ginstall scoinst install; do
1573
for ac_exec_ext in '' $ac_executable_extensions; do
1574
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1575
if test $ac_prog = install &&
1576
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577
# AIX install. It has an incompatible calling convention.
1579
elif test $ac_prog = install &&
1580
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581
# program-specific install script used by HP pwplus--don't use.
1584
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1596
if test "${ac_cv_path_install+set}" = set; then
1597
INSTALL=$ac_cv_path_install
1599
# As a last resort, use the slow shell script. We don't cache a
1600
# path for INSTALL within a source directory, because that will
1601
# break other packages using the cache if that directory is
1602
# removed, or if the path is relative.
1603
INSTALL=$ac_install_sh
1606
echo "$as_me:$LINENO: result: $INSTALL" >&5
1607
echo "${ECHO_T}$INSTALL" >&6
1609
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1610
# It thinks the first close brace ends the variable substitution.
1611
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1615
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1618
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1621
echo timestamp > conftest.file
1622
# Do `set' in a subshell so we don't clobber the current shell's
1623
# arguments. Must try -L first in case configure is actually a
1624
# symlink; some systems play weird games with the mod time of symlinks
1625
# (eg FreeBSD returns the mod time of the symlink's containing
1628
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1629
if test "$*" = "X"; then
1631
set X `ls -t $srcdir/configure conftest.file`
1634
if test "$*" != "X $srcdir/configure conftest.file" \
1635
&& test "$*" != "X conftest.file $srcdir/configure"; then
1637
# If neither matched, then we have a broken ls. This can happen
1638
# if, for instance, CONFIG_SHELL is bash and it inherits a
1639
# broken ls alias from the environment. This has actually
1640
# happened. Such a system could not be considered "sane".
1641
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1642
alias in your environment" >&5
1643
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1644
alias in your environment" >&2;}
1645
{ (exit 1); exit 1; }; }
1648
test "$2" = conftest.file
1654
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1655
Check your system clock" >&5
1656
echo "$as_me: error: newly created file is older than distributed files!
1657
Check your system clock" >&2;}
1658
{ (exit 1); exit 1; }; }
1660
echo "$as_me:$LINENO: result: yes" >&5
1661
echo "${ECHO_T}yes" >&6
1662
test "$program_prefix" != NONE &&
1663
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1664
# Use a double $ so make ignores it.
1665
test "$program_suffix" != NONE &&
1666
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1667
# Double any \ or $. echo might interpret backslashes.
1668
# By default was `s,x,x', remove it if useless.
1669
cat <<\_ACEOF >conftest.sed
1670
s/[\\$]/&&/g;s/;s,x,x,$//
1672
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1675
# expand $ac_aux_dir to an absolute path
1676
am_aux_dir=`cd $ac_aux_dir && pwd`
1678
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1679
# Use eval to expand $SHELL
1680
if eval "$MISSING --run true"; then
1681
am_missing_run="$MISSING --run "
1684
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1685
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1688
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1689
# We used to keeping the `.' as first argument, in order to
1690
# allow $(mkdir_p) to be used without argument. As in
1691
# $(mkdir_p) $(somedir)
1692
# where $(somedir) is conditionally defined. However this is wrong
1694
# 1. if the package is installed by a user who cannot write `.'
1695
# make install will fail,
1696
# 2. the above comment should most certainly read
1697
# $(mkdir_p) $(DESTDIR)$(somedir)
1698
# so it does not work when $(somedir) is undefined and
1699
# $(DESTDIR) is not.
1700
# To support the latter case, we have to write
1701
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1702
# so the `.' trick is pointless.
1703
mkdir_p='mkdir -p --'
1705
# On NextStep and OpenStep, the `mkdir' command does not
1706
# recognize any option. It will interpret all options as
1707
# directories to create, and then abort because `.' already
1709
for d in ./-p ./--version;
1711
test -d $d && rmdir $d
1713
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1714
if test -f "$ac_aux_dir/mkinstalldirs"; then
1715
mkdir_p='$(mkinstalldirs)'
1717
mkdir_p='$(install_sh) -d'
1721
for ac_prog in gawk mawk nawk awk
1723
# Extract the first word of "$ac_prog", so it can be a program name with args.
1724
set dummy $ac_prog; ac_word=$2
1725
echo "$as_me:$LINENO: checking for $ac_word" >&5
1726
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727
if test "${ac_cv_prog_AWK+set}" = set; then
1728
echo $ECHO_N "(cached) $ECHO_C" >&6
1730
if test -n "$AWK"; then
1731
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737
test -z "$as_dir" && as_dir=.
1738
for ac_exec_ext in '' $ac_executable_extensions; do
1739
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740
ac_cv_prog_AWK="$ac_prog"
1741
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750
if test -n "$AWK"; then
1751
echo "$as_me:$LINENO: result: $AWK" >&5
1752
echo "${ECHO_T}$AWK" >&6
1754
echo "$as_me:$LINENO: result: no" >&5
1755
echo "${ECHO_T}no" >&6
1758
test -n "$AWK" && break
1761
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1762
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1763
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1764
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1765
echo $ECHO_N "(cached) $ECHO_C" >&6
1767
cat >conftest.make <<\_ACEOF
1769
@echo 'ac_maketemp="$(MAKE)"'
1771
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1772
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1773
if test -n "$ac_maketemp"; then
1774
eval ac_cv_prog_make_${ac_make}_set=yes
1776
eval ac_cv_prog_make_${ac_make}_set=no
1780
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1781
echo "$as_me:$LINENO: result: yes" >&5
1782
echo "${ECHO_T}yes" >&6
1785
echo "$as_me:$LINENO: result: no" >&5
1786
echo "${ECHO_T}no" >&6
1787
SET_MAKE="MAKE=${MAKE-make}"
1790
rm -rf .tst 2>/dev/null
1791
mkdir .tst 2>/dev/null
1792
if test -d .tst; then
1797
rmdir .tst 2>/dev/null
1799
# test to see if srcdir already configured
1800
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1801
test -f $srcdir/config.status; then
1802
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1803
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1804
{ (exit 1); exit 1; }; }
1807
# test whether we have cygpath
1808
if test -z "$CYGPATH_W"; then
1809
if (cygpath --version) >/dev/null 2>/dev/null; then
1810
CYGPATH_W='cygpath -w'
1817
# Define the identity of the package.
1818
PACKAGE='portaudiocpp'
1822
cat >>confdefs.h <<_ACEOF
1823
#define PACKAGE "$PACKAGE"
1827
cat >>confdefs.h <<_ACEOF
1828
#define VERSION "$VERSION"
1831
# Some tools Automake needs.
1833
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1836
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1839
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1842
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1845
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1847
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1849
# Installed binaries are usually stripped using `strip' when the user
1850
# run `make install-strip'. However `strip' might not be the right
1851
# tool to use in cross-compilation environments, therefore Automake
1852
# will honor the `STRIP' environment variable to overrule this program.
1853
if test "$cross_compiling" != no; then
1854
if test -n "$ac_tool_prefix"; then
1855
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1856
set dummy ${ac_tool_prefix}strip; ac_word=$2
1857
echo "$as_me:$LINENO: checking for $ac_word" >&5
1858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859
if test "${ac_cv_prog_STRIP+set}" = set; then
1860
echo $ECHO_N "(cached) $ECHO_C" >&6
1862
if test -n "$STRIP"; then
1863
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869
test -z "$as_dir" && as_dir=.
1870
for ac_exec_ext in '' $ac_executable_extensions; do
1871
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1873
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881
STRIP=$ac_cv_prog_STRIP
1882
if test -n "$STRIP"; then
1883
echo "$as_me:$LINENO: result: $STRIP" >&5
1884
echo "${ECHO_T}$STRIP" >&6
1886
echo "$as_me:$LINENO: result: no" >&5
1887
echo "${ECHO_T}no" >&6
1891
if test -z "$ac_cv_prog_STRIP"; then
1893
# Extract the first word of "strip", so it can be a program name with args.
1894
set dummy strip; ac_word=$2
1895
echo "$as_me:$LINENO: checking for $ac_word" >&5
1896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1898
echo $ECHO_N "(cached) $ECHO_C" >&6
1900
if test -n "$ac_ct_STRIP"; then
1901
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907
test -z "$as_dir" && as_dir=.
1908
for ac_exec_ext in '' $ac_executable_extensions; do
1909
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910
ac_cv_prog_ac_ct_STRIP="strip"
1911
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1920
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1921
if test -n "$ac_ct_STRIP"; then
1922
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1923
echo "${ECHO_T}$ac_ct_STRIP" >&6
1925
echo "$as_me:$LINENO: result: no" >&5
1926
echo "${ECHO_T}no" >&6
1931
STRIP="$ac_cv_prog_STRIP"
1935
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1937
# We need awk for the "check" target. The system "awk" is bad on
1939
# Always define AMTAR for backward compatibility.
1941
AMTAR=${AMTAR-"${am_missing_run}tar"}
1943
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1949
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1950
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1951
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1952
if test "${enable_maintainer_mode+set}" = set; then
1953
enableval="$enable_maintainer_mode"
1954
USE_MAINTAINER_MODE=$enableval
1956
USE_MAINTAINER_MODE=no
1958
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1959
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1962
if test $USE_MAINTAINER_MODE = yes; then
1963
MAINTAINER_MODE_TRUE=
1964
MAINTAINER_MODE_FALSE='#'
1966
MAINTAINER_MODE_TRUE='#'
1967
MAINTAINER_MODE_FALSE=
1970
MAINT=$MAINTAINER_MODE_TRUE
1974
###### Top-level directory of pacpp
1975
###### This makes it easy to shuffle the build directories
1976
###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
1977
PACPP_ROOT="\$(top_srcdir)"
1978
PORTAUDIO_ROOT="../.."
1980
# Various other variables and flags
1981
DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
1982
CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
1983
CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
1985
LT_VERSION_INFO="0:12:0"
1987
# Checks for programs
1990
ac_cpp='$CPP $CPPFLAGS'
1991
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994
if test -n "$ac_tool_prefix"; then
1995
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1996
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1997
echo "$as_me:$LINENO: checking for $ac_word" >&5
1998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999
if test "${ac_cv_prog_CC+set}" = set; then
2000
echo $ECHO_N "(cached) $ECHO_C" >&6
2002
if test -n "$CC"; then
2003
ac_cv_prog_CC="$CC" # Let the user override the test.
2005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009
test -z "$as_dir" && as_dir=.
2010
for ac_exec_ext in '' $ac_executable_extensions; do
2011
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2013
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022
if test -n "$CC"; then
2023
echo "$as_me:$LINENO: result: $CC" >&5
2024
echo "${ECHO_T}$CC" >&6
2026
echo "$as_me:$LINENO: result: no" >&5
2027
echo "${ECHO_T}no" >&6
2031
if test -z "$ac_cv_prog_CC"; then
2033
# Extract the first word of "gcc", so it can be a program name with args.
2034
set dummy gcc; ac_word=$2
2035
echo "$as_me:$LINENO: checking for $ac_word" >&5
2036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038
echo $ECHO_N "(cached) $ECHO_C" >&6
2040
if test -n "$ac_ct_CC"; then
2041
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047
test -z "$as_dir" && as_dir=.
2048
for ac_exec_ext in '' $ac_executable_extensions; do
2049
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050
ac_cv_prog_ac_ct_CC="gcc"
2051
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2060
if test -n "$ac_ct_CC"; then
2061
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062
echo "${ECHO_T}$ac_ct_CC" >&6
2064
echo "$as_me:$LINENO: result: no" >&5
2065
echo "${ECHO_T}no" >&6
2073
if test -z "$CC"; then
2074
if test -n "$ac_tool_prefix"; then
2075
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2076
set dummy ${ac_tool_prefix}cc; ac_word=$2
2077
echo "$as_me:$LINENO: checking for $ac_word" >&5
2078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079
if test "${ac_cv_prog_CC+set}" = set; then
2080
echo $ECHO_N "(cached) $ECHO_C" >&6
2082
if test -n "$CC"; then
2083
ac_cv_prog_CC="$CC" # Let the user override the test.
2085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089
test -z "$as_dir" && as_dir=.
2090
for ac_exec_ext in '' $ac_executable_extensions; do
2091
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092
ac_cv_prog_CC="${ac_tool_prefix}cc"
2093
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102
if test -n "$CC"; then
2103
echo "$as_me:$LINENO: result: $CC" >&5
2104
echo "${ECHO_T}$CC" >&6
2106
echo "$as_me:$LINENO: result: no" >&5
2107
echo "${ECHO_T}no" >&6
2111
if test -z "$ac_cv_prog_CC"; then
2113
# Extract the first word of "cc", so it can be a program name with args.
2114
set dummy cc; ac_word=$2
2115
echo "$as_me:$LINENO: checking for $ac_word" >&5
2116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118
echo $ECHO_N "(cached) $ECHO_C" >&6
2120
if test -n "$ac_ct_CC"; then
2121
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127
test -z "$as_dir" && as_dir=.
2128
for ac_exec_ext in '' $ac_executable_extensions; do
2129
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130
ac_cv_prog_ac_ct_CC="cc"
2131
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140
if test -n "$ac_ct_CC"; then
2141
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142
echo "${ECHO_T}$ac_ct_CC" >&6
2144
echo "$as_me:$LINENO: result: no" >&5
2145
echo "${ECHO_T}no" >&6
2154
if test -z "$CC"; then
2155
# Extract the first word of "cc", so it can be a program name with args.
2156
set dummy cc; ac_word=$2
2157
echo "$as_me:$LINENO: checking for $ac_word" >&5
2158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159
if test "${ac_cv_prog_CC+set}" = set; then
2160
echo $ECHO_N "(cached) $ECHO_C" >&6
2162
if test -n "$CC"; then
2163
ac_cv_prog_CC="$CC" # Let the user override the test.
2166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170
test -z "$as_dir" && as_dir=.
2171
for ac_exec_ext in '' $ac_executable_extensions; do
2172
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2174
ac_prog_rejected=yes
2178
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184
if test $ac_prog_rejected = yes; then
2185
# We found a bogon in the path, so make sure we never use it.
2186
set dummy $ac_cv_prog_CC
2188
if test $# != 0; then
2189
# We chose a different compiler from the bogus one.
2190
# However, it has the same basename, so the bogon will be chosen
2191
# first if we set CC to just the basename; use the full file name.
2193
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2199
if test -n "$CC"; then
2200
echo "$as_me:$LINENO: result: $CC" >&5
2201
echo "${ECHO_T}$CC" >&6
2203
echo "$as_me:$LINENO: result: no" >&5
2204
echo "${ECHO_T}no" >&6
2208
if test -z "$CC"; then
2209
if test -n "$ac_tool_prefix"; then
2212
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2213
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2214
echo "$as_me:$LINENO: checking for $ac_word" >&5
2215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216
if test "${ac_cv_prog_CC+set}" = set; then
2217
echo $ECHO_N "(cached) $ECHO_C" >&6
2219
if test -n "$CC"; then
2220
ac_cv_prog_CC="$CC" # Let the user override the test.
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226
test -z "$as_dir" && as_dir=.
2227
for ac_exec_ext in '' $ac_executable_extensions; do
2228
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2230
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239
if test -n "$CC"; then
2240
echo "$as_me:$LINENO: result: $CC" >&5
2241
echo "${ECHO_T}$CC" >&6
2243
echo "$as_me:$LINENO: result: no" >&5
2244
echo "${ECHO_T}no" >&6
2247
test -n "$CC" && break
2250
if test -z "$CC"; then
2254
# Extract the first word of "$ac_prog", so it can be a program name with args.
2255
set dummy $ac_prog; ac_word=$2
2256
echo "$as_me:$LINENO: checking for $ac_word" >&5
2257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259
echo $ECHO_N "(cached) $ECHO_C" >&6
2261
if test -n "$ac_ct_CC"; then
2262
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
test -z "$as_dir" && as_dir=.
2269
for ac_exec_ext in '' $ac_executable_extensions; do
2270
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271
ac_cv_prog_ac_ct_CC="$ac_prog"
2272
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281
if test -n "$ac_ct_CC"; then
2282
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283
echo "${ECHO_T}$ac_ct_CC" >&6
2285
echo "$as_me:$LINENO: result: no" >&5
2286
echo "${ECHO_T}no" >&6
2289
test -n "$ac_ct_CC" && break
2298
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299
See \`config.log' for more details." >&5
2300
echo "$as_me: error: no acceptable C compiler found in \$PATH
2301
See \`config.log' for more details." >&2;}
2302
{ (exit 1); exit 1; }; }
2304
# Provide some information about the compiler.
2305
echo "$as_me:$LINENO:" \
2306
"checking for C compiler version" >&5
2307
ac_compiler=`set X $ac_compile; echo $2`
2308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2309
(eval $ac_compiler --version </dev/null >&5) 2>&5
2311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312
(exit $ac_status); }
2313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2314
(eval $ac_compiler -v </dev/null >&5) 2>&5
2316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317
(exit $ac_status); }
2318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2319
(eval $ac_compiler -V </dev/null >&5) 2>&5
2321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322
(exit $ac_status); }
2324
cat >conftest.$ac_ext <<_ACEOF
2327
cat confdefs.h >>conftest.$ac_ext
2328
cat >>conftest.$ac_ext <<_ACEOF
2329
/* end confdefs.h. */
2339
ac_clean_files_save=$ac_clean_files
2340
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2341
# Try to create an executable without -o first, disregard a.out.
2342
# It will help us diagnose broken compilers, and finding out an intuition
2344
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2345
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2346
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2347
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2348
(eval $ac_link_default) 2>&5
2350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351
(exit $ac_status); }; then
2352
# Find the output, starting from the most likely. This scheme is
2353
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2356
# Be careful to initialize this variable, since it used to be cached.
2357
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2359
# b.out is created by i960 compilers.
2360
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2362
test -f "$ac_file" || continue
2364
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2367
# This is the source file.
2370
# We found the default executable, but exeext='' is most
2374
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375
# FIXME: I believe we export ac_cv_exeext for Libtool,
2376
# but it would be cool to find out if it's true. Does anybody
2377
# maintain Libtool? --akim.
2385
echo "$as_me: failed program was:" >&5
2386
sed 's/^/| /' conftest.$ac_ext >&5
2388
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389
See \`config.log' for more details." >&5
2390
echo "$as_me: error: C compiler cannot create executables
2391
See \`config.log' for more details." >&2;}
2392
{ (exit 77); exit 77; }; }
2395
ac_exeext=$ac_cv_exeext
2396
echo "$as_me:$LINENO: result: $ac_file" >&5
2397
echo "${ECHO_T}$ac_file" >&6
2399
# Check the compiler produces executables we can run. If not, either
2400
# the compiler is broken, or we cross compile.
2401
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2403
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404
# If not cross compiling, check that we can run a simple program.
2405
if test "$cross_compiling" != yes; then
2406
if { ac_try='./$ac_file'
2407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411
(exit $ac_status); }; }; then
2414
if test "$cross_compiling" = maybe; then
2417
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2418
If you meant to cross compile, use \`--host'.
2419
See \`config.log' for more details." >&5
2420
echo "$as_me: error: cannot run C compiled programs.
2421
If you meant to cross compile, use \`--host'.
2422
See \`config.log' for more details." >&2;}
2423
{ (exit 1); exit 1; }; }
2427
echo "$as_me:$LINENO: result: yes" >&5
2428
echo "${ECHO_T}yes" >&6
2430
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2431
ac_clean_files=$ac_clean_files_save
2432
# Check the compiler produces executables we can run. If not, either
2433
# the compiler is broken, or we cross compile.
2434
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2435
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2436
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2437
echo "${ECHO_T}$cross_compiling" >&6
2439
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2440
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442
(eval $ac_link) 2>&5
2444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445
(exit $ac_status); }; then
2446
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2447
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2448
# work properly (i.e., refer to `conftest.exe'), while it won't with
2450
for ac_file in conftest.exe conftest conftest.*; do
2451
test -f "$ac_file" || continue
2453
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2454
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2461
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2462
See \`config.log' for more details." >&5
2463
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2464
See \`config.log' for more details." >&2;}
2465
{ (exit 1); exit 1; }; }
2468
rm -f conftest$ac_cv_exeext
2469
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2470
echo "${ECHO_T}$ac_cv_exeext" >&6
2472
rm -f conftest.$ac_ext
2473
EXEEXT=$ac_cv_exeext
2475
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2476
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2477
if test "${ac_cv_objext+set}" = set; then
2478
echo $ECHO_N "(cached) $ECHO_C" >&6
2480
cat >conftest.$ac_ext <<_ACEOF
2483
cat confdefs.h >>conftest.$ac_ext
2484
cat >>conftest.$ac_ext <<_ACEOF
2485
/* end confdefs.h. */
2495
rm -f conftest.o conftest.obj
2496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497
(eval $ac_compile) 2>&5
2499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500
(exit $ac_status); }; then
2501
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2503
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2504
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2509
echo "$as_me: failed program was:" >&5
2510
sed 's/^/| /' conftest.$ac_ext >&5
2512
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513
See \`config.log' for more details." >&5
2514
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515
See \`config.log' for more details." >&2;}
2516
{ (exit 1); exit 1; }; }
2519
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522
echo "${ECHO_T}$ac_cv_objext" >&6
2523
OBJEXT=$ac_cv_objext
2525
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2526
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2527
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2528
echo $ECHO_N "(cached) $ECHO_C" >&6
2530
cat >conftest.$ac_ext <<_ACEOF
2533
cat confdefs.h >>conftest.$ac_ext
2534
cat >>conftest.$ac_ext <<_ACEOF
2535
/* end confdefs.h. */
2548
rm -f conftest.$ac_objext
2549
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550
(eval $ac_compile) 2>conftest.er1
2552
grep -v '^ *+' conftest.er1 >conftest.err
2554
cat conftest.err >&5
2555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556
(exit $ac_status); } &&
2557
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562
(exit $ac_status); }; } &&
2563
{ ac_try='test -s conftest.$ac_objext'
2564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568
(exit $ac_status); }; }; then
2571
echo "$as_me: failed program was:" >&5
2572
sed 's/^/| /' conftest.$ac_ext >&5
2576
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2577
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2582
GCC=`test $ac_compiler_gnu = yes && echo yes`
2583
ac_test_CFLAGS=${CFLAGS+set}
2584
ac_save_CFLAGS=$CFLAGS
2586
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2588
if test "${ac_cv_prog_cc_g+set}" = set; then
2589
echo $ECHO_N "(cached) $ECHO_C" >&6
2591
cat >conftest.$ac_ext <<_ACEOF
2594
cat confdefs.h >>conftest.$ac_ext
2595
cat >>conftest.$ac_ext <<_ACEOF
2596
/* end confdefs.h. */
2606
rm -f conftest.$ac_objext
2607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608
(eval $ac_compile) 2>conftest.er1
2610
grep -v '^ *+' conftest.er1 >conftest.err
2612
cat conftest.err >&5
2613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614
(exit $ac_status); } &&
2615
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620
(exit $ac_status); }; } &&
2621
{ ac_try='test -s conftest.$ac_objext'
2622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626
(exit $ac_status); }; }; then
2629
echo "$as_me: failed program was:" >&5
2630
sed 's/^/| /' conftest.$ac_ext >&5
2634
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2637
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2638
if test "$ac_test_CFLAGS" = set; then
2639
CFLAGS=$ac_save_CFLAGS
2640
elif test $ac_cv_prog_cc_g = yes; then
2641
if test "$GCC" = yes; then
2647
if test "$GCC" = yes; then
2653
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2654
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2655
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2656
echo $ECHO_N "(cached) $ECHO_C" >&6
2658
ac_cv_prog_cc_stdc=no
2660
cat >conftest.$ac_ext <<_ACEOF
2663
cat confdefs.h >>conftest.$ac_ext
2664
cat >>conftest.$ac_ext <<_ACEOF
2665
/* end confdefs.h. */
2668
#include <sys/types.h>
2669
#include <sys/stat.h>
2670
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671
struct buf { int x; };
2672
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673
static char *e (p, i)
2679
static char *f (char * (*g) (char **, int), char **p, ...)
2684
s = g (p, va_arg (v,int));
2689
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2690
function prototypes and stuff, but not '\xHH' hex character constants.
2691
These don't provoke an error unfortunately, instead are silently treated
2692
as 'x'. The following induces an error, until -std1 is added to get
2693
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2694
array size at least. It's necessary to write '\x00'==0 to get something
2695
that's true only with -std1. */
2696
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2698
int test (int i, double x);
2699
struct s1 {int (*f) (int a);};
2700
struct s2 {int (*f) (double a);};
2701
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2712
# Don't try gcc -ansi; that turns off useful extensions and
2713
# breaks some systems' header files.
2714
# AIX -qlanglvl=ansi
2715
# Ultrix and OSF/1 -std1
2716
# HP-UX 10.20 and later -Ae
2717
# HP-UX older versions -Aa -D_HPUX_SOURCE
2718
# SVR4 -Xc -D__EXTENSIONS__
2719
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2721
CC="$ac_save_CC $ac_arg"
2722
rm -f conftest.$ac_objext
2723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724
(eval $ac_compile) 2>conftest.er1
2726
grep -v '^ *+' conftest.er1 >conftest.err
2728
cat conftest.err >&5
2729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730
(exit $ac_status); } &&
2731
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736
(exit $ac_status); }; } &&
2737
{ ac_try='test -s conftest.$ac_objext'
2738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742
(exit $ac_status); }; }; then
2743
ac_cv_prog_cc_stdc=$ac_arg
2746
echo "$as_me: failed program was:" >&5
2747
sed 's/^/| /' conftest.$ac_ext >&5
2750
rm -f conftest.err conftest.$ac_objext
2752
rm -f conftest.$ac_ext conftest.$ac_objext
2757
case "x$ac_cv_prog_cc_stdc" in
2759
echo "$as_me:$LINENO: result: none needed" >&5
2760
echo "${ECHO_T}none needed" >&6 ;;
2762
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2763
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2764
CC="$CC $ac_cv_prog_cc_stdc" ;;
2767
# Some people use a C++ compiler to compile C. Since we use `exit',
2768
# in C++ we need to declare it. In case someone uses the same compiler
2769
# for both compiling C and C++ we need to have the C++ compiler decide
2770
# the declaration of exit, since it's the most demanding environment.
2771
cat >conftest.$ac_ext <<_ACEOF
2776
rm -f conftest.$ac_objext
2777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778
(eval $ac_compile) 2>conftest.er1
2780
grep -v '^ *+' conftest.er1 >conftest.err
2782
cat conftest.err >&5
2783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
(exit $ac_status); } &&
2785
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); }; } &&
2791
{ ac_try='test -s conftest.$ac_objext'
2792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796
(exit $ac_status); }; }; then
2797
for ac_declaration in \
2799
'extern "C" void std::exit (int) throw (); using std::exit;' \
2800
'extern "C" void std::exit (int); using std::exit;' \
2801
'extern "C" void exit (int) throw ();' \
2802
'extern "C" void exit (int);' \
2805
cat >conftest.$ac_ext <<_ACEOF
2808
cat confdefs.h >>conftest.$ac_ext
2809
cat >>conftest.$ac_ext <<_ACEOF
2810
/* end confdefs.h. */
2821
rm -f conftest.$ac_objext
2822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823
(eval $ac_compile) 2>conftest.er1
2825
grep -v '^ *+' conftest.er1 >conftest.err
2827
cat conftest.err >&5
2828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
(exit $ac_status); } &&
2830
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835
(exit $ac_status); }; } &&
2836
{ ac_try='test -s conftest.$ac_objext'
2837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
(exit $ac_status); }; }; then
2844
echo "$as_me: failed program was:" >&5
2845
sed 's/^/| /' conftest.$ac_ext >&5
2849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850
cat >conftest.$ac_ext <<_ACEOF
2853
cat confdefs.h >>conftest.$ac_ext
2854
cat >>conftest.$ac_ext <<_ACEOF
2855
/* end confdefs.h. */
2865
rm -f conftest.$ac_objext
2866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867
(eval $ac_compile) 2>conftest.er1
2869
grep -v '^ *+' conftest.er1 >conftest.err
2871
cat conftest.err >&5
2872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873
(exit $ac_status); } &&
2874
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879
(exit $ac_status); }; } &&
2880
{ ac_try='test -s conftest.$ac_objext'
2881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885
(exit $ac_status); }; }; then
2888
echo "$as_me: failed program was:" >&5
2889
sed 's/^/| /' conftest.$ac_ext >&5
2892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2895
if test -n "$ac_declaration"; then
2896
echo '#ifdef __cplusplus' >>confdefs.h
2897
echo $ac_declaration >>confdefs.h
2898
echo '#endif' >>confdefs.h
2902
echo "$as_me: failed program was:" >&5
2903
sed 's/^/| /' conftest.$ac_ext >&5
2906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908
ac_cpp='$CPP $CPPFLAGS'
2909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912
DEPDIR="${am__leading_dot}deps"
2914
ac_config_commands="$ac_config_commands depfiles"
2917
am_make=${MAKE-make}
2918
cat > confinc << 'END'
2923
# If we don't find an include directive, just comment out the code.
2924
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2925
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2929
# First try GNU make style include.
2930
echo "include confinc" > confmf
2931
# We grep out `Entering directory' and `Leaving directory'
2932
# messages which can occur if `w' ends up in MAKEFLAGS.
2933
# In particular we don't look at `^make:' because GNU make might
2934
# be invoked under some other name (usually "gmake"), in which
2935
# case it prints its new name instead of `make'.
2936
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2941
# Now try BSD make style include.
2942
if test "$am__include" = "#"; then
2943
echo '.include "confinc"' > confmf
2944
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2945
am__include=.include
2952
echo "$as_me:$LINENO: result: $_am_result" >&5
2953
echo "${ECHO_T}$_am_result" >&6
2954
rm -f confinc confmf
2956
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2957
if test "${enable_dependency_tracking+set}" = set; then
2958
enableval="$enable_dependency_tracking"
2961
if test "x$enable_dependency_tracking" != xno; then
2962
am_depcomp="$ac_aux_dir/depcomp"
2967
if test "x$enable_dependency_tracking" != xno; then
2978
depcc="$CC" am_compiler_list=
2980
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2981
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2982
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2983
echo $ECHO_N "(cached) $ECHO_C" >&6
2985
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2986
# We make a subdir and do the tests there. Otherwise we can end up
2987
# making bogus files that we don't know about and never remove. For
2988
# instance it was reported that on HP-UX the gcc test will end up
2989
# making a dummy file named `D' -- because `-MD' means `put the output
2992
# Copy depcomp to subdir because otherwise we won't find it if we're
2993
# using a relative directory.
2994
cp "$am_depcomp" conftest.dir
2996
# We will build objects and dependencies in a subdirectory because
2997
# it helps to detect inapplicable dependency modes. For instance
2998
# both Tru64's cc and ICC support -MD to output dependencies as a
2999
# side effect of compilation, but ICC will put the dependencies in
3000
# the current directory while Tru64 will put them in the object
3004
am_cv_CC_dependencies_compiler_type=none
3005
if test "$am_compiler_list" = ""; then
3006
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3008
for depmode in $am_compiler_list; do
3009
# Setup a source with many dependencies, because some compilers
3010
# like to wrap large dependency lists on column 80 (with \), and
3011
# we should not choose a depcomp mode which is confused by this.
3013
# We need to recreate these files for each test, as the compiler may
3014
# overwrite some of them when testing with obscure command lines.
3015
# This happens at least with the AIX C compiler.
3017
for i in 1 2 3 4 5 6; do
3018
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3019
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3020
# Solaris 8's {/usr,}/bin/sh.
3021
touch sub/conftst$i.h
3023
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3027
# after this tag, mechanisms are not by side-effect, so they'll
3028
# only be used when explicitly requested
3029
if test "x$enable_dependency_tracking" = xyes; then
3037
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3038
# mode. It turns out that the SunPro C++ compiler does not properly
3039
# handle `-M -o', and we need to detect this.
3040
if depmode=$depmode \
3041
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3042
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3043
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3044
>/dev/null 2>conftest.err &&
3045
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3046
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3047
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3048
# icc doesn't choke on unknown options, it will just issue warnings
3049
# or remarks (even with -Werror). So we grep stderr for any message
3050
# that says an option was ignored or not supported.
3051
# When given -MP, icc 7.0 and 7.1 complain thusly:
3052
# icc: Command line warning: ignoring option '-M'; no argument required
3053
# The diagnosis changed in icc 8.0:
3054
# icc: Command line remark: option '-MP' not supported
3055
if (grep 'ignoring option' conftest.err ||
3056
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3057
am_cv_CC_dependencies_compiler_type=$depmode
3066
am_cv_CC_dependencies_compiler_type=none
3070
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3071
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3072
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3077
test "x$enable_dependency_tracking" != xno \
3078
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3080
am__fastdepCC_FALSE='#'
3082
am__fastdepCC_TRUE='#'
3083
am__fastdepCC_FALSE=
3088
ac_cpp='$CXXCPP $CPPFLAGS'
3089
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092
if test -n "$ac_tool_prefix"; then
3093
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3095
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097
echo "$as_me:$LINENO: checking for $ac_word" >&5
3098
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099
if test "${ac_cv_prog_CXX+set}" = set; then
3100
echo $ECHO_N "(cached) $ECHO_C" >&6
3102
if test -n "$CXX"; then
3103
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109
test -z "$as_dir" && as_dir=.
3110
for ac_exec_ext in '' $ac_executable_extensions; do
3111
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3113
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122
if test -n "$CXX"; then
3123
echo "$as_me:$LINENO: result: $CXX" >&5
3124
echo "${ECHO_T}$CXX" >&6
3126
echo "$as_me:$LINENO: result: no" >&5
3127
echo "${ECHO_T}no" >&6
3130
test -n "$CXX" && break
3133
if test -z "$CXX"; then
3135
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3137
# Extract the first word of "$ac_prog", so it can be a program name with args.
3138
set dummy $ac_prog; ac_word=$2
3139
echo "$as_me:$LINENO: checking for $ac_word" >&5
3140
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3142
echo $ECHO_N "(cached) $ECHO_C" >&6
3144
if test -n "$ac_ct_CXX"; then
3145
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151
test -z "$as_dir" && as_dir=.
3152
for ac_exec_ext in '' $ac_executable_extensions; do
3153
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154
ac_cv_prog_ac_ct_CXX="$ac_prog"
3155
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3164
if test -n "$ac_ct_CXX"; then
3165
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3166
echo "${ECHO_T}$ac_ct_CXX" >&6
3168
echo "$as_me:$LINENO: result: no" >&5
3169
echo "${ECHO_T}no" >&6
3172
test -n "$ac_ct_CXX" && break
3174
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3180
# Provide some information about the compiler.
3181
echo "$as_me:$LINENO:" \
3182
"checking for C++ compiler version" >&5
3183
ac_compiler=`set X $ac_compile; echo $2`
3184
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3185
(eval $ac_compiler --version </dev/null >&5) 2>&5
3187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
(exit $ac_status); }
3189
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3190
(eval $ac_compiler -v </dev/null >&5) 2>&5
3192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193
(exit $ac_status); }
3194
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3195
(eval $ac_compiler -V </dev/null >&5) 2>&5
3197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198
(exit $ac_status); }
3200
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3201
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3202
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3203
echo $ECHO_N "(cached) $ECHO_C" >&6
3205
cat >conftest.$ac_ext <<_ACEOF
3208
cat confdefs.h >>conftest.$ac_ext
3209
cat >>conftest.$ac_ext <<_ACEOF
3210
/* end confdefs.h. */
3223
rm -f conftest.$ac_objext
3224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225
(eval $ac_compile) 2>conftest.er1
3227
grep -v '^ *+' conftest.er1 >conftest.err
3229
cat conftest.err >&5
3230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231
(exit $ac_status); } &&
3232
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237
(exit $ac_status); }; } &&
3238
{ ac_try='test -s conftest.$ac_objext'
3239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243
(exit $ac_status); }; }; then
3246
echo "$as_me: failed program was:" >&5
3247
sed 's/^/| /' conftest.$ac_ext >&5
3251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3255
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3257
GXX=`test $ac_compiler_gnu = yes && echo yes`
3258
ac_test_CXXFLAGS=${CXXFLAGS+set}
3259
ac_save_CXXFLAGS=$CXXFLAGS
3261
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3262
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3263
if test "${ac_cv_prog_cxx_g+set}" = set; then
3264
echo $ECHO_N "(cached) $ECHO_C" >&6
3266
cat >conftest.$ac_ext <<_ACEOF
3269
cat confdefs.h >>conftest.$ac_ext
3270
cat >>conftest.$ac_ext <<_ACEOF
3271
/* end confdefs.h. */
3281
rm -f conftest.$ac_objext
3282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283
(eval $ac_compile) 2>conftest.er1
3285
grep -v '^ *+' conftest.er1 >conftest.err
3287
cat conftest.err >&5
3288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289
(exit $ac_status); } &&
3290
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295
(exit $ac_status); }; } &&
3296
{ ac_try='test -s conftest.$ac_objext'
3297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301
(exit $ac_status); }; }; then
3302
ac_cv_prog_cxx_g=yes
3304
echo "$as_me: failed program was:" >&5
3305
sed 's/^/| /' conftest.$ac_ext >&5
3309
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3312
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3313
if test "$ac_test_CXXFLAGS" = set; then
3314
CXXFLAGS=$ac_save_CXXFLAGS
3315
elif test $ac_cv_prog_cxx_g = yes; then
3316
if test "$GXX" = yes; then
3322
if test "$GXX" = yes; then
3328
for ac_declaration in \
3330
'extern "C" void std::exit (int) throw (); using std::exit;' \
3331
'extern "C" void std::exit (int); using std::exit;' \
3332
'extern "C" void exit (int) throw ();' \
3333
'extern "C" void exit (int);' \
3336
cat >conftest.$ac_ext <<_ACEOF
3339
cat confdefs.h >>conftest.$ac_ext
3340
cat >>conftest.$ac_ext <<_ACEOF
3341
/* end confdefs.h. */
3352
rm -f conftest.$ac_objext
3353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354
(eval $ac_compile) 2>conftest.er1
3356
grep -v '^ *+' conftest.er1 >conftest.err
3358
cat conftest.err >&5
3359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360
(exit $ac_status); } &&
3361
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366
(exit $ac_status); }; } &&
3367
{ ac_try='test -s conftest.$ac_objext'
3368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372
(exit $ac_status); }; }; then
3375
echo "$as_me: failed program was:" >&5
3376
sed 's/^/| /' conftest.$ac_ext >&5
3380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381
cat >conftest.$ac_ext <<_ACEOF
3384
cat confdefs.h >>conftest.$ac_ext
3385
cat >>conftest.$ac_ext <<_ACEOF
3386
/* end confdefs.h. */
3396
rm -f conftest.$ac_objext
3397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398
(eval $ac_compile) 2>conftest.er1
3400
grep -v '^ *+' conftest.er1 >conftest.err
3402
cat conftest.err >&5
3403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404
(exit $ac_status); } &&
3405
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410
(exit $ac_status); }; } &&
3411
{ ac_try='test -s conftest.$ac_objext'
3412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416
(exit $ac_status); }; }; then
3419
echo "$as_me: failed program was:" >&5
3420
sed 's/^/| /' conftest.$ac_ext >&5
3423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426
if test -n "$ac_declaration"; then
3427
echo '#ifdef __cplusplus' >>confdefs.h
3428
echo $ac_declaration >>confdefs.h
3429
echo '#endif' >>confdefs.h
3433
ac_cpp='$CPP $CPPFLAGS'
3434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438
depcc="$CXX" am_compiler_list=
3440
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3442
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3443
echo $ECHO_N "(cached) $ECHO_C" >&6
3445
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446
# We make a subdir and do the tests there. Otherwise we can end up
3447
# making bogus files that we don't know about and never remove. For
3448
# instance it was reported that on HP-UX the gcc test will end up
3449
# making a dummy file named `D' -- because `-MD' means `put the output
3452
# Copy depcomp to subdir because otherwise we won't find it if we're
3453
# using a relative directory.
3454
cp "$am_depcomp" conftest.dir
3456
# We will build objects and dependencies in a subdirectory because
3457
# it helps to detect inapplicable dependency modes. For instance
3458
# both Tru64's cc and ICC support -MD to output dependencies as a
3459
# side effect of compilation, but ICC will put the dependencies in
3460
# the current directory while Tru64 will put them in the object
3464
am_cv_CXX_dependencies_compiler_type=none
3465
if test "$am_compiler_list" = ""; then
3466
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468
for depmode in $am_compiler_list; do
3469
# Setup a source with many dependencies, because some compilers
3470
# like to wrap large dependency lists on column 80 (with \), and
3471
# we should not choose a depcomp mode which is confused by this.
3473
# We need to recreate these files for each test, as the compiler may
3474
# overwrite some of them when testing with obscure command lines.
3475
# This happens at least with the AIX C compiler.
3477
for i in 1 2 3 4 5 6; do
3478
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480
# Solaris 8's {/usr,}/bin/sh.
3481
touch sub/conftst$i.h
3483
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3487
# after this tag, mechanisms are not by side-effect, so they'll
3488
# only be used when explicitly requested
3489
if test "x$enable_dependency_tracking" = xyes; then
3497
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3498
# mode. It turns out that the SunPro C++ compiler does not properly
3499
# handle `-M -o', and we need to detect this.
3500
if depmode=$depmode \
3501
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504
>/dev/null 2>conftest.err &&
3505
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3507
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508
# icc doesn't choke on unknown options, it will just issue warnings
3509
# or remarks (even with -Werror). So we grep stderr for any message
3510
# that says an option was ignored or not supported.
3511
# When given -MP, icc 7.0 and 7.1 complain thusly:
3512
# icc: Command line warning: ignoring option '-M'; no argument required
3513
# The diagnosis changed in icc 8.0:
3514
# icc: Command line remark: option '-MP' not supported
3515
if (grep 'ignoring option' conftest.err ||
3516
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517
am_cv_CXX_dependencies_compiler_type=$depmode
3526
am_cv_CXX_dependencies_compiler_type=none
3530
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3531
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3532
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3537
test "x$enable_dependency_tracking" != xno \
3538
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3539
am__fastdepCXX_TRUE=
3540
am__fastdepCXX_FALSE='#'
3542
am__fastdepCXX_TRUE='#'
3543
am__fastdepCXX_FALSE=
3549
# Check whether --enable-shared or --disable-shared was given.
3550
if test "${enable_shared+set}" = set; then
3551
enableval="$enable_shared"
3552
p=${PACKAGE-default}
3554
yes) enable_shared=yes ;;
3555
no) enable_shared=no ;;
3558
# Look at the argument we got. We use all the common list separators.
3559
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3560
for pkg in $enableval; do
3562
if test "X$pkg" = "X$p"; then
3573
# Check whether --enable-static or --disable-static was given.
3574
if test "${enable_static+set}" = set; then
3575
enableval="$enable_static"
3576
p=${PACKAGE-default}
3578
yes) enable_static=yes ;;
3579
no) enable_static=no ;;
3582
# Look at the argument we got. We use all the common list separators.
3583
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3584
for pkg in $enableval; do
3586
if test "X$pkg" = "X$p"; then
3597
# Check whether --enable-fast-install or --disable-fast-install was given.
3598
if test "${enable_fast_install+set}" = set; then
3599
enableval="$enable_fast_install"
3600
p=${PACKAGE-default}
3602
yes) enable_fast_install=yes ;;
3603
no) enable_fast_install=no ;;
3605
enable_fast_install=no
3606
# Look at the argument we got. We use all the common list separators.
3607
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3608
for pkg in $enableval; do
3610
if test "X$pkg" = "X$p"; then
3611
enable_fast_install=yes
3618
enable_fast_install=yes
3621
# Make sure we can run config.sub.
3622
$ac_config_sub sun4 >/dev/null 2>&1 ||
3623
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3624
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3625
{ (exit 1); exit 1; }; }
3627
echo "$as_me:$LINENO: checking build system type" >&5
3628
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3629
if test "${ac_cv_build+set}" = set; then
3630
echo $ECHO_N "(cached) $ECHO_C" >&6
3632
ac_cv_build_alias=$build_alias
3633
test -z "$ac_cv_build_alias" &&
3634
ac_cv_build_alias=`$ac_config_guess`
3635
test -z "$ac_cv_build_alias" &&
3636
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3637
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3638
{ (exit 1); exit 1; }; }
3639
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3640
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3641
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3642
{ (exit 1); exit 1; }; }
3645
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3646
echo "${ECHO_T}$ac_cv_build" >&6
3648
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3649
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3650
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3653
echo "$as_me:$LINENO: checking host system type" >&5
3654
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3655
if test "${ac_cv_host+set}" = set; then
3656
echo $ECHO_N "(cached) $ECHO_C" >&6
3658
ac_cv_host_alias=$host_alias
3659
test -z "$ac_cv_host_alias" &&
3660
ac_cv_host_alias=$ac_cv_build_alias
3661
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3662
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3663
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3664
{ (exit 1); exit 1; }; }
3667
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3668
echo "${ECHO_T}$ac_cv_host" >&6
3670
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3671
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3672
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3675
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3676
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3677
if test "${lt_cv_path_SED+set}" = set; then
3678
echo $ECHO_N "(cached) $ECHO_C" >&6
3680
# Loop through the user's path and test for sed and gsed.
3681
# Then use that list of sed's as ones to test for truncation.
3682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686
test -z "$as_dir" && as_dir=.
3687
for lt_ac_prog in sed gsed; do
3688
for ac_exec_ext in '' $ac_executable_extensions; do
3689
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3690
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3697
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3698
# along with /bin/sed that truncates output.
3699
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3700
test ! -f $lt_ac_sed && continue
3701
cat /dev/null > conftest.in
3703
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3704
# Check for GNU sed and select it if it is found.
3705
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3706
lt_cv_path_SED=$lt_ac_sed
3710
cat conftest.in conftest.in >conftest.tmp
3711
mv conftest.tmp conftest.in
3712
cp conftest.in conftest.nl
3714
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3715
cmp -s conftest.out conftest.nl || break
3716
# 10000 chars as input seems more than enough
3717
test $lt_ac_count -gt 10 && break
3718
lt_ac_count=`expr $lt_ac_count + 1`
3719
if test $lt_ac_count -gt $lt_ac_max; then
3720
lt_ac_max=$lt_ac_count
3721
lt_cv_path_SED=$lt_ac_sed
3729
echo "$as_me:$LINENO: result: $SED" >&5
3730
echo "${ECHO_T}$SED" >&6
3732
echo "$as_me:$LINENO: checking for egrep" >&5
3733
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3734
if test "${ac_cv_prog_egrep+set}" = set; then
3735
echo $ECHO_N "(cached) $ECHO_C" >&6
3737
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3738
then ac_cv_prog_egrep='grep -E'
3739
else ac_cv_prog_egrep='egrep'
3742
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3743
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3744
EGREP=$ac_cv_prog_egrep
3748
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3749
if test "${with_gnu_ld+set}" = set; then
3750
withval="$with_gnu_ld"
3751
test "$withval" = no || with_gnu_ld=yes
3756
if test "$GCC" = yes; then
3757
# Check if gcc -print-prog-name=ld gives a path.
3758
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3759
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3762
# gcc leaves a trailing carriage return which upsets mingw
3763
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3765
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3768
# Accept absolute paths.
3770
re_direlt='/[^/][^/]*/\.\./'
3771
# Canonicalize the pathname of ld
3772
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3773
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3774
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3776
test -z "$LD" && LD="$ac_prog"
3779
# If it fails, then pretend we aren't using GCC.
3783
# If it is relative, then search for the first ld in PATH.
3787
elif test "$with_gnu_ld" = yes; then
3788
echo "$as_me:$LINENO: checking for GNU ld" >&5
3789
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3791
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3792
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3794
if test "${lt_cv_path_LD+set}" = set; then
3795
echo $ECHO_N "(cached) $ECHO_C" >&6
3797
if test -z "$LD"; then
3798
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3799
for ac_dir in $PATH; do
3801
test -z "$ac_dir" && ac_dir=.
3802
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3803
lt_cv_path_LD="$ac_dir/$ac_prog"
3804
# Check to see if the program is GNU ld. I'd rather use --version,
3805
# but apparently some variants of GNU ld only accept -v.
3806
# Break only if it was the GNU/non-GNU ld that we prefer.
3807
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3808
*GNU* | *'with BFD'*)
3809
test "$with_gnu_ld" != no && break
3812
test "$with_gnu_ld" != yes && break
3819
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3824
if test -n "$LD"; then
3825
echo "$as_me:$LINENO: result: $LD" >&5
3826
echo "${ECHO_T}$LD" >&6
3828
echo "$as_me:$LINENO: result: no" >&5
3829
echo "${ECHO_T}no" >&6
3831
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3832
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3833
{ (exit 1); exit 1; }; }
3834
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3835
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3836
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3837
echo $ECHO_N "(cached) $ECHO_C" >&6
3839
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3840
case `$LD -v 2>&1 </dev/null` in
3841
*GNU* | *'with BFD'*)
3842
lt_cv_prog_gnu_ld=yes
3845
lt_cv_prog_gnu_ld=no
3849
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3850
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3851
with_gnu_ld=$lt_cv_prog_gnu_ld
3854
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3855
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3856
if test "${lt_cv_ld_reload_flag+set}" = set; then
3857
echo $ECHO_N "(cached) $ECHO_C" >&6
3859
lt_cv_ld_reload_flag='-r'
3861
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3862
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3863
reload_flag=$lt_cv_ld_reload_flag
3864
case $reload_flag in
3866
*) reload_flag=" $reload_flag" ;;
3868
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3871
if test "$GCC" = yes; then
3872
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3874
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3879
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3880
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3881
if test "${lt_cv_path_NM+set}" = set; then
3882
echo $ECHO_N "(cached) $ECHO_C" >&6
3884
if test -n "$NM"; then
3885
# Let the user override the test.
3888
lt_nm_to_check="${ac_tool_prefix}nm"
3889
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3890
lt_nm_to_check="$lt_nm_to_check nm"
3892
for lt_tmp_nm in $lt_nm_to_check; do
3893
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3894
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3896
test -z "$ac_dir" && ac_dir=.
3897
tmp_nm="$ac_dir/$lt_tmp_nm"
3898
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3899
# Check to see if the nm accepts a BSD-compat flag.
3900
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3901
# nm: unknown option "B" ignored
3902
# Tru64's nm complains that /dev/null is an invalid object file
3903
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3904
*/dev/null* | *'Invalid file or object type'*)
3905
lt_cv_path_NM="$tmp_nm -B"
3909
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3911
lt_cv_path_NM="$tmp_nm -p"
3915
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3916
continue # so that we can try to find one that supports BSD flags
3925
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3928
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3929
echo "${ECHO_T}$lt_cv_path_NM" >&6
3932
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3933
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3935
if test "$LN_S" = "ln -s"; then
3936
echo "$as_me:$LINENO: result: yes" >&5
3937
echo "${ECHO_T}yes" >&6
3939
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3940
echo "${ECHO_T}no, using $LN_S" >&6
3943
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3944
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3945
if test "${lt_cv_deplibs_check_method+set}" = set; then
3946
echo $ECHO_N "(cached) $ECHO_C" >&6
3948
lt_cv_file_magic_cmd='$MAGIC_CMD'
3949
lt_cv_file_magic_test_file=
3950
lt_cv_deplibs_check_method='unknown'
3951
# Need to set the preceding variable on all platforms that support
3952
# interlibrary dependencies.
3953
# 'none' -- dependencies not supported.
3954
# `unknown' -- same as none, but documents that we really don't know.
3955
# 'pass_all' -- all dependencies passed with no checks.
3956
# 'test_compile' -- check by making test program.
3957
# 'file_magic [[regex]]' -- check by looking for files in library path
3958
# which responds to the $file_magic_cmd with a given extended regex.
3959
# If you have `file' or equivalent on your system and you're not sure
3960
# whether `pass_all' will *always* work, you probably want this one.
3964
lt_cv_deplibs_check_method=pass_all
3968
lt_cv_deplibs_check_method=pass_all
3972
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3973
lt_cv_file_magic_cmd='/usr/bin/file -L'
3974
lt_cv_file_magic_test_file=/shlib/libc.so
3978
# func_win32_libid is a shell function defined in ltmain.sh
3979
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3980
lt_cv_file_magic_cmd='func_win32_libid'
3984
# Base MSYS/MinGW do not provide the 'file' command needed by
3985
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3986
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3987
lt_cv_file_magic_cmd='$OBJDUMP -f'
3990
darwin* | rhapsody*)
3991
lt_cv_deplibs_check_method=pass_all
3994
freebsd* | kfreebsd*-gnu | dragonfly*)
3995
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3998
# Not sure whether the presence of OpenBSD here was a mistake.
3999
# Let's accept both of them until this is cleared up.
4000
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4001
lt_cv_file_magic_cmd=/usr/bin/file
4002
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4006
lt_cv_deplibs_check_method=pass_all
4011
lt_cv_deplibs_check_method=pass_all
4014
hpux10.20* | hpux11*)
4015
lt_cv_file_magic_cmd=/usr/bin/file
4018
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4019
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4022
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]'
4023
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4026
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4027
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4033
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4034
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4037
irix5* | irix6* | nonstopux*)
4039
*-32|*"-32 ") libmagic=32-bit;;
4040
*-n32|*"-n32 ") libmagic=N32;;
4041
*-64|*"-64 ") libmagic=64-bit;;
4042
*) libmagic=never-match;;
4044
lt_cv_deplibs_check_method=pass_all
4047
# This must be Linux ELF.
4049
lt_cv_deplibs_check_method=pass_all
4052
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4053
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4054
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4056
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4061
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4062
lt_cv_file_magic_cmd=/usr/bin/file
4063
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4067
lt_cv_deplibs_check_method=unknown
4071
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4072
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4074
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4078
osf3* | osf4* | osf5*)
4079
lt_cv_deplibs_check_method=pass_all
4083
lt_cv_deplibs_check_method=pass_all
4087
case $host_vendor in
4089
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]'
4090
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4093
lt_cv_deplibs_check_method=pass_all
4096
lt_cv_file_magic_cmd='/bin/file'
4097
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4100
lt_cv_file_magic_cmd='/bin/file'
4101
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4102
lt_cv_file_magic_test_file=/lib/libc.so
4105
lt_cv_deplibs_check_method=pass_all
4108
lt_cv_deplibs_check_method=pass_all
4113
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4114
lt_cv_deplibs_check_method=pass_all
4119
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4120
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4121
file_magic_cmd=$lt_cv_file_magic_cmd
4122
deplibs_check_method=$lt_cv_deplibs_check_method
4123
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4128
# If no C compiler was specified, use CC.
4131
# If no C compiler flags were specified, use CFLAGS.
4132
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4134
# Allow CC to be a program name with arguments.
4138
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4139
if test "${enable_libtool_lock+set}" = set; then
4140
enableval="$enable_libtool_lock"
4143
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4145
# Some flags need to be propagated to the compiler or linker for good
4149
# Find out which ABI we are using.
4150
echo 'int i;' > conftest.$ac_ext
4151
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152
(eval $ac_compile) 2>&5
4154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155
(exit $ac_status); }; then
4156
case `/usr/bin/file conftest.$ac_objext` in
4168
# Find out which ABI we are using.
4169
echo '#line 4169 "configure"' > conftest.$ac_ext
4170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171
(eval $ac_compile) 2>&5
4173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
(exit $ac_status); }; then
4175
if test "$lt_cv_prog_gnu_ld" = yes; then
4176
case `/usr/bin/file conftest.$ac_objext` in
4178
LD="${LD-ld} -melf32bsmip"
4181
LD="${LD-ld} -melf32bmipn32"
4184
LD="${LD-ld} -melf64bmip"
4188
case `/usr/bin/file conftest.$ac_objext` in
4204
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4205
# Find out which ABI we are using.
4206
echo 'int i;' > conftest.$ac_ext
4207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208
(eval $ac_compile) 2>&5
4210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211
(exit $ac_status); }; then
4212
case `/usr/bin/file conftest.o` in
4216
LD="${LD-ld} -m elf_i386"
4218
ppc64-*linux*|powerpc64-*linux*)
4219
LD="${LD-ld} -m elf32ppclinux"
4222
LD="${LD-ld} -m elf_s390"
4225
LD="${LD-ld} -m elf32_sparc"
4232
LD="${LD-ld} -m elf_x86_64"
4234
ppc*-*linux*|powerpc*-*linux*)
4235
LD="${LD-ld} -m elf64ppc"
4238
LD="${LD-ld} -m elf64_s390"
4241
LD="${LD-ld} -m elf64_sparc"
4251
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4252
SAVE_CFLAGS="$CFLAGS"
4253
CFLAGS="$CFLAGS -belf"
4254
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4255
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4256
if test "${lt_cv_cc_needs_belf+set}" = set; then
4257
echo $ECHO_N "(cached) $ECHO_C" >&6
4260
ac_cpp='$CPP $CPPFLAGS'
4261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
cat >conftest.$ac_ext <<_ACEOF
4268
cat confdefs.h >>conftest.$ac_ext
4269
cat >>conftest.$ac_ext <<_ACEOF
4270
/* end confdefs.h. */
4280
rm -f conftest.$ac_objext conftest$ac_exeext
4281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282
(eval $ac_link) 2>conftest.er1
4284
grep -v '^ *+' conftest.er1 >conftest.err
4286
cat conftest.err >&5
4287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288
(exit $ac_status); } &&
4289
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294
(exit $ac_status); }; } &&
4295
{ ac_try='test -s conftest$ac_exeext'
4296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
(exit $ac_status); }; }; then
4301
lt_cv_cc_needs_belf=yes
4303
echo "$as_me: failed program was:" >&5
4304
sed 's/^/| /' conftest.$ac_ext >&5
4306
lt_cv_cc_needs_belf=no
4308
rm -f conftest.err conftest.$ac_objext \
4309
conftest$ac_exeext conftest.$ac_ext
4311
ac_cpp='$CPP $CPPFLAGS'
4312
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4318
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4319
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4320
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4321
CFLAGS="$SAVE_CFLAGS"
4325
# Find out which ABI we are using.
4326
echo 'int i;' > conftest.$ac_ext
4327
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328
(eval $ac_compile) 2>&5
4330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331
(exit $ac_status); }; then
4332
case `/usr/bin/file conftest.o` in
4334
case $lt_cv_prog_gnu_ld in
4335
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4336
*) LD="${LD-ld} -64" ;;
4344
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4345
if test -n "$ac_tool_prefix"; then
4346
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4347
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4348
echo "$as_me:$LINENO: checking for $ac_word" >&5
4349
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4351
echo $ECHO_N "(cached) $ECHO_C" >&6
4353
if test -n "$DLLTOOL"; then
4354
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360
test -z "$as_dir" && as_dir=.
4361
for ac_exec_ext in '' $ac_executable_extensions; do
4362
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4364
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372
DLLTOOL=$ac_cv_prog_DLLTOOL
4373
if test -n "$DLLTOOL"; then
4374
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4375
echo "${ECHO_T}$DLLTOOL" >&6
4377
echo "$as_me:$LINENO: result: no" >&5
4378
echo "${ECHO_T}no" >&6
4382
if test -z "$ac_cv_prog_DLLTOOL"; then
4383
ac_ct_DLLTOOL=$DLLTOOL
4384
# Extract the first word of "dlltool", so it can be a program name with args.
4385
set dummy dlltool; ac_word=$2
4386
echo "$as_me:$LINENO: checking for $ac_word" >&5
4387
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4389
echo $ECHO_N "(cached) $ECHO_C" >&6
4391
if test -n "$ac_ct_DLLTOOL"; then
4392
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398
test -z "$as_dir" && as_dir=.
4399
for ac_exec_ext in '' $ac_executable_extensions; do
4400
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4402
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4411
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4412
if test -n "$ac_ct_DLLTOOL"; then
4413
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4414
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4416
echo "$as_me:$LINENO: result: no" >&5
4417
echo "${ECHO_T}no" >&6
4420
DLLTOOL=$ac_ct_DLLTOOL
4422
DLLTOOL="$ac_cv_prog_DLLTOOL"
4425
if test -n "$ac_tool_prefix"; then
4426
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4427
set dummy ${ac_tool_prefix}as; ac_word=$2
4428
echo "$as_me:$LINENO: checking for $ac_word" >&5
4429
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4430
if test "${ac_cv_prog_AS+set}" = set; then
4431
echo $ECHO_N "(cached) $ECHO_C" >&6
4433
if test -n "$AS"; then
4434
ac_cv_prog_AS="$AS" # Let the user override the test.
4436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440
test -z "$as_dir" && as_dir=.
4441
for ac_exec_ext in '' $ac_executable_extensions; do
4442
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443
ac_cv_prog_AS="${ac_tool_prefix}as"
4444
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453
if test -n "$AS"; then
4454
echo "$as_me:$LINENO: result: $AS" >&5
4455
echo "${ECHO_T}$AS" >&6
4457
echo "$as_me:$LINENO: result: no" >&5
4458
echo "${ECHO_T}no" >&6
4462
if test -z "$ac_cv_prog_AS"; then
4464
# Extract the first word of "as", so it can be a program name with args.
4465
set dummy as; ac_word=$2
4466
echo "$as_me:$LINENO: checking for $ac_word" >&5
4467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4469
echo $ECHO_N "(cached) $ECHO_C" >&6
4471
if test -n "$ac_ct_AS"; then
4472
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478
test -z "$as_dir" && as_dir=.
4479
for ac_exec_ext in '' $ac_executable_extensions; do
4480
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481
ac_cv_prog_ac_ct_AS="as"
4482
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4491
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4492
if test -n "$ac_ct_AS"; then
4493
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4494
echo "${ECHO_T}$ac_ct_AS" >&6
4496
echo "$as_me:$LINENO: result: no" >&5
4497
echo "${ECHO_T}no" >&6
4505
if test -n "$ac_tool_prefix"; then
4506
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4507
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4508
echo "$as_me:$LINENO: checking for $ac_word" >&5
4509
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4511
echo $ECHO_N "(cached) $ECHO_C" >&6
4513
if test -n "$OBJDUMP"; then
4514
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520
test -z "$as_dir" && as_dir=.
4521
for ac_exec_ext in '' $ac_executable_extensions; do
4522
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4524
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532
OBJDUMP=$ac_cv_prog_OBJDUMP
4533
if test -n "$OBJDUMP"; then
4534
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4535
echo "${ECHO_T}$OBJDUMP" >&6
4537
echo "$as_me:$LINENO: result: no" >&5
4538
echo "${ECHO_T}no" >&6
4542
if test -z "$ac_cv_prog_OBJDUMP"; then
4543
ac_ct_OBJDUMP=$OBJDUMP
4544
# Extract the first word of "objdump", so it can be a program name with args.
4545
set dummy objdump; ac_word=$2
4546
echo "$as_me:$LINENO: checking for $ac_word" >&5
4547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4548
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4549
echo $ECHO_N "(cached) $ECHO_C" >&6
4551
if test -n "$ac_ct_OBJDUMP"; then
4552
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558
test -z "$as_dir" && as_dir=.
4559
for ac_exec_ext in '' $ac_executable_extensions; do
4560
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4562
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4571
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4572
if test -n "$ac_ct_OBJDUMP"; then
4573
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4574
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4576
echo "$as_me:$LINENO: result: no" >&5
4577
echo "${ECHO_T}no" >&6
4580
OBJDUMP=$ac_ct_OBJDUMP
4582
OBJDUMP="$ac_cv_prog_OBJDUMP"
4589
need_locks="$enable_libtool_lock"
4593
ac_cpp='$CPP $CPPFLAGS'
4594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4598
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4599
# On Suns, sometimes $CPP names a directory.
4600
if test -n "$CPP" && test -d "$CPP"; then
4603
if test -z "$CPP"; then
4604
if test "${ac_cv_prog_CPP+set}" = set; then
4605
echo $ECHO_N "(cached) $ECHO_C" >&6
4607
# Double quotes because CPP needs to be expanded
4608
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4611
for ac_c_preproc_warn_flag in '' yes
4613
# Use a header file that comes with gcc, so configuring glibc
4614
# with a fresh cross-compiler works.
4615
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616
# <limits.h> exists even on freestanding compilers.
4617
# On the NeXT, cc -E runs the code through the compiler's parser,
4618
# not just through cpp. "Syntax error" is here to catch this case.
4619
cat >conftest.$ac_ext <<_ACEOF
4622
cat confdefs.h >>conftest.$ac_ext
4623
cat >>conftest.$ac_ext <<_ACEOF
4624
/* end confdefs.h. */
4626
# include <limits.h>
4628
# include <assert.h>
4632
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4633
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4635
grep -v '^ *+' conftest.er1 >conftest.err
4637
cat conftest.err >&5
4638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639
(exit $ac_status); } >/dev/null; then
4640
if test -s conftest.err; then
4641
ac_cpp_err=$ac_c_preproc_warn_flag
4642
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4649
if test -z "$ac_cpp_err"; then
4652
echo "$as_me: failed program was:" >&5
4653
sed 's/^/| /' conftest.$ac_ext >&5
4655
# Broken: fails on valid input.
4658
rm -f conftest.err conftest.$ac_ext
4660
# OK, works on sane cases. Now check whether non-existent headers
4661
# can be detected and how.
4662
cat >conftest.$ac_ext <<_ACEOF
4665
cat confdefs.h >>conftest.$ac_ext
4666
cat >>conftest.$ac_ext <<_ACEOF
4667
/* end confdefs.h. */
4668
#include <ac_nonexistent.h>
4670
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4671
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4673
grep -v '^ *+' conftest.er1 >conftest.err
4675
cat conftest.err >&5
4676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677
(exit $ac_status); } >/dev/null; then
4678
if test -s conftest.err; then
4679
ac_cpp_err=$ac_c_preproc_warn_flag
4680
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4687
if test -z "$ac_cpp_err"; then
4688
# Broken: success on invalid input.
4691
echo "$as_me: failed program was:" >&5
4692
sed 's/^/| /' conftest.$ac_ext >&5
4694
# Passes both tests.
4698
rm -f conftest.err conftest.$ac_ext
4701
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4702
rm -f conftest.err conftest.$ac_ext
4703
if $ac_preproc_ok; then
4715
echo "$as_me:$LINENO: result: $CPP" >&5
4716
echo "${ECHO_T}$CPP" >&6
4718
for ac_c_preproc_warn_flag in '' yes
4720
# Use a header file that comes with gcc, so configuring glibc
4721
# with a fresh cross-compiler works.
4722
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723
# <limits.h> exists even on freestanding compilers.
4724
# On the NeXT, cc -E runs the code through the compiler's parser,
4725
# not just through cpp. "Syntax error" is here to catch this case.
4726
cat >conftest.$ac_ext <<_ACEOF
4729
cat confdefs.h >>conftest.$ac_ext
4730
cat >>conftest.$ac_ext <<_ACEOF
4731
/* end confdefs.h. */
4733
# include <limits.h>
4735
# include <assert.h>
4739
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4740
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4742
grep -v '^ *+' conftest.er1 >conftest.err
4744
cat conftest.err >&5
4745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746
(exit $ac_status); } >/dev/null; then
4747
if test -s conftest.err; then
4748
ac_cpp_err=$ac_c_preproc_warn_flag
4749
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4756
if test -z "$ac_cpp_err"; then
4759
echo "$as_me: failed program was:" >&5
4760
sed 's/^/| /' conftest.$ac_ext >&5
4762
# Broken: fails on valid input.
4765
rm -f conftest.err conftest.$ac_ext
4767
# OK, works on sane cases. Now check whether non-existent headers
4768
# can be detected and how.
4769
cat >conftest.$ac_ext <<_ACEOF
4772
cat confdefs.h >>conftest.$ac_ext
4773
cat >>conftest.$ac_ext <<_ACEOF
4774
/* end confdefs.h. */
4775
#include <ac_nonexistent.h>
4777
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780
grep -v '^ *+' conftest.er1 >conftest.err
4782
cat conftest.err >&5
4783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784
(exit $ac_status); } >/dev/null; then
4785
if test -s conftest.err; then
4786
ac_cpp_err=$ac_c_preproc_warn_flag
4787
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4794
if test -z "$ac_cpp_err"; then
4795
# Broken: success on invalid input.
4798
echo "$as_me: failed program was:" >&5
4799
sed 's/^/| /' conftest.$ac_ext >&5
4801
# Passes both tests.
4805
rm -f conftest.err conftest.$ac_ext
4808
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809
rm -f conftest.err conftest.$ac_ext
4810
if $ac_preproc_ok; then
4813
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4814
See \`config.log' for more details." >&5
4815
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4816
See \`config.log' for more details." >&2;}
4817
{ (exit 1); exit 1; }; }
4821
ac_cpp='$CPP $CPPFLAGS'
4822
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4828
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4829
if test "${ac_cv_header_stdc+set}" = set; then
4830
echo $ECHO_N "(cached) $ECHO_C" >&6
4832
cat >conftest.$ac_ext <<_ACEOF
4835
cat confdefs.h >>conftest.$ac_ext
4836
cat >>conftest.$ac_ext <<_ACEOF
4837
/* end confdefs.h. */
4851
rm -f conftest.$ac_objext
4852
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853
(eval $ac_compile) 2>conftest.er1
4855
grep -v '^ *+' conftest.er1 >conftest.err
4857
cat conftest.err >&5
4858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859
(exit $ac_status); } &&
4860
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865
(exit $ac_status); }; } &&
4866
{ ac_try='test -s conftest.$ac_objext'
4867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
(exit $ac_status); }; }; then
4872
ac_cv_header_stdc=yes
4874
echo "$as_me: failed program was:" >&5
4875
sed 's/^/| /' conftest.$ac_ext >&5
4877
ac_cv_header_stdc=no
4879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881
if test $ac_cv_header_stdc = yes; then
4882
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4883
cat >conftest.$ac_ext <<_ACEOF
4886
cat confdefs.h >>conftest.$ac_ext
4887
cat >>conftest.$ac_ext <<_ACEOF
4888
/* end confdefs.h. */
4892
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893
$EGREP "memchr" >/dev/null 2>&1; then
4896
ac_cv_header_stdc=no
4902
if test $ac_cv_header_stdc = yes; then
4903
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4904
cat >conftest.$ac_ext <<_ACEOF
4907
cat confdefs.h >>conftest.$ac_ext
4908
cat >>conftest.$ac_ext <<_ACEOF
4909
/* end confdefs.h. */
4913
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914
$EGREP "free" >/dev/null 2>&1; then
4917
ac_cv_header_stdc=no
4923
if test $ac_cv_header_stdc = yes; then
4924
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925
if test "$cross_compiling" = yes; then
4928
cat >conftest.$ac_ext <<_ACEOF
4931
cat confdefs.h >>conftest.$ac_ext
4932
cat >>conftest.$ac_ext <<_ACEOF
4933
/* end confdefs.h. */
4935
#if ((' ' & 0x0FF) == 0x020)
4936
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4937
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939
# define ISLOWER(c) \
4940
(('a' <= (c) && (c) <= 'i') \
4941
|| ('j' <= (c) && (c) <= 'r') \
4942
|| ('s' <= (c) && (c) <= 'z'))
4943
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4946
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4951
for (i = 0; i < 256; i++)
4952
if (XOR (islower (i), ISLOWER (i))
4953
|| toupper (i) != TOUPPER (i))
4958
rm -f conftest$ac_exeext
4959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960
(eval $ac_link) 2>&5
4962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968
(exit $ac_status); }; }; then
4971
echo "$as_me: program exited with status $ac_status" >&5
4972
echo "$as_me: failed program was:" >&5
4973
sed 's/^/| /' conftest.$ac_ext >&5
4976
ac_cv_header_stdc=no
4978
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4982
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4983
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4984
if test $ac_cv_header_stdc = yes; then
4986
cat >>confdefs.h <<\_ACEOF
4987
#define STDC_HEADERS 1
4992
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5002
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5003
inttypes.h stdint.h unistd.h
5005
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006
echo "$as_me:$LINENO: checking for $ac_header" >&5
5007
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5008
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5009
echo $ECHO_N "(cached) $ECHO_C" >&6
5011
cat >conftest.$ac_ext <<_ACEOF
5014
cat confdefs.h >>conftest.$ac_ext
5015
cat >>conftest.$ac_ext <<_ACEOF
5016
/* end confdefs.h. */
5017
$ac_includes_default
5019
#include <$ac_header>
5021
rm -f conftest.$ac_objext
5022
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023
(eval $ac_compile) 2>conftest.er1
5025
grep -v '^ *+' conftest.er1 >conftest.err
5027
cat conftest.err >&5
5028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029
(exit $ac_status); } &&
5030
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035
(exit $ac_status); }; } &&
5036
{ ac_try='test -s conftest.$ac_objext'
5037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041
(exit $ac_status); }; }; then
5042
eval "$as_ac_Header=yes"
5044
echo "$as_me: failed program was:" >&5
5045
sed 's/^/| /' conftest.$ac_ext >&5
5047
eval "$as_ac_Header=no"
5049
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5052
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5053
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5054
cat >>confdefs.h <<_ACEOF
5055
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064
for ac_header in dlfcn.h
5066
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5067
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068
echo "$as_me:$LINENO: checking for $ac_header" >&5
5069
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071
echo $ECHO_N "(cached) $ECHO_C" >&6
5073
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5074
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5076
# Is the header compilable?
5077
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5078
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5079
cat >conftest.$ac_ext <<_ACEOF
5082
cat confdefs.h >>conftest.$ac_ext
5083
cat >>conftest.$ac_ext <<_ACEOF
5084
/* end confdefs.h. */
5085
$ac_includes_default
5086
#include <$ac_header>
5088
rm -f conftest.$ac_objext
5089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090
(eval $ac_compile) 2>conftest.er1
5092
grep -v '^ *+' conftest.er1 >conftest.err
5094
cat conftest.err >&5
5095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
(exit $ac_status); } &&
5097
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102
(exit $ac_status); }; } &&
5103
{ ac_try='test -s conftest.$ac_objext'
5104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108
(exit $ac_status); }; }; then
5109
ac_header_compiler=yes
5111
echo "$as_me: failed program was:" >&5
5112
sed 's/^/| /' conftest.$ac_ext >&5
5114
ac_header_compiler=no
5116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118
echo "${ECHO_T}$ac_header_compiler" >&6
5120
# Is the header present?
5121
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5123
cat >conftest.$ac_ext <<_ACEOF
5126
cat confdefs.h >>conftest.$ac_ext
5127
cat >>conftest.$ac_ext <<_ACEOF
5128
/* end confdefs.h. */
5129
#include <$ac_header>
5131
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134
grep -v '^ *+' conftest.er1 >conftest.err
5136
cat conftest.err >&5
5137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138
(exit $ac_status); } >/dev/null; then
5139
if test -s conftest.err; then
5140
ac_cpp_err=$ac_c_preproc_warn_flag
5141
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5148
if test -z "$ac_cpp_err"; then
5149
ac_header_preproc=yes
5151
echo "$as_me: failed program was:" >&5
5152
sed 's/^/| /' conftest.$ac_ext >&5
5154
ac_header_preproc=no
5156
rm -f conftest.err conftest.$ac_ext
5157
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158
echo "${ECHO_T}$ac_header_preproc" >&6
5160
# So? What about this header?
5161
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5163
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5167
ac_header_preproc=yes
5170
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5184
## --------------------------------------- ##
5185
## Report this to the PortAudioCpp lists. ##
5186
## --------------------------------------- ##
5189
sed "s/^/$as_me: WARNING: /" >&2
5192
echo "$as_me:$LINENO: checking for $ac_header" >&5
5193
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195
echo $ECHO_N "(cached) $ECHO_C" >&6
5197
eval "$as_ac_Header=\$ac_header_preproc"
5199
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5200
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5203
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5204
cat >>confdefs.h <<_ACEOF
5205
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5215
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5216
(test "X$CXX" != "Xg++"))) ; then
5218
ac_cpp='$CXXCPP $CPPFLAGS'
5219
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5222
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5223
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5224
if test -z "$CXXCPP"; then
5225
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5226
echo $ECHO_N "(cached) $ECHO_C" >&6
5228
# Double quotes because CXXCPP needs to be expanded
5229
for CXXCPP in "$CXX -E" "/lib/cpp"
5232
for ac_cxx_preproc_warn_flag in '' yes
5234
# Use a header file that comes with gcc, so configuring glibc
5235
# with a fresh cross-compiler works.
5236
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237
# <limits.h> exists even on freestanding compilers.
5238
# On the NeXT, cc -E runs the code through the compiler's parser,
5239
# not just through cpp. "Syntax error" is here to catch this case.
5240
cat >conftest.$ac_ext <<_ACEOF
5243
cat confdefs.h >>conftest.$ac_ext
5244
cat >>conftest.$ac_ext <<_ACEOF
5245
/* end confdefs.h. */
5247
# include <limits.h>
5249
# include <assert.h>
5253
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256
grep -v '^ *+' conftest.er1 >conftest.err
5258
cat conftest.err >&5
5259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260
(exit $ac_status); } >/dev/null; then
5261
if test -s conftest.err; then
5262
ac_cpp_err=$ac_cxx_preproc_warn_flag
5263
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5270
if test -z "$ac_cpp_err"; then
5273
echo "$as_me: failed program was:" >&5
5274
sed 's/^/| /' conftest.$ac_ext >&5
5276
# Broken: fails on valid input.
5279
rm -f conftest.err conftest.$ac_ext
5281
# OK, works on sane cases. Now check whether non-existent headers
5282
# can be detected and how.
5283
cat >conftest.$ac_ext <<_ACEOF
5286
cat confdefs.h >>conftest.$ac_ext
5287
cat >>conftest.$ac_ext <<_ACEOF
5288
/* end confdefs.h. */
5289
#include <ac_nonexistent.h>
5291
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5294
grep -v '^ *+' conftest.er1 >conftest.err
5296
cat conftest.err >&5
5297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298
(exit $ac_status); } >/dev/null; then
5299
if test -s conftest.err; then
5300
ac_cpp_err=$ac_cxx_preproc_warn_flag
5301
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5308
if test -z "$ac_cpp_err"; then
5309
# Broken: success on invalid input.
5312
echo "$as_me: failed program was:" >&5
5313
sed 's/^/| /' conftest.$ac_ext >&5
5315
# Passes both tests.
5319
rm -f conftest.err conftest.$ac_ext
5322
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323
rm -f conftest.err conftest.$ac_ext
5324
if $ac_preproc_ok; then
5329
ac_cv_prog_CXXCPP=$CXXCPP
5332
CXXCPP=$ac_cv_prog_CXXCPP
5334
ac_cv_prog_CXXCPP=$CXXCPP
5336
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5337
echo "${ECHO_T}$CXXCPP" >&6
5339
for ac_cxx_preproc_warn_flag in '' yes
5341
# Use a header file that comes with gcc, so configuring glibc
5342
# with a fresh cross-compiler works.
5343
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344
# <limits.h> exists even on freestanding compilers.
5345
# On the NeXT, cc -E runs the code through the compiler's parser,
5346
# not just through cpp. "Syntax error" is here to catch this case.
5347
cat >conftest.$ac_ext <<_ACEOF
5350
cat confdefs.h >>conftest.$ac_ext
5351
cat >>conftest.$ac_ext <<_ACEOF
5352
/* end confdefs.h. */
5354
# include <limits.h>
5356
# include <assert.h>
5360
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363
grep -v '^ *+' conftest.er1 >conftest.err
5365
cat conftest.err >&5
5366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367
(exit $ac_status); } >/dev/null; then
5368
if test -s conftest.err; then
5369
ac_cpp_err=$ac_cxx_preproc_warn_flag
5370
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5377
if test -z "$ac_cpp_err"; then
5380
echo "$as_me: failed program was:" >&5
5381
sed 's/^/| /' conftest.$ac_ext >&5
5383
# Broken: fails on valid input.
5386
rm -f conftest.err conftest.$ac_ext
5388
# OK, works on sane cases. Now check whether non-existent headers
5389
# can be detected and how.
5390
cat >conftest.$ac_ext <<_ACEOF
5393
cat confdefs.h >>conftest.$ac_ext
5394
cat >>conftest.$ac_ext <<_ACEOF
5395
/* end confdefs.h. */
5396
#include <ac_nonexistent.h>
5398
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5401
grep -v '^ *+' conftest.er1 >conftest.err
5403
cat conftest.err >&5
5404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405
(exit $ac_status); } >/dev/null; then
5406
if test -s conftest.err; then
5407
ac_cpp_err=$ac_cxx_preproc_warn_flag
5408
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5415
if test -z "$ac_cpp_err"; then
5416
# Broken: success on invalid input.
5419
echo "$as_me: failed program was:" >&5
5420
sed 's/^/| /' conftest.$ac_ext >&5
5422
# Passes both tests.
5426
rm -f conftest.err conftest.$ac_ext
5429
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430
rm -f conftest.err conftest.$ac_ext
5431
if $ac_preproc_ok; then
5434
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5435
See \`config.log' for more details." >&5
5436
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5437
See \`config.log' for more details." >&2;}
5438
{ (exit 1); exit 1; }; }
5442
ac_cpp='$CXXCPP $CPPFLAGS'
5443
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5451
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5452
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5454
if test -n "$ac_tool_prefix"; then
5455
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5457
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5458
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5459
echo "$as_me:$LINENO: checking for $ac_word" >&5
5460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461
if test "${ac_cv_prog_F77+set}" = set; then
5462
echo $ECHO_N "(cached) $ECHO_C" >&6
5464
if test -n "$F77"; then
5465
ac_cv_prog_F77="$F77" # Let the user override the test.
5467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471
test -z "$as_dir" && as_dir=.
5472
for ac_exec_ext in '' $ac_executable_extensions; do
5473
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5475
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484
if test -n "$F77"; then
5485
echo "$as_me:$LINENO: result: $F77" >&5
5486
echo "${ECHO_T}$F77" >&6
5488
echo "$as_me:$LINENO: result: no" >&5
5489
echo "${ECHO_T}no" >&6
5492
test -n "$F77" && break
5495
if test -z "$F77"; then
5497
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5499
# Extract the first word of "$ac_prog", so it can be a program name with args.
5500
set dummy $ac_prog; ac_word=$2
5501
echo "$as_me:$LINENO: checking for $ac_word" >&5
5502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5504
echo $ECHO_N "(cached) $ECHO_C" >&6
5506
if test -n "$ac_ct_F77"; then
5507
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513
test -z "$as_dir" && as_dir=.
5514
for ac_exec_ext in '' $ac_executable_extensions; do
5515
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516
ac_cv_prog_ac_ct_F77="$ac_prog"
5517
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5526
if test -n "$ac_ct_F77"; then
5527
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5528
echo "${ECHO_T}$ac_ct_F77" >&6
5530
echo "$as_me:$LINENO: result: no" >&5
5531
echo "${ECHO_T}no" >&6
5534
test -n "$ac_ct_F77" && break
5541
# Provide some information about the compiler.
5542
echo "$as_me:5542:" \
5543
"checking for Fortran 77 compiler version" >&5
5544
ac_compiler=`set X $ac_compile; echo $2`
5545
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5546
(eval $ac_compiler --version </dev/null >&5) 2>&5
5548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549
(exit $ac_status); }
5550
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5551
(eval $ac_compiler -v </dev/null >&5) 2>&5
5553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554
(exit $ac_status); }
5555
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5556
(eval $ac_compiler -V </dev/null >&5) 2>&5
5558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559
(exit $ac_status); }
5562
# If we don't use `.F' as extension, the preprocessor is not run on the
5563
# input file. (Note that this only needs to work for GNU compilers.)
5566
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5567
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5568
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5569
echo $ECHO_N "(cached) $ECHO_C" >&6
5571
cat >conftest.$ac_ext <<_ACEOF
5579
rm -f conftest.$ac_objext
5580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581
(eval $ac_compile) 2>conftest.er1
5583
grep -v '^ *+' conftest.er1 >conftest.err
5585
cat conftest.err >&5
5586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587
(exit $ac_status); } &&
5588
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593
(exit $ac_status); }; } &&
5594
{ ac_try='test -s conftest.$ac_objext'
5595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599
(exit $ac_status); }; }; then
5602
echo "$as_me: failed program was:" >&5
5603
sed 's/^/| /' conftest.$ac_ext >&5
5607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5611
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5612
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5614
ac_test_FFLAGS=${FFLAGS+set}
5615
ac_save_FFLAGS=$FFLAGS
5617
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5618
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5619
if test "${ac_cv_prog_f77_g+set}" = set; then
5620
echo $ECHO_N "(cached) $ECHO_C" >&6
5623
cat >conftest.$ac_ext <<_ACEOF
5628
rm -f conftest.$ac_objext
5629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630
(eval $ac_compile) 2>conftest.er1
5632
grep -v '^ *+' conftest.er1 >conftest.err
5634
cat conftest.err >&5
5635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636
(exit $ac_status); } &&
5637
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642
(exit $ac_status); }; } &&
5643
{ ac_try='test -s conftest.$ac_objext'
5644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648
(exit $ac_status); }; }; then
5649
ac_cv_prog_f77_g=yes
5651
echo "$as_me: failed program was:" >&5
5652
sed 's/^/| /' conftest.$ac_ext >&5
5656
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5660
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5661
if test "$ac_test_FFLAGS" = set; then
5662
FFLAGS=$ac_save_FFLAGS
5663
elif test $ac_cv_prog_f77_g = yes; then
5664
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5670
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5677
G77=`test $ac_compiler_gnu = yes && echo yes`
5679
ac_cpp='$CPP $CPPFLAGS'
5680
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5688
# find the maximum length of command line arguments
5689
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5690
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5691
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5692
echo $ECHO_N "(cached) $ECHO_C" >&6
5699
# On DJGPP, this test can blow up pretty badly due to problems in libc
5700
# (any single argument exceeding 2000 bytes causes a buffer overrun
5701
# during glob expansion). Even if it were fixed, the result of this
5702
# check would be larger than it should be.
5703
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5707
# Under GNU Hurd, this test is not required because there is
5708
# no limit to the length of command line arguments.
5709
# Libtool will interpret -1 as no limit whatsoever
5710
lt_cv_sys_max_cmd_len=-1;
5714
# On Win9x/ME, this test blows up -- it succeeds, but takes
5715
# about 5 minutes as the teststring grows exponentially.
5716
# Worse, since 9x/ME are not pre-emptively multitasking,
5717
# you end up with a "frozen" computer, even though with patience
5718
# the test eventually succeeds (with a max line length of 256k).
5719
# Instead, let's just punt: use the minimum linelength reported by
5720
# all of the supported platforms: 8192 (on NT/2K/XP).
5721
lt_cv_sys_max_cmd_len=8192;
5725
# On AmigaOS with pdksh, this test takes hours, literally.
5726
# So we just punt and use a minimum line length of 8192.
5727
lt_cv_sys_max_cmd_len=8192;
5730
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5731
# This has been around since 386BSD, at least. Likely further.
5732
if test -x /sbin/sysctl; then
5733
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5734
elif test -x /usr/sbin/sysctl; then
5735
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5737
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5739
# And add a safety zone
5740
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5745
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5746
lt_cv_sys_max_cmd_len=196608
5750
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752
# nice to cause kernel panics so lets avoid the loop below.
5753
# First set a reasonable default.
5754
lt_cv_sys_max_cmd_len=16384
5756
if test -x /sbin/sysconfig; then
5757
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5763
lt_cv_sys_max_cmd_len=102400
5765
sysv5* | sco5v6* | sysv4.2uw2*)
5766
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767
if test -n "$kargmax"; then
5768
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5770
lt_cv_sys_max_cmd_len=32768
5774
# If test is not a shell built-in, we'll probably end up computing a
5775
# maximum length that is only half of the actual maximum length, but
5777
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5778
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5779
= "XX$teststring") >/dev/null 2>&1 &&
5780
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5781
lt_cv_sys_max_cmd_len=$new_result &&
5782
test $i != 17 # 1/2 MB should be enough
5785
teststring=$teststring$teststring
5788
# Add a significant safety factor because C++ compilers can tack on massive
5789
# amounts of additional arguments before passing them to the linker.
5790
# It appears as though 1/2 is a usable value.
5791
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5797
if test -n $lt_cv_sys_max_cmd_len ; then
5798
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5799
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5801
echo "$as_me:$LINENO: result: none" >&5
5802
echo "${ECHO_T}none" >&6
5808
# Check for command to grab the raw symbol name followed by C symbol from nm.
5809
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5810
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5811
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5812
echo $ECHO_N "(cached) $ECHO_C" >&6
5815
# These are sane defaults that work on at least a few old systems.
5816
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5818
# Character class describing NM global symbol codes.
5819
symcode='[BCDEGRST]'
5821
# Regexp to match symbols that can be accessed directly from C.
5822
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5824
# Transform an extracted symbol line into a proper C declaration
5825
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5827
# Transform an extracted symbol line into symbol name and symbol address
5828
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'"
5830
# Define system-specific variables.
5835
cygwin* | mingw* | pw32*)
5836
symcode='[ABCDGISTW]'
5838
hpux*) # Its linker distinguishes data from code symbols
5839
if test "$host_cpu" = ia64; then
5840
symcode='[ABCDEGRST]'
5842
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5843
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'"
5846
if test "$host_cpu" = ia64; then
5847
symcode='[ABCDGIRSTW]'
5848
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5849
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'"
5853
symcode='[BCDEGRST]'
5856
symcode='[BCDEGQRST]'
5867
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5875
# Handle CRLF in mingw tool chain
5879
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5883
# If we're using GNU nm, then use its standard symbol codes.
5884
case `$NM -V 2>&1` in
5885
*GNU* | *'with BFD'*)
5886
symcode='[ABCDGIRSTW]' ;;
5889
# Try without a prefix undercore, then with it.
5890
for ac_symprfx in "" "_"; do
5892
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5893
symxfrm="\\1 $ac_symprfx\\2 \\2"
5895
# Write the raw and C identifiers.
5896
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5898
# Check to see that the pipe works correctly.
5902
cat > conftest.$ac_ext <<EOF
5907
void nm_test_func(){}
5911
int main(){nm_test_var='a';nm_test_func();return(0);}
5914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915
(eval $ac_compile) 2>&5
5917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918
(exit $ac_status); }; then
5919
# Now try to grab the symbols.
5921
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5922
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925
(exit $ac_status); } && test -s "$nlist"; then
5926
# Try sorting and uniquifying the output.
5927
if sort "$nlist" | uniq > "$nlist"T; then
5928
mv -f "$nlist"T "$nlist"
5933
# Make sure that we snagged all the symbols we need.
5934
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5935
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5936
cat <<EOF > conftest.$ac_ext
5942
# Now generate the symbol file.
5943
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5945
cat <<EOF >> conftest.$ac_ext
5946
#if defined (__STDC__) && __STDC__
5947
# define lt_ptr_t void *
5949
# define lt_ptr_t char *
5953
/* The mapping between symbol names and symbols. */
5958
lt_preloaded_symbols[] =
5961
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5962
cat <<\EOF >> conftest.$ac_ext
5970
# Now try linking the two files.
5971
mv conftest.$ac_objext conftstm.$ac_objext
5972
lt_save_LIBS="$LIBS"
5973
lt_save_CFLAGS="$CFLAGS"
5974
LIBS="conftstm.$ac_objext"
5975
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5976
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977
(eval $ac_link) 2>&5
5979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5983
LIBS="$lt_save_LIBS"
5984
CFLAGS="$lt_save_CFLAGS"
5986
echo "cannot find nm_test_func in $nlist" >&5
5989
echo "cannot find nm_test_var in $nlist" >&5
5992
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5995
echo "$progname: failed program was:" >&5
5996
cat conftest.$ac_ext >&5
5998
rm -f conftest* conftst*
6000
# Do not use the global_symbol_pipe unless it works.
6001
if test "$pipe_works" = yes; then
6004
lt_cv_sys_global_symbol_pipe=
6010
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6011
lt_cv_sys_global_symbol_to_cdecl=
6013
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6014
echo "$as_me:$LINENO: result: failed" >&5
6015
echo "${ECHO_T}failed" >&6
6017
echo "$as_me:$LINENO: result: ok" >&5
6018
echo "${ECHO_T}ok" >&6
6021
echo "$as_me:$LINENO: checking for objdir" >&5
6022
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6023
if test "${lt_cv_objdir+set}" = set; then
6024
echo $ECHO_N "(cached) $ECHO_C" >&6
6026
rm -f .libs 2>/dev/null
6027
mkdir .libs 2>/dev/null
6028
if test -d .libs; then
6031
# MS-DOS does not allow filenames that begin with a dot.
6034
rmdir .libs 2>/dev/null
6036
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6037
echo "${ECHO_T}$lt_cv_objdir" >&6
6038
objdir=$lt_cv_objdir
6046
# AIX sometimes has problems with the GCC collect2 program. For some
6047
# reason, if we set the COLLECT_NAMES environment variable, the problems
6048
# vanish in a puff of smoke.
6049
if test "X${COLLECT_NAMES+set}" != Xset; then
6051
export COLLECT_NAMES
6056
# Sed substitution that helps us do robust quoting. It backslashifies
6057
# metacharacters that are still active within double-quoted strings.
6058
Xsed='sed -e 1s/^X//'
6059
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6061
# Same as above, but do not quote variable references.
6062
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6064
# Sed substitution to delay expansion of an escaped shell variable in a
6065
# double_quote_subst'ed string.
6066
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6068
# Sed substitution to avoid accidental globbing in evaled expressions
6069
no_glob_subst='s/\*/\\\*/g'
6075
default_ofile=libtool
6076
can_build_shared=yes
6078
# All known linkers require a `.a' archive for static linking (except MSVC,
6079
# which needs '.lib').
6081
ltmain="$ac_aux_dir/ltmain.sh"
6082
ofile="$default_ofile"
6083
with_gnu_ld="$lt_cv_prog_gnu_ld"
6085
if test -n "$ac_tool_prefix"; then
6086
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6087
set dummy ${ac_tool_prefix}ar; ac_word=$2
6088
echo "$as_me:$LINENO: checking for $ac_word" >&5
6089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090
if test "${ac_cv_prog_AR+set}" = set; then
6091
echo $ECHO_N "(cached) $ECHO_C" >&6
6093
if test -n "$AR"; then
6094
ac_cv_prog_AR="$AR" # Let the user override the test.
6096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100
test -z "$as_dir" && as_dir=.
6101
for ac_exec_ext in '' $ac_executable_extensions; do
6102
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103
ac_cv_prog_AR="${ac_tool_prefix}ar"
6104
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113
if test -n "$AR"; then
6114
echo "$as_me:$LINENO: result: $AR" >&5
6115
echo "${ECHO_T}$AR" >&6
6117
echo "$as_me:$LINENO: result: no" >&5
6118
echo "${ECHO_T}no" >&6
6122
if test -z "$ac_cv_prog_AR"; then
6124
# Extract the first word of "ar", so it can be a program name with args.
6125
set dummy ar; ac_word=$2
6126
echo "$as_me:$LINENO: checking for $ac_word" >&5
6127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6128
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6129
echo $ECHO_N "(cached) $ECHO_C" >&6
6131
if test -n "$ac_ct_AR"; then
6132
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138
test -z "$as_dir" && as_dir=.
6139
for ac_exec_ext in '' $ac_executable_extensions; do
6140
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141
ac_cv_prog_ac_ct_AR="ar"
6142
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6151
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6152
if test -n "$ac_ct_AR"; then
6153
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6154
echo "${ECHO_T}$ac_ct_AR" >&6
6156
echo "$as_me:$LINENO: result: no" >&5
6157
echo "${ECHO_T}no" >&6
6165
if test -n "$ac_tool_prefix"; then
6166
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168
echo "$as_me:$LINENO: checking for $ac_word" >&5
6169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6170
if test "${ac_cv_prog_RANLIB+set}" = set; then
6171
echo $ECHO_N "(cached) $ECHO_C" >&6
6173
if test -n "$RANLIB"; then
6174
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180
test -z "$as_dir" && as_dir=.
6181
for ac_exec_ext in '' $ac_executable_extensions; do
6182
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192
RANLIB=$ac_cv_prog_RANLIB
6193
if test -n "$RANLIB"; then
6194
echo "$as_me:$LINENO: result: $RANLIB" >&5
6195
echo "${ECHO_T}$RANLIB" >&6
6197
echo "$as_me:$LINENO: result: no" >&5
6198
echo "${ECHO_T}no" >&6
6202
if test -z "$ac_cv_prog_RANLIB"; then
6203
ac_ct_RANLIB=$RANLIB
6204
# Extract the first word of "ranlib", so it can be a program name with args.
6205
set dummy ranlib; ac_word=$2
6206
echo "$as_me:$LINENO: checking for $ac_word" >&5
6207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6208
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6209
echo $ECHO_N "(cached) $ECHO_C" >&6
6211
if test -n "$ac_ct_RANLIB"; then
6212
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218
test -z "$as_dir" && as_dir=.
6219
for ac_exec_ext in '' $ac_executable_extensions; do
6220
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221
ac_cv_prog_ac_ct_RANLIB="ranlib"
6222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6231
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6232
if test -n "$ac_ct_RANLIB"; then
6233
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6234
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6236
echo "$as_me:$LINENO: result: no" >&5
6237
echo "${ECHO_T}no" >&6
6240
RANLIB=$ac_ct_RANLIB
6242
RANLIB="$ac_cv_prog_RANLIB"
6245
if test -n "$ac_tool_prefix"; then
6246
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6247
set dummy ${ac_tool_prefix}strip; ac_word=$2
6248
echo "$as_me:$LINENO: checking for $ac_word" >&5
6249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250
if test "${ac_cv_prog_STRIP+set}" = set; then
6251
echo $ECHO_N "(cached) $ECHO_C" >&6
6253
if test -n "$STRIP"; then
6254
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260
test -z "$as_dir" && as_dir=.
6261
for ac_exec_ext in '' $ac_executable_extensions; do
6262
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6264
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272
STRIP=$ac_cv_prog_STRIP
6273
if test -n "$STRIP"; then
6274
echo "$as_me:$LINENO: result: $STRIP" >&5
6275
echo "${ECHO_T}$STRIP" >&6
6277
echo "$as_me:$LINENO: result: no" >&5
6278
echo "${ECHO_T}no" >&6
6282
if test -z "$ac_cv_prog_STRIP"; then
6284
# Extract the first word of "strip", so it can be a program name with args.
6285
set dummy strip; ac_word=$2
6286
echo "$as_me:$LINENO: checking for $ac_word" >&5
6287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6289
echo $ECHO_N "(cached) $ECHO_C" >&6
6291
if test -n "$ac_ct_STRIP"; then
6292
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298
test -z "$as_dir" && as_dir=.
6299
for ac_exec_ext in '' $ac_executable_extensions; do
6300
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301
ac_cv_prog_ac_ct_STRIP="strip"
6302
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6311
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6312
if test -n "$ac_ct_STRIP"; then
6313
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6314
echo "${ECHO_T}$ac_ct_STRIP" >&6
6316
echo "$as_me:$LINENO: result: no" >&5
6317
echo "${ECHO_T}no" >&6
6322
STRIP="$ac_cv_prog_STRIP"
6327
old_CFLAGS="$CFLAGS"
6329
# Set sane defaults for various variables
6330
test -z "$AR" && AR=ar
6331
test -z "$AR_FLAGS" && AR_FLAGS=cru
6332
test -z "$AS" && AS=as
6333
test -z "$CC" && CC=cc
6334
test -z "$LTCC" && LTCC=$CC
6335
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6336
test -z "$DLLTOOL" && DLLTOOL=dlltool
6337
test -z "$LD" && LD=ld
6338
test -z "$LN_S" && LN_S="ln -s"
6339
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6340
test -z "$NM" && NM=nm
6341
test -z "$SED" && SED=sed
6342
test -z "$OBJDUMP" && OBJDUMP=objdump
6343
test -z "$RANLIB" && RANLIB=:
6344
test -z "$STRIP" && STRIP=:
6345
test -z "$ac_objext" && ac_objext=o
6347
# Determine commands to create old-style static archives.
6348
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6349
old_postinstall_cmds='chmod 644 $oldlib'
6350
old_postuninstall_cmds=
6352
if test -n "$RANLIB"; then
6355
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6358
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6361
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6364
for cc_temp in $compiler""; do
6366
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6367
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6372
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6375
# Only perform the check for file, if the check method requires it
6376
case $deplibs_check_method in
6378
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6379
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6380
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6381
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6382
echo $ECHO_N "(cached) $ECHO_C" >&6
6386
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6389
lt_save_MAGIC_CMD="$MAGIC_CMD"
6390
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6391
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6392
for ac_dir in $ac_dummy; do
6394
test -z "$ac_dir" && ac_dir=.
6395
if test -f $ac_dir/${ac_tool_prefix}file; then
6396
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6397
if test -n "$file_magic_test_file"; then
6398
case $deplibs_check_method in
6400
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6401
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6402
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6403
$EGREP "$file_magic_regex" > /dev/null; then
6408
*** Warning: the command libtool uses to detect shared libraries,
6409
*** $file_magic_cmd, produces output that libtool cannot recognize.
6410
*** The result is that libtool may fail to recognize shared libraries
6411
*** as such. This will affect the creation of libtool libraries that
6412
*** depend on shared libraries, but programs linked with such libtool
6413
*** libraries will work regardless of this problem. Nevertheless, you
6414
*** may want to report the problem to your system manager and/or to
6415
*** bug-libtool@gnu.org
6425
MAGIC_CMD="$lt_save_MAGIC_CMD"
6430
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6431
if test -n "$MAGIC_CMD"; then
6432
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6433
echo "${ECHO_T}$MAGIC_CMD" >&6
6435
echo "$as_me:$LINENO: result: no" >&5
6436
echo "${ECHO_T}no" >&6
6439
if test -z "$lt_cv_path_MAGIC_CMD"; then
6440
if test -n "$ac_tool_prefix"; then
6441
echo "$as_me:$LINENO: checking for file" >&5
6442
echo $ECHO_N "checking for file... $ECHO_C" >&6
6443
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6444
echo $ECHO_N "(cached) $ECHO_C" >&6
6448
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6451
lt_save_MAGIC_CMD="$MAGIC_CMD"
6452
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6453
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6454
for ac_dir in $ac_dummy; do
6456
test -z "$ac_dir" && ac_dir=.
6457
if test -f $ac_dir/file; then
6458
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6459
if test -n "$file_magic_test_file"; then
6460
case $deplibs_check_method in
6462
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6463
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6464
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6465
$EGREP "$file_magic_regex" > /dev/null; then
6470
*** Warning: the command libtool uses to detect shared libraries,
6471
*** $file_magic_cmd, produces output that libtool cannot recognize.
6472
*** The result is that libtool may fail to recognize shared libraries
6473
*** as such. This will affect the creation of libtool libraries that
6474
*** depend on shared libraries, but programs linked with such libtool
6475
*** libraries will work regardless of this problem. Nevertheless, you
6476
*** may want to report the problem to your system manager and/or to
6477
*** bug-libtool@gnu.org
6487
MAGIC_CMD="$lt_save_MAGIC_CMD"
6492
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6493
if test -n "$MAGIC_CMD"; then
6494
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6495
echo "${ECHO_T}$MAGIC_CMD" >&6
6497
echo "$as_me:$LINENO: result: no" >&5
6498
echo "${ECHO_T}no" >&6
6511
enable_win32_dll=yes
6513
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6514
if test "${enable_libtool_lock+set}" = set; then
6515
enableval="$enable_libtool_lock"
6518
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6521
# Check whether --with-pic or --without-pic was given.
6522
if test "${with_pic+set}" = set; then
6528
test -z "$pic_mode" && pic_mode=default
6530
# Use C for the default configuration in the libtool script
6534
ac_cpp='$CPP $CPPFLAGS'
6535
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
# Source file extension for C test sources.
6543
# Object file extension for compiled C test sources.
6547
# Code to be used in simple compile tests
6548
lt_simple_compile_test_code="int some_variable = 0;\n"
6550
# Code to be used in simple link tests
6551
lt_simple_link_test_code='int main(){return(0);}\n'
6554
# If no C compiler was specified, use CC.
6557
# If no C compiler flags were specified, use CFLAGS.
6558
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6560
# Allow CC to be a program name with arguments.
6564
# save warnings/boilerplate of simple test code
6565
ac_outfile=conftest.$ac_objext
6566
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6567
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6568
_lt_compiler_boilerplate=`cat conftest.err`
6571
ac_outfile=conftest.$ac_objext
6572
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6573
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6574
_lt_linker_boilerplate=`cat conftest.err`
6579
lt_prog_compiler_no_builtin_flag=
6581
if test "$GCC" = yes; then
6582
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6585
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6586
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6587
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6588
echo $ECHO_N "(cached) $ECHO_C" >&6
6590
lt_cv_prog_compiler_rtti_exceptions=no
6591
ac_outfile=conftest.$ac_objext
6592
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6593
lt_compiler_flag="-fno-rtti -fno-exceptions"
6594
# Insert the option either (1) after the last *FLAGS variable, or
6595
# (2) before a word containing "conftest.", or (3) at the end.
6596
# Note that $ac_compile itself does not contain backslashes and begins
6597
# with a dollar sign (not a hyphen), so the echo should work correctly.
6598
# The option is referenced via a variable to avoid confusing sed.
6599
lt_compile=`echo "$ac_compile" | $SED \
6600
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6601
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6602
-e 's:$: $lt_compiler_flag:'`
6603
(eval echo "\"\$as_me:6603: $lt_compile\"" >&5)
6604
(eval "$lt_compile" 2>conftest.err)
6606
cat conftest.err >&5
6607
echo "$as_me:6607: \$? = $ac_status" >&5
6608
if (exit $ac_status) && test -s "$ac_outfile"; then
6609
# The compiler can only warn and ignore the option if not recognized
6610
# So say no if there are warnings other than the usual output.
6611
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6612
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6613
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6614
lt_cv_prog_compiler_rtti_exceptions=yes
6620
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6621
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6623
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6624
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6631
lt_prog_compiler_wl=
6632
lt_prog_compiler_pic=
6633
lt_prog_compiler_static=
6635
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6636
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6638
if test "$GCC" = yes; then
6639
lt_prog_compiler_wl='-Wl,'
6640
lt_prog_compiler_static='-static'
6644
# All AIX code is PIC.
6645
if test "$host_cpu" = ia64; then
6646
# AIX 5 now supports IA64 processor
6647
lt_prog_compiler_static='-Bstatic'
6652
# FIXME: we need at least 68020 code to build shared libraries, but
6653
# adding the `-m68020' flag to GCC prevents building anything better,
6655
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6658
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6659
# PIC is the default for these OSes.
6662
mingw* | pw32* | os2*)
6663
# This hack is so that the source file can tell whether it is being
6664
# built for inclusion in a dll (and should export symbols for example).
6665
lt_prog_compiler_pic='-DDLL_EXPORT'
6668
darwin* | rhapsody*)
6669
# PIC is the default on this platform
6670
# Common symbols not allowed in MH_DYLIB files
6671
lt_prog_compiler_pic='-fno-common'
6675
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6676
# Instead, we relocate shared libraries at runtime.
6680
# Just because we use GCC doesn't mean we suddenly get shared libraries
6681
# on systems that don't support them.
6682
lt_prog_compiler_can_build_shared=no
6687
if test -d /usr/nec; then
6688
lt_prog_compiler_pic=-Kconform_pic
6693
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6700
lt_prog_compiler_pic='-fPIC'
6706
lt_prog_compiler_pic='-fPIC'
6710
# PORTME Check for flag to pass linker flags through the system compiler.
6713
lt_prog_compiler_wl='-Wl,'
6714
if test "$host_cpu" = ia64; then
6715
# AIX 5 now supports IA64 processor
6716
lt_prog_compiler_static='-Bstatic'
6718
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6722
# PIC is the default on this platform
6723
# Common symbols not allowed in MH_DYLIB files
6724
case $cc_basename in
6726
lt_prog_compiler_pic='-qnocommon'
6727
lt_prog_compiler_wl='-Wl,'
6732
mingw* | pw32* | os2*)
6733
# This hack is so that the source file can tell whether it is being
6734
# built for inclusion in a dll (and should export symbols for example).
6735
lt_prog_compiler_pic='-DDLL_EXPORT'
6738
hpux9* | hpux10* | hpux11*)
6739
lt_prog_compiler_wl='-Wl,'
6740
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6747
lt_prog_compiler_pic='+Z'
6750
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6751
lt_prog_compiler_static='${wl}-a ${wl}archive'
6754
irix5* | irix6* | nonstopux*)
6755
lt_prog_compiler_wl='-Wl,'
6756
# PIC (with -KPIC) is the default.
6757
lt_prog_compiler_static='-non_shared'
6761
lt_prog_compiler_pic='-KPIC'
6762
lt_prog_compiler_static='-Bstatic'
6766
case $cc_basename in
6768
lt_prog_compiler_wl='-Wl,'
6769
lt_prog_compiler_pic='-KPIC'
6770
lt_prog_compiler_static='-static'
6772
pgcc* | pgf77* | pgf90* | pgf95*)
6773
# Portland Group compilers (*not* the Pentium gcc compiler,
6774
# which looks to be a dead project)
6775
lt_prog_compiler_wl='-Wl,'
6776
lt_prog_compiler_pic='-fpic'
6777
lt_prog_compiler_static='-Bstatic'
6780
lt_prog_compiler_wl='-Wl,'
6781
# All Alpha code is PIC.
6782
lt_prog_compiler_static='-non_shared'
6787
osf3* | osf4* | osf5*)
6788
lt_prog_compiler_wl='-Wl,'
6789
# All OSF/1 code is PIC.
6790
lt_prog_compiler_static='-non_shared'
6794
lt_prog_compiler_pic='-KPIC'
6795
lt_prog_compiler_static='-Bstatic'
6796
case $cc_basename in
6798
lt_prog_compiler_wl='-Qoption ld ';;
6800
lt_prog_compiler_wl='-Wl,';;
6805
lt_prog_compiler_wl='-Qoption ld '
6806
lt_prog_compiler_pic='-PIC'
6807
lt_prog_compiler_static='-Bstatic'
6810
sysv4 | sysv4.2uw2* | sysv4.3*)
6811
lt_prog_compiler_wl='-Wl,'
6812
lt_prog_compiler_pic='-KPIC'
6813
lt_prog_compiler_static='-Bstatic'
6817
if test -d /usr/nec ;then
6818
lt_prog_compiler_pic='-Kconform_pic'
6819
lt_prog_compiler_static='-Bstatic'
6823
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6824
lt_prog_compiler_wl='-Wl,'
6825
lt_prog_compiler_pic='-KPIC'
6826
lt_prog_compiler_static='-Bstatic'
6830
lt_prog_compiler_wl='-Wl,'
6831
lt_prog_compiler_can_build_shared=no
6835
lt_prog_compiler_pic='-pic'
6836
lt_prog_compiler_static='-Bstatic'
6840
lt_prog_compiler_can_build_shared=no
6845
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6846
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6849
# Check to make sure the PIC flag actually works.
6851
if test -n "$lt_prog_compiler_pic"; then
6853
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6854
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6855
if test "${lt_prog_compiler_pic_works+set}" = set; then
6856
echo $ECHO_N "(cached) $ECHO_C" >&6
6858
lt_prog_compiler_pic_works=no
6859
ac_outfile=conftest.$ac_objext
6860
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6861
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6862
# Insert the option either (1) after the last *FLAGS variable, or
6863
# (2) before a word containing "conftest.", or (3) at the end.
6864
# Note that $ac_compile itself does not contain backslashes and begins
6865
# with a dollar sign (not a hyphen), so the echo should work correctly.
6866
# The option is referenced via a variable to avoid confusing sed.
6867
lt_compile=`echo "$ac_compile" | $SED \
6868
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6869
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6870
-e 's:$: $lt_compiler_flag:'`
6871
(eval echo "\"\$as_me:6871: $lt_compile\"" >&5)
6872
(eval "$lt_compile" 2>conftest.err)
6874
cat conftest.err >&5
6875
echo "$as_me:6875: \$? = $ac_status" >&5
6876
if (exit $ac_status) && test -s "$ac_outfile"; then
6877
# The compiler can only warn and ignore the option if not recognized
6878
# So say no if there are warnings other than the usual output.
6879
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6880
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6881
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6882
lt_prog_compiler_pic_works=yes
6888
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6889
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6891
if test x"$lt_prog_compiler_pic_works" = xyes; then
6892
case $lt_prog_compiler_pic in
6894
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6897
lt_prog_compiler_pic=
6898
lt_prog_compiler_can_build_shared=no
6903
# For platforms which do not support PIC, -DPIC is meaningless:
6905
lt_prog_compiler_pic=
6908
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6913
# Check to make sure the static flag actually works.
6915
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6916
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6917
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6918
if test "${lt_prog_compiler_static_works+set}" = set; then
6919
echo $ECHO_N "(cached) $ECHO_C" >&6
6921
lt_prog_compiler_static_works=no
6922
save_LDFLAGS="$LDFLAGS"
6923
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6924
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6925
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6926
# The linker can only warn and ignore the option if not recognized
6927
# So say no if there are warnings
6928
if test -s conftest.err; then
6929
# Append any errors to the config.log.
6930
cat conftest.err 1>&5
6931
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6932
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6933
if diff conftest.exp conftest.er2 >/dev/null; then
6934
lt_prog_compiler_static_works=yes
6937
lt_prog_compiler_static_works=yes
6941
LDFLAGS="$save_LDFLAGS"
6944
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6945
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6947
if test x"$lt_prog_compiler_static_works" = xyes; then
6950
lt_prog_compiler_static=
6954
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6955
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6956
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6957
echo $ECHO_N "(cached) $ECHO_C" >&6
6959
lt_cv_prog_compiler_c_o=no
6960
$rm -r conftest 2>/dev/null
6964
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6966
lt_compiler_flag="-o out/conftest2.$ac_objext"
6967
# Insert the option either (1) after the last *FLAGS variable, or
6968
# (2) before a word containing "conftest.", or (3) at the end.
6969
# Note that $ac_compile itself does not contain backslashes and begins
6970
# with a dollar sign (not a hyphen), so the echo should work correctly.
6971
lt_compile=`echo "$ac_compile" | $SED \
6972
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6973
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6974
-e 's:$: $lt_compiler_flag:'`
6975
(eval echo "\"\$as_me:6975: $lt_compile\"" >&5)
6976
(eval "$lt_compile" 2>out/conftest.err)
6978
cat out/conftest.err >&5
6979
echo "$as_me:6979: \$? = $ac_status" >&5
6980
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6982
# The compiler can only warn and ignore the option if not recognized
6983
# So say no if there are warnings
6984
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6985
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6986
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6987
lt_cv_prog_compiler_c_o=yes
6992
# SGI C++ compiler will create directory out/ii_files/ for
6993
# template instantiation
6994
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6995
$rm out/* && rmdir out
7001
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7002
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7005
hard_links="nottested"
7006
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7007
# do not overwrite the value of need_locks provided by the user
7008
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7009
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7012
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7014
ln conftest.a conftest.b 2>&5 || hard_links=no
7015
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7016
echo "$as_me:$LINENO: result: $hard_links" >&5
7017
echo "${ECHO_T}$hard_links" >&6
7018
if test "$hard_links" = no; then
7019
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7020
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7027
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7028
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7031
allow_undefined_flag=
7032
enable_shared_with_static_runtimes=no
7034
archive_expsym_cmds=
7035
old_archive_From_new_cmds=
7036
old_archive_from_expsyms_cmds=
7037
export_dynamic_flag_spec=
7038
whole_archive_flag_spec=
7039
thread_safe_flag_spec=
7040
hardcode_libdir_flag_spec=
7041
hardcode_libdir_flag_spec_ld=
7042
hardcode_libdir_separator=
7045
hardcode_shlibpath_var=unsupported
7046
link_all_deplibs=unknown
7047
hardcode_automatic=no
7050
always_export_symbols=no
7051
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7052
# include_expsyms should be a list of space-separated symbols to be *always*
7053
# included in the symbol list
7055
# exclude_expsyms can be an extended regexp of symbols to exclude
7056
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7057
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7058
# as well as any symbol that contains `d'.
7059
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7060
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7061
# platforms (ab)use it in PIC code, but their linkers get confused if
7062
# the symbol is explicitly referenced. Since portable code cannot
7063
# rely on this symbol name, it's probably fine to never include it in
7064
# preloaded symbol tables.
7065
extract_expsyms_cmds=
7066
# Just being paranoid about ensuring that cc_basename is set.
7067
for cc_temp in $compiler""; do
7069
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7070
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7075
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7078
cygwin* | mingw* | pw32*)
7079
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7080
# When not using gcc, we currently assume that we are using
7081
# Microsoft Visual C++.
7082
if test "$GCC" != yes; then
7087
# we just hope/assume this is gcc and not c89 (= MSVC++)
7096
if test "$with_gnu_ld" = yes; then
7097
# If archive_cmds runs LD, not CC, wlarc should be empty
7100
# Set some defaults for GNU ld with shared library support. These
7101
# are reset later if shared libraries are not supported. Putting them
7102
# here allows them to be overridden if necessary.
7103
runpath_var=LD_RUN_PATH
7104
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7105
export_dynamic_flag_spec='${wl}--export-dynamic'
7106
# ancient GNU ld didn't support --whole-archive et. al.
7107
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7108
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7110
whole_archive_flag_spec=
7112
supports_anon_versioning=no
7113
case `$LD -v 2>/dev/null` in
7114
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7115
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7116
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7117
*\ 2.11.*) ;; # other 2.11 versions
7118
*) supports_anon_versioning=yes ;;
7121
# See if GNU ld supports shared libraries.
7123
aix3* | aix4* | aix5*)
7124
# On AIX/PPC, the GNU linker is very broken
7125
if test "$host_cpu" != ia64; then
7129
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7130
*** to be unable to reliably create shared libraries on AIX.
7131
*** Therefore, libtool is disabling shared libraries support. If you
7132
*** really care for shared libraries, you may want to modify your PATH
7133
*** so that a non-GNU linker is found, and then restart.
7140
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)'
7141
hardcode_libdir_flag_spec='-L$libdir'
7142
hardcode_minus_L=yes
7144
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7145
# that the semantics of dynamic libraries on AmigaOS, at least up
7146
# to version 4, is to share data among multiple programs linked
7147
# with the same dynamic library. Since this doesn't match the
7148
# behavior of shared libraries on other platforms, we can't use
7154
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7155
allow_undefined_flag=unsupported
7156
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7157
# support --undefined. This deserves some investigation. FIXME
7158
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7164
cygwin* | mingw* | pw32*)
7165
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7166
# as there is no search path for DLLs.
7167
hardcode_libdir_flag_spec='-L$libdir'
7168
allow_undefined_flag=unsupported
7169
always_export_symbols=no
7170
enable_shared_with_static_runtimes=yes
7171
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7173
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7174
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7175
# If the export-symbols file already is a .def file (1st line
7176
# is EXPORTS), use it as is; otherwise, prepend...
7177
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7178
cp $export_symbols $output_objdir/$soname.def;
7180
echo EXPORTS > $output_objdir/$soname.def;
7181
cat $export_symbols >> $output_objdir/$soname.def;
7183
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7191
hardcode_shlibpath_var=no
7192
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7193
export_dynamic_flag_spec='${wl}-E'
7194
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7195
# Instead, shared libraries are loaded at an image base (0x10000000 by
7196
# default) and relocated if they conflict, which is a slow very memory
7197
# consuming and fragmenting process. To avoid this, we pick a random,
7198
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7199
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7200
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7201
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7205
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7207
case $cc_basename,$host_cpu in
7208
pgcc*) # Portland Group C compiler
7209
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'
7210
tmp_addflag=' $pic_flag'
7212
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7213
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'
7214
tmp_addflag=' $pic_flag -Mnomain' ;;
7215
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7216
tmp_addflag=' -i_dynamic' ;;
7217
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7218
tmp_addflag=' -i_dynamic -nofor_main' ;;
7219
ifc* | ifort*) # Intel Fortran compiler
7220
tmp_addflag=' -nofor_main' ;;
7222
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7224
if test $supports_anon_versioning = yes; then
7225
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7226
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7227
$echo "local: *; };" >> $output_objdir/$libname.ver~
7228
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7236
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7237
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7238
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7241
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7242
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7247
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7251
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7252
*** create shared libraries on Solaris systems. Therefore, libtool
7253
*** is disabling shared libraries support. We urge you to upgrade GNU
7254
*** binutils to release 2.9.1 or newer. Another option is to modify
7255
*** your PATH or compiler configuration so that the native linker is
7256
*** used, and then restart.
7259
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7260
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7261
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7267
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7268
case `$LD -v 2>&1` in
7269
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7273
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7274
*** reliably create shared libraries on SCO systems. Therefore, libtool
7275
*** is disabling shared libraries support. We urge you to upgrade GNU
7276
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7277
*** your PATH or compiler configuration so that the native linker is
7278
*** used, and then restart.
7283
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7284
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7285
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7286
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7295
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7298
hardcode_shlibpath_var=no
7302
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7303
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7304
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7311
if test "$ld_shlibs" = no; then
7313
hardcode_libdir_flag_spec=
7314
export_dynamic_flag_spec=
7315
whole_archive_flag_spec=
7318
# PORTME fill in a description of your system's linker (not GNU ld)
7321
allow_undefined_flag=unsupported
7322
always_export_symbols=yes
7323
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'
7324
# Note: this linker hardcodes the directories in LIBPATH if there
7325
# are no directories specified by -L.
7326
hardcode_minus_L=yes
7327
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7328
# Neither direct hardcoding nor static linking is supported with a
7330
hardcode_direct=unsupported
7335
if test "$host_cpu" = ia64; then
7336
# On IA64, the linker does run time linking by default, so we don't
7337
# have to do anything special.
7338
aix_use_runtimelinking=no
7339
exp_sym_flag='-Bexport'
7342
# If we're using GNU nm, then we don't want the "-C" option.
7343
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7344
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7345
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'
7347
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'
7349
aix_use_runtimelinking=no
7351
# Test if we are trying to use run time linking or normal
7352
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7353
# need to do runtime linking.
7354
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7355
for ld_flag in $LDFLAGS; do
7356
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7357
aix_use_runtimelinking=yes
7364
exp_sym_flag='-bexport'
7365
no_entry_flag='-bnoentry'
7368
# When large executables or shared objects are built, AIX ld can
7369
# have problems creating the table of contents. If linking a library
7370
# or program results in "error TOC overflow" add -mminimal-toc to
7371
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7372
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7376
hardcode_libdir_separator=':'
7377
link_all_deplibs=yes
7379
if test "$GCC" = yes; then
7380
case $host_os in aix4.[012]|aix4.[012].*)
7381
# We only want to do this on AIX 4.2 and lower, the check
7382
# below for broken collect2 doesn't work under 4.3+
7383
collect2name=`${CC} -print-prog-name=collect2`
7384
if test -f "$collect2name" && \
7385
strings "$collect2name" | grep resolve_lib_name >/dev/null
7387
# We have reworked collect2
7390
# We have old collect2
7391
hardcode_direct=unsupported
7392
# It fails to find uninstalled libraries when the uninstalled
7393
# path is not listed in the libpath. Setting hardcode_minus_L
7394
# to unsupported forces relinking
7395
hardcode_minus_L=yes
7396
hardcode_libdir_flag_spec='-L$libdir'
7397
hardcode_libdir_separator=
7401
shared_flag='-shared'
7402
if test "$aix_use_runtimelinking" = yes; then
7403
shared_flag="$shared_flag "'${wl}-G'
7407
if test "$host_cpu" = ia64; then
7408
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7409
# chokes on -Wl,-G. The following line is correct:
7412
if test "$aix_use_runtimelinking" = yes; then
7413
shared_flag='${wl}-G'
7415
shared_flag='${wl}-bM:SRE'
7420
# It seems that -bexpall does not export symbols beginning with
7421
# underscore (_), so it is better to generate a list of symbols to export.
7422
always_export_symbols=yes
7423
if test "$aix_use_runtimelinking" = yes; then
7424
# Warning - without using the other runtime loading flags (-brtl),
7425
# -berok will link without error, but may produce a broken library.
7426
allow_undefined_flag='-berok'
7427
# Determine the default libpath from the value encoded in an empty executable.
7428
cat >conftest.$ac_ext <<_ACEOF
7431
cat confdefs.h >>conftest.$ac_ext
7432
cat >>conftest.$ac_ext <<_ACEOF
7433
/* end confdefs.h. */
7443
rm -f conftest.$ac_objext conftest$ac_exeext
7444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7445
(eval $ac_link) 2>conftest.er1
7447
grep -v '^ *+' conftest.er1 >conftest.err
7449
cat conftest.err >&5
7450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451
(exit $ac_status); } &&
7452
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457
(exit $ac_status); }; } &&
7458
{ ac_try='test -s conftest$ac_exeext'
7459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463
(exit $ac_status); }; }; then
7465
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7467
# Check for a 64-bit object if we didn't find anything.
7468
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; }
7471
echo "$as_me: failed program was:" >&5
7472
sed 's/^/| /' conftest.$ac_ext >&5
7475
rm -f conftest.err conftest.$ac_objext \
7476
conftest$ac_exeext conftest.$ac_ext
7477
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7479
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7480
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7482
if test "$host_cpu" = ia64; then
7483
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7484
allow_undefined_flag="-z nodefs"
7485
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7487
# Determine the default libpath from the value encoded in an empty executable.
7488
cat >conftest.$ac_ext <<_ACEOF
7491
cat confdefs.h >>conftest.$ac_ext
7492
cat >>conftest.$ac_ext <<_ACEOF
7493
/* end confdefs.h. */
7503
rm -f conftest.$ac_objext conftest$ac_exeext
7504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505
(eval $ac_link) 2>conftest.er1
7507
grep -v '^ *+' conftest.er1 >conftest.err
7509
cat conftest.err >&5
7510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511
(exit $ac_status); } &&
7512
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517
(exit $ac_status); }; } &&
7518
{ ac_try='test -s conftest$ac_exeext'
7519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523
(exit $ac_status); }; }; then
7525
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7527
# Check for a 64-bit object if we didn't find anything.
7528
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; }
7531
echo "$as_me: failed program was:" >&5
7532
sed 's/^/| /' conftest.$ac_ext >&5
7535
rm -f conftest.err conftest.$ac_objext \
7536
conftest$ac_exeext conftest.$ac_ext
7537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7539
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7540
# Warning - without using the other run time loading flags,
7541
# -berok will link without error, but may produce a broken library.
7542
no_undefined_flag=' ${wl}-bernotok'
7543
allow_undefined_flag=' ${wl}-berok'
7544
# Exported symbols can be pulled into shared objects from archives
7545
whole_archive_flag_spec='$convenience'
7546
archive_cmds_need_lc=yes
7547
# This is similar to how AIX traditionally builds its shared libraries.
7548
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7554
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)'
7555
hardcode_libdir_flag_spec='-L$libdir'
7556
hardcode_minus_L=yes
7557
# see comment about different semantics on the GNU ld section
7562
export_dynamic_flag_spec=-rdynamic
7565
cygwin* | mingw* | pw32*)
7566
# When not using gcc, we currently assume that we are using
7567
# Microsoft Visual C++.
7568
# hardcode_libdir_flag_spec is actually meaningless, as there is
7569
# no search path for DLLs.
7570
hardcode_libdir_flag_spec=' '
7571
allow_undefined_flag=unsupported
7572
# Tell ltmain to make .lib files, not .a files.
7574
# Tell ltmain to make .dll files, not .so files.
7576
# FIXME: Setting linknames here is a bad hack.
7577
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7578
# The linker will automatically build a .lib file if we build a DLL.
7579
old_archive_From_new_cmds='true'
7580
# FIXME: Should let the user specify the lib program.
7581
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7582
fix_srcfile_path='`cygpath -w "$srcfile"`'
7583
enable_shared_with_static_runtimes=yes
7586
darwin* | rhapsody*)
7588
rhapsody* | darwin1.[012])
7589
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7592
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7593
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7595
case ${MACOSX_DEPLOYMENT_TARGET} in
7597
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7600
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7606
archive_cmds_need_lc=no
7608
hardcode_automatic=yes
7609
hardcode_shlibpath_var=unsupported
7610
whole_archive_flag_spec=''
7611
link_all_deplibs=yes
7612
if test "$GCC" = yes ; then
7613
output_verbose_link_cmd='echo'
7614
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7615
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7616
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7617
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}'
7618
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}'
7620
case $cc_basename in
7622
output_verbose_link_cmd='echo'
7623
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7624
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7625
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7626
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}'
7627
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}'
7637
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7638
hardcode_libdir_flag_spec='-L$libdir'
7639
hardcode_shlibpath_var=no
7646
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7647
# support. Future versions do this automatically, but an explicit c++rt0.o
7648
# does not break anything, and helps significantly (at the cost of a little
7651
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7652
hardcode_libdir_flag_spec='-R$libdir'
7654
hardcode_shlibpath_var=no
7657
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7659
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7661
hardcode_minus_L=yes
7662
hardcode_shlibpath_var=no
7665
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7666
freebsd* | dragonfly*)
7667
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7668
hardcode_libdir_flag_spec='-R$libdir'
7670
hardcode_shlibpath_var=no
7673
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
7675
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7676
hardcode_libdir_flag_spec='-R$libdir'
7678
hardcode_shlibpath_var=no
7683
if test "$GCC" = yes; then
7684
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'
7686
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'
7688
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7689
hardcode_libdir_separator=:
7692
# hardcode_minus_L: Not really in the search PATH,
7693
# but as the default location of the library.
7694
hardcode_minus_L=yes
7695
export_dynamic_flag_spec='${wl}-E'
7699
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7700
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7702
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7704
if test "$with_gnu_ld" = no; then
7705
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7706
hardcode_libdir_separator=:
7709
export_dynamic_flag_spec='${wl}-E'
7711
# hardcode_minus_L: Not really in the search PATH,
7712
# but as the default location of the library.
7713
hardcode_minus_L=yes
7718
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7721
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7724
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7727
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7733
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7736
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7739
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7743
if test "$with_gnu_ld" = no; then
7744
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7745
hardcode_libdir_separator=:
7749
hardcode_libdir_flag_spec_ld='+b $libdir'
7751
hardcode_shlibpath_var=no
7755
export_dynamic_flag_spec='${wl}-E'
7757
# hardcode_minus_L: Not really in the search PATH,
7758
# but as the default location of the library.
7759
hardcode_minus_L=yes
7765
irix5* | irix6* | nonstopux*)
7766
if test "$GCC" = yes; then
7767
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'
7769
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'
7770
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7772
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7773
hardcode_libdir_separator=:
7774
link_all_deplibs=yes
7777
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7778
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7779
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7781
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7783
hardcode_libdir_flag_spec='-R$libdir'
7785
hardcode_shlibpath_var=no
7789
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7791
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7792
hardcode_libdir_separator=:
7793
hardcode_shlibpath_var=no
7798
hardcode_shlibpath_var=no
7799
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7800
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7801
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7802
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7803
export_dynamic_flag_spec='${wl}-E'
7806
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7807
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7808
hardcode_libdir_flag_spec='-R$libdir'
7811
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7812
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7819
hardcode_libdir_flag_spec='-L$libdir'
7820
hardcode_minus_L=yes
7821
allow_undefined_flag=unsupported
7822
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'
7823
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7827
if test "$GCC" = yes; then
7828
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7829
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'
7831
allow_undefined_flag=' -expect_unresolved \*'
7832
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'
7834
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7835
hardcode_libdir_separator=:
7838
osf4* | osf5*) # as osf3* with the addition of -msym flag
7839
if test "$GCC" = yes; then
7840
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7841
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'
7842
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844
allow_undefined_flag=' -expect_unresolved \*'
7845
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'
7846
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7847
$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'
7849
# Both c and cxx compiler support -rpath directly
7850
hardcode_libdir_flag_spec='-rpath $libdir'
7852
hardcode_libdir_separator=:
7856
no_undefined_flag=' -z text'
7857
if test "$GCC" = yes; then
7859
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7860
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7861
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7864
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7865
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7866
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7868
hardcode_libdir_flag_spec='-R$libdir'
7869
hardcode_shlibpath_var=no
7871
solaris2.[0-5] | solaris2.[0-5].*) ;;
7873
# The compiler driver will combine linker options so we
7874
# cannot just pass the convience library names through
7875
# without $wl, iff we do not link with $LD.
7876
# Luckily, gcc supports the same syntax we need for Sun Studio.
7877
# Supported since Solaris 2.6 (maybe 2.5.1?)
7880
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7882
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' ;;
7885
link_all_deplibs=yes
7889
if test "x$host_vendor" = xsequent; then
7890
# Use $CC to link under sequent, because it throws in some extra .o
7891
# files that make .init and .fini sections work.
7892
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7894
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7896
hardcode_libdir_flag_spec='-L$libdir'
7898
hardcode_minus_L=yes
7899
hardcode_shlibpath_var=no
7903
case $host_vendor in
7905
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7906
hardcode_direct=yes # is this really true???
7909
## LD is ld it makes a PLAMLIB
7910
## CC just makes a GrossModule.
7911
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7912
reload_cmds='$CC -r -o $output$reload_objs'
7916
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7917
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7920
runpath_var='LD_RUN_PATH'
7921
hardcode_shlibpath_var=no
7925
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7926
hardcode_shlibpath_var=no
7927
export_dynamic_flag_spec='-Bexport'
7931
if test -d /usr/nec; then
7932
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7933
hardcode_shlibpath_var=no
7934
runpath_var=LD_RUN_PATH
7935
hardcode_runpath_var=yes
7940
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7941
no_undefined_flag='${wl}-z,text'
7942
archive_cmds_need_lc=no
7943
hardcode_shlibpath_var=no
7944
runpath_var='LD_RUN_PATH'
7946
if test "$GCC" = yes; then
7947
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7948
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7950
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7951
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7955
sysv5* | sco3.2v5* | sco5v6*)
7956
# Note: We can NOT use -z defs as we might desire, because we do not
7957
# link with -lc, and that would cause any symbols used from libc to
7958
# always be unresolved, which means just about no library would
7959
# ever link correctly. If we're not using GNU ld we use -z text
7960
# though, which does catch some bad symbols but isn't as heavy-handed
7962
no_undefined_flag='${wl}-z,text'
7963
allow_undefined_flag='${wl}-z,nodefs'
7964
archive_cmds_need_lc=no
7965
hardcode_shlibpath_var=no
7966
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7967
hardcode_libdir_separator=':'
7968
link_all_deplibs=yes
7969
export_dynamic_flag_spec='${wl}-Bexport'
7970
runpath_var='LD_RUN_PATH'
7972
if test "$GCC" = yes; then
7973
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7974
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7976
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7977
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7982
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7983
hardcode_libdir_flag_spec='-L$libdir'
7984
hardcode_shlibpath_var=no
7993
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7994
echo "${ECHO_T}$ld_shlibs" >&6
7995
test "$ld_shlibs" = no && can_build_shared=no
7998
# Do we need to explicitly link libc?
8000
case "x$archive_cmds_need_lc" in
8002
# Assume -lc should be added
8003
archive_cmds_need_lc=yes
8005
if test "$enable_shared" = yes && test "$GCC" = yes; then
8006
case $archive_cmds in
8008
# FIXME: we may have to deal with multi-command sequences.
8011
# Test whether the compiler implicitly links with -lc since on some
8012
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8013
# to ld, don't add -lc before -lgcc.
8014
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8015
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8017
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8019
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020
(eval $ac_compile) 2>&5
8022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023
(exit $ac_status); } 2>conftest.err; then
8026
libobjs=conftest.$ac_objext
8028
wl=$lt_prog_compiler_wl
8029
pic_flag=$lt_prog_compiler_pic
8035
lt_save_allow_undefined_flag=$allow_undefined_flag
8036
allow_undefined_flag=
8037
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8038
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041
(exit $ac_status); }
8043
archive_cmds_need_lc=no
8045
archive_cmds_need_lc=yes
8047
allow_undefined_flag=$lt_save_allow_undefined_flag
8049
cat conftest.err 1>&5
8052
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8053
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8060
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8061
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8063
libname_spec='lib$name'
8071
shlibpath_overrides_runpath=unknown
8073
dynamic_linker="$host_os ld.so"
8074
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8075
if test "$GCC" = yes; then
8076
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8077
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8078
# if the path contains ";" then we assume it to be the separator
8079
# otherwise default to the standard path separator (i.e. ":") - it is
8080
# assumed that no part of a normal pathname contains ";" but that should
8081
# okay in the real world where ";" in dirpaths is itself problematic.
8082
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8084
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8087
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8089
need_lib_prefix=unknown
8090
hardcode_into_libs=no
8092
# when you set need_version to no, make sure it does not cause -set_version
8093
# flags to be left without arguments
8094
need_version=unknown
8099
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8100
shlibpath_var=LIBPATH
8102
# AIX 3 has no versioning support, so we append a major version to the name.
8103
soname_spec='${libname}${release}${shared_ext}$major'
8110
hardcode_into_libs=yes
8111
if test "$host_cpu" = ia64; then
8112
# AIX 5 supports IA64
8113
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8114
shlibpath_var=LD_LIBRARY_PATH
8116
# With GCC up to 2.95.x, collect2 would create an import file
8117
# for dependence libraries. The import file would start with
8118
# the line `#! .'. This would cause the generated library to
8119
# depend on `.', always an invalid library. This was fixed in
8120
# development snapshots of GCC prior to 3.0.
8122
aix4 | aix4.[01] | aix4.[01].*)
8123
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8125
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8132
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8133
# soname into executable. Probably we can add versioning support to
8134
# collect2, so additional links can be useful in future.
8135
if test "$aix_use_runtimelinking" = yes; then
8136
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8137
# instead of lib<name>.a to let people know that these are not
8138
# typical AIX shared libraries.
8139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141
# We preserve .a as extension for shared libraries through AIX4.2
8142
# and later when we are not doing run time linking.
8143
library_names_spec='${libname}${release}.a $libname.a'
8144
soname_spec='${libname}${release}${shared_ext}$major'
8146
shlibpath_var=LIBPATH
8151
library_names_spec='$libname.ixlibrary $libname.a'
8152
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8153
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'
8157
library_names_spec='${libname}${shared_ext}'
8158
dynamic_linker="$host_os ld.so"
8159
shlibpath_var=LIBRARY_PATH
8165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166
soname_spec='${libname}${release}${shared_ext}$major'
8167
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8168
shlibpath_var=LD_LIBRARY_PATH
8169
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8170
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8171
# the default ld.so.conf also contains /usr/contrib/lib and
8172
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8173
# libtool to hard-code these into programs
8176
cygwin* | mingw* | pw32*)
8177
version_type=windows
8182
case $GCC,$host_os in
8183
yes,cygwin* | yes,mingw* | yes,pw32*)
8184
library_names_spec='$libname.dll.a'
8185
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8186
postinstall_cmds='base_file=`basename \${file}`~
8187
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8188
dldir=$destdir/`dirname \$dlpath`~
8189
test -d \$dldir || mkdir -p \$dldir~
8190
$install_prog $dir/$dlname \$dldir/$dlname~
8191
chmod a+x \$dldir/$dlname'
8192
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8193
dlpath=$dir/\$dldll~
8195
shlibpath_overrides_runpath=yes
8199
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8200
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8204
# MinGW DLLs use traditional 'lib' prefix
8205
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8206
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8207
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8208
# It is most probably a Windows format PATH printed by
8209
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8210
# path with ; separators, and with drive letters. We can handle the
8211
# drive letters (cygwin fileutils understands them), so leave them,
8212
# especially as we might pass files found there to a mingw objdump,
8213
# which wouldn't understand a cygwinified path. Ahh.
8214
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8216
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8220
# pw32 DLLs use 'pw' prefix rather than 'lib'
8221
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8227
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8230
dynamic_linker='Win32 ld.exe'
8231
# FIXME: first we should search . and the directory the executable is in
8235
darwin* | rhapsody*)
8236
dynamic_linker="$host_os dyld"
8240
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8241
soname_spec='${libname}${release}${major}$shared_ext'
8242
shlibpath_overrides_runpath=yes
8243
shlibpath_var=DYLD_LIBRARY_PATH
8244
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8245
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8246
if test "$GCC" = yes; then
8247
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"`
8249
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8251
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8259
soname_spec='${libname}${release}${shared_ext}$major'
8260
shlibpath_var=LD_LIBRARY_PATH
8271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8272
soname_spec='${libname}${release}${shared_ext}$major'
8273
shlibpath_var=LD_LIBRARY_PATH
8274
shlibpath_overrides_runpath=no
8275
hardcode_into_libs=yes
8276
dynamic_linker='GNU ld.so'
8279
freebsd* | dragonfly*)
8280
# DragonFly does not have aout. When/if they implement a new
8281
# versioning mechanism, adjust this.
8282
if test -x /usr/bin/objformat; then
8283
objformat=`/usr/bin/objformat`
8286
freebsd[123]*) objformat=aout ;;
8290
version_type=freebsd-$objformat
8291
case $version_type in
8293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8298
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8302
shlibpath_var=LD_LIBRARY_PATH
8305
shlibpath_overrides_runpath=yes
8307
freebsd3.[01]* | freebsdelf3.[01]*)
8308
shlibpath_overrides_runpath=yes
8309
hardcode_into_libs=yes
8311
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8312
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8313
shlibpath_overrides_runpath=no
8314
hardcode_into_libs=yes
8316
freebsd*) # from 4.6 on
8317
shlibpath_overrides_runpath=yes
8318
hardcode_into_libs=yes
8327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8328
soname_spec='${libname}${release}${shared_ext}$major'
8329
shlibpath_var=LD_LIBRARY_PATH
8330
hardcode_into_libs=yes
8333
hpux9* | hpux10* | hpux11*)
8334
# Give a soname corresponding to the major version so that dld.sl refuses to
8335
# link against other versions.
8342
hardcode_into_libs=yes
8343
dynamic_linker="$host_os dld.so"
8344
shlibpath_var=LD_LIBRARY_PATH
8345
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347
soname_spec='${libname}${release}${shared_ext}$major'
8348
if test "X$HPUX_IA64_MODE" = X32; then
8349
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8351
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8353
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8357
hardcode_into_libs=yes
8358
dynamic_linker="$host_os dld.sl"
8359
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8360
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362
soname_spec='${libname}${release}${shared_ext}$major'
8363
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8364
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8368
dynamic_linker="$host_os dld.sl"
8369
shlibpath_var=SHLIB_PATH
8370
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372
soname_spec='${libname}${release}${shared_ext}$major'
8375
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8376
postinstall_cmds='chmod 555 $lib'
8383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8384
soname_spec='${libname}${release}${shared_ext}$major'
8385
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8386
shlibpath_var=LD_LIBRARY_PATH
8387
shlibpath_overrides_runpath=no
8388
hardcode_into_libs=yes
8391
irix5* | irix6* | nonstopux*)
8393
nonstopux*) version_type=nonstopux ;;
8395
if test "$lt_cv_prog_gnu_ld" = yes; then
8403
soname_spec='${libname}${release}${shared_ext}$major'
8404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8406
irix5* | nonstopux*)
8410
case $LD in # libtool.m4 will add one of these switches to LD
8411
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8412
libsuff= shlibsuff= libmagic=32-bit;;
8413
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8414
libsuff=32 shlibsuff=N32 libmagic=N32;;
8415
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8416
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8417
*) libsuff= shlibsuff= libmagic=never-match;;
8421
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8422
shlibpath_overrides_runpath=no
8423
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8424
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8425
hardcode_into_libs=yes
8428
# No shared lib support for Linux oldld, aout, or coff.
8429
linux*oldld* | linux*aout* | linux*coff*)
8433
# This must be Linux ELF.
8438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8439
soname_spec='${libname}${release}${shared_ext}$major'
8440
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8441
shlibpath_var=LD_LIBRARY_PATH
8442
shlibpath_overrides_runpath=no
8443
# This implies no fast_install, which is unacceptable.
8444
# Some rework will be needed to allow for fast_install
8445
# before this can be enabled.
8446
hardcode_into_libs=yes
8448
# Append ld.so.conf contents to the search path
8449
if test -f /etc/ld.so.conf; then
8450
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' ' '`
8451
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8454
# We used to test for /lib/ld.so.1 and disable shared libraries on
8455
# powerpc, because MkLinux only supported shared libraries with the
8456
# GNU dynamic linker. Since this was broken with cross compilers,
8457
# most powerpc-linux boxes support dynamic linking these days and
8458
# people can always --disable-shared, the test was removed, and we
8459
# assume the GNU/Linux dynamic linker is in use.
8460
dynamic_linker='GNU/Linux ld.so'
8467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8468
soname_spec='${libname}${release}${shared_ext}$major'
8469
shlibpath_var=LD_LIBRARY_PATH
8470
shlibpath_overrides_runpath=no
8471
hardcode_into_libs=yes
8472
dynamic_linker='NetBSD ld.elf_so'
8479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8480
soname_spec='${libname}${release}${shared_ext}$major'
8481
shlibpath_var=LD_LIBRARY_PATH
8482
shlibpath_overrides_runpath=no
8483
hardcode_into_libs=yes
8484
dynamic_linker='GNU ld.so'
8491
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8493
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8494
dynamic_linker='NetBSD (a.out) ld.so'
8496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8497
soname_spec='${libname}${release}${shared_ext}$major'
8498
dynamic_linker='NetBSD ld.elf_so'
8500
shlibpath_var=LD_LIBRARY_PATH
8501
shlibpath_overrides_runpath=yes
8502
hardcode_into_libs=yes
8507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8508
shlibpath_var=LD_LIBRARY_PATH
8509
shlibpath_overrides_runpath=yes
8516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517
soname_spec='${libname}${release}${shared_ext}$major'
8518
shlibpath_var=LD_LIBRARY_PATH
8519
shlibpath_overrides_runpath=yes
8524
sys_lib_dlsearch_path_spec="/usr/lib"
8526
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8528
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8529
*) need_version=no ;;
8531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8532
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8533
shlibpath_var=LD_LIBRARY_PATH
8534
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8536
openbsd2.[89] | openbsd2.[89].*)
8537
shlibpath_overrides_runpath=no
8540
shlibpath_overrides_runpath=yes
8544
shlibpath_overrides_runpath=yes
8549
libname_spec='$name'
8552
library_names_spec='$libname${shared_ext} $libname.a'
8553
dynamic_linker='OS/2 ld.exe'
8554
shlibpath_var=LIBPATH
8557
osf3* | osf4* | osf5*)
8561
soname_spec='${libname}${release}${shared_ext}$major'
8562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8563
shlibpath_var=LD_LIBRARY_PATH
8564
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8565
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8573
soname_spec='${libname}${release}${shared_ext}$major'
8574
shlibpath_var=LD_LIBRARY_PATH
8575
shlibpath_overrides_runpath=yes
8576
hardcode_into_libs=yes
8577
# ldd complains unless libraries are executable
8578
postinstall_cmds='chmod +x $lib'
8583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8584
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8585
shlibpath_var=LD_LIBRARY_PATH
8586
shlibpath_overrides_runpath=yes
8587
if test "$with_gnu_ld" = yes; then
8595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8596
soname_spec='${libname}${release}${shared_ext}$major'
8597
shlibpath_var=LD_LIBRARY_PATH
8598
case $host_vendor in
8600
shlibpath_overrides_runpath=no
8602
export_dynamic_flag_spec='${wl}-Blargedynsym'
8603
runpath_var=LD_RUN_PATH
8611
shlibpath_overrides_runpath=no
8612
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8618
if test -d /usr/nec ;then
8620
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8621
soname_spec='$libname${shared_ext}.$major'
8622
shlibpath_var=LD_LIBRARY_PATH
8626
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8627
version_type=freebsd-elf
8630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8631
soname_spec='${libname}${release}${shared_ext}$major'
8632
shlibpath_var=LD_LIBRARY_PATH
8633
hardcode_into_libs=yes
8634
if test "$with_gnu_ld" = yes; then
8635
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8636
shlibpath_overrides_runpath=no
8638
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8639
shlibpath_overrides_runpath=yes
8642
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8646
sys_lib_dlsearch_path_spec='/usr/lib'
8651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652
soname_spec='${libname}${release}${shared_ext}$major'
8653
shlibpath_var=LD_LIBRARY_PATH
8660
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8661
echo "${ECHO_T}$dynamic_linker" >&6
8662
test "$dynamic_linker" = no && can_build_shared=no
8664
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8665
if test "$GCC" = yes; then
8666
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8669
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8670
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8672
if test -n "$hardcode_libdir_flag_spec" || \
8673
test -n "$runpath_var" || \
8674
test "X$hardcode_automatic" = "Xyes" ; then
8676
# We can hardcode non-existant directories.
8677
if test "$hardcode_direct" != no &&
8678
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8679
# have to relink, otherwise we might link with an installed library
8680
# when we should be linking with a yet-to-be-installed one
8681
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8682
test "$hardcode_minus_L" != no; then
8683
# Linking always hardcodes the temporary library directory.
8684
hardcode_action=relink
8686
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8687
hardcode_action=immediate
8690
# We cannot hardcode anything, or else we can only hardcode existing
8692
hardcode_action=unsupported
8694
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8695
echo "${ECHO_T}$hardcode_action" >&6
8697
if test "$hardcode_action" = relink; then
8698
# Fast installation is not supported
8699
enable_fast_install=no
8700
elif test "$shlibpath_overrides_runpath" = yes ||
8701
test "$enable_shared" = no; then
8702
# Fast installation is not necessary
8703
enable_fast_install=needless
8708
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8709
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8710
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8711
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8712
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8713
echo "$as_me:$LINENO: result: yes" >&5
8714
echo "${ECHO_T}yes" >&6
8716
# FIXME - insert some real tests, host_os isn't really good enough
8719
if test -n "$STRIP" ; then
8720
striplib="$STRIP -x"
8721
echo "$as_me:$LINENO: result: yes" >&5
8722
echo "${ECHO_T}yes" >&6
8724
echo "$as_me:$LINENO: result: no" >&5
8725
echo "${ECHO_T}no" >&6
8729
echo "$as_me:$LINENO: result: no" >&5
8730
echo "${ECHO_T}no" >&6
8735
if test "x$enable_dlopen" != xyes; then
8736
enable_dlopen=unknown
8737
enable_dlopen_self=unknown
8738
enable_dlopen_self_static=unknown
8745
lt_cv_dlopen="load_add_on"
8747
lt_cv_dlopen_self=yes
8751
lt_cv_dlopen="LoadLibrary"
8756
lt_cv_dlopen="dlopen"
8761
# if libdl is installed we need to link against it
8762
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8763
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8764
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8765
echo $ECHO_N "(cached) $ECHO_C" >&6
8767
ac_check_lib_save_LIBS=$LIBS
8769
cat >conftest.$ac_ext <<_ACEOF
8772
cat confdefs.h >>conftest.$ac_ext
8773
cat >>conftest.$ac_ext <<_ACEOF
8774
/* end confdefs.h. */
8776
/* Override any gcc2 internal prototype to avoid an error. */
8780
/* We use char because int might match the return type of a gcc2
8781
builtin and then its argument prototype would still apply. */
8791
rm -f conftest.$ac_objext conftest$ac_exeext
8792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793
(eval $ac_link) 2>conftest.er1
8795
grep -v '^ *+' conftest.er1 >conftest.err
8797
cat conftest.err >&5
8798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799
(exit $ac_status); } &&
8800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805
(exit $ac_status); }; } &&
8806
{ ac_try='test -s conftest$ac_exeext'
8807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
(exit $ac_status); }; }; then
8812
ac_cv_lib_dl_dlopen=yes
8814
echo "$as_me: failed program was:" >&5
8815
sed 's/^/| /' conftest.$ac_ext >&5
8817
ac_cv_lib_dl_dlopen=no
8819
rm -f conftest.err conftest.$ac_objext \
8820
conftest$ac_exeext conftest.$ac_ext
8821
LIBS=$ac_check_lib_save_LIBS
8823
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8824
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8825
if test $ac_cv_lib_dl_dlopen = yes; then
8826
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8831
lt_cv_dlopen_self=yes
8838
echo "$as_me:$LINENO: checking for shl_load" >&5
8839
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8840
if test "${ac_cv_func_shl_load+set}" = set; then
8841
echo $ECHO_N "(cached) $ECHO_C" >&6
8843
cat >conftest.$ac_ext <<_ACEOF
8846
cat confdefs.h >>conftest.$ac_ext
8847
cat >>conftest.$ac_ext <<_ACEOF
8848
/* end confdefs.h. */
8849
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8850
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8851
#define shl_load innocuous_shl_load
8853
/* System header to define __stub macros and hopefully few prototypes,
8854
which can conflict with char shl_load (); below.
8855
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8856
<limits.h> exists even on freestanding compilers. */
8859
# include <limits.h>
8861
# include <assert.h>
8866
/* Override any gcc2 internal prototype to avoid an error. */
8871
/* We use char because int might match the return type of a gcc2
8872
builtin and then its argument prototype would still apply. */
8874
/* The GNU C library defines this for functions which it implements
8875
to always fail with ENOSYS. Some functions are actually named
8876
something starting with __ and the normal name is an alias. */
8877
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8880
char (*f) () = shl_load;
8889
return f != shl_load;
8894
rm -f conftest.$ac_objext conftest$ac_exeext
8895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896
(eval $ac_link) 2>conftest.er1
8898
grep -v '^ *+' conftest.er1 >conftest.err
8900
cat conftest.err >&5
8901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902
(exit $ac_status); } &&
8903
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908
(exit $ac_status); }; } &&
8909
{ ac_try='test -s conftest$ac_exeext'
8910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914
(exit $ac_status); }; }; then
8915
ac_cv_func_shl_load=yes
8917
echo "$as_me: failed program was:" >&5
8918
sed 's/^/| /' conftest.$ac_ext >&5
8920
ac_cv_func_shl_load=no
8922
rm -f conftest.err conftest.$ac_objext \
8923
conftest$ac_exeext conftest.$ac_ext
8925
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8926
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8927
if test $ac_cv_func_shl_load = yes; then
8928
lt_cv_dlopen="shl_load"
8930
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8931
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8932
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8933
echo $ECHO_N "(cached) $ECHO_C" >&6
8935
ac_check_lib_save_LIBS=$LIBS
8937
cat >conftest.$ac_ext <<_ACEOF
8940
cat confdefs.h >>conftest.$ac_ext
8941
cat >>conftest.$ac_ext <<_ACEOF
8942
/* end confdefs.h. */
8944
/* Override any gcc2 internal prototype to avoid an error. */
8948
/* We use char because int might match the return type of a gcc2
8949
builtin and then its argument prototype would still apply. */
8959
rm -f conftest.$ac_objext conftest$ac_exeext
8960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961
(eval $ac_link) 2>conftest.er1
8963
grep -v '^ *+' conftest.er1 >conftest.err
8965
cat conftest.err >&5
8966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967
(exit $ac_status); } &&
8968
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8969
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973
(exit $ac_status); }; } &&
8974
{ ac_try='test -s conftest$ac_exeext'
8975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979
(exit $ac_status); }; }; then
8980
ac_cv_lib_dld_shl_load=yes
8982
echo "$as_me: failed program was:" >&5
8983
sed 's/^/| /' conftest.$ac_ext >&5
8985
ac_cv_lib_dld_shl_load=no
8987
rm -f conftest.err conftest.$ac_objext \
8988
conftest$ac_exeext conftest.$ac_ext
8989
LIBS=$ac_check_lib_save_LIBS
8991
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8992
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8993
if test $ac_cv_lib_dld_shl_load = yes; then
8994
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8996
echo "$as_me:$LINENO: checking for dlopen" >&5
8997
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8998
if test "${ac_cv_func_dlopen+set}" = set; then
8999
echo $ECHO_N "(cached) $ECHO_C" >&6
9001
cat >conftest.$ac_ext <<_ACEOF
9004
cat confdefs.h >>conftest.$ac_ext
9005
cat >>conftest.$ac_ext <<_ACEOF
9006
/* end confdefs.h. */
9007
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9008
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9009
#define dlopen innocuous_dlopen
9011
/* System header to define __stub macros and hopefully few prototypes,
9012
which can conflict with char dlopen (); below.
9013
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9014
<limits.h> exists even on freestanding compilers. */
9017
# include <limits.h>
9019
# include <assert.h>
9024
/* Override any gcc2 internal prototype to avoid an error. */
9029
/* We use char because int might match the return type of a gcc2
9030
builtin and then its argument prototype would still apply. */
9032
/* The GNU C library defines this for functions which it implements
9033
to always fail with ENOSYS. Some functions are actually named
9034
something starting with __ and the normal name is an alias. */
9035
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9038
char (*f) () = dlopen;
9052
rm -f conftest.$ac_objext conftest$ac_exeext
9053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054
(eval $ac_link) 2>conftest.er1
9056
grep -v '^ *+' conftest.er1 >conftest.err
9058
cat conftest.err >&5
9059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060
(exit $ac_status); } &&
9061
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066
(exit $ac_status); }; } &&
9067
{ ac_try='test -s conftest$ac_exeext'
9068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
(exit $ac_status); }; }; then
9073
ac_cv_func_dlopen=yes
9075
echo "$as_me: failed program was:" >&5
9076
sed 's/^/| /' conftest.$ac_ext >&5
9078
ac_cv_func_dlopen=no
9080
rm -f conftest.err conftest.$ac_objext \
9081
conftest$ac_exeext conftest.$ac_ext
9083
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9084
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9085
if test $ac_cv_func_dlopen = yes; then
9086
lt_cv_dlopen="dlopen"
9088
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9089
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9090
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9091
echo $ECHO_N "(cached) $ECHO_C" >&6
9093
ac_check_lib_save_LIBS=$LIBS
9095
cat >conftest.$ac_ext <<_ACEOF
9098
cat confdefs.h >>conftest.$ac_ext
9099
cat >>conftest.$ac_ext <<_ACEOF
9100
/* end confdefs.h. */
9102
/* Override any gcc2 internal prototype to avoid an error. */
9106
/* We use char because int might match the return type of a gcc2
9107
builtin and then its argument prototype would still apply. */
9117
rm -f conftest.$ac_objext conftest$ac_exeext
9118
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119
(eval $ac_link) 2>conftest.er1
9121
grep -v '^ *+' conftest.er1 >conftest.err
9123
cat conftest.err >&5
9124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125
(exit $ac_status); } &&
9126
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131
(exit $ac_status); }; } &&
9132
{ ac_try='test -s conftest$ac_exeext'
9133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137
(exit $ac_status); }; }; then
9138
ac_cv_lib_dl_dlopen=yes
9140
echo "$as_me: failed program was:" >&5
9141
sed 's/^/| /' conftest.$ac_ext >&5
9143
ac_cv_lib_dl_dlopen=no
9145
rm -f conftest.err conftest.$ac_objext \
9146
conftest$ac_exeext conftest.$ac_ext
9147
LIBS=$ac_check_lib_save_LIBS
9149
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9150
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9151
if test $ac_cv_lib_dl_dlopen = yes; then
9152
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9154
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9155
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9156
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9157
echo $ECHO_N "(cached) $ECHO_C" >&6
9159
ac_check_lib_save_LIBS=$LIBS
9161
cat >conftest.$ac_ext <<_ACEOF
9164
cat confdefs.h >>conftest.$ac_ext
9165
cat >>conftest.$ac_ext <<_ACEOF
9166
/* end confdefs.h. */
9168
/* Override any gcc2 internal prototype to avoid an error. */
9172
/* We use char because int might match the return type of a gcc2
9173
builtin and then its argument prototype would still apply. */
9183
rm -f conftest.$ac_objext conftest$ac_exeext
9184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185
(eval $ac_link) 2>conftest.er1
9187
grep -v '^ *+' conftest.er1 >conftest.err
9189
cat conftest.err >&5
9190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191
(exit $ac_status); } &&
9192
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197
(exit $ac_status); }; } &&
9198
{ ac_try='test -s conftest$ac_exeext'
9199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203
(exit $ac_status); }; }; then
9204
ac_cv_lib_svld_dlopen=yes
9206
echo "$as_me: failed program was:" >&5
9207
sed 's/^/| /' conftest.$ac_ext >&5
9209
ac_cv_lib_svld_dlopen=no
9211
rm -f conftest.err conftest.$ac_objext \
9212
conftest$ac_exeext conftest.$ac_ext
9213
LIBS=$ac_check_lib_save_LIBS
9215
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9216
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9217
if test $ac_cv_lib_svld_dlopen = yes; then
9218
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9220
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9221
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9222
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9223
echo $ECHO_N "(cached) $ECHO_C" >&6
9225
ac_check_lib_save_LIBS=$LIBS
9227
cat >conftest.$ac_ext <<_ACEOF
9230
cat confdefs.h >>conftest.$ac_ext
9231
cat >>conftest.$ac_ext <<_ACEOF
9232
/* end confdefs.h. */
9234
/* Override any gcc2 internal prototype to avoid an error. */
9238
/* We use char because int might match the return type of a gcc2
9239
builtin and then its argument prototype would still apply. */
9249
rm -f conftest.$ac_objext conftest$ac_exeext
9250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251
(eval $ac_link) 2>conftest.er1
9253
grep -v '^ *+' conftest.er1 >conftest.err
9255
cat conftest.err >&5
9256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257
(exit $ac_status); } &&
9258
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263
(exit $ac_status); }; } &&
9264
{ ac_try='test -s conftest$ac_exeext'
9265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269
(exit $ac_status); }; }; then
9270
ac_cv_lib_dld_dld_link=yes
9272
echo "$as_me: failed program was:" >&5
9273
sed 's/^/| /' conftest.$ac_ext >&5
9275
ac_cv_lib_dld_dld_link=no
9277
rm -f conftest.err conftest.$ac_objext \
9278
conftest$ac_exeext conftest.$ac_ext
9279
LIBS=$ac_check_lib_save_LIBS
9281
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9282
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9283
if test $ac_cv_lib_dld_dld_link = yes; then
9284
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9305
if test "x$lt_cv_dlopen" != xno; then
9311
case $lt_cv_dlopen in
9313
save_CPPFLAGS="$CPPFLAGS"
9314
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9316
save_LDFLAGS="$LDFLAGS"
9317
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9320
LIBS="$lt_cv_dlopen_libs $LIBS"
9322
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9323
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9324
if test "${lt_cv_dlopen_self+set}" = set; then
9325
echo $ECHO_N "(cached) $ECHO_C" >&6
9327
if test "$cross_compiling" = yes; then :
9328
lt_cv_dlopen_self=cross
9330
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9331
lt_status=$lt_dlunknown
9332
cat > conftest.$ac_ext <<EOF
9333
#line 9333 "configure"
9334
#include "confdefs.h"
9343
# define LT_DLGLOBAL RTLD_GLOBAL
9346
# define LT_DLGLOBAL DL_GLOBAL
9348
# define LT_DLGLOBAL 0
9352
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9353
find out it does not work in some platform. */
9354
#ifndef LT_DLLAZY_OR_NOW
9356
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9359
# define LT_DLLAZY_OR_NOW DL_LAZY
9362
# define LT_DLLAZY_OR_NOW RTLD_NOW
9365
# define LT_DLLAZY_OR_NOW DL_NOW
9367
# define LT_DLLAZY_OR_NOW 0
9375
extern "C" void exit (int);
9378
void fnord() { int i=42;}
9381
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9382
int status = $lt_dlunknown;
9386
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9387
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9388
/* dlclose (self); */
9396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397
(eval $ac_link) 2>&5
9399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9401
(./conftest; exit; ) >&5 2>/dev/null
9404
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9405
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9406
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9409
# compilation failed
9410
lt_cv_dlopen_self=no
9417
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9418
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9420
if test "x$lt_cv_dlopen_self" = xyes; then
9421
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9422
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9423
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9424
if test "${lt_cv_dlopen_self_static+set}" = set; then
9425
echo $ECHO_N "(cached) $ECHO_C" >&6
9427
if test "$cross_compiling" = yes; then :
9428
lt_cv_dlopen_self_static=cross
9430
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9431
lt_status=$lt_dlunknown
9432
cat > conftest.$ac_ext <<EOF
9433
#line 9433 "configure"
9434
#include "confdefs.h"
9443
# define LT_DLGLOBAL RTLD_GLOBAL
9446
# define LT_DLGLOBAL DL_GLOBAL
9448
# define LT_DLGLOBAL 0
9452
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9453
find out it does not work in some platform. */
9454
#ifndef LT_DLLAZY_OR_NOW
9456
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9459
# define LT_DLLAZY_OR_NOW DL_LAZY
9462
# define LT_DLLAZY_OR_NOW RTLD_NOW
9465
# define LT_DLLAZY_OR_NOW DL_NOW
9467
# define LT_DLLAZY_OR_NOW 0
9475
extern "C" void exit (int);
9478
void fnord() { int i=42;}
9481
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9482
int status = $lt_dlunknown;
9486
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9487
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9488
/* dlclose (self); */
9496
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497
(eval $ac_link) 2>&5
9499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9501
(./conftest; exit; ) >&5 2>/dev/null
9504
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9505
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9506
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9509
# compilation failed
9510
lt_cv_dlopen_self_static=no
9517
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9518
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9521
CPPFLAGS="$save_CPPFLAGS"
9522
LDFLAGS="$save_LDFLAGS"
9527
case $lt_cv_dlopen_self in
9528
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9529
*) enable_dlopen_self=unknown ;;
9532
case $lt_cv_dlopen_self_static in
9533
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9534
*) enable_dlopen_self_static=unknown ;;
9539
# Report which library types will actually be built
9540
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9541
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9542
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9543
echo "${ECHO_T}$can_build_shared" >&6
9545
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9546
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9547
test "$can_build_shared" = "no" && enable_shared=no
9549
# On AIX, shared libraries and static libraries use the same namespace, and
9550
# are all built from PIC.
9553
test "$enable_shared" = yes && enable_static=no
9554
if test -n "$RANLIB"; then
9555
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9556
postinstall_cmds='$RANLIB $lib'
9561
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9562
test "$enable_shared" = yes && enable_static=no
9566
echo "$as_me:$LINENO: result: $enable_shared" >&5
9567
echo "${ECHO_T}$enable_shared" >&6
9569
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9570
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9571
# Make sure either enable_shared or enable_static is yes.
9572
test "$enable_shared" = yes || enable_static=yes
9573
echo "$as_me:$LINENO: result: $enable_static" >&5
9574
echo "${ECHO_T}$enable_static" >&6
9576
# The else clause should only fire when bootstrapping the
9577
# libtool distribution, otherwise you forgot to ship ltmain.sh
9578
# with your package, and you will get complaints that there are
9579
# no rules to generate ltmain.sh.
9580
if test -f "$ltmain"; then
9581
# See if we are running on zsh, and set the options which allow our commands through
9582
# without removal of \ escapes.
9583
if test -n "${ZSH_VERSION+set}" ; then
9584
setopt NO_GLOB_SUBST
9586
# Now quote all the things that may contain metacharacters while being
9587
# careful not to overquote the AC_SUBSTed values. We take copies of the
9588
# variables and quote the copies for generation of the libtool script.
9589
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9591
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9592
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9593
deplibs_check_method reload_flag reload_cmds need_locks \
9594
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9595
lt_cv_sys_global_symbol_to_c_name_address \
9596
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9597
old_postinstall_cmds old_postuninstall_cmds \
9601
lt_prog_compiler_wl \
9602
lt_prog_compiler_pic \
9603
lt_prog_compiler_static \
9604
lt_prog_compiler_no_builtin_flag \
9605
export_dynamic_flag_spec \
9606
thread_safe_flag_spec \
9607
whole_archive_flag_spec \
9608
enable_shared_with_static_runtimes \
9610
old_archive_from_new_cmds \
9615
compiler_lib_search_path \
9617
archive_expsym_cmds \
9619
postuninstall_cmds \
9620
old_archive_from_expsyms_cmds \
9621
allow_undefined_flag \
9623
export_symbols_cmds \
9624
hardcode_libdir_flag_spec \
9625
hardcode_libdir_flag_spec_ld \
9626
hardcode_libdir_separator \
9627
hardcode_automatic \
9629
module_expsym_cmds \
9630
lt_cv_prog_compiler_c_o \
9635
old_archive_cmds | \
9636
old_archive_from_new_cmds | \
9638
archive_expsym_cmds | \
9640
module_expsym_cmds | \
9641
old_archive_from_expsyms_cmds | \
9642
export_symbols_cmds | \
9643
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9644
postinstall_cmds | postuninstall_cmds | \
9645
old_postinstall_cmds | old_postuninstall_cmds | \
9646
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9647
# Double-quote double-evaled strings.
9648
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9651
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9657
*'\$0 --fallback-echo"')
9658
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9663
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9665
{ echo "$as_me:$LINENO: creating $ofile" >&5
9666
echo "$as_me: creating $ofile" >&6;}
9668
cat <<__EOF__ >> "$cfgfile"
9671
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9672
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9673
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9675
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9676
# Free Software Foundation, Inc.
9678
# This file is part of GNU Libtool:
9679
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9681
# This program is free software; you can redistribute it and/or modify
9682
# it under the terms of the GNU General Public License as published by
9683
# the Free Software Foundation; either version 2 of the License, or
9684
# (at your option) any later version.
9686
# This program is distributed in the hope that it will be useful, but
9687
# WITHOUT ANY WARRANTY; without even the implied warranty of
9688
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9689
# General Public License for more details.
9691
# You should have received a copy of the GNU General Public License
9692
# along with this program; if not, write to the Free Software
9693
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9695
# As a special exception to the GNU General Public License, if you
9696
# distribute this file as part of a program that contains a
9697
# configuration script generated by Autoconf, you may include it under
9698
# the same distribution terms that you use for the rest of that program.
9700
# A sed program that does not truncate output.
9703
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9704
Xsed="$SED -e 1s/^X//"
9706
# The HP-UX ksh and POSIX shell print the target directory to stdout
9708
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9710
# The names of the tagged configurations supported by this script.
9713
# ### BEGIN LIBTOOL CONFIG
9715
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9717
# Shell to use when invoking shell scripts.
9720
# Whether or not to build shared libraries.
9721
build_libtool_libs=$enable_shared
9723
# Whether or not to build static libraries.
9724
build_old_libs=$enable_static
9726
# Whether or not to add -lc for building shared libraries.
9727
build_libtool_need_lc=$archive_cmds_need_lc
9729
# Whether or not to disallow shared libs when runtime libs are static
9730
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9732
# Whether or not to optimize for fast installation.
9733
fast_install=$enable_fast_install
9736
host_alias=$host_alias
9741
build_alias=$build_alias
9745
# An echo program that does not interpret backslashes.
9750
AR_FLAGS=$lt_AR_FLAGS
9755
# LTCC compiler flags.
9756
LTCFLAGS=$lt_LTCFLAGS
9758
# A language-specific compiler.
9761
# Is the compiler the GNU C compiler?
9767
# The linker used to build libraries.
9770
# Whether we need hard or soft links.
9773
# A BSD-compatible nm program.
9776
# A symbol stripping program
9779
# Used to examine libraries when file_magic_cmd begins "file"
9780
MAGIC_CMD=$MAGIC_CMD
9782
# Used on cygwin: DLL creation program.
9785
# Used on cygwin: object dumper.
9788
# Used on cygwin: assembler.
9791
# The name of the directory that contains temporary libtool files.
9794
# How to create reloadable object files.
9795
reload_flag=$lt_reload_flag
9796
reload_cmds=$lt_reload_cmds
9798
# How to pass a linker flag through the compiler.
9799
wl=$lt_lt_prog_compiler_wl
9801
# Object file suffix (normally "o").
9804
# Old archive suffix (normally "a").
9807
# Shared library suffix (normally ".so").
9808
shrext_cmds='$shrext_cmds'
9810
# Executable file suffix (normally "").
9813
# Additional compiler flags for building library objects.
9814
pic_flag=$lt_lt_prog_compiler_pic
9817
# What is the maximum length of a command?
9818
max_cmd_len=$lt_cv_sys_max_cmd_len
9820
# Does compiler simultaneously support -c and -o options?
9821
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9823
# Must we lock files when doing compilation?
9824
need_locks=$lt_need_locks
9826
# Do we need the lib prefix for modules?
9827
need_lib_prefix=$need_lib_prefix
9829
# Do we need a version for libraries?
9830
need_version=$need_version
9832
# Whether dlopen is supported.
9833
dlopen_support=$enable_dlopen
9835
# Whether dlopen of programs is supported.
9836
dlopen_self=$enable_dlopen_self
9838
# Whether dlopen of statically linked programs is supported.
9839
dlopen_self_static=$enable_dlopen_self_static
9841
# Compiler flag to prevent dynamic linking.
9842
link_static_flag=$lt_lt_prog_compiler_static
9844
# Compiler flag to turn off builtin functions.
9845
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9847
# Compiler flag to allow reflexive dlopens.
9848
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9850
# Compiler flag to generate shared objects directly from archives.
9851
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9853
# Compiler flag to generate thread-safe objects.
9854
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9856
# Library versioning type.
9857
version_type=$version_type
9859
# Format of library name prefix.
9860
libname_spec=$lt_libname_spec
9862
# List of archive names. First name is the real one, the rest are links.
9863
# The last name is the one that the linker finds with -lNAME.
9864
library_names_spec=$lt_library_names_spec
9866
# The coded name of the library, if different from the real name.
9867
soname_spec=$lt_soname_spec
9869
# Commands used to build and install an old-style archive.
9871
old_archive_cmds=$lt_old_archive_cmds
9872
old_postinstall_cmds=$lt_old_postinstall_cmds
9873
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9875
# Create an old-style archive from a shared archive.
9876
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9878
# Create a temporary old-style archive to link instead of a shared archive.
9879
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9881
# Commands used to build and install a shared archive.
9882
archive_cmds=$lt_archive_cmds
9883
archive_expsym_cmds=$lt_archive_expsym_cmds
9884
postinstall_cmds=$lt_postinstall_cmds
9885
postuninstall_cmds=$lt_postuninstall_cmds
9887
# Commands used to build a loadable module (assumed same as above if empty)
9888
module_cmds=$lt_module_cmds
9889
module_expsym_cmds=$lt_module_expsym_cmds
9891
# Commands to strip libraries.
9892
old_striplib=$lt_old_striplib
9893
striplib=$lt_striplib
9895
# Dependencies to place before the objects being linked to create a
9897
predep_objects=$lt_predep_objects
9899
# Dependencies to place after the objects being linked to create a
9901
postdep_objects=$lt_postdep_objects
9903
# Dependencies to place before the objects being linked to create a
9907
# Dependencies to place after the objects being linked to create a
9909
postdeps=$lt_postdeps
9911
# The library search path used internally by the compiler when linking
9913
compiler_lib_search_path=$lt_compiler_lib_search_path
9915
# Method to check whether dependent libraries are shared objects.
9916
deplibs_check_method=$lt_deplibs_check_method
9918
# Command to use when deplibs_check_method == file_magic.
9919
file_magic_cmd=$lt_file_magic_cmd
9921
# Flag that allows shared libraries with undefined symbols to be built.
9922
allow_undefined_flag=$lt_allow_undefined_flag
9924
# Flag that forces no undefined symbols.
9925
no_undefined_flag=$lt_no_undefined_flag
9927
# Commands used to finish a libtool library installation in a directory.
9928
finish_cmds=$lt_finish_cmds
9930
# Same as above, but a single script fragment to be evaled but not shown.
9931
finish_eval=$lt_finish_eval
9933
# Take the output of nm and produce a listing of raw symbols and C names.
9934
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9936
# Transform the output of nm in a proper C declaration
9937
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9939
# Transform the output of nm in a C name address pair
9940
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9942
# This is the shared library runtime path variable.
9943
runpath_var=$runpath_var
9945
# This is the shared library path variable.
9946
shlibpath_var=$shlibpath_var
9948
# Is shlibpath searched before the hard-coded library search path?
9949
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9951
# How to hardcode a shared library path into an executable.
9952
hardcode_action=$hardcode_action
9954
# Whether we should hardcode library paths into libraries.
9955
hardcode_into_libs=$hardcode_into_libs
9957
# Flag to hardcode \$libdir into a binary during linking.
9958
# This must work even if \$libdir does not exist.
9959
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9961
# If ld is used when linking, flag to hardcode \$libdir into
9962
# a binary during linking. This must work even if \$libdir does
9964
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9966
# Whether we need a single -rpath flag with a separated argument.
9967
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9969
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9971
hardcode_direct=$hardcode_direct
9973
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9975
hardcode_minus_L=$hardcode_minus_L
9977
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9978
# the resulting binary.
9979
hardcode_shlibpath_var=$hardcode_shlibpath_var
9981
# Set to yes if building a shared library automatically hardcodes DIR into the library
9982
# and all subsequent libraries and executables linked against it.
9983
hardcode_automatic=$hardcode_automatic
9985
# Variables whose values should be saved in libtool wrapper scripts and
9986
# restored at relink time.
9987
variables_saved_for_relink="$variables_saved_for_relink"
9989
# Whether libtool must link a program against all its dependency libraries.
9990
link_all_deplibs=$link_all_deplibs
9992
# Compile-time system search path for libraries
9993
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9995
# Run-time system search path for libraries
9996
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9998
# Fix the shell variable \$srcfile for the compiler.
9999
fix_srcfile_path="$fix_srcfile_path"
10001
# Set to yes if exported symbols are required.
10002
always_export_symbols=$always_export_symbols
10004
# The commands to list exported symbols.
10005
export_symbols_cmds=$lt_export_symbols_cmds
10007
# The commands to extract the exported symbol list from a shared archive.
10008
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10010
# Symbols that should not be listed in the preloaded symbols.
10011
exclude_expsyms=$lt_exclude_expsyms
10013
# Symbols that must always be exported.
10014
include_expsyms=$lt_include_expsyms
10016
# ### END LIBTOOL CONFIG
10023
cat <<\EOF >> "$cfgfile"
10025
# AIX sometimes has problems with the GCC collect2 program. For some
10026
# reason, if we set the COLLECT_NAMES environment variable, the problems
10027
# vanish in a puff of smoke.
10028
if test "X${COLLECT_NAMES+set}" != Xset; then
10030
export COLLECT_NAMES
10036
# We use sed instead of cat because bash on DJGPP gets confused if
10037
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10038
# text mode, it properly converts lines to CR/LF. This bash problem
10039
# is reportedly fixed, but why not run on old versions too?
10040
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10042
mv -f "$cfgfile" "$ofile" || \
10043
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10047
# If there is no Makefile yet, we rely on a make rule to execute
10048
# `config.status --recheck' to rerun these tests and create the
10049
# libtool script then.
10050
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10051
if test -f "$ltmain_in"; then
10052
test -f Makefile && make "$ltmain"
10058
ac_cpp='$CPP $CPPFLAGS'
10059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10066
# Check whether --with-tags or --without-tags was given.
10067
if test "${with_tags+set}" = set; then
10068
withval="$with_tags"
10069
tagnames="$withval"
10072
if test -f "$ltmain" && test -n "$tagnames"; then
10073
if test ! -f "${ofile}"; then
10074
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10075
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10078
if test -z "$LTCC"; then
10079
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10080
if test -z "$LTCC"; then
10081
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10082
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10084
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10085
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10088
if test -z "$LTCFLAGS"; then
10089
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10092
# Extract list of available tagged configurations in $ofile.
10093
# Note that this assumes the entire list is on one line.
10094
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10096
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10097
for tagname in $tagnames; do
10099
# Check whether tagname contains only valid characters
10100
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10102
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10103
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10104
{ (exit 1); exit 1; }; }
10108
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10110
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10111
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10112
{ (exit 1); exit 1; }; }
10115
# Update the list of available tags.
10116
if test -n "$tagname"; then
10117
echo appending configuration tag \"$tagname\" to $ofile
10121
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10122
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10123
(test "X$CXX" != "Xg++"))) ; then
10125
ac_cpp='$CXXCPP $CPPFLAGS'
10126
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10127
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10128
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10133
archive_cmds_need_lc_CXX=no
10134
allow_undefined_flag_CXX=
10135
always_export_symbols_CXX=no
10136
archive_expsym_cmds_CXX=
10137
export_dynamic_flag_spec_CXX=
10138
hardcode_direct_CXX=no
10139
hardcode_libdir_flag_spec_CXX=
10140
hardcode_libdir_flag_spec_ld_CXX=
10141
hardcode_libdir_separator_CXX=
10142
hardcode_minus_L_CXX=no
10143
hardcode_shlibpath_var_CXX=unsupported
10144
hardcode_automatic_CXX=no
10146
module_expsym_cmds_CXX=
10147
link_all_deplibs_CXX=unknown
10148
old_archive_cmds_CXX=$old_archive_cmds
10149
no_undefined_flag_CXX=
10150
whole_archive_flag_spec_CXX=
10151
enable_shared_with_static_runtimes_CXX=no
10153
# Dependencies to place before and after the object being linked:
10154
predep_objects_CXX=
10155
postdep_objects_CXX=
10158
compiler_lib_search_path_CXX=
10160
# Source file extension for C++ test sources.
10163
# Object file extension for compiled C++ test sources.
10167
# Code to be used in simple compile tests
10168
lt_simple_compile_test_code="int some_variable = 0;\n"
10170
# Code to be used in simple link tests
10171
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10173
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10175
# If no C compiler was specified, use CC.
10178
# If no C compiler flags were specified, use CFLAGS.
10179
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10181
# Allow CC to be a program name with arguments.
10185
# save warnings/boilerplate of simple test code
10186
ac_outfile=conftest.$ac_objext
10187
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10188
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10189
_lt_compiler_boilerplate=`cat conftest.err`
10192
ac_outfile=conftest.$ac_objext
10193
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10194
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10195
_lt_linker_boilerplate=`cat conftest.err`
10199
# Allow CC to be a program name with arguments.
10204
lt_save_with_gnu_ld=$with_gnu_ld
10205
lt_save_path_LD=$lt_cv_path_LD
10206
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10207
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10209
$as_unset lt_cv_prog_gnu_ld
10211
if test -n "${lt_cv_path_LDCXX+set}"; then
10212
lt_cv_path_LD=$lt_cv_path_LDCXX
10214
$as_unset lt_cv_path_LD
10216
test -z "${LDCXX+set}" || LD=$LDCXX
10220
for cc_temp in $compiler""; do
10222
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10223
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10228
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10231
# We don't want -fno-exception wen compiling C++ code, so set the
10232
# no_builtin_flag separately
10233
if test "$GXX" = yes; then
10234
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10236
lt_prog_compiler_no_builtin_flag_CXX=
10239
if test "$GXX" = yes; then
10240
# Set up default GNU C++ configuration
10243
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10244
if test "${with_gnu_ld+set}" = set; then
10245
withval="$with_gnu_ld"
10246
test "$withval" = no || with_gnu_ld=yes
10251
if test "$GCC" = yes; then
10252
# Check if gcc -print-prog-name=ld gives a path.
10253
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10254
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10257
# gcc leaves a trailing carriage return which upsets mingw
10258
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10260
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10263
# Accept absolute paths.
10265
re_direlt='/[^/][^/]*/\.\./'
10266
# Canonicalize the pathname of ld
10267
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10268
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10269
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10271
test -z "$LD" && LD="$ac_prog"
10274
# If it fails, then pretend we aren't using GCC.
10278
# If it is relative, then search for the first ld in PATH.
10279
with_gnu_ld=unknown
10282
elif test "$with_gnu_ld" = yes; then
10283
echo "$as_me:$LINENO: checking for GNU ld" >&5
10284
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10286
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10287
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10289
if test "${lt_cv_path_LD+set}" = set; then
10290
echo $ECHO_N "(cached) $ECHO_C" >&6
10292
if test -z "$LD"; then
10293
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10294
for ac_dir in $PATH; do
10296
test -z "$ac_dir" && ac_dir=.
10297
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10298
lt_cv_path_LD="$ac_dir/$ac_prog"
10299
# Check to see if the program is GNU ld. I'd rather use --version,
10300
# but apparently some variants of GNU ld only accept -v.
10301
# Break only if it was the GNU/non-GNU ld that we prefer.
10302
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10303
*GNU* | *'with BFD'*)
10304
test "$with_gnu_ld" != no && break
10307
test "$with_gnu_ld" != yes && break
10314
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10318
LD="$lt_cv_path_LD"
10319
if test -n "$LD"; then
10320
echo "$as_me:$LINENO: result: $LD" >&5
10321
echo "${ECHO_T}$LD" >&6
10323
echo "$as_me:$LINENO: result: no" >&5
10324
echo "${ECHO_T}no" >&6
10326
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10327
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10328
{ (exit 1); exit 1; }; }
10329
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10330
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10331
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10332
echo $ECHO_N "(cached) $ECHO_C" >&6
10334
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10335
case `$LD -v 2>&1 </dev/null` in
10336
*GNU* | *'with BFD'*)
10337
lt_cv_prog_gnu_ld=yes
10340
lt_cv_prog_gnu_ld=no
10344
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10345
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10346
with_gnu_ld=$lt_cv_prog_gnu_ld
10350
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10351
# archiving commands below assume that GNU ld is being used.
10352
if test "$with_gnu_ld" = yes; then
10353
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10354
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'
10356
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10357
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10359
# If archive_cmds runs LD, not CC, wlarc should be empty
10360
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10361
# investigate it a little bit more. (MM)
10364
# ancient GNU ld didn't support --whole-archive et. al.
10365
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10366
grep 'no-whole-archive' > /dev/null; then
10367
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10369
whole_archive_flag_spec_CXX=
10375
# A generic and very simple default shared library creation
10376
# command for GNU C++ for the case where it uses the native
10377
# linker, instead of GNU ld. If possible, this setting should
10378
# overridden to take advantage of the native linker features on
10379
# the platform it is being used on.
10380
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10383
# Commands to make compiler produce verbose output that lists
10384
# what "hidden" libraries, object files and flags are used when
10385
# linking a shared library.
10386
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10394
# PORTME: fill in a description of your system's C++ link characteristics
10395
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10396
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10400
# FIXME: insert proper C++ library support
10404
if test "$host_cpu" = ia64; then
10405
# On IA64, the linker does run time linking by default, so we don't
10406
# have to do anything special.
10407
aix_use_runtimelinking=no
10408
exp_sym_flag='-Bexport'
10411
aix_use_runtimelinking=no
10413
# Test if we are trying to use run time linking or normal
10414
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10415
# need to do runtime linking.
10416
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10417
for ld_flag in $LDFLAGS; do
10420
aix_use_runtimelinking=yes
10428
exp_sym_flag='-bexport'
10429
no_entry_flag='-bnoentry'
10432
# When large executables or shared objects are built, AIX ld can
10433
# have problems creating the table of contents. If linking a library
10434
# or program results in "error TOC overflow" add -mminimal-toc to
10435
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10436
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10438
archive_cmds_CXX=''
10439
hardcode_direct_CXX=yes
10440
hardcode_libdir_separator_CXX=':'
10441
link_all_deplibs_CXX=yes
10443
if test "$GXX" = yes; then
10444
case $host_os in aix4.[012]|aix4.[012].*)
10445
# We only want to do this on AIX 4.2 and lower, the check
10446
# below for broken collect2 doesn't work under 4.3+
10447
collect2name=`${CC} -print-prog-name=collect2`
10448
if test -f "$collect2name" && \
10449
strings "$collect2name" | grep resolve_lib_name >/dev/null
10451
# We have reworked collect2
10452
hardcode_direct_CXX=yes
10454
# We have old collect2
10455
hardcode_direct_CXX=unsupported
10456
# It fails to find uninstalled libraries when the uninstalled
10457
# path is not listed in the libpath. Setting hardcode_minus_L
10458
# to unsupported forces relinking
10459
hardcode_minus_L_CXX=yes
10460
hardcode_libdir_flag_spec_CXX='-L$libdir'
10461
hardcode_libdir_separator_CXX=
10465
shared_flag='-shared'
10466
if test "$aix_use_runtimelinking" = yes; then
10467
shared_flag="$shared_flag "'${wl}-G'
10471
if test "$host_cpu" = ia64; then
10472
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10473
# chokes on -Wl,-G. The following line is correct:
10476
if test "$aix_use_runtimelinking" = yes; then
10477
shared_flag='${wl}-G'
10479
shared_flag='${wl}-bM:SRE'
10484
# It seems that -bexpall does not export symbols beginning with
10485
# underscore (_), so it is better to generate a list of symbols to export.
10486
always_export_symbols_CXX=yes
10487
if test "$aix_use_runtimelinking" = yes; then
10488
# Warning - without using the other runtime loading flags (-brtl),
10489
# -berok will link without error, but may produce a broken library.
10490
allow_undefined_flag_CXX='-berok'
10491
# Determine the default libpath from the value encoded in an empty executable.
10492
cat >conftest.$ac_ext <<_ACEOF
10495
cat confdefs.h >>conftest.$ac_ext
10496
cat >>conftest.$ac_ext <<_ACEOF
10497
/* end confdefs.h. */
10507
rm -f conftest.$ac_objext conftest$ac_exeext
10508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509
(eval $ac_link) 2>conftest.er1
10511
grep -v '^ *+' conftest.er1 >conftest.err
10513
cat conftest.err >&5
10514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515
(exit $ac_status); } &&
10516
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518
(eval $ac_try) 2>&5
10520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521
(exit $ac_status); }; } &&
10522
{ ac_try='test -s conftest$ac_exeext'
10523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524
(eval $ac_try) 2>&5
10526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527
(exit $ac_status); }; }; then
10529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10531
# Check for a 64-bit object if we didn't find anything.
10532
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; }
10535
echo "$as_me: failed program was:" >&5
10536
sed 's/^/| /' conftest.$ac_ext >&5
10539
rm -f conftest.err conftest.$ac_objext \
10540
conftest$ac_exeext conftest.$ac_ext
10541
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10543
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10545
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10547
if test "$host_cpu" = ia64; then
10548
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10549
allow_undefined_flag_CXX="-z nodefs"
10550
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10552
# Determine the default libpath from the value encoded in an empty executable.
10553
cat >conftest.$ac_ext <<_ACEOF
10556
cat confdefs.h >>conftest.$ac_ext
10557
cat >>conftest.$ac_ext <<_ACEOF
10558
/* end confdefs.h. */
10568
rm -f conftest.$ac_objext conftest$ac_exeext
10569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570
(eval $ac_link) 2>conftest.er1
10572
grep -v '^ *+' conftest.er1 >conftest.err
10574
cat conftest.err >&5
10575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576
(exit $ac_status); } &&
10577
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579
(eval $ac_try) 2>&5
10581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582
(exit $ac_status); }; } &&
10583
{ ac_try='test -s conftest$ac_exeext'
10584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585
(eval $ac_try) 2>&5
10587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588
(exit $ac_status); }; }; then
10590
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10592
# Check for a 64-bit object if we didn't find anything.
10593
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; }
10596
echo "$as_me: failed program was:" >&5
10597
sed 's/^/| /' conftest.$ac_ext >&5
10600
rm -f conftest.err conftest.$ac_objext \
10601
conftest$ac_exeext conftest.$ac_ext
10602
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10604
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10605
# Warning - without using the other run time loading flags,
10606
# -berok will link without error, but may produce a broken library.
10607
no_undefined_flag_CXX=' ${wl}-bernotok'
10608
allow_undefined_flag_CXX=' ${wl}-berok'
10609
# Exported symbols can be pulled into shared objects from archives
10610
whole_archive_flag_spec_CXX='$convenience'
10611
archive_cmds_need_lc_CXX=yes
10612
# This is similar to how AIX traditionally builds its shared libraries.
10613
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10619
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10620
allow_undefined_flag_CXX=unsupported
10621
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10622
# support --undefined. This deserves some investigation. FIXME
10623
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10630
case $cc_basename in
10632
# FIXME: insert proper C++ library support
10638
cygwin* | mingw* | pw32*)
10639
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10640
# as there is no search path for DLLs.
10641
hardcode_libdir_flag_spec_CXX='-L$libdir'
10642
allow_undefined_flag_CXX=unsupported
10643
always_export_symbols_CXX=no
10644
enable_shared_with_static_runtimes_CXX=yes
10646
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10647
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10648
# If the export-symbols file already is a .def file (1st line
10649
# is EXPORTS), use it as is; otherwise, prepend...
10650
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10651
cp $export_symbols $output_objdir/$soname.def;
10653
echo EXPORTS > $output_objdir/$soname.def;
10654
cat $export_symbols >> $output_objdir/$soname.def;
10656
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10661
darwin* | rhapsody*)
10663
rhapsody* | darwin1.[012])
10664
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10667
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10668
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10670
case ${MACOSX_DEPLOYMENT_TARGET} in
10672
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10675
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10681
archive_cmds_need_lc_CXX=no
10682
hardcode_direct_CXX=no
10683
hardcode_automatic_CXX=yes
10684
hardcode_shlibpath_var_CXX=unsupported
10685
whole_archive_flag_spec_CXX=''
10686
link_all_deplibs_CXX=yes
10688
if test "$GXX" = yes ; then
10689
lt_int_apple_cc_single_mod=no
10690
output_verbose_link_cmd='echo'
10691
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10692
lt_int_apple_cc_single_mod=yes
10694
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10695
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10697
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'
10699
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10700
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10701
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10702
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}'
10704
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}'
10706
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}'
10708
case $cc_basename in
10710
output_verbose_link_cmd='echo'
10711
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'
10712
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10713
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10714
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}'
10715
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}'
10725
case $cc_basename in
10727
# FIXME: insert proper C++ library support
10731
# Green Hills C++ Compiler
10732
# FIXME: insert proper C++ library support
10736
# FIXME: insert proper C++ library support
10742
# C++ shared libraries reported to be fairly broken before switch to ELF
10746
archive_cmds_need_lc_CXX=no
10748
freebsd* | kfreebsd*-gnu | dragonfly*)
10749
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10756
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10757
hardcode_libdir_separator_CXX=:
10758
export_dynamic_flag_spec_CXX='${wl}-E'
10759
hardcode_direct_CXX=yes
10760
hardcode_minus_L_CXX=yes # Not in the search PATH,
10761
# but as the default
10762
# location of the library.
10764
case $cc_basename in
10766
# FIXME: insert proper C++ library support
10770
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'
10771
# Commands to make compiler produce verbose output that lists
10772
# what "hidden" libraries, object files and flags are used when
10773
# linking a shared library.
10775
# There doesn't appear to be a way to prevent this compiler from
10776
# explicitly linking system object files so we need to strip them
10777
# from the output so that they don't get included in the library
10779
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'
10782
if test "$GXX" = yes; then
10783
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'
10785
# FIXME: insert proper C++ library support
10792
if test $with_gnu_ld = no; then
10793
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10794
hardcode_libdir_separator_CXX=:
10798
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10801
export_dynamic_flag_spec_CXX='${wl}-E'
10807
hardcode_direct_CXX=no
10808
hardcode_shlibpath_var_CXX=no
10811
hardcode_direct_CXX=yes
10812
hardcode_minus_L_CXX=yes # Not in the search PATH,
10813
# but as the default
10814
# location of the library.
10818
case $cc_basename in
10820
# FIXME: insert proper C++ library support
10826
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10829
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10832
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10835
# Commands to make compiler produce verbose output that lists
10836
# what "hidden" libraries, object files and flags are used when
10837
# linking a shared library.
10839
# There doesn't appear to be a way to prevent this compiler from
10840
# explicitly linking system object files so we need to strip them
10841
# from the output so that they don't get included in the library
10843
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'
10846
if test "$GXX" = yes; then
10847
if test $with_gnu_ld = no; then
10850
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10853
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10856
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'
10861
# FIXME: insert proper C++ library support
10868
hardcode_direct_CXX=no
10869
hardcode_shlibpath_var_CXX=no
10870
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10871
export_dynamic_flag_spec_CXX='${wl}-E'
10872
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10873
# Instead, shared libraries are loaded at an image base (0x10000000 by
10874
# default) and relocated if they conflict, which is a slow very memory
10875
# consuming and fragmenting process. To avoid this, we pick a random,
10876
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10877
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10878
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10879
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10882
case $cc_basename in
10885
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'
10887
# Archives containing C++ object files must be created using
10888
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10889
# necessary to make sure instantiated templates are included
10891
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10894
if test "$GXX" = yes; then
10895
if test "$with_gnu_ld" = no; then
10896
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'
10898
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'
10901
link_all_deplibs_CXX=yes
10904
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10905
hardcode_libdir_separator_CXX=:
10908
case $cc_basename in
10910
# Kuck and Associates, Inc. (KAI) C++ Compiler
10912
# KCC will only create a shared library if the output file
10913
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10914
# to its proper name (with version) after linking.
10915
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'
10916
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'
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.
10921
# There doesn't appear to be a way to prevent this compiler from
10922
# explicitly linking system object files so we need to strip them
10923
# from the output so that they don't get included in the library
10925
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'
10927
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10928
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10930
# Archives containing C++ object files must be created using
10931
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10932
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10937
# version 8.0 and above of icpc choke on multiply defined symbols
10938
# if we add $predep_objects and $postdep_objects, however 7.1 and
10939
# earlier do not add the objects themselves.
10940
case `$CC -V 2>&1` in
10942
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943
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'
10945
*) # Version 8.0 or newer
10948
ia64*) tmp_idyn=' -i_dynamic';;
10950
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10951
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'
10954
archive_cmds_need_lc_CXX=no
10955
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10956
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10957
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10960
# Portland Group C++ compiler
10961
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10962
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'
10964
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10965
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10966
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'
10970
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10971
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'
10973
runpath_var=LD_RUN_PATH
10974
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10975
hardcode_libdir_separator_CXX=:
10977
# Commands to make compiler produce verbose output that lists
10978
# what "hidden" libraries, object files and flags are used when
10979
# linking a shared library.
10981
# There doesn't appear to be a way to prevent this compiler from
10982
# explicitly linking system object files so we need to strip them
10983
# from the output so that they don't get included in the library
10985
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'
10990
# FIXME: insert proper C++ library support
10994
# FIXME: insert proper C++ library support
10998
case $cc_basename in
11000
# FIXME: insert proper C++ library support
11004
# FIXME: insert proper C++ library support
11009
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11010
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11011
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11013
hardcode_libdir_flag_spec_CXX='-R$libdir'
11014
hardcode_direct_CXX=yes
11015
hardcode_shlibpath_var_CXX=no
11017
# Workaround some broken pre-1.5 toolchains
11018
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11021
# C++ shared libraries are fairly broken
11025
hardcode_direct_CXX=yes
11026
hardcode_shlibpath_var_CXX=no
11027
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11028
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11029
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11030
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11031
export_dynamic_flag_spec_CXX='${wl}-E'
11032
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11034
output_verbose_link_cmd='echo'
11037
case $cc_basename in
11039
# Kuck and Associates, Inc. (KAI) C++ Compiler
11041
# KCC will only create a shared library if the output file
11042
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11043
# to its proper name (with version) after linking.
11044
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'
11046
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11047
hardcode_libdir_separator_CXX=:
11049
# Archives containing C++ object files must be created using
11050
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11051
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11055
# Rational C++ 2.4.1
11056
# FIXME: insert proper C++ library support
11060
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11061
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'
11063
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11064
hardcode_libdir_separator_CXX=:
11066
# Commands to make compiler produce verbose output that lists
11067
# what "hidden" libraries, object files and flags are used when
11068
# linking a shared library.
11070
# There doesn't appear to be a way to prevent this compiler from
11071
# explicitly linking system object files so we need to strip them
11072
# from the output so that they don't get included in the library
11074
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'
11077
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11078
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11079
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'
11081
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11082
hardcode_libdir_separator_CXX=:
11084
# Commands to make compiler produce verbose output that lists
11085
# what "hidden" libraries, object files and flags are used when
11086
# linking a shared library.
11087
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11090
# FIXME: insert proper C++ library support
11097
case $cc_basename in
11099
# Kuck and Associates, Inc. (KAI) C++ Compiler
11101
# KCC will only create a shared library if the output file
11102
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11103
# to its proper name (with version) after linking.
11104
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'
11106
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11107
hardcode_libdir_separator_CXX=:
11109
# Archives containing C++ object files must be created using
11110
# the KAI C++ compiler.
11111
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11114
# Rational C++ 2.4.1
11115
# FIXME: insert proper C++ library support
11119
allow_undefined_flag_CXX=' -expect_unresolved \*'
11120
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'
11121
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11122
echo "-hidden">> $lib.exp~
11123
$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~
11126
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11127
hardcode_libdir_separator_CXX=:
11129
# Commands to make compiler produce verbose output that lists
11130
# what "hidden" libraries, object files and flags are used when
11131
# linking a shared library.
11133
# There doesn't appear to be a way to prevent this compiler from
11134
# explicitly linking system object files so we need to strip them
11135
# from the output so that they don't get included in the library
11137
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'
11140
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11141
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11142
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'
11144
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11145
hardcode_libdir_separator_CXX=:
11147
# Commands to make compiler produce verbose output that lists
11148
# what "hidden" libraries, object files and flags are used when
11149
# linking a shared library.
11150
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11153
# FIXME: insert proper C++ library support
11160
# FIXME: insert proper C++ library support
11164
case $cc_basename in
11167
# FIXME: insert proper C++ library support
11172
# FIXME: insert proper C++ library support
11176
# FIXME: insert proper C++ library support
11182
case $cc_basename in
11184
# Sun C++ 4.2, 5.x and Centerline C++
11185
archive_cmds_need_lc_CXX=yes
11186
no_undefined_flag_CXX=' -zdefs'
11187
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11188
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11189
$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'
11191
hardcode_libdir_flag_spec_CXX='-R$libdir'
11192
hardcode_shlibpath_var_CXX=no
11194
solaris2.[0-5] | solaris2.[0-5].*) ;;
11196
# The C++ compiler is used as linker so we must use $wl
11197
# flag to pass the commands to the underlying system
11198
# linker. We must also pass each convience library through
11199
# to the system linker between allextract/defaultextract.
11200
# The C++ compiler will combine linker options so we
11201
# cannot just pass the convience library names through
11203
# Supported since Solaris 2.6 (maybe 2.5.1?)
11204
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'
11207
link_all_deplibs_CXX=yes
11209
output_verbose_link_cmd='echo'
11211
# Archives containing C++ object files must be created using
11212
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11213
# necessary to make sure instantiated templates are included
11215
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11218
# Green Hills C++ Compiler
11219
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11221
# The C++ compiler must be used to create the archive.
11222
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11225
# GNU C++ compiler with Solaris linker
11226
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11227
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11228
if $CC --version | grep -v '^2\.7' > /dev/null; then
11229
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11230
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11231
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11233
# Commands to make compiler produce verbose output that lists
11234
# what "hidden" libraries, object files and flags are used when
11235
# linking a shared library.
11236
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11238
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11240
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11241
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11242
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11244
# Commands to make compiler produce verbose output that lists
11245
# what "hidden" libraries, object files and flags are used when
11246
# linking a shared library.
11247
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11250
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11255
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11256
no_undefined_flag_CXX='${wl}-z,text'
11257
archive_cmds_need_lc_CXX=no
11258
hardcode_shlibpath_var_CXX=no
11259
runpath_var='LD_RUN_PATH'
11261
case $cc_basename in
11263
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11264
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11267
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272
sysv5* | sco3.2v5* | sco5v6*)
11273
# Note: We can NOT use -z defs as we might desire, because we do not
11274
# link with -lc, and that would cause any symbols used from libc to
11275
# always be unresolved, which means just about no library would
11276
# ever link correctly. If we're not using GNU ld we use -z text
11277
# though, which does catch some bad symbols but isn't as heavy-handed
11279
# For security reasons, it is highly recommended that you always
11280
# use absolute paths for naming shared libraries, and exclude the
11281
# DT_RUNPATH tag from executables and libraries. But doing so
11282
# requires that you compile everything twice, which is a pain.
11283
# So that behaviour is only enabled if SCOABSPATH is set to a
11284
# non-empty value in the environment. Most likely only useful for
11285
# creating official distributions of packages.
11286
# This is a hack until libtool officially supports absolute path
11287
# names for shared libraries.
11288
no_undefined_flag_CXX='${wl}-z,text'
11289
allow_undefined_flag_CXX='${wl}-z,nodefs'
11290
archive_cmds_need_lc_CXX=no
11291
hardcode_shlibpath_var_CXX=no
11292
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11293
hardcode_libdir_separator_CXX=':'
11294
link_all_deplibs_CXX=yes
11295
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11296
runpath_var='LD_RUN_PATH'
11298
case $cc_basename in
11300
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11301
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11304
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11305
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11310
case $cc_basename in
11312
# NonStop-UX NCC 3.20
11313
# FIXME: insert proper C++ library support
11317
# FIXME: insert proper C++ library support
11323
# FIXME: insert proper C++ library support
11327
# FIXME: insert proper C++ library support
11331
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11332
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11333
test "$ld_shlibs_CXX" = no && can_build_shared=no
11339
cat > conftest.$ac_ext <<EOF
11343
Foo (void) { a = 0; }
11349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350
(eval $ac_compile) 2>&5
11352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353
(exit $ac_status); }; then
11354
# Parse the compiler output and extract the necessary
11355
# objects, libraries and library flags.
11357
# Sentinel used to keep track of whether or not we are before
11358
# the conftest object file.
11359
pre_test_object_deps_done=no
11361
# The `*' in the case matches for architectures that use `case' in
11362
# $output_verbose_cmd can trigger glob expansion during the loop
11363
# eval without this substitution.
11364
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11366
for p in `eval $output_verbose_link_cmd`; do
11370
# Some compilers place space between "-{L,R}" and the path.
11371
# Remove the space.
11372
if test $p = "-L" \
11373
|| test $p = "-R"; then
11380
if test "$pre_test_object_deps_done" = no; then
11383
# Internal compiler library paths should come after those
11384
# provided the user. The postdeps already come after the
11385
# user supplied libs so there is no need to process them.
11386
if test -z "$compiler_lib_search_path_CXX"; then
11387
compiler_lib_search_path_CXX="${prev}${p}"
11389
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11392
# The "-l" case would never come before the object being
11393
# linked, so don't bother handling this case.
11396
if test -z "$postdeps_CXX"; then
11397
postdeps_CXX="${prev}${p}"
11399
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11405
# This assumes that the test object file only shows up
11406
# once in the compiler output.
11407
if test "$p" = "conftest.$objext"; then
11408
pre_test_object_deps_done=yes
11412
if test "$pre_test_object_deps_done" = no; then
11413
if test -z "$predep_objects_CXX"; then
11414
predep_objects_CXX="$p"
11416
predep_objects_CXX="$predep_objects_CXX $p"
11419
if test -z "$postdep_objects_CXX"; then
11420
postdep_objects_CXX="$p"
11422
postdep_objects_CXX="$postdep_objects_CXX $p"
11427
*) ;; # Ignore the rest.
11435
echo "libtool.m4: error: problem compiling CXX test program"
11438
$rm -f confest.$objext
11440
# PORTME: override above test on systems where it is broken
11443
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11444
# hack all around it, let's just trust "g++" to DTRT.
11445
predep_objects_CXX=
11446
postdep_objects_CXX=
11451
case $cc_basename in
11453
# Adding this requires a known-good setup of shared libraries for
11454
# Sun compiler versions before 5.6, else PIC objects from an old
11455
# archive will be linked into the output, leading to subtle bugs.
11456
postdeps_CXX='-lCstd -lCrun'
11463
case " $postdeps_CXX " in
11464
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11467
lt_prog_compiler_wl_CXX=
11468
lt_prog_compiler_pic_CXX=
11469
lt_prog_compiler_static_CXX=
11471
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11472
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11474
# C++ specific cases for pic, static, wl, etc.
11475
if test "$GXX" = yes; then
11476
lt_prog_compiler_wl_CXX='-Wl,'
11477
lt_prog_compiler_static_CXX='-static'
11481
# All AIX code is PIC.
11482
if test "$host_cpu" = ia64; then
11483
# AIX 5 now supports IA64 processor
11484
lt_prog_compiler_static_CXX='-Bstatic'
11488
# FIXME: we need at least 68020 code to build shared libraries, but
11489
# adding the `-m68020' flag to GCC prevents building anything better,
11491
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11493
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11494
# PIC is the default for these OSes.
11496
mingw* | os2* | pw32*)
11497
# This hack is so that the source file can tell whether it is being
11498
# built for inclusion in a dll (and should export symbols for example).
11499
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11501
darwin* | rhapsody*)
11502
# PIC is the default on this platform
11503
# Common symbols not allowed in MH_DYLIB files
11504
lt_prog_compiler_pic_CXX='-fno-common'
11507
# DJGPP does not support shared libraries at all
11508
lt_prog_compiler_pic_CXX=
11511
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11512
# Instead, we relocate shared libraries at runtime.
11515
if test -d /usr/nec; then
11516
lt_prog_compiler_pic_CXX=-Kconform_pic
11520
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11521
# not for PA HP-UX.
11526
lt_prog_compiler_pic_CXX='-fPIC'
11531
lt_prog_compiler_pic_CXX='-fPIC'
11537
# All AIX code is PIC.
11538
if test "$host_cpu" = ia64; then
11539
# AIX 5 now supports IA64 processor
11540
lt_prog_compiler_static_CXX='-Bstatic'
11542
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11546
case $cc_basename in
11548
# Green Hills C++ Compiler
11549
# _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"
11554
# PIC is the default on this platform
11555
# Common symbols not allowed in MH_DYLIB files
11556
case $cc_basename in
11558
lt_prog_compiler_pic_CXX='-qnocommon'
11559
lt_prog_compiler_wl_CXX='-Wl,'
11564
case $cc_basename in
11566
lt_prog_compiler_pic_CXX='-KPIC'
11569
# Green Hills C++ Compiler
11570
lt_prog_compiler_pic_CXX='-pic'
11576
freebsd* | kfreebsd*-gnu | dragonfly*)
11577
# FreeBSD uses GNU C++
11579
hpux9* | hpux10* | hpux11*)
11580
case $cc_basename in
11582
lt_prog_compiler_wl_CXX='-Wl,'
11583
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11584
if test "$host_cpu" != ia64; then
11585
lt_prog_compiler_pic_CXX='+Z'
11589
lt_prog_compiler_wl_CXX='-Wl,'
11590
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11596
lt_prog_compiler_pic_CXX='+Z'
11605
# This is c89, which is MS Visual C++ (no shared libs)
11606
# Anyone wants to do a port?
11608
irix5* | irix6* | nonstopux*)
11609
case $cc_basename in
11611
lt_prog_compiler_wl_CXX='-Wl,'
11612
lt_prog_compiler_static_CXX='-non_shared'
11613
# CC pic flag -KPIC is the default.
11620
case $cc_basename in
11623
lt_prog_compiler_wl_CXX='--backend -Wl,'
11624
lt_prog_compiler_pic_CXX='-fPIC'
11628
lt_prog_compiler_wl_CXX='-Wl,'
11629
lt_prog_compiler_pic_CXX='-KPIC'
11630
lt_prog_compiler_static_CXX='-static'
11633
# Portland Group C++ compiler.
11634
lt_prog_compiler_wl_CXX='-Wl,'
11635
lt_prog_compiler_pic_CXX='-fpic'
11636
lt_prog_compiler_static_CXX='-Bstatic'
11640
# Make sure the PIC flag is empty. It appears that all Alpha
11641
# Linux and Compaq Tru64 Unix objects are PIC.
11642
lt_prog_compiler_pic_CXX=
11643
lt_prog_compiler_static_CXX='-non_shared'
11654
case $cc_basename in
11656
lt_prog_compiler_pic_CXX='-W c,exportall'
11662
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11664
osf3* | osf4* | osf5*)
11665
case $cc_basename in
11667
lt_prog_compiler_wl_CXX='--backend -Wl,'
11670
# Rational C++ 2.4.1
11671
lt_prog_compiler_pic_CXX='-pic'
11674
# Digital/Compaq C++
11675
lt_prog_compiler_wl_CXX='-Wl,'
11676
# Make sure the PIC flag is empty. It appears that all Alpha
11677
# Linux and Compaq Tru64 Unix objects are PIC.
11678
lt_prog_compiler_pic_CXX=
11679
lt_prog_compiler_static_CXX='-non_shared'
11688
case $cc_basename in
11690
# Sun C++ 4.2, 5.x and Centerline C++
11691
lt_prog_compiler_pic_CXX='-KPIC'
11692
lt_prog_compiler_static_CXX='-Bstatic'
11693
lt_prog_compiler_wl_CXX='-Qoption ld '
11696
# Green Hills C++ Compiler
11697
lt_prog_compiler_pic_CXX='-PIC'
11704
case $cc_basename in
11707
lt_prog_compiler_pic_CXX='-pic'
11708
lt_prog_compiler_static_CXX='-Bstatic'
11712
lt_prog_compiler_pic_CXX='-pic'
11719
case $cc_basename in
11721
# NonStop-UX NCC 3.20
11722
lt_prog_compiler_pic_CXX='-KPIC'
11728
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11729
case $cc_basename in
11731
lt_prog_compiler_wl_CXX='-Wl,'
11732
lt_prog_compiler_pic_CXX='-KPIC'
11733
lt_prog_compiler_static_CXX='-Bstatic'
11740
lt_prog_compiler_can_build_shared_CXX=no
11745
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11746
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11749
# Check to make sure the PIC flag actually works.
11751
if test -n "$lt_prog_compiler_pic_CXX"; then
11753
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11754
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11755
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11756
echo $ECHO_N "(cached) $ECHO_C" >&6
11758
lt_prog_compiler_pic_works_CXX=no
11759
ac_outfile=conftest.$ac_objext
11760
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11761
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11762
# Insert the option either (1) after the last *FLAGS variable, or
11763
# (2) before a word containing "conftest.", or (3) at the end.
11764
# Note that $ac_compile itself does not contain backslashes and begins
11765
# with a dollar sign (not a hyphen), so the echo should work correctly.
11766
# The option is referenced via a variable to avoid confusing sed.
11767
lt_compile=`echo "$ac_compile" | $SED \
11768
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11769
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11770
-e 's:$: $lt_compiler_flag:'`
11771
(eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
11772
(eval "$lt_compile" 2>conftest.err)
11774
cat conftest.err >&5
11775
echo "$as_me:11775: \$? = $ac_status" >&5
11776
if (exit $ac_status) && test -s "$ac_outfile"; then
11777
# The compiler can only warn and ignore the option if not recognized
11778
# So say no if there are warnings other than the usual output.
11779
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11780
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11781
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11782
lt_prog_compiler_pic_works_CXX=yes
11788
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11789
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11791
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11792
case $lt_prog_compiler_pic_CXX in
11794
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11797
lt_prog_compiler_pic_CXX=
11798
lt_prog_compiler_can_build_shared_CXX=no
11803
# For platforms which do not support PIC, -DPIC is meaningless:
11805
lt_prog_compiler_pic_CXX=
11808
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11813
# Check to make sure the static flag actually works.
11815
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11816
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11817
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11818
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11819
echo $ECHO_N "(cached) $ECHO_C" >&6
11821
lt_prog_compiler_static_works_CXX=no
11822
save_LDFLAGS="$LDFLAGS"
11823
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11824
printf "$lt_simple_link_test_code" > conftest.$ac_ext
11825
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11826
# The linker can only warn and ignore the option if not recognized
11827
# So say no if there are warnings
11828
if test -s conftest.err; then
11829
# Append any errors to the config.log.
11830
cat conftest.err 1>&5
11831
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11832
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11833
if diff conftest.exp conftest.er2 >/dev/null; then
11834
lt_prog_compiler_static_works_CXX=yes
11837
lt_prog_compiler_static_works_CXX=yes
11841
LDFLAGS="$save_LDFLAGS"
11844
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11845
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11847
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11850
lt_prog_compiler_static_CXX=
11854
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11855
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11856
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11857
echo $ECHO_N "(cached) $ECHO_C" >&6
11859
lt_cv_prog_compiler_c_o_CXX=no
11860
$rm -r conftest 2>/dev/null
11864
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11866
lt_compiler_flag="-o out/conftest2.$ac_objext"
11867
# Insert the option either (1) after the last *FLAGS variable, or
11868
# (2) before a word containing "conftest.", or (3) at the end.
11869
# Note that $ac_compile itself does not contain backslashes and begins
11870
# with a dollar sign (not a hyphen), so the echo should work correctly.
11871
lt_compile=`echo "$ac_compile" | $SED \
11872
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11873
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11874
-e 's:$: $lt_compiler_flag:'`
11875
(eval echo "\"\$as_me:11875: $lt_compile\"" >&5)
11876
(eval "$lt_compile" 2>out/conftest.err)
11878
cat out/conftest.err >&5
11879
echo "$as_me:11879: \$? = $ac_status" >&5
11880
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11882
# The compiler can only warn and ignore the option if not recognized
11883
# So say no if there are warnings
11884
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11885
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11886
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11887
lt_cv_prog_compiler_c_o_CXX=yes
11892
# SGI C++ compiler will create directory out/ii_files/ for
11893
# template instantiation
11894
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11895
$rm out/* && rmdir out
11901
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11902
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11905
hard_links="nottested"
11906
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11907
# do not overwrite the value of need_locks provided by the user
11908
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11909
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11912
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11914
ln conftest.a conftest.b 2>&5 || hard_links=no
11915
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11916
echo "$as_me:$LINENO: result: $hard_links" >&5
11917
echo "${ECHO_T}$hard_links" >&6
11918
if test "$hard_links" = no; then
11919
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11920
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11927
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11928
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11930
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11933
# If we're using GNU nm, then we don't want the "-C" option.
11934
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11935
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11936
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'
11938
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'
11942
export_symbols_cmds_CXX="$ltdll_cmds"
11945
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'
11948
link_all_deplibs_CXX=no
11951
link_all_deplibs_CXX=no
11954
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11958
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11959
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11960
test "$ld_shlibs_CXX" = no && can_build_shared=no
11963
# Do we need to explicitly link libc?
11965
case "x$archive_cmds_need_lc_CXX" in
11967
# Assume -lc should be added
11968
archive_cmds_need_lc_CXX=yes
11970
if test "$enable_shared" = yes && test "$GCC" = yes; then
11971
case $archive_cmds_CXX in
11973
# FIXME: we may have to deal with multi-command sequences.
11976
# Test whether the compiler implicitly links with -lc since on some
11977
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11978
# to ld, don't add -lc before -lgcc.
11979
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11980
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11982
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985
(eval $ac_compile) 2>&5
11987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988
(exit $ac_status); } 2>conftest.err; then
11991
libobjs=conftest.$ac_objext
11993
wl=$lt_prog_compiler_wl_CXX
11994
pic_flag=$lt_prog_compiler_pic_CXX
12000
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12001
allow_undefined_flag_CXX=
12002
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12003
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006
(exit $ac_status); }
12008
archive_cmds_need_lc_CXX=no
12010
archive_cmds_need_lc_CXX=yes
12012
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12014
cat conftest.err 1>&5
12017
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12018
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12025
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12026
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12027
library_names_spec=
12028
libname_spec='lib$name'
12032
postuninstall_cmds=
12036
shlibpath_overrides_runpath=unknown
12038
dynamic_linker="$host_os ld.so"
12039
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12040
if test "$GCC" = yes; then
12041
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12042
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12043
# if the path contains ";" then we assume it to be the separator
12044
# otherwise default to the standard path separator (i.e. ":") - it is
12045
# assumed that no part of a normal pathname contains ";" but that should
12046
# okay in the real world where ";" in dirpaths is itself problematic.
12047
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12049
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12052
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12054
need_lib_prefix=unknown
12055
hardcode_into_libs=no
12057
# when you set need_version to no, make sure it does not cause -set_version
12058
# flags to be left without arguments
12059
need_version=unknown
12064
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12065
shlibpath_var=LIBPATH
12067
# AIX 3 has no versioning support, so we append a major version to the name.
12068
soname_spec='${libname}${release}${shared_ext}$major'
12075
hardcode_into_libs=yes
12076
if test "$host_cpu" = ia64; then
12077
# AIX 5 supports IA64
12078
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12079
shlibpath_var=LD_LIBRARY_PATH
12081
# With GCC up to 2.95.x, collect2 would create an import file
12082
# for dependence libraries. The import file would start with
12083
# the line `#! .'. This would cause the generated library to
12084
# depend on `.', always an invalid library. This was fixed in
12085
# development snapshots of GCC prior to 3.0.
12087
aix4 | aix4.[01] | aix4.[01].*)
12088
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12090
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12093
can_build_shared=no
12097
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12098
# soname into executable. Probably we can add versioning support to
12099
# collect2, so additional links can be useful in future.
12100
if test "$aix_use_runtimelinking" = yes; then
12101
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12102
# instead of lib<name>.a to let people know that these are not
12103
# typical AIX shared libraries.
12104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106
# We preserve .a as extension for shared libraries through AIX4.2
12107
# and later when we are not doing run time linking.
12108
library_names_spec='${libname}${release}.a $libname.a'
12109
soname_spec='${libname}${release}${shared_ext}$major'
12111
shlibpath_var=LIBPATH
12116
library_names_spec='$libname.ixlibrary $libname.a'
12117
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12118
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'
12122
library_names_spec='${libname}${shared_ext}'
12123
dynamic_linker="$host_os ld.so"
12124
shlibpath_var=LIBRARY_PATH
12130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131
soname_spec='${libname}${release}${shared_ext}$major'
12132
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12133
shlibpath_var=LD_LIBRARY_PATH
12134
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12135
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12136
# the default ld.so.conf also contains /usr/contrib/lib and
12137
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12138
# libtool to hard-code these into programs
12141
cygwin* | mingw* | pw32*)
12142
version_type=windows
12147
case $GCC,$host_os in
12148
yes,cygwin* | yes,mingw* | yes,pw32*)
12149
library_names_spec='$libname.dll.a'
12150
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12151
postinstall_cmds='base_file=`basename \${file}`~
12152
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12153
dldir=$destdir/`dirname \$dlpath`~
12154
test -d \$dldir || mkdir -p \$dldir~
12155
$install_prog $dir/$dlname \$dldir/$dlname~
12156
chmod a+x \$dldir/$dlname'
12157
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12158
dlpath=$dir/\$dldll~
12160
shlibpath_overrides_runpath=yes
12164
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12165
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12166
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12169
# MinGW DLLs use traditional 'lib' prefix
12170
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12171
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12172
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12173
# It is most probably a Windows format PATH printed by
12174
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12175
# path with ; separators, and with drive letters. We can handle the
12176
# drive letters (cygwin fileutils understands them), so leave them,
12177
# especially as we might pass files found there to a mingw objdump,
12178
# which wouldn't understand a cygwinified path. Ahh.
12179
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12181
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12185
# pw32 DLLs use 'pw' prefix rather than 'lib'
12186
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12192
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12195
dynamic_linker='Win32 ld.exe'
12196
# FIXME: first we should search . and the directory the executable is in
12200
darwin* | rhapsody*)
12201
dynamic_linker="$host_os dyld"
12202
version_type=darwin
12205
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12206
soname_spec='${libname}${release}${major}$shared_ext'
12207
shlibpath_overrides_runpath=yes
12208
shlibpath_var=DYLD_LIBRARY_PATH
12209
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12210
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12211
if test "$GCC" = yes; then
12212
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"`
12214
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12216
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12224
soname_spec='${libname}${release}${shared_ext}$major'
12225
shlibpath_var=LD_LIBRARY_PATH
12236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12237
soname_spec='${libname}${release}${shared_ext}$major'
12238
shlibpath_var=LD_LIBRARY_PATH
12239
shlibpath_overrides_runpath=no
12240
hardcode_into_libs=yes
12241
dynamic_linker='GNU ld.so'
12244
freebsd* | dragonfly*)
12245
# DragonFly does not have aout. When/if they implement a new
12246
# versioning mechanism, adjust this.
12247
if test -x /usr/bin/objformat; then
12248
objformat=`/usr/bin/objformat`
12251
freebsd[123]*) objformat=aout ;;
12252
*) objformat=elf ;;
12255
version_type=freebsd-$objformat
12256
case $version_type in
12258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12263
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12267
shlibpath_var=LD_LIBRARY_PATH
12270
shlibpath_overrides_runpath=yes
12272
freebsd3.[01]* | freebsdelf3.[01]*)
12273
shlibpath_overrides_runpath=yes
12274
hardcode_into_libs=yes
12276
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12277
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12278
shlibpath_overrides_runpath=no
12279
hardcode_into_libs=yes
12281
freebsd*) # from 4.6 on
12282
shlibpath_overrides_runpath=yes
12283
hardcode_into_libs=yes
12292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12293
soname_spec='${libname}${release}${shared_ext}$major'
12294
shlibpath_var=LD_LIBRARY_PATH
12295
hardcode_into_libs=yes
12298
hpux9* | hpux10* | hpux11*)
12299
# Give a soname corresponding to the major version so that dld.sl refuses to
12300
# link against other versions.
12307
hardcode_into_libs=yes
12308
dynamic_linker="$host_os dld.so"
12309
shlibpath_var=LD_LIBRARY_PATH
12310
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312
soname_spec='${libname}${release}${shared_ext}$major'
12313
if test "X$HPUX_IA64_MODE" = X32; then
12314
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12316
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12318
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12322
hardcode_into_libs=yes
12323
dynamic_linker="$host_os dld.sl"
12324
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12325
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12327
soname_spec='${libname}${release}${shared_ext}$major'
12328
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12329
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12333
dynamic_linker="$host_os dld.sl"
12334
shlibpath_var=SHLIB_PATH
12335
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337
soname_spec='${libname}${release}${shared_ext}$major'
12340
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12341
postinstall_cmds='chmod 555 $lib'
12348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12349
soname_spec='${libname}${release}${shared_ext}$major'
12350
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12351
shlibpath_var=LD_LIBRARY_PATH
12352
shlibpath_overrides_runpath=no
12353
hardcode_into_libs=yes
12356
irix5* | irix6* | nonstopux*)
12358
nonstopux*) version_type=nonstopux ;;
12360
if test "$lt_cv_prog_gnu_ld" = yes; then
12368
soname_spec='${libname}${release}${shared_ext}$major'
12369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12371
irix5* | nonstopux*)
12372
libsuff= shlibsuff=
12375
case $LD in # libtool.m4 will add one of these switches to LD
12376
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12377
libsuff= shlibsuff= libmagic=32-bit;;
12378
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12379
libsuff=32 shlibsuff=N32 libmagic=N32;;
12380
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12381
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12382
*) libsuff= shlibsuff= libmagic=never-match;;
12386
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12387
shlibpath_overrides_runpath=no
12388
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12389
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12390
hardcode_into_libs=yes
12393
# No shared lib support for Linux oldld, aout, or coff.
12394
linux*oldld* | linux*aout* | linux*coff*)
12398
# This must be Linux ELF.
12403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404
soname_spec='${libname}${release}${shared_ext}$major'
12405
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12406
shlibpath_var=LD_LIBRARY_PATH
12407
shlibpath_overrides_runpath=no
12408
# This implies no fast_install, which is unacceptable.
12409
# Some rework will be needed to allow for fast_install
12410
# before this can be enabled.
12411
hardcode_into_libs=yes
12413
# Append ld.so.conf contents to the search path
12414
if test -f /etc/ld.so.conf; then
12415
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' ' '`
12416
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12419
# We used to test for /lib/ld.so.1 and disable shared libraries on
12420
# powerpc, because MkLinux only supported shared libraries with the
12421
# GNU dynamic linker. Since this was broken with cross compilers,
12422
# most powerpc-linux boxes support dynamic linking these days and
12423
# people can always --disable-shared, the test was removed, and we
12424
# assume the GNU/Linux dynamic linker is in use.
12425
dynamic_linker='GNU/Linux ld.so'
12432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12433
soname_spec='${libname}${release}${shared_ext}$major'
12434
shlibpath_var=LD_LIBRARY_PATH
12435
shlibpath_overrides_runpath=no
12436
hardcode_into_libs=yes
12437
dynamic_linker='NetBSD ld.elf_so'
12444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12445
soname_spec='${libname}${release}${shared_ext}$major'
12446
shlibpath_var=LD_LIBRARY_PATH
12447
shlibpath_overrides_runpath=no
12448
hardcode_into_libs=yes
12449
dynamic_linker='GNU ld.so'
12456
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12458
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12459
dynamic_linker='NetBSD (a.out) ld.so'
12461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12462
soname_spec='${libname}${release}${shared_ext}$major'
12463
dynamic_linker='NetBSD ld.elf_so'
12465
shlibpath_var=LD_LIBRARY_PATH
12466
shlibpath_overrides_runpath=yes
12467
hardcode_into_libs=yes
12472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473
shlibpath_var=LD_LIBRARY_PATH
12474
shlibpath_overrides_runpath=yes
12481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482
soname_spec='${libname}${release}${shared_ext}$major'
12483
shlibpath_var=LD_LIBRARY_PATH
12484
shlibpath_overrides_runpath=yes
12489
sys_lib_dlsearch_path_spec="/usr/lib"
12491
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12493
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12494
*) need_version=no ;;
12496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12497
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12498
shlibpath_var=LD_LIBRARY_PATH
12499
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12501
openbsd2.[89] | openbsd2.[89].*)
12502
shlibpath_overrides_runpath=no
12505
shlibpath_overrides_runpath=yes
12509
shlibpath_overrides_runpath=yes
12514
libname_spec='$name'
12517
library_names_spec='$libname${shared_ext} $libname.a'
12518
dynamic_linker='OS/2 ld.exe'
12519
shlibpath_var=LIBPATH
12522
osf3* | osf4* | osf5*)
12526
soname_spec='${libname}${release}${shared_ext}$major'
12527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528
shlibpath_var=LD_LIBRARY_PATH
12529
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12530
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538
soname_spec='${libname}${release}${shared_ext}$major'
12539
shlibpath_var=LD_LIBRARY_PATH
12540
shlibpath_overrides_runpath=yes
12541
hardcode_into_libs=yes
12542
# ldd complains unless libraries are executable
12543
postinstall_cmds='chmod +x $lib'
12548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12549
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12550
shlibpath_var=LD_LIBRARY_PATH
12551
shlibpath_overrides_runpath=yes
12552
if test "$with_gnu_ld" = yes; then
12560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12561
soname_spec='${libname}${release}${shared_ext}$major'
12562
shlibpath_var=LD_LIBRARY_PATH
12563
case $host_vendor in
12565
shlibpath_overrides_runpath=no
12567
export_dynamic_flag_spec='${wl}-Blargedynsym'
12568
runpath_var=LD_RUN_PATH
12576
shlibpath_overrides_runpath=no
12577
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12583
if test -d /usr/nec ;then
12585
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12586
soname_spec='$libname${shared_ext}.$major'
12587
shlibpath_var=LD_LIBRARY_PATH
12591
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12592
version_type=freebsd-elf
12595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12596
soname_spec='${libname}${release}${shared_ext}$major'
12597
shlibpath_var=LD_LIBRARY_PATH
12598
hardcode_into_libs=yes
12599
if test "$with_gnu_ld" = yes; then
12600
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12601
shlibpath_overrides_runpath=no
12603
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12604
shlibpath_overrides_runpath=yes
12607
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12611
sys_lib_dlsearch_path_spec='/usr/lib'
12616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12617
soname_spec='${libname}${release}${shared_ext}$major'
12618
shlibpath_var=LD_LIBRARY_PATH
12625
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12626
echo "${ECHO_T}$dynamic_linker" >&6
12627
test "$dynamic_linker" = no && can_build_shared=no
12629
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12630
if test "$GCC" = yes; then
12631
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12634
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12635
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12636
hardcode_action_CXX=
12637
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12638
test -n "$runpath_var_CXX" || \
12639
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12641
# We can hardcode non-existant directories.
12642
if test "$hardcode_direct_CXX" != no &&
12643
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12644
# have to relink, otherwise we might link with an installed library
12645
# when we should be linking with a yet-to-be-installed one
12646
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12647
test "$hardcode_minus_L_CXX" != no; then
12648
# Linking always hardcodes the temporary library directory.
12649
hardcode_action_CXX=relink
12651
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12652
hardcode_action_CXX=immediate
12655
# We cannot hardcode anything, or else we can only hardcode existing
12657
hardcode_action_CXX=unsupported
12659
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12660
echo "${ECHO_T}$hardcode_action_CXX" >&6
12662
if test "$hardcode_action_CXX" = relink; then
12663
# Fast installation is not supported
12664
enable_fast_install=no
12665
elif test "$shlibpath_overrides_runpath" = yes ||
12666
test "$enable_shared" = no; then
12667
# Fast installation is not necessary
12668
enable_fast_install=needless
12672
# The else clause should only fire when bootstrapping the
12673
# libtool distribution, otherwise you forgot to ship ltmain.sh
12674
# with your package, and you will get complaints that there are
12675
# no rules to generate ltmain.sh.
12676
if test -f "$ltmain"; then
12677
# See if we are running on zsh, and set the options which allow our commands through
12678
# without removal of \ escapes.
12679
if test -n "${ZSH_VERSION+set}" ; then
12680
setopt NO_GLOB_SUBST
12682
# Now quote all the things that may contain metacharacters while being
12683
# careful not to overquote the AC_SUBSTed values. We take copies of the
12684
# variables and quote the copies for generation of the libtool script.
12685
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12687
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12688
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12689
deplibs_check_method reload_flag reload_cmds need_locks \
12690
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12691
lt_cv_sys_global_symbol_to_c_name_address \
12692
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12693
old_postinstall_cmds old_postuninstall_cmds \
12697
lt_prog_compiler_wl_CXX \
12698
lt_prog_compiler_pic_CXX \
12699
lt_prog_compiler_static_CXX \
12700
lt_prog_compiler_no_builtin_flag_CXX \
12701
export_dynamic_flag_spec_CXX \
12702
thread_safe_flag_spec_CXX \
12703
whole_archive_flag_spec_CXX \
12704
enable_shared_with_static_runtimes_CXX \
12705
old_archive_cmds_CXX \
12706
old_archive_from_new_cmds_CXX \
12707
predep_objects_CXX \
12708
postdep_objects_CXX \
12711
compiler_lib_search_path_CXX \
12713
archive_expsym_cmds_CXX \
12714
postinstall_cmds_CXX \
12715
postuninstall_cmds_CXX \
12716
old_archive_from_expsyms_cmds_CXX \
12717
allow_undefined_flag_CXX \
12718
no_undefined_flag_CXX \
12719
export_symbols_cmds_CXX \
12720
hardcode_libdir_flag_spec_CXX \
12721
hardcode_libdir_flag_spec_ld_CXX \
12722
hardcode_libdir_separator_CXX \
12723
hardcode_automatic_CXX \
12725
module_expsym_cmds_CXX \
12726
lt_cv_prog_compiler_c_o_CXX \
12727
exclude_expsyms_CXX \
12728
include_expsyms_CXX; do
12731
old_archive_cmds_CXX | \
12732
old_archive_from_new_cmds_CXX | \
12733
archive_cmds_CXX | \
12734
archive_expsym_cmds_CXX | \
12735
module_cmds_CXX | \
12736
module_expsym_cmds_CXX | \
12737
old_archive_from_expsyms_cmds_CXX | \
12738
export_symbols_cmds_CXX | \
12739
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12740
postinstall_cmds | postuninstall_cmds | \
12741
old_postinstall_cmds | old_postuninstall_cmds | \
12742
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12743
# Double-quote double-evaled strings.
12744
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12747
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12753
*'\$0 --fallback-echo"')
12754
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12760
cat <<__EOF__ >> "$cfgfile"
12761
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12763
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12765
# Shell to use when invoking shell scripts.
12768
# Whether or not to build shared libraries.
12769
build_libtool_libs=$enable_shared
12771
# Whether or not to build static libraries.
12772
build_old_libs=$enable_static
12774
# Whether or not to add -lc for building shared libraries.
12775
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12777
# Whether or not to disallow shared libs when runtime libs are static
12778
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12780
# Whether or not to optimize for fast installation.
12781
fast_install=$enable_fast_install
12784
host_alias=$host_alias
12788
# The build system.
12789
build_alias=$build_alias
12793
# An echo program that does not interpret backslashes.
12798
AR_FLAGS=$lt_AR_FLAGS
12803
# LTCC compiler flags.
12804
LTCFLAGS=$lt_LTCFLAGS
12806
# A language-specific compiler.
12807
CC=$lt_compiler_CXX
12809
# Is the compiler the GNU C compiler?
12815
# The linker used to build libraries.
12818
# Whether we need hard or soft links.
12821
# A BSD-compatible nm program.
12824
# A symbol stripping program
12827
# Used to examine libraries when file_magic_cmd begins "file"
12828
MAGIC_CMD=$MAGIC_CMD
12830
# Used on cygwin: DLL creation program.
12833
# Used on cygwin: object dumper.
12836
# Used on cygwin: assembler.
12839
# The name of the directory that contains temporary libtool files.
12842
# How to create reloadable object files.
12843
reload_flag=$lt_reload_flag
12844
reload_cmds=$lt_reload_cmds
12846
# How to pass a linker flag through the compiler.
12847
wl=$lt_lt_prog_compiler_wl_CXX
12849
# Object file suffix (normally "o").
12850
objext="$ac_objext"
12852
# Old archive suffix (normally "a").
12855
# Shared library suffix (normally ".so").
12856
shrext_cmds='$shrext_cmds'
12858
# Executable file suffix (normally "").
12861
# Additional compiler flags for building library objects.
12862
pic_flag=$lt_lt_prog_compiler_pic_CXX
12865
# What is the maximum length of a command?
12866
max_cmd_len=$lt_cv_sys_max_cmd_len
12868
# Does compiler simultaneously support -c and -o options?
12869
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12871
# Must we lock files when doing compilation?
12872
need_locks=$lt_need_locks
12874
# Do we need the lib prefix for modules?
12875
need_lib_prefix=$need_lib_prefix
12877
# Do we need a version for libraries?
12878
need_version=$need_version
12880
# Whether dlopen is supported.
12881
dlopen_support=$enable_dlopen
12883
# Whether dlopen of programs is supported.
12884
dlopen_self=$enable_dlopen_self
12886
# Whether dlopen of statically linked programs is supported.
12887
dlopen_self_static=$enable_dlopen_self_static
12889
# Compiler flag to prevent dynamic linking.
12890
link_static_flag=$lt_lt_prog_compiler_static_CXX
12892
# Compiler flag to turn off builtin functions.
12893
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12895
# Compiler flag to allow reflexive dlopens.
12896
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12898
# Compiler flag to generate shared objects directly from archives.
12899
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12901
# Compiler flag to generate thread-safe objects.
12902
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12904
# Library versioning type.
12905
version_type=$version_type
12907
# Format of library name prefix.
12908
libname_spec=$lt_libname_spec
12910
# List of archive names. First name is the real one, the rest are links.
12911
# The last name is the one that the linker finds with -lNAME.
12912
library_names_spec=$lt_library_names_spec
12914
# The coded name of the library, if different from the real name.
12915
soname_spec=$lt_soname_spec
12917
# Commands used to build and install an old-style archive.
12919
old_archive_cmds=$lt_old_archive_cmds_CXX
12920
old_postinstall_cmds=$lt_old_postinstall_cmds
12921
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12923
# Create an old-style archive from a shared archive.
12924
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12926
# Create a temporary old-style archive to link instead of a shared archive.
12927
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12929
# Commands used to build and install a shared archive.
12930
archive_cmds=$lt_archive_cmds_CXX
12931
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12932
postinstall_cmds=$lt_postinstall_cmds
12933
postuninstall_cmds=$lt_postuninstall_cmds
12935
# Commands used to build a loadable module (assumed same as above if empty)
12936
module_cmds=$lt_module_cmds_CXX
12937
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12939
# Commands to strip libraries.
12940
old_striplib=$lt_old_striplib
12941
striplib=$lt_striplib
12943
# Dependencies to place before the objects being linked to create a
12945
predep_objects=$lt_predep_objects_CXX
12947
# Dependencies to place after the objects being linked to create a
12949
postdep_objects=$lt_postdep_objects_CXX
12951
# Dependencies to place before the objects being linked to create a
12953
predeps=$lt_predeps_CXX
12955
# Dependencies to place after the objects being linked to create a
12957
postdeps=$lt_postdeps_CXX
12959
# The library search path used internally by the compiler when linking
12960
# a shared library.
12961
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12963
# Method to check whether dependent libraries are shared objects.
12964
deplibs_check_method=$lt_deplibs_check_method
12966
# Command to use when deplibs_check_method == file_magic.
12967
file_magic_cmd=$lt_file_magic_cmd
12969
# Flag that allows shared libraries with undefined symbols to be built.
12970
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12972
# Flag that forces no undefined symbols.
12973
no_undefined_flag=$lt_no_undefined_flag_CXX
12975
# Commands used to finish a libtool library installation in a directory.
12976
finish_cmds=$lt_finish_cmds
12978
# Same as above, but a single script fragment to be evaled but not shown.
12979
finish_eval=$lt_finish_eval
12981
# Take the output of nm and produce a listing of raw symbols and C names.
12982
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12984
# Transform the output of nm in a proper C declaration
12985
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12987
# Transform the output of nm in a C name address pair
12988
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12990
# This is the shared library runtime path variable.
12991
runpath_var=$runpath_var
12993
# This is the shared library path variable.
12994
shlibpath_var=$shlibpath_var
12996
# Is shlibpath searched before the hard-coded library search path?
12997
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12999
# How to hardcode a shared library path into an executable.
13000
hardcode_action=$hardcode_action_CXX
13002
# Whether we should hardcode library paths into libraries.
13003
hardcode_into_libs=$hardcode_into_libs
13005
# Flag to hardcode \$libdir into a binary during linking.
13006
# This must work even if \$libdir does not exist.
13007
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13009
# If ld is used when linking, flag to hardcode \$libdir into
13010
# a binary during linking. This must work even if \$libdir does
13012
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13014
# Whether we need a single -rpath flag with a separated argument.
13015
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13017
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13018
# resulting binary.
13019
hardcode_direct=$hardcode_direct_CXX
13021
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13022
# resulting binary.
13023
hardcode_minus_L=$hardcode_minus_L_CXX
13025
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13026
# the resulting binary.
13027
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13029
# Set to yes if building a shared library automatically hardcodes DIR into the library
13030
# and all subsequent libraries and executables linked against it.
13031
hardcode_automatic=$hardcode_automatic_CXX
13033
# Variables whose values should be saved in libtool wrapper scripts and
13034
# restored at relink time.
13035
variables_saved_for_relink="$variables_saved_for_relink"
13037
# Whether libtool must link a program against all its dependency libraries.
13038
link_all_deplibs=$link_all_deplibs_CXX
13040
# Compile-time system search path for libraries
13041
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13043
# Run-time system search path for libraries
13044
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13046
# Fix the shell variable \$srcfile for the compiler.
13047
fix_srcfile_path="$fix_srcfile_path_CXX"
13049
# Set to yes if exported symbols are required.
13050
always_export_symbols=$always_export_symbols_CXX
13052
# The commands to list exported symbols.
13053
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13055
# The commands to extract the exported symbol list from a shared archive.
13056
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13058
# Symbols that should not be listed in the preloaded symbols.
13059
exclude_expsyms=$lt_exclude_expsyms_CXX
13061
# Symbols that must always be exported.
13062
include_expsyms=$lt_include_expsyms_CXX
13064
# ### END LIBTOOL TAG CONFIG: $tagname
13070
# If there is no Makefile yet, we rely on a make rule to execute
13071
# `config.status --recheck' to rerun these tests and create the
13072
# libtool script then.
13073
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13074
if test -f "$ltmain_in"; then
13075
test -f Makefile && make "$ltmain"
13081
ac_cpp='$CPP $CPPFLAGS'
13082
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090
with_gnu_ldcxx=$with_gnu_ld
13091
with_gnu_ld=$lt_save_with_gnu_ld
13092
lt_cv_path_LDCXX=$lt_cv_path_LD
13093
lt_cv_path_LD=$lt_save_path_LD
13094
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13095
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13103
if test -n "$F77" && test "X$F77" != "Xno"; then
13106
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13107
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13108
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13111
archive_cmds_need_lc_F77=no
13112
allow_undefined_flag_F77=
13113
always_export_symbols_F77=no
13114
archive_expsym_cmds_F77=
13115
export_dynamic_flag_spec_F77=
13116
hardcode_direct_F77=no
13117
hardcode_libdir_flag_spec_F77=
13118
hardcode_libdir_flag_spec_ld_F77=
13119
hardcode_libdir_separator_F77=
13120
hardcode_minus_L_F77=no
13121
hardcode_automatic_F77=no
13123
module_expsym_cmds_F77=
13124
link_all_deplibs_F77=unknown
13125
old_archive_cmds_F77=$old_archive_cmds
13126
no_undefined_flag_F77=
13127
whole_archive_flag_spec_F77=
13128
enable_shared_with_static_runtimes_F77=no
13130
# Source file extension for f77 test sources.
13133
# Object file extension for compiled f77 test sources.
13137
# Code to be used in simple compile tests
13138
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13140
# Code to be used in simple link tests
13141
lt_simple_link_test_code=" program t\n end\n"
13143
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13145
# If no C compiler was specified, use CC.
13148
# If no C compiler flags were specified, use CFLAGS.
13149
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13151
# Allow CC to be a program name with arguments.
13155
# save warnings/boilerplate of simple test code
13156
ac_outfile=conftest.$ac_objext
13157
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13158
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13159
_lt_compiler_boilerplate=`cat conftest.err`
13162
ac_outfile=conftest.$ac_objext
13163
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13164
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13165
_lt_linker_boilerplate=`cat conftest.err`
13169
# Allow CC to be a program name with arguments.
13174
for cc_temp in $compiler""; do
13176
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13177
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13182
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13185
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13186
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13187
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13188
echo "${ECHO_T}$can_build_shared" >&6
13190
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13191
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13192
test "$can_build_shared" = "no" && enable_shared=no
13194
# On AIX, shared libraries and static libraries use the same namespace, and
13195
# are all built from PIC.
13198
test "$enable_shared" = yes && enable_static=no
13199
if test -n "$RANLIB"; then
13200
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13201
postinstall_cmds='$RANLIB $lib'
13205
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13206
test "$enable_shared" = yes && enable_static=no
13210
echo "$as_me:$LINENO: result: $enable_shared" >&5
13211
echo "${ECHO_T}$enable_shared" >&6
13213
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13214
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13215
# Make sure either enable_shared or enable_static is yes.
13216
test "$enable_shared" = yes || enable_static=yes
13217
echo "$as_me:$LINENO: result: $enable_static" >&5
13218
echo "${ECHO_T}$enable_static" >&6
13223
lt_prog_compiler_wl_F77=
13224
lt_prog_compiler_pic_F77=
13225
lt_prog_compiler_static_F77=
13227
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13228
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13230
if test "$GCC" = yes; then
13231
lt_prog_compiler_wl_F77='-Wl,'
13232
lt_prog_compiler_static_F77='-static'
13236
# All AIX code is PIC.
13237
if test "$host_cpu" = ia64; then
13238
# AIX 5 now supports IA64 processor
13239
lt_prog_compiler_static_F77='-Bstatic'
13244
# FIXME: we need at least 68020 code to build shared libraries, but
13245
# adding the `-m68020' flag to GCC prevents building anything better,
13247
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13250
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13251
# PIC is the default for these OSes.
13254
mingw* | pw32* | os2*)
13255
# This hack is so that the source file can tell whether it is being
13256
# built for inclusion in a dll (and should export symbols for example).
13257
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13260
darwin* | rhapsody*)
13261
# PIC is the default on this platform
13262
# Common symbols not allowed in MH_DYLIB files
13263
lt_prog_compiler_pic_F77='-fno-common'
13267
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13268
# Instead, we relocate shared libraries at runtime.
13272
# Just because we use GCC doesn't mean we suddenly get shared libraries
13273
# on systems that don't support them.
13274
lt_prog_compiler_can_build_shared_F77=no
13279
if test -d /usr/nec; then
13280
lt_prog_compiler_pic_F77=-Kconform_pic
13285
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13286
# not for PA HP-UX.
13292
lt_prog_compiler_pic_F77='-fPIC'
13298
lt_prog_compiler_pic_F77='-fPIC'
13302
# PORTME Check for flag to pass linker flags through the system compiler.
13305
lt_prog_compiler_wl_F77='-Wl,'
13306
if test "$host_cpu" = ia64; then
13307
# AIX 5 now supports IA64 processor
13308
lt_prog_compiler_static_F77='-Bstatic'
13310
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13314
# PIC is the default on this platform
13315
# Common symbols not allowed in MH_DYLIB files
13316
case $cc_basename in
13318
lt_prog_compiler_pic_F77='-qnocommon'
13319
lt_prog_compiler_wl_F77='-Wl,'
13324
mingw* | pw32* | os2*)
13325
# This hack is so that the source file can tell whether it is being
13326
# built for inclusion in a dll (and should export symbols for example).
13327
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13330
hpux9* | hpux10* | hpux11*)
13331
lt_prog_compiler_wl_F77='-Wl,'
13332
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13333
# not for PA HP-UX.
13339
lt_prog_compiler_pic_F77='+Z'
13342
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13343
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13346
irix5* | irix6* | nonstopux*)
13347
lt_prog_compiler_wl_F77='-Wl,'
13348
# PIC (with -KPIC) is the default.
13349
lt_prog_compiler_static_F77='-non_shared'
13353
lt_prog_compiler_pic_F77='-KPIC'
13354
lt_prog_compiler_static_F77='-Bstatic'
13358
case $cc_basename in
13360
lt_prog_compiler_wl_F77='-Wl,'
13361
lt_prog_compiler_pic_F77='-KPIC'
13362
lt_prog_compiler_static_F77='-static'
13364
pgcc* | pgf77* | pgf90* | pgf95*)
13365
# Portland Group compilers (*not* the Pentium gcc compiler,
13366
# which looks to be a dead project)
13367
lt_prog_compiler_wl_F77='-Wl,'
13368
lt_prog_compiler_pic_F77='-fpic'
13369
lt_prog_compiler_static_F77='-Bstatic'
13372
lt_prog_compiler_wl_F77='-Wl,'
13373
# All Alpha code is PIC.
13374
lt_prog_compiler_static_F77='-non_shared'
13379
osf3* | osf4* | osf5*)
13380
lt_prog_compiler_wl_F77='-Wl,'
13381
# All OSF/1 code is PIC.
13382
lt_prog_compiler_static_F77='-non_shared'
13386
lt_prog_compiler_pic_F77='-KPIC'
13387
lt_prog_compiler_static_F77='-Bstatic'
13388
case $cc_basename in
13389
f77* | f90* | f95*)
13390
lt_prog_compiler_wl_F77='-Qoption ld ';;
13392
lt_prog_compiler_wl_F77='-Wl,';;
13397
lt_prog_compiler_wl_F77='-Qoption ld '
13398
lt_prog_compiler_pic_F77='-PIC'
13399
lt_prog_compiler_static_F77='-Bstatic'
13402
sysv4 | sysv4.2uw2* | sysv4.3*)
13403
lt_prog_compiler_wl_F77='-Wl,'
13404
lt_prog_compiler_pic_F77='-KPIC'
13405
lt_prog_compiler_static_F77='-Bstatic'
13409
if test -d /usr/nec ;then
13410
lt_prog_compiler_pic_F77='-Kconform_pic'
13411
lt_prog_compiler_static_F77='-Bstatic'
13415
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13416
lt_prog_compiler_wl_F77='-Wl,'
13417
lt_prog_compiler_pic_F77='-KPIC'
13418
lt_prog_compiler_static_F77='-Bstatic'
13422
lt_prog_compiler_wl_F77='-Wl,'
13423
lt_prog_compiler_can_build_shared_F77=no
13427
lt_prog_compiler_pic_F77='-pic'
13428
lt_prog_compiler_static_F77='-Bstatic'
13432
lt_prog_compiler_can_build_shared_F77=no
13437
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13438
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13441
# Check to make sure the PIC flag actually works.
13443
if test -n "$lt_prog_compiler_pic_F77"; then
13445
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13446
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13447
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13448
echo $ECHO_N "(cached) $ECHO_C" >&6
13450
lt_prog_compiler_pic_works_F77=no
13451
ac_outfile=conftest.$ac_objext
13452
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13453
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13454
# Insert the option either (1) after the last *FLAGS variable, or
13455
# (2) before a word containing "conftest.", or (3) at the end.
13456
# Note that $ac_compile itself does not contain backslashes and begins
13457
# with a dollar sign (not a hyphen), so the echo should work correctly.
13458
# The option is referenced via a variable to avoid confusing sed.
13459
lt_compile=`echo "$ac_compile" | $SED \
13460
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13461
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462
-e 's:$: $lt_compiler_flag:'`
13463
(eval echo "\"\$as_me:13463: $lt_compile\"" >&5)
13464
(eval "$lt_compile" 2>conftest.err)
13466
cat conftest.err >&5
13467
echo "$as_me:13467: \$? = $ac_status" >&5
13468
if (exit $ac_status) && test -s "$ac_outfile"; then
13469
# The compiler can only warn and ignore the option if not recognized
13470
# So say no if there are warnings other than the usual output.
13471
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13472
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13473
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13474
lt_prog_compiler_pic_works_F77=yes
13480
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13481
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13483
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13484
case $lt_prog_compiler_pic_F77 in
13486
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13489
lt_prog_compiler_pic_F77=
13490
lt_prog_compiler_can_build_shared_F77=no
13495
# For platforms which do not support PIC, -DPIC is meaningless:
13497
lt_prog_compiler_pic_F77=
13500
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13505
# Check to make sure the static flag actually works.
13507
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13508
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13509
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13510
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13511
echo $ECHO_N "(cached) $ECHO_C" >&6
13513
lt_prog_compiler_static_works_F77=no
13514
save_LDFLAGS="$LDFLAGS"
13515
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13516
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13517
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13518
# The linker can only warn and ignore the option if not recognized
13519
# So say no if there are warnings
13520
if test -s conftest.err; then
13521
# Append any errors to the config.log.
13522
cat conftest.err 1>&5
13523
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13524
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13525
if diff conftest.exp conftest.er2 >/dev/null; then
13526
lt_prog_compiler_static_works_F77=yes
13529
lt_prog_compiler_static_works_F77=yes
13533
LDFLAGS="$save_LDFLAGS"
13536
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13537
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13539
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13542
lt_prog_compiler_static_F77=
13546
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13547
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13548
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13549
echo $ECHO_N "(cached) $ECHO_C" >&6
13551
lt_cv_prog_compiler_c_o_F77=no
13552
$rm -r conftest 2>/dev/null
13556
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13558
lt_compiler_flag="-o out/conftest2.$ac_objext"
13559
# Insert the option either (1) after the last *FLAGS variable, or
13560
# (2) before a word containing "conftest.", or (3) at the end.
13561
# Note that $ac_compile itself does not contain backslashes and begins
13562
# with a dollar sign (not a hyphen), so the echo should work correctly.
13563
lt_compile=`echo "$ac_compile" | $SED \
13564
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13565
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13566
-e 's:$: $lt_compiler_flag:'`
13567
(eval echo "\"\$as_me:13567: $lt_compile\"" >&5)
13568
(eval "$lt_compile" 2>out/conftest.err)
13570
cat out/conftest.err >&5
13571
echo "$as_me:13571: \$? = $ac_status" >&5
13572
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13574
# The compiler can only warn and ignore the option if not recognized
13575
# So say no if there are warnings
13576
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13577
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13578
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13579
lt_cv_prog_compiler_c_o_F77=yes
13584
# SGI C++ compiler will create directory out/ii_files/ for
13585
# template instantiation
13586
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13587
$rm out/* && rmdir out
13593
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13594
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13597
hard_links="nottested"
13598
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13599
# do not overwrite the value of need_locks provided by the user
13600
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13601
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13604
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13606
ln conftest.a conftest.b 2>&5 || hard_links=no
13607
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13608
echo "$as_me:$LINENO: result: $hard_links" >&5
13609
echo "${ECHO_T}$hard_links" >&6
13610
if test "$hard_links" = no; then
13611
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13612
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13619
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13620
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13623
allow_undefined_flag_F77=
13624
enable_shared_with_static_runtimes_F77=no
13626
archive_expsym_cmds_F77=
13627
old_archive_From_new_cmds_F77=
13628
old_archive_from_expsyms_cmds_F77=
13629
export_dynamic_flag_spec_F77=
13630
whole_archive_flag_spec_F77=
13631
thread_safe_flag_spec_F77=
13632
hardcode_libdir_flag_spec_F77=
13633
hardcode_libdir_flag_spec_ld_F77=
13634
hardcode_libdir_separator_F77=
13635
hardcode_direct_F77=no
13636
hardcode_minus_L_F77=no
13637
hardcode_shlibpath_var_F77=unsupported
13638
link_all_deplibs_F77=unknown
13639
hardcode_automatic_F77=no
13641
module_expsym_cmds_F77=
13642
always_export_symbols_F77=no
13643
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13644
# include_expsyms should be a list of space-separated symbols to be *always*
13645
# included in the symbol list
13646
include_expsyms_F77=
13647
# exclude_expsyms can be an extended regexp of symbols to exclude
13648
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13649
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13650
# as well as any symbol that contains `d'.
13651
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13652
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13653
# platforms (ab)use it in PIC code, but their linkers get confused if
13654
# the symbol is explicitly referenced. Since portable code cannot
13655
# rely on this symbol name, it's probably fine to never include it in
13656
# preloaded symbol tables.
13657
extract_expsyms_cmds=
13658
# Just being paranoid about ensuring that cc_basename is set.
13659
for cc_temp in $compiler""; do
13661
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13662
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13667
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13670
cygwin* | mingw* | pw32*)
13671
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13672
# When not using gcc, we currently assume that we are using
13673
# Microsoft Visual C++.
13674
if test "$GCC" != yes; then
13679
# we just hope/assume this is gcc and not c89 (= MSVC++)
13688
if test "$with_gnu_ld" = yes; then
13689
# If archive_cmds runs LD, not CC, wlarc should be empty
13692
# Set some defaults for GNU ld with shared library support. These
13693
# are reset later if shared libraries are not supported. Putting them
13694
# here allows them to be overridden if necessary.
13695
runpath_var=LD_RUN_PATH
13696
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13697
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13698
# ancient GNU ld didn't support --whole-archive et. al.
13699
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13700
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13702
whole_archive_flag_spec_F77=
13704
supports_anon_versioning=no
13705
case `$LD -v 2>/dev/null` in
13706
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13707
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13708
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13709
*\ 2.11.*) ;; # other 2.11 versions
13710
*) supports_anon_versioning=yes ;;
13713
# See if GNU ld supports shared libraries.
13715
aix3* | aix4* | aix5*)
13716
# On AIX/PPC, the GNU linker is very broken
13717
if test "$host_cpu" != ia64; then
13721
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13722
*** to be unable to reliably create shared libraries on AIX.
13723
*** Therefore, libtool is disabling shared libraries support. If you
13724
*** really care for shared libraries, you may want to modify your PATH
13725
*** so that a non-GNU linker is found, and then restart.
13732
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)'
13733
hardcode_libdir_flag_spec_F77='-L$libdir'
13734
hardcode_minus_L_F77=yes
13736
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13737
# that the semantics of dynamic libraries on AmigaOS, at least up
13738
# to version 4, is to share data among multiple programs linked
13739
# with the same dynamic library. Since this doesn't match the
13740
# behavior of shared libraries on other platforms, we can't use
13746
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13747
allow_undefined_flag_F77=unsupported
13748
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13749
# support --undefined. This deserves some investigation. FIXME
13750
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756
cygwin* | mingw* | pw32*)
13757
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13758
# as there is no search path for DLLs.
13759
hardcode_libdir_flag_spec_F77='-L$libdir'
13760
allow_undefined_flag_F77=unsupported
13761
always_export_symbols_F77=no
13762
enable_shared_with_static_runtimes_F77=yes
13763
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13765
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13766
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13767
# If the export-symbols file already is a .def file (1st line
13768
# is EXPORTS), use it as is; otherwise, prepend...
13769
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13770
cp $export_symbols $output_objdir/$soname.def;
13772
echo EXPORTS > $output_objdir/$soname.def;
13773
cat $export_symbols >> $output_objdir/$soname.def;
13775
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13782
hardcode_direct_F77=no
13783
hardcode_shlibpath_var_F77=no
13784
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13785
export_dynamic_flag_spec_F77='${wl}-E'
13786
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13787
# Instead, shared libraries are loaded at an image base (0x10000000 by
13788
# default) and relocated if they conflict, which is a slow very memory
13789
# consuming and fragmenting process. To avoid this, we pick a random,
13790
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13791
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13792
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13793
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13797
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13799
case $cc_basename,$host_cpu in
13800
pgcc*) # Portland Group C compiler
13801
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'
13802
tmp_addflag=' $pic_flag'
13804
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13805
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'
13806
tmp_addflag=' $pic_flag -Mnomain' ;;
13807
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13808
tmp_addflag=' -i_dynamic' ;;
13809
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13810
tmp_addflag=' -i_dynamic -nofor_main' ;;
13811
ifc* | ifort*) # Intel Fortran compiler
13812
tmp_addflag=' -nofor_main' ;;
13814
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816
if test $supports_anon_versioning = yes; then
13817
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13818
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13819
$echo "local: *; };" >> $output_objdir/$libname.ver~
13820
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13822
link_all_deplibs_F77=no
13828
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13829
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13830
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13833
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13839
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13843
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13844
*** create shared libraries on Solaris systems. Therefore, libtool
13845
*** is disabling shared libraries support. We urge you to upgrade GNU
13846
*** binutils to release 2.9.1 or newer. Another option is to modify
13847
*** your PATH or compiler configuration so that the native linker is
13848
*** used, and then restart.
13851
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13852
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13853
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13859
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13860
case `$LD -v 2>&1` in
13861
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13865
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13866
*** reliably create shared libraries on SCO systems. Therefore, libtool
13867
*** is disabling shared libraries support. We urge you to upgrade GNU
13868
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13869
*** your PATH or compiler configuration so that the native linker is
13870
*** used, and then restart.
13875
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13876
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13877
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13878
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13887
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13889
hardcode_direct_F77=yes
13890
hardcode_shlibpath_var_F77=no
13894
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13895
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13896
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903
if test "$ld_shlibs_F77" = no; then
13905
hardcode_libdir_flag_spec_F77=
13906
export_dynamic_flag_spec_F77=
13907
whole_archive_flag_spec_F77=
13910
# PORTME fill in a description of your system's linker (not GNU ld)
13913
allow_undefined_flag_F77=unsupported
13914
always_export_symbols_F77=yes
13915
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'
13916
# Note: this linker hardcodes the directories in LIBPATH if there
13917
# are no directories specified by -L.
13918
hardcode_minus_L_F77=yes
13919
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13920
# Neither direct hardcoding nor static linking is supported with a
13922
hardcode_direct_F77=unsupported
13927
if test "$host_cpu" = ia64; then
13928
# On IA64, the linker does run time linking by default, so we don't
13929
# have to do anything special.
13930
aix_use_runtimelinking=no
13931
exp_sym_flag='-Bexport'
13934
# If we're using GNU nm, then we don't want the "-C" option.
13935
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13936
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13937
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'
13939
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'
13941
aix_use_runtimelinking=no
13943
# Test if we are trying to use run time linking or normal
13944
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13945
# need to do runtime linking.
13946
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13947
for ld_flag in $LDFLAGS; do
13948
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13949
aix_use_runtimelinking=yes
13956
exp_sym_flag='-bexport'
13957
no_entry_flag='-bnoentry'
13960
# When large executables or shared objects are built, AIX ld can
13961
# have problems creating the table of contents. If linking a library
13962
# or program results in "error TOC overflow" add -mminimal-toc to
13963
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13964
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13966
archive_cmds_F77=''
13967
hardcode_direct_F77=yes
13968
hardcode_libdir_separator_F77=':'
13969
link_all_deplibs_F77=yes
13971
if test "$GCC" = yes; then
13972
case $host_os in aix4.[012]|aix4.[012].*)
13973
# We only want to do this on AIX 4.2 and lower, the check
13974
# below for broken collect2 doesn't work under 4.3+
13975
collect2name=`${CC} -print-prog-name=collect2`
13976
if test -f "$collect2name" && \
13977
strings "$collect2name" | grep resolve_lib_name >/dev/null
13979
# We have reworked collect2
13980
hardcode_direct_F77=yes
13982
# We have old collect2
13983
hardcode_direct_F77=unsupported
13984
# It fails to find uninstalled libraries when the uninstalled
13985
# path is not listed in the libpath. Setting hardcode_minus_L
13986
# to unsupported forces relinking
13987
hardcode_minus_L_F77=yes
13988
hardcode_libdir_flag_spec_F77='-L$libdir'
13989
hardcode_libdir_separator_F77=
13993
shared_flag='-shared'
13994
if test "$aix_use_runtimelinking" = yes; then
13995
shared_flag="$shared_flag "'${wl}-G'
13999
if test "$host_cpu" = ia64; then
14000
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14001
# chokes on -Wl,-G. The following line is correct:
14004
if test "$aix_use_runtimelinking" = yes; then
14005
shared_flag='${wl}-G'
14007
shared_flag='${wl}-bM:SRE'
14012
# It seems that -bexpall does not export symbols beginning with
14013
# underscore (_), so it is better to generate a list of symbols to export.
14014
always_export_symbols_F77=yes
14015
if test "$aix_use_runtimelinking" = yes; then
14016
# Warning - without using the other runtime loading flags (-brtl),
14017
# -berok will link without error, but may produce a broken library.
14018
allow_undefined_flag_F77='-berok'
14019
# Determine the default libpath from the value encoded in an empty executable.
14020
cat >conftest.$ac_ext <<_ACEOF
14025
rm -f conftest.$ac_objext conftest$ac_exeext
14026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027
(eval $ac_link) 2>conftest.er1
14029
grep -v '^ *+' conftest.er1 >conftest.err
14031
cat conftest.err >&5
14032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033
(exit $ac_status); } &&
14034
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14035
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036
(eval $ac_try) 2>&5
14038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039
(exit $ac_status); }; } &&
14040
{ ac_try='test -s conftest$ac_exeext'
14041
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042
(eval $ac_try) 2>&5
14044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045
(exit $ac_status); }; }; then
14047
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14049
# Check for a 64-bit object if we didn't find anything.
14050
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; }
14053
echo "$as_me: failed program was:" >&5
14054
sed 's/^/| /' conftest.$ac_ext >&5
14057
rm -f conftest.err conftest.$ac_objext \
14058
conftest$ac_exeext conftest.$ac_ext
14059
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14061
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14062
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14064
if test "$host_cpu" = ia64; then
14065
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14066
allow_undefined_flag_F77="-z nodefs"
14067
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14069
# Determine the default libpath from the value encoded in an empty executable.
14070
cat >conftest.$ac_ext <<_ACEOF
14075
rm -f conftest.$ac_objext conftest$ac_exeext
14076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077
(eval $ac_link) 2>conftest.er1
14079
grep -v '^ *+' conftest.er1 >conftest.err
14081
cat conftest.err >&5
14082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083
(exit $ac_status); } &&
14084
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086
(eval $ac_try) 2>&5
14088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089
(exit $ac_status); }; } &&
14090
{ ac_try='test -s conftest$ac_exeext'
14091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092
(eval $ac_try) 2>&5
14094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095
(exit $ac_status); }; }; then
14097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14099
# Check for a 64-bit object if we didn't find anything.
14100
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; }
14103
echo "$as_me: failed program was:" >&5
14104
sed 's/^/| /' conftest.$ac_ext >&5
14107
rm -f conftest.err conftest.$ac_objext \
14108
conftest$ac_exeext conftest.$ac_ext
14109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14111
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14112
# Warning - without using the other run time loading flags,
14113
# -berok will link without error, but may produce a broken library.
14114
no_undefined_flag_F77=' ${wl}-bernotok'
14115
allow_undefined_flag_F77=' ${wl}-berok'
14116
# Exported symbols can be pulled into shared objects from archives
14117
whole_archive_flag_spec_F77='$convenience'
14118
archive_cmds_need_lc_F77=yes
14119
# This is similar to how AIX traditionally builds its shared libraries.
14120
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14126
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)'
14127
hardcode_libdir_flag_spec_F77='-L$libdir'
14128
hardcode_minus_L_F77=yes
14129
# see comment about different semantics on the GNU ld section
14134
export_dynamic_flag_spec_F77=-rdynamic
14137
cygwin* | mingw* | pw32*)
14138
# When not using gcc, we currently assume that we are using
14139
# Microsoft Visual C++.
14140
# hardcode_libdir_flag_spec is actually meaningless, as there is
14141
# no search path for DLLs.
14142
hardcode_libdir_flag_spec_F77=' '
14143
allow_undefined_flag_F77=unsupported
14144
# Tell ltmain to make .lib files, not .a files.
14146
# Tell ltmain to make .dll files, not .so files.
14148
# FIXME: Setting linknames here is a bad hack.
14149
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14150
# The linker will automatically build a .lib file if we build a DLL.
14151
old_archive_From_new_cmds_F77='true'
14152
# FIXME: Should let the user specify the lib program.
14153
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14154
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14155
enable_shared_with_static_runtimes_F77=yes
14158
darwin* | rhapsody*)
14160
rhapsody* | darwin1.[012])
14161
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14164
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14165
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14167
case ${MACOSX_DEPLOYMENT_TARGET} in
14169
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14172
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14178
archive_cmds_need_lc_F77=no
14179
hardcode_direct_F77=no
14180
hardcode_automatic_F77=yes
14181
hardcode_shlibpath_var_F77=unsupported
14182
whole_archive_flag_spec_F77=''
14183
link_all_deplibs_F77=yes
14184
if test "$GCC" = yes ; then
14185
output_verbose_link_cmd='echo'
14186
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14187
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14188
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14189
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}'
14190
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}'
14192
case $cc_basename in
14194
output_verbose_link_cmd='echo'
14195
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14196
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14197
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14198
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}'
14199
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}'
14209
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14210
hardcode_libdir_flag_spec_F77='-L$libdir'
14211
hardcode_shlibpath_var_F77=no
14218
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14219
# support. Future versions do this automatically, but an explicit c++rt0.o
14220
# does not break anything, and helps significantly (at the cost of a little
14223
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14224
hardcode_libdir_flag_spec_F77='-R$libdir'
14225
hardcode_direct_F77=yes
14226
hardcode_shlibpath_var_F77=no
14229
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14231
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14232
hardcode_direct_F77=yes
14233
hardcode_minus_L_F77=yes
14234
hardcode_shlibpath_var_F77=no
14237
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14238
freebsd* | dragonfly*)
14239
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14240
hardcode_libdir_flag_spec_F77='-R$libdir'
14241
hardcode_direct_F77=yes
14242
hardcode_shlibpath_var_F77=no
14245
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
14247
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14248
hardcode_libdir_flag_spec_F77='-R$libdir'
14249
hardcode_direct_F77=yes
14250
hardcode_shlibpath_var_F77=no
14251
link_all_deplibs_F77=no
14255
if test "$GCC" = yes; then
14256
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'
14258
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'
14260
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14261
hardcode_libdir_separator_F77=:
14262
hardcode_direct_F77=yes
14264
# hardcode_minus_L: Not really in the search PATH,
14265
# but as the default location of the library.
14266
hardcode_minus_L_F77=yes
14267
export_dynamic_flag_spec_F77='${wl}-E'
14271
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14272
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14274
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14276
if test "$with_gnu_ld" = no; then
14277
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14278
hardcode_libdir_separator_F77=:
14280
hardcode_direct_F77=yes
14281
export_dynamic_flag_spec_F77='${wl}-E'
14283
# hardcode_minus_L: Not really in the search PATH,
14284
# but as the default location of the library.
14285
hardcode_minus_L_F77=yes
14290
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14293
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14296
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14299
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14305
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14311
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14315
if test "$with_gnu_ld" = no; then
14316
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14317
hardcode_libdir_separator_F77=:
14321
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14322
hardcode_direct_F77=no
14323
hardcode_shlibpath_var_F77=no
14326
hardcode_direct_F77=yes
14327
export_dynamic_flag_spec_F77='${wl}-E'
14329
# hardcode_minus_L: Not really in the search PATH,
14330
# but as the default location of the library.
14331
hardcode_minus_L_F77=yes
14337
irix5* | irix6* | nonstopux*)
14338
if test "$GCC" = yes; then
14339
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'
14341
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'
14342
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14344
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14345
hardcode_libdir_separator_F77=:
14346
link_all_deplibs_F77=yes
14349
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14350
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14351
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14353
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14355
hardcode_libdir_flag_spec_F77='-R$libdir'
14356
hardcode_direct_F77=yes
14357
hardcode_shlibpath_var_F77=no
14361
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362
hardcode_direct_F77=yes
14363
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14364
hardcode_libdir_separator_F77=:
14365
hardcode_shlibpath_var_F77=no
14369
hardcode_direct_F77=yes
14370
hardcode_shlibpath_var_F77=no
14371
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14372
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14373
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14374
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14375
export_dynamic_flag_spec_F77='${wl}-E'
14378
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14379
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14380
hardcode_libdir_flag_spec_F77='-R$libdir'
14383
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14384
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14391
hardcode_libdir_flag_spec_F77='-L$libdir'
14392
hardcode_minus_L_F77=yes
14393
allow_undefined_flag_F77=unsupported
14394
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'
14395
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14399
if test "$GCC" = yes; then
14400
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14401
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'
14403
allow_undefined_flag_F77=' -expect_unresolved \*'
14404
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'
14406
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14407
hardcode_libdir_separator_F77=:
14410
osf4* | osf5*) # as osf3* with the addition of -msym flag
14411
if test "$GCC" = yes; then
14412
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14413
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'
14414
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14416
allow_undefined_flag_F77=' -expect_unresolved \*'
14417
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'
14418
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~
14419
$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'
14421
# Both c and cxx compiler support -rpath directly
14422
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14424
hardcode_libdir_separator_F77=:
14428
no_undefined_flag_F77=' -z text'
14429
if test "$GCC" = yes; then
14431
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14432
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14433
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14436
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14437
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14438
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14440
hardcode_libdir_flag_spec_F77='-R$libdir'
14441
hardcode_shlibpath_var_F77=no
14443
solaris2.[0-5] | solaris2.[0-5].*) ;;
14445
# The compiler driver will combine linker options so we
14446
# cannot just pass the convience library names through
14447
# without $wl, iff we do not link with $LD.
14448
# Luckily, gcc supports the same syntax we need for Sun Studio.
14449
# Supported since Solaris 2.6 (maybe 2.5.1?)
14452
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14454
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' ;;
14457
link_all_deplibs_F77=yes
14461
if test "x$host_vendor" = xsequent; then
14462
# Use $CC to link under sequent, because it throws in some extra .o
14463
# files that make .init and .fini sections work.
14464
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14466
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14468
hardcode_libdir_flag_spec_F77='-L$libdir'
14469
hardcode_direct_F77=yes
14470
hardcode_minus_L_F77=yes
14471
hardcode_shlibpath_var_F77=no
14475
case $host_vendor in
14477
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14478
hardcode_direct_F77=yes # is this really true???
14481
## LD is ld it makes a PLAMLIB
14482
## CC just makes a GrossModule.
14483
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14484
reload_cmds_F77='$CC -r -o $output$reload_objs'
14485
hardcode_direct_F77=no
14488
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14489
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14492
runpath_var='LD_RUN_PATH'
14493
hardcode_shlibpath_var_F77=no
14497
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498
hardcode_shlibpath_var_F77=no
14499
export_dynamic_flag_spec_F77='-Bexport'
14503
if test -d /usr/nec; then
14504
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14505
hardcode_shlibpath_var_F77=no
14506
runpath_var=LD_RUN_PATH
14507
hardcode_runpath_var=yes
14512
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14513
no_undefined_flag_F77='${wl}-z,text'
14514
archive_cmds_need_lc_F77=no
14515
hardcode_shlibpath_var_F77=no
14516
runpath_var='LD_RUN_PATH'
14518
if test "$GCC" = yes; then
14519
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14520
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14523
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527
sysv5* | sco3.2v5* | sco5v6*)
14528
# Note: We can NOT use -z defs as we might desire, because we do not
14529
# link with -lc, and that would cause any symbols used from libc to
14530
# always be unresolved, which means just about no library would
14531
# ever link correctly. If we're not using GNU ld we use -z text
14532
# though, which does catch some bad symbols but isn't as heavy-handed
14534
no_undefined_flag_F77='${wl}-z,text'
14535
allow_undefined_flag_F77='${wl}-z,nodefs'
14536
archive_cmds_need_lc_F77=no
14537
hardcode_shlibpath_var_F77=no
14538
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14539
hardcode_libdir_separator_F77=':'
14540
link_all_deplibs_F77=yes
14541
export_dynamic_flag_spec_F77='${wl}-Bexport'
14542
runpath_var='LD_RUN_PATH'
14544
if test "$GCC" = yes; then
14545
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14546
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14548
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14549
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14554
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14555
hardcode_libdir_flag_spec_F77='-L$libdir'
14556
hardcode_shlibpath_var_F77=no
14565
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14566
echo "${ECHO_T}$ld_shlibs_F77" >&6
14567
test "$ld_shlibs_F77" = no && can_build_shared=no
14570
# Do we need to explicitly link libc?
14572
case "x$archive_cmds_need_lc_F77" in
14574
# Assume -lc should be added
14575
archive_cmds_need_lc_F77=yes
14577
if test "$enable_shared" = yes && test "$GCC" = yes; then
14578
case $archive_cmds_F77 in
14580
# FIXME: we may have to deal with multi-command sequences.
14583
# Test whether the compiler implicitly links with -lc since on some
14584
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14585
# to ld, don't add -lc before -lgcc.
14586
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14587
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14589
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14591
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592
(eval $ac_compile) 2>&5
14594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595
(exit $ac_status); } 2>conftest.err; then
14598
libobjs=conftest.$ac_objext
14600
wl=$lt_prog_compiler_wl_F77
14601
pic_flag=$lt_prog_compiler_pic_F77
14607
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14608
allow_undefined_flag_F77=
14609
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14610
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613
(exit $ac_status); }
14615
archive_cmds_need_lc_F77=no
14617
archive_cmds_need_lc_F77=yes
14619
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14621
cat conftest.err 1>&5
14624
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14625
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14632
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14633
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14634
library_names_spec=
14635
libname_spec='lib$name'
14639
postuninstall_cmds=
14643
shlibpath_overrides_runpath=unknown
14645
dynamic_linker="$host_os ld.so"
14646
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14647
if test "$GCC" = yes; then
14648
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14649
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14650
# if the path contains ";" then we assume it to be the separator
14651
# otherwise default to the standard path separator (i.e. ":") - it is
14652
# assumed that no part of a normal pathname contains ";" but that should
14653
# okay in the real world where ";" in dirpaths is itself problematic.
14654
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14656
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14659
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14661
need_lib_prefix=unknown
14662
hardcode_into_libs=no
14664
# when you set need_version to no, make sure it does not cause -set_version
14665
# flags to be left without arguments
14666
need_version=unknown
14671
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14672
shlibpath_var=LIBPATH
14674
# AIX 3 has no versioning support, so we append a major version to the name.
14675
soname_spec='${libname}${release}${shared_ext}$major'
14682
hardcode_into_libs=yes
14683
if test "$host_cpu" = ia64; then
14684
# AIX 5 supports IA64
14685
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14686
shlibpath_var=LD_LIBRARY_PATH
14688
# With GCC up to 2.95.x, collect2 would create an import file
14689
# for dependence libraries. The import file would start with
14690
# the line `#! .'. This would cause the generated library to
14691
# depend on `.', always an invalid library. This was fixed in
14692
# development snapshots of GCC prior to 3.0.
14694
aix4 | aix4.[01] | aix4.[01].*)
14695
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14697
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14700
can_build_shared=no
14704
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14705
# soname into executable. Probably we can add versioning support to
14706
# collect2, so additional links can be useful in future.
14707
if test "$aix_use_runtimelinking" = yes; then
14708
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14709
# instead of lib<name>.a to let people know that these are not
14710
# typical AIX shared libraries.
14711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713
# We preserve .a as extension for shared libraries through AIX4.2
14714
# and later when we are not doing run time linking.
14715
library_names_spec='${libname}${release}.a $libname.a'
14716
soname_spec='${libname}${release}${shared_ext}$major'
14718
shlibpath_var=LIBPATH
14723
library_names_spec='$libname.ixlibrary $libname.a'
14724
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14725
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'
14729
library_names_spec='${libname}${shared_ext}'
14730
dynamic_linker="$host_os ld.so"
14731
shlibpath_var=LIBRARY_PATH
14737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738
soname_spec='${libname}${release}${shared_ext}$major'
14739
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14740
shlibpath_var=LD_LIBRARY_PATH
14741
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14742
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14743
# the default ld.so.conf also contains /usr/contrib/lib and
14744
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14745
# libtool to hard-code these into programs
14748
cygwin* | mingw* | pw32*)
14749
version_type=windows
14754
case $GCC,$host_os in
14755
yes,cygwin* | yes,mingw* | yes,pw32*)
14756
library_names_spec='$libname.dll.a'
14757
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14758
postinstall_cmds='base_file=`basename \${file}`~
14759
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14760
dldir=$destdir/`dirname \$dlpath`~
14761
test -d \$dldir || mkdir -p \$dldir~
14762
$install_prog $dir/$dlname \$dldir/$dlname~
14763
chmod a+x \$dldir/$dlname'
14764
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14765
dlpath=$dir/\$dldll~
14767
shlibpath_overrides_runpath=yes
14771
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14772
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14773
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14776
# MinGW DLLs use traditional 'lib' prefix
14777
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14779
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14780
# It is most probably a Windows format PATH printed by
14781
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14782
# path with ; separators, and with drive letters. We can handle the
14783
# drive letters (cygwin fileutils understands them), so leave them,
14784
# especially as we might pass files found there to a mingw objdump,
14785
# which wouldn't understand a cygwinified path. Ahh.
14786
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14788
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14792
# pw32 DLLs use 'pw' prefix rather than 'lib'
14793
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14799
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14802
dynamic_linker='Win32 ld.exe'
14803
# FIXME: first we should search . and the directory the executable is in
14807
darwin* | rhapsody*)
14808
dynamic_linker="$host_os dyld"
14809
version_type=darwin
14812
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14813
soname_spec='${libname}${release}${major}$shared_ext'
14814
shlibpath_overrides_runpath=yes
14815
shlibpath_var=DYLD_LIBRARY_PATH
14816
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14817
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14818
if test "$GCC" = yes; then
14819
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"`
14821
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14823
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14831
soname_spec='${libname}${release}${shared_ext}$major'
14832
shlibpath_var=LD_LIBRARY_PATH
14843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14844
soname_spec='${libname}${release}${shared_ext}$major'
14845
shlibpath_var=LD_LIBRARY_PATH
14846
shlibpath_overrides_runpath=no
14847
hardcode_into_libs=yes
14848
dynamic_linker='GNU ld.so'
14851
freebsd* | dragonfly*)
14852
# DragonFly does not have aout. When/if they implement a new
14853
# versioning mechanism, adjust this.
14854
if test -x /usr/bin/objformat; then
14855
objformat=`/usr/bin/objformat`
14858
freebsd[123]*) objformat=aout ;;
14859
*) objformat=elf ;;
14862
version_type=freebsd-$objformat
14863
case $version_type in
14865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14870
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14874
shlibpath_var=LD_LIBRARY_PATH
14877
shlibpath_overrides_runpath=yes
14879
freebsd3.[01]* | freebsdelf3.[01]*)
14880
shlibpath_overrides_runpath=yes
14881
hardcode_into_libs=yes
14883
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14884
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14885
shlibpath_overrides_runpath=no
14886
hardcode_into_libs=yes
14888
freebsd*) # from 4.6 on
14889
shlibpath_overrides_runpath=yes
14890
hardcode_into_libs=yes
14899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14900
soname_spec='${libname}${release}${shared_ext}$major'
14901
shlibpath_var=LD_LIBRARY_PATH
14902
hardcode_into_libs=yes
14905
hpux9* | hpux10* | hpux11*)
14906
# Give a soname corresponding to the major version so that dld.sl refuses to
14907
# link against other versions.
14914
hardcode_into_libs=yes
14915
dynamic_linker="$host_os dld.so"
14916
shlibpath_var=LD_LIBRARY_PATH
14917
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919
soname_spec='${libname}${release}${shared_ext}$major'
14920
if test "X$HPUX_IA64_MODE" = X32; then
14921
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14923
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14925
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14929
hardcode_into_libs=yes
14930
dynamic_linker="$host_os dld.sl"
14931
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14932
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934
soname_spec='${libname}${release}${shared_ext}$major'
14935
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14936
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14940
dynamic_linker="$host_os dld.sl"
14941
shlibpath_var=SHLIB_PATH
14942
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944
soname_spec='${libname}${release}${shared_ext}$major'
14947
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14948
postinstall_cmds='chmod 555 $lib'
14955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14956
soname_spec='${libname}${release}${shared_ext}$major'
14957
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14958
shlibpath_var=LD_LIBRARY_PATH
14959
shlibpath_overrides_runpath=no
14960
hardcode_into_libs=yes
14963
irix5* | irix6* | nonstopux*)
14965
nonstopux*) version_type=nonstopux ;;
14967
if test "$lt_cv_prog_gnu_ld" = yes; then
14975
soname_spec='${libname}${release}${shared_ext}$major'
14976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14978
irix5* | nonstopux*)
14979
libsuff= shlibsuff=
14982
case $LD in # libtool.m4 will add one of these switches to LD
14983
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14984
libsuff= shlibsuff= libmagic=32-bit;;
14985
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14986
libsuff=32 shlibsuff=N32 libmagic=N32;;
14987
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14988
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14989
*) libsuff= shlibsuff= libmagic=never-match;;
14993
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14994
shlibpath_overrides_runpath=no
14995
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14996
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14997
hardcode_into_libs=yes
15000
# No shared lib support for Linux oldld, aout, or coff.
15001
linux*oldld* | linux*aout* | linux*coff*)
15005
# This must be Linux ELF.
15010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011
soname_spec='${libname}${release}${shared_ext}$major'
15012
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15013
shlibpath_var=LD_LIBRARY_PATH
15014
shlibpath_overrides_runpath=no
15015
# This implies no fast_install, which is unacceptable.
15016
# Some rework will be needed to allow for fast_install
15017
# before this can be enabled.
15018
hardcode_into_libs=yes
15020
# Append ld.so.conf contents to the search path
15021
if test -f /etc/ld.so.conf; then
15022
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' ' '`
15023
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15026
# We used to test for /lib/ld.so.1 and disable shared libraries on
15027
# powerpc, because MkLinux only supported shared libraries with the
15028
# GNU dynamic linker. Since this was broken with cross compilers,
15029
# most powerpc-linux boxes support dynamic linking these days and
15030
# people can always --disable-shared, the test was removed, and we
15031
# assume the GNU/Linux dynamic linker is in use.
15032
dynamic_linker='GNU/Linux ld.so'
15039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15040
soname_spec='${libname}${release}${shared_ext}$major'
15041
shlibpath_var=LD_LIBRARY_PATH
15042
shlibpath_overrides_runpath=no
15043
hardcode_into_libs=yes
15044
dynamic_linker='NetBSD ld.elf_so'
15051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15052
soname_spec='${libname}${release}${shared_ext}$major'
15053
shlibpath_var=LD_LIBRARY_PATH
15054
shlibpath_overrides_runpath=no
15055
hardcode_into_libs=yes
15056
dynamic_linker='GNU ld.so'
15063
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15065
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15066
dynamic_linker='NetBSD (a.out) ld.so'
15068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069
soname_spec='${libname}${release}${shared_ext}$major'
15070
dynamic_linker='NetBSD ld.elf_so'
15072
shlibpath_var=LD_LIBRARY_PATH
15073
shlibpath_overrides_runpath=yes
15074
hardcode_into_libs=yes
15079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080
shlibpath_var=LD_LIBRARY_PATH
15081
shlibpath_overrides_runpath=yes
15088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089
soname_spec='${libname}${release}${shared_ext}$major'
15090
shlibpath_var=LD_LIBRARY_PATH
15091
shlibpath_overrides_runpath=yes
15096
sys_lib_dlsearch_path_spec="/usr/lib"
15098
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15100
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15101
*) need_version=no ;;
15103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15104
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15105
shlibpath_var=LD_LIBRARY_PATH
15106
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15108
openbsd2.[89] | openbsd2.[89].*)
15109
shlibpath_overrides_runpath=no
15112
shlibpath_overrides_runpath=yes
15116
shlibpath_overrides_runpath=yes
15121
libname_spec='$name'
15124
library_names_spec='$libname${shared_ext} $libname.a'
15125
dynamic_linker='OS/2 ld.exe'
15126
shlibpath_var=LIBPATH
15129
osf3* | osf4* | osf5*)
15133
soname_spec='${libname}${release}${shared_ext}$major'
15134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135
shlibpath_var=LD_LIBRARY_PATH
15136
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15137
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145
soname_spec='${libname}${release}${shared_ext}$major'
15146
shlibpath_var=LD_LIBRARY_PATH
15147
shlibpath_overrides_runpath=yes
15148
hardcode_into_libs=yes
15149
# ldd complains unless libraries are executable
15150
postinstall_cmds='chmod +x $lib'
15155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15156
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15157
shlibpath_var=LD_LIBRARY_PATH
15158
shlibpath_overrides_runpath=yes
15159
if test "$with_gnu_ld" = yes; then
15167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168
soname_spec='${libname}${release}${shared_ext}$major'
15169
shlibpath_var=LD_LIBRARY_PATH
15170
case $host_vendor in
15172
shlibpath_overrides_runpath=no
15174
export_dynamic_flag_spec='${wl}-Blargedynsym'
15175
runpath_var=LD_RUN_PATH
15183
shlibpath_overrides_runpath=no
15184
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15190
if test -d /usr/nec ;then
15192
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15193
soname_spec='$libname${shared_ext}.$major'
15194
shlibpath_var=LD_LIBRARY_PATH
15198
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15199
version_type=freebsd-elf
15202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15203
soname_spec='${libname}${release}${shared_ext}$major'
15204
shlibpath_var=LD_LIBRARY_PATH
15205
hardcode_into_libs=yes
15206
if test "$with_gnu_ld" = yes; then
15207
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15208
shlibpath_overrides_runpath=no
15210
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15211
shlibpath_overrides_runpath=yes
15214
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15218
sys_lib_dlsearch_path_spec='/usr/lib'
15223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224
soname_spec='${libname}${release}${shared_ext}$major'
15225
shlibpath_var=LD_LIBRARY_PATH
15232
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15233
echo "${ECHO_T}$dynamic_linker" >&6
15234
test "$dynamic_linker" = no && can_build_shared=no
15236
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15237
if test "$GCC" = yes; then
15238
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15241
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15242
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15243
hardcode_action_F77=
15244
if test -n "$hardcode_libdir_flag_spec_F77" || \
15245
test -n "$runpath_var_F77" || \
15246
test "X$hardcode_automatic_F77" = "Xyes" ; then
15248
# We can hardcode non-existant directories.
15249
if test "$hardcode_direct_F77" != no &&
15250
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15251
# have to relink, otherwise we might link with an installed library
15252
# when we should be linking with a yet-to-be-installed one
15253
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15254
test "$hardcode_minus_L_F77" != no; then
15255
# Linking always hardcodes the temporary library directory.
15256
hardcode_action_F77=relink
15258
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15259
hardcode_action_F77=immediate
15262
# We cannot hardcode anything, or else we can only hardcode existing
15264
hardcode_action_F77=unsupported
15266
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15267
echo "${ECHO_T}$hardcode_action_F77" >&6
15269
if test "$hardcode_action_F77" = relink; then
15270
# Fast installation is not supported
15271
enable_fast_install=no
15272
elif test "$shlibpath_overrides_runpath" = yes ||
15273
test "$enable_shared" = no; then
15274
# Fast installation is not necessary
15275
enable_fast_install=needless
15279
# The else clause should only fire when bootstrapping the
15280
# libtool distribution, otherwise you forgot to ship ltmain.sh
15281
# with your package, and you will get complaints that there are
15282
# no rules to generate ltmain.sh.
15283
if test -f "$ltmain"; then
15284
# See if we are running on zsh, and set the options which allow our commands through
15285
# without removal of \ escapes.
15286
if test -n "${ZSH_VERSION+set}" ; then
15287
setopt NO_GLOB_SUBST
15289
# Now quote all the things that may contain metacharacters while being
15290
# careful not to overquote the AC_SUBSTed values. We take copies of the
15291
# variables and quote the copies for generation of the libtool script.
15292
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15294
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15295
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15296
deplibs_check_method reload_flag reload_cmds need_locks \
15297
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15298
lt_cv_sys_global_symbol_to_c_name_address \
15299
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15300
old_postinstall_cmds old_postuninstall_cmds \
15304
lt_prog_compiler_wl_F77 \
15305
lt_prog_compiler_pic_F77 \
15306
lt_prog_compiler_static_F77 \
15307
lt_prog_compiler_no_builtin_flag_F77 \
15308
export_dynamic_flag_spec_F77 \
15309
thread_safe_flag_spec_F77 \
15310
whole_archive_flag_spec_F77 \
15311
enable_shared_with_static_runtimes_F77 \
15312
old_archive_cmds_F77 \
15313
old_archive_from_new_cmds_F77 \
15314
predep_objects_F77 \
15315
postdep_objects_F77 \
15318
compiler_lib_search_path_F77 \
15320
archive_expsym_cmds_F77 \
15321
postinstall_cmds_F77 \
15322
postuninstall_cmds_F77 \
15323
old_archive_from_expsyms_cmds_F77 \
15324
allow_undefined_flag_F77 \
15325
no_undefined_flag_F77 \
15326
export_symbols_cmds_F77 \
15327
hardcode_libdir_flag_spec_F77 \
15328
hardcode_libdir_flag_spec_ld_F77 \
15329
hardcode_libdir_separator_F77 \
15330
hardcode_automatic_F77 \
15332
module_expsym_cmds_F77 \
15333
lt_cv_prog_compiler_c_o_F77 \
15334
exclude_expsyms_F77 \
15335
include_expsyms_F77; do
15338
old_archive_cmds_F77 | \
15339
old_archive_from_new_cmds_F77 | \
15340
archive_cmds_F77 | \
15341
archive_expsym_cmds_F77 | \
15342
module_cmds_F77 | \
15343
module_expsym_cmds_F77 | \
15344
old_archive_from_expsyms_cmds_F77 | \
15345
export_symbols_cmds_F77 | \
15346
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15347
postinstall_cmds | postuninstall_cmds | \
15348
old_postinstall_cmds | old_postuninstall_cmds | \
15349
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15350
# Double-quote double-evaled strings.
15351
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15354
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15360
*'\$0 --fallback-echo"')
15361
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15367
cat <<__EOF__ >> "$cfgfile"
15368
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15370
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15372
# Shell to use when invoking shell scripts.
15375
# Whether or not to build shared libraries.
15376
build_libtool_libs=$enable_shared
15378
# Whether or not to build static libraries.
15379
build_old_libs=$enable_static
15381
# Whether or not to add -lc for building shared libraries.
15382
build_libtool_need_lc=$archive_cmds_need_lc_F77
15384
# Whether or not to disallow shared libs when runtime libs are static
15385
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15387
# Whether or not to optimize for fast installation.
15388
fast_install=$enable_fast_install
15391
host_alias=$host_alias
15395
# The build system.
15396
build_alias=$build_alias
15400
# An echo program that does not interpret backslashes.
15405
AR_FLAGS=$lt_AR_FLAGS
15410
# LTCC compiler flags.
15411
LTCFLAGS=$lt_LTCFLAGS
15413
# A language-specific compiler.
15414
CC=$lt_compiler_F77
15416
# Is the compiler the GNU C compiler?
15422
# The linker used to build libraries.
15425
# Whether we need hard or soft links.
15428
# A BSD-compatible nm program.
15431
# A symbol stripping program
15434
# Used to examine libraries when file_magic_cmd begins "file"
15435
MAGIC_CMD=$MAGIC_CMD
15437
# Used on cygwin: DLL creation program.
15440
# Used on cygwin: object dumper.
15443
# Used on cygwin: assembler.
15446
# The name of the directory that contains temporary libtool files.
15449
# How to create reloadable object files.
15450
reload_flag=$lt_reload_flag
15451
reload_cmds=$lt_reload_cmds
15453
# How to pass a linker flag through the compiler.
15454
wl=$lt_lt_prog_compiler_wl_F77
15456
# Object file suffix (normally "o").
15457
objext="$ac_objext"
15459
# Old archive suffix (normally "a").
15462
# Shared library suffix (normally ".so").
15463
shrext_cmds='$shrext_cmds'
15465
# Executable file suffix (normally "").
15468
# Additional compiler flags for building library objects.
15469
pic_flag=$lt_lt_prog_compiler_pic_F77
15472
# What is the maximum length of a command?
15473
max_cmd_len=$lt_cv_sys_max_cmd_len
15475
# Does compiler simultaneously support -c and -o options?
15476
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15478
# Must we lock files when doing compilation?
15479
need_locks=$lt_need_locks
15481
# Do we need the lib prefix for modules?
15482
need_lib_prefix=$need_lib_prefix
15484
# Do we need a version for libraries?
15485
need_version=$need_version
15487
# Whether dlopen is supported.
15488
dlopen_support=$enable_dlopen
15490
# Whether dlopen of programs is supported.
15491
dlopen_self=$enable_dlopen_self
15493
# Whether dlopen of statically linked programs is supported.
15494
dlopen_self_static=$enable_dlopen_self_static
15496
# Compiler flag to prevent dynamic linking.
15497
link_static_flag=$lt_lt_prog_compiler_static_F77
15499
# Compiler flag to turn off builtin functions.
15500
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15502
# Compiler flag to allow reflexive dlopens.
15503
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15505
# Compiler flag to generate shared objects directly from archives.
15506
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15508
# Compiler flag to generate thread-safe objects.
15509
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15511
# Library versioning type.
15512
version_type=$version_type
15514
# Format of library name prefix.
15515
libname_spec=$lt_libname_spec
15517
# List of archive names. First name is the real one, the rest are links.
15518
# The last name is the one that the linker finds with -lNAME.
15519
library_names_spec=$lt_library_names_spec
15521
# The coded name of the library, if different from the real name.
15522
soname_spec=$lt_soname_spec
15524
# Commands used to build and install an old-style archive.
15526
old_archive_cmds=$lt_old_archive_cmds_F77
15527
old_postinstall_cmds=$lt_old_postinstall_cmds
15528
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15530
# Create an old-style archive from a shared archive.
15531
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15533
# Create a temporary old-style archive to link instead of a shared archive.
15534
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15536
# Commands used to build and install a shared archive.
15537
archive_cmds=$lt_archive_cmds_F77
15538
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15539
postinstall_cmds=$lt_postinstall_cmds
15540
postuninstall_cmds=$lt_postuninstall_cmds
15542
# Commands used to build a loadable module (assumed same as above if empty)
15543
module_cmds=$lt_module_cmds_F77
15544
module_expsym_cmds=$lt_module_expsym_cmds_F77
15546
# Commands to strip libraries.
15547
old_striplib=$lt_old_striplib
15548
striplib=$lt_striplib
15550
# Dependencies to place before the objects being linked to create a
15552
predep_objects=$lt_predep_objects_F77
15554
# Dependencies to place after the objects being linked to create a
15556
postdep_objects=$lt_postdep_objects_F77
15558
# Dependencies to place before the objects being linked to create a
15560
predeps=$lt_predeps_F77
15562
# Dependencies to place after the objects being linked to create a
15564
postdeps=$lt_postdeps_F77
15566
# The library search path used internally by the compiler when linking
15567
# a shared library.
15568
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15570
# Method to check whether dependent libraries are shared objects.
15571
deplibs_check_method=$lt_deplibs_check_method
15573
# Command to use when deplibs_check_method == file_magic.
15574
file_magic_cmd=$lt_file_magic_cmd
15576
# Flag that allows shared libraries with undefined symbols to be built.
15577
allow_undefined_flag=$lt_allow_undefined_flag_F77
15579
# Flag that forces no undefined symbols.
15580
no_undefined_flag=$lt_no_undefined_flag_F77
15582
# Commands used to finish a libtool library installation in a directory.
15583
finish_cmds=$lt_finish_cmds
15585
# Same as above, but a single script fragment to be evaled but not shown.
15586
finish_eval=$lt_finish_eval
15588
# Take the output of nm and produce a listing of raw symbols and C names.
15589
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15591
# Transform the output of nm in a proper C declaration
15592
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15594
# Transform the output of nm in a C name address pair
15595
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15597
# This is the shared library runtime path variable.
15598
runpath_var=$runpath_var
15600
# This is the shared library path variable.
15601
shlibpath_var=$shlibpath_var
15603
# Is shlibpath searched before the hard-coded library search path?
15604
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15606
# How to hardcode a shared library path into an executable.
15607
hardcode_action=$hardcode_action_F77
15609
# Whether we should hardcode library paths into libraries.
15610
hardcode_into_libs=$hardcode_into_libs
15612
# Flag to hardcode \$libdir into a binary during linking.
15613
# This must work even if \$libdir does not exist.
15614
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15616
# If ld is used when linking, flag to hardcode \$libdir into
15617
# a binary during linking. This must work even if \$libdir does
15619
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15621
# Whether we need a single -rpath flag with a separated argument.
15622
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15624
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15625
# resulting binary.
15626
hardcode_direct=$hardcode_direct_F77
15628
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15629
# resulting binary.
15630
hardcode_minus_L=$hardcode_minus_L_F77
15632
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15633
# the resulting binary.
15634
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15636
# Set to yes if building a shared library automatically hardcodes DIR into the library
15637
# and all subsequent libraries and executables linked against it.
15638
hardcode_automatic=$hardcode_automatic_F77
15640
# Variables whose values should be saved in libtool wrapper scripts and
15641
# restored at relink time.
15642
variables_saved_for_relink="$variables_saved_for_relink"
15644
# Whether libtool must link a program against all its dependency libraries.
15645
link_all_deplibs=$link_all_deplibs_F77
15647
# Compile-time system search path for libraries
15648
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15650
# Run-time system search path for libraries
15651
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15653
# Fix the shell variable \$srcfile for the compiler.
15654
fix_srcfile_path="$fix_srcfile_path_F77"
15656
# Set to yes if exported symbols are required.
15657
always_export_symbols=$always_export_symbols_F77
15659
# The commands to list exported symbols.
15660
export_symbols_cmds=$lt_export_symbols_cmds_F77
15662
# The commands to extract the exported symbol list from a shared archive.
15663
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15665
# Symbols that should not be listed in the preloaded symbols.
15666
exclude_expsyms=$lt_exclude_expsyms_F77
15668
# Symbols that must always be exported.
15669
include_expsyms=$lt_include_expsyms_F77
15671
# ### END LIBTOOL TAG CONFIG: $tagname
15677
# If there is no Makefile yet, we rely on a make rule to execute
15678
# `config.status --recheck' to rerun these tests and create the
15679
# libtool script then.
15680
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15681
if test -f "$ltmain_in"; then
15682
test -f Makefile && make "$ltmain"
15688
ac_cpp='$CPP $CPPFLAGS'
15689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15701
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15705
# Source file extension for Java test sources.
15708
# Object file extension for compiled Java test sources.
15712
# Code to be used in simple compile tests
15713
lt_simple_compile_test_code="class foo {}\n"
15715
# Code to be used in simple link tests
15716
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15718
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15720
# If no C compiler was specified, use CC.
15723
# If no C compiler flags were specified, use CFLAGS.
15724
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15726
# Allow CC to be a program name with arguments.
15730
# save warnings/boilerplate of simple test code
15731
ac_outfile=conftest.$ac_objext
15732
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15733
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15734
_lt_compiler_boilerplate=`cat conftest.err`
15737
ac_outfile=conftest.$ac_objext
15738
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15739
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15740
_lt_linker_boilerplate=`cat conftest.err`
15744
# Allow CC to be a program name with arguments.
15749
for cc_temp in $compiler""; do
15751
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15752
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15757
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15760
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15761
archive_cmds_need_lc_GCJ=no
15763
old_archive_cmds_GCJ=$old_archive_cmds
15766
lt_prog_compiler_no_builtin_flag_GCJ=
15768
if test "$GCC" = yes; then
15769
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15772
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15773
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15774
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15775
echo $ECHO_N "(cached) $ECHO_C" >&6
15777
lt_cv_prog_compiler_rtti_exceptions=no
15778
ac_outfile=conftest.$ac_objext
15779
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15780
lt_compiler_flag="-fno-rtti -fno-exceptions"
15781
# Insert the option either (1) after the last *FLAGS variable, or
15782
# (2) before a word containing "conftest.", or (3) at the end.
15783
# Note that $ac_compile itself does not contain backslashes and begins
15784
# with a dollar sign (not a hyphen), so the echo should work correctly.
15785
# The option is referenced via a variable to avoid confusing sed.
15786
lt_compile=`echo "$ac_compile" | $SED \
15787
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15788
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789
-e 's:$: $lt_compiler_flag:'`
15790
(eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
15791
(eval "$lt_compile" 2>conftest.err)
15793
cat conftest.err >&5
15794
echo "$as_me:15794: \$? = $ac_status" >&5
15795
if (exit $ac_status) && test -s "$ac_outfile"; then
15796
# The compiler can only warn and ignore the option if not recognized
15797
# So say no if there are warnings other than the usual output.
15798
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15799
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15800
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15801
lt_cv_prog_compiler_rtti_exceptions=yes
15807
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15808
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15810
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15811
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15818
lt_prog_compiler_wl_GCJ=
15819
lt_prog_compiler_pic_GCJ=
15820
lt_prog_compiler_static_GCJ=
15822
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15823
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15825
if test "$GCC" = yes; then
15826
lt_prog_compiler_wl_GCJ='-Wl,'
15827
lt_prog_compiler_static_GCJ='-static'
15831
# All AIX code is PIC.
15832
if test "$host_cpu" = ia64; then
15833
# AIX 5 now supports IA64 processor
15834
lt_prog_compiler_static_GCJ='-Bstatic'
15839
# FIXME: we need at least 68020 code to build shared libraries, but
15840
# adding the `-m68020' flag to GCC prevents building anything better,
15842
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15845
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15846
# PIC is the default for these OSes.
15849
mingw* | pw32* | os2*)
15850
# This hack is so that the source file can tell whether it is being
15851
# built for inclusion in a dll (and should export symbols for example).
15852
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15855
darwin* | rhapsody*)
15856
# PIC is the default on this platform
15857
# Common symbols not allowed in MH_DYLIB files
15858
lt_prog_compiler_pic_GCJ='-fno-common'
15862
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15863
# Instead, we relocate shared libraries at runtime.
15867
# Just because we use GCC doesn't mean we suddenly get shared libraries
15868
# on systems that don't support them.
15869
lt_prog_compiler_can_build_shared_GCJ=no
15874
if test -d /usr/nec; then
15875
lt_prog_compiler_pic_GCJ=-Kconform_pic
15880
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15881
# not for PA HP-UX.
15887
lt_prog_compiler_pic_GCJ='-fPIC'
15893
lt_prog_compiler_pic_GCJ='-fPIC'
15897
# PORTME Check for flag to pass linker flags through the system compiler.
15900
lt_prog_compiler_wl_GCJ='-Wl,'
15901
if test "$host_cpu" = ia64; then
15902
# AIX 5 now supports IA64 processor
15903
lt_prog_compiler_static_GCJ='-Bstatic'
15905
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15909
# PIC is the default on this platform
15910
# Common symbols not allowed in MH_DYLIB files
15911
case $cc_basename in
15913
lt_prog_compiler_pic_GCJ='-qnocommon'
15914
lt_prog_compiler_wl_GCJ='-Wl,'
15919
mingw* | pw32* | os2*)
15920
# This hack is so that the source file can tell whether it is being
15921
# built for inclusion in a dll (and should export symbols for example).
15922
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15925
hpux9* | hpux10* | hpux11*)
15926
lt_prog_compiler_wl_GCJ='-Wl,'
15927
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15928
# not for PA HP-UX.
15934
lt_prog_compiler_pic_GCJ='+Z'
15937
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15938
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15941
irix5* | irix6* | nonstopux*)
15942
lt_prog_compiler_wl_GCJ='-Wl,'
15943
# PIC (with -KPIC) is the default.
15944
lt_prog_compiler_static_GCJ='-non_shared'
15948
lt_prog_compiler_pic_GCJ='-KPIC'
15949
lt_prog_compiler_static_GCJ='-Bstatic'
15953
case $cc_basename in
15955
lt_prog_compiler_wl_GCJ='-Wl,'
15956
lt_prog_compiler_pic_GCJ='-KPIC'
15957
lt_prog_compiler_static_GCJ='-static'
15959
pgcc* | pgf77* | pgf90* | pgf95*)
15960
# Portland Group compilers (*not* the Pentium gcc compiler,
15961
# which looks to be a dead project)
15962
lt_prog_compiler_wl_GCJ='-Wl,'
15963
lt_prog_compiler_pic_GCJ='-fpic'
15964
lt_prog_compiler_static_GCJ='-Bstatic'
15967
lt_prog_compiler_wl_GCJ='-Wl,'
15968
# All Alpha code is PIC.
15969
lt_prog_compiler_static_GCJ='-non_shared'
15974
osf3* | osf4* | osf5*)
15975
lt_prog_compiler_wl_GCJ='-Wl,'
15976
# All OSF/1 code is PIC.
15977
lt_prog_compiler_static_GCJ='-non_shared'
15981
lt_prog_compiler_pic_GCJ='-KPIC'
15982
lt_prog_compiler_static_GCJ='-Bstatic'
15983
case $cc_basename in
15984
f77* | f90* | f95*)
15985
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15987
lt_prog_compiler_wl_GCJ='-Wl,';;
15992
lt_prog_compiler_wl_GCJ='-Qoption ld '
15993
lt_prog_compiler_pic_GCJ='-PIC'
15994
lt_prog_compiler_static_GCJ='-Bstatic'
15997
sysv4 | sysv4.2uw2* | sysv4.3*)
15998
lt_prog_compiler_wl_GCJ='-Wl,'
15999
lt_prog_compiler_pic_GCJ='-KPIC'
16000
lt_prog_compiler_static_GCJ='-Bstatic'
16004
if test -d /usr/nec ;then
16005
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16006
lt_prog_compiler_static_GCJ='-Bstatic'
16010
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16011
lt_prog_compiler_wl_GCJ='-Wl,'
16012
lt_prog_compiler_pic_GCJ='-KPIC'
16013
lt_prog_compiler_static_GCJ='-Bstatic'
16017
lt_prog_compiler_wl_GCJ='-Wl,'
16018
lt_prog_compiler_can_build_shared_GCJ=no
16022
lt_prog_compiler_pic_GCJ='-pic'
16023
lt_prog_compiler_static_GCJ='-Bstatic'
16027
lt_prog_compiler_can_build_shared_GCJ=no
16032
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16033
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16036
# Check to make sure the PIC flag actually works.
16038
if test -n "$lt_prog_compiler_pic_GCJ"; then
16040
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16041
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16042
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16043
echo $ECHO_N "(cached) $ECHO_C" >&6
16045
lt_prog_compiler_pic_works_GCJ=no
16046
ac_outfile=conftest.$ac_objext
16047
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16048
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16049
# Insert the option either (1) after the last *FLAGS variable, or
16050
# (2) before a word containing "conftest.", or (3) at the end.
16051
# Note that $ac_compile itself does not contain backslashes and begins
16052
# with a dollar sign (not a hyphen), so the echo should work correctly.
16053
# The option is referenced via a variable to avoid confusing sed.
16054
lt_compile=`echo "$ac_compile" | $SED \
16055
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16056
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16057
-e 's:$: $lt_compiler_flag:'`
16058
(eval echo "\"\$as_me:16058: $lt_compile\"" >&5)
16059
(eval "$lt_compile" 2>conftest.err)
16061
cat conftest.err >&5
16062
echo "$as_me:16062: \$? = $ac_status" >&5
16063
if (exit $ac_status) && test -s "$ac_outfile"; then
16064
# The compiler can only warn and ignore the option if not recognized
16065
# So say no if there are warnings other than the usual output.
16066
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16067
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16068
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16069
lt_prog_compiler_pic_works_GCJ=yes
16075
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16076
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16078
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16079
case $lt_prog_compiler_pic_GCJ in
16081
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16084
lt_prog_compiler_pic_GCJ=
16085
lt_prog_compiler_can_build_shared_GCJ=no
16090
# For platforms which do not support PIC, -DPIC is meaningless:
16092
lt_prog_compiler_pic_GCJ=
16095
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16100
# Check to make sure the static flag actually works.
16102
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16103
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16104
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16105
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16106
echo $ECHO_N "(cached) $ECHO_C" >&6
16108
lt_prog_compiler_static_works_GCJ=no
16109
save_LDFLAGS="$LDFLAGS"
16110
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16111
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16112
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16113
# The linker can only warn and ignore the option if not recognized
16114
# So say no if there are warnings
16115
if test -s conftest.err; then
16116
# Append any errors to the config.log.
16117
cat conftest.err 1>&5
16118
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16119
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16120
if diff conftest.exp conftest.er2 >/dev/null; then
16121
lt_prog_compiler_static_works_GCJ=yes
16124
lt_prog_compiler_static_works_GCJ=yes
16128
LDFLAGS="$save_LDFLAGS"
16131
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16132
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16134
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16137
lt_prog_compiler_static_GCJ=
16141
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16142
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16143
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16144
echo $ECHO_N "(cached) $ECHO_C" >&6
16146
lt_cv_prog_compiler_c_o_GCJ=no
16147
$rm -r conftest 2>/dev/null
16151
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16153
lt_compiler_flag="-o out/conftest2.$ac_objext"
16154
# Insert the option either (1) after the last *FLAGS variable, or
16155
# (2) before a word containing "conftest.", or (3) at the end.
16156
# Note that $ac_compile itself does not contain backslashes and begins
16157
# with a dollar sign (not a hyphen), so the echo should work correctly.
16158
lt_compile=`echo "$ac_compile" | $SED \
16159
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16160
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16161
-e 's:$: $lt_compiler_flag:'`
16162
(eval echo "\"\$as_me:16162: $lt_compile\"" >&5)
16163
(eval "$lt_compile" 2>out/conftest.err)
16165
cat out/conftest.err >&5
16166
echo "$as_me:16166: \$? = $ac_status" >&5
16167
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16169
# The compiler can only warn and ignore the option if not recognized
16170
# So say no if there are warnings
16171
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16172
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16173
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16174
lt_cv_prog_compiler_c_o_GCJ=yes
16179
# SGI C++ compiler will create directory out/ii_files/ for
16180
# template instantiation
16181
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16182
$rm out/* && rmdir out
16188
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16189
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16192
hard_links="nottested"
16193
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16194
# do not overwrite the value of need_locks provided by the user
16195
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16196
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16199
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16201
ln conftest.a conftest.b 2>&5 || hard_links=no
16202
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16203
echo "$as_me:$LINENO: result: $hard_links" >&5
16204
echo "${ECHO_T}$hard_links" >&6
16205
if test "$hard_links" = no; then
16206
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16207
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16214
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16215
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16218
allow_undefined_flag_GCJ=
16219
enable_shared_with_static_runtimes_GCJ=no
16221
archive_expsym_cmds_GCJ=
16222
old_archive_From_new_cmds_GCJ=
16223
old_archive_from_expsyms_cmds_GCJ=
16224
export_dynamic_flag_spec_GCJ=
16225
whole_archive_flag_spec_GCJ=
16226
thread_safe_flag_spec_GCJ=
16227
hardcode_libdir_flag_spec_GCJ=
16228
hardcode_libdir_flag_spec_ld_GCJ=
16229
hardcode_libdir_separator_GCJ=
16230
hardcode_direct_GCJ=no
16231
hardcode_minus_L_GCJ=no
16232
hardcode_shlibpath_var_GCJ=unsupported
16233
link_all_deplibs_GCJ=unknown
16234
hardcode_automatic_GCJ=no
16236
module_expsym_cmds_GCJ=
16237
always_export_symbols_GCJ=no
16238
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16239
# include_expsyms should be a list of space-separated symbols to be *always*
16240
# included in the symbol list
16241
include_expsyms_GCJ=
16242
# exclude_expsyms can be an extended regexp of symbols to exclude
16243
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16244
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16245
# as well as any symbol that contains `d'.
16246
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16247
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16248
# platforms (ab)use it in PIC code, but their linkers get confused if
16249
# the symbol is explicitly referenced. Since portable code cannot
16250
# rely on this symbol name, it's probably fine to never include it in
16251
# preloaded symbol tables.
16252
extract_expsyms_cmds=
16253
# Just being paranoid about ensuring that cc_basename is set.
16254
for cc_temp in $compiler""; do
16256
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16257
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16262
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16265
cygwin* | mingw* | pw32*)
16266
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16267
# When not using gcc, we currently assume that we are using
16268
# Microsoft Visual C++.
16269
if test "$GCC" != yes; then
16274
# we just hope/assume this is gcc and not c89 (= MSVC++)
16283
if test "$with_gnu_ld" = yes; then
16284
# If archive_cmds runs LD, not CC, wlarc should be empty
16287
# Set some defaults for GNU ld with shared library support. These
16288
# are reset later if shared libraries are not supported. Putting them
16289
# here allows them to be overridden if necessary.
16290
runpath_var=LD_RUN_PATH
16291
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16292
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16293
# ancient GNU ld didn't support --whole-archive et. al.
16294
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16295
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16297
whole_archive_flag_spec_GCJ=
16299
supports_anon_versioning=no
16300
case `$LD -v 2>/dev/null` in
16301
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16302
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16303
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16304
*\ 2.11.*) ;; # other 2.11 versions
16305
*) supports_anon_versioning=yes ;;
16308
# See if GNU ld supports shared libraries.
16310
aix3* | aix4* | aix5*)
16311
# On AIX/PPC, the GNU linker is very broken
16312
if test "$host_cpu" != ia64; then
16316
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16317
*** to be unable to reliably create shared libraries on AIX.
16318
*** Therefore, libtool is disabling shared libraries support. If you
16319
*** really care for shared libraries, you may want to modify your PATH
16320
*** so that a non-GNU linker is found, and then restart.
16327
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)'
16328
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16329
hardcode_minus_L_GCJ=yes
16331
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16332
# that the semantics of dynamic libraries on AmigaOS, at least up
16333
# to version 4, is to share data among multiple programs linked
16334
# with the same dynamic library. Since this doesn't match the
16335
# behavior of shared libraries on other platforms, we can't use
16341
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16342
allow_undefined_flag_GCJ=unsupported
16343
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16344
# support --undefined. This deserves some investigation. FIXME
16345
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16351
cygwin* | mingw* | pw32*)
16352
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16353
# as there is no search path for DLLs.
16354
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16355
allow_undefined_flag_GCJ=unsupported
16356
always_export_symbols_GCJ=no
16357
enable_shared_with_static_runtimes_GCJ=yes
16358
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16360
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16361
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16362
# If the export-symbols file already is a .def file (1st line
16363
# is EXPORTS), use it as is; otherwise, prepend...
16364
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16365
cp $export_symbols $output_objdir/$soname.def;
16367
echo EXPORTS > $output_objdir/$soname.def;
16368
cat $export_symbols >> $output_objdir/$soname.def;
16370
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16377
hardcode_direct_GCJ=no
16378
hardcode_shlibpath_var_GCJ=no
16379
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16380
export_dynamic_flag_spec_GCJ='${wl}-E'
16381
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16382
# Instead, shared libraries are loaded at an image base (0x10000000 by
16383
# default) and relocated if they conflict, which is a slow very memory
16384
# consuming and fragmenting process. To avoid this, we pick a random,
16385
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16386
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16387
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16388
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16392
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16394
case $cc_basename,$host_cpu in
16395
pgcc*) # Portland Group C compiler
16396
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'
16397
tmp_addflag=' $pic_flag'
16399
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16400
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'
16401
tmp_addflag=' $pic_flag -Mnomain' ;;
16402
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16403
tmp_addflag=' -i_dynamic' ;;
16404
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16405
tmp_addflag=' -i_dynamic -nofor_main' ;;
16406
ifc* | ifort*) # Intel Fortran compiler
16407
tmp_addflag=' -nofor_main' ;;
16409
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411
if test $supports_anon_versioning = yes; then
16412
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16413
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16414
$echo "local: *; };" >> $output_objdir/$libname.ver~
16415
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16417
link_all_deplibs_GCJ=no
16423
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16424
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16425
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16428
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16429
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16434
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16438
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16439
*** create shared libraries on Solaris systems. Therefore, libtool
16440
*** is disabling shared libraries support. We urge you to upgrade GNU
16441
*** binutils to release 2.9.1 or newer. Another option is to modify
16442
*** your PATH or compiler configuration so that the native linker is
16443
*** used, and then restart.
16446
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16447
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16448
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16454
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16455
case `$LD -v 2>&1` in
16456
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16460
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16461
*** reliably create shared libraries on SCO systems. Therefore, libtool
16462
*** is disabling shared libraries support. We urge you to upgrade GNU
16463
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16464
*** your PATH or compiler configuration so that the native linker is
16465
*** used, and then restart.
16470
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16471
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16472
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16473
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16482
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16484
hardcode_direct_GCJ=yes
16485
hardcode_shlibpath_var_GCJ=no
16489
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16490
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16491
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16498
if test "$ld_shlibs_GCJ" = no; then
16500
hardcode_libdir_flag_spec_GCJ=
16501
export_dynamic_flag_spec_GCJ=
16502
whole_archive_flag_spec_GCJ=
16505
# PORTME fill in a description of your system's linker (not GNU ld)
16508
allow_undefined_flag_GCJ=unsupported
16509
always_export_symbols_GCJ=yes
16510
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'
16511
# Note: this linker hardcodes the directories in LIBPATH if there
16512
# are no directories specified by -L.
16513
hardcode_minus_L_GCJ=yes
16514
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16515
# Neither direct hardcoding nor static linking is supported with a
16517
hardcode_direct_GCJ=unsupported
16522
if test "$host_cpu" = ia64; then
16523
# On IA64, the linker does run time linking by default, so we don't
16524
# have to do anything special.
16525
aix_use_runtimelinking=no
16526
exp_sym_flag='-Bexport'
16529
# If we're using GNU nm, then we don't want the "-C" option.
16530
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16531
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16532
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'
16534
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'
16536
aix_use_runtimelinking=no
16538
# Test if we are trying to use run time linking or normal
16539
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16540
# need to do runtime linking.
16541
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16542
for ld_flag in $LDFLAGS; do
16543
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16544
aix_use_runtimelinking=yes
16551
exp_sym_flag='-bexport'
16552
no_entry_flag='-bnoentry'
16555
# When large executables or shared objects are built, AIX ld can
16556
# have problems creating the table of contents. If linking a library
16557
# or program results in "error TOC overflow" add -mminimal-toc to
16558
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16559
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16561
archive_cmds_GCJ=''
16562
hardcode_direct_GCJ=yes
16563
hardcode_libdir_separator_GCJ=':'
16564
link_all_deplibs_GCJ=yes
16566
if test "$GCC" = yes; then
16567
case $host_os in aix4.[012]|aix4.[012].*)
16568
# We only want to do this on AIX 4.2 and lower, the check
16569
# below for broken collect2 doesn't work under 4.3+
16570
collect2name=`${CC} -print-prog-name=collect2`
16571
if test -f "$collect2name" && \
16572
strings "$collect2name" | grep resolve_lib_name >/dev/null
16574
# We have reworked collect2
16575
hardcode_direct_GCJ=yes
16577
# We have old collect2
16578
hardcode_direct_GCJ=unsupported
16579
# It fails to find uninstalled libraries when the uninstalled
16580
# path is not listed in the libpath. Setting hardcode_minus_L
16581
# to unsupported forces relinking
16582
hardcode_minus_L_GCJ=yes
16583
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16584
hardcode_libdir_separator_GCJ=
16588
shared_flag='-shared'
16589
if test "$aix_use_runtimelinking" = yes; then
16590
shared_flag="$shared_flag "'${wl}-G'
16594
if test "$host_cpu" = ia64; then
16595
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16596
# chokes on -Wl,-G. The following line is correct:
16599
if test "$aix_use_runtimelinking" = yes; then
16600
shared_flag='${wl}-G'
16602
shared_flag='${wl}-bM:SRE'
16607
# It seems that -bexpall does not export symbols beginning with
16608
# underscore (_), so it is better to generate a list of symbols to export.
16609
always_export_symbols_GCJ=yes
16610
if test "$aix_use_runtimelinking" = yes; then
16611
# Warning - without using the other runtime loading flags (-brtl),
16612
# -berok will link without error, but may produce a broken library.
16613
allow_undefined_flag_GCJ='-berok'
16614
# Determine the default libpath from the value encoded in an empty executable.
16615
cat >conftest.$ac_ext <<_ACEOF
16618
cat confdefs.h >>conftest.$ac_ext
16619
cat >>conftest.$ac_ext <<_ACEOF
16620
/* end confdefs.h. */
16630
rm -f conftest.$ac_objext conftest$ac_exeext
16631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16632
(eval $ac_link) 2>conftest.er1
16634
grep -v '^ *+' conftest.er1 >conftest.err
16636
cat conftest.err >&5
16637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638
(exit $ac_status); } &&
16639
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641
(eval $ac_try) 2>&5
16643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644
(exit $ac_status); }; } &&
16645
{ ac_try='test -s conftest$ac_exeext'
16646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647
(eval $ac_try) 2>&5
16649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650
(exit $ac_status); }; }; then
16652
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16654
# Check for a 64-bit object if we didn't find anything.
16655
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; }
16658
echo "$as_me: failed program was:" >&5
16659
sed 's/^/| /' conftest.$ac_ext >&5
16662
rm -f conftest.err conftest.$ac_objext \
16663
conftest$ac_exeext conftest.$ac_ext
16664
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16666
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16667
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16669
if test "$host_cpu" = ia64; then
16670
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16671
allow_undefined_flag_GCJ="-z nodefs"
16672
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16674
# Determine the default libpath from the value encoded in an empty executable.
16675
cat >conftest.$ac_ext <<_ACEOF
16678
cat confdefs.h >>conftest.$ac_ext
16679
cat >>conftest.$ac_ext <<_ACEOF
16680
/* end confdefs.h. */
16690
rm -f conftest.$ac_objext conftest$ac_exeext
16691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692
(eval $ac_link) 2>conftest.er1
16694
grep -v '^ *+' conftest.er1 >conftest.err
16696
cat conftest.err >&5
16697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698
(exit $ac_status); } &&
16699
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701
(eval $ac_try) 2>&5
16703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704
(exit $ac_status); }; } &&
16705
{ ac_try='test -s conftest$ac_exeext'
16706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707
(eval $ac_try) 2>&5
16709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710
(exit $ac_status); }; }; then
16712
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16714
# Check for a 64-bit object if we didn't find anything.
16715
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; }
16718
echo "$as_me: failed program was:" >&5
16719
sed 's/^/| /' conftest.$ac_ext >&5
16722
rm -f conftest.err conftest.$ac_objext \
16723
conftest$ac_exeext conftest.$ac_ext
16724
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16726
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16727
# Warning - without using the other run time loading flags,
16728
# -berok will link without error, but may produce a broken library.
16729
no_undefined_flag_GCJ=' ${wl}-bernotok'
16730
allow_undefined_flag_GCJ=' ${wl}-berok'
16731
# Exported symbols can be pulled into shared objects from archives
16732
whole_archive_flag_spec_GCJ='$convenience'
16733
archive_cmds_need_lc_GCJ=yes
16734
# This is similar to how AIX traditionally builds its shared libraries.
16735
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16741
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)'
16742
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16743
hardcode_minus_L_GCJ=yes
16744
# see comment about different semantics on the GNU ld section
16749
export_dynamic_flag_spec_GCJ=-rdynamic
16752
cygwin* | mingw* | pw32*)
16753
# When not using gcc, we currently assume that we are using
16754
# Microsoft Visual C++.
16755
# hardcode_libdir_flag_spec is actually meaningless, as there is
16756
# no search path for DLLs.
16757
hardcode_libdir_flag_spec_GCJ=' '
16758
allow_undefined_flag_GCJ=unsupported
16759
# Tell ltmain to make .lib files, not .a files.
16761
# Tell ltmain to make .dll files, not .so files.
16763
# FIXME: Setting linknames here is a bad hack.
16764
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16765
# The linker will automatically build a .lib file if we build a DLL.
16766
old_archive_From_new_cmds_GCJ='true'
16767
# FIXME: Should let the user specify the lib program.
16768
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16769
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16770
enable_shared_with_static_runtimes_GCJ=yes
16773
darwin* | rhapsody*)
16775
rhapsody* | darwin1.[012])
16776
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16779
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16780
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16782
case ${MACOSX_DEPLOYMENT_TARGET} in
16784
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16787
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16793
archive_cmds_need_lc_GCJ=no
16794
hardcode_direct_GCJ=no
16795
hardcode_automatic_GCJ=yes
16796
hardcode_shlibpath_var_GCJ=unsupported
16797
whole_archive_flag_spec_GCJ=''
16798
link_all_deplibs_GCJ=yes
16799
if test "$GCC" = yes ; then
16800
output_verbose_link_cmd='echo'
16801
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16802
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16803
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16804
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}'
16805
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}'
16807
case $cc_basename in
16809
output_verbose_link_cmd='echo'
16810
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16811
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16812
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16813
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}'
16814
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}'
16824
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16825
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16826
hardcode_shlibpath_var_GCJ=no
16833
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16834
# support. Future versions do this automatically, but an explicit c++rt0.o
16835
# does not break anything, and helps significantly (at the cost of a little
16838
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16839
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16840
hardcode_direct_GCJ=yes
16841
hardcode_shlibpath_var_GCJ=no
16844
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16846
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16847
hardcode_direct_GCJ=yes
16848
hardcode_minus_L_GCJ=yes
16849
hardcode_shlibpath_var_GCJ=no
16852
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16853
freebsd* | dragonfly*)
16854
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16855
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16856
hardcode_direct_GCJ=yes
16857
hardcode_shlibpath_var_GCJ=no
16860
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
16862
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16863
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16864
hardcode_direct_GCJ=yes
16865
hardcode_shlibpath_var_GCJ=no
16866
link_all_deplibs_GCJ=no
16870
if test "$GCC" = yes; then
16871
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'
16873
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'
16875
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16876
hardcode_libdir_separator_GCJ=:
16877
hardcode_direct_GCJ=yes
16879
# hardcode_minus_L: Not really in the search PATH,
16880
# but as the default location of the library.
16881
hardcode_minus_L_GCJ=yes
16882
export_dynamic_flag_spec_GCJ='${wl}-E'
16886
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16887
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16889
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16891
if test "$with_gnu_ld" = no; then
16892
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16893
hardcode_libdir_separator_GCJ=:
16895
hardcode_direct_GCJ=yes
16896
export_dynamic_flag_spec_GCJ='${wl}-E'
16898
# hardcode_minus_L: Not really in the search PATH,
16899
# but as the default location of the library.
16900
hardcode_minus_L_GCJ=yes
16905
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16908
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16911
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16914
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16920
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16926
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16930
if test "$with_gnu_ld" = no; then
16931
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16932
hardcode_libdir_separator_GCJ=:
16936
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16937
hardcode_direct_GCJ=no
16938
hardcode_shlibpath_var_GCJ=no
16941
hardcode_direct_GCJ=yes
16942
export_dynamic_flag_spec_GCJ='${wl}-E'
16944
# hardcode_minus_L: Not really in the search PATH,
16945
# but as the default location of the library.
16946
hardcode_minus_L_GCJ=yes
16952
irix5* | irix6* | nonstopux*)
16953
if test "$GCC" = yes; then
16954
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'
16956
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'
16957
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16959
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16960
hardcode_libdir_separator_GCJ=:
16961
link_all_deplibs_GCJ=yes
16964
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16965
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16966
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16968
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16970
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16971
hardcode_direct_GCJ=yes
16972
hardcode_shlibpath_var_GCJ=no
16976
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16977
hardcode_direct_GCJ=yes
16978
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16979
hardcode_libdir_separator_GCJ=:
16980
hardcode_shlibpath_var_GCJ=no
16984
hardcode_direct_GCJ=yes
16985
hardcode_shlibpath_var_GCJ=no
16986
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16987
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16988
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16989
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16990
export_dynamic_flag_spec_GCJ='${wl}-E'
16993
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16994
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16995
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16998
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16999
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17006
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17007
hardcode_minus_L_GCJ=yes
17008
allow_undefined_flag_GCJ=unsupported
17009
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'
17010
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17014
if test "$GCC" = yes; then
17015
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17016
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'
17018
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17019
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'
17021
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17022
hardcode_libdir_separator_GCJ=:
17025
osf4* | osf5*) # as osf3* with the addition of -msym flag
17026
if test "$GCC" = yes; then
17027
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17028
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'
17029
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17031
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17032
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'
17033
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~
17034
$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'
17036
# Both c and cxx compiler support -rpath directly
17037
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17039
hardcode_libdir_separator_GCJ=:
17043
no_undefined_flag_GCJ=' -z text'
17044
if test "$GCC" = yes; then
17046
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17047
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17048
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17051
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17053
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17055
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17056
hardcode_shlibpath_var_GCJ=no
17058
solaris2.[0-5] | solaris2.[0-5].*) ;;
17060
# The compiler driver will combine linker options so we
17061
# cannot just pass the convience library names through
17062
# without $wl, iff we do not link with $LD.
17063
# Luckily, gcc supports the same syntax we need for Sun Studio.
17064
# Supported since Solaris 2.6 (maybe 2.5.1?)
17067
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17069
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' ;;
17072
link_all_deplibs_GCJ=yes
17076
if test "x$host_vendor" = xsequent; then
17077
# Use $CC to link under sequent, because it throws in some extra .o
17078
# files that make .init and .fini sections work.
17079
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17081
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17083
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17084
hardcode_direct_GCJ=yes
17085
hardcode_minus_L_GCJ=yes
17086
hardcode_shlibpath_var_GCJ=no
17090
case $host_vendor in
17092
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093
hardcode_direct_GCJ=yes # is this really true???
17096
## LD is ld it makes a PLAMLIB
17097
## CC just makes a GrossModule.
17098
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17099
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17100
hardcode_direct_GCJ=no
17103
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17104
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17107
runpath_var='LD_RUN_PATH'
17108
hardcode_shlibpath_var_GCJ=no
17112
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17113
hardcode_shlibpath_var_GCJ=no
17114
export_dynamic_flag_spec_GCJ='-Bexport'
17118
if test -d /usr/nec; then
17119
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120
hardcode_shlibpath_var_GCJ=no
17121
runpath_var=LD_RUN_PATH
17122
hardcode_runpath_var=yes
17127
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17128
no_undefined_flag_GCJ='${wl}-z,text'
17129
archive_cmds_need_lc_GCJ=no
17130
hardcode_shlibpath_var_GCJ=no
17131
runpath_var='LD_RUN_PATH'
17133
if test "$GCC" = yes; then
17134
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17135
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17137
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17138
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17142
sysv5* | sco3.2v5* | sco5v6*)
17143
# Note: We can NOT use -z defs as we might desire, because we do not
17144
# link with -lc, and that would cause any symbols used from libc to
17145
# always be unresolved, which means just about no library would
17146
# ever link correctly. If we're not using GNU ld we use -z text
17147
# though, which does catch some bad symbols but isn't as heavy-handed
17149
no_undefined_flag_GCJ='${wl}-z,text'
17150
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17151
archive_cmds_need_lc_GCJ=no
17152
hardcode_shlibpath_var_GCJ=no
17153
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17154
hardcode_libdir_separator_GCJ=':'
17155
link_all_deplibs_GCJ=yes
17156
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17157
runpath_var='LD_RUN_PATH'
17159
if test "$GCC" = yes; then
17160
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17161
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17163
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17169
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17170
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17171
hardcode_shlibpath_var_GCJ=no
17180
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17181
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17182
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17185
# Do we need to explicitly link libc?
17187
case "x$archive_cmds_need_lc_GCJ" in
17189
# Assume -lc should be added
17190
archive_cmds_need_lc_GCJ=yes
17192
if test "$enable_shared" = yes && test "$GCC" = yes; then
17193
case $archive_cmds_GCJ in
17195
# FIXME: we may have to deal with multi-command sequences.
17198
# Test whether the compiler implicitly links with -lc since on some
17199
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17200
# to ld, don't add -lc before -lgcc.
17201
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17202
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17204
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17206
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17207
(eval $ac_compile) 2>&5
17209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210
(exit $ac_status); } 2>conftest.err; then
17213
libobjs=conftest.$ac_objext
17215
wl=$lt_prog_compiler_wl_GCJ
17216
pic_flag=$lt_prog_compiler_pic_GCJ
17222
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17223
allow_undefined_flag_GCJ=
17224
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17225
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228
(exit $ac_status); }
17230
archive_cmds_need_lc_GCJ=no
17232
archive_cmds_need_lc_GCJ=yes
17234
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17236
cat conftest.err 1>&5
17239
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17240
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17247
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17248
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17249
library_names_spec=
17250
libname_spec='lib$name'
17254
postuninstall_cmds=
17258
shlibpath_overrides_runpath=unknown
17260
dynamic_linker="$host_os ld.so"
17261
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17262
if test "$GCC" = yes; then
17263
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17264
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17265
# if the path contains ";" then we assume it to be the separator
17266
# otherwise default to the standard path separator (i.e. ":") - it is
17267
# assumed that no part of a normal pathname contains ";" but that should
17268
# okay in the real world where ";" in dirpaths is itself problematic.
17269
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17271
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17274
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17276
need_lib_prefix=unknown
17277
hardcode_into_libs=no
17279
# when you set need_version to no, make sure it does not cause -set_version
17280
# flags to be left without arguments
17281
need_version=unknown
17286
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17287
shlibpath_var=LIBPATH
17289
# AIX 3 has no versioning support, so we append a major version to the name.
17290
soname_spec='${libname}${release}${shared_ext}$major'
17297
hardcode_into_libs=yes
17298
if test "$host_cpu" = ia64; then
17299
# AIX 5 supports IA64
17300
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17301
shlibpath_var=LD_LIBRARY_PATH
17303
# With GCC up to 2.95.x, collect2 would create an import file
17304
# for dependence libraries. The import file would start with
17305
# the line `#! .'. This would cause the generated library to
17306
# depend on `.', always an invalid library. This was fixed in
17307
# development snapshots of GCC prior to 3.0.
17309
aix4 | aix4.[01] | aix4.[01].*)
17310
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17312
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17315
can_build_shared=no
17319
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17320
# soname into executable. Probably we can add versioning support to
17321
# collect2, so additional links can be useful in future.
17322
if test "$aix_use_runtimelinking" = yes; then
17323
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17324
# instead of lib<name>.a to let people know that these are not
17325
# typical AIX shared libraries.
17326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328
# We preserve .a as extension for shared libraries through AIX4.2
17329
# and later when we are not doing run time linking.
17330
library_names_spec='${libname}${release}.a $libname.a'
17331
soname_spec='${libname}${release}${shared_ext}$major'
17333
shlibpath_var=LIBPATH
17338
library_names_spec='$libname.ixlibrary $libname.a'
17339
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17340
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'
17344
library_names_spec='${libname}${shared_ext}'
17345
dynamic_linker="$host_os ld.so"
17346
shlibpath_var=LIBRARY_PATH
17352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353
soname_spec='${libname}${release}${shared_ext}$major'
17354
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17355
shlibpath_var=LD_LIBRARY_PATH
17356
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17357
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17358
# the default ld.so.conf also contains /usr/contrib/lib and
17359
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17360
# libtool to hard-code these into programs
17363
cygwin* | mingw* | pw32*)
17364
version_type=windows
17369
case $GCC,$host_os in
17370
yes,cygwin* | yes,mingw* | yes,pw32*)
17371
library_names_spec='$libname.dll.a'
17372
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17373
postinstall_cmds='base_file=`basename \${file}`~
17374
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17375
dldir=$destdir/`dirname \$dlpath`~
17376
test -d \$dldir || mkdir -p \$dldir~
17377
$install_prog $dir/$dlname \$dldir/$dlname~
17378
chmod a+x \$dldir/$dlname'
17379
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17380
dlpath=$dir/\$dldll~
17382
shlibpath_overrides_runpath=yes
17386
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17387
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17388
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17391
# MinGW DLLs use traditional 'lib' prefix
17392
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17393
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17394
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17395
# It is most probably a Windows format PATH printed by
17396
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17397
# path with ; separators, and with drive letters. We can handle the
17398
# drive letters (cygwin fileutils understands them), so leave them,
17399
# especially as we might pass files found there to a mingw objdump,
17400
# which wouldn't understand a cygwinified path. Ahh.
17401
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17403
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17407
# pw32 DLLs use 'pw' prefix rather than 'lib'
17408
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17414
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17417
dynamic_linker='Win32 ld.exe'
17418
# FIXME: first we should search . and the directory the executable is in
17422
darwin* | rhapsody*)
17423
dynamic_linker="$host_os dyld"
17424
version_type=darwin
17427
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17428
soname_spec='${libname}${release}${major}$shared_ext'
17429
shlibpath_overrides_runpath=yes
17430
shlibpath_var=DYLD_LIBRARY_PATH
17431
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17432
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17433
if test "$GCC" = yes; then
17434
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"`
17436
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17438
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17446
soname_spec='${libname}${release}${shared_ext}$major'
17447
shlibpath_var=LD_LIBRARY_PATH
17458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17459
soname_spec='${libname}${release}${shared_ext}$major'
17460
shlibpath_var=LD_LIBRARY_PATH
17461
shlibpath_overrides_runpath=no
17462
hardcode_into_libs=yes
17463
dynamic_linker='GNU ld.so'
17466
freebsd* | dragonfly*)
17467
# DragonFly does not have aout. When/if they implement a new
17468
# versioning mechanism, adjust this.
17469
if test -x /usr/bin/objformat; then
17470
objformat=`/usr/bin/objformat`
17473
freebsd[123]*) objformat=aout ;;
17474
*) objformat=elf ;;
17477
version_type=freebsd-$objformat
17478
case $version_type in
17480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17485
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17489
shlibpath_var=LD_LIBRARY_PATH
17492
shlibpath_overrides_runpath=yes
17494
freebsd3.[01]* | freebsdelf3.[01]*)
17495
shlibpath_overrides_runpath=yes
17496
hardcode_into_libs=yes
17498
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17499
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17500
shlibpath_overrides_runpath=no
17501
hardcode_into_libs=yes
17503
freebsd*) # from 4.6 on
17504
shlibpath_overrides_runpath=yes
17505
hardcode_into_libs=yes
17514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17515
soname_spec='${libname}${release}${shared_ext}$major'
17516
shlibpath_var=LD_LIBRARY_PATH
17517
hardcode_into_libs=yes
17520
hpux9* | hpux10* | hpux11*)
17521
# Give a soname corresponding to the major version so that dld.sl refuses to
17522
# link against other versions.
17529
hardcode_into_libs=yes
17530
dynamic_linker="$host_os dld.so"
17531
shlibpath_var=LD_LIBRARY_PATH
17532
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534
soname_spec='${libname}${release}${shared_ext}$major'
17535
if test "X$HPUX_IA64_MODE" = X32; then
17536
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17538
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17540
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17544
hardcode_into_libs=yes
17545
dynamic_linker="$host_os dld.sl"
17546
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17547
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549
soname_spec='${libname}${release}${shared_ext}$major'
17550
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17551
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17555
dynamic_linker="$host_os dld.sl"
17556
shlibpath_var=SHLIB_PATH
17557
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559
soname_spec='${libname}${release}${shared_ext}$major'
17562
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17563
postinstall_cmds='chmod 555 $lib'
17570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17571
soname_spec='${libname}${release}${shared_ext}$major'
17572
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17573
shlibpath_var=LD_LIBRARY_PATH
17574
shlibpath_overrides_runpath=no
17575
hardcode_into_libs=yes
17578
irix5* | irix6* | nonstopux*)
17580
nonstopux*) version_type=nonstopux ;;
17582
if test "$lt_cv_prog_gnu_ld" = yes; then
17590
soname_spec='${libname}${release}${shared_ext}$major'
17591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17593
irix5* | nonstopux*)
17594
libsuff= shlibsuff=
17597
case $LD in # libtool.m4 will add one of these switches to LD
17598
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17599
libsuff= shlibsuff= libmagic=32-bit;;
17600
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17601
libsuff=32 shlibsuff=N32 libmagic=N32;;
17602
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17603
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17604
*) libsuff= shlibsuff= libmagic=never-match;;
17608
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17609
shlibpath_overrides_runpath=no
17610
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17611
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17612
hardcode_into_libs=yes
17615
# No shared lib support for Linux oldld, aout, or coff.
17616
linux*oldld* | linux*aout* | linux*coff*)
17620
# This must be Linux ELF.
17625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17626
soname_spec='${libname}${release}${shared_ext}$major'
17627
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17628
shlibpath_var=LD_LIBRARY_PATH
17629
shlibpath_overrides_runpath=no
17630
# This implies no fast_install, which is unacceptable.
17631
# Some rework will be needed to allow for fast_install
17632
# before this can be enabled.
17633
hardcode_into_libs=yes
17635
# Append ld.so.conf contents to the search path
17636
if test -f /etc/ld.so.conf; then
17637
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' ' '`
17638
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17641
# We used to test for /lib/ld.so.1 and disable shared libraries on
17642
# powerpc, because MkLinux only supported shared libraries with the
17643
# GNU dynamic linker. Since this was broken with cross compilers,
17644
# most powerpc-linux boxes support dynamic linking these days and
17645
# people can always --disable-shared, the test was removed, and we
17646
# assume the GNU/Linux dynamic linker is in use.
17647
dynamic_linker='GNU/Linux ld.so'
17654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17655
soname_spec='${libname}${release}${shared_ext}$major'
17656
shlibpath_var=LD_LIBRARY_PATH
17657
shlibpath_overrides_runpath=no
17658
hardcode_into_libs=yes
17659
dynamic_linker='NetBSD ld.elf_so'
17666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17667
soname_spec='${libname}${release}${shared_ext}$major'
17668
shlibpath_var=LD_LIBRARY_PATH
17669
shlibpath_overrides_runpath=no
17670
hardcode_into_libs=yes
17671
dynamic_linker='GNU ld.so'
17678
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17680
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17681
dynamic_linker='NetBSD (a.out) ld.so'
17683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17684
soname_spec='${libname}${release}${shared_ext}$major'
17685
dynamic_linker='NetBSD ld.elf_so'
17687
shlibpath_var=LD_LIBRARY_PATH
17688
shlibpath_overrides_runpath=yes
17689
hardcode_into_libs=yes
17694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695
shlibpath_var=LD_LIBRARY_PATH
17696
shlibpath_overrides_runpath=yes
17703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704
soname_spec='${libname}${release}${shared_ext}$major'
17705
shlibpath_var=LD_LIBRARY_PATH
17706
shlibpath_overrides_runpath=yes
17711
sys_lib_dlsearch_path_spec="/usr/lib"
17713
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17715
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17716
*) need_version=no ;;
17718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17719
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17720
shlibpath_var=LD_LIBRARY_PATH
17721
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17723
openbsd2.[89] | openbsd2.[89].*)
17724
shlibpath_overrides_runpath=no
17727
shlibpath_overrides_runpath=yes
17731
shlibpath_overrides_runpath=yes
17736
libname_spec='$name'
17739
library_names_spec='$libname${shared_ext} $libname.a'
17740
dynamic_linker='OS/2 ld.exe'
17741
shlibpath_var=LIBPATH
17744
osf3* | osf4* | osf5*)
17748
soname_spec='${libname}${release}${shared_ext}$major'
17749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750
shlibpath_var=LD_LIBRARY_PATH
17751
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17752
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760
soname_spec='${libname}${release}${shared_ext}$major'
17761
shlibpath_var=LD_LIBRARY_PATH
17762
shlibpath_overrides_runpath=yes
17763
hardcode_into_libs=yes
17764
# ldd complains unless libraries are executable
17765
postinstall_cmds='chmod +x $lib'
17770
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17771
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17772
shlibpath_var=LD_LIBRARY_PATH
17773
shlibpath_overrides_runpath=yes
17774
if test "$with_gnu_ld" = yes; then
17782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17783
soname_spec='${libname}${release}${shared_ext}$major'
17784
shlibpath_var=LD_LIBRARY_PATH
17785
case $host_vendor in
17787
shlibpath_overrides_runpath=no
17789
export_dynamic_flag_spec='${wl}-Blargedynsym'
17790
runpath_var=LD_RUN_PATH
17798
shlibpath_overrides_runpath=no
17799
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17805
if test -d /usr/nec ;then
17807
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17808
soname_spec='$libname${shared_ext}.$major'
17809
shlibpath_var=LD_LIBRARY_PATH
17813
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17814
version_type=freebsd-elf
17817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17818
soname_spec='${libname}${release}${shared_ext}$major'
17819
shlibpath_var=LD_LIBRARY_PATH
17820
hardcode_into_libs=yes
17821
if test "$with_gnu_ld" = yes; then
17822
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17823
shlibpath_overrides_runpath=no
17825
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17826
shlibpath_overrides_runpath=yes
17829
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17833
sys_lib_dlsearch_path_spec='/usr/lib'
17838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839
soname_spec='${libname}${release}${shared_ext}$major'
17840
shlibpath_var=LD_LIBRARY_PATH
17847
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17848
echo "${ECHO_T}$dynamic_linker" >&6
17849
test "$dynamic_linker" = no && can_build_shared=no
17851
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17852
if test "$GCC" = yes; then
17853
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17856
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17857
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17858
hardcode_action_GCJ=
17859
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17860
test -n "$runpath_var_GCJ" || \
17861
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17863
# We can hardcode non-existant directories.
17864
if test "$hardcode_direct_GCJ" != no &&
17865
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17866
# have to relink, otherwise we might link with an installed library
17867
# when we should be linking with a yet-to-be-installed one
17868
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17869
test "$hardcode_minus_L_GCJ" != no; then
17870
# Linking always hardcodes the temporary library directory.
17871
hardcode_action_GCJ=relink
17873
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17874
hardcode_action_GCJ=immediate
17877
# We cannot hardcode anything, or else we can only hardcode existing
17879
hardcode_action_GCJ=unsupported
17881
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17882
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17884
if test "$hardcode_action_GCJ" = relink; then
17885
# Fast installation is not supported
17886
enable_fast_install=no
17887
elif test "$shlibpath_overrides_runpath" = yes ||
17888
test "$enable_shared" = no; then
17889
# Fast installation is not necessary
17890
enable_fast_install=needless
17894
# The else clause should only fire when bootstrapping the
17895
# libtool distribution, otherwise you forgot to ship ltmain.sh
17896
# with your package, and you will get complaints that there are
17897
# no rules to generate ltmain.sh.
17898
if test -f "$ltmain"; then
17899
# See if we are running on zsh, and set the options which allow our commands through
17900
# without removal of \ escapes.
17901
if test -n "${ZSH_VERSION+set}" ; then
17902
setopt NO_GLOB_SUBST
17904
# Now quote all the things that may contain metacharacters while being
17905
# careful not to overquote the AC_SUBSTed values. We take copies of the
17906
# variables and quote the copies for generation of the libtool script.
17907
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17909
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17910
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17911
deplibs_check_method reload_flag reload_cmds need_locks \
17912
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17913
lt_cv_sys_global_symbol_to_c_name_address \
17914
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17915
old_postinstall_cmds old_postuninstall_cmds \
17919
lt_prog_compiler_wl_GCJ \
17920
lt_prog_compiler_pic_GCJ \
17921
lt_prog_compiler_static_GCJ \
17922
lt_prog_compiler_no_builtin_flag_GCJ \
17923
export_dynamic_flag_spec_GCJ \
17924
thread_safe_flag_spec_GCJ \
17925
whole_archive_flag_spec_GCJ \
17926
enable_shared_with_static_runtimes_GCJ \
17927
old_archive_cmds_GCJ \
17928
old_archive_from_new_cmds_GCJ \
17929
predep_objects_GCJ \
17930
postdep_objects_GCJ \
17933
compiler_lib_search_path_GCJ \
17935
archive_expsym_cmds_GCJ \
17936
postinstall_cmds_GCJ \
17937
postuninstall_cmds_GCJ \
17938
old_archive_from_expsyms_cmds_GCJ \
17939
allow_undefined_flag_GCJ \
17940
no_undefined_flag_GCJ \
17941
export_symbols_cmds_GCJ \
17942
hardcode_libdir_flag_spec_GCJ \
17943
hardcode_libdir_flag_spec_ld_GCJ \
17944
hardcode_libdir_separator_GCJ \
17945
hardcode_automatic_GCJ \
17947
module_expsym_cmds_GCJ \
17948
lt_cv_prog_compiler_c_o_GCJ \
17949
exclude_expsyms_GCJ \
17950
include_expsyms_GCJ; do
17953
old_archive_cmds_GCJ | \
17954
old_archive_from_new_cmds_GCJ | \
17955
archive_cmds_GCJ | \
17956
archive_expsym_cmds_GCJ | \
17957
module_cmds_GCJ | \
17958
module_expsym_cmds_GCJ | \
17959
old_archive_from_expsyms_cmds_GCJ | \
17960
export_symbols_cmds_GCJ | \
17961
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17962
postinstall_cmds | postuninstall_cmds | \
17963
old_postinstall_cmds | old_postuninstall_cmds | \
17964
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17965
# Double-quote double-evaled strings.
17966
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17969
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17975
*'\$0 --fallback-echo"')
17976
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17982
cat <<__EOF__ >> "$cfgfile"
17983
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17985
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17987
# Shell to use when invoking shell scripts.
17990
# Whether or not to build shared libraries.
17991
build_libtool_libs=$enable_shared
17993
# Whether or not to build static libraries.
17994
build_old_libs=$enable_static
17996
# Whether or not to add -lc for building shared libraries.
17997
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17999
# Whether or not to disallow shared libs when runtime libs are static
18000
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18002
# Whether or not to optimize for fast installation.
18003
fast_install=$enable_fast_install
18006
host_alias=$host_alias
18010
# The build system.
18011
build_alias=$build_alias
18015
# An echo program that does not interpret backslashes.
18020
AR_FLAGS=$lt_AR_FLAGS
18025
# LTCC compiler flags.
18026
LTCFLAGS=$lt_LTCFLAGS
18028
# A language-specific compiler.
18029
CC=$lt_compiler_GCJ
18031
# Is the compiler the GNU C compiler?
18037
# The linker used to build libraries.
18040
# Whether we need hard or soft links.
18043
# A BSD-compatible nm program.
18046
# A symbol stripping program
18049
# Used to examine libraries when file_magic_cmd begins "file"
18050
MAGIC_CMD=$MAGIC_CMD
18052
# Used on cygwin: DLL creation program.
18055
# Used on cygwin: object dumper.
18058
# Used on cygwin: assembler.
18061
# The name of the directory that contains temporary libtool files.
18064
# How to create reloadable object files.
18065
reload_flag=$lt_reload_flag
18066
reload_cmds=$lt_reload_cmds
18068
# How to pass a linker flag through the compiler.
18069
wl=$lt_lt_prog_compiler_wl_GCJ
18071
# Object file suffix (normally "o").
18072
objext="$ac_objext"
18074
# Old archive suffix (normally "a").
18077
# Shared library suffix (normally ".so").
18078
shrext_cmds='$shrext_cmds'
18080
# Executable file suffix (normally "").
18083
# Additional compiler flags for building library objects.
18084
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18087
# What is the maximum length of a command?
18088
max_cmd_len=$lt_cv_sys_max_cmd_len
18090
# Does compiler simultaneously support -c and -o options?
18091
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18093
# Must we lock files when doing compilation?
18094
need_locks=$lt_need_locks
18096
# Do we need the lib prefix for modules?
18097
need_lib_prefix=$need_lib_prefix
18099
# Do we need a version for libraries?
18100
need_version=$need_version
18102
# Whether dlopen is supported.
18103
dlopen_support=$enable_dlopen
18105
# Whether dlopen of programs is supported.
18106
dlopen_self=$enable_dlopen_self
18108
# Whether dlopen of statically linked programs is supported.
18109
dlopen_self_static=$enable_dlopen_self_static
18111
# Compiler flag to prevent dynamic linking.
18112
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18114
# Compiler flag to turn off builtin functions.
18115
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18117
# Compiler flag to allow reflexive dlopens.
18118
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18120
# Compiler flag to generate shared objects directly from archives.
18121
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18123
# Compiler flag to generate thread-safe objects.
18124
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18126
# Library versioning type.
18127
version_type=$version_type
18129
# Format of library name prefix.
18130
libname_spec=$lt_libname_spec
18132
# List of archive names. First name is the real one, the rest are links.
18133
# The last name is the one that the linker finds with -lNAME.
18134
library_names_spec=$lt_library_names_spec
18136
# The coded name of the library, if different from the real name.
18137
soname_spec=$lt_soname_spec
18139
# Commands used to build and install an old-style archive.
18141
old_archive_cmds=$lt_old_archive_cmds_GCJ
18142
old_postinstall_cmds=$lt_old_postinstall_cmds
18143
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18145
# Create an old-style archive from a shared archive.
18146
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18148
# Create a temporary old-style archive to link instead of a shared archive.
18149
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18151
# Commands used to build and install a shared archive.
18152
archive_cmds=$lt_archive_cmds_GCJ
18153
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18154
postinstall_cmds=$lt_postinstall_cmds
18155
postuninstall_cmds=$lt_postuninstall_cmds
18157
# Commands used to build a loadable module (assumed same as above if empty)
18158
module_cmds=$lt_module_cmds_GCJ
18159
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18161
# Commands to strip libraries.
18162
old_striplib=$lt_old_striplib
18163
striplib=$lt_striplib
18165
# Dependencies to place before the objects being linked to create a
18167
predep_objects=$lt_predep_objects_GCJ
18169
# Dependencies to place after the objects being linked to create a
18171
postdep_objects=$lt_postdep_objects_GCJ
18173
# Dependencies to place before the objects being linked to create a
18175
predeps=$lt_predeps_GCJ
18177
# Dependencies to place after the objects being linked to create a
18179
postdeps=$lt_postdeps_GCJ
18181
# The library search path used internally by the compiler when linking
18182
# a shared library.
18183
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18185
# Method to check whether dependent libraries are shared objects.
18186
deplibs_check_method=$lt_deplibs_check_method
18188
# Command to use when deplibs_check_method == file_magic.
18189
file_magic_cmd=$lt_file_magic_cmd
18191
# Flag that allows shared libraries with undefined symbols to be built.
18192
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18194
# Flag that forces no undefined symbols.
18195
no_undefined_flag=$lt_no_undefined_flag_GCJ
18197
# Commands used to finish a libtool library installation in a directory.
18198
finish_cmds=$lt_finish_cmds
18200
# Same as above, but a single script fragment to be evaled but not shown.
18201
finish_eval=$lt_finish_eval
18203
# Take the output of nm and produce a listing of raw symbols and C names.
18204
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18206
# Transform the output of nm in a proper C declaration
18207
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18209
# Transform the output of nm in a C name address pair
18210
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18212
# This is the shared library runtime path variable.
18213
runpath_var=$runpath_var
18215
# This is the shared library path variable.
18216
shlibpath_var=$shlibpath_var
18218
# Is shlibpath searched before the hard-coded library search path?
18219
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18221
# How to hardcode a shared library path into an executable.
18222
hardcode_action=$hardcode_action_GCJ
18224
# Whether we should hardcode library paths into libraries.
18225
hardcode_into_libs=$hardcode_into_libs
18227
# Flag to hardcode \$libdir into a binary during linking.
18228
# This must work even if \$libdir does not exist.
18229
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18231
# If ld is used when linking, flag to hardcode \$libdir into
18232
# a binary during linking. This must work even if \$libdir does
18234
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18236
# Whether we need a single -rpath flag with a separated argument.
18237
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18239
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18240
# resulting binary.
18241
hardcode_direct=$hardcode_direct_GCJ
18243
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18244
# resulting binary.
18245
hardcode_minus_L=$hardcode_minus_L_GCJ
18247
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18248
# the resulting binary.
18249
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18251
# Set to yes if building a shared library automatically hardcodes DIR into the library
18252
# and all subsequent libraries and executables linked against it.
18253
hardcode_automatic=$hardcode_automatic_GCJ
18255
# Variables whose values should be saved in libtool wrapper scripts and
18256
# restored at relink time.
18257
variables_saved_for_relink="$variables_saved_for_relink"
18259
# Whether libtool must link a program against all its dependency libraries.
18260
link_all_deplibs=$link_all_deplibs_GCJ
18262
# Compile-time system search path for libraries
18263
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18265
# Run-time system search path for libraries
18266
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18268
# Fix the shell variable \$srcfile for the compiler.
18269
fix_srcfile_path="$fix_srcfile_path_GCJ"
18271
# Set to yes if exported symbols are required.
18272
always_export_symbols=$always_export_symbols_GCJ
18274
# The commands to list exported symbols.
18275
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18277
# The commands to extract the exported symbol list from a shared archive.
18278
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18280
# Symbols that should not be listed in the preloaded symbols.
18281
exclude_expsyms=$lt_exclude_expsyms_GCJ
18283
# Symbols that must always be exported.
18284
include_expsyms=$lt_include_expsyms_GCJ
18286
# ### END LIBTOOL TAG CONFIG: $tagname
18292
# If there is no Makefile yet, we rely on a make rule to execute
18293
# `config.status --recheck' to rerun these tests and create the
18294
# libtool script then.
18295
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18296
if test -f "$ltmain_in"; then
18297
test -f Makefile && make "$ltmain"
18303
ac_cpp='$CPP $CPPFLAGS'
18304
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18305
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18306
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18319
# Source file extension for RC test sources.
18322
# Object file extension for compiled RC test sources.
18326
# Code to be used in simple compile tests
18327
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18329
# Code to be used in simple link tests
18330
lt_simple_link_test_code="$lt_simple_compile_test_code"
18332
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18334
# If no C compiler was specified, use CC.
18337
# If no C compiler flags were specified, use CFLAGS.
18338
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18340
# Allow CC to be a program name with arguments.
18344
# save warnings/boilerplate of simple test code
18345
ac_outfile=conftest.$ac_objext
18346
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18347
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18348
_lt_compiler_boilerplate=`cat conftest.err`
18351
ac_outfile=conftest.$ac_objext
18352
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18353
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18354
_lt_linker_boilerplate=`cat conftest.err`
18358
# Allow CC to be a program name with arguments.
18363
for cc_temp in $compiler""; do
18365
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18366
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18371
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18373
lt_cv_prog_compiler_c_o_RC=yes
18375
# The else clause should only fire when bootstrapping the
18376
# libtool distribution, otherwise you forgot to ship ltmain.sh
18377
# with your package, and you will get complaints that there are
18378
# no rules to generate ltmain.sh.
18379
if test -f "$ltmain"; then
18380
# See if we are running on zsh, and set the options which allow our commands through
18381
# without removal of \ escapes.
18382
if test -n "${ZSH_VERSION+set}" ; then
18383
setopt NO_GLOB_SUBST
18385
# Now quote all the things that may contain metacharacters while being
18386
# careful not to overquote the AC_SUBSTed values. We take copies of the
18387
# variables and quote the copies for generation of the libtool script.
18388
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18390
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18391
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18392
deplibs_check_method reload_flag reload_cmds need_locks \
18393
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18394
lt_cv_sys_global_symbol_to_c_name_address \
18395
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18396
old_postinstall_cmds old_postuninstall_cmds \
18400
lt_prog_compiler_wl_RC \
18401
lt_prog_compiler_pic_RC \
18402
lt_prog_compiler_static_RC \
18403
lt_prog_compiler_no_builtin_flag_RC \
18404
export_dynamic_flag_spec_RC \
18405
thread_safe_flag_spec_RC \
18406
whole_archive_flag_spec_RC \
18407
enable_shared_with_static_runtimes_RC \
18408
old_archive_cmds_RC \
18409
old_archive_from_new_cmds_RC \
18410
predep_objects_RC \
18411
postdep_objects_RC \
18414
compiler_lib_search_path_RC \
18416
archive_expsym_cmds_RC \
18417
postinstall_cmds_RC \
18418
postuninstall_cmds_RC \
18419
old_archive_from_expsyms_cmds_RC \
18420
allow_undefined_flag_RC \
18421
no_undefined_flag_RC \
18422
export_symbols_cmds_RC \
18423
hardcode_libdir_flag_spec_RC \
18424
hardcode_libdir_flag_spec_ld_RC \
18425
hardcode_libdir_separator_RC \
18426
hardcode_automatic_RC \
18428
module_expsym_cmds_RC \
18429
lt_cv_prog_compiler_c_o_RC \
18430
exclude_expsyms_RC \
18431
include_expsyms_RC; do
18434
old_archive_cmds_RC | \
18435
old_archive_from_new_cmds_RC | \
18436
archive_cmds_RC | \
18437
archive_expsym_cmds_RC | \
18439
module_expsym_cmds_RC | \
18440
old_archive_from_expsyms_cmds_RC | \
18441
export_symbols_cmds_RC | \
18442
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18443
postinstall_cmds | postuninstall_cmds | \
18444
old_postinstall_cmds | old_postuninstall_cmds | \
18445
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18446
# Double-quote double-evaled strings.
18447
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18450
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18456
*'\$0 --fallback-echo"')
18457
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18463
cat <<__EOF__ >> "$cfgfile"
18464
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18466
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18468
# Shell to use when invoking shell scripts.
18471
# Whether or not to build shared libraries.
18472
build_libtool_libs=$enable_shared
18474
# Whether or not to build static libraries.
18475
build_old_libs=$enable_static
18477
# Whether or not to add -lc for building shared libraries.
18478
build_libtool_need_lc=$archive_cmds_need_lc_RC
18480
# Whether or not to disallow shared libs when runtime libs are static
18481
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18483
# Whether or not to optimize for fast installation.
18484
fast_install=$enable_fast_install
18487
host_alias=$host_alias
18491
# The build system.
18492
build_alias=$build_alias
18496
# An echo program that does not interpret backslashes.
18501
AR_FLAGS=$lt_AR_FLAGS
18506
# LTCC compiler flags.
18507
LTCFLAGS=$lt_LTCFLAGS
18509
# A language-specific compiler.
18512
# Is the compiler the GNU C compiler?
18518
# The linker used to build libraries.
18521
# Whether we need hard or soft links.
18524
# A BSD-compatible nm program.
18527
# A symbol stripping program
18530
# Used to examine libraries when file_magic_cmd begins "file"
18531
MAGIC_CMD=$MAGIC_CMD
18533
# Used on cygwin: DLL creation program.
18536
# Used on cygwin: object dumper.
18539
# Used on cygwin: assembler.
18542
# The name of the directory that contains temporary libtool files.
18545
# How to create reloadable object files.
18546
reload_flag=$lt_reload_flag
18547
reload_cmds=$lt_reload_cmds
18549
# How to pass a linker flag through the compiler.
18550
wl=$lt_lt_prog_compiler_wl_RC
18552
# Object file suffix (normally "o").
18553
objext="$ac_objext"
18555
# Old archive suffix (normally "a").
18558
# Shared library suffix (normally ".so").
18559
shrext_cmds='$shrext_cmds'
18561
# Executable file suffix (normally "").
18564
# Additional compiler flags for building library objects.
18565
pic_flag=$lt_lt_prog_compiler_pic_RC
18568
# What is the maximum length of a command?
18569
max_cmd_len=$lt_cv_sys_max_cmd_len
18571
# Does compiler simultaneously support -c and -o options?
18572
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18574
# Must we lock files when doing compilation?
18575
need_locks=$lt_need_locks
18577
# Do we need the lib prefix for modules?
18578
need_lib_prefix=$need_lib_prefix
18580
# Do we need a version for libraries?
18581
need_version=$need_version
18583
# Whether dlopen is supported.
18584
dlopen_support=$enable_dlopen
18586
# Whether dlopen of programs is supported.
18587
dlopen_self=$enable_dlopen_self
18589
# Whether dlopen of statically linked programs is supported.
18590
dlopen_self_static=$enable_dlopen_self_static
18592
# Compiler flag to prevent dynamic linking.
18593
link_static_flag=$lt_lt_prog_compiler_static_RC
18595
# Compiler flag to turn off builtin functions.
18596
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18598
# Compiler flag to allow reflexive dlopens.
18599
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18601
# Compiler flag to generate shared objects directly from archives.
18602
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18604
# Compiler flag to generate thread-safe objects.
18605
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18607
# Library versioning type.
18608
version_type=$version_type
18610
# Format of library name prefix.
18611
libname_spec=$lt_libname_spec
18613
# List of archive names. First name is the real one, the rest are links.
18614
# The last name is the one that the linker finds with -lNAME.
18615
library_names_spec=$lt_library_names_spec
18617
# The coded name of the library, if different from the real name.
18618
soname_spec=$lt_soname_spec
18620
# Commands used to build and install an old-style archive.
18622
old_archive_cmds=$lt_old_archive_cmds_RC
18623
old_postinstall_cmds=$lt_old_postinstall_cmds
18624
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18626
# Create an old-style archive from a shared archive.
18627
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18629
# Create a temporary old-style archive to link instead of a shared archive.
18630
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18632
# Commands used to build and install a shared archive.
18633
archive_cmds=$lt_archive_cmds_RC
18634
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18635
postinstall_cmds=$lt_postinstall_cmds
18636
postuninstall_cmds=$lt_postuninstall_cmds
18638
# Commands used to build a loadable module (assumed same as above if empty)
18639
module_cmds=$lt_module_cmds_RC
18640
module_expsym_cmds=$lt_module_expsym_cmds_RC
18642
# Commands to strip libraries.
18643
old_striplib=$lt_old_striplib
18644
striplib=$lt_striplib
18646
# Dependencies to place before the objects being linked to create a
18648
predep_objects=$lt_predep_objects_RC
18650
# Dependencies to place after the objects being linked to create a
18652
postdep_objects=$lt_postdep_objects_RC
18654
# Dependencies to place before the objects being linked to create a
18656
predeps=$lt_predeps_RC
18658
# Dependencies to place after the objects being linked to create a
18660
postdeps=$lt_postdeps_RC
18662
# The library search path used internally by the compiler when linking
18663
# a shared library.
18664
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18666
# Method to check whether dependent libraries are shared objects.
18667
deplibs_check_method=$lt_deplibs_check_method
18669
# Command to use when deplibs_check_method == file_magic.
18670
file_magic_cmd=$lt_file_magic_cmd
18672
# Flag that allows shared libraries with undefined symbols to be built.
18673
allow_undefined_flag=$lt_allow_undefined_flag_RC
18675
# Flag that forces no undefined symbols.
18676
no_undefined_flag=$lt_no_undefined_flag_RC
18678
# Commands used to finish a libtool library installation in a directory.
18679
finish_cmds=$lt_finish_cmds
18681
# Same as above, but a single script fragment to be evaled but not shown.
18682
finish_eval=$lt_finish_eval
18684
# Take the output of nm and produce a listing of raw symbols and C names.
18685
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18687
# Transform the output of nm in a proper C declaration
18688
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18690
# Transform the output of nm in a C name address pair
18691
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18693
# This is the shared library runtime path variable.
18694
runpath_var=$runpath_var
18696
# This is the shared library path variable.
18697
shlibpath_var=$shlibpath_var
18699
# Is shlibpath searched before the hard-coded library search path?
18700
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18702
# How to hardcode a shared library path into an executable.
18703
hardcode_action=$hardcode_action_RC
18705
# Whether we should hardcode library paths into libraries.
18706
hardcode_into_libs=$hardcode_into_libs
18708
# Flag to hardcode \$libdir into a binary during linking.
18709
# This must work even if \$libdir does not exist.
18710
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18712
# If ld is used when linking, flag to hardcode \$libdir into
18713
# a binary during linking. This must work even if \$libdir does
18715
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18717
# Whether we need a single -rpath flag with a separated argument.
18718
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18720
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18721
# resulting binary.
18722
hardcode_direct=$hardcode_direct_RC
18724
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18725
# resulting binary.
18726
hardcode_minus_L=$hardcode_minus_L_RC
18728
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18729
# the resulting binary.
18730
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18732
# Set to yes if building a shared library automatically hardcodes DIR into the library
18733
# and all subsequent libraries and executables linked against it.
18734
hardcode_automatic=$hardcode_automatic_RC
18736
# Variables whose values should be saved in libtool wrapper scripts and
18737
# restored at relink time.
18738
variables_saved_for_relink="$variables_saved_for_relink"
18740
# Whether libtool must link a program against all its dependency libraries.
18741
link_all_deplibs=$link_all_deplibs_RC
18743
# Compile-time system search path for libraries
18744
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18746
# Run-time system search path for libraries
18747
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18749
# Fix the shell variable \$srcfile for the compiler.
18750
fix_srcfile_path="$fix_srcfile_path_RC"
18752
# Set to yes if exported symbols are required.
18753
always_export_symbols=$always_export_symbols_RC
18755
# The commands to list exported symbols.
18756
export_symbols_cmds=$lt_export_symbols_cmds_RC
18758
# The commands to extract the exported symbol list from a shared archive.
18759
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18761
# Symbols that should not be listed in the preloaded symbols.
18762
exclude_expsyms=$lt_exclude_expsyms_RC
18764
# Symbols that must always be exported.
18765
include_expsyms=$lt_include_expsyms_RC
18767
# ### END LIBTOOL TAG CONFIG: $tagname
18773
# If there is no Makefile yet, we rely on a make rule to execute
18774
# `config.status --recheck' to rerun these tests and create the
18775
# libtool script then.
18776
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18777
if test -f "$ltmain_in"; then
18778
test -f Makefile && make "$ltmain"
18784
ac_cpp='$CPP $CPPFLAGS'
18785
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18794
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18795
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18796
{ (exit 1); exit 1; }; }
18800
# Append the new tag name to the list of available tags.
18801
if test -n "$tagname" ; then
18802
available_tags="$available_tags $tagname"
18808
# Now substitute the updated list of available tags.
18809
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18810
mv "${ofile}T" "$ofile"
18814
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18815
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18816
{ (exit 1); exit 1; }; }
18822
# This can be used to rebuild libtool when needed
18823
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18825
# Always use our own libtool.
18826
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18828
# Prevent multiple expansion
18850
# Transfer these variables to the Makefile
18856
ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile bin/Makefile doc/Makefile portaudiocpp.pc"
18858
cat >confcache <<\_ACEOF
18859
# This file is a shell script that caches the results of configure
18860
# tests run on this system so they can be shared between configure
18861
# scripts and configure runs, see configure's option --config-cache.
18862
# It is not useful on other systems. If it contains results you don't
18863
# want to keep, you may remove or edit it.
18865
# config.status only pays attention to the cache file if you give it
18866
# the --recheck option to rerun configure.
18868
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18869
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18870
# following values.
18874
# The following way of writing the cache mishandles newlines in values,
18875
# but we know of no workaround that is simple, portable, and efficient.
18876
# So, don't put newlines in cache variables' values.
18877
# Ultrix sh set writes to stderr and can't be redirected directly,
18878
# and sets the high bit in the cache file unless we assign to the vars.
18881
case `(ac_space=' '; set | grep ac_space) 2>&1` in
18883
# `set' does not quote correctly, so add quotes (double-quote
18884
# substitution turns \\\\ into \\, and sed turns \\ into \).
18887
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18890
# `set' quotes correctly as required by POSIX, so do not add quotes.
18892
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18899
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18901
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18903
if diff $cache_file confcache >/dev/null 2>&1; then :; else
18904
if test -w $cache_file; then
18905
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18906
cat confcache >$cache_file
18908
echo "not updating unwritable cache $cache_file"
18913
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18914
# Let make expand exec_prefix.
18915
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18917
# VPATH may cause trouble with some makes, so we remove $(srcdir),
18918
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18919
# trailing colons and then remove the whole line if VPATH becomes empty
18920
# (actually we leave an empty line to preserve line numbers).
18921
if test "x$srcdir" = x.; then
18922
ac_vpsub='/^[ ]*VPATH[ ]*=/{
18923
s/:*\$(srcdir):*/:/;
18924
s/:*\${srcdir}:*/:/;
18926
s/^\([^=]*=[ ]*\):*/\1/;
18932
# Transform confdefs.h into DEFS.
18933
# Protect against shell expansion while executing Makefile rules.
18934
# Protect against Makefile macro expansion.
18936
# If the first sed substitution is executed (which looks for macros that
18937
# take arguments), then we branch to the quote section. Otherwise,
18938
# look for a macro that doesn't take arguments.
18939
cat >confdef2opt.sed <<\_ACEOF
18942
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
18944
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
18948
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
18954
# We use echo to avoid assuming a particular line-breaking character.
18955
# The extra dot is to prevent the shell from consuming trailing
18956
# line-breaks from the sub-command output. A line-break within
18957
# single-quotes doesn't work because, if this script is created in a
18958
# platform that uses two characters for line-breaks (e.g., DOS), tr
18960
ac_LF_and_DOT=`echo; echo .`
18961
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18962
rm -f confdef2opt.sed
18967
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18968
# 1. Remove the extension, and $U if already installed.
18969
ac_i=`echo "$ac_i" |
18970
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18972
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18973
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18975
LIBOBJS=$ac_libobjs
18977
LTLIBOBJS=$ac_ltlibobjs
18980
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18981
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18982
Usually this means the macro was only invoked conditionally." >&5
18983
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18984
Usually this means the macro was only invoked conditionally." >&2;}
18985
{ (exit 1); exit 1; }; }
18987
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18988
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18989
Usually this means the macro was only invoked conditionally." >&5
18990
echo "$as_me: error: conditional \"AMDEP\" was never defined.
18991
Usually this means the macro was only invoked conditionally." >&2;}
18992
{ (exit 1); exit 1; }; }
18994
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18995
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18996
Usually this means the macro was only invoked conditionally." >&5
18997
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18998
Usually this means the macro was only invoked conditionally." >&2;}
18999
{ (exit 1); exit 1; }; }
19001
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19002
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19003
Usually this means the macro was only invoked conditionally." >&5
19004
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19005
Usually this means the macro was only invoked conditionally." >&2;}
19006
{ (exit 1); exit 1; }; }
19009
: ${CONFIG_STATUS=./config.status}
19010
ac_clean_files_save=$ac_clean_files
19011
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19012
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19013
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19014
cat >$CONFIG_STATUS <<_ACEOF
19016
# Generated by $as_me.
19017
# Run this file to recreate the current configuration.
19018
# Compiler output produced by configure, useful for debugging
19019
# configure, is in config.log if it exists.
19022
ac_cs_recheck=false
19024
SHELL=\${CONFIG_SHELL-$SHELL}
19027
cat >>$CONFIG_STATUS <<\_ACEOF
19028
## --------------------- ##
19029
## M4sh Initialization. ##
19030
## --------------------- ##
19032
# Be Bourne compatible
19033
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19036
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19037
# is contrary to our usage. Disable this feature.
19038
alias -g '${1+"$@"}'='"$@"'
19039
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19042
DUALCASE=1; export DUALCASE # for MKS sh
19044
# Support unset when possible.
19045
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19052
# Work around bugs in pre-3.0 UWIN ksh.
19053
$as_unset ENV MAIL MAILPATH
19060
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19061
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19062
LC_TELEPHONE LC_TIME
19064
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19065
eval $as_var=C; export $as_var
19071
# Required to use basename.
19072
if expr a : '\(a\)' >/dev/null 2>&1; then
19078
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19079
as_basename=basename
19085
# Name of the executable.
19086
as_me=`$as_basename "$0" ||
19087
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19088
X"$0" : 'X\(//\)$' \| \
19089
X"$0" : 'X\(/\)$' \| \
19090
. : '\(.\)' 2>/dev/null ||
19092
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19093
/^X\/\(\/\/\)$/{ s//\1/; q; }
19094
/^X\/\(\/\).*/{ s//\1/; q; }
19098
# PATH needs CR, and LINENO needs CR and PATH.
19099
# Avoid depending upon Character Ranges.
19100
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19101
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19102
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19103
as_cr_digits='0123456789'
19104
as_cr_alnum=$as_cr_Letters$as_cr_digits
19106
# The user is always right.
19107
if test "${PATH_SEPARATOR+set}" != set; then
19108
echo "#! /bin/sh" >conf$$.sh
19109
echo "exit 0" >>conf$$.sh
19111
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19120
as_lineno_1=$LINENO
19121
as_lineno_2=$LINENO
19122
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19123
test "x$as_lineno_1" != "x$as_lineno_2" &&
19124
test "x$as_lineno_3" = "x$as_lineno_2" || {
19125
# Find who we are. Look in the path if we contain no path at all
19128
*[\\/]* ) as_myself=$0 ;;
19129
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19130
for as_dir in $PATH
19133
test -z "$as_dir" && as_dir=.
19134
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19139
# We did not find ourselves, most probably we were run as `sh COMMAND'
19140
# in which case we are not to be found in the path.
19141
if test "x$as_myself" = x; then
19144
if test ! -f "$as_myself"; then
19145
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19146
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19147
{ (exit 1); exit 1; }; }
19149
case $CONFIG_SHELL in
19151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19155
test -z "$as_dir" && as_dir=.
19156
for as_base in sh bash ksh sh5; do
19159
if ("$as_dir/$as_base" -c '
19160
as_lineno_1=$LINENO
19161
as_lineno_2=$LINENO
19162
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19163
test "x$as_lineno_1" != "x$as_lineno_2" &&
19164
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19165
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19166
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19167
CONFIG_SHELL=$as_dir/$as_base
19168
export CONFIG_SHELL
19169
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19177
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19178
# uniformly replaced by the line number. The first 'sed' inserts a
19179
# line-number line before each line; the second 'sed' does the real
19180
# work. The second script uses 'N' to pair each line-number line
19181
# with the numbered line, and appends trailing '-' during
19182
# substitution so that $LINENO is not a special case at line end.
19183
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19184
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19185
sed '=' <$as_myself |
19190
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19193
s,^['$as_cr_digits']*\n,,
19194
' >$as_me.lineno &&
19195
chmod +x $as_me.lineno ||
19196
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19197
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19198
{ (exit 1); exit 1; }; }
19200
# Don't try to exec as it changes $[0], causing all sort of problems
19201
# (the dirname of $[0] is not the place where we might find the
19202
# original and so on. Autoconf is especially sensible to this).
19204
# Exit status is that of the last command.
19209
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19210
*c*,-n*) ECHO_N= ECHO_C='
19212
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19213
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19216
if expr a : '\(a\)' >/dev/null 2>&1; then
19222
rm -f conf$$ conf$$.exe conf$$.file
19224
if ln -s conf$$.file conf$$ 2>/dev/null; then
19225
# We could just check for DJGPP; but this test a) works b) is more generic
19226
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19227
if test -f conf$$.exe; then
19228
# Don't use ln at all; we don't have any links
19233
elif ln conf$$.file conf$$ 2>/dev/null; then
19238
rm -f conf$$ conf$$.exe conf$$.file
19240
if mkdir -p . 2>/dev/null; then
19243
test -d ./-p && rmdir ./-p
19247
as_executable_p="test -f"
19249
# Sed expression to map a string onto a valid CPP name.
19250
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19252
# Sed expression to map a string onto a valid variable name.
19253
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19257
# We need space, tab and new line, in precisely that order.
19267
# Open the log real soon, to keep \$[0] and so on meaningful, and to
19268
# report actual input values of CONFIG_FILES etc. instead of their
19269
# values after options handling. Logging --version etc. is OK.
19273
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19274
## Running $as_me. ##
19279
This file was extended by PortAudioCpp $as_me 12, which was
19280
generated by GNU Autoconf 2.59. Invocation command line was
19282
CONFIG_FILES = $CONFIG_FILES
19283
CONFIG_HEADERS = $CONFIG_HEADERS
19284
CONFIG_LINKS = $CONFIG_LINKS
19285
CONFIG_COMMANDS = $CONFIG_COMMANDS
19289
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19293
# Files that config.status was made for.
19294
if test -n "$ac_config_files"; then
19295
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19298
if test -n "$ac_config_headers"; then
19299
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19302
if test -n "$ac_config_links"; then
19303
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19306
if test -n "$ac_config_commands"; then
19307
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19310
cat >>$CONFIG_STATUS <<\_ACEOF
19313
\`$as_me' instantiates files from templates according to the
19314
current configuration.
19316
Usage: $0 [OPTIONS] [FILE]...
19318
-h, --help print this help, then exit
19319
-V, --version print version number, then exit
19320
-q, --quiet do not print progress messages
19321
-d, --debug don't remove temporary files
19322
--recheck update $as_me by reconfiguring in the same conditions
19323
--file=FILE[:TEMPLATE]
19324
instantiate the configuration file FILE
19326
Configuration files:
19329
Configuration commands:
19332
Report bugs to <bug-autoconf@gnu.org>."
19335
cat >>$CONFIG_STATUS <<_ACEOF
19337
PortAudioCpp config.status 12
19338
configured by $0, generated by GNU Autoconf 2.59,
19339
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19341
Copyright (C) 2003 Free Software Foundation, Inc.
19342
This config.status script is free software; the Free Software Foundation
19343
gives unlimited permission to copy, distribute and modify it."
19348
cat >>$CONFIG_STATUS <<\_ACEOF
19349
# If no file are specified by the user, then we need to provide default
19350
# value. By we need to know if files were specified by the user.
19356
ac_option=`expr "x$1" : 'x\([^=]*\)='`
19357
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19365
*) # This is not an option, so the user has probably given explicit
19368
ac_need_defaults=false;;
19372
# Handling of the options.
19374
cat >>$CONFIG_STATUS <<\_ACEOF
19375
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19377
--version | --vers* | -V )
19378
echo "$ac_cs_version"; exit 0 ;;
19380
# Conflict between --help and --header
19381
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
19382
Try \`$0 --help' for more information." >&5
19383
echo "$as_me: error: ambiguous option: $1
19384
Try \`$0 --help' for more information." >&2;}
19385
{ (exit 1); exit 1; }; };;
19386
--help | --hel | -h )
19387
echo "$ac_cs_usage"; exit 0 ;;
19388
--debug | --d* | -d )
19390
--file | --fil | --fi | --f )
19392
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19393
ac_need_defaults=false;;
19394
--header | --heade | --head | --hea )
19396
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19397
ac_need_defaults=false;;
19398
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
19399
| -silent | --silent | --silen | --sile | --sil | --si | --s)
19402
# This is an error.
19403
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19404
Try \`$0 --help' for more information." >&5
19405
echo "$as_me: error: unrecognized option: $1
19406
Try \`$0 --help' for more information." >&2;}
19407
{ (exit 1); exit 1; }; } ;;
19409
*) ac_config_targets="$ac_config_targets $1" ;;
19415
ac_configure_extra_args=
19417
if $ac_cs_silent; then
19419
ac_configure_extra_args="$ac_configure_extra_args --silent"
19423
cat >>$CONFIG_STATUS <<_ACEOF
19424
if \$ac_cs_recheck; then
19425
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19426
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19431
cat >>$CONFIG_STATUS <<_ACEOF
19433
# INIT-COMMANDS section.
19436
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19442
cat >>$CONFIG_STATUS <<\_ACEOF
19443
for ac_config_target in $ac_config_targets
19445
case "$ac_config_target" in
19446
# Handling of arguments.
19447
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19448
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19449
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19450
"bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
19451
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19452
"portaudiocpp.pc" ) CONFIG_FILES="$CONFIG_FILES portaudiocpp.pc" ;;
19453
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19454
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19455
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19456
{ (exit 1); exit 1; }; };;
19460
# If the user did not use the arguments to specify the items to instantiate,
19461
# then the envvar interface is used. Set only those that are not.
19462
# We use the long form for the default assignment because of an extremely
19463
# bizarre bug on SunOS 4.1.3.
19464
if $ac_need_defaults; then
19465
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19466
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19469
# Have a temporary directory for convenience. Make it in the build tree
19470
# simply because there is no reason to put it here, and in addition,
19471
# creating and moving files from /tmp can sometimes cause problems.
19472
# Create a temporary directory, and hook for its removal unless debugging.
19475
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19476
trap '{ (exit 1); exit 1; }' 1 2 13 15
19479
# Create a (secure) tmp directory for tmp files.
19482
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19483
test -n "$tmp" && test -d "$tmp"
19486
tmp=./confstat$$-$RANDOM
19487
(umask 077 && mkdir $tmp)
19490
echo "$me: cannot create a temporary directory in ." >&2
19491
{ (exit 1); exit 1; }
19496
cat >>$CONFIG_STATUS <<_ACEOF
19499
# CONFIG_FILES section.
19502
# No need to generate the scripts if there are no CONFIG_FILES.
19503
# This happens for instance when ./config.status config.h
19504
if test -n "\$CONFIG_FILES"; then
19505
# Protect against being on the right side of a sed subst in config.status.
19506
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19507
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19508
s,@SHELL@,$SHELL,;t t
19509
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19510
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19511
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19512
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19513
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19514
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19515
s,@exec_prefix@,$exec_prefix,;t t
19516
s,@prefix@,$prefix,;t t
19517
s,@program_transform_name@,$program_transform_name,;t t
19518
s,@bindir@,$bindir,;t t
19519
s,@sbindir@,$sbindir,;t t
19520
s,@libexecdir@,$libexecdir,;t t
19521
s,@datadir@,$datadir,;t t
19522
s,@sysconfdir@,$sysconfdir,;t t
19523
s,@sharedstatedir@,$sharedstatedir,;t t
19524
s,@localstatedir@,$localstatedir,;t t
19525
s,@libdir@,$libdir,;t t
19526
s,@includedir@,$includedir,;t t
19527
s,@oldincludedir@,$oldincludedir,;t t
19528
s,@infodir@,$infodir,;t t
19529
s,@mandir@,$mandir,;t t
19530
s,@build_alias@,$build_alias,;t t
19531
s,@host_alias@,$host_alias,;t t
19532
s,@target_alias@,$target_alias,;t t
19533
s,@DEFS@,$DEFS,;t t
19534
s,@ECHO_C@,$ECHO_C,;t t
19535
s,@ECHO_N@,$ECHO_N,;t t
19536
s,@ECHO_T@,$ECHO_T,;t t
19537
s,@LIBS@,$LIBS,;t t
19538
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19539
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19540
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19541
s,@CYGPATH_W@,$CYGPATH_W,;t t
19542
s,@PACKAGE@,$PACKAGE,;t t
19543
s,@VERSION@,$VERSION,;t t
19544
s,@ACLOCAL@,$ACLOCAL,;t t
19545
s,@AUTOCONF@,$AUTOCONF,;t t
19546
s,@AUTOMAKE@,$AUTOMAKE,;t t
19547
s,@AUTOHEADER@,$AUTOHEADER,;t t
19548
s,@MAKEINFO@,$MAKEINFO,;t t
19549
s,@install_sh@,$install_sh,;t t
19550
s,@STRIP@,$STRIP,;t t
19551
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19552
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19553
s,@mkdir_p@,$mkdir_p,;t t
19555
s,@SET_MAKE@,$SET_MAKE,;t t
19556
s,@am__leading_dot@,$am__leading_dot,;t t
19557
s,@AMTAR@,$AMTAR,;t t
19558
s,@am__tar@,$am__tar,;t t
19559
s,@am__untar@,$am__untar,;t t
19560
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19561
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19562
s,@MAINT@,$MAINT,;t t
19564
s,@CFLAGS@,$CFLAGS,;t t
19565
s,@LDFLAGS@,$LDFLAGS,;t t
19566
s,@CPPFLAGS@,$CPPFLAGS,;t t
19567
s,@ac_ct_CC@,$ac_ct_CC,;t t
19568
s,@EXEEXT@,$EXEEXT,;t t
19569
s,@OBJEXT@,$OBJEXT,;t t
19570
s,@DEPDIR@,$DEPDIR,;t t
19571
s,@am__include@,$am__include,;t t
19572
s,@am__quote@,$am__quote,;t t
19573
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19574
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19575
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19576
s,@CCDEPMODE@,$CCDEPMODE,;t t
19577
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19578
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19580
s,@CXXFLAGS@,$CXXFLAGS,;t t
19581
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19582
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19583
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19584
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19585
s,@build@,$build,;t t
19586
s,@build_cpu@,$build_cpu,;t t
19587
s,@build_vendor@,$build_vendor,;t t
19588
s,@build_os@,$build_os,;t t
19589
s,@host@,$host,;t t
19590
s,@host_cpu@,$host_cpu,;t t
19591
s,@host_vendor@,$host_vendor,;t t
19592
s,@host_os@,$host_os,;t t
19593
s,@EGREP@,$EGREP,;t t
19594
s,@LN_S@,$LN_S,;t t
19595
s,@ECHO@,$ECHO,;t t
19597
s,@ac_ct_AR@,$ac_ct_AR,;t t
19598
s,@RANLIB@,$RANLIB,;t t
19599
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19600
s,@DLLTOOL@,$DLLTOOL,;t t
19601
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
19603
s,@ac_ct_AS@,$ac_ct_AS,;t t
19604
s,@OBJDUMP@,$OBJDUMP,;t t
19605
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
19607
s,@CXXCPP@,$CXXCPP,;t t
19609
s,@FFLAGS@,$FFLAGS,;t t
19610
s,@ac_ct_F77@,$ac_ct_F77,;t t
19611
s,@LIBTOOL@,$LIBTOOL,;t t
19612
s,@DEFAULT_INCLUDES@,$DEFAULT_INCLUDES,;t t
19613
s,@PORTAUDIO_ROOT@,$PORTAUDIO_ROOT,;t t
19614
s,@LT_VERSION_INFO@,$LT_VERSION_INFO,;t t
19615
s,@LIBOBJS@,$LIBOBJS,;t t
19616
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19621
cat >>$CONFIG_STATUS <<\_ACEOF
19622
# Split the substitutions into bite-sized pieces for seds with
19623
# small command number limits, like on Digital OSF/1 and HP-UX.
19624
ac_max_sed_lines=48
19625
ac_sed_frag=1 # Number of current file.
19626
ac_beg=1 # First line for current file.
19627
ac_end=$ac_max_sed_lines # Line after last line for current file.
19630
while $ac_more_lines; do
19631
if test $ac_beg -gt 1; then
19632
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19634
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19636
if test ! -s $tmp/subs.frag; then
19637
ac_more_lines=false
19639
# The purpose of the label and of the branching condition is to
19640
# speed up the sed processing (if there are no `@' at all, there
19641
# is no need to browse any of the substitutions).
19642
# These are the two extra sed commands mentioned above.
19644
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19645
if test -z "$ac_sed_cmds"; then
19646
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19648
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19650
ac_sed_frag=`expr $ac_sed_frag + 1`
19652
ac_end=`expr $ac_end + $ac_max_sed_lines`
19655
if test -z "$ac_sed_cmds"; then
19658
fi # test -n "$CONFIG_FILES"
19661
cat >>$CONFIG_STATUS <<\_ACEOF
19662
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19663
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19665
- | *:- | *:-:* ) # input from stdin
19667
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19668
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19669
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19670
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19671
* ) ac_file_in=$ac_file.in ;;
19674
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19675
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19676
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19677
X"$ac_file" : 'X\(//\)[^/]' \| \
19678
X"$ac_file" : 'X\(//\)$' \| \
19679
X"$ac_file" : 'X\(/\)' \| \
19680
. : '\(.\)' 2>/dev/null ||
19682
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19683
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19684
/^X\(\/\/\)$/{ s//\1/; q; }
19685
/^X\(\/\).*/{ s//\1/; q; }
19687
{ if $as_mkdir_p; then
19692
while test ! -d "$as_dir"; do
19693
as_dirs="$as_dir $as_dirs"
19694
as_dir=`(dirname "$as_dir") 2>/dev/null ||
19695
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19696
X"$as_dir" : 'X\(//\)[^/]' \| \
19697
X"$as_dir" : 'X\(//\)$' \| \
19698
X"$as_dir" : 'X\(/\)' \| \
19699
. : '\(.\)' 2>/dev/null ||
19701
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19702
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19703
/^X\(\/\/\)$/{ s//\1/; q; }
19704
/^X\(\/\).*/{ s//\1/; q; }
19707
test ! -n "$as_dirs" || mkdir $as_dirs
19708
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19709
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19710
{ (exit 1); exit 1; }; }; }
19714
if test "$ac_dir" != .; then
19715
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19716
# A "../" for each directory in $ac_dir_suffix.
19717
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19719
ac_dir_suffix= ac_top_builddir=
19723
.) # No --srcdir option. We are building in place.
19725
if test -z "$ac_top_builddir"; then
19728
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19730
[\\/]* | ?:[\\/]* ) # Absolute path.
19731
ac_srcdir=$srcdir$ac_dir_suffix;
19732
ac_top_srcdir=$srcdir ;;
19733
*) # Relative path.
19734
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19735
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19738
# Do not use `cd foo && pwd` to compute absolute paths, because
19739
# the directories may not exist.
19741
.) ac_abs_builddir="$ac_dir";;
19744
.) ac_abs_builddir=`pwd`;;
19745
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19746
*) ac_abs_builddir=`pwd`/"$ac_dir";;
19749
case $ac_abs_builddir in
19750
.) ac_abs_top_builddir=${ac_top_builddir}.;;
19752
case ${ac_top_builddir}. in
19753
.) ac_abs_top_builddir=$ac_abs_builddir;;
19754
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19755
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19758
case $ac_abs_builddir in
19759
.) ac_abs_srcdir=$ac_srcdir;;
19762
.) ac_abs_srcdir=$ac_abs_builddir;;
19763
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19764
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19767
case $ac_abs_builddir in
19768
.) ac_abs_top_srcdir=$ac_top_srcdir;;
19770
case $ac_top_srcdir in
19771
.) ac_abs_top_srcdir=$ac_abs_builddir;;
19772
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19773
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19779
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19780
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19783
# Let's still pretend it is `configure' which instantiates (i.e., don't
19784
# use $as_me), people would be surprised to read:
19785
# /* config.h. Generated by config.status. */
19786
if test x"$ac_file" = x-; then
19789
configure_input="$ac_file. "
19791
configure_input=$configure_input"Generated from `echo $ac_file_in |
19792
sed 's,.*/,,'` by configure."
19794
# First look for the input files in the build tree, otherwise in the
19796
ac_file_inputs=`IFS=:
19797
for f in $ac_file_in; do
19799
-) echo $tmp/stdin ;;
19801
# Absolute (can't be DOS-style, as IFS=:)
19802
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19803
echo "$as_me: error: cannot find input file: $f" >&2;}
19804
{ (exit 1); exit 1; }; }
19807
if test -f "$f"; then
19810
elif test -f "$srcdir/$f"; then
19815
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19816
echo "$as_me: error: cannot find input file: $f" >&2;}
19817
{ (exit 1); exit 1; }; }
19820
done` || { (exit 1); exit 1; }
19822
if test x"$ac_file" != x-; then
19823
{ echo "$as_me:$LINENO: creating $ac_file" >&5
19824
echo "$as_me: creating $ac_file" >&6;}
19828
cat >>$CONFIG_STATUS <<_ACEOF
19832
cat >>$CONFIG_STATUS <<\_ACEOF
19834
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19835
s,@configure_input@,$configure_input,;t t
19836
s,@srcdir@,$ac_srcdir,;t t
19837
s,@abs_srcdir@,$ac_abs_srcdir,;t t
19838
s,@top_srcdir@,$ac_top_srcdir,;t t
19839
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19840
s,@builddir@,$ac_builddir,;t t
19841
s,@abs_builddir@,$ac_abs_builddir,;t t
19842
s,@top_builddir@,$ac_top_builddir,;t t
19843
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19844
s,@INSTALL@,$ac_INSTALL,;t t
19845
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19847
if test x"$ac_file" != x-; then
19848
mv $tmp/out $ac_file
19856
cat >>$CONFIG_STATUS <<\_ACEOF
19859
# CONFIG_COMMANDS section.
19861
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19862
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19863
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19864
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19865
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19866
X"$ac_dest" : 'X\(//\)[^/]' \| \
19867
X"$ac_dest" : 'X\(//\)$' \| \
19868
X"$ac_dest" : 'X\(/\)' \| \
19869
. : '\(.\)' 2>/dev/null ||
19871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19873
/^X\(\/\/\)$/{ s//\1/; q; }
19874
/^X\(\/\).*/{ s//\1/; q; }
19876
{ if $as_mkdir_p; then
19881
while test ! -d "$as_dir"; do
19882
as_dirs="$as_dir $as_dirs"
19883
as_dir=`(dirname "$as_dir") 2>/dev/null ||
19884
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19885
X"$as_dir" : 'X\(//\)[^/]' \| \
19886
X"$as_dir" : 'X\(//\)$' \| \
19887
X"$as_dir" : 'X\(/\)' \| \
19888
. : '\(.\)' 2>/dev/null ||
19890
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19891
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19892
/^X\(\/\/\)$/{ s//\1/; q; }
19893
/^X\(\/\).*/{ s//\1/; q; }
19896
test ! -n "$as_dirs" || mkdir $as_dirs
19897
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19898
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19899
{ (exit 1); exit 1; }; }; }
19903
if test "$ac_dir" != .; then
19904
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19905
# A "../" for each directory in $ac_dir_suffix.
19906
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19908
ac_dir_suffix= ac_top_builddir=
19912
.) # No --srcdir option. We are building in place.
19914
if test -z "$ac_top_builddir"; then
19917
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19919
[\\/]* | ?:[\\/]* ) # Absolute path.
19920
ac_srcdir=$srcdir$ac_dir_suffix;
19921
ac_top_srcdir=$srcdir ;;
19922
*) # Relative path.
19923
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19924
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19927
# Do not use `cd foo && pwd` to compute absolute paths, because
19928
# the directories may not exist.
19930
.) ac_abs_builddir="$ac_dir";;
19933
.) ac_abs_builddir=`pwd`;;
19934
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19935
*) ac_abs_builddir=`pwd`/"$ac_dir";;
19938
case $ac_abs_builddir in
19939
.) ac_abs_top_builddir=${ac_top_builddir}.;;
19941
case ${ac_top_builddir}. in
19942
.) ac_abs_top_builddir=$ac_abs_builddir;;
19943
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19944
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19947
case $ac_abs_builddir in
19948
.) ac_abs_srcdir=$ac_srcdir;;
19951
.) ac_abs_srcdir=$ac_abs_builddir;;
19952
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19953
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19956
case $ac_abs_builddir in
19957
.) ac_abs_top_srcdir=$ac_top_srcdir;;
19959
case $ac_top_srcdir in
19960
.) ac_abs_top_srcdir=$ac_abs_builddir;;
19961
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19962
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19967
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19968
echo "$as_me: executing $ac_dest commands" >&6;}
19970
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19971
# Strip MF so we end up with the name of the file.
19972
mf=`echo "$mf" | sed -e 's/:.*$//'`
19973
# Check whether this is an Automake generated Makefile or not.
19974
# We used to match only the files named `Makefile.in', but
19975
# some people rename them; so instead we look at the file content.
19976
# Grep'ing the first line is not enough: some people post-process
19977
# each Makefile.in and add a new line on top of each file to say so.
19978
# So let's grep whole file.
19979
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19980
dirpart=`(dirname "$mf") 2>/dev/null ||
19981
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19982
X"$mf" : 'X\(//\)[^/]' \| \
19983
X"$mf" : 'X\(//\)$' \| \
19984
X"$mf" : 'X\(/\)' \| \
19985
. : '\(.\)' 2>/dev/null ||
19987
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19988
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19989
/^X\(\/\/\)$/{ s//\1/; q; }
19990
/^X\(\/\).*/{ s//\1/; q; }
19995
# Extract the definition of DEPDIR, am__include, and am__quote
19996
# from the Makefile without running `make'.
19997
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19998
test -z "$DEPDIR" && continue
19999
am__include=`sed -n 's/^am__include = //p' < "$mf"`
20000
test -z "am__include" && continue
20001
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20002
# When using ansi2knr, U may be empty or an underscore; expand it
20003
U=`sed -n 's/^U = //p' < "$mf"`
20004
# Find all dependency output files, they are included files with
20005
# $(DEPDIR) in their names. We invoke sed twice because it is the
20006
# simplest approach to changing $(DEPDIR) to its actual value in the
20008
for file in `sed -n "
20009
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20010
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20011
# Make sure the directory exists.
20012
test -f "$dirpart/$file" && continue
20013
fdir=`(dirname "$file") 2>/dev/null ||
20014
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20015
X"$file" : 'X\(//\)[^/]' \| \
20016
X"$file" : 'X\(//\)$' \| \
20017
X"$file" : 'X\(/\)' \| \
20018
. : '\(.\)' 2>/dev/null ||
20020
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20021
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20022
/^X\(\/\/\)$/{ s//\1/; q; }
20023
/^X\(\/\).*/{ s//\1/; q; }
20025
{ if $as_mkdir_p; then
20026
mkdir -p $dirpart/$fdir
20028
as_dir=$dirpart/$fdir
20030
while test ! -d "$as_dir"; do
20031
as_dirs="$as_dir $as_dirs"
20032
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20033
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20034
X"$as_dir" : 'X\(//\)[^/]' \| \
20035
X"$as_dir" : 'X\(//\)$' \| \
20036
X"$as_dir" : 'X\(/\)' \| \
20037
. : '\(.\)' 2>/dev/null ||
20039
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20040
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20041
/^X\(\/\/\)$/{ s//\1/; q; }
20042
/^X\(\/\).*/{ s//\1/; q; }
20045
test ! -n "$as_dirs" || mkdir $as_dirs
20046
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20047
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20048
{ (exit 1); exit 1; }; }; }
20050
# echo "creating $dirpart/$file"
20051
echo '# dummy' > "$dirpart/$file"
20059
cat >>$CONFIG_STATUS <<\_ACEOF
20061
{ (exit 0); exit 0; }
20063
chmod +x $CONFIG_STATUS
20064
ac_clean_files=$ac_clean_files_save
20067
# configure is writing to config.log, and then calls config.status.
20068
# config.status does its own redirection, appending to config.log.
20069
# Unfortunately, on DOS this fails, as config.log is still kept open
20070
# by configure, so config.status won't be able to write to it; its
20071
# output is simply discarded. So we exec the FD to /dev/null,
20072
# effectively closing config.log, so it can be properly (re)opened and
20073
# appended to by config.status. When coming back to configure, we
20074
# need to make the FD available again.
20075
if test "$no_create" != yes; then
20077
ac_config_status_args=
20078
test "$silent" = yes &&
20079
ac_config_status_args="$ac_config_status_args --quiet"
20081
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20083
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20084
# would make configure fail if this is the last instruction.
20085
$ac_cs_success || { (exit 1); exit 1; }