2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="configure.in"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE flite_basic flite_kal glib_include glib_libs spdconfdir snddatadir modulebindir moduleconfdir pidpath LIB_SDAUDIO_CURRENT LIB_SDAUDIO_REVISION LIB_SDAUDIO_AGE LIB_SPD_CURRENT LIB_SPD_REVISION LIB_SPD_AGE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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_pidpath_set=${pidpath+set}
924
ac_env_pidpath_value=$pidpath
925
ac_cv_env_pidpath_set=${pidpath+set}
926
ac_cv_env_pidpath_value=$pidpath
927
ac_env_CPP_set=${CPP+set}
928
ac_env_CPP_value=$CPP
929
ac_cv_env_CPP_set=${CPP+set}
930
ac_cv_env_CPP_value=$CPP
931
ac_env_CXX_set=${CXX+set}
932
ac_env_CXX_value=$CXX
933
ac_cv_env_CXX_set=${CXX+set}
934
ac_cv_env_CXX_value=$CXX
935
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936
ac_env_CXXFLAGS_value=$CXXFLAGS
937
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939
ac_env_CXXCPP_set=${CXXCPP+set}
940
ac_env_CXXCPP_value=$CXXCPP
941
ac_cv_env_CXXCPP_set=${CXXCPP+set}
942
ac_cv_env_CXXCPP_value=$CXXCPP
943
ac_env_F77_set=${F77+set}
944
ac_env_F77_value=$F77
945
ac_cv_env_F77_set=${F77+set}
946
ac_cv_env_F77_value=$F77
947
ac_env_FFLAGS_set=${FFLAGS+set}
948
ac_env_FFLAGS_value=$FFLAGS
949
ac_cv_env_FFLAGS_set=${FFLAGS+set}
950
ac_cv_env_FFLAGS_value=$FFLAGS
953
# Report the --help message.
955
if test "$ac_init_help" = "long"; then
956
# Omit some internal or obsolete options to make the list less imposing.
957
# This message is too long to be a string in the A/UX 3.1 sh.
959
\`configure' configures this package to adapt to many kinds of systems.
961
Usage: $0 [OPTION]... [VAR=VALUE]...
963
To assign environment variables (e.g., CC, CFLAGS...), specify them as
964
VAR=VALUE. See below for descriptions of some of the useful variables.
966
Defaults for the options are specified in brackets.
969
-h, --help display this help and exit
970
--help=short display options specific to this package
971
--help=recursive display the short help of all the included packages
972
-V, --version display version information and exit
973
-q, --quiet, --silent do not print \`checking...' messages
974
--cache-file=FILE cache test results in FILE [disabled]
975
-C, --config-cache alias for \`--cache-file=config.cache'
976
-n, --no-create do not create output files
977
--srcdir=DIR find the sources in DIR [configure dir or \`..']
982
Installation directories:
983
--prefix=PREFIX install architecture-independent files in PREFIX
985
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988
By default, \`make install' will install all the files in
989
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991
for instance \`--prefix=\$HOME'.
993
For better control, use the options below.
995
Fine tuning of the installation directories:
996
--bindir=DIR user executables [EPREFIX/bin]
997
--sbindir=DIR system admin executables [EPREFIX/sbin]
998
--libexecdir=DIR program executables [EPREFIX/libexec]
999
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1000
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003
--libdir=DIR object code libraries [EPREFIX/lib]
1004
--includedir=DIR C header files [PREFIX/include]
1005
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1006
--infodir=DIR info documentation [PREFIX/info]
1007
--mandir=DIR man documentation [PREFIX/man]
1013
--program-prefix=PREFIX prepend PREFIX to installed program names
1014
--program-suffix=SUFFIX append SUFFIX to installed program names
1015
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1018
--build=BUILD configure for building on BUILD [guessed]
1019
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1023
if test -n "$ac_init_help"; then
1028
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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
pidpath Absolute path to a pid file
1058
CXX C++ compiler command
1059
CXXFLAGS C++ compiler flags
1060
CXXCPP C++ preprocessor
1061
F77 Fortran 77 compiler command
1062
FFLAGS Fortran 77 compiler flags
1064
Use these variables to override the choices made by `configure' or to help
1065
it to find libraries and programs with nonstandard names/locations.
1070
if test "$ac_init_help" = "recursive"; then
1071
# If there are subdirs, report their specific --help.
1073
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074
test -d $ac_dir || continue
1077
if test "$ac_dir" != .; then
1078
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079
# A "../" for each directory in $ac_dir_suffix.
1080
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082
ac_dir_suffix= ac_top_builddir=
1086
.) # No --srcdir option. We are building in place.
1088
if test -z "$ac_top_builddir"; then
1091
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093
[\\/]* | ?:[\\/]* ) # Absolute path.
1094
ac_srcdir=$srcdir$ac_dir_suffix;
1095
ac_top_srcdir=$srcdir ;;
1097
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101
# Do not use `cd foo && pwd` to compute absolute paths, because
1102
# the directories may not exist.
1104
.) ac_abs_builddir="$ac_dir";;
1107
.) ac_abs_builddir=`pwd`;;
1108
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1112
case $ac_abs_builddir in
1113
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115
case ${ac_top_builddir}. in
1116
.) ac_abs_top_builddir=$ac_abs_builddir;;
1117
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121
case $ac_abs_builddir in
1122
.) ac_abs_srcdir=$ac_srcdir;;
1125
.) ac_abs_srcdir=$ac_abs_builddir;;
1126
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130
case $ac_abs_builddir in
1131
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133
case $ac_top_srcdir in
1134
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1135
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141
# Check for guested configure; otherwise get Cygnus style configure.
1142
if test -f $ac_srcdir/configure.gnu; then
1144
$SHELL $ac_srcdir/configure.gnu --help=recursive
1145
elif test -f $ac_srcdir/configure; then
1147
$SHELL $ac_srcdir/configure --help=recursive
1148
elif test -f $ac_srcdir/configure.ac ||
1149
test -f $ac_srcdir/configure.in; then
1151
$ac_configure --help
1153
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159
test -n "$ac_init_help" && exit 0
1160
if $ac_init_version; then
1163
Copyright (C) 2003 Free Software Foundation, Inc.
1164
This configure script is free software; the Free Software Foundation
1165
gives unlimited permission to copy, distribute and modify it.
1171
This file contains any messages produced by compilers while
1172
running configure, to aid debugging if configure makes a mistake.
1174
It was created by $as_me, which was
1175
generated by GNU Autoconf 2.59. Invocation command line was
1186
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209
test -z "$as_dir" && as_dir=.
1210
echo "PATH: $as_dir"
1225
# Keep a trace of the command line.
1226
# Strip out --no-create and --no-recursion so they do not pile up.
1227
# Strip out --silent because we don't want to record it for future runs.
1228
# Also quote any args containing shell meta-characters.
1229
# Make two passes to allow for proper duplicate-argument suppression.
1234
ac_must_keep_next=false
1240
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242
| -silent | --silent | --silen | --sile | --sil)
1244
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251
if test $ac_must_keep_next = true; then
1252
ac_must_keep_next=false # Got value, back to normal.
1255
*=* | --config-cache | -C | -disable-* | --disable-* \
1256
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258
| -with-* | --with-* | -without-* | --without-* | --x)
1259
case "$ac_configure_args0 " in
1260
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263
-* ) ac_must_keep_next=true ;;
1266
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267
# Get rid of the leading space.
1273
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
# When interrupted or exit'd, cleanup temporary files, and complete
1277
# config.log. We remove comments because anyway the quotes in there
1278
# would cause problems or look ugly.
1279
# WARNING: Be sure not to use single quotes in there, as some shells,
1280
# such as our DU 5.0 friend, will then `close' the trap.
1281
trap 'exit_status=$?
1282
# Save into config.log some information that might help in debugging.
1287
## ---------------- ##
1288
## Cache variables. ##
1289
## ---------------- ##
1292
# The following way of writing the cache mishandles newlines in values,
1295
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310
## ----------------- ##
1311
## Output variables. ##
1312
## ----------------- ##
1315
for ac_var in $ac_subst_vars
1317
eval ac_val=$`echo $ac_var`
1318
echo "$ac_var='"'"'$ac_val'"'"'"
1322
if test -n "$ac_subst_files"; then
1329
for ac_var in $ac_subst_files
1331
eval ac_val=$`echo $ac_var`
1332
echo "$ac_var='"'"'$ac_val'"'"'"
1337
if test -s confdefs.h; then
1344
sed "/^$/d" confdefs.h | sort
1347
test "$ac_signal" != 0 &&
1348
echo "$as_me: caught signal $ac_signal"
1349
echo "$as_me: exit $exit_status"
1351
rm -f core *.core &&
1352
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355
for ac_signal in 1 2 13 15; do
1356
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1361
rm -rf conftest* confdefs.h
1362
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365
# Predefined preprocessor variables.
1367
cat >>confdefs.h <<_ACEOF
1368
#define PACKAGE_NAME "$PACKAGE_NAME"
1372
cat >>confdefs.h <<_ACEOF
1373
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377
cat >>confdefs.h <<_ACEOF
1378
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382
cat >>confdefs.h <<_ACEOF
1383
#define PACKAGE_STRING "$PACKAGE_STRING"
1387
cat >>confdefs.h <<_ACEOF
1388
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392
# Let the site file select an alternate cache file if it wants to.
1393
# Prefer explicitly selected file to automatically selected ones.
1394
if test -z "$CONFIG_SITE"; then
1395
if test "x$prefix" != xNONE; then
1396
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401
for ac_site_file in $CONFIG_SITE; do
1402
if test -r "$ac_site_file"; then
1403
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404
echo "$as_me: loading site script $ac_site_file" >&6;}
1405
sed 's/^/| /' "$ac_site_file" >&5
1410
if test -r "$cache_file"; then
1411
# Some versions of bash will fail to source /dev/null (special
1412
# files actually), so we avoid doing that.
1413
if test -f "$cache_file"; then
1414
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415
echo "$as_me: loading cache $cache_file" >&6;}
1417
[\\/]* | ?:[\\/]* ) . $cache_file;;
1418
*) . ./$cache_file;;
1422
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423
echo "$as_me: creating cache $cache_file" >&6;}
1427
# Check that the precious variables saved in the cache have kept the same
1429
ac_cache_corrupted=false
1430
for ac_var in `(set) 2>&1 |
1431
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433
eval ac_new_set=\$ac_env_${ac_var}_set
1434
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435
eval ac_new_val="\$ac_env_${ac_var}_value"
1436
case $ac_old_set,$ac_new_set in
1438
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440
ac_cache_corrupted=: ;;
1442
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444
ac_cache_corrupted=: ;;
1447
if test "x$ac_old_val" != "x$ac_new_val"; then
1448
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1451
echo "$as_me: former value: $ac_old_val" >&2;}
1452
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1453
echo "$as_me: current value: $ac_new_val" >&2;}
1454
ac_cache_corrupted=:
1457
# Pass precious variables to config.status.
1458
if test "$ac_new_set" = set; then
1460
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462
*) ac_arg=$ac_var=$ac_new_val ;;
1464
case " $ac_configure_args " in
1465
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470
if $ac_cache_corrupted; then
1471
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475
{ (exit 1); exit 1; }; }
1479
ac_cpp='$CPP $CPPFLAGS'
1480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
ac_cpp='$CPP $CPPFLAGS'
1505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
ac_cpp='$CPP $CPPFLAGS'
1512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
if test -n "$ac_tool_prefix"; then
1516
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518
echo "$as_me:$LINENO: checking for $ac_word" >&5
1519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520
if test "${ac_cv_prog_CC+set}" = set; then
1521
echo $ECHO_N "(cached) $ECHO_C" >&6
1523
if test -n "$CC"; then
1524
ac_cv_prog_CC="$CC" # Let the user override the test.
1526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530
test -z "$as_dir" && as_dir=.
1531
for ac_exec_ext in '' $ac_executable_extensions; do
1532
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543
if test -n "$CC"; then
1544
echo "$as_me:$LINENO: result: $CC" >&5
1545
echo "${ECHO_T}$CC" >&6
1547
echo "$as_me:$LINENO: result: no" >&5
1548
echo "${ECHO_T}no" >&6
1552
if test -z "$ac_cv_prog_CC"; then
1554
# Extract the first word of "gcc", so it can be a program name with args.
1555
set dummy gcc; ac_word=$2
1556
echo "$as_me:$LINENO: checking for $ac_word" >&5
1557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559
echo $ECHO_N "(cached) $ECHO_C" >&6
1561
if test -n "$ac_ct_CC"; then
1562
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568
test -z "$as_dir" && as_dir=.
1569
for ac_exec_ext in '' $ac_executable_extensions; do
1570
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571
ac_cv_prog_ac_ct_CC="gcc"
1572
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581
if test -n "$ac_ct_CC"; then
1582
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583
echo "${ECHO_T}$ac_ct_CC" >&6
1585
echo "$as_me:$LINENO: result: no" >&5
1586
echo "${ECHO_T}no" >&6
1594
if test -z "$CC"; then
1595
if test -n "$ac_tool_prefix"; then
1596
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597
set dummy ${ac_tool_prefix}cc; ac_word=$2
1598
echo "$as_me:$LINENO: checking for $ac_word" >&5
1599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600
if test "${ac_cv_prog_CC+set}" = set; then
1601
echo $ECHO_N "(cached) $ECHO_C" >&6
1603
if test -n "$CC"; then
1604
ac_cv_prog_CC="$CC" # Let the user override the test.
1606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610
test -z "$as_dir" && as_dir=.
1611
for ac_exec_ext in '' $ac_executable_extensions; do
1612
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613
ac_cv_prog_CC="${ac_tool_prefix}cc"
1614
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623
if test -n "$CC"; then
1624
echo "$as_me:$LINENO: result: $CC" >&5
1625
echo "${ECHO_T}$CC" >&6
1627
echo "$as_me:$LINENO: result: no" >&5
1628
echo "${ECHO_T}no" >&6
1632
if test -z "$ac_cv_prog_CC"; then
1634
# Extract the first word of "cc", so it can be a program name with args.
1635
set dummy cc; ac_word=$2
1636
echo "$as_me:$LINENO: checking for $ac_word" >&5
1637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639
echo $ECHO_N "(cached) $ECHO_C" >&6
1641
if test -n "$ac_ct_CC"; then
1642
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648
test -z "$as_dir" && as_dir=.
1649
for ac_exec_ext in '' $ac_executable_extensions; do
1650
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651
ac_cv_prog_ac_ct_CC="cc"
1652
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661
if test -n "$ac_ct_CC"; then
1662
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663
echo "${ECHO_T}$ac_ct_CC" >&6
1665
echo "$as_me:$LINENO: result: no" >&5
1666
echo "${ECHO_T}no" >&6
1675
if test -z "$CC"; then
1676
# Extract the first word of "cc", so it can be a program name with args.
1677
set dummy cc; ac_word=$2
1678
echo "$as_me:$LINENO: checking for $ac_word" >&5
1679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680
if test "${ac_cv_prog_CC+set}" = set; then
1681
echo $ECHO_N "(cached) $ECHO_C" >&6
1683
if test -n "$CC"; then
1684
ac_cv_prog_CC="$CC" # Let the user override the test.
1687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691
test -z "$as_dir" && as_dir=.
1692
for ac_exec_ext in '' $ac_executable_extensions; do
1693
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695
ac_prog_rejected=yes
1699
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705
if test $ac_prog_rejected = yes; then
1706
# We found a bogon in the path, so make sure we never use it.
1707
set dummy $ac_cv_prog_CC
1709
if test $# != 0; then
1710
# We chose a different compiler from the bogus one.
1711
# However, it has the same basename, so the bogon will be chosen
1712
# first if we set CC to just the basename; use the full file name.
1714
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1720
if test -n "$CC"; then
1721
echo "$as_me:$LINENO: result: $CC" >&5
1722
echo "${ECHO_T}$CC" >&6
1724
echo "$as_me:$LINENO: result: no" >&5
1725
echo "${ECHO_T}no" >&6
1729
if test -z "$CC"; then
1730
if test -n "$ac_tool_prefix"; then
1733
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735
echo "$as_me:$LINENO: checking for $ac_word" >&5
1736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737
if test "${ac_cv_prog_CC+set}" = set; then
1738
echo $ECHO_N "(cached) $ECHO_C" >&6
1740
if test -n "$CC"; then
1741
ac_cv_prog_CC="$CC" # Let the user override the test.
1743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747
test -z "$as_dir" && as_dir=.
1748
for ac_exec_ext in '' $ac_executable_extensions; do
1749
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760
if test -n "$CC"; then
1761
echo "$as_me:$LINENO: result: $CC" >&5
1762
echo "${ECHO_T}$CC" >&6
1764
echo "$as_me:$LINENO: result: no" >&5
1765
echo "${ECHO_T}no" >&6
1768
test -n "$CC" && break
1771
if test -z "$CC"; then
1775
# Extract the first word of "$ac_prog", so it can be a program name with args.
1776
set dummy $ac_prog; ac_word=$2
1777
echo "$as_me:$LINENO: checking for $ac_word" >&5
1778
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780
echo $ECHO_N "(cached) $ECHO_C" >&6
1782
if test -n "$ac_ct_CC"; then
1783
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789
test -z "$as_dir" && as_dir=.
1790
for ac_exec_ext in '' $ac_executable_extensions; do
1791
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792
ac_cv_prog_ac_ct_CC="$ac_prog"
1793
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802
if test -n "$ac_ct_CC"; then
1803
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804
echo "${ECHO_T}$ac_ct_CC" >&6
1806
echo "$as_me:$LINENO: result: no" >&5
1807
echo "${ECHO_T}no" >&6
1810
test -n "$ac_ct_CC" && break
1819
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820
See \`config.log' for more details." >&5
1821
echo "$as_me: error: no acceptable C compiler found in \$PATH
1822
See \`config.log' for more details." >&2;}
1823
{ (exit 1); exit 1; }; }
1825
# Provide some information about the compiler.
1826
echo "$as_me:$LINENO:" \
1827
"checking for C compiler version" >&5
1828
ac_compiler=`set X $ac_compile; echo $2`
1829
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830
(eval $ac_compiler --version </dev/null >&5) 2>&5
1832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833
(exit $ac_status); }
1834
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835
(eval $ac_compiler -v </dev/null >&5) 2>&5
1837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838
(exit $ac_status); }
1839
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840
(eval $ac_compiler -V </dev/null >&5) 2>&5
1842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843
(exit $ac_status); }
1845
cat >conftest.$ac_ext <<_ACEOF
1848
cat confdefs.h >>conftest.$ac_ext
1849
cat >>conftest.$ac_ext <<_ACEOF
1850
/* end confdefs.h. */
1860
ac_clean_files_save=$ac_clean_files
1861
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862
# Try to create an executable without -o first, disregard a.out.
1863
# It will help us diagnose broken compilers, and finding out an intuition
1865
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869
(eval $ac_link_default) 2>&5
1871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872
(exit $ac_status); }; then
1873
# Find the output, starting from the most likely. This scheme is
1874
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1877
# Be careful to initialize this variable, since it used to be cached.
1878
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1880
# b.out is created by i960 compilers.
1881
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883
test -f "$ac_file" || continue
1885
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1888
# This is the source file.
1891
# We found the default executable, but exeext='' is most
1895
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896
# FIXME: I believe we export ac_cv_exeext for Libtool,
1897
# but it would be cool to find out if it's true. Does anybody
1898
# maintain Libtool? --akim.
1906
echo "$as_me: failed program was:" >&5
1907
sed 's/^/| /' conftest.$ac_ext >&5
1909
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910
See \`config.log' for more details." >&5
1911
echo "$as_me: error: C compiler cannot create executables
1912
See \`config.log' for more details." >&2;}
1913
{ (exit 77); exit 77; }; }
1916
ac_exeext=$ac_cv_exeext
1917
echo "$as_me:$LINENO: result: $ac_file" >&5
1918
echo "${ECHO_T}$ac_file" >&6
1920
# Check the compiler produces executables we can run. If not, either
1921
# the compiler is broken, or we cross compile.
1922
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925
# If not cross compiling, check that we can run a simple program.
1926
if test "$cross_compiling" != yes; then
1927
if { ac_try='./$ac_file'
1928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932
(exit $ac_status); }; }; then
1935
if test "$cross_compiling" = maybe; then
1938
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939
If you meant to cross compile, use \`--host'.
1940
See \`config.log' for more details." >&5
1941
echo "$as_me: error: cannot run C compiled programs.
1942
If you meant to cross compile, use \`--host'.
1943
See \`config.log' for more details." >&2;}
1944
{ (exit 1); exit 1; }; }
1948
echo "$as_me:$LINENO: result: yes" >&5
1949
echo "${ECHO_T}yes" >&6
1951
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952
ac_clean_files=$ac_clean_files_save
1953
# Check the compiler produces executables we can run. If not, either
1954
# the compiler is broken, or we cross compile.
1955
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958
echo "${ECHO_T}$cross_compiling" >&6
1960
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963
(eval $ac_link) 2>&5
1965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966
(exit $ac_status); }; then
1967
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1968
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969
# work properly (i.e., refer to `conftest.exe'), while it won't with
1971
for ac_file in conftest.exe conftest conftest.*; do
1972
test -f "$ac_file" || continue
1974
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1982
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983
See \`config.log' for more details." >&5
1984
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985
See \`config.log' for more details." >&2;}
1986
{ (exit 1); exit 1; }; }
1989
rm -f conftest$ac_cv_exeext
1990
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991
echo "${ECHO_T}$ac_cv_exeext" >&6
1993
rm -f conftest.$ac_ext
1994
EXEEXT=$ac_cv_exeext
1996
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998
if test "${ac_cv_objext+set}" = set; then
1999
echo $ECHO_N "(cached) $ECHO_C" >&6
2001
cat >conftest.$ac_ext <<_ACEOF
2004
cat confdefs.h >>conftest.$ac_ext
2005
cat >>conftest.$ac_ext <<_ACEOF
2006
/* end confdefs.h. */
2016
rm -f conftest.o conftest.obj
2017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018
(eval $ac_compile) 2>&5
2020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021
(exit $ac_status); }; then
2022
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2024
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2030
echo "$as_me: failed program was:" >&5
2031
sed 's/^/| /' conftest.$ac_ext >&5
2033
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034
See \`config.log' for more details." >&5
2035
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036
See \`config.log' for more details." >&2;}
2037
{ (exit 1); exit 1; }; }
2040
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043
echo "${ECHO_T}$ac_cv_objext" >&6
2044
OBJEXT=$ac_cv_objext
2046
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049
echo $ECHO_N "(cached) $ECHO_C" >&6
2051
cat >conftest.$ac_ext <<_ACEOF
2054
cat confdefs.h >>conftest.$ac_ext
2055
cat >>conftest.$ac_ext <<_ACEOF
2056
/* end confdefs.h. */
2069
rm -f conftest.$ac_objext
2070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071
(eval $ac_compile) 2>conftest.er1
2073
grep -v '^ *+' conftest.er1 >conftest.err
2075
cat conftest.err >&5
2076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077
(exit $ac_status); } &&
2078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083
(exit $ac_status); }; } &&
2084
{ ac_try='test -s conftest.$ac_objext'
2085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089
(exit $ac_status); }; }; then
2092
echo "$as_me: failed program was:" >&5
2093
sed 's/^/| /' conftest.$ac_ext >&5
2097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103
GCC=`test $ac_compiler_gnu = yes && echo yes`
2104
ac_test_CFLAGS=${CFLAGS+set}
2105
ac_save_CFLAGS=$CFLAGS
2107
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109
if test "${ac_cv_prog_cc_g+set}" = set; then
2110
echo $ECHO_N "(cached) $ECHO_C" >&6
2112
cat >conftest.$ac_ext <<_ACEOF
2115
cat confdefs.h >>conftest.$ac_ext
2116
cat >>conftest.$ac_ext <<_ACEOF
2117
/* end confdefs.h. */
2127
rm -f conftest.$ac_objext
2128
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129
(eval $ac_compile) 2>conftest.er1
2131
grep -v '^ *+' conftest.er1 >conftest.err
2133
cat conftest.err >&5
2134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135
(exit $ac_status); } &&
2136
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141
(exit $ac_status); }; } &&
2142
{ ac_try='test -s conftest.$ac_objext'
2143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147
(exit $ac_status); }; }; then
2150
echo "$as_me: failed program was:" >&5
2151
sed 's/^/| /' conftest.$ac_ext >&5
2155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159
if test "$ac_test_CFLAGS" = set; then
2160
CFLAGS=$ac_save_CFLAGS
2161
elif test $ac_cv_prog_cc_g = yes; then
2162
if test "$GCC" = yes; then
2168
if test "$GCC" = yes; then
2174
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177
echo $ECHO_N "(cached) $ECHO_C" >&6
2179
ac_cv_prog_cc_stdc=no
2181
cat >conftest.$ac_ext <<_ACEOF
2184
cat confdefs.h >>conftest.$ac_ext
2185
cat >>conftest.$ac_ext <<_ACEOF
2186
/* end confdefs.h. */
2189
#include <sys/types.h>
2190
#include <sys/stat.h>
2191
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192
struct buf { int x; };
2193
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194
static char *e (p, i)
2200
static char *f (char * (*g) (char **, int), char **p, ...)
2205
s = g (p, va_arg (v,int));
2210
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211
function prototypes and stuff, but not '\xHH' hex character constants.
2212
These don't provoke an error unfortunately, instead are silently treated
2213
as 'x'. The following induces an error, until -std1 is added to get
2214
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215
array size at least. It's necessary to write '\x00'==0 to get something
2216
that's true only with -std1. */
2217
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219
int test (int i, double x);
2220
struct s1 {int (*f) (int a);};
2221
struct s2 {int (*f) (double a);};
2222
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2228
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2233
# Don't try gcc -ansi; that turns off useful extensions and
2234
# breaks some systems' header files.
2235
# AIX -qlanglvl=ansi
2236
# Ultrix and OSF/1 -std1
2237
# HP-UX 10.20 and later -Ae
2238
# HP-UX older versions -Aa -D_HPUX_SOURCE
2239
# SVR4 -Xc -D__EXTENSIONS__
2240
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242
CC="$ac_save_CC $ac_arg"
2243
rm -f conftest.$ac_objext
2244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245
(eval $ac_compile) 2>conftest.er1
2247
grep -v '^ *+' conftest.er1 >conftest.err
2249
cat conftest.err >&5
2250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251
(exit $ac_status); } &&
2252
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257
(exit $ac_status); }; } &&
2258
{ ac_try='test -s conftest.$ac_objext'
2259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263
(exit $ac_status); }; }; then
2264
ac_cv_prog_cc_stdc=$ac_arg
2267
echo "$as_me: failed program was:" >&5
2268
sed 's/^/| /' conftest.$ac_ext >&5
2271
rm -f conftest.err conftest.$ac_objext
2273
rm -f conftest.$ac_ext conftest.$ac_objext
2278
case "x$ac_cv_prog_cc_stdc" in
2280
echo "$as_me:$LINENO: result: none needed" >&5
2281
echo "${ECHO_T}none needed" >&6 ;;
2283
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285
CC="$CC $ac_cv_prog_cc_stdc" ;;
2288
# Some people use a C++ compiler to compile C. Since we use `exit',
2289
# in C++ we need to declare it. In case someone uses the same compiler
2290
# for both compiling C and C++ we need to have the C++ compiler decide
2291
# the declaration of exit, since it's the most demanding environment.
2292
cat >conftest.$ac_ext <<_ACEOF
2297
rm -f conftest.$ac_objext
2298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299
(eval $ac_compile) 2>conftest.er1
2301
grep -v '^ *+' conftest.er1 >conftest.err
2303
cat conftest.err >&5
2304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305
(exit $ac_status); } &&
2306
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311
(exit $ac_status); }; } &&
2312
{ ac_try='test -s conftest.$ac_objext'
2313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317
(exit $ac_status); }; }; then
2318
for ac_declaration in \
2320
'extern "C" void std::exit (int) throw (); using std::exit;' \
2321
'extern "C" void std::exit (int); using std::exit;' \
2322
'extern "C" void exit (int) throw ();' \
2323
'extern "C" void exit (int);' \
2326
cat >conftest.$ac_ext <<_ACEOF
2329
cat confdefs.h >>conftest.$ac_ext
2330
cat >>conftest.$ac_ext <<_ACEOF
2331
/* end confdefs.h. */
2342
rm -f conftest.$ac_objext
2343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344
(eval $ac_compile) 2>conftest.er1
2346
grep -v '^ *+' conftest.er1 >conftest.err
2348
cat conftest.err >&5
2349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350
(exit $ac_status); } &&
2351
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356
(exit $ac_status); }; } &&
2357
{ ac_try='test -s conftest.$ac_objext'
2358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362
(exit $ac_status); }; }; then
2365
echo "$as_me: failed program was:" >&5
2366
sed 's/^/| /' conftest.$ac_ext >&5
2370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371
cat >conftest.$ac_ext <<_ACEOF
2374
cat confdefs.h >>conftest.$ac_ext
2375
cat >>conftest.$ac_ext <<_ACEOF
2376
/* end confdefs.h. */
2386
rm -f conftest.$ac_objext
2387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388
(eval $ac_compile) 2>conftest.er1
2390
grep -v '^ *+' conftest.er1 >conftest.err
2392
cat conftest.err >&5
2393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394
(exit $ac_status); } &&
2395
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400
(exit $ac_status); }; } &&
2401
{ ac_try='test -s conftest.$ac_objext'
2402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
(exit $ac_status); }; }; then
2409
echo "$as_me: failed program was:" >&5
2410
sed 's/^/| /' conftest.$ac_ext >&5
2413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416
if test -n "$ac_declaration"; then
2417
echo '#ifdef __cplusplus' >>confdefs.h
2418
echo $ac_declaration >>confdefs.h
2419
echo '#endif' >>confdefs.h
2423
echo "$as_me: failed program was:" >&5
2424
sed 's/^/| /' conftest.$ac_ext >&5
2427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429
ac_cpp='$CPP $CPPFLAGS'
2430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435
am__api_version="1.8"
2437
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2438
if test -f $ac_dir/install-sh; then
2440
ac_install_sh="$ac_aux_dir/install-sh -c"
2442
elif test -f $ac_dir/install.sh; then
2444
ac_install_sh="$ac_aux_dir/install.sh -c"
2446
elif test -f $ac_dir/shtool; then
2448
ac_install_sh="$ac_aux_dir/shtool install -c"
2452
if test -z "$ac_aux_dir"; then
2453
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2454
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2455
{ (exit 1); exit 1; }; }
2457
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2458
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2459
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2461
# Find a good install program. We prefer a C program (faster),
2462
# so one script is as good as another. But avoid the broken or
2463
# incompatible versions:
2464
# SysV /etc/install, /usr/sbin/install
2465
# SunOS /usr/etc/install
2466
# IRIX /sbin/install
2468
# AmigaOS /C/install, which installs bootblocks on floppy discs
2469
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472
# OS/2's system install, which has a completely different semantic
2473
# ./install, which can be erroneously created by make from ./install.sh.
2474
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2475
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2476
if test -z "$INSTALL"; then
2477
if test "${ac_cv_path_install+set}" = set; then
2478
echo $ECHO_N "(cached) $ECHO_C" >&6
2480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484
test -z "$as_dir" && as_dir=.
2485
# Account for people who put trailing slashes in PATH elements.
2487
./ | .// | /cC/* | \
2488
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2489
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2492
# OSF1 and SCO ODT 3.0 have their own names for install.
2493
# Don't use installbsd from OSF since it installs stuff as root
2495
for ac_prog in ginstall scoinst install; do
2496
for ac_exec_ext in '' $ac_executable_extensions; do
2497
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2498
if test $ac_prog = install &&
2499
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500
# AIX install. It has an incompatible calling convention.
2502
elif test $ac_prog = install &&
2503
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2504
# program-specific install script used by HP pwplus--don't use.
2507
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2519
if test "${ac_cv_path_install+set}" = set; then
2520
INSTALL=$ac_cv_path_install
2522
# As a last resort, use the slow shell script. We don't cache a
2523
# path for INSTALL within a source directory, because that will
2524
# break other packages using the cache if that directory is
2525
# removed, or if the path is relative.
2526
INSTALL=$ac_install_sh
2529
echo "$as_me:$LINENO: result: $INSTALL" >&5
2530
echo "${ECHO_T}$INSTALL" >&6
2532
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533
# It thinks the first close brace ends the variable substitution.
2534
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2541
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2544
echo timestamp > conftest.file
2545
# Do `set' in a subshell so we don't clobber the current shell's
2546
# arguments. Must try -L first in case configure is actually a
2547
# symlink; some systems play weird games with the mod time of symlinks
2548
# (eg FreeBSD returns the mod time of the symlink's containing
2551
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2552
if test "$*" = "X"; then
2554
set X `ls -t $srcdir/configure conftest.file`
2557
if test "$*" != "X $srcdir/configure conftest.file" \
2558
&& test "$*" != "X conftest.file $srcdir/configure"; then
2560
# If neither matched, then we have a broken ls. This can happen
2561
# if, for instance, CONFIG_SHELL is bash and it inherits a
2562
# broken ls alias from the environment. This has actually
2563
# happened. Such a system could not be considered "sane".
2564
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2565
alias in your environment" >&5
2566
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2567
alias in your environment" >&2;}
2568
{ (exit 1); exit 1; }; }
2571
test "$2" = conftest.file
2577
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2578
Check your system clock" >&5
2579
echo "$as_me: error: newly created file is older than distributed files!
2580
Check your system clock" >&2;}
2581
{ (exit 1); exit 1; }; }
2583
echo "$as_me:$LINENO: result: yes" >&5
2584
echo "${ECHO_T}yes" >&6
2585
test "$program_prefix" != NONE &&
2586
program_transform_name="s,^,$program_prefix,;$program_transform_name"
2587
# Use a double $ so make ignores it.
2588
test "$program_suffix" != NONE &&
2589
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2590
# Double any \ or $. echo might interpret backslashes.
2591
# By default was `s,x,x', remove it if useless.
2592
cat <<\_ACEOF >conftest.sed
2593
s/[\\$]/&&/g;s/;s,x,x,$//
2595
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2598
# expand $ac_aux_dir to an absolute path
2599
am_aux_dir=`cd $ac_aux_dir && pwd`
2601
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2602
# Use eval to expand $SHELL
2603
if eval "$MISSING --run true"; then
2604
am_missing_run="$MISSING --run "
2607
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2608
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2611
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2612
# Keeping the `.' argument allows $(mkdir_p) to be used without
2613
# argument. Indeed, we sometimes output rules like
2614
# $(mkdir_p) $(somedir)
2615
# where $(somedir) is conditionally defined.
2616
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2617
# expensive solution, as it forces Make to start a sub-shell.)
2618
mkdir_p='mkdir -p -- .'
2620
# On NextStep and OpenStep, the `mkdir' command does not
2621
# recognize any option. It will interpret all options as
2622
# directories to create, and then abort because `.' already
2624
for d in ./-p ./--version;
2626
test -d $d && rmdir $d
2628
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2629
if test -f "$ac_aux_dir/mkinstalldirs"; then
2630
mkdir_p='$(mkinstalldirs)'
2632
mkdir_p='$(install_sh) -d'
2636
for ac_prog in gawk mawk nawk awk
2638
# Extract the first word of "$ac_prog", so it can be a program name with args.
2639
set dummy $ac_prog; ac_word=$2
2640
echo "$as_me:$LINENO: checking for $ac_word" >&5
2641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642
if test "${ac_cv_prog_AWK+set}" = set; then
2643
echo $ECHO_N "(cached) $ECHO_C" >&6
2645
if test -n "$AWK"; then
2646
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652
test -z "$as_dir" && as_dir=.
2653
for ac_exec_ext in '' $ac_executable_extensions; do
2654
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655
ac_cv_prog_AWK="$ac_prog"
2656
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665
if test -n "$AWK"; then
2666
echo "$as_me:$LINENO: result: $AWK" >&5
2667
echo "${ECHO_T}$AWK" >&6
2669
echo "$as_me:$LINENO: result: no" >&5
2670
echo "${ECHO_T}no" >&6
2673
test -n "$AWK" && break
2676
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2678
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2679
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2680
echo $ECHO_N "(cached) $ECHO_C" >&6
2682
cat >conftest.make <<\_ACEOF
2684
@echo 'ac_maketemp="$(MAKE)"'
2686
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2687
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2688
if test -n "$ac_maketemp"; then
2689
eval ac_cv_prog_make_${ac_make}_set=yes
2691
eval ac_cv_prog_make_${ac_make}_set=no
2695
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2696
echo "$as_me:$LINENO: result: yes" >&5
2697
echo "${ECHO_T}yes" >&6
2700
echo "$as_me:$LINENO: result: no" >&5
2701
echo "${ECHO_T}no" >&6
2702
SET_MAKE="MAKE=${MAKE-make}"
2705
rm -rf .tst 2>/dev/null
2706
mkdir .tst 2>/dev/null
2707
if test -d .tst; then
2712
rmdir .tst 2>/dev/null
2714
DEPDIR="${am__leading_dot}deps"
2716
ac_config_commands="$ac_config_commands depfiles"
2719
am_make=${MAKE-make}
2720
cat > confinc << 'END'
2725
# If we don't find an include directive, just comment out the code.
2726
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2727
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2731
# First try GNU make style include.
2732
echo "include confinc" > confmf
2733
# We grep out `Entering directory' and `Leaving directory'
2734
# messages which can occur if `w' ends up in MAKEFLAGS.
2735
# In particular we don't look at `^make:' because GNU make might
2736
# be invoked under some other name (usually "gmake"), in which
2737
# case it prints its new name instead of `make'.
2738
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2743
# Now try BSD make style include.
2744
if test "$am__include" = "#"; then
2745
echo '.include "confinc"' > confmf
2746
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2747
am__include=.include
2754
echo "$as_me:$LINENO: result: $_am_result" >&5
2755
echo "${ECHO_T}$_am_result" >&6
2756
rm -f confinc confmf
2758
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2759
if test "${enable_dependency_tracking+set}" = set; then
2760
enableval="$enable_dependency_tracking"
2763
if test "x$enable_dependency_tracking" != xno; then
2764
am_depcomp="$ac_aux_dir/depcomp"
2769
if test "x$enable_dependency_tracking" != xno; then
2779
# test to see if srcdir already configured
2780
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2781
test -f $srcdir/config.status; then
2782
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2783
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2784
{ (exit 1); exit 1; }; }
2787
# test whether we have cygpath
2788
if test -z "$CYGPATH_W"; then
2789
if (cygpath --version) >/dev/null 2>/dev/null; then
2790
CYGPATH_W='cygpath -w'
2797
# Define the identity of the package.
2798
PACKAGE="speech-dispatcher"
2799
VERSION="`cat version.sh|grep '^VERSION'|awk -F= '{print $2}'`"
2802
cat >>confdefs.h <<_ACEOF
2803
#define PACKAGE "$PACKAGE"
2807
cat >>confdefs.h <<_ACEOF
2808
#define VERSION "$VERSION"
2811
# Some tools Automake needs.
2813
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2816
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2819
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2822
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828
AMTAR=${AMTAR-"${am_missing_run}tar"}
2830
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2832
# Installed binaries are usually stripped using `strip' when the user
2833
# run `make install-strip'. However `strip' might not be the right
2834
# tool to use in cross-compilation environments, therefore Automake
2835
# will honor the `STRIP' environment variable to overrule this program.
2836
if test "$cross_compiling" != no; then
2837
if test -n "$ac_tool_prefix"; then
2838
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839
set dummy ${ac_tool_prefix}strip; ac_word=$2
2840
echo "$as_me:$LINENO: checking for $ac_word" >&5
2841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842
if test "${ac_cv_prog_STRIP+set}" = set; then
2843
echo $ECHO_N "(cached) $ECHO_C" >&6
2845
if test -n "$STRIP"; then
2846
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
test -z "$as_dir" && as_dir=.
2853
for ac_exec_ext in '' $ac_executable_extensions; do
2854
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2856
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864
STRIP=$ac_cv_prog_STRIP
2865
if test -n "$STRIP"; then
2866
echo "$as_me:$LINENO: result: $STRIP" >&5
2867
echo "${ECHO_T}$STRIP" >&6
2869
echo "$as_me:$LINENO: result: no" >&5
2870
echo "${ECHO_T}no" >&6
2874
if test -z "$ac_cv_prog_STRIP"; then
2876
# Extract the first word of "strip", so it can be a program name with args.
2877
set dummy strip; ac_word=$2
2878
echo "$as_me:$LINENO: checking for $ac_word" >&5
2879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2881
echo $ECHO_N "(cached) $ECHO_C" >&6
2883
if test -n "$ac_ct_STRIP"; then
2884
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890
test -z "$as_dir" && as_dir=.
2891
for ac_exec_ext in '' $ac_executable_extensions; do
2892
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893
ac_cv_prog_ac_ct_STRIP="strip"
2894
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2903
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2904
if test -n "$ac_ct_STRIP"; then
2905
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2906
echo "${ECHO_T}$ac_ct_STRIP" >&6
2908
echo "$as_me:$LINENO: result: no" >&5
2909
echo "${ECHO_T}no" >&6
2914
STRIP="$ac_cv_prog_STRIP"
2918
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2920
# We need awk for the "check" target. The system "awk" is bad on
2924
depcc="$CC" am_compiler_list=
2926
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2927
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2928
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2929
echo $ECHO_N "(cached) $ECHO_C" >&6
2931
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2932
# We make a subdir and do the tests there. Otherwise we can end up
2933
# making bogus files that we don't know about and never remove. For
2934
# instance it was reported that on HP-UX the gcc test will end up
2935
# making a dummy file named `D' -- because `-MD' means `put the output
2938
# Copy depcomp to subdir because otherwise we won't find it if we're
2939
# using a relative directory.
2940
cp "$am_depcomp" conftest.dir
2942
# We will build objects and dependencies in a subdirectory because
2943
# it helps to detect inapplicable dependency modes. For instance
2944
# both Tru64's cc and ICC support -MD to output dependencies as a
2945
# side effect of compilation, but ICC will put the dependencies in
2946
# the current directory while Tru64 will put them in the object
2950
am_cv_CC_dependencies_compiler_type=none
2951
if test "$am_compiler_list" = ""; then
2952
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2954
for depmode in $am_compiler_list; do
2955
# Setup a source with many dependencies, because some compilers
2956
# like to wrap large dependency lists on column 80 (with \), and
2957
# we should not choose a depcomp mode which is confused by this.
2959
# We need to recreate these files for each test, as the compiler may
2960
# overwrite some of them when testing with obscure command lines.
2961
# This happens at least with the AIX C compiler.
2963
for i in 1 2 3 4 5 6; do
2964
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2965
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2966
# Solaris 8's {/usr,}/bin/sh.
2967
touch sub/conftst$i.h
2969
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2973
# after this tag, mechanisms are not by side-effect, so they'll
2974
# only be used when explicitly requested
2975
if test "x$enable_dependency_tracking" = xyes; then
2983
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2984
# mode. It turns out that the SunPro C++ compiler does not properly
2985
# handle `-M -o', and we need to detect this.
2986
if depmode=$depmode \
2987
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2988
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2989
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2990
>/dev/null 2>conftest.err &&
2991
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2992
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2993
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2994
# icc doesn't choke on unknown options, it will just issue warnings
2995
# or remarks (even with -Werror). So we grep stderr for any message
2996
# that says an option was ignored or not supported.
2997
# When given -MP, icc 7.0 and 7.1 complain thusly:
2998
# icc: Command line warning: ignoring option '-M'; no argument required
2999
# The diagnosis changed in icc 8.0:
3000
# icc: Command line remark: option '-MP' not supported
3001
if (grep 'ignoring option' conftest.err ||
3002
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3003
am_cv_CC_dependencies_compiler_type=$depmode
3012
am_cv_CC_dependencies_compiler_type=none
3016
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3017
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3018
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3023
test "x$enable_dependency_tracking" != xno \
3024
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3026
am__fastdepCC_FALSE='#'
3028
am__fastdepCC_TRUE='#'
3029
am__fastdepCC_FALSE=
3035
ac_config_headers="$ac_config_headers config.h"
3040
echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3041
echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3042
if test "${ac_cv_lib_m_sqrt+set}" = set; then
3043
echo $ECHO_N "(cached) $ECHO_C" >&6
3045
ac_check_lib_save_LIBS=$LIBS
3047
cat >conftest.$ac_ext <<_ACEOF
3050
cat confdefs.h >>conftest.$ac_ext
3051
cat >>conftest.$ac_ext <<_ACEOF
3052
/* end confdefs.h. */
3054
/* Override any gcc2 internal prototype to avoid an error. */
3058
/* We use char because int might match the return type of a gcc2
3059
builtin and then its argument prototype would still apply. */
3069
rm -f conftest.$ac_objext conftest$ac_exeext
3070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071
(eval $ac_link) 2>conftest.er1
3073
grep -v '^ *+' conftest.er1 >conftest.err
3075
cat conftest.err >&5
3076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077
(exit $ac_status); } &&
3078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083
(exit $ac_status); }; } &&
3084
{ ac_try='test -s conftest$ac_exeext'
3085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089
(exit $ac_status); }; }; then
3090
ac_cv_lib_m_sqrt=yes
3092
echo "$as_me: failed program was:" >&5
3093
sed 's/^/| /' conftest.$ac_ext >&5
3097
rm -f conftest.err conftest.$ac_objext \
3098
conftest$ac_exeext conftest.$ac_ext
3099
LIBS=$ac_check_lib_save_LIBS
3101
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3102
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3103
if test $ac_cv_lib_m_sqrt = yes; then
3104
cat >>confdefs.h <<_ACEOF
3111
echo "*** Required math library missing! See INSTALL .";exit 1
3115
echo "$as_me:$LINENO: checking for main in -ldl" >&5
3116
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
3117
if test "${ac_cv_lib_dl_main+set}" = set; then
3118
echo $ECHO_N "(cached) $ECHO_C" >&6
3120
ac_check_lib_save_LIBS=$LIBS
3122
cat >conftest.$ac_ext <<_ACEOF
3125
cat confdefs.h >>conftest.$ac_ext
3126
cat >>conftest.$ac_ext <<_ACEOF
3127
/* end confdefs.h. */
3138
rm -f conftest.$ac_objext conftest$ac_exeext
3139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140
(eval $ac_link) 2>conftest.er1
3142
grep -v '^ *+' conftest.er1 >conftest.err
3144
cat conftest.err >&5
3145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
(exit $ac_status); } &&
3147
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152
(exit $ac_status); }; } &&
3153
{ ac_try='test -s conftest$ac_exeext'
3154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158
(exit $ac_status); }; }; then
3159
ac_cv_lib_dl_main=yes
3161
echo "$as_me: failed program was:" >&5
3162
sed 's/^/| /' conftest.$ac_ext >&5
3164
ac_cv_lib_dl_main=no
3166
rm -f conftest.err conftest.$ac_objext \
3167
conftest$ac_exeext conftest.$ac_ext
3168
LIBS=$ac_check_lib_save_LIBS
3170
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
3171
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
3172
if test $ac_cv_lib_dl_main = yes; then
3173
cat >>confdefs.h <<_ACEOF
3174
#define HAVE_LIBDL 1
3180
echo "*** Required dl library missing! See INSTALL .";exit 1
3184
echo "$as_me:$LINENO: checking for main in -ldotconf" >&5
3185
echo $ECHO_N "checking for main in -ldotconf... $ECHO_C" >&6
3186
if test "${ac_cv_lib_dotconf_main+set}" = set; then
3187
echo $ECHO_N "(cached) $ECHO_C" >&6
3189
ac_check_lib_save_LIBS=$LIBS
3190
LIBS="-ldotconf $LIBS"
3191
cat >conftest.$ac_ext <<_ACEOF
3194
cat confdefs.h >>conftest.$ac_ext
3195
cat >>conftest.$ac_ext <<_ACEOF
3196
/* end confdefs.h. */
3207
rm -f conftest.$ac_objext conftest$ac_exeext
3208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3209
(eval $ac_link) 2>conftest.er1
3211
grep -v '^ *+' conftest.er1 >conftest.err
3213
cat conftest.err >&5
3214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215
(exit $ac_status); } &&
3216
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221
(exit $ac_status); }; } &&
3222
{ ac_try='test -s conftest$ac_exeext'
3223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227
(exit $ac_status); }; }; then
3228
ac_cv_lib_dotconf_main=yes
3230
echo "$as_me: failed program was:" >&5
3231
sed 's/^/| /' conftest.$ac_ext >&5
3233
ac_cv_lib_dotconf_main=no
3235
rm -f conftest.err conftest.$ac_objext \
3236
conftest$ac_exeext conftest.$ac_ext
3237
LIBS=$ac_check_lib_save_LIBS
3239
echo "$as_me:$LINENO: result: $ac_cv_lib_dotconf_main" >&5
3240
echo "${ECHO_T}$ac_cv_lib_dotconf_main" >&6
3241
if test $ac_cv_lib_dotconf_main = yes; then
3242
cat >>confdefs.h <<_ACEOF
3243
#define HAVE_LIBDOTCONF 1
3246
LIBS="-ldotconf $LIBS"
3249
echo "*** Required DotConf library missing! See INSTALL .";exit 1
3253
echo "$as_me:$LINENO: checking for g_list_append in -lglib-2.0" >&5
3254
echo $ECHO_N "checking for g_list_append in -lglib-2.0... $ECHO_C" >&6
3255
if test "${ac_cv_lib_glib_2_0_g_list_append+set}" = set; then
3256
echo $ECHO_N "(cached) $ECHO_C" >&6
3258
ac_check_lib_save_LIBS=$LIBS
3259
LIBS="-lglib-2.0 $LIBS"
3260
cat >conftest.$ac_ext <<_ACEOF
3263
cat confdefs.h >>conftest.$ac_ext
3264
cat >>conftest.$ac_ext <<_ACEOF
3265
/* end confdefs.h. */
3267
/* Override any gcc2 internal prototype to avoid an error. */
3271
/* We use char because int might match the return type of a gcc2
3272
builtin and then its argument prototype would still apply. */
3273
char g_list_append ();
3282
rm -f conftest.$ac_objext conftest$ac_exeext
3283
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3284
(eval $ac_link) 2>conftest.er1
3286
grep -v '^ *+' conftest.er1 >conftest.err
3288
cat conftest.err >&5
3289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290
(exit $ac_status); } &&
3291
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296
(exit $ac_status); }; } &&
3297
{ ac_try='test -s conftest$ac_exeext'
3298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302
(exit $ac_status); }; }; then
3303
ac_cv_lib_glib_2_0_g_list_append=yes
3305
echo "$as_me: failed program was:" >&5
3306
sed 's/^/| /' conftest.$ac_ext >&5
3308
ac_cv_lib_glib_2_0_g_list_append=no
3310
rm -f conftest.err conftest.$ac_objext \
3311
conftest$ac_exeext conftest.$ac_ext
3312
LIBS=$ac_check_lib_save_LIBS
3314
echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_list_append" >&5
3315
echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_list_append" >&6
3316
if test $ac_cv_lib_glib_2_0_g_list_append = yes; then
3317
cat >>confdefs.h <<_ACEOF
3318
#define HAVE_LIBGLIB_2_0 1
3321
LIBS="-lglib-2.0 $LIBS"
3324
echo "*** Required Glib-2.0 library missing! See INSTALL .";exit 1
3328
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3329
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3330
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3331
echo $ECHO_N "(cached) $ECHO_C" >&6
3333
ac_check_lib_save_LIBS=$LIBS
3334
LIBS="-lpthread $LIBS"
3335
cat >conftest.$ac_ext <<_ACEOF
3338
cat confdefs.h >>conftest.$ac_ext
3339
cat >>conftest.$ac_ext <<_ACEOF
3340
/* end confdefs.h. */
3342
/* Override any gcc2 internal prototype to avoid an error. */
3346
/* We use char because int might match the return type of a gcc2
3347
builtin and then its argument prototype would still apply. */
3348
char pthread_create ();
3357
rm -f conftest.$ac_objext conftest$ac_exeext
3358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359
(eval $ac_link) 2>conftest.er1
3361
grep -v '^ *+' conftest.er1 >conftest.err
3363
cat conftest.err >&5
3364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365
(exit $ac_status); } &&
3366
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371
(exit $ac_status); }; } &&
3372
{ ac_try='test -s conftest$ac_exeext'
3373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377
(exit $ac_status); }; }; then
3378
ac_cv_lib_pthread_pthread_create=yes
3380
echo "$as_me: failed program was:" >&5
3381
sed 's/^/| /' conftest.$ac_ext >&5
3383
ac_cv_lib_pthread_pthread_create=no
3385
rm -f conftest.err conftest.$ac_objext \
3386
conftest$ac_exeext conftest.$ac_ext
3387
LIBS=$ac_check_lib_save_LIBS
3389
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3390
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3391
if test $ac_cv_lib_pthread_pthread_create = yes; then
3392
cat >>confdefs.h <<_ACEOF
3393
#define HAVE_LIBPTHREAD 1
3396
LIBS="-lpthread $LIBS"
3399
echo "*** Required pthread library missing! See INSTALL .";exit 1
3403
echo "$as_me:$LINENO: checking for flite_init in -lflite" >&5
3404
echo $ECHO_N "checking for flite_init in -lflite... $ECHO_C" >&6
3405
if test "${ac_cv_lib_flite_flite_init+set}" = set; then
3406
echo $ECHO_N "(cached) $ECHO_C" >&6
3408
ac_check_lib_save_LIBS=$LIBS
3409
LIBS="-lflite $LIBS"
3410
cat >conftest.$ac_ext <<_ACEOF
3413
cat confdefs.h >>conftest.$ac_ext
3414
cat >>conftest.$ac_ext <<_ACEOF
3415
/* end confdefs.h. */
3417
/* Override any gcc2 internal prototype to avoid an error. */
3421
/* We use char because int might match the return type of a gcc2
3422
builtin and then its argument prototype would still apply. */
3432
rm -f conftest.$ac_objext conftest$ac_exeext
3433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3434
(eval $ac_link) 2>conftest.er1
3436
grep -v '^ *+' conftest.er1 >conftest.err
3438
cat conftest.err >&5
3439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440
(exit $ac_status); } &&
3441
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446
(exit $ac_status); }; } &&
3447
{ ac_try='test -s conftest$ac_exeext'
3448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452
(exit $ac_status); }; }; then
3453
ac_cv_lib_flite_flite_init=yes
3455
echo "$as_me: failed program was:" >&5
3456
sed 's/^/| /' conftest.$ac_ext >&5
3458
ac_cv_lib_flite_flite_init=no
3460
rm -f conftest.err conftest.$ac_objext \
3461
conftest$ac_exeext conftest.$ac_ext
3462
LIBS=$ac_check_lib_save_LIBS
3464
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_flite_init" >&5
3465
echo "${ECHO_T}$ac_cv_lib_flite_flite_init" >&6
3466
if test $ac_cv_lib_flite_flite_init = yes; then
3469
echo "*** Required Flite libraries missing or instalation incomplete! See INSTALL .";exit 1
3473
echo "$as_me:$LINENO: checking for cmu_lex_init in -lflite_cmulex" >&5
3474
echo $ECHO_N "checking for cmu_lex_init in -lflite_cmulex... $ECHO_C" >&6
3475
if test "${ac_cv_lib_flite_cmulex_cmu_lex_init+set}" = set; then
3476
echo $ECHO_N "(cached) $ECHO_C" >&6
3478
ac_check_lib_save_LIBS=$LIBS
3479
LIBS="-lflite_cmulex -lflite $LIBS"
3480
cat >conftest.$ac_ext <<_ACEOF
3483
cat confdefs.h >>conftest.$ac_ext
3484
cat >>conftest.$ac_ext <<_ACEOF
3485
/* end confdefs.h. */
3487
/* Override any gcc2 internal prototype to avoid an error. */
3491
/* We use char because int might match the return type of a gcc2
3492
builtin and then its argument prototype would still apply. */
3493
char cmu_lex_init ();
3502
rm -f conftest.$ac_objext conftest$ac_exeext
3503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3504
(eval $ac_link) 2>conftest.er1
3506
grep -v '^ *+' conftest.er1 >conftest.err
3508
cat conftest.err >&5
3509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510
(exit $ac_status); } &&
3511
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516
(exit $ac_status); }; } &&
3517
{ ac_try='test -s conftest$ac_exeext'
3518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522
(exit $ac_status); }; }; then
3523
ac_cv_lib_flite_cmulex_cmu_lex_init=yes
3525
echo "$as_me: failed program was:" >&5
3526
sed 's/^/| /' conftest.$ac_ext >&5
3528
ac_cv_lib_flite_cmulex_cmu_lex_init=no
3530
rm -f conftest.err conftest.$ac_objext \
3531
conftest$ac_exeext conftest.$ac_ext
3532
LIBS=$ac_check_lib_save_LIBS
3534
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_cmulex_cmu_lex_init" >&5
3535
echo "${ECHO_T}$ac_cv_lib_flite_cmulex_cmu_lex_init" >&6
3536
if test $ac_cv_lib_flite_cmulex_cmu_lex_init = yes; then
3539
echo "*** Required Flite libraries missing or instalation incomplete! See INSTALL .";exit 1
3543
echo "$as_me:$LINENO: checking for usenglish_init in -lflite_usenglish" >&5
3544
echo $ECHO_N "checking for usenglish_init in -lflite_usenglish... $ECHO_C" >&6
3545
if test "${ac_cv_lib_flite_usenglish_usenglish_init+set}" = set; then
3546
echo $ECHO_N "(cached) $ECHO_C" >&6
3548
ac_check_lib_save_LIBS=$LIBS
3549
LIBS="-lflite_usenglish -lflite $LIBS"
3550
cat >conftest.$ac_ext <<_ACEOF
3553
cat confdefs.h >>conftest.$ac_ext
3554
cat >>conftest.$ac_ext <<_ACEOF
3555
/* end confdefs.h. */
3557
/* Override any gcc2 internal prototype to avoid an error. */
3561
/* We use char because int might match the return type of a gcc2
3562
builtin and then its argument prototype would still apply. */
3563
char usenglish_init ();
3572
rm -f conftest.$ac_objext conftest$ac_exeext
3573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3574
(eval $ac_link) 2>conftest.er1
3576
grep -v '^ *+' conftest.er1 >conftest.err
3578
cat conftest.err >&5
3579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580
(exit $ac_status); } &&
3581
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586
(exit $ac_status); }; } &&
3587
{ ac_try='test -s conftest$ac_exeext'
3588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592
(exit $ac_status); }; }; then
3593
ac_cv_lib_flite_usenglish_usenglish_init=yes
3595
echo "$as_me: failed program was:" >&5
3596
sed 's/^/| /' conftest.$ac_ext >&5
3598
ac_cv_lib_flite_usenglish_usenglish_init=no
3600
rm -f conftest.err conftest.$ac_objext \
3601
conftest$ac_exeext conftest.$ac_ext
3602
LIBS=$ac_check_lib_save_LIBS
3604
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_usenglish_usenglish_init" >&5
3605
echo "${ECHO_T}$ac_cv_lib_flite_usenglish_usenglish_init" >&6
3606
if test $ac_cv_lib_flite_usenglish_usenglish_init = yes; then
3609
echo "*** Required Flite libraries missing or instalation incomplete! See INSTALL .";exit 1
3613
flite_basic="-lflite -lflite_cmulex -lflite_usenglish";
3615
echo "$as_me:$LINENO: checking for register_cmu_us_kal in -lflite_cmu_us_kal16" >&5
3616
echo $ECHO_N "checking for register_cmu_us_kal in -lflite_cmu_us_kal16... $ECHO_C" >&6
3617
if test "${ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal+set}" = set; then
3618
echo $ECHO_N "(cached) $ECHO_C" >&6
3620
ac_check_lib_save_LIBS=$LIBS
3621
LIBS="-lflite_cmu_us_kal16 -lflite -lflite_usenglish -lflite_cmulex $LIBS"
3622
cat >conftest.$ac_ext <<_ACEOF
3625
cat confdefs.h >>conftest.$ac_ext
3626
cat >>conftest.$ac_ext <<_ACEOF
3627
/* end confdefs.h. */
3629
/* Override any gcc2 internal prototype to avoid an error. */
3633
/* We use char because int might match the return type of a gcc2
3634
builtin and then its argument prototype would still apply. */
3635
char register_cmu_us_kal ();
3639
register_cmu_us_kal ();
3644
rm -f conftest.$ac_objext conftest$ac_exeext
3645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646
(eval $ac_link) 2>conftest.er1
3648
grep -v '^ *+' conftest.er1 >conftest.err
3650
cat conftest.err >&5
3651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652
(exit $ac_status); } &&
3653
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658
(exit $ac_status); }; } &&
3659
{ ac_try='test -s conftest$ac_exeext'
3660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664
(exit $ac_status); }; }; then
3665
ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal=yes
3667
echo "$as_me: failed program was:" >&5
3668
sed 's/^/| /' conftest.$ac_ext >&5
3670
ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal=no
3672
rm -f conftest.err conftest.$ac_objext \
3673
conftest$ac_exeext conftest.$ac_ext
3674
LIBS=$ac_check_lib_save_LIBS
3676
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" >&5
3677
echo "${ECHO_T}$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" >&6
3678
if test $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal = yes; then
3679
flite_kal="-lflite_cmu_us_kal16"
3681
echo "$as_me:$LINENO: checking for register_cmu_us_kal in -lflite_cmu_us_kal" >&5
3682
echo $ECHO_N "checking for register_cmu_us_kal in -lflite_cmu_us_kal... $ECHO_C" >&6
3683
if test "${ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal+set}" = set; then
3684
echo $ECHO_N "(cached) $ECHO_C" >&6
3686
ac_check_lib_save_LIBS=$LIBS
3687
LIBS="-lflite_cmu_us_kal -lflite -lflite_usenglish -lflite_cmulex $LIBS"
3688
cat >conftest.$ac_ext <<_ACEOF
3691
cat confdefs.h >>conftest.$ac_ext
3692
cat >>conftest.$ac_ext <<_ACEOF
3693
/* end confdefs.h. */
3695
/* Override any gcc2 internal prototype to avoid an error. */
3699
/* We use char because int might match the return type of a gcc2
3700
builtin and then its argument prototype would still apply. */
3701
char register_cmu_us_kal ();
3705
register_cmu_us_kal ();
3710
rm -f conftest.$ac_objext conftest$ac_exeext
3711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712
(eval $ac_link) 2>conftest.er1
3714
grep -v '^ *+' conftest.er1 >conftest.err
3716
cat conftest.err >&5
3717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718
(exit $ac_status); } &&
3719
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724
(exit $ac_status); }; } &&
3725
{ ac_try='test -s conftest$ac_exeext'
3726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730
(exit $ac_status); }; }; then
3731
ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal=yes
3733
echo "$as_me: failed program was:" >&5
3734
sed 's/^/| /' conftest.$ac_ext >&5
3736
ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal=no
3738
rm -f conftest.err conftest.$ac_objext \
3739
conftest$ac_exeext conftest.$ac_ext
3740
LIBS=$ac_check_lib_save_LIBS
3742
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" >&5
3743
echo "${ECHO_T}$ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" >&6
3744
if test $ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal = yes; then
3745
flite_libs="-lflite_cmu_us_kal"
3747
echo "*** Required Flite kal voice library missing or instalation incomplete! See INSTALL .";exit 1
3756
glib_include=`pkg-config --cflags glib-2.0`
3758
glib_libs=`pkg-config --libs glib-2.0`
3761
spdconfdir="$sysconfdir/speech-dispatcher/"
3763
snddatadir="$datadir/sounds/speech-dispatcher/"
3765
modulebindir="$libdir/speech-dispatcher-modules/"
3767
moduleconfdir="$sysconfdir/speech-dispatcher/modules/"
3772
LIB_SDAUDIO_CURRENT=1
3773
LIB_SDAUDIO_REVISION=0
3787
ac_cpp='$CPP $CPPFLAGS'
3788
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3792
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3793
# On Suns, sometimes $CPP names a directory.
3794
if test -n "$CPP" && test -d "$CPP"; then
3797
if test -z "$CPP"; then
3798
if test "${ac_cv_prog_CPP+set}" = set; then
3799
echo $ECHO_N "(cached) $ECHO_C" >&6
3801
# Double quotes because CPP needs to be expanded
3802
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3805
for ac_c_preproc_warn_flag in '' yes
3807
# Use a header file that comes with gcc, so configuring glibc
3808
# with a fresh cross-compiler works.
3809
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810
# <limits.h> exists even on freestanding compilers.
3811
# On the NeXT, cc -E runs the code through the compiler's parser,
3812
# not just through cpp. "Syntax error" is here to catch this case.
3813
cat >conftest.$ac_ext <<_ACEOF
3816
cat confdefs.h >>conftest.$ac_ext
3817
cat >>conftest.$ac_ext <<_ACEOF
3818
/* end confdefs.h. */
3820
# include <limits.h>
3822
# include <assert.h>
3826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3827
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829
grep -v '^ *+' conftest.er1 >conftest.err
3831
cat conftest.err >&5
3832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833
(exit $ac_status); } >/dev/null; then
3834
if test -s conftest.err; then
3835
ac_cpp_err=$ac_c_preproc_warn_flag
3836
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3843
if test -z "$ac_cpp_err"; then
3846
echo "$as_me: failed program was:" >&5
3847
sed 's/^/| /' conftest.$ac_ext >&5
3849
# Broken: fails on valid input.
3852
rm -f conftest.err conftest.$ac_ext
3854
# OK, works on sane cases. Now check whether non-existent headers
3855
# can be detected and how.
3856
cat >conftest.$ac_ext <<_ACEOF
3859
cat confdefs.h >>conftest.$ac_ext
3860
cat >>conftest.$ac_ext <<_ACEOF
3861
/* end confdefs.h. */
3862
#include <ac_nonexistent.h>
3864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3865
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3867
grep -v '^ *+' conftest.er1 >conftest.err
3869
cat conftest.err >&5
3870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871
(exit $ac_status); } >/dev/null; then
3872
if test -s conftest.err; then
3873
ac_cpp_err=$ac_c_preproc_warn_flag
3874
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881
if test -z "$ac_cpp_err"; then
3882
# Broken: success on invalid input.
3885
echo "$as_me: failed program was:" >&5
3886
sed 's/^/| /' conftest.$ac_ext >&5
3888
# Passes both tests.
3892
rm -f conftest.err conftest.$ac_ext
3895
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3896
rm -f conftest.err conftest.$ac_ext
3897
if $ac_preproc_ok; then
3909
echo "$as_me:$LINENO: result: $CPP" >&5
3910
echo "${ECHO_T}$CPP" >&6
3912
for ac_c_preproc_warn_flag in '' yes
3914
# Use a header file that comes with gcc, so configuring glibc
3915
# with a fresh cross-compiler works.
3916
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3917
# <limits.h> exists even on freestanding compilers.
3918
# On the NeXT, cc -E runs the code through the compiler's parser,
3919
# not just through cpp. "Syntax error" is here to catch this case.
3920
cat >conftest.$ac_ext <<_ACEOF
3923
cat confdefs.h >>conftest.$ac_ext
3924
cat >>conftest.$ac_ext <<_ACEOF
3925
/* end confdefs.h. */
3927
# include <limits.h>
3929
# include <assert.h>
3933
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3934
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3936
grep -v '^ *+' conftest.er1 >conftest.err
3938
cat conftest.err >&5
3939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
(exit $ac_status); } >/dev/null; then
3941
if test -s conftest.err; then
3942
ac_cpp_err=$ac_c_preproc_warn_flag
3943
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3950
if test -z "$ac_cpp_err"; then
3953
echo "$as_me: failed program was:" >&5
3954
sed 's/^/| /' conftest.$ac_ext >&5
3956
# Broken: fails on valid input.
3959
rm -f conftest.err conftest.$ac_ext
3961
# OK, works on sane cases. Now check whether non-existent headers
3962
# can be detected and how.
3963
cat >conftest.$ac_ext <<_ACEOF
3966
cat confdefs.h >>conftest.$ac_ext
3967
cat >>conftest.$ac_ext <<_ACEOF
3968
/* end confdefs.h. */
3969
#include <ac_nonexistent.h>
3971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3972
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3974
grep -v '^ *+' conftest.er1 >conftest.err
3976
cat conftest.err >&5
3977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978
(exit $ac_status); } >/dev/null; then
3979
if test -s conftest.err; then
3980
ac_cpp_err=$ac_c_preproc_warn_flag
3981
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3988
if test -z "$ac_cpp_err"; then
3989
# Broken: success on invalid input.
3992
echo "$as_me: failed program was:" >&5
3993
sed 's/^/| /' conftest.$ac_ext >&5
3995
# Passes both tests.
3999
rm -f conftest.err conftest.$ac_ext
4002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003
rm -f conftest.err conftest.$ac_ext
4004
if $ac_preproc_ok; then
4007
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4008
See \`config.log' for more details." >&5
4009
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4010
See \`config.log' for more details." >&2;}
4011
{ (exit 1); exit 1; }; }
4015
ac_cpp='$CPP $CPPFLAGS'
4016
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
echo "$as_me:$LINENO: checking for egrep" >&5
4022
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4023
if test "${ac_cv_prog_egrep+set}" = set; then
4024
echo $ECHO_N "(cached) $ECHO_C" >&6
4026
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4027
then ac_cv_prog_egrep='grep -E'
4028
else ac_cv_prog_egrep='egrep'
4031
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4032
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4033
EGREP=$ac_cv_prog_egrep
4036
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4038
if test "${ac_cv_header_stdc+set}" = set; then
4039
echo $ECHO_N "(cached) $ECHO_C" >&6
4041
cat >conftest.$ac_ext <<_ACEOF
4044
cat confdefs.h >>conftest.$ac_ext
4045
cat >>conftest.$ac_ext <<_ACEOF
4046
/* end confdefs.h. */
4060
rm -f conftest.$ac_objext
4061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062
(eval $ac_compile) 2>conftest.er1
4064
grep -v '^ *+' conftest.er1 >conftest.err
4066
cat conftest.err >&5
4067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068
(exit $ac_status); } &&
4069
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
(exit $ac_status); }; } &&
4075
{ ac_try='test -s conftest.$ac_objext'
4076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
(exit $ac_status); }; }; then
4081
ac_cv_header_stdc=yes
4083
echo "$as_me: failed program was:" >&5
4084
sed 's/^/| /' conftest.$ac_ext >&5
4086
ac_cv_header_stdc=no
4088
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090
if test $ac_cv_header_stdc = yes; then
4091
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092
cat >conftest.$ac_ext <<_ACEOF
4095
cat confdefs.h >>conftest.$ac_ext
4096
cat >>conftest.$ac_ext <<_ACEOF
4097
/* end confdefs.h. */
4101
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4102
$EGREP "memchr" >/dev/null 2>&1; then
4105
ac_cv_header_stdc=no
4111
if test $ac_cv_header_stdc = yes; then
4112
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4113
cat >conftest.$ac_ext <<_ACEOF
4116
cat confdefs.h >>conftest.$ac_ext
4117
cat >>conftest.$ac_ext <<_ACEOF
4118
/* end confdefs.h. */
4122
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123
$EGREP "free" >/dev/null 2>&1; then
4126
ac_cv_header_stdc=no
4132
if test $ac_cv_header_stdc = yes; then
4133
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4134
if test "$cross_compiling" = yes; then
4137
cat >conftest.$ac_ext <<_ACEOF
4140
cat confdefs.h >>conftest.$ac_ext
4141
cat >>conftest.$ac_ext <<_ACEOF
4142
/* end confdefs.h. */
4144
#if ((' ' & 0x0FF) == 0x020)
4145
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4148
# define ISLOWER(c) \
4149
(('a' <= (c) && (c) <= 'i') \
4150
|| ('j' <= (c) && (c) <= 'r') \
4151
|| ('s' <= (c) && (c) <= 'z'))
4152
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160
for (i = 0; i < 256; i++)
4161
if (XOR (islower (i), ISLOWER (i))
4162
|| toupper (i) != TOUPPER (i))
4167
rm -f conftest$ac_exeext
4168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169
(eval $ac_link) 2>&5
4171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
(exit $ac_status); }; }; then
4180
echo "$as_me: program exited with status $ac_status" >&5
4181
echo "$as_me: failed program was:" >&5
4182
sed 's/^/| /' conftest.$ac_ext >&5
4185
ac_cv_header_stdc=no
4187
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4191
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4192
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4193
if test $ac_cv_header_stdc = yes; then
4195
cat >>confdefs.h <<\_ACEOF
4196
#define STDC_HEADERS 1
4201
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4211
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4212
inttypes.h stdint.h unistd.h
4214
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4215
echo "$as_me:$LINENO: checking for $ac_header" >&5
4216
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4217
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4218
echo $ECHO_N "(cached) $ECHO_C" >&6
4220
cat >conftest.$ac_ext <<_ACEOF
4223
cat confdefs.h >>conftest.$ac_ext
4224
cat >>conftest.$ac_ext <<_ACEOF
4225
/* end confdefs.h. */
4226
$ac_includes_default
4228
#include <$ac_header>
4230
rm -f conftest.$ac_objext
4231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232
(eval $ac_compile) 2>conftest.er1
4234
grep -v '^ *+' conftest.er1 >conftest.err
4236
cat conftest.err >&5
4237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238
(exit $ac_status); } &&
4239
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244
(exit $ac_status); }; } &&
4245
{ ac_try='test -s conftest.$ac_objext'
4246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250
(exit $ac_status); }; }; then
4251
eval "$as_ac_Header=yes"
4253
echo "$as_me: failed program was:" >&5
4254
sed 's/^/| /' conftest.$ac_ext >&5
4256
eval "$as_ac_Header=no"
4258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4261
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4262
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4263
cat >>confdefs.h <<_ACEOF
4264
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276
for ac_header in limits.h sys/ioctl.h sys/time.h unistd.h
4278
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4280
echo "$as_me:$LINENO: checking for $ac_header" >&5
4281
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4282
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4283
echo $ECHO_N "(cached) $ECHO_C" >&6
4285
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4286
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4288
# Is the header compilable?
4289
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4290
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4291
cat >conftest.$ac_ext <<_ACEOF
4294
cat confdefs.h >>conftest.$ac_ext
4295
cat >>conftest.$ac_ext <<_ACEOF
4296
/* end confdefs.h. */
4297
$ac_includes_default
4298
#include <$ac_header>
4300
rm -f conftest.$ac_objext
4301
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302
(eval $ac_compile) 2>conftest.er1
4304
grep -v '^ *+' conftest.er1 >conftest.err
4306
cat conftest.err >&5
4307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
(exit $ac_status); } &&
4309
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
(exit $ac_status); }; } &&
4315
{ ac_try='test -s conftest.$ac_objext'
4316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320
(exit $ac_status); }; }; then
4321
ac_header_compiler=yes
4323
echo "$as_me: failed program was:" >&5
4324
sed 's/^/| /' conftest.$ac_ext >&5
4326
ac_header_compiler=no
4328
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4329
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4330
echo "${ECHO_T}$ac_header_compiler" >&6
4332
# Is the header present?
4333
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4334
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4335
cat >conftest.$ac_ext <<_ACEOF
4338
cat confdefs.h >>conftest.$ac_ext
4339
cat >>conftest.$ac_ext <<_ACEOF
4340
/* end confdefs.h. */
4341
#include <$ac_header>
4343
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4344
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346
grep -v '^ *+' conftest.er1 >conftest.err
4348
cat conftest.err >&5
4349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
(exit $ac_status); } >/dev/null; then
4351
if test -s conftest.err; then
4352
ac_cpp_err=$ac_c_preproc_warn_flag
4353
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4360
if test -z "$ac_cpp_err"; then
4361
ac_header_preproc=yes
4363
echo "$as_me: failed program was:" >&5
4364
sed 's/^/| /' conftest.$ac_ext >&5
4366
ac_header_preproc=no
4368
rm -f conftest.err conftest.$ac_ext
4369
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4370
echo "${ECHO_T}$ac_header_preproc" >&6
4372
# So? What about this header?
4373
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4375
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4376
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4377
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4378
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4379
ac_header_preproc=yes
4382
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4383
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4384
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4385
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4386
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4387
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4388
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4389
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4390
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4391
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4392
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4393
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4396
## ------------------------------------------ ##
4397
## Report this to the AC_PACKAGE_NAME lists. ##
4398
## ------------------------------------------ ##
4401
sed "s/^/$as_me: WARNING: /" >&2
4404
echo "$as_me:$LINENO: checking for $ac_header" >&5
4405
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4406
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4407
echo $ECHO_N "(cached) $ECHO_C" >&6
4409
eval "$as_ac_Header=\$ac_header_preproc"
4411
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4412
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4415
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4416
cat >>confdefs.h <<_ACEOF
4417
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4425
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4426
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4427
if test "${ac_cv_c_const+set}" = set; then
4428
echo $ECHO_N "(cached) $ECHO_C" >&6
4430
cat >conftest.$ac_ext <<_ACEOF
4433
cat confdefs.h >>conftest.$ac_ext
4434
cat >>conftest.$ac_ext <<_ACEOF
4435
/* end confdefs.h. */
4440
/* FIXME: Include the comments suggested by Paul. */
4442
/* Ultrix mips cc rejects this. */
4443
typedef int charset[2];
4445
/* SunOS 4.1.1 cc rejects this. */
4446
char const *const *ccp;
4448
/* NEC SVR4.0.2 mips cc rejects this. */
4449
struct point {int x, y;};
4450
static struct point const zero = {0,0};
4451
/* AIX XL C 1.02.0.0 rejects this.
4452
It does not let you subtract one const X* pointer from another in
4453
an arm of an if-expression whose if-part is not a constant
4455
const char *g = "string";
4456
ccp = &g + (g ? g-g : 0);
4457
/* HPUX 7.0 cc rejects these. */
4460
ccp = (char const *const *) p;
4461
{ /* SCO 3.2v4 cc rejects this. */
4463
char const *s = 0 ? (char *) 0 : (char const *) 0;
4467
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4469
const int *foo = &x[0];
4472
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4473
typedef const int *iptr;
4477
{ /* AIX XL C 1.02.0.0 rejects this saying
4478
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4479
struct s { int j; const int *ap[3]; };
4480
struct s *b; b->j = 5;
4482
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4491
rm -f conftest.$ac_objext
4492
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493
(eval $ac_compile) 2>conftest.er1
4495
grep -v '^ *+' conftest.er1 >conftest.err
4497
cat conftest.err >&5
4498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499
(exit $ac_status); } &&
4500
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505
(exit $ac_status); }; } &&
4506
{ ac_try='test -s conftest.$ac_objext'
4507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
(exit $ac_status); }; }; then
4514
echo "$as_me: failed program was:" >&5
4515
sed 's/^/| /' conftest.$ac_ext >&5
4519
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4522
echo "${ECHO_T}$ac_cv_c_const" >&6
4523
if test $ac_cv_c_const = no; then
4525
cat >>confdefs.h <<\_ACEOF
4531
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4532
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4533
if test "${ac_cv_header_time+set}" = set; then
4534
echo $ECHO_N "(cached) $ECHO_C" >&6
4536
cat >conftest.$ac_ext <<_ACEOF
4539
cat confdefs.h >>conftest.$ac_ext
4540
cat >>conftest.$ac_ext <<_ACEOF
4541
/* end confdefs.h. */
4542
#include <sys/types.h>
4543
#include <sys/time.h>
4549
if ((struct tm *) 0)
4555
rm -f conftest.$ac_objext
4556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557
(eval $ac_compile) 2>conftest.er1
4559
grep -v '^ *+' conftest.er1 >conftest.err
4561
cat conftest.err >&5
4562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563
(exit $ac_status); } &&
4564
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); }; } &&
4570
{ ac_try='test -s conftest.$ac_objext'
4571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575
(exit $ac_status); }; }; then
4576
ac_cv_header_time=yes
4578
echo "$as_me: failed program was:" >&5
4579
sed 's/^/| /' conftest.$ac_ext >&5
4581
ac_cv_header_time=no
4583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4586
echo "${ECHO_T}$ac_cv_header_time" >&6
4587
if test $ac_cv_header_time = yes; then
4589
cat >>confdefs.h <<\_ACEOF
4590
#define TIME_WITH_SYS_TIME 1
4596
if test $ac_cv_c_compiler_gnu = yes; then
4597
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4598
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4599
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4600
echo $ECHO_N "(cached) $ECHO_C" >&6
4602
ac_pattern="Autoconf.*'x'"
4603
cat >conftest.$ac_ext <<_ACEOF
4606
cat confdefs.h >>conftest.$ac_ext
4607
cat >>conftest.$ac_ext <<_ACEOF
4608
/* end confdefs.h. */
4612
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613
$EGREP "$ac_pattern" >/dev/null 2>&1; then
4614
ac_cv_prog_gcc_traditional=yes
4616
ac_cv_prog_gcc_traditional=no
4621
if test $ac_cv_prog_gcc_traditional = no; then
4622
cat >conftest.$ac_ext <<_ACEOF
4625
cat confdefs.h >>conftest.$ac_ext
4626
cat >>conftest.$ac_ext <<_ACEOF
4627
/* end confdefs.h. */
4631
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632
$EGREP "$ac_pattern" >/dev/null 2>&1; then
4633
ac_cv_prog_gcc_traditional=yes
4639
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4640
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4641
if test $ac_cv_prog_gcc_traditional = yes; then
4642
CC="$CC -traditional"
4648
for ac_func in select socket
4650
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4651
echo "$as_me:$LINENO: checking for $ac_func" >&5
4652
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4653
if eval "test \"\${$as_ac_var+set}\" = set"; then
4654
echo $ECHO_N "(cached) $ECHO_C" >&6
4656
cat >conftest.$ac_ext <<_ACEOF
4659
cat confdefs.h >>conftest.$ac_ext
4660
cat >>conftest.$ac_ext <<_ACEOF
4661
/* end confdefs.h. */
4662
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4663
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4664
#define $ac_func innocuous_$ac_func
4666
/* System header to define __stub macros and hopefully few prototypes,
4667
which can conflict with char $ac_func (); below.
4668
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4669
<limits.h> exists even on freestanding compilers. */
4672
# include <limits.h>
4674
# include <assert.h>
4679
/* Override any gcc2 internal prototype to avoid an error. */
4684
/* We use char because int might match the return type of a gcc2
4685
builtin and then its argument prototype would still apply. */
4687
/* The GNU C library defines this for functions which it implements
4688
to always fail with ENOSYS. Some functions are actually named
4689
something starting with __ and the normal name is an alias. */
4690
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4693
char (*f) () = $ac_func;
4702
return f != $ac_func;
4707
rm -f conftest.$ac_objext conftest$ac_exeext
4708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709
(eval $ac_link) 2>conftest.er1
4711
grep -v '^ *+' conftest.er1 >conftest.err
4713
cat conftest.err >&5
4714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715
(exit $ac_status); } &&
4716
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
(exit $ac_status); }; } &&
4722
{ ac_try='test -s conftest$ac_exeext'
4723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727
(exit $ac_status); }; }; then
4728
eval "$as_ac_var=yes"
4730
echo "$as_me: failed program was:" >&5
4731
sed 's/^/| /' conftest.$ac_ext >&5
4733
eval "$as_ac_var=no"
4735
rm -f conftest.err conftest.$ac_objext \
4736
conftest$ac_exeext conftest.$ac_ext
4738
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4739
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4740
if test `eval echo '${'$as_ac_var'}'` = yes; then
4741
cat >>confdefs.h <<_ACEOF
4742
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4749
# Find a good install program. We prefer a C program (faster),
4750
# so one script is as good as another. But avoid the broken or
4751
# incompatible versions:
4752
# SysV /etc/install, /usr/sbin/install
4753
# SunOS /usr/etc/install
4754
# IRIX /sbin/install
4756
# AmigaOS /C/install, which installs bootblocks on floppy discs
4757
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4758
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4759
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4760
# OS/2's system install, which has a completely different semantic
4761
# ./install, which can be erroneously created by make from ./install.sh.
4762
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4763
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4764
if test -z "$INSTALL"; then
4765
if test "${ac_cv_path_install+set}" = set; then
4766
echo $ECHO_N "(cached) $ECHO_C" >&6
4768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772
test -z "$as_dir" && as_dir=.
4773
# Account for people who put trailing slashes in PATH elements.
4775
./ | .// | /cC/* | \
4776
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4777
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4780
# OSF1 and SCO ODT 3.0 have their own names for install.
4781
# Don't use installbsd from OSF since it installs stuff as root
4783
for ac_prog in ginstall scoinst install; do
4784
for ac_exec_ext in '' $ac_executable_extensions; do
4785
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4786
if test $ac_prog = install &&
4787
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4788
# AIX install. It has an incompatible calling convention.
4790
elif test $ac_prog = install &&
4791
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4792
# program-specific install script used by HP pwplus--don't use.
4795
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4807
if test "${ac_cv_path_install+set}" = set; then
4808
INSTALL=$ac_cv_path_install
4810
# As a last resort, use the slow shell script. We don't cache a
4811
# path for INSTALL within a source directory, because that will
4812
# break other packages using the cache if that directory is
4813
# removed, or if the path is relative.
4814
INSTALL=$ac_install_sh
4817
echo "$as_me:$LINENO: result: $INSTALL" >&5
4818
echo "${ECHO_T}$INSTALL" >&6
4820
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4821
# It thinks the first close brace ends the variable substitution.
4822
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4824
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4826
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4828
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4829
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4830
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4831
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4832
echo $ECHO_N "(cached) $ECHO_C" >&6
4834
cat >conftest.make <<\_ACEOF
4836
@echo 'ac_maketemp="$(MAKE)"'
4838
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4839
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4840
if test -n "$ac_maketemp"; then
4841
eval ac_cv_prog_make_${ac_make}_set=yes
4843
eval ac_cv_prog_make_${ac_make}_set=no
4847
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4848
echo "$as_me:$LINENO: result: yes" >&5
4849
echo "${ECHO_T}yes" >&6
4852
echo "$as_me:$LINENO: result: no" >&5
4853
echo "${ECHO_T}no" >&6
4854
SET_MAKE="MAKE=${MAKE-make}"
4858
# Check whether --enable-shared or --disable-shared was given.
4859
if test "${enable_shared+set}" = set; then
4860
enableval="$enable_shared"
4861
p=${PACKAGE-default}
4863
yes) enable_shared=yes ;;
4864
no) enable_shared=no ;;
4867
# Look at the argument we got. We use all the common list separators.
4868
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4869
for pkg in $enableval; do
4871
if test "X$pkg" = "X$p"; then
4882
# Check whether --enable-static or --disable-static was given.
4883
if test "${enable_static+set}" = set; then
4884
enableval="$enable_static"
4885
p=${PACKAGE-default}
4887
yes) enable_static=yes ;;
4888
no) enable_static=no ;;
4891
# Look at the argument we got. We use all the common list separators.
4892
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4893
for pkg in $enableval; do
4895
if test "X$pkg" = "X$p"; then
4906
# Check whether --enable-fast-install or --disable-fast-install was given.
4907
if test "${enable_fast_install+set}" = set; then
4908
enableval="$enable_fast_install"
4909
p=${PACKAGE-default}
4911
yes) enable_fast_install=yes ;;
4912
no) enable_fast_install=no ;;
4914
enable_fast_install=no
4915
# Look at the argument we got. We use all the common list separators.
4916
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4917
for pkg in $enableval; do
4919
if test "X$pkg" = "X$p"; then
4920
enable_fast_install=yes
4927
enable_fast_install=yes
4930
# Make sure we can run config.sub.
4931
$ac_config_sub sun4 >/dev/null 2>&1 ||
4932
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4933
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4934
{ (exit 1); exit 1; }; }
4936
echo "$as_me:$LINENO: checking build system type" >&5
4937
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4938
if test "${ac_cv_build+set}" = set; then
4939
echo $ECHO_N "(cached) $ECHO_C" >&6
4941
ac_cv_build_alias=$build_alias
4942
test -z "$ac_cv_build_alias" &&
4943
ac_cv_build_alias=`$ac_config_guess`
4944
test -z "$ac_cv_build_alias" &&
4945
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4946
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4947
{ (exit 1); exit 1; }; }
4948
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4949
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4950
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4951
{ (exit 1); exit 1; }; }
4954
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4955
echo "${ECHO_T}$ac_cv_build" >&6
4957
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4958
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4959
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4962
echo "$as_me:$LINENO: checking host system type" >&5
4963
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4964
if test "${ac_cv_host+set}" = set; then
4965
echo $ECHO_N "(cached) $ECHO_C" >&6
4967
ac_cv_host_alias=$host_alias
4968
test -z "$ac_cv_host_alias" &&
4969
ac_cv_host_alias=$ac_cv_build_alias
4970
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4971
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4972
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4973
{ (exit 1); exit 1; }; }
4976
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4977
echo "${ECHO_T}$ac_cv_host" >&6
4979
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4980
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4981
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4984
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4985
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4986
if test "${lt_cv_path_SED+set}" = set; then
4987
echo $ECHO_N "(cached) $ECHO_C" >&6
4989
# Loop through the user's path and test for sed and gsed.
4990
# Then use that list of sed's as ones to test for truncation.
4991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995
test -z "$as_dir" && as_dir=.
4996
for lt_ac_prog in sed gsed; do
4997
for ac_exec_ext in '' $ac_executable_extensions; do
4998
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4999
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5006
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5007
# along with /bin/sed that truncates output.
5008
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5009
test ! -f $lt_ac_sed && break
5010
cat /dev/null > conftest.in
5012
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5013
# Check for GNU sed and select it if it is found.
5014
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5015
lt_cv_path_SED=$lt_ac_sed
5019
cat conftest.in conftest.in >conftest.tmp
5020
mv conftest.tmp conftest.in
5021
cp conftest.in conftest.nl
5023
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5024
cmp -s conftest.out conftest.nl || break
5025
# 10000 chars as input seems more than enough
5026
test $lt_ac_count -gt 10 && break
5027
lt_ac_count=`expr $lt_ac_count + 1`
5028
if test $lt_ac_count -gt $lt_ac_max; then
5029
lt_ac_max=$lt_ac_count
5030
lt_cv_path_SED=$lt_ac_sed
5038
echo "$as_me:$LINENO: result: $SED" >&5
5039
echo "${ECHO_T}$SED" >&6
5042
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5043
if test "${with_gnu_ld+set}" = set; then
5044
withval="$with_gnu_ld"
5045
test "$withval" = no || with_gnu_ld=yes
5050
if test "$GCC" = yes; then
5051
# Check if gcc -print-prog-name=ld gives a path.
5052
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5053
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5056
# gcc leaves a trailing carriage return which upsets mingw
5057
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5059
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5062
# Accept absolute paths.
5064
re_direlt='/[^/][^/]*/\.\./'
5065
# Canonicalize the pathname of ld
5066
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5067
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5068
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5070
test -z "$LD" && LD="$ac_prog"
5073
# If it fails, then pretend we aren't using GCC.
5077
# If it is relative, then search for the first ld in PATH.
5081
elif test "$with_gnu_ld" = yes; then
5082
echo "$as_me:$LINENO: checking for GNU ld" >&5
5083
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5085
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5086
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5088
if test "${lt_cv_path_LD+set}" = set; then
5089
echo $ECHO_N "(cached) $ECHO_C" >&6
5091
if test -z "$LD"; then
5092
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5093
for ac_dir in $PATH; do
5095
test -z "$ac_dir" && ac_dir=.
5096
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5097
lt_cv_path_LD="$ac_dir/$ac_prog"
5098
# Check to see if the program is GNU ld. I'd rather use --version,
5099
# but apparently some GNU ld's only accept -v.
5100
# Break only if it was the GNU/non-GNU ld that we prefer.
5101
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5102
*GNU* | *'with BFD'*)
5103
test "$with_gnu_ld" != no && break
5106
test "$with_gnu_ld" != yes && break
5113
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5118
if test -n "$LD"; then
5119
echo "$as_me:$LINENO: result: $LD" >&5
5120
echo "${ECHO_T}$LD" >&6
5122
echo "$as_me:$LINENO: result: no" >&5
5123
echo "${ECHO_T}no" >&6
5125
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5126
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5127
{ (exit 1); exit 1; }; }
5128
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5129
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5130
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5131
echo $ECHO_N "(cached) $ECHO_C" >&6
5133
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5134
case `$LD -v 2>&1 </dev/null` in
5135
*GNU* | *'with BFD'*)
5136
lt_cv_prog_gnu_ld=yes
5139
lt_cv_prog_gnu_ld=no
5143
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5144
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5145
with_gnu_ld=$lt_cv_prog_gnu_ld
5148
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5149
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5150
if test "${lt_cv_ld_reload_flag+set}" = set; then
5151
echo $ECHO_N "(cached) $ECHO_C" >&6
5153
lt_cv_ld_reload_flag='-r'
5155
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5156
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5157
reload_flag=$lt_cv_ld_reload_flag
5158
case $reload_flag in
5160
*) reload_flag=" $reload_flag" ;;
5162
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5164
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5165
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5166
if test "${lt_cv_path_NM+set}" = set; then
5167
echo $ECHO_N "(cached) $ECHO_C" >&6
5169
if test -n "$NM"; then
5170
# Let the user override the test.
5173
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5174
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5176
test -z "$ac_dir" && ac_dir=.
5177
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5178
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5179
# Check to see if the nm accepts a BSD-compat flag.
5180
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5181
# nm: unknown option "B" ignored
5182
# Tru64's nm complains that /dev/null is an invalid object file
5183
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5184
*/dev/null* | *'Invalid file or object type'*)
5185
lt_cv_path_NM="$tmp_nm -B"
5189
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5191
lt_cv_path_NM="$tmp_nm -p"
5195
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5196
continue # so that we can try to find one that supports BSD flags
5203
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5206
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5207
echo "${ECHO_T}$lt_cv_path_NM" >&6
5210
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5211
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5213
if test "$LN_S" = "ln -s"; then
5214
echo "$as_me:$LINENO: result: yes" >&5
5215
echo "${ECHO_T}yes" >&6
5217
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5218
echo "${ECHO_T}no, using $LN_S" >&6
5221
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5222
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5223
if test "${lt_cv_deplibs_check_method+set}" = set; then
5224
echo $ECHO_N "(cached) $ECHO_C" >&6
5226
lt_cv_file_magic_cmd='$MAGIC_CMD'
5227
lt_cv_file_magic_test_file=
5228
lt_cv_deplibs_check_method='unknown'
5229
# Need to set the preceding variable on all platforms that support
5230
# interlibrary dependencies.
5231
# 'none' -- dependencies not supported.
5232
# `unknown' -- same as none, but documents that we really don't know.
5233
# 'pass_all' -- all dependencies passed with no checks.
5234
# 'test_compile' -- check by making test program.
5235
# 'file_magic [[regex]]' -- check by looking for files in library path
5236
# which responds to the $file_magic_cmd with a given extended regex.
5237
# If you have `file' or equivalent on your system and you're not sure
5238
# whether `pass_all' will *always* work, you probably want this one.
5242
lt_cv_deplibs_check_method=pass_all
5246
lt_cv_deplibs_check_method=pass_all
5250
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5251
lt_cv_file_magic_cmd='/usr/bin/file -L'
5252
lt_cv_file_magic_test_file=/shlib/libc.so
5256
# func_win32_libid is a shell function defined in ltmain.sh
5257
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5258
lt_cv_file_magic_cmd='func_win32_libid'
5262
# Base MSYS/MinGW do not provide the 'file' command needed by
5263
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
5264
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5265
lt_cv_file_magic_cmd='$OBJDUMP -f'
5268
darwin* | rhapsody*)
5269
lt_cv_deplibs_check_method=pass_all
5272
freebsd* | kfreebsd*-gnu)
5273
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5276
# Not sure whether the presence of OpenBSD here was a mistake.
5277
# Let's accept both of them until this is cleared up.
5278
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5279
lt_cv_file_magic_cmd=/usr/bin/file
5280
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5284
lt_cv_deplibs_check_method=pass_all
5289
lt_cv_deplibs_check_method=pass_all
5292
hpux10.20* | hpux11*)
5293
lt_cv_file_magic_cmd=/usr/bin/file
5296
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5297
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5300
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]'
5301
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5304
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5305
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5310
irix5* | irix6* | nonstopux*)
5312
*-32|*"-32 ") libmagic=32-bit;;
5313
*-n32|*"-n32 ") libmagic=N32;;
5314
*-64|*"-64 ") libmagic=64-bit;;
5315
*) libmagic=never-match;;
5317
lt_cv_deplibs_check_method=pass_all
5320
# This must be Linux ELF.
5322
lt_cv_deplibs_check_method=pass_all
5325
netbsd* | knetbsd*-gnu)
5326
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5327
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5329
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5334
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5335
lt_cv_file_magic_cmd=/usr/bin/file
5336
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5340
lt_cv_deplibs_check_method=unknown
5344
lt_cv_file_magic_cmd=/usr/bin/file
5345
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5346
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5347
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5349
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5353
osf3* | osf4* | osf5*)
5354
lt_cv_deplibs_check_method=pass_all
5358
lt_cv_deplibs_check_method=pass_all
5362
lt_cv_deplibs_check_method=pass_all
5365
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5366
case $host_vendor in
5368
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]'
5369
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5372
lt_cv_deplibs_check_method=pass_all
5375
lt_cv_file_magic_cmd='/bin/file'
5376
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5379
lt_cv_file_magic_cmd='/bin/file'
5380
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5381
lt_cv_file_magic_test_file=/lib/libc.so
5384
lt_cv_deplibs_check_method=pass_all
5389
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5390
lt_cv_deplibs_check_method=pass_all
5395
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5396
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5397
file_magic_cmd=$lt_cv_file_magic_cmd
5398
deplibs_check_method=$lt_cv_deplibs_check_method
5399
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5404
# If no C compiler was specified, use CC.
5407
# Allow CC to be a program name with arguments.
5410
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5411
if test "${enable_libtool_lock+set}" = set; then
5412
enableval="$enable_libtool_lock"
5415
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5417
# Some flags need to be propagated to the compiler or linker for good
5421
# Find out which ABI we are using.
5422
echo 'int i;' > conftest.$ac_ext
5423
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424
(eval $ac_compile) 2>&5
5426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427
(exit $ac_status); }; then
5428
case `/usr/bin/file conftest.$ac_objext` in
5440
# Find out which ABI we are using.
5441
echo '#line 5441 "configure"' > conftest.$ac_ext
5442
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443
(eval $ac_compile) 2>&5
5445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446
(exit $ac_status); }; then
5447
if test "$lt_cv_prog_gnu_ld" = yes; then
5448
case `/usr/bin/file conftest.$ac_objext` in
5450
LD="${LD-ld} -melf32bsmip"
5453
LD="${LD-ld} -melf32bmipn32"
5456
LD="${LD-ld} -melf64bmip"
5460
case `/usr/bin/file conftest.$ac_objext` in
5476
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5477
# Find out which ABI we are using.
5478
echo 'int i;' > conftest.$ac_ext
5479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480
(eval $ac_compile) 2>&5
5482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
(exit $ac_status); }; then
5484
case "`/usr/bin/file conftest.o`" in
5488
LD="${LD-ld} -m elf_i386"
5490
ppc64-*linux*|powerpc64-*linux*)
5491
LD="${LD-ld} -m elf32ppclinux"
5494
LD="${LD-ld} -m elf_s390"
5497
LD="${LD-ld} -m elf32_sparc"
5504
LD="${LD-ld} -m elf_x86_64"
5506
ppc*-*linux*|powerpc*-*linux*)
5507
LD="${LD-ld} -m elf64ppc"
5510
LD="${LD-ld} -m elf64_s390"
5513
LD="${LD-ld} -m elf64_sparc"
5523
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5524
SAVE_CFLAGS="$CFLAGS"
5525
CFLAGS="$CFLAGS -belf"
5526
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5527
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5528
if test "${lt_cv_cc_needs_belf+set}" = set; then
5529
echo $ECHO_N "(cached) $ECHO_C" >&6
5532
ac_cpp='$CPP $CPPFLAGS'
5533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
cat >conftest.$ac_ext <<_ACEOF
5540
cat confdefs.h >>conftest.$ac_ext
5541
cat >>conftest.$ac_ext <<_ACEOF
5542
/* end confdefs.h. */
5552
rm -f conftest.$ac_objext conftest$ac_exeext
5553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554
(eval $ac_link) 2>conftest.er1
5556
grep -v '^ *+' conftest.er1 >conftest.err
5558
cat conftest.err >&5
5559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560
(exit $ac_status); } &&
5561
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566
(exit $ac_status); }; } &&
5567
{ ac_try='test -s conftest$ac_exeext'
5568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572
(exit $ac_status); }; }; then
5573
lt_cv_cc_needs_belf=yes
5575
echo "$as_me: failed program was:" >&5
5576
sed 's/^/| /' conftest.$ac_ext >&5
5578
lt_cv_cc_needs_belf=no
5580
rm -f conftest.err conftest.$ac_objext \
5581
conftest$ac_exeext conftest.$ac_ext
5583
ac_cpp='$CPP $CPPFLAGS'
5584
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5590
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5591
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5592
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5593
CFLAGS="$SAVE_CFLAGS"
5599
need_locks="$enable_libtool_lock"
5603
for ac_header in dlfcn.h
5605
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5606
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607
echo "$as_me:$LINENO: checking for $ac_header" >&5
5608
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5609
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610
echo $ECHO_N "(cached) $ECHO_C" >&6
5612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615
# Is the header compilable?
5616
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5617
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5618
cat >conftest.$ac_ext <<_ACEOF
5621
cat confdefs.h >>conftest.$ac_ext
5622
cat >>conftest.$ac_ext <<_ACEOF
5623
/* end confdefs.h. */
5624
$ac_includes_default
5625
#include <$ac_header>
5627
rm -f conftest.$ac_objext
5628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629
(eval $ac_compile) 2>conftest.er1
5631
grep -v '^ *+' conftest.er1 >conftest.err
5633
cat conftest.err >&5
5634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635
(exit $ac_status); } &&
5636
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641
(exit $ac_status); }; } &&
5642
{ ac_try='test -s conftest.$ac_objext'
5643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); }; }; then
5648
ac_header_compiler=yes
5650
echo "$as_me: failed program was:" >&5
5651
sed 's/^/| /' conftest.$ac_ext >&5
5653
ac_header_compiler=no
5655
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5657
echo "${ECHO_T}$ac_header_compiler" >&6
5659
# Is the header present?
5660
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5661
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5662
cat >conftest.$ac_ext <<_ACEOF
5665
cat confdefs.h >>conftest.$ac_ext
5666
cat >>conftest.$ac_ext <<_ACEOF
5667
/* end confdefs.h. */
5668
#include <$ac_header>
5670
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5671
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5673
grep -v '^ *+' conftest.er1 >conftest.err
5675
cat conftest.err >&5
5676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677
(exit $ac_status); } >/dev/null; then
5678
if test -s conftest.err; then
5679
ac_cpp_err=$ac_c_preproc_warn_flag
5680
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5687
if test -z "$ac_cpp_err"; then
5688
ac_header_preproc=yes
5690
echo "$as_me: failed program was:" >&5
5691
sed 's/^/| /' conftest.$ac_ext >&5
5693
ac_header_preproc=no
5695
rm -f conftest.err conftest.$ac_ext
5696
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5697
echo "${ECHO_T}$ac_header_preproc" >&6
5699
# So? What about this header?
5700
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5702
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5703
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5704
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5705
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5706
ac_header_preproc=yes
5709
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5710
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5711
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5712
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5713
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5714
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5715
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5716
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5717
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5718
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5719
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5720
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5723
## ------------------------------------------ ##
5724
## Report this to the AC_PACKAGE_NAME lists. ##
5725
## ------------------------------------------ ##
5728
sed "s/^/$as_me: WARNING: /" >&2
5731
echo "$as_me:$LINENO: checking for $ac_header" >&5
5732
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5733
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5734
echo $ECHO_N "(cached) $ECHO_C" >&6
5736
eval "$as_ac_Header=\$ac_header_preproc"
5738
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5739
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5742
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5743
cat >>confdefs.h <<_ACEOF
5744
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752
ac_cpp='$CXXCPP $CPPFLAGS'
5753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756
if test -n "$ac_tool_prefix"; then
5757
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5759
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5760
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5761
echo "$as_me:$LINENO: checking for $ac_word" >&5
5762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763
if test "${ac_cv_prog_CXX+set}" = set; then
5764
echo $ECHO_N "(cached) $ECHO_C" >&6
5766
if test -n "$CXX"; then
5767
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773
test -z "$as_dir" && as_dir=.
5774
for ac_exec_ext in '' $ac_executable_extensions; do
5775
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5777
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786
if test -n "$CXX"; then
5787
echo "$as_me:$LINENO: result: $CXX" >&5
5788
echo "${ECHO_T}$CXX" >&6
5790
echo "$as_me:$LINENO: result: no" >&5
5791
echo "${ECHO_T}no" >&6
5794
test -n "$CXX" && break
5797
if test -z "$CXX"; then
5799
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5801
# Extract the first word of "$ac_prog", so it can be a program name with args.
5802
set dummy $ac_prog; ac_word=$2
5803
echo "$as_me:$LINENO: checking for $ac_word" >&5
5804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5806
echo $ECHO_N "(cached) $ECHO_C" >&6
5808
if test -n "$ac_ct_CXX"; then
5809
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815
test -z "$as_dir" && as_dir=.
5816
for ac_exec_ext in '' $ac_executable_extensions; do
5817
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818
ac_cv_prog_ac_ct_CXX="$ac_prog"
5819
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5828
if test -n "$ac_ct_CXX"; then
5829
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5830
echo "${ECHO_T}$ac_ct_CXX" >&6
5832
echo "$as_me:$LINENO: result: no" >&5
5833
echo "${ECHO_T}no" >&6
5836
test -n "$ac_ct_CXX" && break
5838
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5844
# Provide some information about the compiler.
5845
echo "$as_me:$LINENO:" \
5846
"checking for C++ compiler version" >&5
5847
ac_compiler=`set X $ac_compile; echo $2`
5848
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5849
(eval $ac_compiler --version </dev/null >&5) 2>&5
5851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852
(exit $ac_status); }
5853
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5854
(eval $ac_compiler -v </dev/null >&5) 2>&5
5856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
(exit $ac_status); }
5858
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5859
(eval $ac_compiler -V </dev/null >&5) 2>&5
5861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862
(exit $ac_status); }
5864
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5865
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5866
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5867
echo $ECHO_N "(cached) $ECHO_C" >&6
5869
cat >conftest.$ac_ext <<_ACEOF
5872
cat confdefs.h >>conftest.$ac_ext
5873
cat >>conftest.$ac_ext <<_ACEOF
5874
/* end confdefs.h. */
5887
rm -f conftest.$ac_objext
5888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889
(eval $ac_compile) 2>conftest.er1
5891
grep -v '^ *+' conftest.er1 >conftest.err
5893
cat conftest.err >&5
5894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895
(exit $ac_status); } &&
5896
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901
(exit $ac_status); }; } &&
5902
{ ac_try='test -s conftest.$ac_objext'
5903
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907
(exit $ac_status); }; }; then
5910
echo "$as_me: failed program was:" >&5
5911
sed 's/^/| /' conftest.$ac_ext >&5
5915
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5919
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5920
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5921
GXX=`test $ac_compiler_gnu = yes && echo yes`
5922
ac_test_CXXFLAGS=${CXXFLAGS+set}
5923
ac_save_CXXFLAGS=$CXXFLAGS
5925
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5926
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5927
if test "${ac_cv_prog_cxx_g+set}" = set; then
5928
echo $ECHO_N "(cached) $ECHO_C" >&6
5930
cat >conftest.$ac_ext <<_ACEOF
5933
cat confdefs.h >>conftest.$ac_ext
5934
cat >>conftest.$ac_ext <<_ACEOF
5935
/* end confdefs.h. */
5945
rm -f conftest.$ac_objext
5946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947
(eval $ac_compile) 2>conftest.er1
5949
grep -v '^ *+' conftest.er1 >conftest.err
5951
cat conftest.err >&5
5952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953
(exit $ac_status); } &&
5954
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
(exit $ac_status); }; } &&
5960
{ ac_try='test -s conftest.$ac_objext'
5961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965
(exit $ac_status); }; }; then
5966
ac_cv_prog_cxx_g=yes
5968
echo "$as_me: failed program was:" >&5
5969
sed 's/^/| /' conftest.$ac_ext >&5
5973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5976
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5977
if test "$ac_test_CXXFLAGS" = set; then
5978
CXXFLAGS=$ac_save_CXXFLAGS
5979
elif test $ac_cv_prog_cxx_g = yes; then
5980
if test "$GXX" = yes; then
5986
if test "$GXX" = yes; then
5992
for ac_declaration in \
5994
'extern "C" void std::exit (int) throw (); using std::exit;' \
5995
'extern "C" void std::exit (int); using std::exit;' \
5996
'extern "C" void exit (int) throw ();' \
5997
'extern "C" void exit (int);' \
6000
cat >conftest.$ac_ext <<_ACEOF
6003
cat confdefs.h >>conftest.$ac_ext
6004
cat >>conftest.$ac_ext <<_ACEOF
6005
/* end confdefs.h. */
6016
rm -f conftest.$ac_objext
6017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018
(eval $ac_compile) 2>conftest.er1
6020
grep -v '^ *+' conftest.er1 >conftest.err
6022
cat conftest.err >&5
6023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024
(exit $ac_status); } &&
6025
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030
(exit $ac_status); }; } &&
6031
{ ac_try='test -s conftest.$ac_objext'
6032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036
(exit $ac_status); }; }; then
6039
echo "$as_me: failed program was:" >&5
6040
sed 's/^/| /' conftest.$ac_ext >&5
6044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6045
cat >conftest.$ac_ext <<_ACEOF
6048
cat confdefs.h >>conftest.$ac_ext
6049
cat >>conftest.$ac_ext <<_ACEOF
6050
/* end confdefs.h. */
6060
rm -f conftest.$ac_objext
6061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062
(eval $ac_compile) 2>conftest.er1
6064
grep -v '^ *+' conftest.er1 >conftest.err
6066
cat conftest.err >&5
6067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
(exit $ac_status); } &&
6069
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
(exit $ac_status); }; } &&
6075
{ ac_try='test -s conftest.$ac_objext'
6076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080
(exit $ac_status); }; }; then
6083
echo "$as_me: failed program was:" >&5
6084
sed 's/^/| /' conftest.$ac_ext >&5
6087
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6090
if test -n "$ac_declaration"; then
6091
echo '#ifdef __cplusplus' >>confdefs.h
6092
echo $ac_declaration >>confdefs.h
6093
echo '#endif' >>confdefs.h
6097
ac_cpp='$CXXCPP $CPPFLAGS'
6098
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6102
depcc="$CXX" am_compiler_list=
6104
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6105
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6106
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6107
echo $ECHO_N "(cached) $ECHO_C" >&6
6109
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6110
# We make a subdir and do the tests there. Otherwise we can end up
6111
# making bogus files that we don't know about and never remove. For
6112
# instance it was reported that on HP-UX the gcc test will end up
6113
# making a dummy file named `D' -- because `-MD' means `put the output
6116
# Copy depcomp to subdir because otherwise we won't find it if we're
6117
# using a relative directory.
6118
cp "$am_depcomp" conftest.dir
6120
# We will build objects and dependencies in a subdirectory because
6121
# it helps to detect inapplicable dependency modes. For instance
6122
# both Tru64's cc and ICC support -MD to output dependencies as a
6123
# side effect of compilation, but ICC will put the dependencies in
6124
# the current directory while Tru64 will put them in the object
6128
am_cv_CXX_dependencies_compiler_type=none
6129
if test "$am_compiler_list" = ""; then
6130
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6132
for depmode in $am_compiler_list; do
6133
# Setup a source with many dependencies, because some compilers
6134
# like to wrap large dependency lists on column 80 (with \), and
6135
# we should not choose a depcomp mode which is confused by this.
6137
# We need to recreate these files for each test, as the compiler may
6138
# overwrite some of them when testing with obscure command lines.
6139
# This happens at least with the AIX C compiler.
6141
for i in 1 2 3 4 5 6; do
6142
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6143
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6144
# Solaris 8's {/usr,}/bin/sh.
6145
touch sub/conftst$i.h
6147
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6151
# after this tag, mechanisms are not by side-effect, so they'll
6152
# only be used when explicitly requested
6153
if test "x$enable_dependency_tracking" = xyes; then
6161
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6162
# mode. It turns out that the SunPro C++ compiler does not properly
6163
# handle `-M -o', and we need to detect this.
6164
if depmode=$depmode \
6165
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6166
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6167
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6168
>/dev/null 2>conftest.err &&
6169
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6170
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6171
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6172
# icc doesn't choke on unknown options, it will just issue warnings
6173
# or remarks (even with -Werror). So we grep stderr for any message
6174
# that says an option was ignored or not supported.
6175
# When given -MP, icc 7.0 and 7.1 complain thusly:
6176
# icc: Command line warning: ignoring option '-M'; no argument required
6177
# The diagnosis changed in icc 8.0:
6178
# icc: Command line remark: option '-MP' not supported
6179
if (grep 'ignoring option' conftest.err ||
6180
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6181
am_cv_CXX_dependencies_compiler_type=$depmode
6190
am_cv_CXX_dependencies_compiler_type=none
6194
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6195
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6196
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6201
test "x$enable_dependency_tracking" != xno \
6202
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6203
am__fastdepCXX_TRUE=
6204
am__fastdepCXX_FALSE='#'
6206
am__fastdepCXX_TRUE='#'
6207
am__fastdepCXX_FALSE=
6212
ac_cpp='$CXXCPP $CPPFLAGS'
6213
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6214
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6215
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6216
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6217
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6218
if test -z "$CXXCPP"; then
6219
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6220
echo $ECHO_N "(cached) $ECHO_C" >&6
6222
# Double quotes because CXXCPP needs to be expanded
6223
for CXXCPP in "$CXX -E" "/lib/cpp"
6226
for ac_cxx_preproc_warn_flag in '' yes
6228
# Use a header file that comes with gcc, so configuring glibc
6229
# with a fresh cross-compiler works.
6230
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6231
# <limits.h> exists even on freestanding compilers.
6232
# On the NeXT, cc -E runs the code through the compiler's parser,
6233
# not just through cpp. "Syntax error" is here to catch this case.
6234
cat >conftest.$ac_ext <<_ACEOF
6237
cat confdefs.h >>conftest.$ac_ext
6238
cat >>conftest.$ac_ext <<_ACEOF
6239
/* end confdefs.h. */
6241
# include <limits.h>
6243
# include <assert.h>
6247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6248
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6250
grep -v '^ *+' conftest.er1 >conftest.err
6252
cat conftest.err >&5
6253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254
(exit $ac_status); } >/dev/null; then
6255
if test -s conftest.err; then
6256
ac_cpp_err=$ac_cxx_preproc_warn_flag
6257
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6264
if test -z "$ac_cpp_err"; then
6267
echo "$as_me: failed program was:" >&5
6268
sed 's/^/| /' conftest.$ac_ext >&5
6270
# Broken: fails on valid input.
6273
rm -f conftest.err conftest.$ac_ext
6275
# OK, works on sane cases. Now check whether non-existent headers
6276
# can be detected and how.
6277
cat >conftest.$ac_ext <<_ACEOF
6280
cat confdefs.h >>conftest.$ac_ext
6281
cat >>conftest.$ac_ext <<_ACEOF
6282
/* end confdefs.h. */
6283
#include <ac_nonexistent.h>
6285
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6286
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288
grep -v '^ *+' conftest.er1 >conftest.err
6290
cat conftest.err >&5
6291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292
(exit $ac_status); } >/dev/null; then
6293
if test -s conftest.err; then
6294
ac_cpp_err=$ac_cxx_preproc_warn_flag
6295
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6302
if test -z "$ac_cpp_err"; then
6303
# Broken: success on invalid input.
6306
echo "$as_me: failed program was:" >&5
6307
sed 's/^/| /' conftest.$ac_ext >&5
6309
# Passes both tests.
6313
rm -f conftest.err conftest.$ac_ext
6316
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6317
rm -f conftest.err conftest.$ac_ext
6318
if $ac_preproc_ok; then
6323
ac_cv_prog_CXXCPP=$CXXCPP
6326
CXXCPP=$ac_cv_prog_CXXCPP
6328
ac_cv_prog_CXXCPP=$CXXCPP
6330
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6331
echo "${ECHO_T}$CXXCPP" >&6
6333
for ac_cxx_preproc_warn_flag in '' yes
6335
# Use a header file that comes with gcc, so configuring glibc
6336
# with a fresh cross-compiler works.
6337
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338
# <limits.h> exists even on freestanding compilers.
6339
# On the NeXT, cc -E runs the code through the compiler's parser,
6340
# not just through cpp. "Syntax error" is here to catch this case.
6341
cat >conftest.$ac_ext <<_ACEOF
6344
cat confdefs.h >>conftest.$ac_ext
6345
cat >>conftest.$ac_ext <<_ACEOF
6346
/* end confdefs.h. */
6348
# include <limits.h>
6350
# include <assert.h>
6354
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357
grep -v '^ *+' conftest.er1 >conftest.err
6359
cat conftest.err >&5
6360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361
(exit $ac_status); } >/dev/null; then
6362
if test -s conftest.err; then
6363
ac_cpp_err=$ac_cxx_preproc_warn_flag
6364
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6371
if test -z "$ac_cpp_err"; then
6374
echo "$as_me: failed program was:" >&5
6375
sed 's/^/| /' conftest.$ac_ext >&5
6377
# Broken: fails on valid input.
6380
rm -f conftest.err conftest.$ac_ext
6382
# OK, works on sane cases. Now check whether non-existent headers
6383
# can be detected and how.
6384
cat >conftest.$ac_ext <<_ACEOF
6387
cat confdefs.h >>conftest.$ac_ext
6388
cat >>conftest.$ac_ext <<_ACEOF
6389
/* end confdefs.h. */
6390
#include <ac_nonexistent.h>
6392
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6393
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395
grep -v '^ *+' conftest.er1 >conftest.err
6397
cat conftest.err >&5
6398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399
(exit $ac_status); } >/dev/null; then
6400
if test -s conftest.err; then
6401
ac_cpp_err=$ac_cxx_preproc_warn_flag
6402
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6409
if test -z "$ac_cpp_err"; then
6410
# Broken: success on invalid input.
6413
echo "$as_me: failed program was:" >&5
6414
sed 's/^/| /' conftest.$ac_ext >&5
6416
# Passes both tests.
6420
rm -f conftest.err conftest.$ac_ext
6423
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6424
rm -f conftest.err conftest.$ac_ext
6425
if $ac_preproc_ok; then
6428
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6429
See \`config.log' for more details." >&5
6430
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6431
See \`config.log' for more details." >&2;}
6432
{ (exit 1); exit 1; }; }
6436
ac_cpp='$CXXCPP $CPPFLAGS'
6437
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6443
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6444
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6446
if test -n "$ac_tool_prefix"; then
6447
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6449
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6450
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6451
echo "$as_me:$LINENO: checking for $ac_word" >&5
6452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6453
if test "${ac_cv_prog_F77+set}" = set; then
6454
echo $ECHO_N "(cached) $ECHO_C" >&6
6456
if test -n "$F77"; then
6457
ac_cv_prog_F77="$F77" # Let the user override the test.
6459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463
test -z "$as_dir" && as_dir=.
6464
for ac_exec_ext in '' $ac_executable_extensions; do
6465
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6467
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476
if test -n "$F77"; then
6477
echo "$as_me:$LINENO: result: $F77" >&5
6478
echo "${ECHO_T}$F77" >&6
6480
echo "$as_me:$LINENO: result: no" >&5
6481
echo "${ECHO_T}no" >&6
6484
test -n "$F77" && break
6487
if test -z "$F77"; then
6489
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6491
# Extract the first word of "$ac_prog", so it can be a program name with args.
6492
set dummy $ac_prog; ac_word=$2
6493
echo "$as_me:$LINENO: checking for $ac_word" >&5
6494
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6496
echo $ECHO_N "(cached) $ECHO_C" >&6
6498
if test -n "$ac_ct_F77"; then
6499
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6501
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505
test -z "$as_dir" && as_dir=.
6506
for ac_exec_ext in '' $ac_executable_extensions; do
6507
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508
ac_cv_prog_ac_ct_F77="$ac_prog"
6509
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6518
if test -n "$ac_ct_F77"; then
6519
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6520
echo "${ECHO_T}$ac_ct_F77" >&6
6522
echo "$as_me:$LINENO: result: no" >&5
6523
echo "${ECHO_T}no" >&6
6526
test -n "$ac_ct_F77" && break
6533
# Provide some information about the compiler.
6534
echo "$as_me:6534:" \
6535
"checking for Fortran 77 compiler version" >&5
6536
ac_compiler=`set X $ac_compile; echo $2`
6537
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6538
(eval $ac_compiler --version </dev/null >&5) 2>&5
6540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541
(exit $ac_status); }
6542
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6543
(eval $ac_compiler -v </dev/null >&5) 2>&5
6545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546
(exit $ac_status); }
6547
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6548
(eval $ac_compiler -V </dev/null >&5) 2>&5
6550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551
(exit $ac_status); }
6554
# If we don't use `.F' as extension, the preprocessor is not run on the
6555
# input file. (Note that this only needs to work for GNU compilers.)
6558
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6559
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6560
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6561
echo $ECHO_N "(cached) $ECHO_C" >&6
6563
cat >conftest.$ac_ext <<_ACEOF
6571
rm -f conftest.$ac_objext
6572
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573
(eval $ac_compile) 2>conftest.er1
6575
grep -v '^ *+' conftest.er1 >conftest.err
6577
cat conftest.err >&5
6578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579
(exit $ac_status); } &&
6580
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6581
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585
(exit $ac_status); }; } &&
6586
{ ac_try='test -s conftest.$ac_objext'
6587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591
(exit $ac_status); }; }; then
6594
echo "$as_me: failed program was:" >&5
6595
sed 's/^/| /' conftest.$ac_ext >&5
6599
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6600
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6603
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6604
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6606
ac_test_FFLAGS=${FFLAGS+set}
6607
ac_save_FFLAGS=$FFLAGS
6609
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6610
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6611
if test "${ac_cv_prog_f77_g+set}" = set; then
6612
echo $ECHO_N "(cached) $ECHO_C" >&6
6615
cat >conftest.$ac_ext <<_ACEOF
6620
rm -f conftest.$ac_objext
6621
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622
(eval $ac_compile) 2>conftest.er1
6624
grep -v '^ *+' conftest.er1 >conftest.err
6626
cat conftest.err >&5
6627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628
(exit $ac_status); } &&
6629
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
(exit $ac_status); }; } &&
6635
{ ac_try='test -s conftest.$ac_objext'
6636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640
(exit $ac_status); }; }; then
6641
ac_cv_prog_f77_g=yes
6643
echo "$as_me: failed program was:" >&5
6644
sed 's/^/| /' conftest.$ac_ext >&5
6648
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6651
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6652
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6653
if test "$ac_test_FFLAGS" = set; then
6654
FFLAGS=$ac_save_FFLAGS
6655
elif test $ac_cv_prog_f77_g = yes; then
6656
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6662
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6669
G77=`test $ac_compiler_gnu = yes && echo yes`
6671
ac_cpp='$CPP $CPPFLAGS'
6672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6680
# find the maximum length of command line arguments
6681
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6682
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6683
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6684
echo $ECHO_N "(cached) $ECHO_C" >&6
6691
# On DJGPP, this test can blow up pretty badly due to problems in libc
6692
# (any single argument exceeding 2000 bytes causes a buffer overrun
6693
# during glob expansion). Even if it were fixed, the result of this
6694
# check would be larger than it should be.
6695
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6699
# Under GNU Hurd, this test is not required because there is
6700
# no limit to the length of command line arguments.
6701
# Libtool will interpret -1 as no limit whatsoever
6702
lt_cv_sys_max_cmd_len=-1;
6706
# On Win9x/ME, this test blows up -- it succeeds, but takes
6707
# about 5 minutes as the teststring grows exponentially.
6708
# Worse, since 9x/ME are not pre-emptively multitasking,
6709
# you end up with a "frozen" computer, even though with patience
6710
# the test eventually succeeds (with a max line length of 256k).
6711
# Instead, let's just punt: use the minimum linelength reported by
6712
# all of the supported platforms: 8192 (on NT/2K/XP).
6713
lt_cv_sys_max_cmd_len=8192;
6717
# On AmigaOS with pdksh, this test takes hours, literally.
6718
# So we just punt and use a minimum line length of 8192.
6719
lt_cv_sys_max_cmd_len=8192;
6723
# If test is not a shell built-in, we'll probably end up computing a
6724
# maximum length that is only half of the actual maximum length, but
6726
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6727
= "XX$teststring") >/dev/null 2>&1 &&
6728
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6729
lt_cv_sys_max_cmd_len=$new_result &&
6730
test $i != 17 # 1/2 MB should be enough
6733
teststring=$teststring$teststring
6736
# Add a significant safety factor because C++ compilers can tack on massive
6737
# amounts of additional arguments before passing them to the linker.
6738
# It appears as though 1/2 is a usable value.
6739
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6745
if test -n $lt_cv_sys_max_cmd_len ; then
6746
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6747
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6749
echo "$as_me:$LINENO: result: none" >&5
6750
echo "${ECHO_T}none" >&6
6756
# Check for command to grab the raw symbol name followed by C symbol from nm.
6757
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6758
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6759
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6760
echo $ECHO_N "(cached) $ECHO_C" >&6
6763
# These are sane defaults that work on at least a few old systems.
6764
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6766
# Character class describing NM global symbol codes.
6767
symcode='[BCDEGRST]'
6769
# Regexp to match symbols that can be accessed directly from C.
6770
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6772
# Transform the above into a raw symbol and a C symbol.
6773
symxfrm='\1 \2\3 \3'
6775
# Transform an extracted symbol line into a proper C declaration
6776
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6778
# Transform an extracted symbol line into symbol name and symbol address
6779
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'"
6781
# Define system-specific variables.
6786
cygwin* | mingw* | pw32*)
6787
symcode='[ABCDGISTW]'
6789
hpux*) # Its linker distinguishes data from code symbols
6790
if test "$host_cpu" = ia64; then
6791
symcode='[ABCDEGRST]'
6793
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6794
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'"
6797
symcode='[BCDEGRST]'
6800
symcode='[BCDEGQRST]'
6810
# Handle CRLF in mingw tool chain
6814
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6818
# If we're using GNU nm, then use its standard symbol codes.
6819
case `$NM -V 2>&1` in
6820
*GNU* | *'with BFD'*)
6821
symcode='[ABCDGIRSTW]' ;;
6824
# Try without a prefix undercore, then with it.
6825
for ac_symprfx in "" "_"; do
6827
# Write the raw and C identifiers.
6828
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6830
# Check to see that the pipe works correctly.
6834
cat > conftest.$ac_ext <<EOF
6839
void nm_test_func(){}
6843
int main(){nm_test_var='a';nm_test_func();return(0);}
6846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847
(eval $ac_compile) 2>&5
6849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850
(exit $ac_status); }; then
6851
# Now try to grab the symbols.
6853
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6854
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
(exit $ac_status); } && test -s "$nlist"; then
6858
# Try sorting and uniquifying the output.
6859
if sort "$nlist" | uniq > "$nlist"T; then
6860
mv -f "$nlist"T "$nlist"
6865
# Make sure that we snagged all the symbols we need.
6866
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6867
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6868
cat <<EOF > conftest.$ac_ext
6874
# Now generate the symbol file.
6875
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6877
cat <<EOF >> conftest.$ac_ext
6878
#if defined (__STDC__) && __STDC__
6879
# define lt_ptr_t void *
6881
# define lt_ptr_t char *
6885
/* The mapping between symbol names and symbols. */
6890
lt_preloaded_symbols[] =
6893
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6894
cat <<\EOF >> conftest.$ac_ext
6902
# Now try linking the two files.
6903
mv conftest.$ac_objext conftstm.$ac_objext
6904
lt_save_LIBS="$LIBS"
6905
lt_save_CFLAGS="$CFLAGS"
6906
LIBS="conftstm.$ac_objext"
6907
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6908
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909
(eval $ac_link) 2>&5
6911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6915
LIBS="$lt_save_LIBS"
6916
CFLAGS="$lt_save_CFLAGS"
6918
echo "cannot find nm_test_func in $nlist" >&5
6921
echo "cannot find nm_test_var in $nlist" >&5
6924
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6927
echo "$progname: failed program was:" >&5
6928
cat conftest.$ac_ext >&5
6930
rm -f conftest* conftst*
6932
# Do not use the global_symbol_pipe unless it works.
6933
if test "$pipe_works" = yes; then
6936
lt_cv_sys_global_symbol_pipe=
6942
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6943
lt_cv_sys_global_symbol_to_cdecl=
6945
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6946
echo "$as_me:$LINENO: result: failed" >&5
6947
echo "${ECHO_T}failed" >&6
6949
echo "$as_me:$LINENO: result: ok" >&5
6950
echo "${ECHO_T}ok" >&6
6953
echo "$as_me:$LINENO: checking for objdir" >&5
6954
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6955
if test "${lt_cv_objdir+set}" = set; then
6956
echo $ECHO_N "(cached) $ECHO_C" >&6
6958
rm -f .libs 2>/dev/null
6959
mkdir .libs 2>/dev/null
6960
if test -d .libs; then
6963
# MS-DOS does not allow filenames that begin with a dot.
6966
rmdir .libs 2>/dev/null
6968
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6969
echo "${ECHO_T}$lt_cv_objdir" >&6
6970
objdir=$lt_cv_objdir
6978
# AIX sometimes has problems with the GCC collect2 program. For some
6979
# reason, if we set the COLLECT_NAMES environment variable, the problems
6980
# vanish in a puff of smoke.
6981
if test "X${COLLECT_NAMES+set}" != Xset; then
6983
export COLLECT_NAMES
6988
# Sed substitution that helps us do robust quoting. It backslashifies
6989
# metacharacters that are still active within double-quoted strings.
6990
Xsed='sed -e s/^X//'
6991
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6993
# Same as above, but do not quote variable references.
6994
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6996
# Sed substitution to delay expansion of an escaped shell variable in a
6997
# double_quote_subst'ed string.
6998
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7000
# Sed substitution to avoid accidental globbing in evaled expressions
7001
no_glob_subst='s/\*/\\\*/g'
7007
default_ofile=libtool
7008
can_build_shared=yes
7010
# All known linkers require a `.a' archive for static linking (except M$VC,
7011
# which needs '.lib').
7013
ltmain="$ac_aux_dir/ltmain.sh"
7014
ofile="$default_ofile"
7015
with_gnu_ld="$lt_cv_prog_gnu_ld"
7017
if test -n "$ac_tool_prefix"; then
7018
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7019
set dummy ${ac_tool_prefix}ar; ac_word=$2
7020
echo "$as_me:$LINENO: checking for $ac_word" >&5
7021
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022
if test "${ac_cv_prog_AR+set}" = set; then
7023
echo $ECHO_N "(cached) $ECHO_C" >&6
7025
if test -n "$AR"; then
7026
ac_cv_prog_AR="$AR" # Let the user override the test.
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032
test -z "$as_dir" && as_dir=.
7033
for ac_exec_ext in '' $ac_executable_extensions; do
7034
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035
ac_cv_prog_AR="${ac_tool_prefix}ar"
7036
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045
if test -n "$AR"; then
7046
echo "$as_me:$LINENO: result: $AR" >&5
7047
echo "${ECHO_T}$AR" >&6
7049
echo "$as_me:$LINENO: result: no" >&5
7050
echo "${ECHO_T}no" >&6
7054
if test -z "$ac_cv_prog_AR"; then
7056
# Extract the first word of "ar", so it can be a program name with args.
7057
set dummy ar; ac_word=$2
7058
echo "$as_me:$LINENO: checking for $ac_word" >&5
7059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7061
echo $ECHO_N "(cached) $ECHO_C" >&6
7063
if test -n "$ac_ct_AR"; then
7064
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070
test -z "$as_dir" && as_dir=.
7071
for ac_exec_ext in '' $ac_executable_extensions; do
7072
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073
ac_cv_prog_ac_ct_AR="ar"
7074
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7083
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7084
if test -n "$ac_ct_AR"; then
7085
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7086
echo "${ECHO_T}$ac_ct_AR" >&6
7088
echo "$as_me:$LINENO: result: no" >&5
7089
echo "${ECHO_T}no" >&6
7097
if test -n "$ac_tool_prefix"; then
7098
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7099
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100
echo "$as_me:$LINENO: checking for $ac_word" >&5
7101
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102
if test "${ac_cv_prog_RANLIB+set}" = set; then
7103
echo $ECHO_N "(cached) $ECHO_C" >&6
7105
if test -n "$RANLIB"; then
7106
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112
test -z "$as_dir" && as_dir=.
7113
for ac_exec_ext in '' $ac_executable_extensions; do
7114
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7116
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124
RANLIB=$ac_cv_prog_RANLIB
7125
if test -n "$RANLIB"; then
7126
echo "$as_me:$LINENO: result: $RANLIB" >&5
7127
echo "${ECHO_T}$RANLIB" >&6
7129
echo "$as_me:$LINENO: result: no" >&5
7130
echo "${ECHO_T}no" >&6
7134
if test -z "$ac_cv_prog_RANLIB"; then
7135
ac_ct_RANLIB=$RANLIB
7136
# Extract the first word of "ranlib", so it can be a program name with args.
7137
set dummy ranlib; ac_word=$2
7138
echo "$as_me:$LINENO: checking for $ac_word" >&5
7139
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7140
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7141
echo $ECHO_N "(cached) $ECHO_C" >&6
7143
if test -n "$ac_ct_RANLIB"; then
7144
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150
test -z "$as_dir" && as_dir=.
7151
for ac_exec_ext in '' $ac_executable_extensions; do
7152
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153
ac_cv_prog_ac_ct_RANLIB="ranlib"
7154
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7163
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7164
if test -n "$ac_ct_RANLIB"; then
7165
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7166
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7168
echo "$as_me:$LINENO: result: no" >&5
7169
echo "${ECHO_T}no" >&6
7172
RANLIB=$ac_ct_RANLIB
7174
RANLIB="$ac_cv_prog_RANLIB"
7177
if test -n "$ac_tool_prefix"; then
7178
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179
set dummy ${ac_tool_prefix}strip; ac_word=$2
7180
echo "$as_me:$LINENO: checking for $ac_word" >&5
7181
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182
if test "${ac_cv_prog_STRIP+set}" = set; then
7183
echo $ECHO_N "(cached) $ECHO_C" >&6
7185
if test -n "$STRIP"; then
7186
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192
test -z "$as_dir" && as_dir=.
7193
for ac_exec_ext in '' $ac_executable_extensions; do
7194
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204
STRIP=$ac_cv_prog_STRIP
7205
if test -n "$STRIP"; then
7206
echo "$as_me:$LINENO: result: $STRIP" >&5
7207
echo "${ECHO_T}$STRIP" >&6
7209
echo "$as_me:$LINENO: result: no" >&5
7210
echo "${ECHO_T}no" >&6
7214
if test -z "$ac_cv_prog_STRIP"; then
7216
# Extract the first word of "strip", so it can be a program name with args.
7217
set dummy strip; ac_word=$2
7218
echo "$as_me:$LINENO: checking for $ac_word" >&5
7219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7221
echo $ECHO_N "(cached) $ECHO_C" >&6
7223
if test -n "$ac_ct_STRIP"; then
7224
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230
test -z "$as_dir" && as_dir=.
7231
for ac_exec_ext in '' $ac_executable_extensions; do
7232
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233
ac_cv_prog_ac_ct_STRIP="strip"
7234
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7243
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7244
if test -n "$ac_ct_STRIP"; then
7245
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7246
echo "${ECHO_T}$ac_ct_STRIP" >&6
7248
echo "$as_me:$LINENO: result: no" >&5
7249
echo "${ECHO_T}no" >&6
7254
STRIP="$ac_cv_prog_STRIP"
7259
old_CFLAGS="$CFLAGS"
7261
# Set sane defaults for various variables
7262
test -z "$AR" && AR=ar
7263
test -z "$AR_FLAGS" && AR_FLAGS=cru
7264
test -z "$AS" && AS=as
7265
test -z "$CC" && CC=cc
7266
test -z "$LTCC" && LTCC=$CC
7267
test -z "$DLLTOOL" && DLLTOOL=dlltool
7268
test -z "$LD" && LD=ld
7269
test -z "$LN_S" && LN_S="ln -s"
7270
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7271
test -z "$NM" && NM=nm
7272
test -z "$SED" && SED=sed
7273
test -z "$OBJDUMP" && OBJDUMP=objdump
7274
test -z "$RANLIB" && RANLIB=:
7275
test -z "$STRIP" && STRIP=:
7276
test -z "$ac_objext" && ac_objext=o
7278
# Determine commands to create old-style static archives.
7279
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7280
old_postinstall_cmds='chmod 644 $oldlib'
7281
old_postuninstall_cmds=
7283
if test -n "$RANLIB"; then
7286
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7289
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7292
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7295
# Only perform the check for file, if the check method requires it
7296
case $deplibs_check_method in
7298
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7299
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7300
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7301
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7302
echo $ECHO_N "(cached) $ECHO_C" >&6
7306
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7309
lt_save_MAGIC_CMD="$MAGIC_CMD"
7310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7311
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7312
for ac_dir in $ac_dummy; do
7314
test -z "$ac_dir" && ac_dir=.
7315
if test -f $ac_dir/${ac_tool_prefix}file; then
7316
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7317
if test -n "$file_magic_test_file"; then
7318
case $deplibs_check_method in
7320
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7321
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7322
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7323
$EGREP "$file_magic_regex" > /dev/null; then
7328
*** Warning: the command libtool uses to detect shared libraries,
7329
*** $file_magic_cmd, produces output that libtool cannot recognize.
7330
*** The result is that libtool may fail to recognize shared libraries
7331
*** as such. This will affect the creation of libtool libraries that
7332
*** depend on shared libraries, but programs linked with such libtool
7333
*** libraries will work regardless of this problem. Nevertheless, you
7334
*** may want to report the problem to your system manager and/or to
7335
*** bug-libtool@gnu.org
7345
MAGIC_CMD="$lt_save_MAGIC_CMD"
7350
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351
if test -n "$MAGIC_CMD"; then
7352
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7353
echo "${ECHO_T}$MAGIC_CMD" >&6
7355
echo "$as_me:$LINENO: result: no" >&5
7356
echo "${ECHO_T}no" >&6
7359
if test -z "$lt_cv_path_MAGIC_CMD"; then
7360
if test -n "$ac_tool_prefix"; then
7361
echo "$as_me:$LINENO: checking for file" >&5
7362
echo $ECHO_N "checking for file... $ECHO_C" >&6
7363
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7364
echo $ECHO_N "(cached) $ECHO_C" >&6
7368
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7371
lt_save_MAGIC_CMD="$MAGIC_CMD"
7372
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7374
for ac_dir in $ac_dummy; do
7376
test -z "$ac_dir" && ac_dir=.
7377
if test -f $ac_dir/file; then
7378
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7379
if test -n "$file_magic_test_file"; then
7380
case $deplibs_check_method in
7382
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7383
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7384
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7385
$EGREP "$file_magic_regex" > /dev/null; then
7390
*** Warning: the command libtool uses to detect shared libraries,
7391
*** $file_magic_cmd, produces output that libtool cannot recognize.
7392
*** The result is that libtool may fail to recognize shared libraries
7393
*** as such. This will affect the creation of libtool libraries that
7394
*** depend on shared libraries, but programs linked with such libtool
7395
*** libraries will work regardless of this problem. Nevertheless, you
7396
*** may want to report the problem to your system manager and/or to
7397
*** bug-libtool@gnu.org
7407
MAGIC_CMD="$lt_save_MAGIC_CMD"
7412
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413
if test -n "$MAGIC_CMD"; then
7414
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7415
echo "${ECHO_T}$MAGIC_CMD" >&6
7417
echo "$as_me:$LINENO: result: no" >&5
7418
echo "${ECHO_T}no" >&6
7433
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7434
if test "${enable_libtool_lock+set}" = set; then
7435
enableval="$enable_libtool_lock"
7438
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7441
# Check whether --with-pic or --without-pic was given.
7442
if test "${with_pic+set}" = set; then
7448
test -z "$pic_mode" && pic_mode=default
7450
# Use C for the default configuration in the libtool script
7454
ac_cpp='$CPP $CPPFLAGS'
7455
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
# Source file extension for C test sources.
7463
# Object file extension for compiled C test sources.
7467
# Code to be used in simple compile tests
7468
lt_simple_compile_test_code="int some_variable = 0;\n"
7470
# Code to be used in simple link tests
7471
lt_simple_link_test_code='int main(){return(0);}\n'
7474
# If no C compiler was specified, use CC.
7477
# Allow CC to be a program name with arguments.
7482
# Check for any special shared library compilation flags.
7485
if test "$GCC" = no; then
7488
lt_prog_cc_shlib='-belf'
7492
if test -n "$lt_prog_cc_shlib"; then
7493
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7494
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7495
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7497
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7498
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7499
lt_cv_prog_cc_can_build_shared=no
7505
# Check to make sure the static flag actually works.
7507
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7508
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7509
if test "${lt_prog_compiler_static_works+set}" = set; then
7510
echo $ECHO_N "(cached) $ECHO_C" >&6
7512
lt_prog_compiler_static_works=no
7513
save_LDFLAGS="$LDFLAGS"
7514
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7515
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7516
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7517
# The compiler can only warn and ignore the option if not recognized
7518
# So say no if there are warnings
7519
if test -s conftest.err; then
7520
# Append any errors to the config.log.
7521
cat conftest.err 1>&5
7523
lt_prog_compiler_static_works=yes
7527
LDFLAGS="$save_LDFLAGS"
7530
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7531
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7533
if test x"$lt_prog_compiler_static_works" = xyes; then
7536
lt_prog_compiler_static=
7542
lt_prog_compiler_no_builtin_flag=
7544
if test "$GCC" = yes; then
7545
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7548
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7549
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7550
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7551
echo $ECHO_N "(cached) $ECHO_C" >&6
7553
lt_cv_prog_compiler_rtti_exceptions=no
7554
ac_outfile=conftest.$ac_objext
7555
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7556
lt_compiler_flag="-fno-rtti -fno-exceptions"
7557
# Insert the option either (1) after the last *FLAGS variable, or
7558
# (2) before a word containing "conftest.", or (3) at the end.
7559
# Note that $ac_compile itself does not contain backslashes and begins
7560
# with a dollar sign (not a hyphen), so the echo should work correctly.
7561
# The option is referenced via a variable to avoid confusing sed.
7562
lt_compile=`echo "$ac_compile" | $SED \
7563
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7564
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7565
-e 's:$: $lt_compiler_flag:'`
7566
(eval echo "\"\$as_me:7566: $lt_compile\"" >&5)
7567
(eval "$lt_compile" 2>conftest.err)
7569
cat conftest.err >&5
7570
echo "$as_me:7570: \$? = $ac_status" >&5
7571
if (exit $ac_status) && test -s "$ac_outfile"; then
7572
# The compiler can only warn and ignore the option if not recognized
7573
# So say no if there are warnings
7574
if test ! -s conftest.err; then
7575
lt_cv_prog_compiler_rtti_exceptions=yes
7581
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7582
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7584
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7585
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7592
lt_prog_compiler_wl=
7593
lt_prog_compiler_pic=
7594
lt_prog_compiler_static=
7596
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7597
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7599
if test "$GCC" = yes; then
7600
lt_prog_compiler_wl='-Wl,'
7601
lt_prog_compiler_static='-static'
7605
# All AIX code is PIC.
7606
if test "$host_cpu" = ia64; then
7607
# AIX 5 now supports IA64 processor
7608
lt_prog_compiler_static='-Bstatic'
7613
# FIXME: we need at least 68020 code to build shared libraries, but
7614
# adding the `-m68020' flag to GCC prevents building anything better,
7616
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7619
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7620
# PIC is the default for these OSes.
7623
mingw* | pw32* | os2*)
7624
# This hack is so that the source file can tell whether it is being
7625
# built for inclusion in a dll (and should export symbols for example).
7626
lt_prog_compiler_pic='-DDLL_EXPORT'
7629
darwin* | rhapsody*)
7630
# PIC is the default on this platform
7631
# Common symbols not allowed in MH_DYLIB files
7632
lt_prog_compiler_pic='-fno-common'
7636
# Just because we use GCC doesn't mean we suddenly get shared libraries
7637
# on systems that don't support them.
7638
lt_prog_compiler_can_build_shared=no
7643
if test -d /usr/nec; then
7644
lt_prog_compiler_pic=-Kconform_pic
7649
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7656
lt_prog_compiler_pic='-fPIC'
7662
lt_prog_compiler_pic='-fPIC'
7666
# PORTME Check for flag to pass linker flags through the system compiler.
7669
lt_prog_compiler_wl='-Wl,'
7670
if test "$host_cpu" = ia64; then
7671
# AIX 5 now supports IA64 processor
7672
lt_prog_compiler_static='-Bstatic'
7674
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7678
mingw* | pw32* | os2*)
7679
# This hack is so that the source file can tell whether it is being
7680
# built for inclusion in a dll (and should export symbols for example).
7681
lt_prog_compiler_pic='-DDLL_EXPORT'
7684
hpux9* | hpux10* | hpux11*)
7685
lt_prog_compiler_wl='-Wl,'
7686
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7693
lt_prog_compiler_pic='+Z'
7696
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7697
lt_prog_compiler_static='${wl}-a ${wl}archive'
7700
irix5* | irix6* | nonstopux*)
7701
lt_prog_compiler_wl='-Wl,'
7702
# PIC (with -KPIC) is the default.
7703
lt_prog_compiler_static='-non_shared'
7707
lt_prog_compiler_pic='-KPIC'
7708
lt_prog_compiler_static='-Bstatic'
7714
lt_prog_compiler_wl='-Wl,'
7715
lt_prog_compiler_pic='-KPIC'
7716
lt_prog_compiler_static='-static'
7719
lt_prog_compiler_wl='-Wl,'
7720
# All Alpha code is PIC.
7721
lt_prog_compiler_static='-non_shared'
7726
osf3* | osf4* | osf5*)
7727
lt_prog_compiler_wl='-Wl,'
7728
# All OSF/1 code is PIC.
7729
lt_prog_compiler_static='-non_shared'
7733
lt_prog_compiler_pic='-Kpic'
7734
lt_prog_compiler_static='-dn'
7738
lt_prog_compiler_wl='-Wl,'
7739
lt_prog_compiler_pic='-KPIC'
7740
lt_prog_compiler_static='-Bstatic'
7744
lt_prog_compiler_wl='-Qoption ld '
7745
lt_prog_compiler_pic='-PIC'
7746
lt_prog_compiler_static='-Bstatic'
7749
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7750
lt_prog_compiler_wl='-Wl,'
7751
lt_prog_compiler_pic='-KPIC'
7752
lt_prog_compiler_static='-Bstatic'
7756
if test -d /usr/nec ;then
7757
lt_prog_compiler_pic='-Kconform_pic'
7758
lt_prog_compiler_static='-Bstatic'
7763
lt_prog_compiler_pic='-pic'
7764
lt_prog_compiler_static='-Bstatic'
7768
lt_prog_compiler_can_build_shared=no
7773
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7774
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7777
# Check to make sure the PIC flag actually works.
7779
if test -n "$lt_prog_compiler_pic"; then
7781
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7782
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7783
if test "${lt_prog_compiler_pic_works+set}" = set; then
7784
echo $ECHO_N "(cached) $ECHO_C" >&6
7786
lt_prog_compiler_pic_works=no
7787
ac_outfile=conftest.$ac_objext
7788
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7789
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7790
# Insert the option either (1) after the last *FLAGS variable, or
7791
# (2) before a word containing "conftest.", or (3) at the end.
7792
# Note that $ac_compile itself does not contain backslashes and begins
7793
# with a dollar sign (not a hyphen), so the echo should work correctly.
7794
# The option is referenced via a variable to avoid confusing sed.
7795
lt_compile=`echo "$ac_compile" | $SED \
7796
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7797
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7798
-e 's:$: $lt_compiler_flag:'`
7799
(eval echo "\"\$as_me:7799: $lt_compile\"" >&5)
7800
(eval "$lt_compile" 2>conftest.err)
7802
cat conftest.err >&5
7803
echo "$as_me:7803: \$? = $ac_status" >&5
7804
if (exit $ac_status) && test -s "$ac_outfile"; then
7805
# The compiler can only warn and ignore the option if not recognized
7806
# So say no if there are warnings
7807
if test ! -s conftest.err; then
7808
lt_prog_compiler_pic_works=yes
7814
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7815
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7817
if test x"$lt_prog_compiler_pic_works" = xyes; then
7818
case $lt_prog_compiler_pic in
7820
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7823
lt_prog_compiler_pic=
7824
lt_prog_compiler_can_build_shared=no
7829
# For platforms which do not support PIC, -DPIC is meaningless:
7831
lt_prog_compiler_pic=
7834
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7838
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7839
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7840
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7841
echo $ECHO_N "(cached) $ECHO_C" >&6
7843
lt_cv_prog_compiler_c_o=no
7844
$rm -r conftest 2>/dev/null
7848
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7850
lt_compiler_flag="-o out/conftest2.$ac_objext"
7851
# Insert the option either (1) after the last *FLAGS variable, or
7852
# (2) before a word containing "conftest.", or (3) at the end.
7853
# Note that $ac_compile itself does not contain backslashes and begins
7854
# with a dollar sign (not a hyphen), so the echo should work correctly.
7855
lt_compile=`echo "$ac_compile" | $SED \
7856
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7857
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858
-e 's:$: $lt_compiler_flag:'`
7859
(eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860
(eval "$lt_compile" 2>out/conftest.err)
7862
cat out/conftest.err >&5
7863
echo "$as_me:7863: \$? = $ac_status" >&5
7864
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7866
# The compiler can only warn and ignore the option if not recognized
7867
# So say no if there are warnings
7868
if test ! -s out/conftest.err; then
7869
lt_cv_prog_compiler_c_o=yes
7874
# SGI C++ compiler will create directory out/ii_files/ for
7875
# template instantiation
7876
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7877
$rm out/* && rmdir out
7883
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7884
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7887
hard_links="nottested"
7888
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7889
# do not overwrite the value of need_locks provided by the user
7890
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7891
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7894
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7896
ln conftest.a conftest.b 2>&5 || hard_links=no
7897
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7898
echo "$as_me:$LINENO: result: $hard_links" >&5
7899
echo "${ECHO_T}$hard_links" >&6
7900
if test "$hard_links" = no; then
7901
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7902
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7909
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7910
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7913
allow_undefined_flag=
7914
enable_shared_with_static_runtimes=no
7916
archive_expsym_cmds=
7917
old_archive_From_new_cmds=
7918
old_archive_from_expsyms_cmds=
7919
export_dynamic_flag_spec=
7920
whole_archive_flag_spec=
7921
thread_safe_flag_spec=
7922
hardcode_libdir_flag_spec=
7923
hardcode_libdir_flag_spec_ld=
7924
hardcode_libdir_separator=
7927
hardcode_shlibpath_var=unsupported
7928
link_all_deplibs=unknown
7929
hardcode_automatic=no
7932
always_export_symbols=no
7933
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7934
# include_expsyms should be a list of space-separated symbols to be *always*
7935
# included in the symbol list
7937
# exclude_expsyms can be an extended regexp of symbols to exclude
7938
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7939
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7940
# as well as any symbol that contains `d'.
7941
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7942
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7943
# platforms (ab)use it in PIC code, but their linkers get confused if
7944
# the symbol is explicitly referenced. Since portable code cannot
7945
# rely on this symbol name, it's probably fine to never include it in
7946
# preloaded symbol tables.
7947
extract_expsyms_cmds=
7950
cygwin* | mingw* | pw32*)
7951
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7952
# When not using gcc, we currently assume that we are using
7953
# Microsoft Visual C++.
7954
if test "$GCC" != yes; then
7964
if test "$with_gnu_ld" = yes; then
7965
# If archive_cmds runs LD, not CC, wlarc should be empty
7968
# See if GNU ld supports shared libraries.
7970
aix3* | aix4* | aix5*)
7971
# On AIX/PPC, the GNU linker is very broken
7972
if test "$host_cpu" != ia64; then
7976
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7977
*** to be unable to reliably create shared libraries on AIX.
7978
*** Therefore, libtool is disabling shared libraries support. If you
7979
*** really care for shared libraries, you may want to modify your PATH
7980
*** so that a non-GNU linker is found, and then restart.
7987
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)'
7988
hardcode_libdir_flag_spec='-L$libdir'
7989
hardcode_minus_L=yes
7991
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7992
# that the semantics of dynamic libraries on AmigaOS, at least up
7993
# to version 4, is to share data among multiple programs linked
7994
# with the same dynamic library. Since this doesn't match the
7995
# behavior of shared libraries on other platforms, we can't use
8001
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8002
allow_undefined_flag=unsupported
8003
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8004
# support --undefined. This deserves some investigation. FIXME
8005
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011
cygwin* | mingw* | pw32*)
8012
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8013
# as there is no search path for DLLs.
8014
hardcode_libdir_flag_spec='-L$libdir'
8015
allow_undefined_flag=unsupported
8016
always_export_symbols=no
8017
enable_shared_with_static_runtimes=yes
8018
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8020
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8021
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8022
# If the export-symbols file already is a .def file (1st line
8023
# is EXPORTS), use it as is; otherwise, prepend...
8024
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8025
cp $export_symbols $output_objdir/$soname.def;
8027
echo EXPORTS > $output_objdir/$soname.def;
8028
cat $export_symbols >> $output_objdir/$soname.def;
8030
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8036
netbsd* | knetbsd*-gnu)
8037
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8038
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8041
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8042
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8051
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8052
*** create shared libraries on Solaris systems. Therefore, libtool
8053
*** is disabling shared libraries support. We urge you to upgrade GNU
8054
*** binutils to release 2.9.1 or newer. Another option is to modify
8055
*** your PATH or compiler configuration so that the native linker is
8056
*** used, and then restart.
8059
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8060
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8061
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8071
hardcode_shlibpath_var=no
8075
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8076
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077
archive_cmds="$tmp_archive_cmds"
8078
supports_anon_versioning=no
8079
case `$LD -v 2>/dev/null` in
8080
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8081
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8082
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8083
*\ 2.11.*) ;; # other 2.11 versions
8084
*) supports_anon_versioning=yes ;;
8086
if test $supports_anon_versioning = yes; then
8087
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8088
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8089
$echo "local: *; };" >> $output_objdir/$libname.ver~
8090
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8092
archive_expsym_cmds="$tmp_archive_cmds"
8101
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8102
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8110
if test "$ld_shlibs" = yes; then
8111
runpath_var=LD_RUN_PATH
8112
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8113
export_dynamic_flag_spec='${wl}--export-dynamic'
8114
# ancient GNU ld didn't support --whole-archive et. al.
8115
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8116
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8118
whole_archive_flag_spec=
8122
# PORTME fill in a description of your system's linker (not GNU ld)
8125
allow_undefined_flag=unsupported
8126
always_export_symbols=yes
8127
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'
8128
# Note: this linker hardcodes the directories in LIBPATH if there
8129
# are no directories specified by -L.
8130
hardcode_minus_L=yes
8131
if test "$GCC" = yes && test -z "$link_static_flag"; then
8132
# Neither direct hardcoding nor static linking is supported with a
8134
hardcode_direct=unsupported
8139
if test "$host_cpu" = ia64; then
8140
# On IA64, the linker does run time linking by default, so we don't
8141
# have to do anything special.
8142
aix_use_runtimelinking=no
8143
exp_sym_flag='-Bexport'
8146
# If we're using GNU nm, then we don't want the "-C" option.
8147
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8148
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8149
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'
8151
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'
8153
aix_use_runtimelinking=no
8155
# Test if we are trying to use run time linking or normal
8156
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8157
# need to do runtime linking.
8158
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8159
for ld_flag in $LDFLAGS; do
8160
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8161
aix_use_runtimelinking=yes
8167
exp_sym_flag='-bexport'
8168
no_entry_flag='-bnoentry'
8171
# When large executables or shared objects are built, AIX ld can
8172
# have problems creating the table of contents. If linking a library
8173
# or program results in "error TOC overflow" add -mminimal-toc to
8174
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8175
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8179
hardcode_libdir_separator=':'
8180
link_all_deplibs=yes
8182
if test "$GCC" = yes; then
8183
case $host_os in aix4.012|aix4.012.*)
8184
# We only want to do this on AIX 4.2 and lower, the check
8185
# below for broken collect2 doesn't work under 4.3+
8186
collect2name=`${CC} -print-prog-name=collect2`
8187
if test -f "$collect2name" && \
8188
strings "$collect2name" | grep resolve_lib_name >/dev/null
8190
# We have reworked collect2
8193
# We have old collect2
8194
hardcode_direct=unsupported
8195
# It fails to find uninstalled libraries when the uninstalled
8196
# path is not listed in the libpath. Setting hardcode_minus_L
8197
# to unsupported forces relinking
8198
hardcode_minus_L=yes
8199
hardcode_libdir_flag_spec='-L$libdir'
8200
hardcode_libdir_separator=
8203
shared_flag='-shared'
8206
if test "$host_cpu" = ia64; then
8207
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8208
# chokes on -Wl,-G. The following line is correct:
8211
if test "$aix_use_runtimelinking" = yes; then
8212
shared_flag='${wl}-G'
8214
shared_flag='${wl}-bM:SRE'
8219
# It seems that -bexpall does not export symbols beginning with
8220
# underscore (_), so it is better to generate a list of symbols to export.
8221
always_export_symbols=yes
8222
if test "$aix_use_runtimelinking" = yes; then
8223
# Warning - without using the other runtime loading flags (-brtl),
8224
# -berok will link without error, but may produce a broken library.
8225
allow_undefined_flag='-berok'
8226
# Determine the default libpath from the value encoded in an empty executable.
8227
cat >conftest.$ac_ext <<_ACEOF
8230
cat confdefs.h >>conftest.$ac_ext
8231
cat >>conftest.$ac_ext <<_ACEOF
8232
/* end confdefs.h. */
8242
rm -f conftest.$ac_objext conftest$ac_exeext
8243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244
(eval $ac_link) 2>conftest.er1
8246
grep -v '^ *+' conftest.er1 >conftest.err
8248
cat conftest.err >&5
8249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250
(exit $ac_status); } &&
8251
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256
(exit $ac_status); }; } &&
8257
{ ac_try='test -s conftest$ac_exeext'
8258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262
(exit $ac_status); }; }; then
8264
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8266
# Check for a 64-bit object if we didn't find anything.
8267
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; }
8270
echo "$as_me: failed program was:" >&5
8271
sed 's/^/| /' conftest.$ac_ext >&5
8274
rm -f conftest.err conftest.$ac_objext \
8275
conftest$ac_exeext conftest.$ac_ext
8276
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8278
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8281
if test "$host_cpu" = ia64; then
8282
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8283
allow_undefined_flag="-z nodefs"
8284
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8286
# Determine the default libpath from the value encoded in an empty executable.
8287
cat >conftest.$ac_ext <<_ACEOF
8290
cat confdefs.h >>conftest.$ac_ext
8291
cat >>conftest.$ac_ext <<_ACEOF
8292
/* end confdefs.h. */
8302
rm -f conftest.$ac_objext conftest$ac_exeext
8303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304
(eval $ac_link) 2>conftest.er1
8306
grep -v '^ *+' conftest.er1 >conftest.err
8308
cat conftest.err >&5
8309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310
(exit $ac_status); } &&
8311
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316
(exit $ac_status); }; } &&
8317
{ ac_try='test -s conftest$ac_exeext'
8318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322
(exit $ac_status); }; }; then
8324
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8326
# Check for a 64-bit object if we didn't find anything.
8327
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; }
8330
echo "$as_me: failed program was:" >&5
8331
sed 's/^/| /' conftest.$ac_ext >&5
8334
rm -f conftest.err conftest.$ac_objext \
8335
conftest$ac_exeext conftest.$ac_ext
8336
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8338
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8339
# Warning - without using the other run time loading flags,
8340
# -berok will link without error, but may produce a broken library.
8341
no_undefined_flag=' ${wl}-bernotok'
8342
allow_undefined_flag=' ${wl}-berok'
8343
# -bexpall does not export symbols beginning with underscore (_)
8344
always_export_symbols=yes
8345
# Exported symbols can be pulled into shared objects from archives
8346
whole_archive_flag_spec=' '
8347
archive_cmds_need_lc=yes
8348
# This is similar to how AIX traditionally builds it's shared libraries.
8349
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8355
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)'
8356
hardcode_libdir_flag_spec='-L$libdir'
8357
hardcode_minus_L=yes
8358
# see comment about different semantics on the GNU ld section
8363
export_dynamic_flag_spec=-rdynamic
8366
cygwin* | mingw* | pw32*)
8367
# When not using gcc, we currently assume that we are using
8368
# Microsoft Visual C++.
8369
# hardcode_libdir_flag_spec is actually meaningless, as there is
8370
# no search path for DLLs.
8371
hardcode_libdir_flag_spec=' '
8372
allow_undefined_flag=unsupported
8373
# Tell ltmain to make .lib files, not .a files.
8375
# Tell ltmain to make .dll files, not .so files.
8377
# FIXME: Setting linknames here is a bad hack.
8378
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8379
# The linker will automatically build a .lib file if we build a DLL.
8380
old_archive_From_new_cmds='true'
8381
# FIXME: Should let the user specify the lib program.
8382
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8383
fix_srcfile_path='`cygpath -w "$srcfile"`'
8384
enable_shared_with_static_runtimes=yes
8387
darwin* | rhapsody*)
8388
if test "$GXX" = yes ; then
8389
archive_cmds_need_lc=no
8391
rhapsody* | darwin1.[012])
8392
allow_undefined_flag='-undefined suppress'
8395
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8396
allow_undefined_flag='-flat_namespace -undefined suppress'
8398
case ${MACOSX_DEPLOYMENT_TARGET} in
8400
allow_undefined_flag='-flat_namespace -undefined suppress'
8403
allow_undefined_flag='-undefined dynamic_lookup'
8409
lt_int_apple_cc_single_mod=no
8410
output_verbose_link_cmd='echo'
8411
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8412
lt_int_apple_cc_single_mod=yes
8414
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8415
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8417
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8419
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8420
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8421
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8422
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8424
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8426
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}'
8428
hardcode_automatic=yes
8429
hardcode_shlibpath_var=unsupported
8430
whole_archive_flag_spec='-all_load $convenience'
8431
link_all_deplibs=yes
8438
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439
hardcode_libdir_flag_spec='-L$libdir'
8440
hardcode_shlibpath_var=no
8447
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8448
# support. Future versions do this automatically, but an explicit c++rt0.o
8449
# does not break anything, and helps significantly (at the cost of a little
8452
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8453
hardcode_libdir_flag_spec='-R$libdir'
8455
hardcode_shlibpath_var=no
8458
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8460
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462
hardcode_minus_L=yes
8463
hardcode_shlibpath_var=no
8466
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8467
freebsd* | kfreebsd*-gnu)
8468
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8469
hardcode_libdir_flag_spec='-R$libdir'
8471
hardcode_shlibpath_var=no
8475
if test "$GCC" = yes; then
8476
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'
8478
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'
8480
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8481
hardcode_libdir_separator=:
8484
# hardcode_minus_L: Not really in the search PATH,
8485
# but as the default location of the library.
8486
hardcode_minus_L=yes
8487
export_dynamic_flag_spec='${wl}-E'
8491
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8494
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8503
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8506
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8510
if test "$with_gnu_ld" = no; then
8513
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8514
hardcode_libdir_flag_spec_ld='+b $libdir'
8515
hardcode_libdir_separator=:
8517
hardcode_shlibpath_var=no
8520
hardcode_libdir_flag_spec='-L$libdir'
8522
hardcode_shlibpath_var=no
8524
# hardcode_minus_L: Not really in the search PATH,
8525
# but as the default location of the library.
8526
hardcode_minus_L=yes
8529
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8530
hardcode_libdir_separator=:
8532
export_dynamic_flag_spec='${wl}-E'
8534
# hardcode_minus_L: Not really in the search PATH,
8535
# but as the default location of the library.
8536
hardcode_minus_L=yes
8542
irix5* | irix6* | nonstopux*)
8543
if test "$GCC" = yes; then
8544
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'
8546
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'
8547
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8549
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8550
hardcode_libdir_separator=:
8551
link_all_deplibs=yes
8554
netbsd* | knetbsd*-gnu)
8555
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8556
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8558
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8560
hardcode_libdir_flag_spec='-R$libdir'
8562
hardcode_shlibpath_var=no
8566
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8569
hardcode_libdir_separator=:
8570
hardcode_shlibpath_var=no
8575
hardcode_shlibpath_var=no
8576
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8577
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8578
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8579
export_dynamic_flag_spec='${wl}-E'
8582
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8583
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8584
hardcode_libdir_flag_spec='-R$libdir'
8587
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8588
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8595
hardcode_libdir_flag_spec='-L$libdir'
8596
hardcode_minus_L=yes
8597
allow_undefined_flag=unsupported
8598
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'
8599
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8603
if test "$GCC" = yes; then
8604
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8605
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'
8607
allow_undefined_flag=' -expect_unresolved \*'
8608
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'
8610
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8611
hardcode_libdir_separator=:
8614
osf4* | osf5*) # as osf3* with the addition of -msym flag
8615
if test "$GCC" = yes; then
8616
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8617
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'
8618
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620
allow_undefined_flag=' -expect_unresolved \*'
8621
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'
8622
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8623
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8625
# Both c and cxx compiler support -rpath directly
8626
hardcode_libdir_flag_spec='-rpath $libdir'
8628
hardcode_libdir_separator=:
8632
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633
hardcode_shlibpath_var=no
8634
export_dynamic_flag_spec='${wl}-Bexport'
8635
runpath_var=LD_RUN_PATH
8636
hardcode_runpath_var=yes
8640
no_undefined_flag=' -z text'
8641
if test "$GCC" = yes; then
8642
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8644
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8646
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8648
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8650
hardcode_libdir_flag_spec='-R$libdir'
8651
hardcode_shlibpath_var=no
8653
solaris2.[0-5] | solaris2.[0-5].*) ;;
8654
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8655
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8657
link_all_deplibs=yes
8661
if test "x$host_vendor" = xsequent; then
8662
# Use $CC to link under sequent, because it throws in some extra .o
8663
# files that make .init and .fini sections work.
8664
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8666
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8668
hardcode_libdir_flag_spec='-L$libdir'
8670
hardcode_minus_L=yes
8671
hardcode_shlibpath_var=no
8675
case $host_vendor in
8677
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678
hardcode_direct=yes # is this really true???
8681
## LD is ld it makes a PLAMLIB
8682
## CC just makes a GrossModule.
8683
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8684
reload_cmds='$CC -r -o $output$reload_objs'
8688
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8692
runpath_var='LD_RUN_PATH'
8693
hardcode_shlibpath_var=no
8697
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698
hardcode_shlibpath_var=no
8699
export_dynamic_flag_spec='-Bexport'
8703
if test -d /usr/nec; then
8704
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705
hardcode_shlibpath_var=no
8706
runpath_var=LD_RUN_PATH
8707
hardcode_runpath_var=yes
8713
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8716
hardcode_shlibpath_var=no
8717
hardcode_runpath_var=yes
8718
runpath_var=LD_RUN_PATH
8721
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8722
no_undefined_flag='${wl}-z ${wl}text'
8723
if test "$GCC" = yes; then
8724
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728
runpath_var='LD_RUN_PATH'
8729
hardcode_shlibpath_var=no
8733
no_undefined_flag=' -z text'
8734
# $CC -shared without GNU ld will not create a library from C++
8735
# object files and a static libstdc++, better avoid it by now
8736
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8738
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8739
hardcode_libdir_flag_spec=
8740
hardcode_shlibpath_var=no
8741
runpath_var='LD_RUN_PATH'
8745
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746
hardcode_libdir_flag_spec='-L$libdir'
8747
hardcode_shlibpath_var=no
8756
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8757
echo "${ECHO_T}$ld_shlibs" >&6
8758
test "$ld_shlibs" = no && can_build_shared=no
8760
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8761
if test "$GCC" = yes; then
8762
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8766
# Do we need to explicitly link libc?
8768
case "x$archive_cmds_need_lc" in
8770
# Assume -lc should be added
8771
archive_cmds_need_lc=yes
8773
if test "$enable_shared" = yes && test "$GCC" = yes; then
8774
case $archive_cmds in
8776
# FIXME: we may have to deal with multi-command sequences.
8779
# Test whether the compiler implicitly links with -lc since on some
8780
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8781
# to ld, don't add -lc before -lgcc.
8782
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8783
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8785
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788
(eval $ac_compile) 2>&5
8790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791
(exit $ac_status); } 2>conftest.err; then
8794
libobjs=conftest.$ac_objext
8796
wl=$lt_prog_compiler_wl
8802
lt_save_allow_undefined_flag=$allow_undefined_flag
8803
allow_undefined_flag=
8804
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8805
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808
(exit $ac_status); }
8810
archive_cmds_need_lc=no
8812
archive_cmds_need_lc=yes
8814
allow_undefined_flag=$lt_save_allow_undefined_flag
8816
cat conftest.err 1>&5
8819
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8820
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8827
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8828
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8830
libname_spec='lib$name'
8838
shlibpath_overrides_runpath=unknown
8840
dynamic_linker="$host_os ld.so"
8841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8842
if test "$GCC" = yes; then
8843
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8844
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8845
# if the path contains ";" then we assume it to be the separator
8846
# otherwise default to the standard path separator (i.e. ":") - it is
8847
# assumed that no part of a normal pathname contains ";" but that should
8848
# okay in the real world where ";" in dirpaths is itself problematic.
8849
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8854
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8856
need_lib_prefix=unknown
8857
hardcode_into_libs=no
8859
# when you set need_version to no, make sure it does not cause -set_version
8860
# flags to be left without arguments
8861
need_version=unknown
8866
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8867
shlibpath_var=LIBPATH
8869
# AIX 3 has no versioning support, so we append a major version to the name.
8870
soname_spec='${libname}${release}${shared_ext}$major'
8877
hardcode_into_libs=yes
8878
if test "$host_cpu" = ia64; then
8879
# AIX 5 supports IA64
8880
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8881
shlibpath_var=LD_LIBRARY_PATH
8883
# With GCC up to 2.95.x, collect2 would create an import file
8884
# for dependence libraries. The import file would start with
8885
# the line `#! .'. This would cause the generated library to
8886
# depend on `.', always an invalid library. This was fixed in
8887
# development snapshots of GCC prior to 3.0.
8889
aix4 | aix4.[01] | aix4.[01].*)
8890
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8892
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8899
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8900
# soname into executable. Probably we can add versioning support to
8901
# collect2, so additional links can be useful in future.
8902
if test "$aix_use_runtimelinking" = yes; then
8903
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8904
# instead of lib<name>.a to let people know that these are not
8905
# typical AIX shared libraries.
8906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908
# We preserve .a as extension for shared libraries through AIX4.2
8909
# and later when we are not doing run time linking.
8910
library_names_spec='${libname}${release}.a $libname.a'
8911
soname_spec='${libname}${release}${shared_ext}$major'
8913
shlibpath_var=LIBPATH
8918
library_names_spec='$libname.ixlibrary $libname.a'
8919
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8920
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'
8924
library_names_spec='${libname}${shared_ext}'
8925
dynamic_linker="$host_os ld.so"
8926
shlibpath_var=LIBRARY_PATH
8932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933
soname_spec='${libname}${release}${shared_ext}$major'
8934
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8935
shlibpath_var=LD_LIBRARY_PATH
8936
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8937
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8938
# the default ld.so.conf also contains /usr/contrib/lib and
8939
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8940
# libtool to hard-code these into programs
8943
cygwin* | mingw* | pw32*)
8944
version_type=windows
8949
case $GCC,$host_os in
8950
yes,cygwin* | yes,mingw* | yes,pw32*)
8951
library_names_spec='$libname.dll.a'
8952
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8953
postinstall_cmds='base_file=`basename \${file}`~
8954
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8955
dldir=$destdir/`dirname \$dlpath`~
8956
test -d \$dldir || mkdir -p \$dldir~
8957
$install_prog $dir/$dlname \$dldir/$dlname'
8958
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8959
dlpath=$dir/\$dldll~
8961
shlibpath_overrides_runpath=yes
8965
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8966
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8967
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8970
# MinGW DLLs use traditional 'lib' prefix
8971
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8972
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8973
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8974
# It is most probably a Windows format PATH printed by
8975
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8976
# path with ; separators, and with drive letters. We can handle the
8977
# drive letters (cygwin fileutils understands them), so leave them,
8978
# especially as we might pass files found there to a mingw objdump,
8979
# which wouldn't understand a cygwinified path. Ahh.
8980
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8982
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8986
# pw32 DLLs use 'pw' prefix rather than 'lib'
8987
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8993
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8996
dynamic_linker='Win32 ld.exe'
8997
# FIXME: first we should search . and the directory the executable is in
9001
darwin* | rhapsody*)
9002
dynamic_linker="$host_os dyld"
9006
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9007
soname_spec='${libname}${release}${major}$shared_ext'
9008
shlibpath_overrides_runpath=yes
9009
shlibpath_var=DYLD_LIBRARY_PATH
9010
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9011
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9012
if test "$GCC" = yes; then
9013
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"`
9015
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9017
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9025
soname_spec='${libname}${release}${shared_ext}$major'
9026
shlibpath_var=LD_LIBRARY_PATH
9037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9038
soname_spec='${libname}${release}${shared_ext}$major'
9039
shlibpath_var=LD_LIBRARY_PATH
9040
shlibpath_overrides_runpath=no
9041
hardcode_into_libs=yes
9042
dynamic_linker='GNU ld.so'
9046
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9047
version_type=freebsd-$objformat
9048
case $version_type in
9050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9055
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9059
shlibpath_var=LD_LIBRARY_PATH
9062
shlibpath_overrides_runpath=yes
9064
freebsd3.01* | freebsdelf3.01*)
9065
shlibpath_overrides_runpath=yes
9066
hardcode_into_libs=yes
9069
shlibpath_overrides_runpath=no
9070
hardcode_into_libs=yes
9079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9080
soname_spec='${libname}${release}${shared_ext}$major'
9081
shlibpath_var=LD_LIBRARY_PATH
9082
hardcode_into_libs=yes
9085
hpux9* | hpux10* | hpux11*)
9086
# Give a soname corresponding to the major version so that dld.sl refuses to
9087
# link against other versions.
9094
hardcode_into_libs=yes
9095
dynamic_linker="$host_os dld.so"
9096
shlibpath_var=LD_LIBRARY_PATH
9097
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099
soname_spec='${libname}${release}${shared_ext}$major'
9100
if test "X$HPUX_IA64_MODE" = X32; then
9101
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9103
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9105
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9109
hardcode_into_libs=yes
9110
dynamic_linker="$host_os dld.sl"
9111
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9112
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114
soname_spec='${libname}${release}${shared_ext}$major'
9115
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9116
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9120
dynamic_linker="$host_os dld.sl"
9121
shlibpath_var=SHLIB_PATH
9122
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124
soname_spec='${libname}${release}${shared_ext}$major'
9127
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9128
postinstall_cmds='chmod 555 $lib'
9131
irix5* | irix6* | nonstopux*)
9133
nonstopux*) version_type=nonstopux ;;
9135
if test "$lt_cv_prog_gnu_ld" = yes; then
9143
soname_spec='${libname}${release}${shared_ext}$major'
9144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9146
irix5* | nonstopux*)
9150
case $LD in # libtool.m4 will add one of these switches to LD
9151
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9152
libsuff= shlibsuff= libmagic=32-bit;;
9153
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9154
libsuff=32 shlibsuff=N32 libmagic=N32;;
9155
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9156
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9157
*) libsuff= shlibsuff= libmagic=never-match;;
9161
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9162
shlibpath_overrides_runpath=no
9163
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9164
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9165
hardcode_into_libs=yes
9168
# No shared lib support for Linux oldld, aout, or coff.
9169
linux*oldld* | linux*aout* | linux*coff*)
9173
# This must be Linux ELF.
9178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179
soname_spec='${libname}${release}${shared_ext}$major'
9180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9181
shlibpath_var=LD_LIBRARY_PATH
9182
shlibpath_overrides_runpath=no
9183
# This implies no fast_install, which is unacceptable.
9184
# Some rework will be needed to allow for fast_install
9185
# before this can be enabled.
9186
hardcode_into_libs=yes
9188
# Append ld.so.conf contents to the search path
9189
if test -f /etc/ld.so.conf; then
9190
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9191
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9194
# We used to test for /lib/ld.so.1 and disable shared libraries on
9195
# powerpc, because MkLinux only supported shared libraries with the
9196
# GNU dynamic linker. Since this was broken with cross compilers,
9197
# most powerpc-linux boxes support dynamic linking these days and
9198
# people can always --disable-shared, the test was removed, and we
9199
# assume the GNU/Linux dynamic linker is in use.
9200
dynamic_linker='GNU/Linux ld.so'
9207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9208
soname_spec='${libname}${release}${shared_ext}$major'
9209
shlibpath_var=LD_LIBRARY_PATH
9210
shlibpath_overrides_runpath=no
9211
hardcode_into_libs=yes
9212
dynamic_linker='GNU ld.so'
9219
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9222
dynamic_linker='NetBSD (a.out) ld.so'
9224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9225
soname_spec='${libname}${release}${shared_ext}$major'
9226
dynamic_linker='NetBSD ld.elf_so'
9228
shlibpath_var=LD_LIBRARY_PATH
9229
shlibpath_overrides_runpath=yes
9230
hardcode_into_libs=yes
9235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236
shlibpath_var=LD_LIBRARY_PATH
9237
shlibpath_overrides_runpath=yes
9244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245
soname_spec='${libname}${release}${shared_ext}$major'
9246
shlibpath_var=LD_LIBRARY_PATH
9247
shlibpath_overrides_runpath=yes
9254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9256
shlibpath_var=LD_LIBRARY_PATH
9257
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9259
openbsd2.[89] | openbsd2.[89].*)
9260
shlibpath_overrides_runpath=no
9263
shlibpath_overrides_runpath=yes
9267
shlibpath_overrides_runpath=yes
9272
libname_spec='$name'
9275
library_names_spec='$libname${shared_ext} $libname.a'
9276
dynamic_linker='OS/2 ld.exe'
9277
shlibpath_var=LIBPATH
9280
osf3* | osf4* | osf5*)
9284
soname_spec='${libname}${release}${shared_ext}$major'
9285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286
shlibpath_var=LD_LIBRARY_PATH
9287
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9288
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9293
soname_spec='${libname}${release}${shared_ext}$major'
9294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295
shlibpath_var=LD_LIBRARY_PATH
9302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303
soname_spec='${libname}${release}${shared_ext}$major'
9304
shlibpath_var=LD_LIBRARY_PATH
9305
shlibpath_overrides_runpath=yes
9306
hardcode_into_libs=yes
9307
# ldd complains unless libraries are executable
9308
postinstall_cmds='chmod +x $lib'
9313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315
shlibpath_var=LD_LIBRARY_PATH
9316
shlibpath_overrides_runpath=yes
9317
if test "$with_gnu_ld" = yes; then
9323
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326
soname_spec='${libname}${release}${shared_ext}$major'
9327
shlibpath_var=LD_LIBRARY_PATH
9328
case $host_vendor in
9330
shlibpath_overrides_runpath=no
9332
export_dynamic_flag_spec='${wl}-Blargedynsym'
9333
runpath_var=LD_RUN_PATH
9341
shlibpath_overrides_runpath=no
9342
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9348
if test -d /usr/nec ;then
9350
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351
soname_spec='$libname${shared_ext}.$major'
9352
shlibpath_var=LD_LIBRARY_PATH
9358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359
soname_spec='${libname}${release}${shared_ext}$major'
9360
shlibpath_var=LD_LIBRARY_PATH
9367
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9368
echo "${ECHO_T}$dynamic_linker" >&6
9369
test "$dynamic_linker" = no && can_build_shared=no
9371
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9372
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9374
if test -n "$hardcode_libdir_flag_spec" || \
9375
test -n "$runpath_var " || \
9376
test "X$hardcode_automatic"="Xyes" ; then
9378
# We can hardcode non-existant directories.
9379
if test "$hardcode_direct" != no &&
9380
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9381
# have to relink, otherwise we might link with an installed library
9382
# when we should be linking with a yet-to-be-installed one
9383
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9384
test "$hardcode_minus_L" != no; then
9385
# Linking always hardcodes the temporary library directory.
9386
hardcode_action=relink
9388
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9389
hardcode_action=immediate
9392
# We cannot hardcode anything, or else we can only hardcode existing
9394
hardcode_action=unsupported
9396
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9397
echo "${ECHO_T}$hardcode_action" >&6
9399
if test "$hardcode_action" = relink; then
9400
# Fast installation is not supported
9401
enable_fast_install=no
9402
elif test "$shlibpath_overrides_runpath" = yes ||
9403
test "$enable_shared" = no; then
9404
# Fast installation is not necessary
9405
enable_fast_install=needless
9410
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9411
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9412
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9413
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9414
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9415
echo "$as_me:$LINENO: result: yes" >&5
9416
echo "${ECHO_T}yes" >&6
9418
# FIXME - insert some real tests, host_os isn't really good enough
9421
if test -n "$STRIP" ; then
9422
striplib="$STRIP -x"
9423
echo "$as_me:$LINENO: result: yes" >&5
9424
echo "${ECHO_T}yes" >&6
9426
echo "$as_me:$LINENO: result: no" >&5
9427
echo "${ECHO_T}no" >&6
9431
echo "$as_me:$LINENO: result: no" >&5
9432
echo "${ECHO_T}no" >&6
9437
if test "x$enable_dlopen" != xyes; then
9438
enable_dlopen=unknown
9439
enable_dlopen_self=unknown
9440
enable_dlopen_self_static=unknown
9447
lt_cv_dlopen="load_add_on"
9449
lt_cv_dlopen_self=yes
9453
lt_cv_dlopen="LoadLibrary"
9458
lt_cv_dlopen="dlopen"
9463
# if libdl is installed we need to link against it
9464
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9465
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9466
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9467
echo $ECHO_N "(cached) $ECHO_C" >&6
9469
ac_check_lib_save_LIBS=$LIBS
9471
cat >conftest.$ac_ext <<_ACEOF
9474
cat confdefs.h >>conftest.$ac_ext
9475
cat >>conftest.$ac_ext <<_ACEOF
9476
/* end confdefs.h. */
9478
/* Override any gcc2 internal prototype to avoid an error. */
9482
/* We use char because int might match the return type of a gcc2
9483
builtin and then its argument prototype would still apply. */
9493
rm -f conftest.$ac_objext conftest$ac_exeext
9494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495
(eval $ac_link) 2>conftest.er1
9497
grep -v '^ *+' conftest.er1 >conftest.err
9499
cat conftest.err >&5
9500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501
(exit $ac_status); } &&
9502
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507
(exit $ac_status); }; } &&
9508
{ ac_try='test -s conftest$ac_exeext'
9509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513
(exit $ac_status); }; }; then
9514
ac_cv_lib_dl_dlopen=yes
9516
echo "$as_me: failed program was:" >&5
9517
sed 's/^/| /' conftest.$ac_ext >&5
9519
ac_cv_lib_dl_dlopen=no
9521
rm -f conftest.err conftest.$ac_objext \
9522
conftest$ac_exeext conftest.$ac_ext
9523
LIBS=$ac_check_lib_save_LIBS
9525
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9526
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9527
if test $ac_cv_lib_dl_dlopen = yes; then
9528
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9533
lt_cv_dlopen_self=yes
9540
echo "$as_me:$LINENO: checking for shl_load" >&5
9541
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9542
if test "${ac_cv_func_shl_load+set}" = set; then
9543
echo $ECHO_N "(cached) $ECHO_C" >&6
9545
cat >conftest.$ac_ext <<_ACEOF
9548
cat confdefs.h >>conftest.$ac_ext
9549
cat >>conftest.$ac_ext <<_ACEOF
9550
/* end confdefs.h. */
9551
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9552
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9553
#define shl_load innocuous_shl_load
9555
/* System header to define __stub macros and hopefully few prototypes,
9556
which can conflict with char shl_load (); below.
9557
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558
<limits.h> exists even on freestanding compilers. */
9561
# include <limits.h>
9563
# include <assert.h>
9568
/* Override any gcc2 internal prototype to avoid an error. */
9573
/* We use char because int might match the return type of a gcc2
9574
builtin and then its argument prototype would still apply. */
9576
/* The GNU C library defines this for functions which it implements
9577
to always fail with ENOSYS. Some functions are actually named
9578
something starting with __ and the normal name is an alias. */
9579
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9582
char (*f) () = shl_load;
9591
return f != shl_load;
9596
rm -f conftest.$ac_objext conftest$ac_exeext
9597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598
(eval $ac_link) 2>conftest.er1
9600
grep -v '^ *+' conftest.er1 >conftest.err
9602
cat conftest.err >&5
9603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604
(exit $ac_status); } &&
9605
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610
(exit $ac_status); }; } &&
9611
{ ac_try='test -s conftest$ac_exeext'
9612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616
(exit $ac_status); }; }; then
9617
ac_cv_func_shl_load=yes
9619
echo "$as_me: failed program was:" >&5
9620
sed 's/^/| /' conftest.$ac_ext >&5
9622
ac_cv_func_shl_load=no
9624
rm -f conftest.err conftest.$ac_objext \
9625
conftest$ac_exeext conftest.$ac_ext
9627
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9628
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9629
if test $ac_cv_func_shl_load = yes; then
9630
lt_cv_dlopen="shl_load"
9632
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9633
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9634
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9635
echo $ECHO_N "(cached) $ECHO_C" >&6
9637
ac_check_lib_save_LIBS=$LIBS
9639
cat >conftest.$ac_ext <<_ACEOF
9642
cat confdefs.h >>conftest.$ac_ext
9643
cat >>conftest.$ac_ext <<_ACEOF
9644
/* end confdefs.h. */
9646
/* Override any gcc2 internal prototype to avoid an error. */
9650
/* We use char because int might match the return type of a gcc2
9651
builtin and then its argument prototype would still apply. */
9661
rm -f conftest.$ac_objext conftest$ac_exeext
9662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663
(eval $ac_link) 2>conftest.er1
9665
grep -v '^ *+' conftest.er1 >conftest.err
9667
cat conftest.err >&5
9668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669
(exit $ac_status); } &&
9670
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
(exit $ac_status); }; } &&
9676
{ ac_try='test -s conftest$ac_exeext'
9677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681
(exit $ac_status); }; }; then
9682
ac_cv_lib_dld_shl_load=yes
9684
echo "$as_me: failed program was:" >&5
9685
sed 's/^/| /' conftest.$ac_ext >&5
9687
ac_cv_lib_dld_shl_load=no
9689
rm -f conftest.err conftest.$ac_objext \
9690
conftest$ac_exeext conftest.$ac_ext
9691
LIBS=$ac_check_lib_save_LIBS
9693
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9694
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9695
if test $ac_cv_lib_dld_shl_load = yes; then
9696
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9698
echo "$as_me:$LINENO: checking for dlopen" >&5
9699
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9700
if test "${ac_cv_func_dlopen+set}" = set; then
9701
echo $ECHO_N "(cached) $ECHO_C" >&6
9703
cat >conftest.$ac_ext <<_ACEOF
9706
cat confdefs.h >>conftest.$ac_ext
9707
cat >>conftest.$ac_ext <<_ACEOF
9708
/* end confdefs.h. */
9709
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9710
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711
#define dlopen innocuous_dlopen
9713
/* System header to define __stub macros and hopefully few prototypes,
9714
which can conflict with char dlopen (); below.
9715
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716
<limits.h> exists even on freestanding compilers. */
9719
# include <limits.h>
9721
# include <assert.h>
9726
/* Override any gcc2 internal prototype to avoid an error. */
9731
/* We use char because int might match the return type of a gcc2
9732
builtin and then its argument prototype would still apply. */
9734
/* The GNU C library defines this for functions which it implements
9735
to always fail with ENOSYS. Some functions are actually named
9736
something starting with __ and the normal name is an alias. */
9737
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9740
char (*f) () = dlopen;
9754
rm -f conftest.$ac_objext conftest$ac_exeext
9755
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756
(eval $ac_link) 2>conftest.er1
9758
grep -v '^ *+' conftest.er1 >conftest.err
9760
cat conftest.err >&5
9761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762
(exit $ac_status); } &&
9763
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768
(exit $ac_status); }; } &&
9769
{ ac_try='test -s conftest$ac_exeext'
9770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
(exit $ac_status); }; }; then
9775
ac_cv_func_dlopen=yes
9777
echo "$as_me: failed program was:" >&5
9778
sed 's/^/| /' conftest.$ac_ext >&5
9780
ac_cv_func_dlopen=no
9782
rm -f conftest.err conftest.$ac_objext \
9783
conftest$ac_exeext conftest.$ac_ext
9785
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9786
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9787
if test $ac_cv_func_dlopen = yes; then
9788
lt_cv_dlopen="dlopen"
9790
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9791
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9792
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9793
echo $ECHO_N "(cached) $ECHO_C" >&6
9795
ac_check_lib_save_LIBS=$LIBS
9797
cat >conftest.$ac_ext <<_ACEOF
9800
cat confdefs.h >>conftest.$ac_ext
9801
cat >>conftest.$ac_ext <<_ACEOF
9802
/* end confdefs.h. */
9804
/* Override any gcc2 internal prototype to avoid an error. */
9808
/* We use char because int might match the return type of a gcc2
9809
builtin and then its argument prototype would still apply. */
9819
rm -f conftest.$ac_objext conftest$ac_exeext
9820
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821
(eval $ac_link) 2>conftest.er1
9823
grep -v '^ *+' conftest.er1 >conftest.err
9825
cat conftest.err >&5
9826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827
(exit $ac_status); } &&
9828
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833
(exit $ac_status); }; } &&
9834
{ ac_try='test -s conftest$ac_exeext'
9835
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
(exit $ac_status); }; }; then
9840
ac_cv_lib_dl_dlopen=yes
9842
echo "$as_me: failed program was:" >&5
9843
sed 's/^/| /' conftest.$ac_ext >&5
9845
ac_cv_lib_dl_dlopen=no
9847
rm -f conftest.err conftest.$ac_objext \
9848
conftest$ac_exeext conftest.$ac_ext
9849
LIBS=$ac_check_lib_save_LIBS
9851
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9852
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9853
if test $ac_cv_lib_dl_dlopen = yes; then
9854
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9856
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9857
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9858
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9859
echo $ECHO_N "(cached) $ECHO_C" >&6
9861
ac_check_lib_save_LIBS=$LIBS
9863
cat >conftest.$ac_ext <<_ACEOF
9866
cat confdefs.h >>conftest.$ac_ext
9867
cat >>conftest.$ac_ext <<_ACEOF
9868
/* end confdefs.h. */
9870
/* Override any gcc2 internal prototype to avoid an error. */
9874
/* We use char because int might match the return type of a gcc2
9875
builtin and then its argument prototype would still apply. */
9885
rm -f conftest.$ac_objext conftest$ac_exeext
9886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887
(eval $ac_link) 2>conftest.er1
9889
grep -v '^ *+' conftest.er1 >conftest.err
9891
cat conftest.err >&5
9892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893
(exit $ac_status); } &&
9894
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899
(exit $ac_status); }; } &&
9900
{ ac_try='test -s conftest$ac_exeext'
9901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905
(exit $ac_status); }; }; then
9906
ac_cv_lib_svld_dlopen=yes
9908
echo "$as_me: failed program was:" >&5
9909
sed 's/^/| /' conftest.$ac_ext >&5
9911
ac_cv_lib_svld_dlopen=no
9913
rm -f conftest.err conftest.$ac_objext \
9914
conftest$ac_exeext conftest.$ac_ext
9915
LIBS=$ac_check_lib_save_LIBS
9917
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9918
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9919
if test $ac_cv_lib_svld_dlopen = yes; then
9920
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9922
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9923
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9924
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9925
echo $ECHO_N "(cached) $ECHO_C" >&6
9927
ac_check_lib_save_LIBS=$LIBS
9929
cat >conftest.$ac_ext <<_ACEOF
9932
cat confdefs.h >>conftest.$ac_ext
9933
cat >>conftest.$ac_ext <<_ACEOF
9934
/* end confdefs.h. */
9936
/* Override any gcc2 internal prototype to avoid an error. */
9940
/* We use char because int might match the return type of a gcc2
9941
builtin and then its argument prototype would still apply. */
9951
rm -f conftest.$ac_objext conftest$ac_exeext
9952
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953
(eval $ac_link) 2>conftest.er1
9955
grep -v '^ *+' conftest.er1 >conftest.err
9957
cat conftest.err >&5
9958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959
(exit $ac_status); } &&
9960
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965
(exit $ac_status); }; } &&
9966
{ ac_try='test -s conftest$ac_exeext'
9967
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971
(exit $ac_status); }; }; then
9972
ac_cv_lib_dld_dld_link=yes
9974
echo "$as_me: failed program was:" >&5
9975
sed 's/^/| /' conftest.$ac_ext >&5
9977
ac_cv_lib_dld_dld_link=no
9979
rm -f conftest.err conftest.$ac_objext \
9980
conftest$ac_exeext conftest.$ac_ext
9981
LIBS=$ac_check_lib_save_LIBS
9983
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9984
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9985
if test $ac_cv_lib_dld_dld_link = yes; then
9986
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10007
if test "x$lt_cv_dlopen" != xno; then
10013
case $lt_cv_dlopen in
10015
save_CPPFLAGS="$CPPFLAGS"
10016
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10018
save_LDFLAGS="$LDFLAGS"
10019
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10022
LIBS="$lt_cv_dlopen_libs $LIBS"
10024
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10025
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10026
if test "${lt_cv_dlopen_self+set}" = set; then
10027
echo $ECHO_N "(cached) $ECHO_C" >&6
10029
if test "$cross_compiling" = yes; then :
10030
lt_cv_dlopen_self=cross
10032
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10033
lt_status=$lt_dlunknown
10034
cat > conftest.$ac_ext <<EOF
10035
#line 10035 "configure"
10036
#include "confdefs.h"
10045
# define LT_DLGLOBAL RTLD_GLOBAL
10048
# define LT_DLGLOBAL DL_GLOBAL
10050
# define LT_DLGLOBAL 0
10054
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10055
find out it does not work in some platform. */
10056
#ifndef LT_DLLAZY_OR_NOW
10058
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10061
# define LT_DLLAZY_OR_NOW DL_LAZY
10064
# define LT_DLLAZY_OR_NOW RTLD_NOW
10067
# define LT_DLLAZY_OR_NOW DL_NOW
10069
# define LT_DLLAZY_OR_NOW 0
10077
extern "C" void exit (int);
10080
void fnord() { int i=42;}
10083
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10084
int status = $lt_dlunknown;
10088
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10089
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10090
/* dlclose (self); */
10096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097
(eval $ac_link) 2>&5
10099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10101
(./conftest; exit; ) 2>/dev/null
10103
case x$lt_status in
10104
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10105
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10106
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10109
# compilation failed
10110
lt_cv_dlopen_self=no
10117
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10118
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10120
if test "x$lt_cv_dlopen_self" = xyes; then
10121
LDFLAGS="$LDFLAGS $link_static_flag"
10122
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10123
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10124
if test "${lt_cv_dlopen_self_static+set}" = set; then
10125
echo $ECHO_N "(cached) $ECHO_C" >&6
10127
if test "$cross_compiling" = yes; then :
10128
lt_cv_dlopen_self_static=cross
10130
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10131
lt_status=$lt_dlunknown
10132
cat > conftest.$ac_ext <<EOF
10133
#line 10133 "configure"
10134
#include "confdefs.h"
10143
# define LT_DLGLOBAL RTLD_GLOBAL
10146
# define LT_DLGLOBAL DL_GLOBAL
10148
# define LT_DLGLOBAL 0
10152
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10153
find out it does not work in some platform. */
10154
#ifndef LT_DLLAZY_OR_NOW
10156
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10159
# define LT_DLLAZY_OR_NOW DL_LAZY
10162
# define LT_DLLAZY_OR_NOW RTLD_NOW
10165
# define LT_DLLAZY_OR_NOW DL_NOW
10167
# define LT_DLLAZY_OR_NOW 0
10175
extern "C" void exit (int);
10178
void fnord() { int i=42;}
10181
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10182
int status = $lt_dlunknown;
10186
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10187
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10188
/* dlclose (self); */
10194
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10195
(eval $ac_link) 2>&5
10197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10199
(./conftest; exit; ) 2>/dev/null
10201
case x$lt_status in
10202
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10203
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10204
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10207
# compilation failed
10208
lt_cv_dlopen_self_static=no
10215
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10216
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10219
CPPFLAGS="$save_CPPFLAGS"
10220
LDFLAGS="$save_LDFLAGS"
10225
case $lt_cv_dlopen_self in
10226
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10227
*) enable_dlopen_self=unknown ;;
10230
case $lt_cv_dlopen_self_static in
10231
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10232
*) enable_dlopen_self_static=unknown ;;
10237
# Report which librarie types wil actually be built
10238
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10239
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10240
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10241
echo "${ECHO_T}$can_build_shared" >&6
10243
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10244
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10245
test "$can_build_shared" = "no" && enable_shared=no
10247
# On AIX, shared libraries and static libraries use the same namespace, and
10248
# are all built from PIC.
10251
test "$enable_shared" = yes && enable_static=no
10252
if test -n "$RANLIB"; then
10253
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10254
postinstall_cmds='$RANLIB $lib'
10259
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10260
test "$enable_shared" = yes && enable_static=no
10263
darwin* | rhapsody*)
10264
if test "$GCC" = yes; then
10265
archive_cmds_need_lc=no
10267
rhapsody* | darwin1.[012])
10268
allow_undefined_flag='-undefined suppress'
10271
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10272
allow_undefined_flag='-flat_namespace -undefined suppress'
10274
case ${MACOSX_DEPLOYMENT_TARGET} in
10276
allow_undefined_flag='-flat_namespace -undefined suppress'
10279
allow_undefined_flag='-undefined dynamic_lookup'
10285
output_verbose_link_cmd='echo'
10286
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10287
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10288
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10289
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}'
10290
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}'
10292
hardcode_automatic=yes
10293
hardcode_shlibpath_var=unsupported
10294
whole_archive_flag_spec='-all_load $convenience'
10295
link_all_deplibs=yes
10301
echo "$as_me:$LINENO: result: $enable_shared" >&5
10302
echo "${ECHO_T}$enable_shared" >&6
10304
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10305
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10306
# Make sure either enable_shared or enable_static is yes.
10307
test "$enable_shared" = yes || enable_static=yes
10308
echo "$as_me:$LINENO: result: $enable_static" >&5
10309
echo "${ECHO_T}$enable_static" >&6
10311
# The else clause should only fire when bootstrapping the
10312
# libtool distribution, otherwise you forgot to ship ltmain.sh
10313
# with your package, and you will get complaints that there are
10314
# no rules to generate ltmain.sh.
10315
if test -f "$ltmain"; then
10316
# See if we are running on zsh, and set the options which allow our commands through
10317
# without removal of \ escapes.
10318
if test -n "${ZSH_VERSION+set}" ; then
10319
setopt NO_GLOB_SUBST
10321
# Now quote all the things that may contain metacharacters while being
10322
# careful not to overquote the AC_SUBSTed values. We take copies of the
10323
# variables and quote the copies for generation of the libtool script.
10324
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10326
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10327
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10328
deplibs_check_method reload_flag reload_cmds need_locks \
10329
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10330
lt_cv_sys_global_symbol_to_c_name_address \
10331
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10332
old_postinstall_cmds old_postuninstall_cmds \
10336
lt_prog_compiler_wl \
10337
lt_prog_compiler_pic \
10338
lt_prog_compiler_static \
10339
lt_prog_compiler_no_builtin_flag \
10340
export_dynamic_flag_spec \
10341
thread_safe_flag_spec \
10342
whole_archive_flag_spec \
10343
enable_shared_with_static_runtimes \
10345
old_archive_from_new_cmds \
10350
compiler_lib_search_path \
10352
archive_expsym_cmds \
10354
postuninstall_cmds \
10355
old_archive_from_expsyms_cmds \
10356
allow_undefined_flag \
10357
no_undefined_flag \
10358
export_symbols_cmds \
10359
hardcode_libdir_flag_spec \
10360
hardcode_libdir_flag_spec_ld \
10361
hardcode_libdir_separator \
10362
hardcode_automatic \
10364
module_expsym_cmds \
10365
lt_cv_prog_compiler_c_o \
10367
include_expsyms; do
10370
old_archive_cmds | \
10371
old_archive_from_new_cmds | \
10373
archive_expsym_cmds | \
10375
module_expsym_cmds | \
10376
old_archive_from_expsyms_cmds | \
10377
export_symbols_cmds | \
10378
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10379
postinstall_cmds | postuninstall_cmds | \
10380
old_postinstall_cmds | old_postuninstall_cmds | \
10381
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10382
# Double-quote double-evaled strings.
10383
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10386
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10392
*'\$0 --fallback-echo"')
10393
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10397
cfgfile="${ofile}T"
10398
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10400
{ echo "$as_me:$LINENO: creating $ofile" >&5
10401
echo "$as_me: creating $ofile" >&6;}
10403
cat <<__EOF__ >> "$cfgfile"
10406
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10407
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10408
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10410
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10411
# Free Software Foundation, Inc.
10413
# This file is part of GNU Libtool:
10414
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10416
# This program is free software; you can redistribute it and/or modify
10417
# it under the terms of the GNU General Public License as published by
10418
# the Free Software Foundation; either version 2 of the License, or
10419
# (at your option) any later version.
10421
# This program is distributed in the hope that it will be useful, but
10422
# WITHOUT ANY WARRANTY; without even the implied warranty of
10423
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10424
# General Public License for more details.
10426
# You should have received a copy of the GNU General Public License
10427
# along with this program; if not, write to the Free Software
10428
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10430
# As a special exception to the GNU General Public License, if you
10431
# distribute this file as part of a program that contains a
10432
# configuration script generated by Autoconf, you may include it under
10433
# the same distribution terms that you use for the rest of that program.
10435
# A sed program that does not truncate output.
10438
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10439
Xsed="$SED -e s/^X//"
10441
# The HP-UX ksh and POSIX shell print the target directory to stdout
10442
# if CDPATH is set.
10443
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10445
# The names of the tagged configurations supported by this script.
10448
# ### BEGIN LIBTOOL CONFIG
10450
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10452
# Shell to use when invoking shell scripts.
10455
# Whether or not to build shared libraries.
10456
build_libtool_libs=$enable_shared
10458
# Whether or not to build static libraries.
10459
build_old_libs=$enable_static
10461
# Whether or not to add -lc for building shared libraries.
10462
build_libtool_need_lc=$archive_cmds_need_lc
10464
# Whether or not to disallow shared libs when runtime libs are static
10465
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10467
# Whether or not to optimize for fast installation.
10468
fast_install=$enable_fast_install
10471
host_alias=$host_alias
10474
# An echo program that does not interpret backslashes.
10479
AR_FLAGS=$lt_AR_FLAGS
10484
# A language-specific compiler.
10487
# Is the compiler the GNU C compiler?
10493
# The linker used to build libraries.
10496
# Whether we need hard or soft links.
10499
# A BSD-compatible nm program.
10502
# A symbol stripping program
10505
# Used to examine libraries when file_magic_cmd begins "file"
10506
MAGIC_CMD=$MAGIC_CMD
10508
# Used on cygwin: DLL creation program.
10511
# Used on cygwin: object dumper.
10514
# Used on cygwin: assembler.
10517
# The name of the directory that contains temporary libtool files.
10520
# How to create reloadable object files.
10521
reload_flag=$lt_reload_flag
10522
reload_cmds=$lt_reload_cmds
10524
# How to pass a linker flag through the compiler.
10525
wl=$lt_lt_prog_compiler_wl
10527
# Object file suffix (normally "o").
10528
objext="$ac_objext"
10530
# Old archive suffix (normally "a").
10533
# Shared library suffix (normally ".so").
10534
shrext_cmds='$shrext_cmds'
10536
# Executable file suffix (normally "").
10539
# Additional compiler flags for building library objects.
10540
pic_flag=$lt_lt_prog_compiler_pic
10543
# What is the maximum length of a command?
10544
max_cmd_len=$lt_cv_sys_max_cmd_len
10546
# Does compiler simultaneously support -c and -o options?
10547
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10549
# Must we lock files when doing compilation ?
10550
need_locks=$lt_need_locks
10552
# Do we need the lib prefix for modules?
10553
need_lib_prefix=$need_lib_prefix
10555
# Do we need a version for libraries?
10556
need_version=$need_version
10558
# Whether dlopen is supported.
10559
dlopen_support=$enable_dlopen
10561
# Whether dlopen of programs is supported.
10562
dlopen_self=$enable_dlopen_self
10564
# Whether dlopen of statically linked programs is supported.
10565
dlopen_self_static=$enable_dlopen_self_static
10567
# Compiler flag to prevent dynamic linking.
10568
link_static_flag=$lt_lt_prog_compiler_static
10570
# Compiler flag to turn off builtin functions.
10571
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10573
# Compiler flag to allow reflexive dlopens.
10574
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10576
# Compiler flag to generate shared objects directly from archives.
10577
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10579
# Compiler flag to generate thread-safe objects.
10580
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10582
# Library versioning type.
10583
version_type=$version_type
10585
# Format of library name prefix.
10586
libname_spec=$lt_libname_spec
10588
# List of archive names. First name is the real one, the rest are links.
10589
# The last name is the one that the linker finds with -lNAME.
10590
library_names_spec=$lt_library_names_spec
10592
# The coded name of the library, if different from the real name.
10593
soname_spec=$lt_soname_spec
10595
# Commands used to build and install an old-style archive.
10597
old_archive_cmds=$lt_old_archive_cmds
10598
old_postinstall_cmds=$lt_old_postinstall_cmds
10599
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10601
# Create an old-style archive from a shared archive.
10602
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10604
# Create a temporary old-style archive to link instead of a shared archive.
10605
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10607
# Commands used to build and install a shared archive.
10608
archive_cmds=$lt_archive_cmds
10609
archive_expsym_cmds=$lt_archive_expsym_cmds
10610
postinstall_cmds=$lt_postinstall_cmds
10611
postuninstall_cmds=$lt_postuninstall_cmds
10613
# Commands used to build a loadable module (assumed same as above if empty)
10614
module_cmds=$lt_module_cmds
10615
module_expsym_cmds=$lt_module_expsym_cmds
10617
# Commands to strip libraries.
10618
old_striplib=$lt_old_striplib
10619
striplib=$lt_striplib
10621
# Dependencies to place before the objects being linked to create a
10623
predep_objects=$lt_predep_objects
10625
# Dependencies to place after the objects being linked to create a
10627
postdep_objects=$lt_postdep_objects
10629
# Dependencies to place before the objects being linked to create a
10631
predeps=$lt_predeps
10633
# Dependencies to place after the objects being linked to create a
10635
postdeps=$lt_postdeps
10637
# The library search path used internally by the compiler when linking
10638
# a shared library.
10639
compiler_lib_search_path=$lt_compiler_lib_search_path
10641
# Method to check whether dependent libraries are shared objects.
10642
deplibs_check_method=$lt_deplibs_check_method
10644
# Command to use when deplibs_check_method == file_magic.
10645
file_magic_cmd=$lt_file_magic_cmd
10647
# Flag that allows shared libraries with undefined symbols to be built.
10648
allow_undefined_flag=$lt_allow_undefined_flag
10650
# Flag that forces no undefined symbols.
10651
no_undefined_flag=$lt_no_undefined_flag
10653
# Commands used to finish a libtool library installation in a directory.
10654
finish_cmds=$lt_finish_cmds
10656
# Same as above, but a single script fragment to be evaled but not shown.
10657
finish_eval=$lt_finish_eval
10659
# Take the output of nm and produce a listing of raw symbols and C names.
10660
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10662
# Transform the output of nm in a proper C declaration
10663
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10665
# Transform the output of nm in a C name address pair
10666
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10668
# This is the shared library runtime path variable.
10669
runpath_var=$runpath_var
10671
# This is the shared library path variable.
10672
shlibpath_var=$shlibpath_var
10674
# Is shlibpath searched before the hard-coded library search path?
10675
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10677
# How to hardcode a shared library path into an executable.
10678
hardcode_action=$hardcode_action
10680
# Whether we should hardcode library paths into libraries.
10681
hardcode_into_libs=$hardcode_into_libs
10683
# Flag to hardcode \$libdir into a binary during linking.
10684
# This must work even if \$libdir does not exist.
10685
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10687
# If ld is used when linking, flag to hardcode \$libdir into
10688
# a binary during linking. This must work even if \$libdir does
10690
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10692
# Whether we need a single -rpath flag with a separated argument.
10693
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10695
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10696
# resulting binary.
10697
hardcode_direct=$hardcode_direct
10699
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10700
# resulting binary.
10701
hardcode_minus_L=$hardcode_minus_L
10703
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10704
# the resulting binary.
10705
hardcode_shlibpath_var=$hardcode_shlibpath_var
10707
# Set to yes if building a shared library automatically hardcodes DIR into the library
10708
# and all subsequent libraries and executables linked against it.
10709
hardcode_automatic=$hardcode_automatic
10711
# Variables whose values should be saved in libtool wrapper scripts and
10712
# restored at relink time.
10713
variables_saved_for_relink="$variables_saved_for_relink"
10715
# Whether libtool must link a program against all its dependency libraries.
10716
link_all_deplibs=$link_all_deplibs
10718
# Compile-time system search path for libraries
10719
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10721
# Run-time system search path for libraries
10722
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10724
# Fix the shell variable \$srcfile for the compiler.
10725
fix_srcfile_path="$fix_srcfile_path"
10727
# Set to yes if exported symbols are required.
10728
always_export_symbols=$always_export_symbols
10730
# The commands to list exported symbols.
10731
export_symbols_cmds=$lt_export_symbols_cmds
10733
# The commands to extract the exported symbol list from a shared archive.
10734
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10736
# Symbols that should not be listed in the preloaded symbols.
10737
exclude_expsyms=$lt_exclude_expsyms
10739
# Symbols that must always be exported.
10740
include_expsyms=$lt_include_expsyms
10742
# ### END LIBTOOL CONFIG
10749
cat <<\EOF >> "$cfgfile"
10751
# AIX sometimes has problems with the GCC collect2 program. For some
10752
# reason, if we set the COLLECT_NAMES environment variable, the problems
10753
# vanish in a puff of smoke.
10754
if test "X${COLLECT_NAMES+set}" != Xset; then
10756
export COLLECT_NAMES
10762
# We use sed instead of cat because bash on DJGPP gets confused if
10763
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10764
# text mode, it properly converts lines to CR/LF. This bash problem
10765
# is reportedly fixed, but why not run on old versions too?
10766
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10768
mv -f "$cfgfile" "$ofile" || \
10769
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10773
# If there is no Makefile yet, we rely on a make rule to execute
10774
# `config.status --recheck' to rerun these tests and create the
10775
# libtool script then.
10776
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10777
if test -f "$ltmain_in"; then
10778
test -f Makefile && make "$ltmain"
10784
ac_cpp='$CPP $CPPFLAGS'
10785
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10786
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10787
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10792
# Check whether --with-tags or --without-tags was given.
10793
if test "${with_tags+set}" = set; then
10794
withval="$with_tags"
10795
tagnames="$withval"
10798
if test -f "$ltmain" && test -n "$tagnames"; then
10799
if test ! -f "${ofile}"; then
10800
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10801
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10804
if test -z "$LTCC"; then
10805
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10806
if test -z "$LTCC"; then
10807
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10808
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10810
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10811
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10815
# Extract list of available tagged configurations in $ofile.
10816
# Note that this assumes the entire list is on one line.
10817
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10819
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10820
for tagname in $tagnames; do
10822
# Check whether tagname contains only valid characters
10823
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10825
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10826
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10827
{ (exit 1); exit 1; }; }
10831
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10833
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10834
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10835
{ (exit 1); exit 1; }; }
10838
# Update the list of available tags.
10839
if test -n "$tagname"; then
10840
echo appending configuration tag \"$tagname\" to $ofile
10844
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10846
ac_cpp='$CXXCPP $CPPFLAGS'
10847
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10854
archive_cmds_need_lc_CXX=no
10855
allow_undefined_flag_CXX=
10856
always_export_symbols_CXX=no
10857
archive_expsym_cmds_CXX=
10858
export_dynamic_flag_spec_CXX=
10859
hardcode_direct_CXX=no
10860
hardcode_libdir_flag_spec_CXX=
10861
hardcode_libdir_flag_spec_ld_CXX=
10862
hardcode_libdir_separator_CXX=
10863
hardcode_minus_L_CXX=no
10864
hardcode_automatic_CXX=no
10866
module_expsym_cmds_CXX=
10867
link_all_deplibs_CXX=unknown
10868
old_archive_cmds_CXX=$old_archive_cmds
10869
no_undefined_flag_CXX=
10870
whole_archive_flag_spec_CXX=
10871
enable_shared_with_static_runtimes_CXX=no
10873
# Dependencies to place before and after the object being linked:
10874
predep_objects_CXX=
10875
postdep_objects_CXX=
10878
compiler_lib_search_path_CXX=
10880
# Source file extension for C++ test sources.
10883
# Object file extension for compiled C++ test sources.
10887
# Code to be used in simple compile tests
10888
lt_simple_compile_test_code="int some_variable = 0;\n"
10890
# Code to be used in simple link tests
10891
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10893
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10895
# If no C compiler was specified, use CC.
10898
# Allow CC to be a program name with arguments.
10902
# Allow CC to be a program name with arguments.
10907
lt_save_with_gnu_ld=$with_gnu_ld
10908
lt_save_path_LD=$lt_cv_path_LD
10909
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10910
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10912
unset lt_cv_prog_gnu_ld
10914
if test -n "${lt_cv_path_LDCXX+set}"; then
10915
lt_cv_path_LD=$lt_cv_path_LDCXX
10917
unset lt_cv_path_LD
10919
test -z "${LDCXX+set}" || LD=$LDCXX
10923
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10925
# We don't want -fno-exception wen compiling C++ code, so set the
10926
# no_builtin_flag separately
10927
if test "$GXX" = yes; then
10928
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10930
lt_prog_compiler_no_builtin_flag_CXX=
10933
if test "$GXX" = yes; then
10934
# Set up default GNU C++ configuration
10937
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10938
if test "${with_gnu_ld+set}" = set; then
10939
withval="$with_gnu_ld"
10940
test "$withval" = no || with_gnu_ld=yes
10945
if test "$GCC" = yes; then
10946
# Check if gcc -print-prog-name=ld gives a path.
10947
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10948
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10951
# gcc leaves a trailing carriage return which upsets mingw
10952
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10954
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10957
# Accept absolute paths.
10959
re_direlt='/[^/][^/]*/\.\./'
10960
# Canonicalize the pathname of ld
10961
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10962
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10963
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10965
test -z "$LD" && LD="$ac_prog"
10968
# If it fails, then pretend we aren't using GCC.
10972
# If it is relative, then search for the first ld in PATH.
10973
with_gnu_ld=unknown
10976
elif test "$with_gnu_ld" = yes; then
10977
echo "$as_me:$LINENO: checking for GNU ld" >&5
10978
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10980
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10981
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10983
if test "${lt_cv_path_LD+set}" = set; then
10984
echo $ECHO_N "(cached) $ECHO_C" >&6
10986
if test -z "$LD"; then
10987
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10988
for ac_dir in $PATH; do
10990
test -z "$ac_dir" && ac_dir=.
10991
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10992
lt_cv_path_LD="$ac_dir/$ac_prog"
10993
# Check to see if the program is GNU ld. I'd rather use --version,
10994
# but apparently some GNU ld's only accept -v.
10995
# Break only if it was the GNU/non-GNU ld that we prefer.
10996
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10997
*GNU* | *'with BFD'*)
10998
test "$with_gnu_ld" != no && break
11001
test "$with_gnu_ld" != yes && break
11008
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11012
LD="$lt_cv_path_LD"
11013
if test -n "$LD"; then
11014
echo "$as_me:$LINENO: result: $LD" >&5
11015
echo "${ECHO_T}$LD" >&6
11017
echo "$as_me:$LINENO: result: no" >&5
11018
echo "${ECHO_T}no" >&6
11020
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11021
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11022
{ (exit 1); exit 1; }; }
11023
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11024
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11025
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11026
echo $ECHO_N "(cached) $ECHO_C" >&6
11028
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11029
case `$LD -v 2>&1 </dev/null` in
11030
*GNU* | *'with BFD'*)
11031
lt_cv_prog_gnu_ld=yes
11034
lt_cv_prog_gnu_ld=no
11038
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11039
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11040
with_gnu_ld=$lt_cv_prog_gnu_ld
11044
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11045
# archiving commands below assume that GNU ld is being used.
11046
if test "$with_gnu_ld" = yes; then
11047
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048
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'
11050
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11051
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11053
# If archive_cmds runs LD, not CC, wlarc should be empty
11054
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11055
# investigate it a little bit more. (MM)
11058
# ancient GNU ld didn't support --whole-archive et. al.
11059
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11060
grep 'no-whole-archive' > /dev/null; then
11061
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11063
whole_archive_flag_spec_CXX=
11069
# A generic and very simple default shared library creation
11070
# command for GNU C++ for the case where it uses the native
11071
# linker, instead of GNU ld. If possible, this setting should
11072
# overridden to take advantage of the native linker features on
11073
# the platform it is being used on.
11074
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11077
# Commands to make compiler produce verbose output that lists
11078
# what "hidden" libraries, object files and flags are used when
11079
# linking a shared library.
11080
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11088
# PORTME: fill in a description of your system's C++ link characteristics
11089
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11090
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11094
# FIXME: insert proper C++ library support
11098
if test "$host_cpu" = ia64; then
11099
# On IA64, the linker does run time linking by default, so we don't
11100
# have to do anything special.
11101
aix_use_runtimelinking=no
11102
exp_sym_flag='-Bexport'
11105
aix_use_runtimelinking=no
11107
# Test if we are trying to use run time linking or normal
11108
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11109
# need to do runtime linking.
11110
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11111
for ld_flag in $LDFLAGS; do
11114
aix_use_runtimelinking=yes
11121
exp_sym_flag='-bexport'
11122
no_entry_flag='-bnoentry'
11125
# When large executables or shared objects are built, AIX ld can
11126
# have problems creating the table of contents. If linking a library
11127
# or program results in "error TOC overflow" add -mminimal-toc to
11128
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11129
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11131
archive_cmds_CXX=''
11132
hardcode_direct_CXX=yes
11133
hardcode_libdir_separator_CXX=':'
11134
link_all_deplibs_CXX=yes
11136
if test "$GXX" = yes; then
11137
case $host_os in aix4.012|aix4.012.*)
11138
# We only want to do this on AIX 4.2 and lower, the check
11139
# below for broken collect2 doesn't work under 4.3+
11140
collect2name=`${CC} -print-prog-name=collect2`
11141
if test -f "$collect2name" && \
11142
strings "$collect2name" | grep resolve_lib_name >/dev/null
11144
# We have reworked collect2
11145
hardcode_direct_CXX=yes
11147
# We have old collect2
11148
hardcode_direct_CXX=unsupported
11149
# It fails to find uninstalled libraries when the uninstalled
11150
# path is not listed in the libpath. Setting hardcode_minus_L
11151
# to unsupported forces relinking
11152
hardcode_minus_L_CXX=yes
11153
hardcode_libdir_flag_spec_CXX='-L$libdir'
11154
hardcode_libdir_separator_CXX=
11157
shared_flag='-shared'
11160
if test "$host_cpu" = ia64; then
11161
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11162
# chokes on -Wl,-G. The following line is correct:
11165
if test "$aix_use_runtimelinking" = yes; then
11166
shared_flag='${wl}-G'
11168
shared_flag='${wl}-bM:SRE'
11173
# It seems that -bexpall does not export symbols beginning with
11174
# underscore (_), so it is better to generate a list of symbols to export.
11175
always_export_symbols_CXX=yes
11176
if test "$aix_use_runtimelinking" = yes; then
11177
# Warning - without using the other runtime loading flags (-brtl),
11178
# -berok will link without error, but may produce a broken library.
11179
allow_undefined_flag_CXX='-berok'
11180
# Determine the default libpath from the value encoded in an empty executable.
11181
cat >conftest.$ac_ext <<_ACEOF
11184
cat confdefs.h >>conftest.$ac_ext
11185
cat >>conftest.$ac_ext <<_ACEOF
11186
/* end confdefs.h. */
11196
rm -f conftest.$ac_objext conftest$ac_exeext
11197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198
(eval $ac_link) 2>conftest.er1
11200
grep -v '^ *+' conftest.er1 >conftest.err
11202
cat conftest.err >&5
11203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204
(exit $ac_status); } &&
11205
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207
(eval $ac_try) 2>&5
11209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210
(exit $ac_status); }; } &&
11211
{ ac_try='test -s conftest$ac_exeext'
11212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213
(eval $ac_try) 2>&5
11215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216
(exit $ac_status); }; }; then
11218
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11220
# Check for a 64-bit object if we didn't find anything.
11221
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; }
11224
echo "$as_me: failed program was:" >&5
11225
sed 's/^/| /' conftest.$ac_ext >&5
11228
rm -f conftest.err conftest.$ac_objext \
11229
conftest$ac_exeext conftest.$ac_ext
11230
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11232
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11234
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11236
if test "$host_cpu" = ia64; then
11237
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11238
allow_undefined_flag_CXX="-z nodefs"
11239
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11241
# Determine the default libpath from the value encoded in an empty executable.
11242
cat >conftest.$ac_ext <<_ACEOF
11245
cat confdefs.h >>conftest.$ac_ext
11246
cat >>conftest.$ac_ext <<_ACEOF
11247
/* end confdefs.h. */
11257
rm -f conftest.$ac_objext conftest$ac_exeext
11258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259
(eval $ac_link) 2>conftest.er1
11261
grep -v '^ *+' conftest.er1 >conftest.err
11263
cat conftest.err >&5
11264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265
(exit $ac_status); } &&
11266
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268
(eval $ac_try) 2>&5
11270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271
(exit $ac_status); }; } &&
11272
{ ac_try='test -s conftest$ac_exeext'
11273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274
(eval $ac_try) 2>&5
11276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277
(exit $ac_status); }; }; then
11279
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11281
# Check for a 64-bit object if we didn't find anything.
11282
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; }
11285
echo "$as_me: failed program was:" >&5
11286
sed 's/^/| /' conftest.$ac_ext >&5
11289
rm -f conftest.err conftest.$ac_objext \
11290
conftest$ac_exeext conftest.$ac_ext
11291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11293
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11294
# Warning - without using the other run time loading flags,
11295
# -berok will link without error, but may produce a broken library.
11296
no_undefined_flag_CXX=' ${wl}-bernotok'
11297
allow_undefined_flag_CXX=' ${wl}-berok'
11298
# -bexpall does not export symbols beginning with underscore (_)
11299
always_export_symbols_CXX=yes
11300
# Exported symbols can be pulled into shared objects from archives
11301
whole_archive_flag_spec_CXX=' '
11302
archive_cmds_need_lc_CXX=yes
11303
# This is similar to how AIX traditionally builds it's shared libraries.
11304
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11309
case $cc_basename in
11311
# FIXME: insert proper C++ library support
11317
cygwin* | mingw* | pw32*)
11318
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11319
# as there is no search path for DLLs.
11320
hardcode_libdir_flag_spec_CXX='-L$libdir'
11321
allow_undefined_flag_CXX=unsupported
11322
always_export_symbols_CXX=no
11323
enable_shared_with_static_runtimes_CXX=yes
11325
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11326
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11327
# If the export-symbols file already is a .def file (1st line
11328
# is EXPORTS), use it as is; otherwise, prepend...
11329
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11330
cp $export_symbols $output_objdir/$soname.def;
11332
echo EXPORTS > $output_objdir/$soname.def;
11333
cat $export_symbols >> $output_objdir/$soname.def;
11335
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11341
darwin* | rhapsody*)
11342
if test "$GXX" = yes; then
11343
archive_cmds_need_lc_CXX=no
11345
rhapsody* | darwin1.[012])
11346
allow_undefined_flag_CXX='-undefined suppress'
11349
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11350
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11352
case ${MACOSX_DEPLOYMENT_TARGET} in
11354
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11357
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11363
lt_int_apple_cc_single_mod=no
11364
output_verbose_link_cmd='echo'
11365
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11366
lt_int_apple_cc_single_mod=yes
11368
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11369
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11371
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11373
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11375
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11376
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11377
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}'
11379
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11381
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}'
11382
hardcode_direct_CXX=no
11383
hardcode_automatic_CXX=yes
11384
hardcode_shlibpath_var_CXX=unsupported
11385
whole_archive_flag_spec_CXX='-all_load $convenience'
11386
link_all_deplibs_CXX=yes
11393
case $cc_basename in
11395
# FIXME: insert proper C++ library support
11399
# Green Hills C++ Compiler
11400
# FIXME: insert proper C++ library support
11404
# FIXME: insert proper C++ library support
11410
# C++ shared libraries reported to be fairly broken before switch to ELF
11414
archive_cmds_need_lc_CXX=no
11416
freebsd* | kfreebsd*-gnu)
11417
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11424
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11425
hardcode_libdir_separator_CXX=:
11426
export_dynamic_flag_spec_CXX='${wl}-E'
11427
hardcode_direct_CXX=yes
11428
hardcode_minus_L_CXX=yes # Not in the search PATH,
11429
# but as the default
11430
# location of the library.
11432
case $cc_basename in
11434
# FIXME: insert proper C++ library support
11438
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'
11439
# Commands to make compiler produce verbose output that lists
11440
# what "hidden" libraries, object files and flags are used when
11441
# linking a shared library.
11443
# There doesn't appear to be a way to prevent this compiler from
11444
# explicitly linking system object files so we need to strip them
11445
# from the output so that they don't get included in the library
11447
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'
11450
if test "$GXX" = yes; then
11451
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'
11453
# FIXME: insert proper C++ library support
11460
if test $with_gnu_ld = no; then
11461
case "$host_cpu" in
11463
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11464
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11465
hardcode_libdir_separator_CXX=:
11468
hardcode_libdir_flag_spec_CXX='-L$libdir'
11471
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11472
hardcode_libdir_separator_CXX=:
11473
export_dynamic_flag_spec_CXX='${wl}-E'
11477
case "$host_cpu" in
11479
hardcode_direct_CXX=no
11480
hardcode_shlibpath_var_CXX=no
11483
hardcode_direct_CXX=no
11484
hardcode_shlibpath_var_CXX=no
11485
hardcode_minus_L_CXX=yes # Not in the search PATH,
11486
# but as the default
11487
# location of the library.
11490
hardcode_direct_CXX=yes
11491
hardcode_minus_L_CXX=yes # Not in the search PATH,
11492
# but as the default
11493
# location of the library.
11497
case $cc_basename in
11499
# FIXME: insert proper C++ library support
11503
case "$host_cpu" in
11505
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11508
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11511
# Commands to make compiler produce verbose output that lists
11512
# what "hidden" libraries, object files and flags are used when
11513
# linking a shared library.
11515
# There doesn't appear to be a way to prevent this compiler from
11516
# explicitly linking system object files so we need to strip them
11517
# from the output so that they don't get included in the library
11519
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'
11522
if test "$GXX" = yes; then
11523
if test $with_gnu_ld = no; then
11524
case "$host_cpu" in
11526
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11529
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'
11534
# FIXME: insert proper C++ library support
11541
case $cc_basename in
11544
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11546
# Archives containing C++ object files must be created using
11547
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11548
# necessary to make sure instantiated templates are included
11550
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11553
if test "$GXX" = yes; then
11554
if test "$with_gnu_ld" = no; then
11555
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11557
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'
11560
link_all_deplibs_CXX=yes
11563
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11564
hardcode_libdir_separator_CXX=:
11567
case $cc_basename in
11569
# Kuck and Associates, Inc. (KAI) C++ Compiler
11571
# KCC will only create a shared library if the output file
11572
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11573
# to its proper name (with version) after linking.
11574
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'
11575
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'
11576
# Commands to make compiler produce verbose output that lists
11577
# what "hidden" libraries, object files and flags are used when
11578
# linking a shared library.
11580
# There doesn't appear to be a way to prevent this compiler from
11581
# explicitly linking system object files so we need to strip them
11582
# from the output so that they don't get included in the library
11584
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'
11586
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11587
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11589
# Archives containing C++ object files must be created using
11590
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11591
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11596
archive_cmds_need_lc_CXX=no
11597
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11598
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'
11599
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11600
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11601
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11605
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11606
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'
11608
runpath_var=LD_RUN_PATH
11609
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11610
hardcode_libdir_separator_CXX=:
11612
# Commands to make compiler produce verbose output that lists
11613
# what "hidden" libraries, object files and flags are used when
11614
# linking a shared library.
11616
# There doesn't appear to be a way to prevent this compiler from
11617
# explicitly linking system object files so we need to strip them
11618
# from the output so that they don't get included in the library
11620
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'
11625
# FIXME: insert proper C++ library support
11629
# FIXME: insert proper C++ library support
11633
case $cc_basename in
11635
# FIXME: insert proper C++ library support
11639
# FIXME: insert proper C++ library support
11644
netbsd* | knetbsd*-gnu)
11645
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11646
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11648
hardcode_libdir_flag_spec_CXX='-R$libdir'
11649
hardcode_direct_CXX=yes
11650
hardcode_shlibpath_var_CXX=no
11652
# Workaround some broken pre-1.5 toolchains
11653
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11656
case $cc_basename in
11658
# Kuck and Associates, Inc. (KAI) C++ Compiler
11660
# KCC will only create a shared library if the output file
11661
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11662
# to its proper name (with version) after linking.
11663
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'
11665
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11666
hardcode_libdir_separator_CXX=:
11668
# Archives containing C++ object files must be created using
11669
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11670
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11674
# Rational C++ 2.4.1
11675
# FIXME: insert proper C++ library support
11679
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11680
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11682
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11683
hardcode_libdir_separator_CXX=:
11685
# Commands to make compiler produce verbose output that lists
11686
# what "hidden" libraries, object files and flags are used when
11687
# linking a shared library.
11689
# There doesn't appear to be a way to prevent this compiler from
11690
# explicitly linking system object files so we need to strip them
11691
# from the output so that they don't get included in the library
11693
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'
11696
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11697
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11698
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11700
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11701
hardcode_libdir_separator_CXX=:
11703
# Commands to make compiler produce verbose output that lists
11704
# what "hidden" libraries, object files and flags are used when
11705
# linking a shared library.
11706
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11709
# FIXME: insert proper C++ library support
11716
case $cc_basename in
11718
# Kuck and Associates, Inc. (KAI) C++ Compiler
11720
# KCC will only create a shared library if the output file
11721
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11722
# to its proper name (with version) after linking.
11723
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'
11725
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11726
hardcode_libdir_separator_CXX=:
11728
# Archives containing C++ object files must be created using
11729
# the KAI C++ compiler.
11730
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11733
# Rational C++ 2.4.1
11734
# FIXME: insert proper C++ library support
11738
allow_undefined_flag_CXX=' -expect_unresolved \*'
11739
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11740
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11741
echo "-hidden">> $lib.exp~
11742
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11745
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11746
hardcode_libdir_separator_CXX=:
11748
# Commands to make compiler produce verbose output that lists
11749
# what "hidden" libraries, object files and flags are used when
11750
# linking a shared library.
11752
# There doesn't appear to be a way to prevent this compiler from
11753
# explicitly linking system object files so we need to strip them
11754
# from the output so that they don't get included in the library
11756
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'
11759
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11760
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11761
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11763
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764
hardcode_libdir_separator_CXX=:
11766
# Commands to make compiler produce verbose output that lists
11767
# what "hidden" libraries, object files and flags are used when
11768
# linking a shared library.
11769
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11772
# FIXME: insert proper C++ library support
11779
# FIXME: insert proper C++ library support
11783
archive_cmds_need_lc_CXX=no
11784
case $cc_basename in
11786
# FIXME: insert proper C++ library support
11790
# FIXME: insert proper C++ library support
11796
case $cc_basename in
11799
# FIXME: insert proper C++ library support
11804
# FIXME: insert proper C++ library support
11808
# FIXME: insert proper C++ library support
11814
case $cc_basename in
11816
# Sun C++ 4.2, 5.x and Centerline C++
11817
no_undefined_flag_CXX=' -zdefs'
11818
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11820
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11822
hardcode_libdir_flag_spec_CXX='-R$libdir'
11823
hardcode_shlibpath_var_CXX=no
11825
solaris2.0-5 | solaris2.0-5.*) ;;
11827
# The C++ compiler is used as linker so we must use $wl
11828
# flag to pass the commands to the underlying system
11830
# Supported since Solaris 2.6 (maybe 2.5.1?)
11831
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11834
link_all_deplibs_CXX=yes
11836
# Commands to make compiler produce verbose output that lists
11837
# what "hidden" libraries, object files and flags are used when
11838
# linking a shared library.
11840
# There doesn't appear to be a way to prevent this compiler from
11841
# explicitly linking system object files so we need to strip them
11842
# from the output so that they don't get included in the library
11844
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11846
# Archives containing C++ object files must be created using
11847
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11848
# necessary to make sure instantiated templates are included
11850
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11853
# Green Hills C++ Compiler
11854
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11856
# The C++ compiler must be used to create the archive.
11857
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11860
# GNU C++ compiler with Solaris linker
11861
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11862
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11863
if $CC --version | grep -v '^2\.7' > /dev/null; then
11864
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11865
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11866
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11868
# Commands to make compiler produce verbose output that lists
11869
# what "hidden" libraries, object files and flags are used when
11870
# linking a shared library.
11871
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11873
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11875
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11876
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11877
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11879
# Commands to make compiler produce verbose output that lists
11880
# what "hidden" libraries, object files and flags are used when
11881
# linking a shared library.
11882
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11885
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11890
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11891
archive_cmds_need_lc_CXX=no
11894
case $cc_basename in
11896
# NonStop-UX NCC 3.20
11897
# FIXME: insert proper C++ library support
11901
# FIXME: insert proper C++ library support
11907
# FIXME: insert proper C++ library support
11911
# FIXME: insert proper C++ library support
11915
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11916
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11917
test "$ld_shlibs_CXX" = no && can_build_shared=no
11923
cat > conftest.$ac_ext <<EOF
11927
Foo (void) { a = 0; }
11933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934
(eval $ac_compile) 2>&5
11936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937
(exit $ac_status); }; then
11938
# Parse the compiler output and extract the necessary
11939
# objects, libraries and library flags.
11941
# Sentinel used to keep track of whether or not we are before
11942
# the conftest object file.
11943
pre_test_object_deps_done=no
11945
# The `*' in the case matches for architectures that use `case' in
11946
# $output_verbose_cmd can trigger glob expansion during the loop
11947
# eval without this substitution.
11948
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11950
for p in `eval $output_verbose_link_cmd`; do
11954
# Some compilers place space between "-{L,R}" and the path.
11955
# Remove the space.
11956
if test $p = "-L" \
11957
|| test $p = "-R"; then
11964
if test "$pre_test_object_deps_done" = no; then
11967
# Internal compiler library paths should come after those
11968
# provided the user. The postdeps already come after the
11969
# user supplied libs so there is no need to process them.
11970
if test -z "$compiler_lib_search_path_CXX"; then
11971
compiler_lib_search_path_CXX="${prev}${p}"
11973
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11976
# The "-l" case would never come before the object being
11977
# linked, so don't bother handling this case.
11980
if test -z "$postdeps_CXX"; then
11981
postdeps_CXX="${prev}${p}"
11983
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11989
# This assumes that the test object file only shows up
11990
# once in the compiler output.
11991
if test "$p" = "conftest.$objext"; then
11992
pre_test_object_deps_done=yes
11996
if test "$pre_test_object_deps_done" = no; then
11997
if test -z "$predep_objects_CXX"; then
11998
predep_objects_CXX="$p"
12000
predep_objects_CXX="$predep_objects_CXX $p"
12003
if test -z "$postdep_objects_CXX"; then
12004
postdep_objects_CXX="$p"
12006
postdep_objects_CXX="$postdep_objects_CXX $p"
12011
*) ;; # Ignore the rest.
12019
echo "libtool.m4: error: problem compiling CXX test program"
12022
$rm -f confest.$objext
12024
case " $postdeps_CXX " in
12025
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12028
lt_prog_compiler_wl_CXX=
12029
lt_prog_compiler_pic_CXX=
12030
lt_prog_compiler_static_CXX=
12032
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12033
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12035
# C++ specific cases for pic, static, wl, etc.
12036
if test "$GXX" = yes; then
12037
lt_prog_compiler_wl_CXX='-Wl,'
12038
lt_prog_compiler_static_CXX='-static'
12042
# All AIX code is PIC.
12043
if test "$host_cpu" = ia64; then
12044
# AIX 5 now supports IA64 processor
12045
lt_prog_compiler_static_CXX='-Bstatic'
12049
# FIXME: we need at least 68020 code to build shared libraries, but
12050
# adding the `-m68020' flag to GCC prevents building anything better,
12052
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12054
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12055
# PIC is the default for these OSes.
12057
mingw* | os2* | pw32*)
12058
# This hack is so that the source file can tell whether it is being
12059
# built for inclusion in a dll (and should export symbols for example).
12060
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12062
darwin* | rhapsody*)
12063
# PIC is the default on this platform
12064
# Common symbols not allowed in MH_DYLIB files
12065
lt_prog_compiler_pic_CXX='-fno-common'
12068
# DJGPP does not support shared libraries at all
12069
lt_prog_compiler_pic_CXX=
12072
if test -d /usr/nec; then
12073
lt_prog_compiler_pic_CXX=-Kconform_pic
12077
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12078
# not for PA HP-UX.
12079
case "$host_cpu" in
12083
lt_prog_compiler_pic_CXX='-fPIC'
12088
lt_prog_compiler_pic_CXX='-fPIC'
12094
# All AIX code is PIC.
12095
if test "$host_cpu" = ia64; then
12096
# AIX 5 now supports IA64 processor
12097
lt_prog_compiler_static_CXX='-Bstatic'
12099
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12103
case $cc_basename in
12105
# Green Hills C++ Compiler
12106
# _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"
12111
case $cc_basename in
12113
lt_prog_compiler_pic_CXX='-KPIC'
12116
# Green Hills C++ Compiler
12117
lt_prog_compiler_pic_CXX='-pic'
12123
freebsd* | kfreebsd*-gnu)
12124
# FreeBSD uses GNU C++
12126
hpux9* | hpux10* | hpux11*)
12127
case $cc_basename in
12129
lt_prog_compiler_wl_CXX='-Wl,'
12130
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12131
if test "$host_cpu" != ia64; then
12132
lt_prog_compiler_pic_CXX='+Z'
12136
lt_prog_compiler_wl_CXX='-Wl,'
12137
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12138
case "$host_cpu" in
12143
lt_prog_compiler_pic_CXX='+Z'
12151
irix5* | irix6* | nonstopux*)
12152
case $cc_basename in
12154
lt_prog_compiler_wl_CXX='-Wl,'
12155
lt_prog_compiler_static_CXX='-non_shared'
12156
# CC pic flag -KPIC is the default.
12163
case $cc_basename in
12166
lt_prog_compiler_wl_CXX='--backend -Wl,'
12167
lt_prog_compiler_pic_CXX='-fPIC'
12171
lt_prog_compiler_wl_CXX='-Wl,'
12172
lt_prog_compiler_pic_CXX='-KPIC'
12173
lt_prog_compiler_static_CXX='-static'
12177
# Make sure the PIC flag is empty. It appears that all Alpha
12178
# Linux and Compaq Tru64 Unix objects are PIC.
12179
lt_prog_compiler_pic_CXX=
12180
lt_prog_compiler_static_CXX='-non_shared'
12191
case $cc_basename in
12193
lt_prog_compiler_pic_CXX='-W c,exportall'
12199
netbsd* | knetbsd*-gnu)
12201
osf3* | osf4* | osf5*)
12202
case $cc_basename in
12204
lt_prog_compiler_wl_CXX='--backend -Wl,'
12207
# Rational C++ 2.4.1
12208
lt_prog_compiler_pic_CXX='-pic'
12211
# Digital/Compaq C++
12212
lt_prog_compiler_wl_CXX='-Wl,'
12213
# Make sure the PIC flag is empty. It appears that all Alpha
12214
# Linux and Compaq Tru64 Unix objects are PIC.
12215
lt_prog_compiler_pic_CXX=
12216
lt_prog_compiler_static_CXX='-non_shared'
12225
case $cc_basename in
12227
lt_prog_compiler_pic_CXX='-fPIC'
12234
case $cc_basename in
12236
# Sun C++ 4.2, 5.x and Centerline C++
12237
lt_prog_compiler_pic_CXX='-KPIC'
12238
lt_prog_compiler_static_CXX='-Bstatic'
12239
lt_prog_compiler_wl_CXX='-Qoption ld '
12242
# Green Hills C++ Compiler
12243
lt_prog_compiler_pic_CXX='-PIC'
12250
case $cc_basename in
12253
lt_prog_compiler_pic_CXX='-pic'
12254
lt_prog_compiler_static_CXX='-Bstatic'
12258
lt_prog_compiler_pic_CXX='-pic'
12265
case $cc_basename in
12267
# NonStop-UX NCC 3.20
12268
lt_prog_compiler_pic_CXX='-KPIC'
12279
lt_prog_compiler_can_build_shared_CXX=no
12284
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12285
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12288
# Check to make sure the PIC flag actually works.
12290
if test -n "$lt_prog_compiler_pic_CXX"; then
12292
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12293
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12294
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12295
echo $ECHO_N "(cached) $ECHO_C" >&6
12297
lt_prog_compiler_pic_works_CXX=no
12298
ac_outfile=conftest.$ac_objext
12299
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12300
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12301
# Insert the option either (1) after the last *FLAGS variable, or
12302
# (2) before a word containing "conftest.", or (3) at the end.
12303
# Note that $ac_compile itself does not contain backslashes and begins
12304
# with a dollar sign (not a hyphen), so the echo should work correctly.
12305
# The option is referenced via a variable to avoid confusing sed.
12306
lt_compile=`echo "$ac_compile" | $SED \
12307
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12308
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12309
-e 's:$: $lt_compiler_flag:'`
12310
(eval echo "\"\$as_me:12310: $lt_compile\"" >&5)
12311
(eval "$lt_compile" 2>conftest.err)
12313
cat conftest.err >&5
12314
echo "$as_me:12314: \$? = $ac_status" >&5
12315
if (exit $ac_status) && test -s "$ac_outfile"; then
12316
# The compiler can only warn and ignore the option if not recognized
12317
# So say no if there are warnings
12318
if test ! -s conftest.err; then
12319
lt_prog_compiler_pic_works_CXX=yes
12325
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12326
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12328
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12329
case $lt_prog_compiler_pic_CXX in
12331
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12334
lt_prog_compiler_pic_CXX=
12335
lt_prog_compiler_can_build_shared_CXX=no
12340
# For platforms which do not support PIC, -DPIC is meaningless:
12342
lt_prog_compiler_pic_CXX=
12345
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12349
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12350
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12351
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12352
echo $ECHO_N "(cached) $ECHO_C" >&6
12354
lt_cv_prog_compiler_c_o_CXX=no
12355
$rm -r conftest 2>/dev/null
12359
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12361
lt_compiler_flag="-o out/conftest2.$ac_objext"
12362
# Insert the option either (1) after the last *FLAGS variable, or
12363
# (2) before a word containing "conftest.", or (3) at the end.
12364
# Note that $ac_compile itself does not contain backslashes and begins
12365
# with a dollar sign (not a hyphen), so the echo should work correctly.
12366
lt_compile=`echo "$ac_compile" | $SED \
12367
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12368
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12369
-e 's:$: $lt_compiler_flag:'`
12370
(eval echo "\"\$as_me:12370: $lt_compile\"" >&5)
12371
(eval "$lt_compile" 2>out/conftest.err)
12373
cat out/conftest.err >&5
12374
echo "$as_me:12374: \$? = $ac_status" >&5
12375
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12377
# The compiler can only warn and ignore the option if not recognized
12378
# So say no if there are warnings
12379
if test ! -s out/conftest.err; then
12380
lt_cv_prog_compiler_c_o_CXX=yes
12385
# SGI C++ compiler will create directory out/ii_files/ for
12386
# template instantiation
12387
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12388
$rm out/* && rmdir out
12394
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12395
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12398
hard_links="nottested"
12399
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12400
# do not overwrite the value of need_locks provided by the user
12401
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12402
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12405
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12407
ln conftest.a conftest.b 2>&5 || hard_links=no
12408
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12409
echo "$as_me:$LINENO: result: $hard_links" >&5
12410
echo "${ECHO_T}$hard_links" >&6
12411
if test "$hard_links" = no; then
12412
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12413
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12420
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12421
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12423
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12426
# If we're using GNU nm, then we don't want the "-C" option.
12427
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12428
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12429
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'
12431
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'
12435
export_symbols_cmds_CXX="$ltdll_cmds"
12438
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12441
link_all_deplibs_CXX=no
12444
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12448
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12449
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12450
test "$ld_shlibs_CXX" = no && can_build_shared=no
12452
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12453
if test "$GCC" = yes; then
12454
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12458
# Do we need to explicitly link libc?
12460
case "x$archive_cmds_need_lc_CXX" in
12462
# Assume -lc should be added
12463
archive_cmds_need_lc_CXX=yes
12465
if test "$enable_shared" = yes && test "$GCC" = yes; then
12466
case $archive_cmds_CXX in
12468
# FIXME: we may have to deal with multi-command sequences.
12471
# Test whether the compiler implicitly links with -lc since on some
12472
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12473
# to ld, don't add -lc before -lgcc.
12474
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12475
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12477
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480
(eval $ac_compile) 2>&5
12482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483
(exit $ac_status); } 2>conftest.err; then
12486
libobjs=conftest.$ac_objext
12488
wl=$lt_prog_compiler_wl_CXX
12494
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12495
allow_undefined_flag_CXX=
12496
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12497
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500
(exit $ac_status); }
12502
archive_cmds_need_lc_CXX=no
12504
archive_cmds_need_lc_CXX=yes
12506
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12508
cat conftest.err 1>&5
12511
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12512
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12519
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12520
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12521
library_names_spec=
12522
libname_spec='lib$name'
12526
postuninstall_cmds=
12530
shlibpath_overrides_runpath=unknown
12532
dynamic_linker="$host_os ld.so"
12533
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12534
if test "$GCC" = yes; then
12535
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12536
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12537
# if the path contains ";" then we assume it to be the separator
12538
# otherwise default to the standard path separator (i.e. ":") - it is
12539
# assumed that no part of a normal pathname contains ";" but that should
12540
# okay in the real world where ";" in dirpaths is itself problematic.
12541
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12543
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12546
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12548
need_lib_prefix=unknown
12549
hardcode_into_libs=no
12551
# when you set need_version to no, make sure it does not cause -set_version
12552
# flags to be left without arguments
12553
need_version=unknown
12558
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12559
shlibpath_var=LIBPATH
12561
# AIX 3 has no versioning support, so we append a major version to the name.
12562
soname_spec='${libname}${release}${shared_ext}$major'
12569
hardcode_into_libs=yes
12570
if test "$host_cpu" = ia64; then
12571
# AIX 5 supports IA64
12572
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12573
shlibpath_var=LD_LIBRARY_PATH
12575
# With GCC up to 2.95.x, collect2 would create an import file
12576
# for dependence libraries. The import file would start with
12577
# the line `#! .'. This would cause the generated library to
12578
# depend on `.', always an invalid library. This was fixed in
12579
# development snapshots of GCC prior to 3.0.
12581
aix4 | aix4.[01] | aix4.[01].*)
12582
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12584
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12587
can_build_shared=no
12591
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12592
# soname into executable. Probably we can add versioning support to
12593
# collect2, so additional links can be useful in future.
12594
if test "$aix_use_runtimelinking" = yes; then
12595
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12596
# instead of lib<name>.a to let people know that these are not
12597
# typical AIX shared libraries.
12598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600
# We preserve .a as extension for shared libraries through AIX4.2
12601
# and later when we are not doing run time linking.
12602
library_names_spec='${libname}${release}.a $libname.a'
12603
soname_spec='${libname}${release}${shared_ext}$major'
12605
shlibpath_var=LIBPATH
12610
library_names_spec='$libname.ixlibrary $libname.a'
12611
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12612
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'
12616
library_names_spec='${libname}${shared_ext}'
12617
dynamic_linker="$host_os ld.so"
12618
shlibpath_var=LIBRARY_PATH
12624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625
soname_spec='${libname}${release}${shared_ext}$major'
12626
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12627
shlibpath_var=LD_LIBRARY_PATH
12628
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12629
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12630
# the default ld.so.conf also contains /usr/contrib/lib and
12631
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12632
# libtool to hard-code these into programs
12635
cygwin* | mingw* | pw32*)
12636
version_type=windows
12641
case $GCC,$host_os in
12642
yes,cygwin* | yes,mingw* | yes,pw32*)
12643
library_names_spec='$libname.dll.a'
12644
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12645
postinstall_cmds='base_file=`basename \${file}`~
12646
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12647
dldir=$destdir/`dirname \$dlpath`~
12648
test -d \$dldir || mkdir -p \$dldir~
12649
$install_prog $dir/$dlname \$dldir/$dlname'
12650
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12651
dlpath=$dir/\$dldll~
12653
shlibpath_overrides_runpath=yes
12657
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12658
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12659
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12662
# MinGW DLLs use traditional 'lib' prefix
12663
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12665
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12666
# It is most probably a Windows format PATH printed by
12667
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12668
# path with ; separators, and with drive letters. We can handle the
12669
# drive letters (cygwin fileutils understands them), so leave them,
12670
# especially as we might pass files found there to a mingw objdump,
12671
# which wouldn't understand a cygwinified path. Ahh.
12672
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12674
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12678
# pw32 DLLs use 'pw' prefix rather than 'lib'
12679
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12685
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12688
dynamic_linker='Win32 ld.exe'
12689
# FIXME: first we should search . and the directory the executable is in
12693
darwin* | rhapsody*)
12694
dynamic_linker="$host_os dyld"
12695
version_type=darwin
12698
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12699
soname_spec='${libname}${release}${major}$shared_ext'
12700
shlibpath_overrides_runpath=yes
12701
shlibpath_var=DYLD_LIBRARY_PATH
12702
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12703
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12704
if test "$GCC" = yes; then
12705
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"`
12707
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12709
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12717
soname_spec='${libname}${release}${shared_ext}$major'
12718
shlibpath_var=LD_LIBRARY_PATH
12729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12730
soname_spec='${libname}${release}${shared_ext}$major'
12731
shlibpath_var=LD_LIBRARY_PATH
12732
shlibpath_overrides_runpath=no
12733
hardcode_into_libs=yes
12734
dynamic_linker='GNU ld.so'
12738
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12739
version_type=freebsd-$objformat
12740
case $version_type in
12742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12747
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12751
shlibpath_var=LD_LIBRARY_PATH
12754
shlibpath_overrides_runpath=yes
12756
freebsd3.01* | freebsdelf3.01*)
12757
shlibpath_overrides_runpath=yes
12758
hardcode_into_libs=yes
12761
shlibpath_overrides_runpath=no
12762
hardcode_into_libs=yes
12771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12772
soname_spec='${libname}${release}${shared_ext}$major'
12773
shlibpath_var=LD_LIBRARY_PATH
12774
hardcode_into_libs=yes
12777
hpux9* | hpux10* | hpux11*)
12778
# Give a soname corresponding to the major version so that dld.sl refuses to
12779
# link against other versions.
12783
case "$host_cpu" in
12786
hardcode_into_libs=yes
12787
dynamic_linker="$host_os dld.so"
12788
shlibpath_var=LD_LIBRARY_PATH
12789
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791
soname_spec='${libname}${release}${shared_ext}$major'
12792
if test "X$HPUX_IA64_MODE" = X32; then
12793
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12795
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12797
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12801
hardcode_into_libs=yes
12802
dynamic_linker="$host_os dld.sl"
12803
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12804
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806
soname_spec='${libname}${release}${shared_ext}$major'
12807
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12808
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12812
dynamic_linker="$host_os dld.sl"
12813
shlibpath_var=SHLIB_PATH
12814
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816
soname_spec='${libname}${release}${shared_ext}$major'
12819
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12820
postinstall_cmds='chmod 555 $lib'
12823
irix5* | irix6* | nonstopux*)
12825
nonstopux*) version_type=nonstopux ;;
12827
if test "$lt_cv_prog_gnu_ld" = yes; then
12835
soname_spec='${libname}${release}${shared_ext}$major'
12836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12838
irix5* | nonstopux*)
12839
libsuff= shlibsuff=
12842
case $LD in # libtool.m4 will add one of these switches to LD
12843
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12844
libsuff= shlibsuff= libmagic=32-bit;;
12845
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12846
libsuff=32 shlibsuff=N32 libmagic=N32;;
12847
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12848
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12849
*) libsuff= shlibsuff= libmagic=never-match;;
12853
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12854
shlibpath_overrides_runpath=no
12855
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12856
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12857
hardcode_into_libs=yes
12860
# No shared lib support for Linux oldld, aout, or coff.
12861
linux*oldld* | linux*aout* | linux*coff*)
12865
# This must be Linux ELF.
12870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871
soname_spec='${libname}${release}${shared_ext}$major'
12872
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12873
shlibpath_var=LD_LIBRARY_PATH
12874
shlibpath_overrides_runpath=no
12875
# This implies no fast_install, which is unacceptable.
12876
# Some rework will be needed to allow for fast_install
12877
# before this can be enabled.
12878
hardcode_into_libs=yes
12880
# Append ld.so.conf contents to the search path
12881
if test -f /etc/ld.so.conf; then
12882
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12883
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12886
# We used to test for /lib/ld.so.1 and disable shared libraries on
12887
# powerpc, because MkLinux only supported shared libraries with the
12888
# GNU dynamic linker. Since this was broken with cross compilers,
12889
# most powerpc-linux boxes support dynamic linking these days and
12890
# people can always --disable-shared, the test was removed, and we
12891
# assume the GNU/Linux dynamic linker is in use.
12892
dynamic_linker='GNU/Linux ld.so'
12899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12900
soname_spec='${libname}${release}${shared_ext}$major'
12901
shlibpath_var=LD_LIBRARY_PATH
12902
shlibpath_overrides_runpath=no
12903
hardcode_into_libs=yes
12904
dynamic_linker='GNU ld.so'
12911
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12913
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12914
dynamic_linker='NetBSD (a.out) ld.so'
12916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12917
soname_spec='${libname}${release}${shared_ext}$major'
12918
dynamic_linker='NetBSD ld.elf_so'
12920
shlibpath_var=LD_LIBRARY_PATH
12921
shlibpath_overrides_runpath=yes
12922
hardcode_into_libs=yes
12927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928
shlibpath_var=LD_LIBRARY_PATH
12929
shlibpath_overrides_runpath=yes
12936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12937
soname_spec='${libname}${release}${shared_ext}$major'
12938
shlibpath_var=LD_LIBRARY_PATH
12939
shlibpath_overrides_runpath=yes
12946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12948
shlibpath_var=LD_LIBRARY_PATH
12949
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951
openbsd2.[89] | openbsd2.[89].*)
12952
shlibpath_overrides_runpath=no
12955
shlibpath_overrides_runpath=yes
12959
shlibpath_overrides_runpath=yes
12964
libname_spec='$name'
12967
library_names_spec='$libname${shared_ext} $libname.a'
12968
dynamic_linker='OS/2 ld.exe'
12969
shlibpath_var=LIBPATH
12972
osf3* | osf4* | osf5*)
12976
soname_spec='${libname}${release}${shared_ext}$major'
12977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978
shlibpath_var=LD_LIBRARY_PATH
12979
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12980
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12985
soname_spec='${libname}${release}${shared_ext}$major'
12986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987
shlibpath_var=LD_LIBRARY_PATH
12994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995
soname_spec='${libname}${release}${shared_ext}$major'
12996
shlibpath_var=LD_LIBRARY_PATH
12997
shlibpath_overrides_runpath=yes
12998
hardcode_into_libs=yes
12999
# ldd complains unless libraries are executable
13000
postinstall_cmds='chmod +x $lib'
13005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13006
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13007
shlibpath_var=LD_LIBRARY_PATH
13008
shlibpath_overrides_runpath=yes
13009
if test "$with_gnu_ld" = yes; then
13015
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13018
soname_spec='${libname}${release}${shared_ext}$major'
13019
shlibpath_var=LD_LIBRARY_PATH
13020
case $host_vendor in
13022
shlibpath_overrides_runpath=no
13024
export_dynamic_flag_spec='${wl}-Blargedynsym'
13025
runpath_var=LD_RUN_PATH
13033
shlibpath_overrides_runpath=no
13034
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13040
if test -d /usr/nec ;then
13042
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13043
soname_spec='$libname${shared_ext}.$major'
13044
shlibpath_var=LD_LIBRARY_PATH
13050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13051
soname_spec='${libname}${release}${shared_ext}$major'
13052
shlibpath_var=LD_LIBRARY_PATH
13059
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13060
echo "${ECHO_T}$dynamic_linker" >&6
13061
test "$dynamic_linker" = no && can_build_shared=no
13063
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13064
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13065
hardcode_action_CXX=
13066
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13067
test -n "$runpath_var CXX" || \
13068
test "X$hardcode_automatic_CXX"="Xyes" ; then
13070
# We can hardcode non-existant directories.
13071
if test "$hardcode_direct_CXX" != no &&
13072
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13073
# have to relink, otherwise we might link with an installed library
13074
# when we should be linking with a yet-to-be-installed one
13075
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13076
test "$hardcode_minus_L_CXX" != no; then
13077
# Linking always hardcodes the temporary library directory.
13078
hardcode_action_CXX=relink
13080
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13081
hardcode_action_CXX=immediate
13084
# We cannot hardcode anything, or else we can only hardcode existing
13086
hardcode_action_CXX=unsupported
13088
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13089
echo "${ECHO_T}$hardcode_action_CXX" >&6
13091
if test "$hardcode_action_CXX" = relink; then
13092
# Fast installation is not supported
13093
enable_fast_install=no
13094
elif test "$shlibpath_overrides_runpath" = yes ||
13095
test "$enable_shared" = no; then
13096
# Fast installation is not necessary
13097
enable_fast_install=needless
13102
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13103
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13104
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13105
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13106
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13107
echo "$as_me:$LINENO: result: yes" >&5
13108
echo "${ECHO_T}yes" >&6
13110
# FIXME - insert some real tests, host_os isn't really good enough
13113
if test -n "$STRIP" ; then
13114
striplib="$STRIP -x"
13115
echo "$as_me:$LINENO: result: yes" >&5
13116
echo "${ECHO_T}yes" >&6
13118
echo "$as_me:$LINENO: result: no" >&5
13119
echo "${ECHO_T}no" >&6
13123
echo "$as_me:$LINENO: result: no" >&5
13124
echo "${ECHO_T}no" >&6
13129
if test "x$enable_dlopen" != xyes; then
13130
enable_dlopen=unknown
13131
enable_dlopen_self=unknown
13132
enable_dlopen_self_static=unknown
13139
lt_cv_dlopen="load_add_on"
13141
lt_cv_dlopen_self=yes
13145
lt_cv_dlopen="LoadLibrary"
13150
lt_cv_dlopen="dlopen"
13155
# if libdl is installed we need to link against it
13156
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13159
echo $ECHO_N "(cached) $ECHO_C" >&6
13161
ac_check_lib_save_LIBS=$LIBS
13163
cat >conftest.$ac_ext <<_ACEOF
13166
cat confdefs.h >>conftest.$ac_ext
13167
cat >>conftest.$ac_ext <<_ACEOF
13168
/* end confdefs.h. */
13170
/* Override any gcc2 internal prototype to avoid an error. */
13174
/* We use char because int might match the return type of a gcc2
13175
builtin and then its argument prototype would still apply. */
13185
rm -f conftest.$ac_objext conftest$ac_exeext
13186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13187
(eval $ac_link) 2>conftest.er1
13189
grep -v '^ *+' conftest.er1 >conftest.err
13191
cat conftest.err >&5
13192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193
(exit $ac_status); } &&
13194
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196
(eval $ac_try) 2>&5
13198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199
(exit $ac_status); }; } &&
13200
{ ac_try='test -s conftest$ac_exeext'
13201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202
(eval $ac_try) 2>&5
13204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205
(exit $ac_status); }; }; then
13206
ac_cv_lib_dl_dlopen=yes
13208
echo "$as_me: failed program was:" >&5
13209
sed 's/^/| /' conftest.$ac_ext >&5
13211
ac_cv_lib_dl_dlopen=no
13213
rm -f conftest.err conftest.$ac_objext \
13214
conftest$ac_exeext conftest.$ac_ext
13215
LIBS=$ac_check_lib_save_LIBS
13217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13219
if test $ac_cv_lib_dl_dlopen = yes; then
13220
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13223
lt_cv_dlopen="dyld"
13225
lt_cv_dlopen_self=yes
13232
echo "$as_me:$LINENO: checking for shl_load" >&5
13233
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13234
if test "${ac_cv_func_shl_load+set}" = set; then
13235
echo $ECHO_N "(cached) $ECHO_C" >&6
13237
cat >conftest.$ac_ext <<_ACEOF
13240
cat confdefs.h >>conftest.$ac_ext
13241
cat >>conftest.$ac_ext <<_ACEOF
13242
/* end confdefs.h. */
13243
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13244
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13245
#define shl_load innocuous_shl_load
13247
/* System header to define __stub macros and hopefully few prototypes,
13248
which can conflict with char shl_load (); below.
13249
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13250
<limits.h> exists even on freestanding compilers. */
13253
# include <limits.h>
13255
# include <assert.h>
13260
/* Override any gcc2 internal prototype to avoid an error. */
13265
/* We use char because int might match the return type of a gcc2
13266
builtin and then its argument prototype would still apply. */
13268
/* The GNU C library defines this for functions which it implements
13269
to always fail with ENOSYS. Some functions are actually named
13270
something starting with __ and the normal name is an alias. */
13271
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13274
char (*f) () = shl_load;
13283
return f != shl_load;
13288
rm -f conftest.$ac_objext conftest$ac_exeext
13289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13290
(eval $ac_link) 2>conftest.er1
13292
grep -v '^ *+' conftest.er1 >conftest.err
13294
cat conftest.err >&5
13295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296
(exit $ac_status); } &&
13297
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299
(eval $ac_try) 2>&5
13301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302
(exit $ac_status); }; } &&
13303
{ ac_try='test -s conftest$ac_exeext'
13304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305
(eval $ac_try) 2>&5
13307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308
(exit $ac_status); }; }; then
13309
ac_cv_func_shl_load=yes
13311
echo "$as_me: failed program was:" >&5
13312
sed 's/^/| /' conftest.$ac_ext >&5
13314
ac_cv_func_shl_load=no
13316
rm -f conftest.err conftest.$ac_objext \
13317
conftest$ac_exeext conftest.$ac_ext
13319
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13320
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13321
if test $ac_cv_func_shl_load = yes; then
13322
lt_cv_dlopen="shl_load"
13324
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13325
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13326
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13327
echo $ECHO_N "(cached) $ECHO_C" >&6
13329
ac_check_lib_save_LIBS=$LIBS
13331
cat >conftest.$ac_ext <<_ACEOF
13334
cat confdefs.h >>conftest.$ac_ext
13335
cat >>conftest.$ac_ext <<_ACEOF
13336
/* end confdefs.h. */
13338
/* Override any gcc2 internal prototype to avoid an error. */
13342
/* We use char because int might match the return type of a gcc2
13343
builtin and then its argument prototype would still apply. */
13353
rm -f conftest.$ac_objext conftest$ac_exeext
13354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13355
(eval $ac_link) 2>conftest.er1
13357
grep -v '^ *+' conftest.er1 >conftest.err
13359
cat conftest.err >&5
13360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361
(exit $ac_status); } &&
13362
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364
(eval $ac_try) 2>&5
13366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367
(exit $ac_status); }; } &&
13368
{ ac_try='test -s conftest$ac_exeext'
13369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370
(eval $ac_try) 2>&5
13372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373
(exit $ac_status); }; }; then
13374
ac_cv_lib_dld_shl_load=yes
13376
echo "$as_me: failed program was:" >&5
13377
sed 's/^/| /' conftest.$ac_ext >&5
13379
ac_cv_lib_dld_shl_load=no
13381
rm -f conftest.err conftest.$ac_objext \
13382
conftest$ac_exeext conftest.$ac_ext
13383
LIBS=$ac_check_lib_save_LIBS
13385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13386
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13387
if test $ac_cv_lib_dld_shl_load = yes; then
13388
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13390
echo "$as_me:$LINENO: checking for dlopen" >&5
13391
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13392
if test "${ac_cv_func_dlopen+set}" = set; then
13393
echo $ECHO_N "(cached) $ECHO_C" >&6
13395
cat >conftest.$ac_ext <<_ACEOF
13398
cat confdefs.h >>conftest.$ac_ext
13399
cat >>conftest.$ac_ext <<_ACEOF
13400
/* end confdefs.h. */
13401
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13402
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13403
#define dlopen innocuous_dlopen
13405
/* System header to define __stub macros and hopefully few prototypes,
13406
which can conflict with char dlopen (); below.
13407
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408
<limits.h> exists even on freestanding compilers. */
13411
# include <limits.h>
13413
# include <assert.h>
13418
/* Override any gcc2 internal prototype to avoid an error. */
13423
/* We use char because int might match the return type of a gcc2
13424
builtin and then its argument prototype would still apply. */
13426
/* The GNU C library defines this for functions which it implements
13427
to always fail with ENOSYS. Some functions are actually named
13428
something starting with __ and the normal name is an alias. */
13429
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13432
char (*f) () = dlopen;
13441
return f != dlopen;
13446
rm -f conftest.$ac_objext conftest$ac_exeext
13447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448
(eval $ac_link) 2>conftest.er1
13450
grep -v '^ *+' conftest.er1 >conftest.err
13452
cat conftest.err >&5
13453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454
(exit $ac_status); } &&
13455
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457
(eval $ac_try) 2>&5
13459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460
(exit $ac_status); }; } &&
13461
{ ac_try='test -s conftest$ac_exeext'
13462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463
(eval $ac_try) 2>&5
13465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466
(exit $ac_status); }; }; then
13467
ac_cv_func_dlopen=yes
13469
echo "$as_me: failed program was:" >&5
13470
sed 's/^/| /' conftest.$ac_ext >&5
13472
ac_cv_func_dlopen=no
13474
rm -f conftest.err conftest.$ac_objext \
13475
conftest$ac_exeext conftest.$ac_ext
13477
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13478
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13479
if test $ac_cv_func_dlopen = yes; then
13480
lt_cv_dlopen="dlopen"
13482
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13483
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13484
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13485
echo $ECHO_N "(cached) $ECHO_C" >&6
13487
ac_check_lib_save_LIBS=$LIBS
13489
cat >conftest.$ac_ext <<_ACEOF
13492
cat confdefs.h >>conftest.$ac_ext
13493
cat >>conftest.$ac_ext <<_ACEOF
13494
/* end confdefs.h. */
13496
/* Override any gcc2 internal prototype to avoid an error. */
13500
/* We use char because int might match the return type of a gcc2
13501
builtin and then its argument prototype would still apply. */
13511
rm -f conftest.$ac_objext conftest$ac_exeext
13512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13513
(eval $ac_link) 2>conftest.er1
13515
grep -v '^ *+' conftest.er1 >conftest.err
13517
cat conftest.err >&5
13518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519
(exit $ac_status); } &&
13520
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522
(eval $ac_try) 2>&5
13524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
(exit $ac_status); }; } &&
13526
{ ac_try='test -s conftest$ac_exeext'
13527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528
(eval $ac_try) 2>&5
13530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531
(exit $ac_status); }; }; then
13532
ac_cv_lib_dl_dlopen=yes
13534
echo "$as_me: failed program was:" >&5
13535
sed 's/^/| /' conftest.$ac_ext >&5
13537
ac_cv_lib_dl_dlopen=no
13539
rm -f conftest.err conftest.$ac_objext \
13540
conftest$ac_exeext conftest.$ac_ext
13541
LIBS=$ac_check_lib_save_LIBS
13543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13545
if test $ac_cv_lib_dl_dlopen = yes; then
13546
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13548
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13549
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13550
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13551
echo $ECHO_N "(cached) $ECHO_C" >&6
13553
ac_check_lib_save_LIBS=$LIBS
13554
LIBS="-lsvld $LIBS"
13555
cat >conftest.$ac_ext <<_ACEOF
13558
cat confdefs.h >>conftest.$ac_ext
13559
cat >>conftest.$ac_ext <<_ACEOF
13560
/* end confdefs.h. */
13562
/* Override any gcc2 internal prototype to avoid an error. */
13566
/* We use char because int might match the return type of a gcc2
13567
builtin and then its argument prototype would still apply. */
13577
rm -f conftest.$ac_objext conftest$ac_exeext
13578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579
(eval $ac_link) 2>conftest.er1
13581
grep -v '^ *+' conftest.er1 >conftest.err
13583
cat conftest.err >&5
13584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585
(exit $ac_status); } &&
13586
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588
(eval $ac_try) 2>&5
13590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591
(exit $ac_status); }; } &&
13592
{ ac_try='test -s conftest$ac_exeext'
13593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594
(eval $ac_try) 2>&5
13596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597
(exit $ac_status); }; }; then
13598
ac_cv_lib_svld_dlopen=yes
13600
echo "$as_me: failed program was:" >&5
13601
sed 's/^/| /' conftest.$ac_ext >&5
13603
ac_cv_lib_svld_dlopen=no
13605
rm -f conftest.err conftest.$ac_objext \
13606
conftest$ac_exeext conftest.$ac_ext
13607
LIBS=$ac_check_lib_save_LIBS
13609
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13610
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13611
if test $ac_cv_lib_svld_dlopen = yes; then
13612
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13614
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13615
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13616
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13617
echo $ECHO_N "(cached) $ECHO_C" >&6
13619
ac_check_lib_save_LIBS=$LIBS
13621
cat >conftest.$ac_ext <<_ACEOF
13624
cat confdefs.h >>conftest.$ac_ext
13625
cat >>conftest.$ac_ext <<_ACEOF
13626
/* end confdefs.h. */
13628
/* Override any gcc2 internal prototype to avoid an error. */
13632
/* We use char because int might match the return type of a gcc2
13633
builtin and then its argument prototype would still apply. */
13643
rm -f conftest.$ac_objext conftest$ac_exeext
13644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645
(eval $ac_link) 2>conftest.er1
13647
grep -v '^ *+' conftest.er1 >conftest.err
13649
cat conftest.err >&5
13650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651
(exit $ac_status); } &&
13652
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654
(eval $ac_try) 2>&5
13656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657
(exit $ac_status); }; } &&
13658
{ ac_try='test -s conftest$ac_exeext'
13659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660
(eval $ac_try) 2>&5
13662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663
(exit $ac_status); }; }; then
13664
ac_cv_lib_dld_dld_link=yes
13666
echo "$as_me: failed program was:" >&5
13667
sed 's/^/| /' conftest.$ac_ext >&5
13669
ac_cv_lib_dld_dld_link=no
13671
rm -f conftest.err conftest.$ac_objext \
13672
conftest$ac_exeext conftest.$ac_ext
13673
LIBS=$ac_check_lib_save_LIBS
13675
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13676
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13677
if test $ac_cv_lib_dld_dld_link = yes; then
13678
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13699
if test "x$lt_cv_dlopen" != xno; then
13705
case $lt_cv_dlopen in
13707
save_CPPFLAGS="$CPPFLAGS"
13708
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13710
save_LDFLAGS="$LDFLAGS"
13711
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13714
LIBS="$lt_cv_dlopen_libs $LIBS"
13716
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13717
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13718
if test "${lt_cv_dlopen_self+set}" = set; then
13719
echo $ECHO_N "(cached) $ECHO_C" >&6
13721
if test "$cross_compiling" = yes; then :
13722
lt_cv_dlopen_self=cross
13724
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13725
lt_status=$lt_dlunknown
13726
cat > conftest.$ac_ext <<EOF
13727
#line 13727 "configure"
13728
#include "confdefs.h"
13737
# define LT_DLGLOBAL RTLD_GLOBAL
13740
# define LT_DLGLOBAL DL_GLOBAL
13742
# define LT_DLGLOBAL 0
13746
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13747
find out it does not work in some platform. */
13748
#ifndef LT_DLLAZY_OR_NOW
13750
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13753
# define LT_DLLAZY_OR_NOW DL_LAZY
13756
# define LT_DLLAZY_OR_NOW RTLD_NOW
13759
# define LT_DLLAZY_OR_NOW DL_NOW
13761
# define LT_DLLAZY_OR_NOW 0
13769
extern "C" void exit (int);
13772
void fnord() { int i=42;}
13775
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13776
int status = $lt_dlunknown;
13780
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13781
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13782
/* dlclose (self); */
13788
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789
(eval $ac_link) 2>&5
13791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13793
(./conftest; exit; ) 2>/dev/null
13795
case x$lt_status in
13796
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13797
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13798
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13801
# compilation failed
13802
lt_cv_dlopen_self=no
13809
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13810
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13812
if test "x$lt_cv_dlopen_self" = xyes; then
13813
LDFLAGS="$LDFLAGS $link_static_flag"
13814
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13815
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13816
if test "${lt_cv_dlopen_self_static+set}" = set; then
13817
echo $ECHO_N "(cached) $ECHO_C" >&6
13819
if test "$cross_compiling" = yes; then :
13820
lt_cv_dlopen_self_static=cross
13822
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13823
lt_status=$lt_dlunknown
13824
cat > conftest.$ac_ext <<EOF
13825
#line 13825 "configure"
13826
#include "confdefs.h"
13835
# define LT_DLGLOBAL RTLD_GLOBAL
13838
# define LT_DLGLOBAL DL_GLOBAL
13840
# define LT_DLGLOBAL 0
13844
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13845
find out it does not work in some platform. */
13846
#ifndef LT_DLLAZY_OR_NOW
13848
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13851
# define LT_DLLAZY_OR_NOW DL_LAZY
13854
# define LT_DLLAZY_OR_NOW RTLD_NOW
13857
# define LT_DLLAZY_OR_NOW DL_NOW
13859
# define LT_DLLAZY_OR_NOW 0
13867
extern "C" void exit (int);
13870
void fnord() { int i=42;}
13873
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13874
int status = $lt_dlunknown;
13878
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13879
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13880
/* dlclose (self); */
13886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887
(eval $ac_link) 2>&5
13889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13891
(./conftest; exit; ) 2>/dev/null
13893
case x$lt_status in
13894
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13895
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13896
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13899
# compilation failed
13900
lt_cv_dlopen_self_static=no
13907
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13908
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13911
CPPFLAGS="$save_CPPFLAGS"
13912
LDFLAGS="$save_LDFLAGS"
13917
case $lt_cv_dlopen_self in
13918
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13919
*) enable_dlopen_self=unknown ;;
13922
case $lt_cv_dlopen_self_static in
13923
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13924
*) enable_dlopen_self_static=unknown ;;
13929
# The else clause should only fire when bootstrapping the
13930
# libtool distribution, otherwise you forgot to ship ltmain.sh
13931
# with your package, and you will get complaints that there are
13932
# no rules to generate ltmain.sh.
13933
if test -f "$ltmain"; then
13934
# See if we are running on zsh, and set the options which allow our commands through
13935
# without removal of \ escapes.
13936
if test -n "${ZSH_VERSION+set}" ; then
13937
setopt NO_GLOB_SUBST
13939
# Now quote all the things that may contain metacharacters while being
13940
# careful not to overquote the AC_SUBSTed values. We take copies of the
13941
# variables and quote the copies for generation of the libtool script.
13942
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13944
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13945
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13946
deplibs_check_method reload_flag reload_cmds need_locks \
13947
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13948
lt_cv_sys_global_symbol_to_c_name_address \
13949
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13950
old_postinstall_cmds old_postuninstall_cmds \
13954
lt_prog_compiler_wl_CXX \
13955
lt_prog_compiler_pic_CXX \
13956
lt_prog_compiler_static_CXX \
13957
lt_prog_compiler_no_builtin_flag_CXX \
13958
export_dynamic_flag_spec_CXX \
13959
thread_safe_flag_spec_CXX \
13960
whole_archive_flag_spec_CXX \
13961
enable_shared_with_static_runtimes_CXX \
13962
old_archive_cmds_CXX \
13963
old_archive_from_new_cmds_CXX \
13964
predep_objects_CXX \
13965
postdep_objects_CXX \
13968
compiler_lib_search_path_CXX \
13970
archive_expsym_cmds_CXX \
13971
postinstall_cmds_CXX \
13972
postuninstall_cmds_CXX \
13973
old_archive_from_expsyms_cmds_CXX \
13974
allow_undefined_flag_CXX \
13975
no_undefined_flag_CXX \
13976
export_symbols_cmds_CXX \
13977
hardcode_libdir_flag_spec_CXX \
13978
hardcode_libdir_flag_spec_ld_CXX \
13979
hardcode_libdir_separator_CXX \
13980
hardcode_automatic_CXX \
13982
module_expsym_cmds_CXX \
13983
lt_cv_prog_compiler_c_o_CXX \
13984
exclude_expsyms_CXX \
13985
include_expsyms_CXX; do
13988
old_archive_cmds_CXX | \
13989
old_archive_from_new_cmds_CXX | \
13990
archive_cmds_CXX | \
13991
archive_expsym_cmds_CXX | \
13992
module_cmds_CXX | \
13993
module_expsym_cmds_CXX | \
13994
old_archive_from_expsyms_cmds_CXX | \
13995
export_symbols_cmds_CXX | \
13996
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13997
postinstall_cmds | postuninstall_cmds | \
13998
old_postinstall_cmds | old_postuninstall_cmds | \
13999
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14000
# Double-quote double-evaled strings.
14001
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14004
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14010
*'\$0 --fallback-echo"')
14011
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14017
cat <<__EOF__ >> "$cfgfile"
14018
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14020
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14022
# Shell to use when invoking shell scripts.
14025
# Whether or not to build shared libraries.
14026
build_libtool_libs=$enable_shared
14028
# Whether or not to build static libraries.
14029
build_old_libs=$enable_static
14031
# Whether or not to add -lc for building shared libraries.
14032
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14034
# Whether or not to disallow shared libs when runtime libs are static
14035
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14037
# Whether or not to optimize for fast installation.
14038
fast_install=$enable_fast_install
14041
host_alias=$host_alias
14044
# An echo program that does not interpret backslashes.
14049
AR_FLAGS=$lt_AR_FLAGS
14054
# A language-specific compiler.
14055
CC=$lt_compiler_CXX
14057
# Is the compiler the GNU C compiler?
14063
# The linker used to build libraries.
14066
# Whether we need hard or soft links.
14069
# A BSD-compatible nm program.
14072
# A symbol stripping program
14075
# Used to examine libraries when file_magic_cmd begins "file"
14076
MAGIC_CMD=$MAGIC_CMD
14078
# Used on cygwin: DLL creation program.
14081
# Used on cygwin: object dumper.
14084
# Used on cygwin: assembler.
14087
# The name of the directory that contains temporary libtool files.
14090
# How to create reloadable object files.
14091
reload_flag=$lt_reload_flag
14092
reload_cmds=$lt_reload_cmds
14094
# How to pass a linker flag through the compiler.
14095
wl=$lt_lt_prog_compiler_wl_CXX
14097
# Object file suffix (normally "o").
14098
objext="$ac_objext"
14100
# Old archive suffix (normally "a").
14103
# Shared library suffix (normally ".so").
14104
shrext_cmds='$shrext_cmds'
14106
# Executable file suffix (normally "").
14109
# Additional compiler flags for building library objects.
14110
pic_flag=$lt_lt_prog_compiler_pic_CXX
14113
# What is the maximum length of a command?
14114
max_cmd_len=$lt_cv_sys_max_cmd_len
14116
# Does compiler simultaneously support -c and -o options?
14117
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14119
# Must we lock files when doing compilation ?
14120
need_locks=$lt_need_locks
14122
# Do we need the lib prefix for modules?
14123
need_lib_prefix=$need_lib_prefix
14125
# Do we need a version for libraries?
14126
need_version=$need_version
14128
# Whether dlopen is supported.
14129
dlopen_support=$enable_dlopen
14131
# Whether dlopen of programs is supported.
14132
dlopen_self=$enable_dlopen_self
14134
# Whether dlopen of statically linked programs is supported.
14135
dlopen_self_static=$enable_dlopen_self_static
14137
# Compiler flag to prevent dynamic linking.
14138
link_static_flag=$lt_lt_prog_compiler_static_CXX
14140
# Compiler flag to turn off builtin functions.
14141
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14143
# Compiler flag to allow reflexive dlopens.
14144
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14146
# Compiler flag to generate shared objects directly from archives.
14147
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14149
# Compiler flag to generate thread-safe objects.
14150
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14152
# Library versioning type.
14153
version_type=$version_type
14155
# Format of library name prefix.
14156
libname_spec=$lt_libname_spec
14158
# List of archive names. First name is the real one, the rest are links.
14159
# The last name is the one that the linker finds with -lNAME.
14160
library_names_spec=$lt_library_names_spec
14162
# The coded name of the library, if different from the real name.
14163
soname_spec=$lt_soname_spec
14165
# Commands used to build and install an old-style archive.
14167
old_archive_cmds=$lt_old_archive_cmds_CXX
14168
old_postinstall_cmds=$lt_old_postinstall_cmds
14169
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14171
# Create an old-style archive from a shared archive.
14172
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14174
# Create a temporary old-style archive to link instead of a shared archive.
14175
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14177
# Commands used to build and install a shared archive.
14178
archive_cmds=$lt_archive_cmds_CXX
14179
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14180
postinstall_cmds=$lt_postinstall_cmds
14181
postuninstall_cmds=$lt_postuninstall_cmds
14183
# Commands used to build a loadable module (assumed same as above if empty)
14184
module_cmds=$lt_module_cmds_CXX
14185
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14187
# Commands to strip libraries.
14188
old_striplib=$lt_old_striplib
14189
striplib=$lt_striplib
14191
# Dependencies to place before the objects being linked to create a
14193
predep_objects=$lt_predep_objects_CXX
14195
# Dependencies to place after the objects being linked to create a
14197
postdep_objects=$lt_postdep_objects_CXX
14199
# Dependencies to place before the objects being linked to create a
14201
predeps=$lt_predeps_CXX
14203
# Dependencies to place after the objects being linked to create a
14205
postdeps=$lt_postdeps_CXX
14207
# The library search path used internally by the compiler when linking
14208
# a shared library.
14209
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14211
# Method to check whether dependent libraries are shared objects.
14212
deplibs_check_method=$lt_deplibs_check_method
14214
# Command to use when deplibs_check_method == file_magic.
14215
file_magic_cmd=$lt_file_magic_cmd
14217
# Flag that allows shared libraries with undefined symbols to be built.
14218
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14220
# Flag that forces no undefined symbols.
14221
no_undefined_flag=$lt_no_undefined_flag_CXX
14223
# Commands used to finish a libtool library installation in a directory.
14224
finish_cmds=$lt_finish_cmds
14226
# Same as above, but a single script fragment to be evaled but not shown.
14227
finish_eval=$lt_finish_eval
14229
# Take the output of nm and produce a listing of raw symbols and C names.
14230
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14232
# Transform the output of nm in a proper C declaration
14233
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14235
# Transform the output of nm in a C name address pair
14236
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14238
# This is the shared library runtime path variable.
14239
runpath_var=$runpath_var
14241
# This is the shared library path variable.
14242
shlibpath_var=$shlibpath_var
14244
# Is shlibpath searched before the hard-coded library search path?
14245
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14247
# How to hardcode a shared library path into an executable.
14248
hardcode_action=$hardcode_action_CXX
14250
# Whether we should hardcode library paths into libraries.
14251
hardcode_into_libs=$hardcode_into_libs
14253
# Flag to hardcode \$libdir into a binary during linking.
14254
# This must work even if \$libdir does not exist.
14255
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14257
# If ld is used when linking, flag to hardcode \$libdir into
14258
# a binary during linking. This must work even if \$libdir does
14260
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14262
# Whether we need a single -rpath flag with a separated argument.
14263
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14265
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14266
# resulting binary.
14267
hardcode_direct=$hardcode_direct_CXX
14269
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14270
# resulting binary.
14271
hardcode_minus_L=$hardcode_minus_L_CXX
14273
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14274
# the resulting binary.
14275
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14277
# Set to yes if building a shared library automatically hardcodes DIR into the library
14278
# and all subsequent libraries and executables linked against it.
14279
hardcode_automatic=$hardcode_automatic_CXX
14281
# Variables whose values should be saved in libtool wrapper scripts and
14282
# restored at relink time.
14283
variables_saved_for_relink="$variables_saved_for_relink"
14285
# Whether libtool must link a program against all its dependency libraries.
14286
link_all_deplibs=$link_all_deplibs_CXX
14288
# Compile-time system search path for libraries
14289
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14291
# Run-time system search path for libraries
14292
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14294
# Fix the shell variable \$srcfile for the compiler.
14295
fix_srcfile_path="$fix_srcfile_path_CXX"
14297
# Set to yes if exported symbols are required.
14298
always_export_symbols=$always_export_symbols_CXX
14300
# The commands to list exported symbols.
14301
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14303
# The commands to extract the exported symbol list from a shared archive.
14304
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14306
# Symbols that should not be listed in the preloaded symbols.
14307
exclude_expsyms=$lt_exclude_expsyms_CXX
14309
# Symbols that must always be exported.
14310
include_expsyms=$lt_include_expsyms_CXX
14312
# ### END LIBTOOL TAG CONFIG: $tagname
14318
# If there is no Makefile yet, we rely on a make rule to execute
14319
# `config.status --recheck' to rerun these tests and create the
14320
# libtool script then.
14321
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14322
if test -f "$ltmain_in"; then
14323
test -f Makefile && make "$ltmain"
14329
ac_cpp='$CPP $CPPFLAGS'
14330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338
with_gnu_ldcxx=$with_gnu_ld
14339
with_gnu_ld=$lt_save_with_gnu_ld
14340
lt_cv_path_LDCXX=$lt_cv_path_LD
14341
lt_cv_path_LD=$lt_save_path_LD
14342
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14343
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14351
if test -n "$F77" && test "X$F77" != "Xno"; then
14354
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14355
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14359
archive_cmds_need_lc_F77=no
14360
allow_undefined_flag_F77=
14361
always_export_symbols_F77=no
14362
archive_expsym_cmds_F77=
14363
export_dynamic_flag_spec_F77=
14364
hardcode_direct_F77=no
14365
hardcode_libdir_flag_spec_F77=
14366
hardcode_libdir_flag_spec_ld_F77=
14367
hardcode_libdir_separator_F77=
14368
hardcode_minus_L_F77=no
14369
hardcode_automatic_F77=no
14371
module_expsym_cmds_F77=
14372
link_all_deplibs_F77=unknown
14373
old_archive_cmds_F77=$old_archive_cmds
14374
no_undefined_flag_F77=
14375
whole_archive_flag_spec_F77=
14376
enable_shared_with_static_runtimes_F77=no
14378
# Source file extension for f77 test sources.
14381
# Object file extension for compiled f77 test sources.
14385
# Code to be used in simple compile tests
14386
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14388
# Code to be used in simple link tests
14389
lt_simple_link_test_code=" program t\n end\n"
14391
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14393
# If no C compiler was specified, use CC.
14396
# Allow CC to be a program name with arguments.
14400
# Allow CC to be a program name with arguments.
14405
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14407
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14408
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14409
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14410
echo "${ECHO_T}$can_build_shared" >&6
14412
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14413
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14414
test "$can_build_shared" = "no" && enable_shared=no
14416
# On AIX, shared libraries and static libraries use the same namespace, and
14417
# are all built from PIC.
14420
test "$enable_shared" = yes && enable_static=no
14421
if test -n "$RANLIB"; then
14422
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14423
postinstall_cmds='$RANLIB $lib'
14427
test "$enable_shared" = yes && enable_static=no
14430
echo "$as_me:$LINENO: result: $enable_shared" >&5
14431
echo "${ECHO_T}$enable_shared" >&6
14433
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14434
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14435
# Make sure either enable_shared or enable_static is yes.
14436
test "$enable_shared" = yes || enable_static=yes
14437
echo "$as_me:$LINENO: result: $enable_static" >&5
14438
echo "${ECHO_T}$enable_static" >&6
14440
test "$ld_shlibs_F77" = no && can_build_shared=no
14445
lt_prog_compiler_wl_F77=
14446
lt_prog_compiler_pic_F77=
14447
lt_prog_compiler_static_F77=
14449
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14450
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14452
if test "$GCC" = yes; then
14453
lt_prog_compiler_wl_F77='-Wl,'
14454
lt_prog_compiler_static_F77='-static'
14458
# All AIX code is PIC.
14459
if test "$host_cpu" = ia64; then
14460
# AIX 5 now supports IA64 processor
14461
lt_prog_compiler_static_F77='-Bstatic'
14466
# FIXME: we need at least 68020 code to build shared libraries, but
14467
# adding the `-m68020' flag to GCC prevents building anything better,
14469
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14472
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14473
# PIC is the default for these OSes.
14476
mingw* | pw32* | os2*)
14477
# This hack is so that the source file can tell whether it is being
14478
# built for inclusion in a dll (and should export symbols for example).
14479
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14482
darwin* | rhapsody*)
14483
# PIC is the default on this platform
14484
# Common symbols not allowed in MH_DYLIB files
14485
lt_prog_compiler_pic_F77='-fno-common'
14489
# Just because we use GCC doesn't mean we suddenly get shared libraries
14490
# on systems that don't support them.
14491
lt_prog_compiler_can_build_shared_F77=no
14496
if test -d /usr/nec; then
14497
lt_prog_compiler_pic_F77=-Kconform_pic
14502
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14503
# not for PA HP-UX.
14504
case "$host_cpu" in
14509
lt_prog_compiler_pic_F77='-fPIC'
14515
lt_prog_compiler_pic_F77='-fPIC'
14519
# PORTME Check for flag to pass linker flags through the system compiler.
14522
lt_prog_compiler_wl_F77='-Wl,'
14523
if test "$host_cpu" = ia64; then
14524
# AIX 5 now supports IA64 processor
14525
lt_prog_compiler_static_F77='-Bstatic'
14527
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14531
mingw* | pw32* | os2*)
14532
# This hack is so that the source file can tell whether it is being
14533
# built for inclusion in a dll (and should export symbols for example).
14534
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14537
hpux9* | hpux10* | hpux11*)
14538
lt_prog_compiler_wl_F77='-Wl,'
14539
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14540
# not for PA HP-UX.
14541
case "$host_cpu" in
14546
lt_prog_compiler_pic_F77='+Z'
14549
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14550
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14553
irix5* | irix6* | nonstopux*)
14554
lt_prog_compiler_wl_F77='-Wl,'
14555
# PIC (with -KPIC) is the default.
14556
lt_prog_compiler_static_F77='-non_shared'
14560
lt_prog_compiler_pic_F77='-KPIC'
14561
lt_prog_compiler_static_F77='-Bstatic'
14567
lt_prog_compiler_wl_F77='-Wl,'
14568
lt_prog_compiler_pic_F77='-KPIC'
14569
lt_prog_compiler_static_F77='-static'
14572
lt_prog_compiler_wl_F77='-Wl,'
14573
# All Alpha code is PIC.
14574
lt_prog_compiler_static_F77='-non_shared'
14579
osf3* | osf4* | osf5*)
14580
lt_prog_compiler_wl_F77='-Wl,'
14581
# All OSF/1 code is PIC.
14582
lt_prog_compiler_static_F77='-non_shared'
14586
lt_prog_compiler_pic_F77='-Kpic'
14587
lt_prog_compiler_static_F77='-dn'
14591
lt_prog_compiler_wl_F77='-Wl,'
14592
lt_prog_compiler_pic_F77='-KPIC'
14593
lt_prog_compiler_static_F77='-Bstatic'
14597
lt_prog_compiler_wl_F77='-Qoption ld '
14598
lt_prog_compiler_pic_F77='-PIC'
14599
lt_prog_compiler_static_F77='-Bstatic'
14602
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14603
lt_prog_compiler_wl_F77='-Wl,'
14604
lt_prog_compiler_pic_F77='-KPIC'
14605
lt_prog_compiler_static_F77='-Bstatic'
14609
if test -d /usr/nec ;then
14610
lt_prog_compiler_pic_F77='-Kconform_pic'
14611
lt_prog_compiler_static_F77='-Bstatic'
14616
lt_prog_compiler_pic_F77='-pic'
14617
lt_prog_compiler_static_F77='-Bstatic'
14621
lt_prog_compiler_can_build_shared_F77=no
14626
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14627
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14630
# Check to make sure the PIC flag actually works.
14632
if test -n "$lt_prog_compiler_pic_F77"; then
14634
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14635
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14636
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14637
echo $ECHO_N "(cached) $ECHO_C" >&6
14639
lt_prog_compiler_pic_works_F77=no
14640
ac_outfile=conftest.$ac_objext
14641
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14642
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14643
# Insert the option either (1) after the last *FLAGS variable, or
14644
# (2) before a word containing "conftest.", or (3) at the end.
14645
# Note that $ac_compile itself does not contain backslashes and begins
14646
# with a dollar sign (not a hyphen), so the echo should work correctly.
14647
# The option is referenced via a variable to avoid confusing sed.
14648
lt_compile=`echo "$ac_compile" | $SED \
14649
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14650
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14651
-e 's:$: $lt_compiler_flag:'`
14652
(eval echo "\"\$as_me:14652: $lt_compile\"" >&5)
14653
(eval "$lt_compile" 2>conftest.err)
14655
cat conftest.err >&5
14656
echo "$as_me:14656: \$? = $ac_status" >&5
14657
if (exit $ac_status) && test -s "$ac_outfile"; then
14658
# The compiler can only warn and ignore the option if not recognized
14659
# So say no if there are warnings
14660
if test ! -s conftest.err; then
14661
lt_prog_compiler_pic_works_F77=yes
14667
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14668
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14670
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14671
case $lt_prog_compiler_pic_F77 in
14673
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14676
lt_prog_compiler_pic_F77=
14677
lt_prog_compiler_can_build_shared_F77=no
14682
# For platforms which do not support PIC, -DPIC is meaningless:
14684
lt_prog_compiler_pic_F77=
14687
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14691
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14692
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14693
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14694
echo $ECHO_N "(cached) $ECHO_C" >&6
14696
lt_cv_prog_compiler_c_o_F77=no
14697
$rm -r conftest 2>/dev/null
14701
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14703
lt_compiler_flag="-o out/conftest2.$ac_objext"
14704
# Insert the option either (1) after the last *FLAGS variable, or
14705
# (2) before a word containing "conftest.", or (3) at the end.
14706
# Note that $ac_compile itself does not contain backslashes and begins
14707
# with a dollar sign (not a hyphen), so the echo should work correctly.
14708
lt_compile=`echo "$ac_compile" | $SED \
14709
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14710
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14711
-e 's:$: $lt_compiler_flag:'`
14712
(eval echo "\"\$as_me:14712: $lt_compile\"" >&5)
14713
(eval "$lt_compile" 2>out/conftest.err)
14715
cat out/conftest.err >&5
14716
echo "$as_me:14716: \$? = $ac_status" >&5
14717
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14719
# The compiler can only warn and ignore the option if not recognized
14720
# So say no if there are warnings
14721
if test ! -s out/conftest.err; then
14722
lt_cv_prog_compiler_c_o_F77=yes
14727
# SGI C++ compiler will create directory out/ii_files/ for
14728
# template instantiation
14729
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14730
$rm out/* && rmdir out
14736
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14737
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14740
hard_links="nottested"
14741
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14742
# do not overwrite the value of need_locks provided by the user
14743
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14744
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14747
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14749
ln conftest.a conftest.b 2>&5 || hard_links=no
14750
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14751
echo "$as_me:$LINENO: result: $hard_links" >&5
14752
echo "${ECHO_T}$hard_links" >&6
14753
if test "$hard_links" = no; then
14754
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14755
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14762
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14763
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14766
allow_undefined_flag_F77=
14767
enable_shared_with_static_runtimes_F77=no
14769
archive_expsym_cmds_F77=
14770
old_archive_From_new_cmds_F77=
14771
old_archive_from_expsyms_cmds_F77=
14772
export_dynamic_flag_spec_F77=
14773
whole_archive_flag_spec_F77=
14774
thread_safe_flag_spec_F77=
14775
hardcode_libdir_flag_spec_F77=
14776
hardcode_libdir_flag_spec_ld_F77=
14777
hardcode_libdir_separator_F77=
14778
hardcode_direct_F77=no
14779
hardcode_minus_L_F77=no
14780
hardcode_shlibpath_var_F77=unsupported
14781
link_all_deplibs_F77=unknown
14782
hardcode_automatic_F77=no
14784
module_expsym_cmds_F77=
14785
always_export_symbols_F77=no
14786
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14787
# include_expsyms should be a list of space-separated symbols to be *always*
14788
# included in the symbol list
14789
include_expsyms_F77=
14790
# exclude_expsyms can be an extended regexp of symbols to exclude
14791
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14792
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14793
# as well as any symbol that contains `d'.
14794
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14795
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14796
# platforms (ab)use it in PIC code, but their linkers get confused if
14797
# the symbol is explicitly referenced. Since portable code cannot
14798
# rely on this symbol name, it's probably fine to never include it in
14799
# preloaded symbol tables.
14800
extract_expsyms_cmds=
14803
cygwin* | mingw* | pw32*)
14804
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14805
# When not using gcc, we currently assume that we are using
14806
# Microsoft Visual C++.
14807
if test "$GCC" != yes; then
14817
if test "$with_gnu_ld" = yes; then
14818
# If archive_cmds runs LD, not CC, wlarc should be empty
14821
# See if GNU ld supports shared libraries.
14823
aix3* | aix4* | aix5*)
14824
# On AIX/PPC, the GNU linker is very broken
14825
if test "$host_cpu" != ia64; then
14829
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14830
*** to be unable to reliably create shared libraries on AIX.
14831
*** Therefore, libtool is disabling shared libraries support. If you
14832
*** really care for shared libraries, you may want to modify your PATH
14833
*** so that a non-GNU linker is found, and then restart.
14840
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)'
14841
hardcode_libdir_flag_spec_F77='-L$libdir'
14842
hardcode_minus_L_F77=yes
14844
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14845
# that the semantics of dynamic libraries on AmigaOS, at least up
14846
# to version 4, is to share data among multiple programs linked
14847
# with the same dynamic library. Since this doesn't match the
14848
# behavior of shared libraries on other platforms, we can't use
14854
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855
allow_undefined_flag_F77=unsupported
14856
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14857
# support --undefined. This deserves some investigation. FIXME
14858
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864
cygwin* | mingw* | pw32*)
14865
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14866
# as there is no search path for DLLs.
14867
hardcode_libdir_flag_spec_F77='-L$libdir'
14868
allow_undefined_flag_F77=unsupported
14869
always_export_symbols_F77=no
14870
enable_shared_with_static_runtimes_F77=yes
14871
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14873
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14874
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14875
# If the export-symbols file already is a .def file (1st line
14876
# is EXPORTS), use it as is; otherwise, prepend...
14877
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14878
cp $export_symbols $output_objdir/$soname.def;
14880
echo EXPORTS > $output_objdir/$soname.def;
14881
cat $export_symbols >> $output_objdir/$soname.def;
14883
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14889
netbsd* | knetbsd*-gnu)
14890
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14891
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14894
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14895
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14900
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14904
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14905
*** create shared libraries on Solaris systems. Therefore, libtool
14906
*** is disabling shared libraries support. We urge you to upgrade GNU
14907
*** binutils to release 2.9.1 or newer. Another option is to modify
14908
*** your PATH or compiler configuration so that the native linker is
14909
*** used, and then restart.
14912
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14913
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14914
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14921
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923
hardcode_direct_F77=yes
14924
hardcode_shlibpath_var_F77=no
14928
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930
archive_cmds_F77="$tmp_archive_cmds"
14931
supports_anon_versioning=no
14932
case `$LD -v 2>/dev/null` in
14933
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14934
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14935
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14936
*\ 2.11.*) ;; # other 2.11 versions
14937
*) supports_anon_versioning=yes ;;
14939
if test $supports_anon_versioning = yes; then
14940
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14941
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14942
$echo "local: *; };" >> $output_objdir/$libname.ver~
14943
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14945
archive_expsym_cmds_F77="$tmp_archive_cmds"
14947
link_all_deplibs_F77=no
14954
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14955
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14956
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14963
if test "$ld_shlibs_F77" = yes; then
14964
runpath_var=LD_RUN_PATH
14965
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14966
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14967
# ancient GNU ld didn't support --whole-archive et. al.
14968
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14969
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14971
whole_archive_flag_spec_F77=
14975
# PORTME fill in a description of your system's linker (not GNU ld)
14978
allow_undefined_flag_F77=unsupported
14979
always_export_symbols_F77=yes
14980
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'
14981
# Note: this linker hardcodes the directories in LIBPATH if there
14982
# are no directories specified by -L.
14983
hardcode_minus_L_F77=yes
14984
if test "$GCC" = yes && test -z "$link_static_flag"; then
14985
# Neither direct hardcoding nor static linking is supported with a
14987
hardcode_direct_F77=unsupported
14992
if test "$host_cpu" = ia64; then
14993
# On IA64, the linker does run time linking by default, so we don't
14994
# have to do anything special.
14995
aix_use_runtimelinking=no
14996
exp_sym_flag='-Bexport'
14999
# If we're using GNU nm, then we don't want the "-C" option.
15000
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15001
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15002
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'
15004
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'
15006
aix_use_runtimelinking=no
15008
# Test if we are trying to use run time linking or normal
15009
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15010
# need to do runtime linking.
15011
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15012
for ld_flag in $LDFLAGS; do
15013
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15014
aix_use_runtimelinking=yes
15020
exp_sym_flag='-bexport'
15021
no_entry_flag='-bnoentry'
15024
# When large executables or shared objects are built, AIX ld can
15025
# have problems creating the table of contents. If linking a library
15026
# or program results in "error TOC overflow" add -mminimal-toc to
15027
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15028
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15030
archive_cmds_F77=''
15031
hardcode_direct_F77=yes
15032
hardcode_libdir_separator_F77=':'
15033
link_all_deplibs_F77=yes
15035
if test "$GCC" = yes; then
15036
case $host_os in aix4.012|aix4.012.*)
15037
# We only want to do this on AIX 4.2 and lower, the check
15038
# below for broken collect2 doesn't work under 4.3+
15039
collect2name=`${CC} -print-prog-name=collect2`
15040
if test -f "$collect2name" && \
15041
strings "$collect2name" | grep resolve_lib_name >/dev/null
15043
# We have reworked collect2
15044
hardcode_direct_F77=yes
15046
# We have old collect2
15047
hardcode_direct_F77=unsupported
15048
# It fails to find uninstalled libraries when the uninstalled
15049
# path is not listed in the libpath. Setting hardcode_minus_L
15050
# to unsupported forces relinking
15051
hardcode_minus_L_F77=yes
15052
hardcode_libdir_flag_spec_F77='-L$libdir'
15053
hardcode_libdir_separator_F77=
15056
shared_flag='-shared'
15059
if test "$host_cpu" = ia64; then
15060
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15061
# chokes on -Wl,-G. The following line is correct:
15064
if test "$aix_use_runtimelinking" = yes; then
15065
shared_flag='${wl}-G'
15067
shared_flag='${wl}-bM:SRE'
15072
# It seems that -bexpall does not export symbols beginning with
15073
# underscore (_), so it is better to generate a list of symbols to export.
15074
always_export_symbols_F77=yes
15075
if test "$aix_use_runtimelinking" = yes; then
15076
# Warning - without using the other runtime loading flags (-brtl),
15077
# -berok will link without error, but may produce a broken library.
15078
allow_undefined_flag_F77='-berok'
15079
# Determine the default libpath from the value encoded in an empty executable.
15080
cat >conftest.$ac_ext <<_ACEOF
15085
rm -f conftest.$ac_objext conftest$ac_exeext
15086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15087
(eval $ac_link) 2>conftest.er1
15089
grep -v '^ *+' conftest.er1 >conftest.err
15091
cat conftest.err >&5
15092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093
(exit $ac_status); } &&
15094
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096
(eval $ac_try) 2>&5
15098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099
(exit $ac_status); }; } &&
15100
{ ac_try='test -s conftest$ac_exeext'
15101
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102
(eval $ac_try) 2>&5
15104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105
(exit $ac_status); }; }; then
15107
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15109
# Check for a 64-bit object if we didn't find anything.
15110
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; }
15113
echo "$as_me: failed program was:" >&5
15114
sed 's/^/| /' conftest.$ac_ext >&5
15117
rm -f conftest.err conftest.$ac_objext \
15118
conftest$ac_exeext conftest.$ac_ext
15119
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15121
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15122
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15124
if test "$host_cpu" = ia64; then
15125
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15126
allow_undefined_flag_F77="-z nodefs"
15127
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15129
# Determine the default libpath from the value encoded in an empty executable.
15130
cat >conftest.$ac_ext <<_ACEOF
15135
rm -f conftest.$ac_objext conftest$ac_exeext
15136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15137
(eval $ac_link) 2>conftest.er1
15139
grep -v '^ *+' conftest.er1 >conftest.err
15141
cat conftest.err >&5
15142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143
(exit $ac_status); } &&
15144
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146
(eval $ac_try) 2>&5
15148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149
(exit $ac_status); }; } &&
15150
{ ac_try='test -s conftest$ac_exeext'
15151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152
(eval $ac_try) 2>&5
15154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155
(exit $ac_status); }; }; then
15157
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15159
# Check for a 64-bit object if we didn't find anything.
15160
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; }
15163
echo "$as_me: failed program was:" >&5
15164
sed 's/^/| /' conftest.$ac_ext >&5
15167
rm -f conftest.err conftest.$ac_objext \
15168
conftest$ac_exeext conftest.$ac_ext
15169
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15171
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15172
# Warning - without using the other run time loading flags,
15173
# -berok will link without error, but may produce a broken library.
15174
no_undefined_flag_F77=' ${wl}-bernotok'
15175
allow_undefined_flag_F77=' ${wl}-berok'
15176
# -bexpall does not export symbols beginning with underscore (_)
15177
always_export_symbols_F77=yes
15178
# Exported symbols can be pulled into shared objects from archives
15179
whole_archive_flag_spec_F77=' '
15180
archive_cmds_need_lc_F77=yes
15181
# This is similar to how AIX traditionally builds it's shared libraries.
15182
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15188
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)'
15189
hardcode_libdir_flag_spec_F77='-L$libdir'
15190
hardcode_minus_L_F77=yes
15191
# see comment about different semantics on the GNU ld section
15196
export_dynamic_flag_spec_F77=-rdynamic
15199
cygwin* | mingw* | pw32*)
15200
# When not using gcc, we currently assume that we are using
15201
# Microsoft Visual C++.
15202
# hardcode_libdir_flag_spec is actually meaningless, as there is
15203
# no search path for DLLs.
15204
hardcode_libdir_flag_spec_F77=' '
15205
allow_undefined_flag_F77=unsupported
15206
# Tell ltmain to make .lib files, not .a files.
15208
# Tell ltmain to make .dll files, not .so files.
15210
# FIXME: Setting linknames here is a bad hack.
15211
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15212
# The linker will automatically build a .lib file if we build a DLL.
15213
old_archive_From_new_cmds_F77='true'
15214
# FIXME: Should let the user specify the lib program.
15215
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15216
fix_srcfile_path='`cygpath -w "$srcfile"`'
15217
enable_shared_with_static_runtimes_F77=yes
15220
darwin* | rhapsody*)
15221
if test "$GXX" = yes ; then
15222
archive_cmds_need_lc_F77=no
15224
rhapsody* | darwin1.[012])
15225
allow_undefined_flag_F77='-undefined suppress'
15228
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15229
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15231
case ${MACOSX_DEPLOYMENT_TARGET} in
15233
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15236
allow_undefined_flag_F77='-undefined dynamic_lookup'
15242
lt_int_apple_cc_single_mod=no
15243
output_verbose_link_cmd='echo'
15244
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15245
lt_int_apple_cc_single_mod=yes
15247
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15248
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15250
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15252
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15253
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15254
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15255
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15257
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15259
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}'
15260
hardcode_direct_F77=no
15261
hardcode_automatic_F77=yes
15262
hardcode_shlibpath_var_F77=unsupported
15263
whole_archive_flag_spec_F77='-all_load $convenience'
15264
link_all_deplibs_F77=yes
15271
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272
hardcode_libdir_flag_spec_F77='-L$libdir'
15273
hardcode_shlibpath_var_F77=no
15280
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15281
# support. Future versions do this automatically, but an explicit c++rt0.o
15282
# does not break anything, and helps significantly (at the cost of a little
15285
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15286
hardcode_libdir_flag_spec_F77='-R$libdir'
15287
hardcode_direct_F77=yes
15288
hardcode_shlibpath_var_F77=no
15291
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15293
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15294
hardcode_direct_F77=yes
15295
hardcode_minus_L_F77=yes
15296
hardcode_shlibpath_var_F77=no
15299
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15300
freebsd* | kfreebsd*-gnu)
15301
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15302
hardcode_libdir_flag_spec_F77='-R$libdir'
15303
hardcode_direct_F77=yes
15304
hardcode_shlibpath_var_F77=no
15308
if test "$GCC" = yes; then
15309
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'
15311
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'
15313
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15314
hardcode_libdir_separator_F77=:
15315
hardcode_direct_F77=yes
15317
# hardcode_minus_L: Not really in the search PATH,
15318
# but as the default location of the library.
15319
hardcode_minus_L_F77=yes
15320
export_dynamic_flag_spec_F77='${wl}-E'
15324
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15325
case "$host_cpu" in
15327
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15334
case "$host_cpu" in
15336
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15339
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15343
if test "$with_gnu_ld" = no; then
15344
case "$host_cpu" in
15346
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15347
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15348
hardcode_libdir_separator_F77=:
15349
hardcode_direct_F77=no
15350
hardcode_shlibpath_var_F77=no
15353
hardcode_libdir_flag_spec_F77='-L$libdir'
15354
hardcode_direct_F77=no
15355
hardcode_shlibpath_var_F77=no
15357
# hardcode_minus_L: Not really in the search PATH,
15358
# but as the default location of the library.
15359
hardcode_minus_L_F77=yes
15362
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15363
hardcode_libdir_separator_F77=:
15364
hardcode_direct_F77=yes
15365
export_dynamic_flag_spec_F77='${wl}-E'
15367
# hardcode_minus_L: Not really in the search PATH,
15368
# but as the default location of the library.
15369
hardcode_minus_L_F77=yes
15375
irix5* | irix6* | nonstopux*)
15376
if test "$GCC" = yes; then
15377
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'
15379
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'
15380
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15382
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15383
hardcode_libdir_separator_F77=:
15384
link_all_deplibs_F77=yes
15387
netbsd* | knetbsd*-gnu)
15388
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15389
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15391
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15393
hardcode_libdir_flag_spec_F77='-R$libdir'
15394
hardcode_direct_F77=yes
15395
hardcode_shlibpath_var_F77=no
15399
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15400
hardcode_direct_F77=yes
15401
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15402
hardcode_libdir_separator_F77=:
15403
hardcode_shlibpath_var_F77=no
15407
hardcode_direct_F77=yes
15408
hardcode_shlibpath_var_F77=no
15409
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15410
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15411
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15412
export_dynamic_flag_spec_F77='${wl}-E'
15415
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15416
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15417
hardcode_libdir_flag_spec_F77='-R$libdir'
15420
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15421
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15428
hardcode_libdir_flag_spec_F77='-L$libdir'
15429
hardcode_minus_L_F77=yes
15430
allow_undefined_flag_F77=unsupported
15431
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'
15432
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15436
if test "$GCC" = yes; then
15437
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15438
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'
15440
allow_undefined_flag_F77=' -expect_unresolved \*'
15441
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'
15443
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15444
hardcode_libdir_separator_F77=:
15447
osf4* | osf5*) # as osf3* with the addition of -msym flag
15448
if test "$GCC" = yes; then
15449
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15450
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'
15451
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15453
allow_undefined_flag_F77=' -expect_unresolved \*'
15454
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'
15455
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~
15456
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15458
# Both c and cxx compiler support -rpath directly
15459
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15461
hardcode_libdir_separator_F77=:
15465
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466
hardcode_shlibpath_var_F77=no
15467
export_dynamic_flag_spec_F77='${wl}-Bexport'
15468
runpath_var=LD_RUN_PATH
15469
hardcode_runpath_var=yes
15473
no_undefined_flag_F77=' -z text'
15474
if test "$GCC" = yes; then
15475
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15477
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15479
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15481
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15483
hardcode_libdir_flag_spec_F77='-R$libdir'
15484
hardcode_shlibpath_var_F77=no
15486
solaris2.[0-5] | solaris2.[0-5].*) ;;
15487
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15488
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15490
link_all_deplibs_F77=yes
15494
if test "x$host_vendor" = xsequent; then
15495
# Use $CC to link under sequent, because it throws in some extra .o
15496
# files that make .init and .fini sections work.
15497
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15499
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15501
hardcode_libdir_flag_spec_F77='-L$libdir'
15502
hardcode_direct_F77=yes
15503
hardcode_minus_L_F77=yes
15504
hardcode_shlibpath_var_F77=no
15508
case $host_vendor in
15510
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15511
hardcode_direct_F77=yes # is this really true???
15514
## LD is ld it makes a PLAMLIB
15515
## CC just makes a GrossModule.
15516
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15517
reload_cmds_F77='$CC -r -o $output$reload_objs'
15518
hardcode_direct_F77=no
15521
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15525
runpath_var='LD_RUN_PATH'
15526
hardcode_shlibpath_var_F77=no
15530
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531
hardcode_shlibpath_var_F77=no
15532
export_dynamic_flag_spec_F77='-Bexport'
15536
if test -d /usr/nec; then
15537
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15538
hardcode_shlibpath_var_F77=no
15539
runpath_var=LD_RUN_PATH
15540
hardcode_runpath_var=yes
15546
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15547
hardcode_direct_F77=yes
15548
hardcode_minus_L_F77=no
15549
hardcode_shlibpath_var_F77=no
15550
hardcode_runpath_var=yes
15551
runpath_var=LD_RUN_PATH
15554
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15555
no_undefined_flag_F77='${wl}-z ${wl}text'
15556
if test "$GCC" = yes; then
15557
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561
runpath_var='LD_RUN_PATH'
15562
hardcode_shlibpath_var_F77=no
15566
no_undefined_flag_F77=' -z text'
15567
# $CC -shared without GNU ld will not create a library from C++
15568
# object files and a static libstdc++, better avoid it by now
15569
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15571
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15572
hardcode_libdir_flag_spec_F77=
15573
hardcode_shlibpath_var_F77=no
15574
runpath_var='LD_RUN_PATH'
15578
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579
hardcode_libdir_flag_spec_F77='-L$libdir'
15580
hardcode_shlibpath_var_F77=no
15589
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15590
echo "${ECHO_T}$ld_shlibs_F77" >&6
15591
test "$ld_shlibs_F77" = no && can_build_shared=no
15593
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15594
if test "$GCC" = yes; then
15595
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15599
# Do we need to explicitly link libc?
15601
case "x$archive_cmds_need_lc_F77" in
15603
# Assume -lc should be added
15604
archive_cmds_need_lc_F77=yes
15606
if test "$enable_shared" = yes && test "$GCC" = yes; then
15607
case $archive_cmds_F77 in
15609
# FIXME: we may have to deal with multi-command sequences.
15612
# Test whether the compiler implicitly links with -lc since on some
15613
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15614
# to ld, don't add -lc before -lgcc.
15615
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15616
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15618
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621
(eval $ac_compile) 2>&5
15623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624
(exit $ac_status); } 2>conftest.err; then
15627
libobjs=conftest.$ac_objext
15629
wl=$lt_prog_compiler_wl_F77
15635
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15636
allow_undefined_flag_F77=
15637
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15638
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641
(exit $ac_status); }
15643
archive_cmds_need_lc_F77=no
15645
archive_cmds_need_lc_F77=yes
15647
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15649
cat conftest.err 1>&5
15652
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15653
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15660
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15661
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15662
library_names_spec=
15663
libname_spec='lib$name'
15667
postuninstall_cmds=
15671
shlibpath_overrides_runpath=unknown
15673
dynamic_linker="$host_os ld.so"
15674
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15675
if test "$GCC" = yes; then
15676
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15677
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15678
# if the path contains ";" then we assume it to be the separator
15679
# otherwise default to the standard path separator (i.e. ":") - it is
15680
# assumed that no part of a normal pathname contains ";" but that should
15681
# okay in the real world where ";" in dirpaths is itself problematic.
15682
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15684
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15687
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15689
need_lib_prefix=unknown
15690
hardcode_into_libs=no
15692
# when you set need_version to no, make sure it does not cause -set_version
15693
# flags to be left without arguments
15694
need_version=unknown
15699
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15700
shlibpath_var=LIBPATH
15702
# AIX 3 has no versioning support, so we append a major version to the name.
15703
soname_spec='${libname}${release}${shared_ext}$major'
15710
hardcode_into_libs=yes
15711
if test "$host_cpu" = ia64; then
15712
# AIX 5 supports IA64
15713
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15714
shlibpath_var=LD_LIBRARY_PATH
15716
# With GCC up to 2.95.x, collect2 would create an import file
15717
# for dependence libraries. The import file would start with
15718
# the line `#! .'. This would cause the generated library to
15719
# depend on `.', always an invalid library. This was fixed in
15720
# development snapshots of GCC prior to 3.0.
15722
aix4 | aix4.[01] | aix4.[01].*)
15723
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15725
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15728
can_build_shared=no
15732
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15733
# soname into executable. Probably we can add versioning support to
15734
# collect2, so additional links can be useful in future.
15735
if test "$aix_use_runtimelinking" = yes; then
15736
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15737
# instead of lib<name>.a to let people know that these are not
15738
# typical AIX shared libraries.
15739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741
# We preserve .a as extension for shared libraries through AIX4.2
15742
# and later when we are not doing run time linking.
15743
library_names_spec='${libname}${release}.a $libname.a'
15744
soname_spec='${libname}${release}${shared_ext}$major'
15746
shlibpath_var=LIBPATH
15751
library_names_spec='$libname.ixlibrary $libname.a'
15752
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15753
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'
15757
library_names_spec='${libname}${shared_ext}'
15758
dynamic_linker="$host_os ld.so"
15759
shlibpath_var=LIBRARY_PATH
15765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766
soname_spec='${libname}${release}${shared_ext}$major'
15767
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15768
shlibpath_var=LD_LIBRARY_PATH
15769
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15770
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15771
# the default ld.so.conf also contains /usr/contrib/lib and
15772
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15773
# libtool to hard-code these into programs
15776
cygwin* | mingw* | pw32*)
15777
version_type=windows
15782
case $GCC,$host_os in
15783
yes,cygwin* | yes,mingw* | yes,pw32*)
15784
library_names_spec='$libname.dll.a'
15785
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15786
postinstall_cmds='base_file=`basename \${file}`~
15787
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15788
dldir=$destdir/`dirname \$dlpath`~
15789
test -d \$dldir || mkdir -p \$dldir~
15790
$install_prog $dir/$dlname \$dldir/$dlname'
15791
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15792
dlpath=$dir/\$dldll~
15794
shlibpath_overrides_runpath=yes
15798
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15799
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15800
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15803
# MinGW DLLs use traditional 'lib' prefix
15804
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15805
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15806
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15807
# It is most probably a Windows format PATH printed by
15808
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15809
# path with ; separators, and with drive letters. We can handle the
15810
# drive letters (cygwin fileutils understands them), so leave them,
15811
# especially as we might pass files found there to a mingw objdump,
15812
# which wouldn't understand a cygwinified path. Ahh.
15813
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15815
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15819
# pw32 DLLs use 'pw' prefix rather than 'lib'
15820
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15826
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15829
dynamic_linker='Win32 ld.exe'
15830
# FIXME: first we should search . and the directory the executable is in
15834
darwin* | rhapsody*)
15835
dynamic_linker="$host_os dyld"
15836
version_type=darwin
15839
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15840
soname_spec='${libname}${release}${major}$shared_ext'
15841
shlibpath_overrides_runpath=yes
15842
shlibpath_var=DYLD_LIBRARY_PATH
15843
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15844
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15845
if test "$GCC" = yes; then
15846
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"`
15848
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15850
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15858
soname_spec='${libname}${release}${shared_ext}$major'
15859
shlibpath_var=LD_LIBRARY_PATH
15870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15871
soname_spec='${libname}${release}${shared_ext}$major'
15872
shlibpath_var=LD_LIBRARY_PATH
15873
shlibpath_overrides_runpath=no
15874
hardcode_into_libs=yes
15875
dynamic_linker='GNU ld.so'
15879
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15880
version_type=freebsd-$objformat
15881
case $version_type in
15883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15888
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15892
shlibpath_var=LD_LIBRARY_PATH
15895
shlibpath_overrides_runpath=yes
15897
freebsd3.01* | freebsdelf3.01*)
15898
shlibpath_overrides_runpath=yes
15899
hardcode_into_libs=yes
15902
shlibpath_overrides_runpath=no
15903
hardcode_into_libs=yes
15912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15913
soname_spec='${libname}${release}${shared_ext}$major'
15914
shlibpath_var=LD_LIBRARY_PATH
15915
hardcode_into_libs=yes
15918
hpux9* | hpux10* | hpux11*)
15919
# Give a soname corresponding to the major version so that dld.sl refuses to
15920
# link against other versions.
15924
case "$host_cpu" in
15927
hardcode_into_libs=yes
15928
dynamic_linker="$host_os dld.so"
15929
shlibpath_var=LD_LIBRARY_PATH
15930
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932
soname_spec='${libname}${release}${shared_ext}$major'
15933
if test "X$HPUX_IA64_MODE" = X32; then
15934
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15936
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15938
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15942
hardcode_into_libs=yes
15943
dynamic_linker="$host_os dld.sl"
15944
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15945
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947
soname_spec='${libname}${release}${shared_ext}$major'
15948
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15949
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15953
dynamic_linker="$host_os dld.sl"
15954
shlibpath_var=SHLIB_PATH
15955
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957
soname_spec='${libname}${release}${shared_ext}$major'
15960
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15961
postinstall_cmds='chmod 555 $lib'
15964
irix5* | irix6* | nonstopux*)
15966
nonstopux*) version_type=nonstopux ;;
15968
if test "$lt_cv_prog_gnu_ld" = yes; then
15976
soname_spec='${libname}${release}${shared_ext}$major'
15977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15979
irix5* | nonstopux*)
15980
libsuff= shlibsuff=
15983
case $LD in # libtool.m4 will add one of these switches to LD
15984
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15985
libsuff= shlibsuff= libmagic=32-bit;;
15986
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15987
libsuff=32 shlibsuff=N32 libmagic=N32;;
15988
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15989
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15990
*) libsuff= shlibsuff= libmagic=never-match;;
15994
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15995
shlibpath_overrides_runpath=no
15996
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15997
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15998
hardcode_into_libs=yes
16001
# No shared lib support for Linux oldld, aout, or coff.
16002
linux*oldld* | linux*aout* | linux*coff*)
16006
# This must be Linux ELF.
16011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012
soname_spec='${libname}${release}${shared_ext}$major'
16013
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16014
shlibpath_var=LD_LIBRARY_PATH
16015
shlibpath_overrides_runpath=no
16016
# This implies no fast_install, which is unacceptable.
16017
# Some rework will be needed to allow for fast_install
16018
# before this can be enabled.
16019
hardcode_into_libs=yes
16021
# Append ld.so.conf contents to the search path
16022
if test -f /etc/ld.so.conf; then
16023
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16024
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16027
# We used to test for /lib/ld.so.1 and disable shared libraries on
16028
# powerpc, because MkLinux only supported shared libraries with the
16029
# GNU dynamic linker. Since this was broken with cross compilers,
16030
# most powerpc-linux boxes support dynamic linking these days and
16031
# people can always --disable-shared, the test was removed, and we
16032
# assume the GNU/Linux dynamic linker is in use.
16033
dynamic_linker='GNU/Linux ld.so'
16040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16041
soname_spec='${libname}${release}${shared_ext}$major'
16042
shlibpath_var=LD_LIBRARY_PATH
16043
shlibpath_overrides_runpath=no
16044
hardcode_into_libs=yes
16045
dynamic_linker='GNU ld.so'
16052
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16054
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16055
dynamic_linker='NetBSD (a.out) ld.so'
16057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16058
soname_spec='${libname}${release}${shared_ext}$major'
16059
dynamic_linker='NetBSD ld.elf_so'
16061
shlibpath_var=LD_LIBRARY_PATH
16062
shlibpath_overrides_runpath=yes
16063
hardcode_into_libs=yes
16068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069
shlibpath_var=LD_LIBRARY_PATH
16070
shlibpath_overrides_runpath=yes
16077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078
soname_spec='${libname}${release}${shared_ext}$major'
16079
shlibpath_var=LD_LIBRARY_PATH
16080
shlibpath_overrides_runpath=yes
16087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16088
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16089
shlibpath_var=LD_LIBRARY_PATH
16090
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16092
openbsd2.[89] | openbsd2.[89].*)
16093
shlibpath_overrides_runpath=no
16096
shlibpath_overrides_runpath=yes
16100
shlibpath_overrides_runpath=yes
16105
libname_spec='$name'
16108
library_names_spec='$libname${shared_ext} $libname.a'
16109
dynamic_linker='OS/2 ld.exe'
16110
shlibpath_var=LIBPATH
16113
osf3* | osf4* | osf5*)
16117
soname_spec='${libname}${release}${shared_ext}$major'
16118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119
shlibpath_var=LD_LIBRARY_PATH
16120
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16121
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16126
soname_spec='${libname}${release}${shared_ext}$major'
16127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128
shlibpath_var=LD_LIBRARY_PATH
16135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136
soname_spec='${libname}${release}${shared_ext}$major'
16137
shlibpath_var=LD_LIBRARY_PATH
16138
shlibpath_overrides_runpath=yes
16139
hardcode_into_libs=yes
16140
# ldd complains unless libraries are executable
16141
postinstall_cmds='chmod +x $lib'
16146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16147
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16148
shlibpath_var=LD_LIBRARY_PATH
16149
shlibpath_overrides_runpath=yes
16150
if test "$with_gnu_ld" = yes; then
16156
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159
soname_spec='${libname}${release}${shared_ext}$major'
16160
shlibpath_var=LD_LIBRARY_PATH
16161
case $host_vendor in
16163
shlibpath_overrides_runpath=no
16165
export_dynamic_flag_spec='${wl}-Blargedynsym'
16166
runpath_var=LD_RUN_PATH
16174
shlibpath_overrides_runpath=no
16175
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16181
if test -d /usr/nec ;then
16183
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16184
soname_spec='$libname${shared_ext}.$major'
16185
shlibpath_var=LD_LIBRARY_PATH
16191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192
soname_spec='${libname}${release}${shared_ext}$major'
16193
shlibpath_var=LD_LIBRARY_PATH
16200
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16201
echo "${ECHO_T}$dynamic_linker" >&6
16202
test "$dynamic_linker" = no && can_build_shared=no
16204
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16205
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16206
hardcode_action_F77=
16207
if test -n "$hardcode_libdir_flag_spec_F77" || \
16208
test -n "$runpath_var F77" || \
16209
test "X$hardcode_automatic_F77"="Xyes" ; then
16211
# We can hardcode non-existant directories.
16212
if test "$hardcode_direct_F77" != no &&
16213
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16214
# have to relink, otherwise we might link with an installed library
16215
# when we should be linking with a yet-to-be-installed one
16216
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16217
test "$hardcode_minus_L_F77" != no; then
16218
# Linking always hardcodes the temporary library directory.
16219
hardcode_action_F77=relink
16221
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16222
hardcode_action_F77=immediate
16225
# We cannot hardcode anything, or else we can only hardcode existing
16227
hardcode_action_F77=unsupported
16229
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16230
echo "${ECHO_T}$hardcode_action_F77" >&6
16232
if test "$hardcode_action_F77" = relink; then
16233
# Fast installation is not supported
16234
enable_fast_install=no
16235
elif test "$shlibpath_overrides_runpath" = yes ||
16236
test "$enable_shared" = no; then
16237
# Fast installation is not necessary
16238
enable_fast_install=needless
16243
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16244
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16245
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16246
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16247
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16248
echo "$as_me:$LINENO: result: yes" >&5
16249
echo "${ECHO_T}yes" >&6
16251
# FIXME - insert some real tests, host_os isn't really good enough
16254
if test -n "$STRIP" ; then
16255
striplib="$STRIP -x"
16256
echo "$as_me:$LINENO: result: yes" >&5
16257
echo "${ECHO_T}yes" >&6
16259
echo "$as_me:$LINENO: result: no" >&5
16260
echo "${ECHO_T}no" >&6
16264
echo "$as_me:$LINENO: result: no" >&5
16265
echo "${ECHO_T}no" >&6
16272
# The else clause should only fire when bootstrapping the
16273
# libtool distribution, otherwise you forgot to ship ltmain.sh
16274
# with your package, and you will get complaints that there are
16275
# no rules to generate ltmain.sh.
16276
if test -f "$ltmain"; then
16277
# See if we are running on zsh, and set the options which allow our commands through
16278
# without removal of \ escapes.
16279
if test -n "${ZSH_VERSION+set}" ; then
16280
setopt NO_GLOB_SUBST
16282
# Now quote all the things that may contain metacharacters while being
16283
# careful not to overquote the AC_SUBSTed values. We take copies of the
16284
# variables and quote the copies for generation of the libtool script.
16285
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16287
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16288
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16289
deplibs_check_method reload_flag reload_cmds need_locks \
16290
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16291
lt_cv_sys_global_symbol_to_c_name_address \
16292
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16293
old_postinstall_cmds old_postuninstall_cmds \
16297
lt_prog_compiler_wl_F77 \
16298
lt_prog_compiler_pic_F77 \
16299
lt_prog_compiler_static_F77 \
16300
lt_prog_compiler_no_builtin_flag_F77 \
16301
export_dynamic_flag_spec_F77 \
16302
thread_safe_flag_spec_F77 \
16303
whole_archive_flag_spec_F77 \
16304
enable_shared_with_static_runtimes_F77 \
16305
old_archive_cmds_F77 \
16306
old_archive_from_new_cmds_F77 \
16307
predep_objects_F77 \
16308
postdep_objects_F77 \
16311
compiler_lib_search_path_F77 \
16313
archive_expsym_cmds_F77 \
16314
postinstall_cmds_F77 \
16315
postuninstall_cmds_F77 \
16316
old_archive_from_expsyms_cmds_F77 \
16317
allow_undefined_flag_F77 \
16318
no_undefined_flag_F77 \
16319
export_symbols_cmds_F77 \
16320
hardcode_libdir_flag_spec_F77 \
16321
hardcode_libdir_flag_spec_ld_F77 \
16322
hardcode_libdir_separator_F77 \
16323
hardcode_automatic_F77 \
16325
module_expsym_cmds_F77 \
16326
lt_cv_prog_compiler_c_o_F77 \
16327
exclude_expsyms_F77 \
16328
include_expsyms_F77; do
16331
old_archive_cmds_F77 | \
16332
old_archive_from_new_cmds_F77 | \
16333
archive_cmds_F77 | \
16334
archive_expsym_cmds_F77 | \
16335
module_cmds_F77 | \
16336
module_expsym_cmds_F77 | \
16337
old_archive_from_expsyms_cmds_F77 | \
16338
export_symbols_cmds_F77 | \
16339
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16340
postinstall_cmds | postuninstall_cmds | \
16341
old_postinstall_cmds | old_postuninstall_cmds | \
16342
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16343
# Double-quote double-evaled strings.
16344
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16347
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16353
*'\$0 --fallback-echo"')
16354
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16360
cat <<__EOF__ >> "$cfgfile"
16361
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16365
# Shell to use when invoking shell scripts.
16368
# Whether or not to build shared libraries.
16369
build_libtool_libs=$enable_shared
16371
# Whether or not to build static libraries.
16372
build_old_libs=$enable_static
16374
# Whether or not to add -lc for building shared libraries.
16375
build_libtool_need_lc=$archive_cmds_need_lc_F77
16377
# Whether or not to disallow shared libs when runtime libs are static
16378
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16380
# Whether or not to optimize for fast installation.
16381
fast_install=$enable_fast_install
16384
host_alias=$host_alias
16387
# An echo program that does not interpret backslashes.
16392
AR_FLAGS=$lt_AR_FLAGS
16397
# A language-specific compiler.
16398
CC=$lt_compiler_F77
16400
# Is the compiler the GNU C compiler?
16406
# The linker used to build libraries.
16409
# Whether we need hard or soft links.
16412
# A BSD-compatible nm program.
16415
# A symbol stripping program
16418
# Used to examine libraries when file_magic_cmd begins "file"
16419
MAGIC_CMD=$MAGIC_CMD
16421
# Used on cygwin: DLL creation program.
16424
# Used on cygwin: object dumper.
16427
# Used on cygwin: assembler.
16430
# The name of the directory that contains temporary libtool files.
16433
# How to create reloadable object files.
16434
reload_flag=$lt_reload_flag
16435
reload_cmds=$lt_reload_cmds
16437
# How to pass a linker flag through the compiler.
16438
wl=$lt_lt_prog_compiler_wl_F77
16440
# Object file suffix (normally "o").
16441
objext="$ac_objext"
16443
# Old archive suffix (normally "a").
16446
# Shared library suffix (normally ".so").
16447
shrext_cmds='$shrext_cmds'
16449
# Executable file suffix (normally "").
16452
# Additional compiler flags for building library objects.
16453
pic_flag=$lt_lt_prog_compiler_pic_F77
16456
# What is the maximum length of a command?
16457
max_cmd_len=$lt_cv_sys_max_cmd_len
16459
# Does compiler simultaneously support -c and -o options?
16460
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16462
# Must we lock files when doing compilation ?
16463
need_locks=$lt_need_locks
16465
# Do we need the lib prefix for modules?
16466
need_lib_prefix=$need_lib_prefix
16468
# Do we need a version for libraries?
16469
need_version=$need_version
16471
# Whether dlopen is supported.
16472
dlopen_support=$enable_dlopen
16474
# Whether dlopen of programs is supported.
16475
dlopen_self=$enable_dlopen_self
16477
# Whether dlopen of statically linked programs is supported.
16478
dlopen_self_static=$enable_dlopen_self_static
16480
# Compiler flag to prevent dynamic linking.
16481
link_static_flag=$lt_lt_prog_compiler_static_F77
16483
# Compiler flag to turn off builtin functions.
16484
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16486
# Compiler flag to allow reflexive dlopens.
16487
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16489
# Compiler flag to generate shared objects directly from archives.
16490
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16492
# Compiler flag to generate thread-safe objects.
16493
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16495
# Library versioning type.
16496
version_type=$version_type
16498
# Format of library name prefix.
16499
libname_spec=$lt_libname_spec
16501
# List of archive names. First name is the real one, the rest are links.
16502
# The last name is the one that the linker finds with -lNAME.
16503
library_names_spec=$lt_library_names_spec
16505
# The coded name of the library, if different from the real name.
16506
soname_spec=$lt_soname_spec
16508
# Commands used to build and install an old-style archive.
16510
old_archive_cmds=$lt_old_archive_cmds_F77
16511
old_postinstall_cmds=$lt_old_postinstall_cmds
16512
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16514
# Create an old-style archive from a shared archive.
16515
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16517
# Create a temporary old-style archive to link instead of a shared archive.
16518
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16520
# Commands used to build and install a shared archive.
16521
archive_cmds=$lt_archive_cmds_F77
16522
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16523
postinstall_cmds=$lt_postinstall_cmds
16524
postuninstall_cmds=$lt_postuninstall_cmds
16526
# Commands used to build a loadable module (assumed same as above if empty)
16527
module_cmds=$lt_module_cmds_F77
16528
module_expsym_cmds=$lt_module_expsym_cmds_F77
16530
# Commands to strip libraries.
16531
old_striplib=$lt_old_striplib
16532
striplib=$lt_striplib
16534
# Dependencies to place before the objects being linked to create a
16536
predep_objects=$lt_predep_objects_F77
16538
# Dependencies to place after the objects being linked to create a
16540
postdep_objects=$lt_postdep_objects_F77
16542
# Dependencies to place before the objects being linked to create a
16544
predeps=$lt_predeps_F77
16546
# Dependencies to place after the objects being linked to create a
16548
postdeps=$lt_postdeps_F77
16550
# The library search path used internally by the compiler when linking
16551
# a shared library.
16552
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16554
# Method to check whether dependent libraries are shared objects.
16555
deplibs_check_method=$lt_deplibs_check_method
16557
# Command to use when deplibs_check_method == file_magic.
16558
file_magic_cmd=$lt_file_magic_cmd
16560
# Flag that allows shared libraries with undefined symbols to be built.
16561
allow_undefined_flag=$lt_allow_undefined_flag_F77
16563
# Flag that forces no undefined symbols.
16564
no_undefined_flag=$lt_no_undefined_flag_F77
16566
# Commands used to finish a libtool library installation in a directory.
16567
finish_cmds=$lt_finish_cmds
16569
# Same as above, but a single script fragment to be evaled but not shown.
16570
finish_eval=$lt_finish_eval
16572
# Take the output of nm and produce a listing of raw symbols and C names.
16573
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16575
# Transform the output of nm in a proper C declaration
16576
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16578
# Transform the output of nm in a C name address pair
16579
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16581
# This is the shared library runtime path variable.
16582
runpath_var=$runpath_var
16584
# This is the shared library path variable.
16585
shlibpath_var=$shlibpath_var
16587
# Is shlibpath searched before the hard-coded library search path?
16588
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16590
# How to hardcode a shared library path into an executable.
16591
hardcode_action=$hardcode_action_F77
16593
# Whether we should hardcode library paths into libraries.
16594
hardcode_into_libs=$hardcode_into_libs
16596
# Flag to hardcode \$libdir into a binary during linking.
16597
# This must work even if \$libdir does not exist.
16598
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16600
# If ld is used when linking, flag to hardcode \$libdir into
16601
# a binary during linking. This must work even if \$libdir does
16603
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16605
# Whether we need a single -rpath flag with a separated argument.
16606
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16608
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16609
# resulting binary.
16610
hardcode_direct=$hardcode_direct_F77
16612
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16613
# resulting binary.
16614
hardcode_minus_L=$hardcode_minus_L_F77
16616
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16617
# the resulting binary.
16618
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16620
# Set to yes if building a shared library automatically hardcodes DIR into the library
16621
# and all subsequent libraries and executables linked against it.
16622
hardcode_automatic=$hardcode_automatic_F77
16624
# Variables whose values should be saved in libtool wrapper scripts and
16625
# restored at relink time.
16626
variables_saved_for_relink="$variables_saved_for_relink"
16628
# Whether libtool must link a program against all its dependency libraries.
16629
link_all_deplibs=$link_all_deplibs_F77
16631
# Compile-time system search path for libraries
16632
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16634
# Run-time system search path for libraries
16635
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16637
# Fix the shell variable \$srcfile for the compiler.
16638
fix_srcfile_path="$fix_srcfile_path_F77"
16640
# Set to yes if exported symbols are required.
16641
always_export_symbols=$always_export_symbols_F77
16643
# The commands to list exported symbols.
16644
export_symbols_cmds=$lt_export_symbols_cmds_F77
16646
# The commands to extract the exported symbol list from a shared archive.
16647
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16649
# Symbols that should not be listed in the preloaded symbols.
16650
exclude_expsyms=$lt_exclude_expsyms_F77
16652
# Symbols that must always be exported.
16653
include_expsyms=$lt_include_expsyms_F77
16655
# ### END LIBTOOL TAG CONFIG: $tagname
16661
# If there is no Makefile yet, we rely on a make rule to execute
16662
# `config.status --recheck' to rerun these tests and create the
16663
# libtool script then.
16664
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16665
if test -f "$ltmain_in"; then
16666
test -f Makefile && make "$ltmain"
16672
ac_cpp='$CPP $CPPFLAGS'
16673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16685
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16689
# Source file extension for Java test sources.
16692
# Object file extension for compiled Java test sources.
16696
# Code to be used in simple compile tests
16697
lt_simple_compile_test_code="class foo {}\n"
16699
# Code to be used in simple link tests
16700
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16702
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16704
# If no C compiler was specified, use CC.
16707
# Allow CC to be a program name with arguments.
16711
# Allow CC to be a program name with arguments.
16717
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16718
archive_cmds_need_lc_GCJ=no
16721
lt_prog_compiler_no_builtin_flag_GCJ=
16723
if test "$GCC" = yes; then
16724
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16727
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16728
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16729
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16730
echo $ECHO_N "(cached) $ECHO_C" >&6
16732
lt_cv_prog_compiler_rtti_exceptions=no
16733
ac_outfile=conftest.$ac_objext
16734
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16735
lt_compiler_flag="-fno-rtti -fno-exceptions"
16736
# Insert the option either (1) after the last *FLAGS variable, or
16737
# (2) before a word containing "conftest.", or (3) at the end.
16738
# Note that $ac_compile itself does not contain backslashes and begins
16739
# with a dollar sign (not a hyphen), so the echo should work correctly.
16740
# The option is referenced via a variable to avoid confusing sed.
16741
lt_compile=`echo "$ac_compile" | $SED \
16742
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16743
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16744
-e 's:$: $lt_compiler_flag:'`
16745
(eval echo "\"\$as_me:16745: $lt_compile\"" >&5)
16746
(eval "$lt_compile" 2>conftest.err)
16748
cat conftest.err >&5
16749
echo "$as_me:16749: \$? = $ac_status" >&5
16750
if (exit $ac_status) && test -s "$ac_outfile"; then
16751
# The compiler can only warn and ignore the option if not recognized
16752
# So say no if there are warnings
16753
if test ! -s conftest.err; then
16754
lt_cv_prog_compiler_rtti_exceptions=yes
16760
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16761
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16763
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16764
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16771
lt_prog_compiler_wl_GCJ=
16772
lt_prog_compiler_pic_GCJ=
16773
lt_prog_compiler_static_GCJ=
16775
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16776
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16778
if test "$GCC" = yes; then
16779
lt_prog_compiler_wl_GCJ='-Wl,'
16780
lt_prog_compiler_static_GCJ='-static'
16784
# All AIX code is PIC.
16785
if test "$host_cpu" = ia64; then
16786
# AIX 5 now supports IA64 processor
16787
lt_prog_compiler_static_GCJ='-Bstatic'
16792
# FIXME: we need at least 68020 code to build shared libraries, but
16793
# adding the `-m68020' flag to GCC prevents building anything better,
16795
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16798
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16799
# PIC is the default for these OSes.
16802
mingw* | pw32* | os2*)
16803
# This hack is so that the source file can tell whether it is being
16804
# built for inclusion in a dll (and should export symbols for example).
16805
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16808
darwin* | rhapsody*)
16809
# PIC is the default on this platform
16810
# Common symbols not allowed in MH_DYLIB files
16811
lt_prog_compiler_pic_GCJ='-fno-common'
16815
# Just because we use GCC doesn't mean we suddenly get shared libraries
16816
# on systems that don't support them.
16817
lt_prog_compiler_can_build_shared_GCJ=no
16822
if test -d /usr/nec; then
16823
lt_prog_compiler_pic_GCJ=-Kconform_pic
16828
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16829
# not for PA HP-UX.
16830
case "$host_cpu" in
16835
lt_prog_compiler_pic_GCJ='-fPIC'
16841
lt_prog_compiler_pic_GCJ='-fPIC'
16845
# PORTME Check for flag to pass linker flags through the system compiler.
16848
lt_prog_compiler_wl_GCJ='-Wl,'
16849
if test "$host_cpu" = ia64; then
16850
# AIX 5 now supports IA64 processor
16851
lt_prog_compiler_static_GCJ='-Bstatic'
16853
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16857
mingw* | pw32* | os2*)
16858
# This hack is so that the source file can tell whether it is being
16859
# built for inclusion in a dll (and should export symbols for example).
16860
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16863
hpux9* | hpux10* | hpux11*)
16864
lt_prog_compiler_wl_GCJ='-Wl,'
16865
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16866
# not for PA HP-UX.
16867
case "$host_cpu" in
16872
lt_prog_compiler_pic_GCJ='+Z'
16875
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16876
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16879
irix5* | irix6* | nonstopux*)
16880
lt_prog_compiler_wl_GCJ='-Wl,'
16881
# PIC (with -KPIC) is the default.
16882
lt_prog_compiler_static_GCJ='-non_shared'
16886
lt_prog_compiler_pic_GCJ='-KPIC'
16887
lt_prog_compiler_static_GCJ='-Bstatic'
16893
lt_prog_compiler_wl_GCJ='-Wl,'
16894
lt_prog_compiler_pic_GCJ='-KPIC'
16895
lt_prog_compiler_static_GCJ='-static'
16898
lt_prog_compiler_wl_GCJ='-Wl,'
16899
# All Alpha code is PIC.
16900
lt_prog_compiler_static_GCJ='-non_shared'
16905
osf3* | osf4* | osf5*)
16906
lt_prog_compiler_wl_GCJ='-Wl,'
16907
# All OSF/1 code is PIC.
16908
lt_prog_compiler_static_GCJ='-non_shared'
16912
lt_prog_compiler_pic_GCJ='-Kpic'
16913
lt_prog_compiler_static_GCJ='-dn'
16917
lt_prog_compiler_wl_GCJ='-Wl,'
16918
lt_prog_compiler_pic_GCJ='-KPIC'
16919
lt_prog_compiler_static_GCJ='-Bstatic'
16923
lt_prog_compiler_wl_GCJ='-Qoption ld '
16924
lt_prog_compiler_pic_GCJ='-PIC'
16925
lt_prog_compiler_static_GCJ='-Bstatic'
16928
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16929
lt_prog_compiler_wl_GCJ='-Wl,'
16930
lt_prog_compiler_pic_GCJ='-KPIC'
16931
lt_prog_compiler_static_GCJ='-Bstatic'
16935
if test -d /usr/nec ;then
16936
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16937
lt_prog_compiler_static_GCJ='-Bstatic'
16942
lt_prog_compiler_pic_GCJ='-pic'
16943
lt_prog_compiler_static_GCJ='-Bstatic'
16947
lt_prog_compiler_can_build_shared_GCJ=no
16952
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16953
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16956
# Check to make sure the PIC flag actually works.
16958
if test -n "$lt_prog_compiler_pic_GCJ"; then
16960
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16961
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16962
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16963
echo $ECHO_N "(cached) $ECHO_C" >&6
16965
lt_prog_compiler_pic_works_GCJ=no
16966
ac_outfile=conftest.$ac_objext
16967
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16968
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16969
# Insert the option either (1) after the last *FLAGS variable, or
16970
# (2) before a word containing "conftest.", or (3) at the end.
16971
# Note that $ac_compile itself does not contain backslashes and begins
16972
# with a dollar sign (not a hyphen), so the echo should work correctly.
16973
# The option is referenced via a variable to avoid confusing sed.
16974
lt_compile=`echo "$ac_compile" | $SED \
16975
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16976
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16977
-e 's:$: $lt_compiler_flag:'`
16978
(eval echo "\"\$as_me:16978: $lt_compile\"" >&5)
16979
(eval "$lt_compile" 2>conftest.err)
16981
cat conftest.err >&5
16982
echo "$as_me:16982: \$? = $ac_status" >&5
16983
if (exit $ac_status) && test -s "$ac_outfile"; then
16984
# The compiler can only warn and ignore the option if not recognized
16985
# So say no if there are warnings
16986
if test ! -s conftest.err; then
16987
lt_prog_compiler_pic_works_GCJ=yes
16993
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16994
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16996
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16997
case $lt_prog_compiler_pic_GCJ in
16999
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17002
lt_prog_compiler_pic_GCJ=
17003
lt_prog_compiler_can_build_shared_GCJ=no
17008
# For platforms which do not support PIC, -DPIC is meaningless:
17010
lt_prog_compiler_pic_GCJ=
17013
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17017
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17018
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17019
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17020
echo $ECHO_N "(cached) $ECHO_C" >&6
17022
lt_cv_prog_compiler_c_o_GCJ=no
17023
$rm -r conftest 2>/dev/null
17027
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17029
lt_compiler_flag="-o out/conftest2.$ac_objext"
17030
# Insert the option either (1) after the last *FLAGS variable, or
17031
# (2) before a word containing "conftest.", or (3) at the end.
17032
# Note that $ac_compile itself does not contain backslashes and begins
17033
# with a dollar sign (not a hyphen), so the echo should work correctly.
17034
lt_compile=`echo "$ac_compile" | $SED \
17035
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17036
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17037
-e 's:$: $lt_compiler_flag:'`
17038
(eval echo "\"\$as_me:17038: $lt_compile\"" >&5)
17039
(eval "$lt_compile" 2>out/conftest.err)
17041
cat out/conftest.err >&5
17042
echo "$as_me:17042: \$? = $ac_status" >&5
17043
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17045
# The compiler can only warn and ignore the option if not recognized
17046
# So say no if there are warnings
17047
if test ! -s out/conftest.err; then
17048
lt_cv_prog_compiler_c_o_GCJ=yes
17053
# SGI C++ compiler will create directory out/ii_files/ for
17054
# template instantiation
17055
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17056
$rm out/* && rmdir out
17062
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17063
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17066
hard_links="nottested"
17067
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17068
# do not overwrite the value of need_locks provided by the user
17069
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17070
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17073
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17075
ln conftest.a conftest.b 2>&5 || hard_links=no
17076
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17077
echo "$as_me:$LINENO: result: $hard_links" >&5
17078
echo "${ECHO_T}$hard_links" >&6
17079
if test "$hard_links" = no; then
17080
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17081
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17088
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17089
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17092
allow_undefined_flag_GCJ=
17093
enable_shared_with_static_runtimes_GCJ=no
17095
archive_expsym_cmds_GCJ=
17096
old_archive_From_new_cmds_GCJ=
17097
old_archive_from_expsyms_cmds_GCJ=
17098
export_dynamic_flag_spec_GCJ=
17099
whole_archive_flag_spec_GCJ=
17100
thread_safe_flag_spec_GCJ=
17101
hardcode_libdir_flag_spec_GCJ=
17102
hardcode_libdir_flag_spec_ld_GCJ=
17103
hardcode_libdir_separator_GCJ=
17104
hardcode_direct_GCJ=no
17105
hardcode_minus_L_GCJ=no
17106
hardcode_shlibpath_var_GCJ=unsupported
17107
link_all_deplibs_GCJ=unknown
17108
hardcode_automatic_GCJ=no
17110
module_expsym_cmds_GCJ=
17111
always_export_symbols_GCJ=no
17112
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17113
# include_expsyms should be a list of space-separated symbols to be *always*
17114
# included in the symbol list
17115
include_expsyms_GCJ=
17116
# exclude_expsyms can be an extended regexp of symbols to exclude
17117
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17118
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17119
# as well as any symbol that contains `d'.
17120
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17121
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17122
# platforms (ab)use it in PIC code, but their linkers get confused if
17123
# the symbol is explicitly referenced. Since portable code cannot
17124
# rely on this symbol name, it's probably fine to never include it in
17125
# preloaded symbol tables.
17126
extract_expsyms_cmds=
17129
cygwin* | mingw* | pw32*)
17130
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17131
# When not using gcc, we currently assume that we are using
17132
# Microsoft Visual C++.
17133
if test "$GCC" != yes; then
17143
if test "$with_gnu_ld" = yes; then
17144
# If archive_cmds runs LD, not CC, wlarc should be empty
17147
# See if GNU ld supports shared libraries.
17149
aix3* | aix4* | aix5*)
17150
# On AIX/PPC, the GNU linker is very broken
17151
if test "$host_cpu" != ia64; then
17155
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17156
*** to be unable to reliably create shared libraries on AIX.
17157
*** Therefore, libtool is disabling shared libraries support. If you
17158
*** really care for shared libraries, you may want to modify your PATH
17159
*** so that a non-GNU linker is found, and then restart.
17166
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)'
17167
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17168
hardcode_minus_L_GCJ=yes
17170
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17171
# that the semantics of dynamic libraries on AmigaOS, at least up
17172
# to version 4, is to share data among multiple programs linked
17173
# with the same dynamic library. Since this doesn't match the
17174
# behavior of shared libraries on other platforms, we can't use
17180
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17181
allow_undefined_flag_GCJ=unsupported
17182
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17183
# support --undefined. This deserves some investigation. FIXME
17184
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17190
cygwin* | mingw* | pw32*)
17191
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17192
# as there is no search path for DLLs.
17193
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17194
allow_undefined_flag_GCJ=unsupported
17195
always_export_symbols_GCJ=no
17196
enable_shared_with_static_runtimes_GCJ=yes
17197
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17199
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17200
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17201
# If the export-symbols file already is a .def file (1st line
17202
# is EXPORTS), use it as is; otherwise, prepend...
17203
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17204
cp $export_symbols $output_objdir/$soname.def;
17206
echo EXPORTS > $output_objdir/$soname.def;
17207
cat $export_symbols >> $output_objdir/$soname.def;
17209
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17215
netbsd* | knetbsd*-gnu)
17216
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17217
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17220
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17221
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17226
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17230
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17231
*** create shared libraries on Solaris systems. Therefore, libtool
17232
*** is disabling shared libraries support. We urge you to upgrade GNU
17233
*** binutils to release 2.9.1 or newer. Another option is to modify
17234
*** your PATH or compiler configuration so that the native linker is
17235
*** used, and then restart.
17238
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17239
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17240
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17247
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17249
hardcode_direct_GCJ=yes
17250
hardcode_shlibpath_var_GCJ=no
17254
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17255
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17256
archive_cmds_GCJ="$tmp_archive_cmds"
17257
supports_anon_versioning=no
17258
case `$LD -v 2>/dev/null` in
17259
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17260
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17261
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17262
*\ 2.11.*) ;; # other 2.11 versions
17263
*) supports_anon_versioning=yes ;;
17265
if test $supports_anon_versioning = yes; then
17266
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17267
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17268
$echo "local: *; };" >> $output_objdir/$libname.ver~
17269
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17271
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17273
link_all_deplibs_GCJ=no
17280
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17281
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17282
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17289
if test "$ld_shlibs_GCJ" = yes; then
17290
runpath_var=LD_RUN_PATH
17291
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17292
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17293
# ancient GNU ld didn't support --whole-archive et. al.
17294
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17295
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17297
whole_archive_flag_spec_GCJ=
17301
# PORTME fill in a description of your system's linker (not GNU ld)
17304
allow_undefined_flag_GCJ=unsupported
17305
always_export_symbols_GCJ=yes
17306
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'
17307
# Note: this linker hardcodes the directories in LIBPATH if there
17308
# are no directories specified by -L.
17309
hardcode_minus_L_GCJ=yes
17310
if test "$GCC" = yes && test -z "$link_static_flag"; then
17311
# Neither direct hardcoding nor static linking is supported with a
17313
hardcode_direct_GCJ=unsupported
17318
if test "$host_cpu" = ia64; then
17319
# On IA64, the linker does run time linking by default, so we don't
17320
# have to do anything special.
17321
aix_use_runtimelinking=no
17322
exp_sym_flag='-Bexport'
17325
# If we're using GNU nm, then we don't want the "-C" option.
17326
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17327
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17328
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'
17330
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'
17332
aix_use_runtimelinking=no
17334
# Test if we are trying to use run time linking or normal
17335
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17336
# need to do runtime linking.
17337
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17338
for ld_flag in $LDFLAGS; do
17339
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17340
aix_use_runtimelinking=yes
17346
exp_sym_flag='-bexport'
17347
no_entry_flag='-bnoentry'
17350
# When large executables or shared objects are built, AIX ld can
17351
# have problems creating the table of contents. If linking a library
17352
# or program results in "error TOC overflow" add -mminimal-toc to
17353
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17354
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17356
archive_cmds_GCJ=''
17357
hardcode_direct_GCJ=yes
17358
hardcode_libdir_separator_GCJ=':'
17359
link_all_deplibs_GCJ=yes
17361
if test "$GCC" = yes; then
17362
case $host_os in aix4.012|aix4.012.*)
17363
# We only want to do this on AIX 4.2 and lower, the check
17364
# below for broken collect2 doesn't work under 4.3+
17365
collect2name=`${CC} -print-prog-name=collect2`
17366
if test -f "$collect2name" && \
17367
strings "$collect2name" | grep resolve_lib_name >/dev/null
17369
# We have reworked collect2
17370
hardcode_direct_GCJ=yes
17372
# We have old collect2
17373
hardcode_direct_GCJ=unsupported
17374
# It fails to find uninstalled libraries when the uninstalled
17375
# path is not listed in the libpath. Setting hardcode_minus_L
17376
# to unsupported forces relinking
17377
hardcode_minus_L_GCJ=yes
17378
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17379
hardcode_libdir_separator_GCJ=
17382
shared_flag='-shared'
17385
if test "$host_cpu" = ia64; then
17386
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17387
# chokes on -Wl,-G. The following line is correct:
17390
if test "$aix_use_runtimelinking" = yes; then
17391
shared_flag='${wl}-G'
17393
shared_flag='${wl}-bM:SRE'
17398
# It seems that -bexpall does not export symbols beginning with
17399
# underscore (_), so it is better to generate a list of symbols to export.
17400
always_export_symbols_GCJ=yes
17401
if test "$aix_use_runtimelinking" = yes; then
17402
# Warning - without using the other runtime loading flags (-brtl),
17403
# -berok will link without error, but may produce a broken library.
17404
allow_undefined_flag_GCJ='-berok'
17405
# Determine the default libpath from the value encoded in an empty executable.
17406
cat >conftest.$ac_ext <<_ACEOF
17409
cat confdefs.h >>conftest.$ac_ext
17410
cat >>conftest.$ac_ext <<_ACEOF
17411
/* end confdefs.h. */
17421
rm -f conftest.$ac_objext conftest$ac_exeext
17422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423
(eval $ac_link) 2>conftest.er1
17425
grep -v '^ *+' conftest.er1 >conftest.err
17427
cat conftest.err >&5
17428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429
(exit $ac_status); } &&
17430
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432
(eval $ac_try) 2>&5
17434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435
(exit $ac_status); }; } &&
17436
{ ac_try='test -s conftest$ac_exeext'
17437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438
(eval $ac_try) 2>&5
17440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441
(exit $ac_status); }; }; then
17443
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17445
# Check for a 64-bit object if we didn't find anything.
17446
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; }
17449
echo "$as_me: failed program was:" >&5
17450
sed 's/^/| /' conftest.$ac_ext >&5
17453
rm -f conftest.err conftest.$ac_objext \
17454
conftest$ac_exeext conftest.$ac_ext
17455
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17457
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17458
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17460
if test "$host_cpu" = ia64; then
17461
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17462
allow_undefined_flag_GCJ="-z nodefs"
17463
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17465
# Determine the default libpath from the value encoded in an empty executable.
17466
cat >conftest.$ac_ext <<_ACEOF
17469
cat confdefs.h >>conftest.$ac_ext
17470
cat >>conftest.$ac_ext <<_ACEOF
17471
/* end confdefs.h. */
17481
rm -f conftest.$ac_objext conftest$ac_exeext
17482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483
(eval $ac_link) 2>conftest.er1
17485
grep -v '^ *+' conftest.er1 >conftest.err
17487
cat conftest.err >&5
17488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489
(exit $ac_status); } &&
17490
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492
(eval $ac_try) 2>&5
17494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
(exit $ac_status); }; } &&
17496
{ ac_try='test -s conftest$ac_exeext'
17497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498
(eval $ac_try) 2>&5
17500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501
(exit $ac_status); }; }; then
17503
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17505
# Check for a 64-bit object if we didn't find anything.
17506
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; }
17509
echo "$as_me: failed program was:" >&5
17510
sed 's/^/| /' conftest.$ac_ext >&5
17513
rm -f conftest.err conftest.$ac_objext \
17514
conftest$ac_exeext conftest.$ac_ext
17515
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17517
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17518
# Warning - without using the other run time loading flags,
17519
# -berok will link without error, but may produce a broken library.
17520
no_undefined_flag_GCJ=' ${wl}-bernotok'
17521
allow_undefined_flag_GCJ=' ${wl}-berok'
17522
# -bexpall does not export symbols beginning with underscore (_)
17523
always_export_symbols_GCJ=yes
17524
# Exported symbols can be pulled into shared objects from archives
17525
whole_archive_flag_spec_GCJ=' '
17526
archive_cmds_need_lc_GCJ=yes
17527
# This is similar to how AIX traditionally builds it's shared libraries.
17528
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17534
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)'
17535
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17536
hardcode_minus_L_GCJ=yes
17537
# see comment about different semantics on the GNU ld section
17542
export_dynamic_flag_spec_GCJ=-rdynamic
17545
cygwin* | mingw* | pw32*)
17546
# When not using gcc, we currently assume that we are using
17547
# Microsoft Visual C++.
17548
# hardcode_libdir_flag_spec is actually meaningless, as there is
17549
# no search path for DLLs.
17550
hardcode_libdir_flag_spec_GCJ=' '
17551
allow_undefined_flag_GCJ=unsupported
17552
# Tell ltmain to make .lib files, not .a files.
17554
# Tell ltmain to make .dll files, not .so files.
17556
# FIXME: Setting linknames here is a bad hack.
17557
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17558
# The linker will automatically build a .lib file if we build a DLL.
17559
old_archive_From_new_cmds_GCJ='true'
17560
# FIXME: Should let the user specify the lib program.
17561
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17562
fix_srcfile_path='`cygpath -w "$srcfile"`'
17563
enable_shared_with_static_runtimes_GCJ=yes
17566
darwin* | rhapsody*)
17567
if test "$GXX" = yes ; then
17568
archive_cmds_need_lc_GCJ=no
17570
rhapsody* | darwin1.[012])
17571
allow_undefined_flag_GCJ='-undefined suppress'
17574
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17575
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17577
case ${MACOSX_DEPLOYMENT_TARGET} in
17579
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17582
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17588
lt_int_apple_cc_single_mod=no
17589
output_verbose_link_cmd='echo'
17590
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17591
lt_int_apple_cc_single_mod=yes
17593
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17594
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17596
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17598
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17599
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17600
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17601
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17603
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17605
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}'
17606
hardcode_direct_GCJ=no
17607
hardcode_automatic_GCJ=yes
17608
hardcode_shlibpath_var_GCJ=unsupported
17609
whole_archive_flag_spec_GCJ='-all_load $convenience'
17610
link_all_deplibs_GCJ=yes
17617
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619
hardcode_shlibpath_var_GCJ=no
17626
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17627
# support. Future versions do this automatically, but an explicit c++rt0.o
17628
# does not break anything, and helps significantly (at the cost of a little
17631
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17632
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17633
hardcode_direct_GCJ=yes
17634
hardcode_shlibpath_var_GCJ=no
17637
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17639
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17640
hardcode_direct_GCJ=yes
17641
hardcode_minus_L_GCJ=yes
17642
hardcode_shlibpath_var_GCJ=no
17645
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17646
freebsd* | kfreebsd*-gnu)
17647
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17648
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17649
hardcode_direct_GCJ=yes
17650
hardcode_shlibpath_var_GCJ=no
17654
if test "$GCC" = yes; then
17655
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'
17657
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'
17659
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17660
hardcode_libdir_separator_GCJ=:
17661
hardcode_direct_GCJ=yes
17663
# hardcode_minus_L: Not really in the search PATH,
17664
# but as the default location of the library.
17665
hardcode_minus_L_GCJ=yes
17666
export_dynamic_flag_spec_GCJ='${wl}-E'
17670
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17671
case "$host_cpu" in
17673
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17676
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17680
case "$host_cpu" in
17682
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17685
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17689
if test "$with_gnu_ld" = no; then
17690
case "$host_cpu" in
17692
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17693
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17694
hardcode_libdir_separator_GCJ=:
17695
hardcode_direct_GCJ=no
17696
hardcode_shlibpath_var_GCJ=no
17699
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17700
hardcode_direct_GCJ=no
17701
hardcode_shlibpath_var_GCJ=no
17703
# hardcode_minus_L: Not really in the search PATH,
17704
# but as the default location of the library.
17705
hardcode_minus_L_GCJ=yes
17708
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17709
hardcode_libdir_separator_GCJ=:
17710
hardcode_direct_GCJ=yes
17711
export_dynamic_flag_spec_GCJ='${wl}-E'
17713
# hardcode_minus_L: Not really in the search PATH,
17714
# but as the default location of the library.
17715
hardcode_minus_L_GCJ=yes
17721
irix5* | irix6* | nonstopux*)
17722
if test "$GCC" = yes; then
17723
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'
17725
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'
17726
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17728
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17729
hardcode_libdir_separator_GCJ=:
17730
link_all_deplibs_GCJ=yes
17733
netbsd* | knetbsd*-gnu)
17734
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17735
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17737
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17739
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17740
hardcode_direct_GCJ=yes
17741
hardcode_shlibpath_var_GCJ=no
17745
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746
hardcode_direct_GCJ=yes
17747
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17748
hardcode_libdir_separator_GCJ=:
17749
hardcode_shlibpath_var_GCJ=no
17753
hardcode_direct_GCJ=yes
17754
hardcode_shlibpath_var_GCJ=no
17755
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17756
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17757
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17758
export_dynamic_flag_spec_GCJ='${wl}-E'
17761
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17762
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17763
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17766
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17767
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17774
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17775
hardcode_minus_L_GCJ=yes
17776
allow_undefined_flag_GCJ=unsupported
17777
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'
17778
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17782
if test "$GCC" = yes; then
17783
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17784
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'
17786
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17787
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'
17789
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17790
hardcode_libdir_separator_GCJ=:
17793
osf4* | osf5*) # as osf3* with the addition of -msym flag
17794
if test "$GCC" = yes; then
17795
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17796
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'
17797
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17799
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17800
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'
17801
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~
17802
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17804
# Both c and cxx compiler support -rpath directly
17805
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17807
hardcode_libdir_separator_GCJ=:
17811
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17812
hardcode_shlibpath_var_GCJ=no
17813
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17814
runpath_var=LD_RUN_PATH
17815
hardcode_runpath_var=yes
17819
no_undefined_flag_GCJ=' -z text'
17820
if test "$GCC" = yes; then
17821
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17823
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17825
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17826
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17827
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17829
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17830
hardcode_shlibpath_var_GCJ=no
17832
solaris2.[0-5] | solaris2.[0-5].*) ;;
17833
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17834
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17836
link_all_deplibs_GCJ=yes
17840
if test "x$host_vendor" = xsequent; then
17841
# Use $CC to link under sequent, because it throws in some extra .o
17842
# files that make .init and .fini sections work.
17843
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17845
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17847
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17848
hardcode_direct_GCJ=yes
17849
hardcode_minus_L_GCJ=yes
17850
hardcode_shlibpath_var_GCJ=no
17854
case $host_vendor in
17856
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17857
hardcode_direct_GCJ=yes # is this really true???
17860
## LD is ld it makes a PLAMLIB
17861
## CC just makes a GrossModule.
17862
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17863
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17864
hardcode_direct_GCJ=no
17867
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17868
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17871
runpath_var='LD_RUN_PATH'
17872
hardcode_shlibpath_var_GCJ=no
17876
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17877
hardcode_shlibpath_var_GCJ=no
17878
export_dynamic_flag_spec_GCJ='-Bexport'
17882
if test -d /usr/nec; then
17883
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884
hardcode_shlibpath_var_GCJ=no
17885
runpath_var=LD_RUN_PATH
17886
hardcode_runpath_var=yes
17892
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17893
hardcode_direct_GCJ=yes
17894
hardcode_minus_L_GCJ=no
17895
hardcode_shlibpath_var_GCJ=no
17896
hardcode_runpath_var=yes
17897
runpath_var=LD_RUN_PATH
17900
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17901
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17902
if test "$GCC" = yes; then
17903
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17905
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17907
runpath_var='LD_RUN_PATH'
17908
hardcode_shlibpath_var_GCJ=no
17912
no_undefined_flag_GCJ=' -z text'
17913
# $CC -shared without GNU ld will not create a library from C++
17914
# object files and a static libstdc++, better avoid it by now
17915
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17917
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17918
hardcode_libdir_flag_spec_GCJ=
17919
hardcode_shlibpath_var_GCJ=no
17920
runpath_var='LD_RUN_PATH'
17924
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17925
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17926
hardcode_shlibpath_var_GCJ=no
17935
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17936
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17937
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17939
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17940
if test "$GCC" = yes; then
17941
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17945
# Do we need to explicitly link libc?
17947
case "x$archive_cmds_need_lc_GCJ" in
17949
# Assume -lc should be added
17950
archive_cmds_need_lc_GCJ=yes
17952
if test "$enable_shared" = yes && test "$GCC" = yes; then
17953
case $archive_cmds_GCJ in
17955
# FIXME: we may have to deal with multi-command sequences.
17958
# Test whether the compiler implicitly links with -lc since on some
17959
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17960
# to ld, don't add -lc before -lgcc.
17961
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17962
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17964
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967
(eval $ac_compile) 2>&5
17969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970
(exit $ac_status); } 2>conftest.err; then
17973
libobjs=conftest.$ac_objext
17975
wl=$lt_prog_compiler_wl_GCJ
17981
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17982
allow_undefined_flag_GCJ=
17983
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17984
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987
(exit $ac_status); }
17989
archive_cmds_need_lc_GCJ=no
17991
archive_cmds_need_lc_GCJ=yes
17993
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17995
cat conftest.err 1>&5
17998
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17999
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18006
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18007
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18008
library_names_spec=
18009
libname_spec='lib$name'
18013
postuninstall_cmds=
18017
shlibpath_overrides_runpath=unknown
18019
dynamic_linker="$host_os ld.so"
18020
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18021
if test "$GCC" = yes; then
18022
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18023
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18024
# if the path contains ";" then we assume it to be the separator
18025
# otherwise default to the standard path separator (i.e. ":") - it is
18026
# assumed that no part of a normal pathname contains ";" but that should
18027
# okay in the real world where ";" in dirpaths is itself problematic.
18028
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18030
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18033
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18035
need_lib_prefix=unknown
18036
hardcode_into_libs=no
18038
# when you set need_version to no, make sure it does not cause -set_version
18039
# flags to be left without arguments
18040
need_version=unknown
18045
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18046
shlibpath_var=LIBPATH
18048
# AIX 3 has no versioning support, so we append a major version to the name.
18049
soname_spec='${libname}${release}${shared_ext}$major'
18056
hardcode_into_libs=yes
18057
if test "$host_cpu" = ia64; then
18058
# AIX 5 supports IA64
18059
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18060
shlibpath_var=LD_LIBRARY_PATH
18062
# With GCC up to 2.95.x, collect2 would create an import file
18063
# for dependence libraries. The import file would start with
18064
# the line `#! .'. This would cause the generated library to
18065
# depend on `.', always an invalid library. This was fixed in
18066
# development snapshots of GCC prior to 3.0.
18068
aix4 | aix4.[01] | aix4.[01].*)
18069
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18071
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18074
can_build_shared=no
18078
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18079
# soname into executable. Probably we can add versioning support to
18080
# collect2, so additional links can be useful in future.
18081
if test "$aix_use_runtimelinking" = yes; then
18082
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18083
# instead of lib<name>.a to let people know that these are not
18084
# typical AIX shared libraries.
18085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087
# We preserve .a as extension for shared libraries through AIX4.2
18088
# and later when we are not doing run time linking.
18089
library_names_spec='${libname}${release}.a $libname.a'
18090
soname_spec='${libname}${release}${shared_ext}$major'
18092
shlibpath_var=LIBPATH
18097
library_names_spec='$libname.ixlibrary $libname.a'
18098
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18099
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'
18103
library_names_spec='${libname}${shared_ext}'
18104
dynamic_linker="$host_os ld.so"
18105
shlibpath_var=LIBRARY_PATH
18111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112
soname_spec='${libname}${release}${shared_ext}$major'
18113
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18114
shlibpath_var=LD_LIBRARY_PATH
18115
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18116
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18117
# the default ld.so.conf also contains /usr/contrib/lib and
18118
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18119
# libtool to hard-code these into programs
18122
cygwin* | mingw* | pw32*)
18123
version_type=windows
18128
case $GCC,$host_os in
18129
yes,cygwin* | yes,mingw* | yes,pw32*)
18130
library_names_spec='$libname.dll.a'
18131
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18132
postinstall_cmds='base_file=`basename \${file}`~
18133
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18134
dldir=$destdir/`dirname \$dlpath`~
18135
test -d \$dldir || mkdir -p \$dldir~
18136
$install_prog $dir/$dlname \$dldir/$dlname'
18137
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18138
dlpath=$dir/\$dldll~
18140
shlibpath_overrides_runpath=yes
18144
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18145
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18146
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18149
# MinGW DLLs use traditional 'lib' prefix
18150
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18151
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18152
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18153
# It is most probably a Windows format PATH printed by
18154
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18155
# path with ; separators, and with drive letters. We can handle the
18156
# drive letters (cygwin fileutils understands them), so leave them,
18157
# especially as we might pass files found there to a mingw objdump,
18158
# which wouldn't understand a cygwinified path. Ahh.
18159
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18161
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18165
# pw32 DLLs use 'pw' prefix rather than 'lib'
18166
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18172
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18175
dynamic_linker='Win32 ld.exe'
18176
# FIXME: first we should search . and the directory the executable is in
18180
darwin* | rhapsody*)
18181
dynamic_linker="$host_os dyld"
18182
version_type=darwin
18185
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18186
soname_spec='${libname}${release}${major}$shared_ext'
18187
shlibpath_overrides_runpath=yes
18188
shlibpath_var=DYLD_LIBRARY_PATH
18189
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18190
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18191
if test "$GCC" = yes; then
18192
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"`
18194
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18196
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18204
soname_spec='${libname}${release}${shared_ext}$major'
18205
shlibpath_var=LD_LIBRARY_PATH
18216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18217
soname_spec='${libname}${release}${shared_ext}$major'
18218
shlibpath_var=LD_LIBRARY_PATH
18219
shlibpath_overrides_runpath=no
18220
hardcode_into_libs=yes
18221
dynamic_linker='GNU ld.so'
18225
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18226
version_type=freebsd-$objformat
18227
case $version_type in
18229
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18234
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18238
shlibpath_var=LD_LIBRARY_PATH
18241
shlibpath_overrides_runpath=yes
18243
freebsd3.01* | freebsdelf3.01*)
18244
shlibpath_overrides_runpath=yes
18245
hardcode_into_libs=yes
18248
shlibpath_overrides_runpath=no
18249
hardcode_into_libs=yes
18258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18259
soname_spec='${libname}${release}${shared_ext}$major'
18260
shlibpath_var=LD_LIBRARY_PATH
18261
hardcode_into_libs=yes
18264
hpux9* | hpux10* | hpux11*)
18265
# Give a soname corresponding to the major version so that dld.sl refuses to
18266
# link against other versions.
18270
case "$host_cpu" in
18273
hardcode_into_libs=yes
18274
dynamic_linker="$host_os dld.so"
18275
shlibpath_var=LD_LIBRARY_PATH
18276
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278
soname_spec='${libname}${release}${shared_ext}$major'
18279
if test "X$HPUX_IA64_MODE" = X32; then
18280
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18282
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18284
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18288
hardcode_into_libs=yes
18289
dynamic_linker="$host_os dld.sl"
18290
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18291
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293
soname_spec='${libname}${release}${shared_ext}$major'
18294
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18295
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18299
dynamic_linker="$host_os dld.sl"
18300
shlibpath_var=SHLIB_PATH
18301
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18303
soname_spec='${libname}${release}${shared_ext}$major'
18306
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18307
postinstall_cmds='chmod 555 $lib'
18310
irix5* | irix6* | nonstopux*)
18312
nonstopux*) version_type=nonstopux ;;
18314
if test "$lt_cv_prog_gnu_ld" = yes; then
18322
soname_spec='${libname}${release}${shared_ext}$major'
18323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18325
irix5* | nonstopux*)
18326
libsuff= shlibsuff=
18329
case $LD in # libtool.m4 will add one of these switches to LD
18330
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18331
libsuff= shlibsuff= libmagic=32-bit;;
18332
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18333
libsuff=32 shlibsuff=N32 libmagic=N32;;
18334
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18335
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18336
*) libsuff= shlibsuff= libmagic=never-match;;
18340
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18341
shlibpath_overrides_runpath=no
18342
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18343
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18344
hardcode_into_libs=yes
18347
# No shared lib support for Linux oldld, aout, or coff.
18348
linux*oldld* | linux*aout* | linux*coff*)
18352
# This must be Linux ELF.
18357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358
soname_spec='${libname}${release}${shared_ext}$major'
18359
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18360
shlibpath_var=LD_LIBRARY_PATH
18361
shlibpath_overrides_runpath=no
18362
# This implies no fast_install, which is unacceptable.
18363
# Some rework will be needed to allow for fast_install
18364
# before this can be enabled.
18365
hardcode_into_libs=yes
18367
# Append ld.so.conf contents to the search path
18368
if test -f /etc/ld.so.conf; then
18369
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18370
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18373
# We used to test for /lib/ld.so.1 and disable shared libraries on
18374
# powerpc, because MkLinux only supported shared libraries with the
18375
# GNU dynamic linker. Since this was broken with cross compilers,
18376
# most powerpc-linux boxes support dynamic linking these days and
18377
# people can always --disable-shared, the test was removed, and we
18378
# assume the GNU/Linux dynamic linker is in use.
18379
dynamic_linker='GNU/Linux ld.so'
18386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18387
soname_spec='${libname}${release}${shared_ext}$major'
18388
shlibpath_var=LD_LIBRARY_PATH
18389
shlibpath_overrides_runpath=no
18390
hardcode_into_libs=yes
18391
dynamic_linker='GNU ld.so'
18398
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18400
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18401
dynamic_linker='NetBSD (a.out) ld.so'
18403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18404
soname_spec='${libname}${release}${shared_ext}$major'
18405
dynamic_linker='NetBSD ld.elf_so'
18407
shlibpath_var=LD_LIBRARY_PATH
18408
shlibpath_overrides_runpath=yes
18409
hardcode_into_libs=yes
18414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415
shlibpath_var=LD_LIBRARY_PATH
18416
shlibpath_overrides_runpath=yes
18423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18424
soname_spec='${libname}${release}${shared_ext}$major'
18425
shlibpath_var=LD_LIBRARY_PATH
18426
shlibpath_overrides_runpath=yes
18433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18434
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18435
shlibpath_var=LD_LIBRARY_PATH
18436
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18438
openbsd2.[89] | openbsd2.[89].*)
18439
shlibpath_overrides_runpath=no
18442
shlibpath_overrides_runpath=yes
18446
shlibpath_overrides_runpath=yes
18451
libname_spec='$name'
18454
library_names_spec='$libname${shared_ext} $libname.a'
18455
dynamic_linker='OS/2 ld.exe'
18456
shlibpath_var=LIBPATH
18459
osf3* | osf4* | osf5*)
18463
soname_spec='${libname}${release}${shared_ext}$major'
18464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465
shlibpath_var=LD_LIBRARY_PATH
18466
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18467
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18472
soname_spec='${libname}${release}${shared_ext}$major'
18473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474
shlibpath_var=LD_LIBRARY_PATH
18481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18482
soname_spec='${libname}${release}${shared_ext}$major'
18483
shlibpath_var=LD_LIBRARY_PATH
18484
shlibpath_overrides_runpath=yes
18485
hardcode_into_libs=yes
18486
# ldd complains unless libraries are executable
18487
postinstall_cmds='chmod +x $lib'
18492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18493
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18494
shlibpath_var=LD_LIBRARY_PATH
18495
shlibpath_overrides_runpath=yes
18496
if test "$with_gnu_ld" = yes; then
18502
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18505
soname_spec='${libname}${release}${shared_ext}$major'
18506
shlibpath_var=LD_LIBRARY_PATH
18507
case $host_vendor in
18509
shlibpath_overrides_runpath=no
18511
export_dynamic_flag_spec='${wl}-Blargedynsym'
18512
runpath_var=LD_RUN_PATH
18520
shlibpath_overrides_runpath=no
18521
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18527
if test -d /usr/nec ;then
18529
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18530
soname_spec='$libname${shared_ext}.$major'
18531
shlibpath_var=LD_LIBRARY_PATH
18537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538
soname_spec='${libname}${release}${shared_ext}$major'
18539
shlibpath_var=LD_LIBRARY_PATH
18546
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18547
echo "${ECHO_T}$dynamic_linker" >&6
18548
test "$dynamic_linker" = no && can_build_shared=no
18550
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18551
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18552
hardcode_action_GCJ=
18553
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18554
test -n "$runpath_var GCJ" || \
18555
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18557
# We can hardcode non-existant directories.
18558
if test "$hardcode_direct_GCJ" != no &&
18559
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18560
# have to relink, otherwise we might link with an installed library
18561
# when we should be linking with a yet-to-be-installed one
18562
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18563
test "$hardcode_minus_L_GCJ" != no; then
18564
# Linking always hardcodes the temporary library directory.
18565
hardcode_action_GCJ=relink
18567
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18568
hardcode_action_GCJ=immediate
18571
# We cannot hardcode anything, or else we can only hardcode existing
18573
hardcode_action_GCJ=unsupported
18575
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18576
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18578
if test "$hardcode_action_GCJ" = relink; then
18579
# Fast installation is not supported
18580
enable_fast_install=no
18581
elif test "$shlibpath_overrides_runpath" = yes ||
18582
test "$enable_shared" = no; then
18583
# Fast installation is not necessary
18584
enable_fast_install=needless
18589
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18590
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18591
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18592
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18593
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18594
echo "$as_me:$LINENO: result: yes" >&5
18595
echo "${ECHO_T}yes" >&6
18597
# FIXME - insert some real tests, host_os isn't really good enough
18600
if test -n "$STRIP" ; then
18601
striplib="$STRIP -x"
18602
echo "$as_me:$LINENO: result: yes" >&5
18603
echo "${ECHO_T}yes" >&6
18605
echo "$as_me:$LINENO: result: no" >&5
18606
echo "${ECHO_T}no" >&6
18610
echo "$as_me:$LINENO: result: no" >&5
18611
echo "${ECHO_T}no" >&6
18616
if test "x$enable_dlopen" != xyes; then
18617
enable_dlopen=unknown
18618
enable_dlopen_self=unknown
18619
enable_dlopen_self_static=unknown
18626
lt_cv_dlopen="load_add_on"
18628
lt_cv_dlopen_self=yes
18632
lt_cv_dlopen="LoadLibrary"
18637
lt_cv_dlopen="dlopen"
18642
# if libdl is installed we need to link against it
18643
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18644
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18645
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18646
echo $ECHO_N "(cached) $ECHO_C" >&6
18648
ac_check_lib_save_LIBS=$LIBS
18650
cat >conftest.$ac_ext <<_ACEOF
18653
cat confdefs.h >>conftest.$ac_ext
18654
cat >>conftest.$ac_ext <<_ACEOF
18655
/* end confdefs.h. */
18657
/* Override any gcc2 internal prototype to avoid an error. */
18661
/* We use char because int might match the return type of a gcc2
18662
builtin and then its argument prototype would still apply. */
18672
rm -f conftest.$ac_objext conftest$ac_exeext
18673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674
(eval $ac_link) 2>conftest.er1
18676
grep -v '^ *+' conftest.er1 >conftest.err
18678
cat conftest.err >&5
18679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680
(exit $ac_status); } &&
18681
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683
(eval $ac_try) 2>&5
18685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686
(exit $ac_status); }; } &&
18687
{ ac_try='test -s conftest$ac_exeext'
18688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689
(eval $ac_try) 2>&5
18691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692
(exit $ac_status); }; }; then
18693
ac_cv_lib_dl_dlopen=yes
18695
echo "$as_me: failed program was:" >&5
18696
sed 's/^/| /' conftest.$ac_ext >&5
18698
ac_cv_lib_dl_dlopen=no
18700
rm -f conftest.err conftest.$ac_objext \
18701
conftest$ac_exeext conftest.$ac_ext
18702
LIBS=$ac_check_lib_save_LIBS
18704
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18705
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18706
if test $ac_cv_lib_dl_dlopen = yes; then
18707
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18710
lt_cv_dlopen="dyld"
18712
lt_cv_dlopen_self=yes
18719
echo "$as_me:$LINENO: checking for shl_load" >&5
18720
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18721
if test "${ac_cv_func_shl_load+set}" = set; then
18722
echo $ECHO_N "(cached) $ECHO_C" >&6
18724
cat >conftest.$ac_ext <<_ACEOF
18727
cat confdefs.h >>conftest.$ac_ext
18728
cat >>conftest.$ac_ext <<_ACEOF
18729
/* end confdefs.h. */
18730
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18731
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18732
#define shl_load innocuous_shl_load
18734
/* System header to define __stub macros and hopefully few prototypes,
18735
which can conflict with char shl_load (); below.
18736
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737
<limits.h> exists even on freestanding compilers. */
18740
# include <limits.h>
18742
# include <assert.h>
18747
/* Override any gcc2 internal prototype to avoid an error. */
18752
/* We use char because int might match the return type of a gcc2
18753
builtin and then its argument prototype would still apply. */
18755
/* The GNU C library defines this for functions which it implements
18756
to always fail with ENOSYS. Some functions are actually named
18757
something starting with __ and the normal name is an alias. */
18758
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18761
char (*f) () = shl_load;
18770
return f != shl_load;
18775
rm -f conftest.$ac_objext conftest$ac_exeext
18776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18777
(eval $ac_link) 2>conftest.er1
18779
grep -v '^ *+' conftest.er1 >conftest.err
18781
cat conftest.err >&5
18782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783
(exit $ac_status); } &&
18784
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786
(eval $ac_try) 2>&5
18788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789
(exit $ac_status); }; } &&
18790
{ ac_try='test -s conftest$ac_exeext'
18791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792
(eval $ac_try) 2>&5
18794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795
(exit $ac_status); }; }; then
18796
ac_cv_func_shl_load=yes
18798
echo "$as_me: failed program was:" >&5
18799
sed 's/^/| /' conftest.$ac_ext >&5
18801
ac_cv_func_shl_load=no
18803
rm -f conftest.err conftest.$ac_objext \
18804
conftest$ac_exeext conftest.$ac_ext
18806
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18807
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18808
if test $ac_cv_func_shl_load = yes; then
18809
lt_cv_dlopen="shl_load"
18811
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18812
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18813
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18814
echo $ECHO_N "(cached) $ECHO_C" >&6
18816
ac_check_lib_save_LIBS=$LIBS
18818
cat >conftest.$ac_ext <<_ACEOF
18821
cat confdefs.h >>conftest.$ac_ext
18822
cat >>conftest.$ac_ext <<_ACEOF
18823
/* end confdefs.h. */
18825
/* Override any gcc2 internal prototype to avoid an error. */
18829
/* We use char because int might match the return type of a gcc2
18830
builtin and then its argument prototype would still apply. */
18840
rm -f conftest.$ac_objext conftest$ac_exeext
18841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842
(eval $ac_link) 2>conftest.er1
18844
grep -v '^ *+' conftest.er1 >conftest.err
18846
cat conftest.err >&5
18847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848
(exit $ac_status); } &&
18849
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851
(eval $ac_try) 2>&5
18853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854
(exit $ac_status); }; } &&
18855
{ ac_try='test -s conftest$ac_exeext'
18856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857
(eval $ac_try) 2>&5
18859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860
(exit $ac_status); }; }; then
18861
ac_cv_lib_dld_shl_load=yes
18863
echo "$as_me: failed program was:" >&5
18864
sed 's/^/| /' conftest.$ac_ext >&5
18866
ac_cv_lib_dld_shl_load=no
18868
rm -f conftest.err conftest.$ac_objext \
18869
conftest$ac_exeext conftest.$ac_ext
18870
LIBS=$ac_check_lib_save_LIBS
18872
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18873
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18874
if test $ac_cv_lib_dld_shl_load = yes; then
18875
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18877
echo "$as_me:$LINENO: checking for dlopen" >&5
18878
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18879
if test "${ac_cv_func_dlopen+set}" = set; then
18880
echo $ECHO_N "(cached) $ECHO_C" >&6
18882
cat >conftest.$ac_ext <<_ACEOF
18885
cat confdefs.h >>conftest.$ac_ext
18886
cat >>conftest.$ac_ext <<_ACEOF
18887
/* end confdefs.h. */
18888
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18889
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18890
#define dlopen innocuous_dlopen
18892
/* System header to define __stub macros and hopefully few prototypes,
18893
which can conflict with char dlopen (); below.
18894
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18895
<limits.h> exists even on freestanding compilers. */
18898
# include <limits.h>
18900
# include <assert.h>
18905
/* Override any gcc2 internal prototype to avoid an error. */
18910
/* We use char because int might match the return type of a gcc2
18911
builtin and then its argument prototype would still apply. */
18913
/* The GNU C library defines this for functions which it implements
18914
to always fail with ENOSYS. Some functions are actually named
18915
something starting with __ and the normal name is an alias. */
18916
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18919
char (*f) () = dlopen;
18928
return f != dlopen;
18933
rm -f conftest.$ac_objext conftest$ac_exeext
18934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18935
(eval $ac_link) 2>conftest.er1
18937
grep -v '^ *+' conftest.er1 >conftest.err
18939
cat conftest.err >&5
18940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941
(exit $ac_status); } &&
18942
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944
(eval $ac_try) 2>&5
18946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947
(exit $ac_status); }; } &&
18948
{ ac_try='test -s conftest$ac_exeext'
18949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950
(eval $ac_try) 2>&5
18952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953
(exit $ac_status); }; }; then
18954
ac_cv_func_dlopen=yes
18956
echo "$as_me: failed program was:" >&5
18957
sed 's/^/| /' conftest.$ac_ext >&5
18959
ac_cv_func_dlopen=no
18961
rm -f conftest.err conftest.$ac_objext \
18962
conftest$ac_exeext conftest.$ac_ext
18964
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18965
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18966
if test $ac_cv_func_dlopen = yes; then
18967
lt_cv_dlopen="dlopen"
18969
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18970
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18971
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18972
echo $ECHO_N "(cached) $ECHO_C" >&6
18974
ac_check_lib_save_LIBS=$LIBS
18976
cat >conftest.$ac_ext <<_ACEOF
18979
cat confdefs.h >>conftest.$ac_ext
18980
cat >>conftest.$ac_ext <<_ACEOF
18981
/* end confdefs.h. */
18983
/* Override any gcc2 internal prototype to avoid an error. */
18987
/* We use char because int might match the return type of a gcc2
18988
builtin and then its argument prototype would still apply. */
18998
rm -f conftest.$ac_objext conftest$ac_exeext
18999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19000
(eval $ac_link) 2>conftest.er1
19002
grep -v '^ *+' conftest.er1 >conftest.err
19004
cat conftest.err >&5
19005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006
(exit $ac_status); } &&
19007
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009
(eval $ac_try) 2>&5
19011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012
(exit $ac_status); }; } &&
19013
{ ac_try='test -s conftest$ac_exeext'
19014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015
(eval $ac_try) 2>&5
19017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018
(exit $ac_status); }; }; then
19019
ac_cv_lib_dl_dlopen=yes
19021
echo "$as_me: failed program was:" >&5
19022
sed 's/^/| /' conftest.$ac_ext >&5
19024
ac_cv_lib_dl_dlopen=no
19026
rm -f conftest.err conftest.$ac_objext \
19027
conftest$ac_exeext conftest.$ac_ext
19028
LIBS=$ac_check_lib_save_LIBS
19030
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19031
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19032
if test $ac_cv_lib_dl_dlopen = yes; then
19033
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19035
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19036
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19037
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19038
echo $ECHO_N "(cached) $ECHO_C" >&6
19040
ac_check_lib_save_LIBS=$LIBS
19041
LIBS="-lsvld $LIBS"
19042
cat >conftest.$ac_ext <<_ACEOF
19045
cat confdefs.h >>conftest.$ac_ext
19046
cat >>conftest.$ac_ext <<_ACEOF
19047
/* end confdefs.h. */
19049
/* Override any gcc2 internal prototype to avoid an error. */
19053
/* We use char because int might match the return type of a gcc2
19054
builtin and then its argument prototype would still apply. */
19064
rm -f conftest.$ac_objext conftest$ac_exeext
19065
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066
(eval $ac_link) 2>conftest.er1
19068
grep -v '^ *+' conftest.er1 >conftest.err
19070
cat conftest.err >&5
19071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072
(exit $ac_status); } &&
19073
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075
(eval $ac_try) 2>&5
19077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078
(exit $ac_status); }; } &&
19079
{ ac_try='test -s conftest$ac_exeext'
19080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081
(eval $ac_try) 2>&5
19083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084
(exit $ac_status); }; }; then
19085
ac_cv_lib_svld_dlopen=yes
19087
echo "$as_me: failed program was:" >&5
19088
sed 's/^/| /' conftest.$ac_ext >&5
19090
ac_cv_lib_svld_dlopen=no
19092
rm -f conftest.err conftest.$ac_objext \
19093
conftest$ac_exeext conftest.$ac_ext
19094
LIBS=$ac_check_lib_save_LIBS
19096
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19097
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19098
if test $ac_cv_lib_svld_dlopen = yes; then
19099
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19101
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19102
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19103
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19104
echo $ECHO_N "(cached) $ECHO_C" >&6
19106
ac_check_lib_save_LIBS=$LIBS
19108
cat >conftest.$ac_ext <<_ACEOF
19111
cat confdefs.h >>conftest.$ac_ext
19112
cat >>conftest.$ac_ext <<_ACEOF
19113
/* end confdefs.h. */
19115
/* Override any gcc2 internal prototype to avoid an error. */
19119
/* We use char because int might match the return type of a gcc2
19120
builtin and then its argument prototype would still apply. */
19130
rm -f conftest.$ac_objext conftest$ac_exeext
19131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132
(eval $ac_link) 2>conftest.er1
19134
grep -v '^ *+' conftest.er1 >conftest.err
19136
cat conftest.err >&5
19137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138
(exit $ac_status); } &&
19139
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141
(eval $ac_try) 2>&5
19143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144
(exit $ac_status); }; } &&
19145
{ ac_try='test -s conftest$ac_exeext'
19146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147
(eval $ac_try) 2>&5
19149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150
(exit $ac_status); }; }; then
19151
ac_cv_lib_dld_dld_link=yes
19153
echo "$as_me: failed program was:" >&5
19154
sed 's/^/| /' conftest.$ac_ext >&5
19156
ac_cv_lib_dld_dld_link=no
19158
rm -f conftest.err conftest.$ac_objext \
19159
conftest$ac_exeext conftest.$ac_ext
19160
LIBS=$ac_check_lib_save_LIBS
19162
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19163
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19164
if test $ac_cv_lib_dld_dld_link = yes; then
19165
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19186
if test "x$lt_cv_dlopen" != xno; then
19192
case $lt_cv_dlopen in
19194
save_CPPFLAGS="$CPPFLAGS"
19195
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19197
save_LDFLAGS="$LDFLAGS"
19198
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19201
LIBS="$lt_cv_dlopen_libs $LIBS"
19203
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19204
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19205
if test "${lt_cv_dlopen_self+set}" = set; then
19206
echo $ECHO_N "(cached) $ECHO_C" >&6
19208
if test "$cross_compiling" = yes; then :
19209
lt_cv_dlopen_self=cross
19211
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19212
lt_status=$lt_dlunknown
19213
cat > conftest.$ac_ext <<EOF
19214
#line 19214 "configure"
19215
#include "confdefs.h"
19224
# define LT_DLGLOBAL RTLD_GLOBAL
19227
# define LT_DLGLOBAL DL_GLOBAL
19229
# define LT_DLGLOBAL 0
19233
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19234
find out it does not work in some platform. */
19235
#ifndef LT_DLLAZY_OR_NOW
19237
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19240
# define LT_DLLAZY_OR_NOW DL_LAZY
19243
# define LT_DLLAZY_OR_NOW RTLD_NOW
19246
# define LT_DLLAZY_OR_NOW DL_NOW
19248
# define LT_DLLAZY_OR_NOW 0
19256
extern "C" void exit (int);
19259
void fnord() { int i=42;}
19262
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19263
int status = $lt_dlunknown;
19267
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19268
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19269
/* dlclose (self); */
19275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19276
(eval $ac_link) 2>&5
19278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19280
(./conftest; exit; ) 2>/dev/null
19282
case x$lt_status in
19283
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19284
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19285
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19288
# compilation failed
19289
lt_cv_dlopen_self=no
19296
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19297
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19299
if test "x$lt_cv_dlopen_self" = xyes; then
19300
LDFLAGS="$LDFLAGS $link_static_flag"
19301
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19302
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19303
if test "${lt_cv_dlopen_self_static+set}" = set; then
19304
echo $ECHO_N "(cached) $ECHO_C" >&6
19306
if test "$cross_compiling" = yes; then :
19307
lt_cv_dlopen_self_static=cross
19309
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19310
lt_status=$lt_dlunknown
19311
cat > conftest.$ac_ext <<EOF
19312
#line 19312 "configure"
19313
#include "confdefs.h"
19322
# define LT_DLGLOBAL RTLD_GLOBAL
19325
# define LT_DLGLOBAL DL_GLOBAL
19327
# define LT_DLGLOBAL 0
19331
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19332
find out it does not work in some platform. */
19333
#ifndef LT_DLLAZY_OR_NOW
19335
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19338
# define LT_DLLAZY_OR_NOW DL_LAZY
19341
# define LT_DLLAZY_OR_NOW RTLD_NOW
19344
# define LT_DLLAZY_OR_NOW DL_NOW
19346
# define LT_DLLAZY_OR_NOW 0
19354
extern "C" void exit (int);
19357
void fnord() { int i=42;}
19360
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19361
int status = $lt_dlunknown;
19365
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19366
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19367
/* dlclose (self); */
19373
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19374
(eval $ac_link) 2>&5
19376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19378
(./conftest; exit; ) 2>/dev/null
19380
case x$lt_status in
19381
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19382
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19383
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19386
# compilation failed
19387
lt_cv_dlopen_self_static=no
19394
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19395
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19398
CPPFLAGS="$save_CPPFLAGS"
19399
LDFLAGS="$save_LDFLAGS"
19404
case $lt_cv_dlopen_self in
19405
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19406
*) enable_dlopen_self=unknown ;;
19409
case $lt_cv_dlopen_self_static in
19410
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19411
*) enable_dlopen_self_static=unknown ;;
19416
# The else clause should only fire when bootstrapping the
19417
# libtool distribution, otherwise you forgot to ship ltmain.sh
19418
# with your package, and you will get complaints that there are
19419
# no rules to generate ltmain.sh.
19420
if test -f "$ltmain"; then
19421
# See if we are running on zsh, and set the options which allow our commands through
19422
# without removal of \ escapes.
19423
if test -n "${ZSH_VERSION+set}" ; then
19424
setopt NO_GLOB_SUBST
19426
# Now quote all the things that may contain metacharacters while being
19427
# careful not to overquote the AC_SUBSTed values. We take copies of the
19428
# variables and quote the copies for generation of the libtool script.
19429
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19431
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19432
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19433
deplibs_check_method reload_flag reload_cmds need_locks \
19434
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19435
lt_cv_sys_global_symbol_to_c_name_address \
19436
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19437
old_postinstall_cmds old_postuninstall_cmds \
19441
lt_prog_compiler_wl_GCJ \
19442
lt_prog_compiler_pic_GCJ \
19443
lt_prog_compiler_static_GCJ \
19444
lt_prog_compiler_no_builtin_flag_GCJ \
19445
export_dynamic_flag_spec_GCJ \
19446
thread_safe_flag_spec_GCJ \
19447
whole_archive_flag_spec_GCJ \
19448
enable_shared_with_static_runtimes_GCJ \
19449
old_archive_cmds_GCJ \
19450
old_archive_from_new_cmds_GCJ \
19451
predep_objects_GCJ \
19452
postdep_objects_GCJ \
19455
compiler_lib_search_path_GCJ \
19457
archive_expsym_cmds_GCJ \
19458
postinstall_cmds_GCJ \
19459
postuninstall_cmds_GCJ \
19460
old_archive_from_expsyms_cmds_GCJ \
19461
allow_undefined_flag_GCJ \
19462
no_undefined_flag_GCJ \
19463
export_symbols_cmds_GCJ \
19464
hardcode_libdir_flag_spec_GCJ \
19465
hardcode_libdir_flag_spec_ld_GCJ \
19466
hardcode_libdir_separator_GCJ \
19467
hardcode_automatic_GCJ \
19469
module_expsym_cmds_GCJ \
19470
lt_cv_prog_compiler_c_o_GCJ \
19471
exclude_expsyms_GCJ \
19472
include_expsyms_GCJ; do
19475
old_archive_cmds_GCJ | \
19476
old_archive_from_new_cmds_GCJ | \
19477
archive_cmds_GCJ | \
19478
archive_expsym_cmds_GCJ | \
19479
module_cmds_GCJ | \
19480
module_expsym_cmds_GCJ | \
19481
old_archive_from_expsyms_cmds_GCJ | \
19482
export_symbols_cmds_GCJ | \
19483
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19484
postinstall_cmds | postuninstall_cmds | \
19485
old_postinstall_cmds | old_postuninstall_cmds | \
19486
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19487
# Double-quote double-evaled strings.
19488
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19491
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19497
*'\$0 --fallback-echo"')
19498
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19504
cat <<__EOF__ >> "$cfgfile"
19505
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19507
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19509
# Shell to use when invoking shell scripts.
19512
# Whether or not to build shared libraries.
19513
build_libtool_libs=$enable_shared
19515
# Whether or not to build static libraries.
19516
build_old_libs=$enable_static
19518
# Whether or not to add -lc for building shared libraries.
19519
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19521
# Whether or not to disallow shared libs when runtime libs are static
19522
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19524
# Whether or not to optimize for fast installation.
19525
fast_install=$enable_fast_install
19528
host_alias=$host_alias
19531
# An echo program that does not interpret backslashes.
19536
AR_FLAGS=$lt_AR_FLAGS
19541
# A language-specific compiler.
19542
CC=$lt_compiler_GCJ
19544
# Is the compiler the GNU C compiler?
19550
# The linker used to build libraries.
19553
# Whether we need hard or soft links.
19556
# A BSD-compatible nm program.
19559
# A symbol stripping program
19562
# Used to examine libraries when file_magic_cmd begins "file"
19563
MAGIC_CMD=$MAGIC_CMD
19565
# Used on cygwin: DLL creation program.
19568
# Used on cygwin: object dumper.
19571
# Used on cygwin: assembler.
19574
# The name of the directory that contains temporary libtool files.
19577
# How to create reloadable object files.
19578
reload_flag=$lt_reload_flag
19579
reload_cmds=$lt_reload_cmds
19581
# How to pass a linker flag through the compiler.
19582
wl=$lt_lt_prog_compiler_wl_GCJ
19584
# Object file suffix (normally "o").
19585
objext="$ac_objext"
19587
# Old archive suffix (normally "a").
19590
# Shared library suffix (normally ".so").
19591
shrext_cmds='$shrext_cmds'
19593
# Executable file suffix (normally "").
19596
# Additional compiler flags for building library objects.
19597
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19600
# What is the maximum length of a command?
19601
max_cmd_len=$lt_cv_sys_max_cmd_len
19603
# Does compiler simultaneously support -c and -o options?
19604
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19606
# Must we lock files when doing compilation ?
19607
need_locks=$lt_need_locks
19609
# Do we need the lib prefix for modules?
19610
need_lib_prefix=$need_lib_prefix
19612
# Do we need a version for libraries?
19613
need_version=$need_version
19615
# Whether dlopen is supported.
19616
dlopen_support=$enable_dlopen
19618
# Whether dlopen of programs is supported.
19619
dlopen_self=$enable_dlopen_self
19621
# Whether dlopen of statically linked programs is supported.
19622
dlopen_self_static=$enable_dlopen_self_static
19624
# Compiler flag to prevent dynamic linking.
19625
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19627
# Compiler flag to turn off builtin functions.
19628
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19630
# Compiler flag to allow reflexive dlopens.
19631
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19633
# Compiler flag to generate shared objects directly from archives.
19634
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19636
# Compiler flag to generate thread-safe objects.
19637
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19639
# Library versioning type.
19640
version_type=$version_type
19642
# Format of library name prefix.
19643
libname_spec=$lt_libname_spec
19645
# List of archive names. First name is the real one, the rest are links.
19646
# The last name is the one that the linker finds with -lNAME.
19647
library_names_spec=$lt_library_names_spec
19649
# The coded name of the library, if different from the real name.
19650
soname_spec=$lt_soname_spec
19652
# Commands used to build and install an old-style archive.
19654
old_archive_cmds=$lt_old_archive_cmds_GCJ
19655
old_postinstall_cmds=$lt_old_postinstall_cmds
19656
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19658
# Create an old-style archive from a shared archive.
19659
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19661
# Create a temporary old-style archive to link instead of a shared archive.
19662
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19664
# Commands used to build and install a shared archive.
19665
archive_cmds=$lt_archive_cmds_GCJ
19666
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19667
postinstall_cmds=$lt_postinstall_cmds
19668
postuninstall_cmds=$lt_postuninstall_cmds
19670
# Commands used to build a loadable module (assumed same as above if empty)
19671
module_cmds=$lt_module_cmds_GCJ
19672
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19674
# Commands to strip libraries.
19675
old_striplib=$lt_old_striplib
19676
striplib=$lt_striplib
19678
# Dependencies to place before the objects being linked to create a
19680
predep_objects=$lt_predep_objects_GCJ
19682
# Dependencies to place after the objects being linked to create a
19684
postdep_objects=$lt_postdep_objects_GCJ
19686
# Dependencies to place before the objects being linked to create a
19688
predeps=$lt_predeps_GCJ
19690
# Dependencies to place after the objects being linked to create a
19692
postdeps=$lt_postdeps_GCJ
19694
# The library search path used internally by the compiler when linking
19695
# a shared library.
19696
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19698
# Method to check whether dependent libraries are shared objects.
19699
deplibs_check_method=$lt_deplibs_check_method
19701
# Command to use when deplibs_check_method == file_magic.
19702
file_magic_cmd=$lt_file_magic_cmd
19704
# Flag that allows shared libraries with undefined symbols to be built.
19705
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19707
# Flag that forces no undefined symbols.
19708
no_undefined_flag=$lt_no_undefined_flag_GCJ
19710
# Commands used to finish a libtool library installation in a directory.
19711
finish_cmds=$lt_finish_cmds
19713
# Same as above, but a single script fragment to be evaled but not shown.
19714
finish_eval=$lt_finish_eval
19716
# Take the output of nm and produce a listing of raw symbols and C names.
19717
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19719
# Transform the output of nm in a proper C declaration
19720
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19722
# Transform the output of nm in a C name address pair
19723
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19725
# This is the shared library runtime path variable.
19726
runpath_var=$runpath_var
19728
# This is the shared library path variable.
19729
shlibpath_var=$shlibpath_var
19731
# Is shlibpath searched before the hard-coded library search path?
19732
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19734
# How to hardcode a shared library path into an executable.
19735
hardcode_action=$hardcode_action_GCJ
19737
# Whether we should hardcode library paths into libraries.
19738
hardcode_into_libs=$hardcode_into_libs
19740
# Flag to hardcode \$libdir into a binary during linking.
19741
# This must work even if \$libdir does not exist.
19742
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19744
# If ld is used when linking, flag to hardcode \$libdir into
19745
# a binary during linking. This must work even if \$libdir does
19747
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19749
# Whether we need a single -rpath flag with a separated argument.
19750
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19752
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19753
# resulting binary.
19754
hardcode_direct=$hardcode_direct_GCJ
19756
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19757
# resulting binary.
19758
hardcode_minus_L=$hardcode_minus_L_GCJ
19760
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19761
# the resulting binary.
19762
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19764
# Set to yes if building a shared library automatically hardcodes DIR into the library
19765
# and all subsequent libraries and executables linked against it.
19766
hardcode_automatic=$hardcode_automatic_GCJ
19768
# Variables whose values should be saved in libtool wrapper scripts and
19769
# restored at relink time.
19770
variables_saved_for_relink="$variables_saved_for_relink"
19772
# Whether libtool must link a program against all its dependency libraries.
19773
link_all_deplibs=$link_all_deplibs_GCJ
19775
# Compile-time system search path for libraries
19776
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19778
# Run-time system search path for libraries
19779
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19781
# Fix the shell variable \$srcfile for the compiler.
19782
fix_srcfile_path="$fix_srcfile_path_GCJ"
19784
# Set to yes if exported symbols are required.
19785
always_export_symbols=$always_export_symbols_GCJ
19787
# The commands to list exported symbols.
19788
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19790
# The commands to extract the exported symbol list from a shared archive.
19791
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19793
# Symbols that should not be listed in the preloaded symbols.
19794
exclude_expsyms=$lt_exclude_expsyms_GCJ
19796
# Symbols that must always be exported.
19797
include_expsyms=$lt_include_expsyms_GCJ
19799
# ### END LIBTOOL TAG CONFIG: $tagname
19805
# If there is no Makefile yet, we rely on a make rule to execute
19806
# `config.status --recheck' to rerun these tests and create the
19807
# libtool script then.
19808
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19809
if test -f "$ltmain_in"; then
19810
test -f Makefile && make "$ltmain"
19816
ac_cpp='$CPP $CPPFLAGS'
19817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19832
# Source file extension for RC test sources.
19835
# Object file extension for compiled RC test sources.
19839
# Code to be used in simple compile tests
19840
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19842
# Code to be used in simple link tests
19843
lt_simple_link_test_code="$lt_simple_compile_test_code"
19845
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19847
# If no C compiler was specified, use CC.
19850
# Allow CC to be a program name with arguments.
19854
# Allow CC to be a program name with arguments.
19859
lt_cv_prog_compiler_c_o_RC=yes
19861
# The else clause should only fire when bootstrapping the
19862
# libtool distribution, otherwise you forgot to ship ltmain.sh
19863
# with your package, and you will get complaints that there are
19864
# no rules to generate ltmain.sh.
19865
if test -f "$ltmain"; then
19866
# See if we are running on zsh, and set the options which allow our commands through
19867
# without removal of \ escapes.
19868
if test -n "${ZSH_VERSION+set}" ; then
19869
setopt NO_GLOB_SUBST
19871
# Now quote all the things that may contain metacharacters while being
19872
# careful not to overquote the AC_SUBSTed values. We take copies of the
19873
# variables and quote the copies for generation of the libtool script.
19874
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19876
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19877
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19878
deplibs_check_method reload_flag reload_cmds need_locks \
19879
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19880
lt_cv_sys_global_symbol_to_c_name_address \
19881
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19882
old_postinstall_cmds old_postuninstall_cmds \
19886
lt_prog_compiler_wl_RC \
19887
lt_prog_compiler_pic_RC \
19888
lt_prog_compiler_static_RC \
19889
lt_prog_compiler_no_builtin_flag_RC \
19890
export_dynamic_flag_spec_RC \
19891
thread_safe_flag_spec_RC \
19892
whole_archive_flag_spec_RC \
19893
enable_shared_with_static_runtimes_RC \
19894
old_archive_cmds_RC \
19895
old_archive_from_new_cmds_RC \
19896
predep_objects_RC \
19897
postdep_objects_RC \
19900
compiler_lib_search_path_RC \
19902
archive_expsym_cmds_RC \
19903
postinstall_cmds_RC \
19904
postuninstall_cmds_RC \
19905
old_archive_from_expsyms_cmds_RC \
19906
allow_undefined_flag_RC \
19907
no_undefined_flag_RC \
19908
export_symbols_cmds_RC \
19909
hardcode_libdir_flag_spec_RC \
19910
hardcode_libdir_flag_spec_ld_RC \
19911
hardcode_libdir_separator_RC \
19912
hardcode_automatic_RC \
19914
module_expsym_cmds_RC \
19915
lt_cv_prog_compiler_c_o_RC \
19916
exclude_expsyms_RC \
19917
include_expsyms_RC; do
19920
old_archive_cmds_RC | \
19921
old_archive_from_new_cmds_RC | \
19922
archive_cmds_RC | \
19923
archive_expsym_cmds_RC | \
19925
module_expsym_cmds_RC | \
19926
old_archive_from_expsyms_cmds_RC | \
19927
export_symbols_cmds_RC | \
19928
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19929
postinstall_cmds | postuninstall_cmds | \
19930
old_postinstall_cmds | old_postuninstall_cmds | \
19931
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19932
# Double-quote double-evaled strings.
19933
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19936
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19942
*'\$0 --fallback-echo"')
19943
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19949
cat <<__EOF__ >> "$cfgfile"
19950
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19952
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19954
# Shell to use when invoking shell scripts.
19957
# Whether or not to build shared libraries.
19958
build_libtool_libs=$enable_shared
19960
# Whether or not to build static libraries.
19961
build_old_libs=$enable_static
19963
# Whether or not to add -lc for building shared libraries.
19964
build_libtool_need_lc=$archive_cmds_need_lc_RC
19966
# Whether or not to disallow shared libs when runtime libs are static
19967
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19969
# Whether or not to optimize for fast installation.
19970
fast_install=$enable_fast_install
19973
host_alias=$host_alias
19976
# An echo program that does not interpret backslashes.
19981
AR_FLAGS=$lt_AR_FLAGS
19986
# A language-specific compiler.
19989
# Is the compiler the GNU C compiler?
19995
# The linker used to build libraries.
19998
# Whether we need hard or soft links.
20001
# A BSD-compatible nm program.
20004
# A symbol stripping program
20007
# Used to examine libraries when file_magic_cmd begins "file"
20008
MAGIC_CMD=$MAGIC_CMD
20010
# Used on cygwin: DLL creation program.
20013
# Used on cygwin: object dumper.
20016
# Used on cygwin: assembler.
20019
# The name of the directory that contains temporary libtool files.
20022
# How to create reloadable object files.
20023
reload_flag=$lt_reload_flag
20024
reload_cmds=$lt_reload_cmds
20026
# How to pass a linker flag through the compiler.
20027
wl=$lt_lt_prog_compiler_wl_RC
20029
# Object file suffix (normally "o").
20030
objext="$ac_objext"
20032
# Old archive suffix (normally "a").
20035
# Shared library suffix (normally ".so").
20036
shrext_cmds='$shrext_cmds'
20038
# Executable file suffix (normally "").
20041
# Additional compiler flags for building library objects.
20042
pic_flag=$lt_lt_prog_compiler_pic_RC
20045
# What is the maximum length of a command?
20046
max_cmd_len=$lt_cv_sys_max_cmd_len
20048
# Does compiler simultaneously support -c and -o options?
20049
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20051
# Must we lock files when doing compilation ?
20052
need_locks=$lt_need_locks
20054
# Do we need the lib prefix for modules?
20055
need_lib_prefix=$need_lib_prefix
20057
# Do we need a version for libraries?
20058
need_version=$need_version
20060
# Whether dlopen is supported.
20061
dlopen_support=$enable_dlopen
20063
# Whether dlopen of programs is supported.
20064
dlopen_self=$enable_dlopen_self
20066
# Whether dlopen of statically linked programs is supported.
20067
dlopen_self_static=$enable_dlopen_self_static
20069
# Compiler flag to prevent dynamic linking.
20070
link_static_flag=$lt_lt_prog_compiler_static_RC
20072
# Compiler flag to turn off builtin functions.
20073
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20075
# Compiler flag to allow reflexive dlopens.
20076
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20078
# Compiler flag to generate shared objects directly from archives.
20079
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20081
# Compiler flag to generate thread-safe objects.
20082
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20084
# Library versioning type.
20085
version_type=$version_type
20087
# Format of library name prefix.
20088
libname_spec=$lt_libname_spec
20090
# List of archive names. First name is the real one, the rest are links.
20091
# The last name is the one that the linker finds with -lNAME.
20092
library_names_spec=$lt_library_names_spec
20094
# The coded name of the library, if different from the real name.
20095
soname_spec=$lt_soname_spec
20097
# Commands used to build and install an old-style archive.
20099
old_archive_cmds=$lt_old_archive_cmds_RC
20100
old_postinstall_cmds=$lt_old_postinstall_cmds
20101
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20103
# Create an old-style archive from a shared archive.
20104
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20106
# Create a temporary old-style archive to link instead of a shared archive.
20107
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20109
# Commands used to build and install a shared archive.
20110
archive_cmds=$lt_archive_cmds_RC
20111
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20112
postinstall_cmds=$lt_postinstall_cmds
20113
postuninstall_cmds=$lt_postuninstall_cmds
20115
# Commands used to build a loadable module (assumed same as above if empty)
20116
module_cmds=$lt_module_cmds_RC
20117
module_expsym_cmds=$lt_module_expsym_cmds_RC
20119
# Commands to strip libraries.
20120
old_striplib=$lt_old_striplib
20121
striplib=$lt_striplib
20123
# Dependencies to place before the objects being linked to create a
20125
predep_objects=$lt_predep_objects_RC
20127
# Dependencies to place after the objects being linked to create a
20129
postdep_objects=$lt_postdep_objects_RC
20131
# Dependencies to place before the objects being linked to create a
20133
predeps=$lt_predeps_RC
20135
# Dependencies to place after the objects being linked to create a
20137
postdeps=$lt_postdeps_RC
20139
# The library search path used internally by the compiler when linking
20140
# a shared library.
20141
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20143
# Method to check whether dependent libraries are shared objects.
20144
deplibs_check_method=$lt_deplibs_check_method
20146
# Command to use when deplibs_check_method == file_magic.
20147
file_magic_cmd=$lt_file_magic_cmd
20149
# Flag that allows shared libraries with undefined symbols to be built.
20150
allow_undefined_flag=$lt_allow_undefined_flag_RC
20152
# Flag that forces no undefined symbols.
20153
no_undefined_flag=$lt_no_undefined_flag_RC
20155
# Commands used to finish a libtool library installation in a directory.
20156
finish_cmds=$lt_finish_cmds
20158
# Same as above, but a single script fragment to be evaled but not shown.
20159
finish_eval=$lt_finish_eval
20161
# Take the output of nm and produce a listing of raw symbols and C names.
20162
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20164
# Transform the output of nm in a proper C declaration
20165
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20167
# Transform the output of nm in a C name address pair
20168
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20170
# This is the shared library runtime path variable.
20171
runpath_var=$runpath_var
20173
# This is the shared library path variable.
20174
shlibpath_var=$shlibpath_var
20176
# Is shlibpath searched before the hard-coded library search path?
20177
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20179
# How to hardcode a shared library path into an executable.
20180
hardcode_action=$hardcode_action_RC
20182
# Whether we should hardcode library paths into libraries.
20183
hardcode_into_libs=$hardcode_into_libs
20185
# Flag to hardcode \$libdir into a binary during linking.
20186
# This must work even if \$libdir does not exist.
20187
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20189
# If ld is used when linking, flag to hardcode \$libdir into
20190
# a binary during linking. This must work even if \$libdir does
20192
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20194
# Whether we need a single -rpath flag with a separated argument.
20195
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20197
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20198
# resulting binary.
20199
hardcode_direct=$hardcode_direct_RC
20201
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20202
# resulting binary.
20203
hardcode_minus_L=$hardcode_minus_L_RC
20205
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20206
# the resulting binary.
20207
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20209
# Set to yes if building a shared library automatically hardcodes DIR into the library
20210
# and all subsequent libraries and executables linked against it.
20211
hardcode_automatic=$hardcode_automatic_RC
20213
# Variables whose values should be saved in libtool wrapper scripts and
20214
# restored at relink time.
20215
variables_saved_for_relink="$variables_saved_for_relink"
20217
# Whether libtool must link a program against all its dependency libraries.
20218
link_all_deplibs=$link_all_deplibs_RC
20220
# Compile-time system search path for libraries
20221
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20223
# Run-time system search path for libraries
20224
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20226
# Fix the shell variable \$srcfile for the compiler.
20227
fix_srcfile_path="$fix_srcfile_path_RC"
20229
# Set to yes if exported symbols are required.
20230
always_export_symbols=$always_export_symbols_RC
20232
# The commands to list exported symbols.
20233
export_symbols_cmds=$lt_export_symbols_cmds_RC
20235
# The commands to extract the exported symbol list from a shared archive.
20236
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20238
# Symbols that should not be listed in the preloaded symbols.
20239
exclude_expsyms=$lt_exclude_expsyms_RC
20241
# Symbols that must always be exported.
20242
include_expsyms=$lt_include_expsyms_RC
20244
# ### END LIBTOOL TAG CONFIG: $tagname
20250
# If there is no Makefile yet, we rely on a make rule to execute
20251
# `config.status --recheck' to rerun these tests and create the
20252
# libtool script then.
20253
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20254
if test -f "$ltmain_in"; then
20255
test -f Makefile && make "$ltmain"
20261
ac_cpp='$CPP $CPPFLAGS'
20262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20272
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20273
{ (exit 1); exit 1; }; }
20277
# Append the new tag name to the list of available tags.
20278
if test -n "$tagname" ; then
20279
available_tags="$available_tags $tagname"
20285
# Now substitute the updated list of available tags.
20286
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20287
mv "${ofile}T" "$ofile"
20291
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20292
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20293
{ (exit 1); exit 1; }; }
20299
# This can be used to rebuild libtool when needed
20300
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20302
# Always use our own libtool.
20303
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20305
# Prevent multiple expansion
20327
ac_config_files="$ac_config_files Makefile src/Makefile src/server/Makefile src/modules/Makefile src/c/Makefile src/c/api/Makefile src/c/clients/Makefile src/c/clients/say/Makefile src/tests/Makefile src/audio/Makefile config/Makefile config/modules/Makefile config/clients/Makefile doc/Makefile"
20328
cat >confcache <<\_ACEOF
20329
# This file is a shell script that caches the results of configure
20330
# tests run on this system so they can be shared between configure
20331
# scripts and configure runs, see configure's option --config-cache.
20332
# It is not useful on other systems. If it contains results you don't
20333
# want to keep, you may remove or edit it.
20335
# config.status only pays attention to the cache file if you give it
20336
# the --recheck option to rerun configure.
20338
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20339
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20340
# following values.
20344
# The following way of writing the cache mishandles newlines in values,
20345
# but we know of no workaround that is simple, portable, and efficient.
20346
# So, don't put newlines in cache variables' values.
20347
# Ultrix sh set writes to stderr and can't be redirected directly,
20348
# and sets the high bit in the cache file unless we assign to the vars.
20351
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20353
# `set' does not quote correctly, so add quotes (double-quote
20354
# substitution turns \\\\ into \\, and sed turns \\ into \).
20357
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20360
# `set' quotes correctly as required by POSIX, so do not add quotes.
20362
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20369
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20371
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20373
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20374
if test -w $cache_file; then
20375
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20376
cat confcache >$cache_file
20378
echo "not updating unwritable cache $cache_file"
20383
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20384
# Let make expand exec_prefix.
20385
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20387
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20388
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20389
# trailing colons and then remove the whole line if VPATH becomes empty
20390
# (actually we leave an empty line to preserve line numbers).
20391
if test "x$srcdir" = x.; then
20392
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20393
s/:*\$(srcdir):*/:/;
20394
s/:*\${srcdir}:*/:/;
20396
s/^\([^=]*=[ ]*\):*/\1/;
20402
DEFS=-DHAVE_CONFIG_H
20406
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20407
# 1. Remove the extension, and $U if already installed.
20408
ac_i=`echo "$ac_i" |
20409
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20411
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20412
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20414
LIBOBJS=$ac_libobjs
20416
LTLIBOBJS=$ac_ltlibobjs
20419
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20420
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20421
Usually this means the macro was only invoked conditionally." >&5
20422
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20423
Usually this means the macro was only invoked conditionally." >&2;}
20424
{ (exit 1); exit 1; }; }
20426
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20427
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20428
Usually this means the macro was only invoked conditionally." >&5
20429
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20430
Usually this means the macro was only invoked conditionally." >&2;}
20431
{ (exit 1); exit 1; }; }
20433
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20434
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20435
Usually this means the macro was only invoked conditionally." >&5
20436
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20437
Usually this means the macro was only invoked conditionally." >&2;}
20438
{ (exit 1); exit 1; }; }
20441
: ${CONFIG_STATUS=./config.status}
20442
ac_clean_files_save=$ac_clean_files
20443
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20444
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20445
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20446
cat >$CONFIG_STATUS <<_ACEOF
20448
# Generated by $as_me.
20449
# Run this file to recreate the current configuration.
20450
# Compiler output produced by configure, useful for debugging
20451
# configure, is in config.log if it exists.
20454
ac_cs_recheck=false
20456
SHELL=\${CONFIG_SHELL-$SHELL}
20459
cat >>$CONFIG_STATUS <<\_ACEOF
20460
## --------------------- ##
20461
## M4sh Initialization. ##
20462
## --------------------- ##
20464
# Be Bourne compatible
20465
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20468
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20469
# is contrary to our usage. Disable this feature.
20470
alias -g '${1+"$@"}'='"$@"'
20471
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20474
DUALCASE=1; export DUALCASE # for MKS sh
20476
# Support unset when possible.
20477
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20484
# Work around bugs in pre-3.0 UWIN ksh.
20485
$as_unset ENV MAIL MAILPATH
20492
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20493
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20494
LC_TELEPHONE LC_TIME
20496
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20497
eval $as_var=C; export $as_var
20503
# Required to use basename.
20504
if expr a : '\(a\)' >/dev/null 2>&1; then
20510
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20511
as_basename=basename
20517
# Name of the executable.
20518
as_me=`$as_basename "$0" ||
20519
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20520
X"$0" : 'X\(//\)$' \| \
20521
X"$0" : 'X\(/\)$' \| \
20522
. : '\(.\)' 2>/dev/null ||
20524
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20525
/^X\/\(\/\/\)$/{ s//\1/; q; }
20526
/^X\/\(\/\).*/{ s//\1/; q; }
20530
# PATH needs CR, and LINENO needs CR and PATH.
20531
# Avoid depending upon Character Ranges.
20532
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20533
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20534
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20535
as_cr_digits='0123456789'
20536
as_cr_alnum=$as_cr_Letters$as_cr_digits
20538
# The user is always right.
20539
if test "${PATH_SEPARATOR+set}" != set; then
20540
echo "#! /bin/sh" >conf$$.sh
20541
echo "exit 0" >>conf$$.sh
20543
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20552
as_lineno_1=$LINENO
20553
as_lineno_2=$LINENO
20554
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20555
test "x$as_lineno_1" != "x$as_lineno_2" &&
20556
test "x$as_lineno_3" = "x$as_lineno_2" || {
20557
# Find who we are. Look in the path if we contain no path at all
20560
*[\\/]* ) as_myself=$0 ;;
20561
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562
for as_dir in $PATH
20565
test -z "$as_dir" && as_dir=.
20566
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20571
# We did not find ourselves, most probably we were run as `sh COMMAND'
20572
# in which case we are not to be found in the path.
20573
if test "x$as_myself" = x; then
20576
if test ! -f "$as_myself"; then
20577
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20578
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20579
{ (exit 1); exit 1; }; }
20581
case $CONFIG_SHELL in
20583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20584
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20587
test -z "$as_dir" && as_dir=.
20588
for as_base in sh bash ksh sh5; do
20591
if ("$as_dir/$as_base" -c '
20592
as_lineno_1=$LINENO
20593
as_lineno_2=$LINENO
20594
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20595
test "x$as_lineno_1" != "x$as_lineno_2" &&
20596
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20597
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20598
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20599
CONFIG_SHELL=$as_dir/$as_base
20600
export CONFIG_SHELL
20601
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20609
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20610
# uniformly replaced by the line number. The first 'sed' inserts a
20611
# line-number line before each line; the second 'sed' does the real
20612
# work. The second script uses 'N' to pair each line-number line
20613
# with the numbered line, and appends trailing '-' during
20614
# substitution so that $LINENO is not a special case at line end.
20615
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20616
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20617
sed '=' <$as_myself |
20622
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20625
s,^['$as_cr_digits']*\n,,
20626
' >$as_me.lineno &&
20627
chmod +x $as_me.lineno ||
20628
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20629
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20630
{ (exit 1); exit 1; }; }
20632
# Don't try to exec as it changes $[0], causing all sort of problems
20633
# (the dirname of $[0] is not the place where we might find the
20634
# original and so on. Autoconf is especially sensible to this).
20636
# Exit status is that of the last command.
20641
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20642
*c*,-n*) ECHO_N= ECHO_C='
20644
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20645
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20648
if expr a : '\(a\)' >/dev/null 2>&1; then
20654
rm -f conf$$ conf$$.exe conf$$.file
20656
if ln -s conf$$.file conf$$ 2>/dev/null; then
20657
# We could just check for DJGPP; but this test a) works b) is more generic
20658
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20659
if test -f conf$$.exe; then
20660
# Don't use ln at all; we don't have any links
20665
elif ln conf$$.file conf$$ 2>/dev/null; then
20670
rm -f conf$$ conf$$.exe conf$$.file
20672
if mkdir -p . 2>/dev/null; then
20675
test -d ./-p && rmdir ./-p
20679
as_executable_p="test -f"
20681
# Sed expression to map a string onto a valid CPP name.
20682
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20684
# Sed expression to map a string onto a valid variable name.
20685
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20689
# We need space, tab and new line, in precisely that order.
20699
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20700
# report actual input values of CONFIG_FILES etc. instead of their
20701
# values after options handling. Logging --version etc. is OK.
20705
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20706
## Running $as_me. ##
20711
This file was extended by $as_me, which was
20712
generated by GNU Autoconf 2.59. Invocation command line was
20714
CONFIG_FILES = $CONFIG_FILES
20715
CONFIG_HEADERS = $CONFIG_HEADERS
20716
CONFIG_LINKS = $CONFIG_LINKS
20717
CONFIG_COMMANDS = $CONFIG_COMMANDS
20721
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20725
# Files that config.status was made for.
20726
if test -n "$ac_config_files"; then
20727
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20730
if test -n "$ac_config_headers"; then
20731
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20734
if test -n "$ac_config_links"; then
20735
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20738
if test -n "$ac_config_commands"; then
20739
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20742
cat >>$CONFIG_STATUS <<\_ACEOF
20745
\`$as_me' instantiates files from templates according to the
20746
current configuration.
20748
Usage: $0 [OPTIONS] [FILE]...
20750
-h, --help print this help, then exit
20751
-V, --version print version number, then exit
20752
-q, --quiet do not print progress messages
20753
-d, --debug don't remove temporary files
20754
--recheck update $as_me by reconfiguring in the same conditions
20755
--file=FILE[:TEMPLATE]
20756
instantiate the configuration file FILE
20757
--header=FILE[:TEMPLATE]
20758
instantiate the configuration header FILE
20760
Configuration files:
20763
Configuration headers:
20766
Configuration commands:
20769
Report bugs to <bug-autoconf@gnu.org>."
20772
cat >>$CONFIG_STATUS <<_ACEOF
20775
configured by $0, generated by GNU Autoconf 2.59,
20776
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20778
Copyright (C) 2003 Free Software Foundation, Inc.
20779
This config.status script is free software; the Free Software Foundation
20780
gives unlimited permission to copy, distribute and modify it."
20785
cat >>$CONFIG_STATUS <<\_ACEOF
20786
# If no file are specified by the user, then we need to provide default
20787
# value. By we need to know if files were specified by the user.
20793
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20794
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20802
*) # This is not an option, so the user has probably given explicit
20805
ac_need_defaults=false;;
20809
# Handling of the options.
20811
cat >>$CONFIG_STATUS <<\_ACEOF
20812
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20814
--version | --vers* | -V )
20815
echo "$ac_cs_version"; exit 0 ;;
20817
# Conflict between --help and --header
20818
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20819
Try \`$0 --help' for more information." >&5
20820
echo "$as_me: error: ambiguous option: $1
20821
Try \`$0 --help' for more information." >&2;}
20822
{ (exit 1); exit 1; }; };;
20823
--help | --hel | -h )
20824
echo "$ac_cs_usage"; exit 0 ;;
20825
--debug | --d* | -d )
20827
--file | --fil | --fi | --f )
20829
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20830
ac_need_defaults=false;;
20831
--header | --heade | --head | --hea )
20833
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20834
ac_need_defaults=false;;
20835
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20836
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20839
# This is an error.
20840
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20841
Try \`$0 --help' for more information." >&5
20842
echo "$as_me: error: unrecognized option: $1
20843
Try \`$0 --help' for more information." >&2;}
20844
{ (exit 1); exit 1; }; } ;;
20846
*) ac_config_targets="$ac_config_targets $1" ;;
20852
ac_configure_extra_args=
20854
if $ac_cs_silent; then
20856
ac_configure_extra_args="$ac_configure_extra_args --silent"
20860
cat >>$CONFIG_STATUS <<_ACEOF
20861
if \$ac_cs_recheck; then
20862
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20863
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20868
cat >>$CONFIG_STATUS <<_ACEOF
20870
# INIT-COMMANDS section.
20873
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20879
cat >>$CONFIG_STATUS <<\_ACEOF
20880
for ac_config_target in $ac_config_targets
20882
case "$ac_config_target" in
20883
# Handling of arguments.
20884
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20885
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20886
"src/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
20887
"src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
20888
"src/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
20889
"src/c/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/api/Makefile" ;;
20890
"src/c/clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/clients/Makefile" ;;
20891
"src/c/clients/say/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/clients/say/Makefile" ;;
20892
"src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
20893
"src/audio/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;;
20894
"config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
20895
"config/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/modules/Makefile" ;;
20896
"config/clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/clients/Makefile" ;;
20897
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20898
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20899
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20900
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20901
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20902
{ (exit 1); exit 1; }; };;
20906
# If the user did not use the arguments to specify the items to instantiate,
20907
# then the envvar interface is used. Set only those that are not.
20908
# We use the long form for the default assignment because of an extremely
20909
# bizarre bug on SunOS 4.1.3.
20910
if $ac_need_defaults; then
20911
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20912
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20913
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20916
# Have a temporary directory for convenience. Make it in the build tree
20917
# simply because there is no reason to put it here, and in addition,
20918
# creating and moving files from /tmp can sometimes cause problems.
20919
# Create a temporary directory, and hook for its removal unless debugging.
20922
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20923
trap '{ (exit 1); exit 1; }' 1 2 13 15
20926
# Create a (secure) tmp directory for tmp files.
20929
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20930
test -n "$tmp" && test -d "$tmp"
20933
tmp=./confstat$$-$RANDOM
20934
(umask 077 && mkdir $tmp)
20937
echo "$me: cannot create a temporary directory in ." >&2
20938
{ (exit 1); exit 1; }
20943
cat >>$CONFIG_STATUS <<_ACEOF
20946
# CONFIG_FILES section.
20949
# No need to generate the scripts if there are no CONFIG_FILES.
20950
# This happens for instance when ./config.status config.h
20951
if test -n "\$CONFIG_FILES"; then
20952
# Protect against being on the right side of a sed subst in config.status.
20953
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20954
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20955
s,@SHELL@,$SHELL,;t t
20956
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20957
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20958
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20959
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20960
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20961
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20962
s,@exec_prefix@,$exec_prefix,;t t
20963
s,@prefix@,$prefix,;t t
20964
s,@program_transform_name@,$program_transform_name,;t t
20965
s,@bindir@,$bindir,;t t
20966
s,@sbindir@,$sbindir,;t t
20967
s,@libexecdir@,$libexecdir,;t t
20968
s,@datadir@,$datadir,;t t
20969
s,@sysconfdir@,$sysconfdir,;t t
20970
s,@sharedstatedir@,$sharedstatedir,;t t
20971
s,@localstatedir@,$localstatedir,;t t
20972
s,@libdir@,$libdir,;t t
20973
s,@includedir@,$includedir,;t t
20974
s,@oldincludedir@,$oldincludedir,;t t
20975
s,@infodir@,$infodir,;t t
20976
s,@mandir@,$mandir,;t t
20977
s,@build_alias@,$build_alias,;t t
20978
s,@host_alias@,$host_alias,;t t
20979
s,@target_alias@,$target_alias,;t t
20980
s,@DEFS@,$DEFS,;t t
20981
s,@ECHO_C@,$ECHO_C,;t t
20982
s,@ECHO_N@,$ECHO_N,;t t
20983
s,@ECHO_T@,$ECHO_T,;t t
20984
s,@LIBS@,$LIBS,;t t
20986
s,@CFLAGS@,$CFLAGS,;t t
20987
s,@LDFLAGS@,$LDFLAGS,;t t
20988
s,@CPPFLAGS@,$CPPFLAGS,;t t
20989
s,@ac_ct_CC@,$ac_ct_CC,;t t
20990
s,@EXEEXT@,$EXEEXT,;t t
20991
s,@OBJEXT@,$OBJEXT,;t t
20992
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20993
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20994
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20995
s,@CYGPATH_W@,$CYGPATH_W,;t t
20996
s,@PACKAGE@,$PACKAGE,;t t
20997
s,@VERSION@,$VERSION,;t t
20998
s,@ACLOCAL@,$ACLOCAL,;t t
20999
s,@AUTOCONF@,$AUTOCONF,;t t
21000
s,@AUTOMAKE@,$AUTOMAKE,;t t
21001
s,@AUTOHEADER@,$AUTOHEADER,;t t
21002
s,@MAKEINFO@,$MAKEINFO,;t t
21003
s,@AMTAR@,$AMTAR,;t t
21004
s,@install_sh@,$install_sh,;t t
21005
s,@STRIP@,$STRIP,;t t
21006
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21007
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21008
s,@mkdir_p@,$mkdir_p,;t t
21010
s,@SET_MAKE@,$SET_MAKE,;t t
21011
s,@am__leading_dot@,$am__leading_dot,;t t
21012
s,@DEPDIR@,$DEPDIR,;t t
21013
s,@am__include@,$am__include,;t t
21014
s,@am__quote@,$am__quote,;t t
21015
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21016
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21017
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21018
s,@CCDEPMODE@,$CCDEPMODE,;t t
21019
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21020
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21021
s,@flite_basic@,$flite_basic,;t t
21022
s,@flite_kal@,$flite_kal,;t t
21023
s,@glib_include@,$glib_include,;t t
21024
s,@glib_libs@,$glib_libs,;t t
21025
s,@spdconfdir@,$spdconfdir,;t t
21026
s,@snddatadir@,$snddatadir,;t t
21027
s,@modulebindir@,$modulebindir,;t t
21028
s,@moduleconfdir@,$moduleconfdir,;t t
21029
s,@pidpath@,$pidpath,;t t
21030
s,@LIB_SDAUDIO_CURRENT@,$LIB_SDAUDIO_CURRENT,;t t
21031
s,@LIB_SDAUDIO_REVISION@,$LIB_SDAUDIO_REVISION,;t t
21032
s,@LIB_SDAUDIO_AGE@,$LIB_SDAUDIO_AGE,;t t
21033
s,@LIB_SPD_CURRENT@,$LIB_SPD_CURRENT,;t t
21034
s,@LIB_SPD_REVISION@,$LIB_SPD_REVISION,;t t
21035
s,@LIB_SPD_AGE@,$LIB_SPD_AGE,;t t
21037
s,@EGREP@,$EGREP,;t t
21038
s,@build@,$build,;t t
21039
s,@build_cpu@,$build_cpu,;t t
21040
s,@build_vendor@,$build_vendor,;t t
21041
s,@build_os@,$build_os,;t t
21042
s,@host@,$host,;t t
21043
s,@host_cpu@,$host_cpu,;t t
21044
s,@host_vendor@,$host_vendor,;t t
21045
s,@host_os@,$host_os,;t t
21046
s,@LN_S@,$LN_S,;t t
21047
s,@ECHO@,$ECHO,;t t
21049
s,@ac_ct_AR@,$ac_ct_AR,;t t
21050
s,@RANLIB@,$RANLIB,;t t
21051
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21053
s,@CXXFLAGS@,$CXXFLAGS,;t t
21054
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21055
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21056
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21057
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21058
s,@CXXCPP@,$CXXCPP,;t t
21060
s,@FFLAGS@,$FFLAGS,;t t
21061
s,@ac_ct_F77@,$ac_ct_F77,;t t
21062
s,@LIBTOOL@,$LIBTOOL,;t t
21063
s,@LIBOBJS@,$LIBOBJS,;t t
21064
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21069
cat >>$CONFIG_STATUS <<\_ACEOF
21070
# Split the substitutions into bite-sized pieces for seds with
21071
# small command number limits, like on Digital OSF/1 and HP-UX.
21072
ac_max_sed_lines=48
21073
ac_sed_frag=1 # Number of current file.
21074
ac_beg=1 # First line for current file.
21075
ac_end=$ac_max_sed_lines # Line after last line for current file.
21078
while $ac_more_lines; do
21079
if test $ac_beg -gt 1; then
21080
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21082
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21084
if test ! -s $tmp/subs.frag; then
21085
ac_more_lines=false
21087
# The purpose of the label and of the branching condition is to
21088
# speed up the sed processing (if there are no `@' at all, there
21089
# is no need to browse any of the substitutions).
21090
# These are the two extra sed commands mentioned above.
21092
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21093
if test -z "$ac_sed_cmds"; then
21094
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21096
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21098
ac_sed_frag=`expr $ac_sed_frag + 1`
21100
ac_end=`expr $ac_end + $ac_max_sed_lines`
21103
if test -z "$ac_sed_cmds"; then
21106
fi # test -n "$CONFIG_FILES"
21109
cat >>$CONFIG_STATUS <<\_ACEOF
21110
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21111
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21113
- | *:- | *:-:* ) # input from stdin
21115
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21116
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21117
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21118
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21119
* ) ac_file_in=$ac_file.in ;;
21122
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21123
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21124
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21125
X"$ac_file" : 'X\(//\)[^/]' \| \
21126
X"$ac_file" : 'X\(//\)$' \| \
21127
X"$ac_file" : 'X\(/\)' \| \
21128
. : '\(.\)' 2>/dev/null ||
21130
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21131
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21132
/^X\(\/\/\)$/{ s//\1/; q; }
21133
/^X\(\/\).*/{ s//\1/; q; }
21135
{ if $as_mkdir_p; then
21140
while test ! -d "$as_dir"; do
21141
as_dirs="$as_dir $as_dirs"
21142
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21143
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21144
X"$as_dir" : 'X\(//\)[^/]' \| \
21145
X"$as_dir" : 'X\(//\)$' \| \
21146
X"$as_dir" : 'X\(/\)' \| \
21147
. : '\(.\)' 2>/dev/null ||
21149
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21150
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21151
/^X\(\/\/\)$/{ s//\1/; q; }
21152
/^X\(\/\).*/{ s//\1/; q; }
21155
test ! -n "$as_dirs" || mkdir $as_dirs
21156
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21157
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21158
{ (exit 1); exit 1; }; }; }
21162
if test "$ac_dir" != .; then
21163
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21164
# A "../" for each directory in $ac_dir_suffix.
21165
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21167
ac_dir_suffix= ac_top_builddir=
21171
.) # No --srcdir option. We are building in place.
21173
if test -z "$ac_top_builddir"; then
21176
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21178
[\\/]* | ?:[\\/]* ) # Absolute path.
21179
ac_srcdir=$srcdir$ac_dir_suffix;
21180
ac_top_srcdir=$srcdir ;;
21181
*) # Relative path.
21182
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21183
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21186
# Do not use `cd foo && pwd` to compute absolute paths, because
21187
# the directories may not exist.
21189
.) ac_abs_builddir="$ac_dir";;
21192
.) ac_abs_builddir=`pwd`;;
21193
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21194
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21197
case $ac_abs_builddir in
21198
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21200
case ${ac_top_builddir}. in
21201
.) ac_abs_top_builddir=$ac_abs_builddir;;
21202
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21203
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21206
case $ac_abs_builddir in
21207
.) ac_abs_srcdir=$ac_srcdir;;
21210
.) ac_abs_srcdir=$ac_abs_builddir;;
21211
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21212
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21215
case $ac_abs_builddir in
21216
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21218
case $ac_top_srcdir in
21219
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21220
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21221
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21227
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21228
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21231
# Let's still pretend it is `configure' which instantiates (i.e., don't
21232
# use $as_me), people would be surprised to read:
21233
# /* config.h. Generated by config.status. */
21234
if test x"$ac_file" = x-; then
21237
configure_input="$ac_file. "
21239
configure_input=$configure_input"Generated from `echo $ac_file_in |
21240
sed 's,.*/,,'` by configure."
21242
# First look for the input files in the build tree, otherwise in the
21244
ac_file_inputs=`IFS=:
21245
for f in $ac_file_in; do
21247
-) echo $tmp/stdin ;;
21249
# Absolute (can't be DOS-style, as IFS=:)
21250
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21251
echo "$as_me: error: cannot find input file: $f" >&2;}
21252
{ (exit 1); exit 1; }; }
21255
if test -f "$f"; then
21258
elif test -f "$srcdir/$f"; then
21263
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21264
echo "$as_me: error: cannot find input file: $f" >&2;}
21265
{ (exit 1); exit 1; }; }
21268
done` || { (exit 1); exit 1; }
21270
if test x"$ac_file" != x-; then
21271
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21272
echo "$as_me: creating $ac_file" >&6;}
21276
cat >>$CONFIG_STATUS <<_ACEOF
21280
cat >>$CONFIG_STATUS <<\_ACEOF
21282
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21283
s,@configure_input@,$configure_input,;t t
21284
s,@srcdir@,$ac_srcdir,;t t
21285
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21286
s,@top_srcdir@,$ac_top_srcdir,;t t
21287
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21288
s,@builddir@,$ac_builddir,;t t
21289
s,@abs_builddir@,$ac_abs_builddir,;t t
21290
s,@top_builddir@,$ac_top_builddir,;t t
21291
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21292
s,@INSTALL@,$ac_INSTALL,;t t
21293
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21295
if test x"$ac_file" != x-; then
21296
mv $tmp/out $ac_file
21304
cat >>$CONFIG_STATUS <<\_ACEOF
21307
# CONFIG_HEADER section.
21310
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21311
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21313
# ac_d sets the value in "#define NAME VALUE" lines.
21314
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21315
ac_dB='[ ].*$,\1#\2'
21318
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21319
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21320
ac_uB='$,\1#\2define\3'
21324
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21325
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21327
- | *:- | *:-:* ) # input from stdin
21329
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21330
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21331
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21332
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21333
* ) ac_file_in=$ac_file.in ;;
21336
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21337
echo "$as_me: creating $ac_file" >&6;}
21339
# First look for the input files in the build tree, otherwise in the
21341
ac_file_inputs=`IFS=:
21342
for f in $ac_file_in; do
21344
-) echo $tmp/stdin ;;
21346
# Absolute (can't be DOS-style, as IFS=:)
21347
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21348
echo "$as_me: error: cannot find input file: $f" >&2;}
21349
{ (exit 1); exit 1; }; }
21350
# Do quote $f, to prevent DOS paths from being IFS'd.
21353
if test -f "$f"; then
21356
elif test -f "$srcdir/$f"; then
21361
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21362
echo "$as_me: error: cannot find input file: $f" >&2;}
21363
{ (exit 1); exit 1; }; }
21366
done` || { (exit 1); exit 1; }
21367
# Remove the trailing spaces.
21368
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21372
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21373
# `conftest.undefs', that substitutes the proper values into
21374
# config.h.in to produce config.h. The first handles `#define'
21375
# templates, and the second `#undef' templates.
21376
# And first: Protect against being on the right side of a sed subst in
21377
# config.status. Protect against being in an unquoted here document
21378
# in config.status.
21379
rm -f conftest.defines conftest.undefs
21380
# Using a here document instead of a string reduces the quoting nightmare.
21381
# Putting comments in sed scripts is not portable.
21383
# `end' is used to avoid that the second main sed command (meant for
21384
# 0-ary CPP macros) applies to n-ary macro definitions.
21385
# See the Autoconf documentation for `clear'.
21386
cat >confdef2sed.sed <<\_ACEOF
21391
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21393
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21396
# If some macros were called several times there might be several times
21397
# the same #defines, which is useless. Nevertheless, we may not want to
21398
# sort them, since we want the *last* AC-DEFINE to be honored.
21399
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21400
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21401
rm -f confdef2sed.sed
21403
# This sed command replaces #undef with comments. This is necessary, for
21404
# example, in the case of _POSIX_SOURCE, which is predefined and required
21405
# on some systems where configure will not decide to define it.
21406
cat >>conftest.undefs <<\_ACEOF
21407
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21410
# Break up conftest.defines because some shells have a limit on the size
21411
# of here documents, and old seds have small limits too (100 cmds).
21412
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21413
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21414
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21415
echo ' :' >>$CONFIG_STATUS
21416
rm -f conftest.tail
21417
while grep . conftest.defines >/dev/null
21419
# Write a limited-size here document to $tmp/defines.sed.
21420
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21421
# Speed up: don't consider the non `#define' lines.
21422
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21423
# Work around the forget-to-reset-the-flag bug.
21424
echo 't clr' >>$CONFIG_STATUS
21425
echo ': clr' >>$CONFIG_STATUS
21426
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21428
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21430
mv $tmp/out $tmp/in
21432
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21433
rm -f conftest.defines
21434
mv conftest.tail conftest.defines
21436
rm -f conftest.defines
21437
echo ' fi # grep' >>$CONFIG_STATUS
21438
echo >>$CONFIG_STATUS
21440
# Break up conftest.undefs because some shells have a limit on the size
21441
# of here documents, and old seds have small limits too (100 cmds).
21442
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21443
rm -f conftest.tail
21444
while grep . conftest.undefs >/dev/null
21446
# Write a limited-size here document to $tmp/undefs.sed.
21447
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21448
# Speed up: don't consider the non `#undef'
21449
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21450
# Work around the forget-to-reset-the-flag bug.
21451
echo 't clr' >>$CONFIG_STATUS
21452
echo ': clr' >>$CONFIG_STATUS
21453
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21455
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21457
mv $tmp/out $tmp/in
21459
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21460
rm -f conftest.undefs
21461
mv conftest.tail conftest.undefs
21463
rm -f conftest.undefs
21465
cat >>$CONFIG_STATUS <<\_ACEOF
21466
# Let's still pretend it is `configure' which instantiates (i.e., don't
21467
# use $as_me), people would be surprised to read:
21468
# /* config.h. Generated by config.status. */
21469
if test x"$ac_file" = x-; then
21470
echo "/* Generated by configure. */" >$tmp/config.h
21472
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21474
cat $tmp/in >>$tmp/config.h
21476
if test x"$ac_file" != x-; then
21477
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21478
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21479
echo "$as_me: $ac_file is unchanged" >&6;}
21481
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21482
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21483
X"$ac_file" : 'X\(//\)[^/]' \| \
21484
X"$ac_file" : 'X\(//\)$' \| \
21485
X"$ac_file" : 'X\(/\)' \| \
21486
. : '\(.\)' 2>/dev/null ||
21488
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21489
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21490
/^X\(\/\/\)$/{ s//\1/; q; }
21491
/^X\(\/\).*/{ s//\1/; q; }
21493
{ if $as_mkdir_p; then
21498
while test ! -d "$as_dir"; do
21499
as_dirs="$as_dir $as_dirs"
21500
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21501
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21502
X"$as_dir" : 'X\(//\)[^/]' \| \
21503
X"$as_dir" : 'X\(//\)$' \| \
21504
X"$as_dir" : 'X\(/\)' \| \
21505
. : '\(.\)' 2>/dev/null ||
21507
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21508
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21509
/^X\(\/\/\)$/{ s//\1/; q; }
21510
/^X\(\/\).*/{ s//\1/; q; }
21513
test ! -n "$as_dirs" || mkdir $as_dirs
21514
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21515
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21516
{ (exit 1); exit 1; }; }; }
21519
mv $tmp/config.h $ac_file
21523
rm -f $tmp/config.h
21525
# Compute $ac_file's index in $config_headers.
21527
for _am_header in $config_headers :; do
21528
case $_am_header in
21529
$ac_file | $ac_file:* )
21532
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21535
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21536
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21537
X$ac_file : 'X\(//\)[^/]' \| \
21538
X$ac_file : 'X\(//\)$' \| \
21539
X$ac_file : 'X\(/\)' \| \
21540
. : '\(.\)' 2>/dev/null ||
21542
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21543
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21544
/^X\(\/\/\)$/{ s//\1/; q; }
21545
/^X\(\/\).*/{ s//\1/; q; }
21546
s/.*/./; q'`/stamp-h$_am_stamp_count
21549
cat >>$CONFIG_STATUS <<\_ACEOF
21552
# CONFIG_COMMANDS section.
21554
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21555
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21556
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21557
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21558
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21559
X"$ac_dest" : 'X\(//\)[^/]' \| \
21560
X"$ac_dest" : 'X\(//\)$' \| \
21561
X"$ac_dest" : 'X\(/\)' \| \
21562
. : '\(.\)' 2>/dev/null ||
21564
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21565
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21566
/^X\(\/\/\)$/{ s//\1/; q; }
21567
/^X\(\/\).*/{ s//\1/; q; }
21569
{ if $as_mkdir_p; then
21574
while test ! -d "$as_dir"; do
21575
as_dirs="$as_dir $as_dirs"
21576
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21577
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21578
X"$as_dir" : 'X\(//\)[^/]' \| \
21579
X"$as_dir" : 'X\(//\)$' \| \
21580
X"$as_dir" : 'X\(/\)' \| \
21581
. : '\(.\)' 2>/dev/null ||
21583
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21584
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21585
/^X\(\/\/\)$/{ s//\1/; q; }
21586
/^X\(\/\).*/{ s//\1/; q; }
21589
test ! -n "$as_dirs" || mkdir $as_dirs
21590
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21591
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21592
{ (exit 1); exit 1; }; }; }
21596
if test "$ac_dir" != .; then
21597
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21598
# A "../" for each directory in $ac_dir_suffix.
21599
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21601
ac_dir_suffix= ac_top_builddir=
21605
.) # No --srcdir option. We are building in place.
21607
if test -z "$ac_top_builddir"; then
21610
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21612
[\\/]* | ?:[\\/]* ) # Absolute path.
21613
ac_srcdir=$srcdir$ac_dir_suffix;
21614
ac_top_srcdir=$srcdir ;;
21615
*) # Relative path.
21616
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21617
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21620
# Do not use `cd foo && pwd` to compute absolute paths, because
21621
# the directories may not exist.
21623
.) ac_abs_builddir="$ac_dir";;
21626
.) ac_abs_builddir=`pwd`;;
21627
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21628
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21631
case $ac_abs_builddir in
21632
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21634
case ${ac_top_builddir}. in
21635
.) ac_abs_top_builddir=$ac_abs_builddir;;
21636
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21637
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21640
case $ac_abs_builddir in
21641
.) ac_abs_srcdir=$ac_srcdir;;
21644
.) ac_abs_srcdir=$ac_abs_builddir;;
21645
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21646
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21649
case $ac_abs_builddir in
21650
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21652
case $ac_top_srcdir in
21653
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21654
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21655
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21660
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21661
echo "$as_me: executing $ac_dest commands" >&6;}
21663
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21664
# Strip MF so we end up with the name of the file.
21665
mf=`echo "$mf" | sed -e 's/:.*$//'`
21666
# Check whether this is an Automake generated Makefile or not.
21667
# We used to match only the files named `Makefile.in', but
21668
# some people rename them; so instead we look at the file content.
21669
# Grep'ing the first line is not enough: some people post-process
21670
# each Makefile.in and add a new line on top of each file to say so.
21671
# So let's grep whole file.
21672
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21673
dirpart=`(dirname "$mf") 2>/dev/null ||
21674
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21675
X"$mf" : 'X\(//\)[^/]' \| \
21676
X"$mf" : 'X\(//\)$' \| \
21677
X"$mf" : 'X\(/\)' \| \
21678
. : '\(.\)' 2>/dev/null ||
21680
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21681
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21682
/^X\(\/\/\)$/{ s//\1/; q; }
21683
/^X\(\/\).*/{ s//\1/; q; }
21688
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21689
# Extract the definition of DEP_FILES from the Makefile without
21691
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21692
test -z "$DEPDIR" && continue
21693
# When using ansi2knr, U may be empty or an underscore; expand it
21694
U=`sed -n 's/^U = //p' < "$mf"`
21695
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21696
# We invoke sed twice because it is the simplest approach to
21697
# changing $(DEPDIR) to its actual value in the expansion.
21698
for file in `sed -n '
21699
/^DEP_FILES = .*\\\\$/ {
21708
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21709
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21710
# Make sure the directory exists.
21711
test -f "$dirpart/$file" && continue
21712
fdir=`(dirname "$file") 2>/dev/null ||
21713
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21714
X"$file" : 'X\(//\)[^/]' \| \
21715
X"$file" : 'X\(//\)$' \| \
21716
X"$file" : 'X\(/\)' \| \
21717
. : '\(.\)' 2>/dev/null ||
21719
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21720
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21721
/^X\(\/\/\)$/{ s//\1/; q; }
21722
/^X\(\/\).*/{ s//\1/; q; }
21724
{ if $as_mkdir_p; then
21725
mkdir -p $dirpart/$fdir
21727
as_dir=$dirpart/$fdir
21729
while test ! -d "$as_dir"; do
21730
as_dirs="$as_dir $as_dirs"
21731
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21732
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21733
X"$as_dir" : 'X\(//\)[^/]' \| \
21734
X"$as_dir" : 'X\(//\)$' \| \
21735
X"$as_dir" : 'X\(/\)' \| \
21736
. : '\(.\)' 2>/dev/null ||
21738
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21739
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21740
/^X\(\/\/\)$/{ s//\1/; q; }
21741
/^X\(\/\).*/{ s//\1/; q; }
21744
test ! -n "$as_dirs" || mkdir $as_dirs
21745
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21746
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21747
{ (exit 1); exit 1; }; }; }
21749
# echo "creating $dirpart/$file"
21750
echo '# dummy' > "$dirpart/$file"
21758
cat >>$CONFIG_STATUS <<\_ACEOF
21760
{ (exit 0); exit 0; }
21762
chmod +x $CONFIG_STATUS
21763
ac_clean_files=$ac_clean_files_save
21766
# configure is writing to config.log, and then calls config.status.
21767
# config.status does its own redirection, appending to config.log.
21768
# Unfortunately, on DOS this fails, as config.log is still kept open
21769
# by configure, so config.status won't be able to write to it; its
21770
# output is simply discarded. So we exec the FD to /dev/null,
21771
# effectively closing config.log, so it can be properly (re)opened and
21772
# appended to by config.status. When coming back to configure, we
21773
# need to make the FD available again.
21774
if test "$no_create" != yes; then
21776
ac_config_status_args=
21777
test "$silent" = yes &&
21778
ac_config_status_args="$ac_config_status_args --quiet"
21780
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21782
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21783
# would make configure fail if this is the last instruction.
21784
$ac_cs_success || { (exit 1); exit 1; }