2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libXpm 3.5.2.
5
# Report bugs to <daniel@freedesktop.org>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
echo_test_string="`eval $cmd`" &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396
tagnames=${tagnames+${tagnames},}CXX
398
tagnames=${tagnames+${tagnames},}F77
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
416
SHELL=${CONFIG_SHELL-/bin/sh}
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete. It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
423
# Identity of this package.
424
PACKAGE_NAME='libXpm'
425
PACKAGE_TARNAME='libXpm'
426
PACKAGE_VERSION='3.5.2'
427
PACKAGE_STRING='libXpm 3.5.2'
428
PACKAGE_BUGREPORT='daniel@freedesktop.org'
430
ac_unique_file="Makefile.am"
431
# Factoring default headers for most tests.
432
ac_includes_default="\
435
# include <sys/types.h>
438
# include <sys/stat.h>
449
# if !STDC_HEADERS && HAVE_MEMORY_H
455
# include <strings.h>
458
# include <inttypes.h>
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XPM_CFLAGS XPM_LIBS SXPM_CFLAGS SXPM_LIBS BUILD_SXPM_TRUE BUILD_SXPM_FALSE LIBOBJS LTLIBOBJS'
471
# Initialize some variables set by options.
473
ac_init_version=false
474
# The variables have the same names as the options, with
475
# dashes changed to underlines.
483
program_transform_name=s,x,x,
491
# Installation directory options.
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
493
# and all the variables that are supposed to be based on exec_prefix
494
# by default will actually change.
495
# Use braces instead of parens because sh, perl, etc. also accept them.
496
bindir='${exec_prefix}/bin'
497
sbindir='${exec_prefix}/sbin'
498
libexecdir='${exec_prefix}/libexec'
499
datadir='${prefix}/share'
500
sysconfdir='${prefix}/etc'
501
sharedstatedir='${prefix}/com'
502
localstatedir='${prefix}/var'
503
libdir='${exec_prefix}/lib'
504
includedir='${prefix}/include'
505
oldincludedir='/usr/include'
506
infodir='${prefix}/info'
507
mandir='${prefix}/man'
512
# If the previous option needs an argument, assign it.
513
if test -n "$ac_prev"; then
514
eval "$ac_prev=\$ac_option"
519
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
# Accept the important Cygnus configure options, so we can diagnose typos.
525
-bindir | --bindir | --bindi | --bind | --bin | --bi)
527
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530
-build | --build | --buil | --bui | --bu)
531
ac_prev=build_alias ;;
532
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
533
build_alias=$ac_optarg ;;
535
-cache-file | --cache-file | --cache-fil | --cache-fi \
536
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537
ac_prev=cache_file ;;
538
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540
cache_file=$ac_optarg ;;
543
cache_file=config.cache ;;
545
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549
datadir=$ac_optarg ;;
551
-disable-* | --disable-*)
552
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553
# Reject names that are not valid shell variable names.
554
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
556
{ (exit 1); exit 1; }; }
557
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558
eval "enable_$ac_feature=no" ;;
560
-enable-* | --enable-*)
561
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
# Reject names that are not valid shell variable names.
563
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
565
{ (exit 1); exit 1; }; }
566
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571
eval "enable_$ac_feature='$ac_optarg'" ;;
573
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575
| --exec | --exe | --ex)
576
ac_prev=exec_prefix ;;
577
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579
| --exec=* | --exe=* | --ex=*)
580
exec_prefix=$ac_optarg ;;
582
-gas | --gas | --ga | --g)
583
# Obsolete; use --with-gas.
586
-help | --help | --hel | --he | -h)
588
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589
ac_init_help=recursive ;;
590
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591
ac_init_help=short ;;
593
-host | --host | --hos | --ho)
594
ac_prev=host_alias ;;
595
-host=* | --host=* | --hos=* | --ho=*)
596
host_alias=$ac_optarg ;;
598
-includedir | --includedir | --includedi | --included | --include \
599
| --includ | --inclu | --incl | --inc)
600
ac_prev=includedir ;;
601
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602
| --includ=* | --inclu=* | --incl=* | --inc=*)
603
includedir=$ac_optarg ;;
605
-infodir | --infodir | --infodi | --infod | --info | --inf)
607
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608
infodir=$ac_optarg ;;
610
-libdir | --libdir | --libdi | --libd)
612
-libdir=* | --libdir=* | --libdi=* | --libd=*)
615
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616
| --libexe | --libex | --libe)
617
ac_prev=libexecdir ;;
618
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619
| --libexe=* | --libex=* | --libe=*)
620
libexecdir=$ac_optarg ;;
622
-localstatedir | --localstatedir | --localstatedi | --localstated \
623
| --localstate | --localstat | --localsta | --localst \
624
| --locals | --local | --loca | --loc | --lo)
625
ac_prev=localstatedir ;;
626
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
628
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629
localstatedir=$ac_optarg ;;
631
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637
# Obsolete; use --without-fp.
640
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
641
| --no-cr | --no-c | -n)
644
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
645
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650
| --oldin | --oldi | --old | --ol | --o)
651
ac_prev=oldincludedir ;;
652
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655
oldincludedir=$ac_optarg ;;
657
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662
-program-prefix | --program-prefix | --program-prefi | --program-pref \
663
| --program-pre | --program-pr | --program-p)
664
ac_prev=program_prefix ;;
665
-program-prefix=* | --program-prefix=* | --program-prefi=* \
666
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667
program_prefix=$ac_optarg ;;
669
-program-suffix | --program-suffix | --program-suffi | --program-suff \
670
| --program-suf | --program-su | --program-s)
671
ac_prev=program_suffix ;;
672
-program-suffix=* | --program-suffix=* | --program-suffi=* \
673
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674
program_suffix=$ac_optarg ;;
676
-program-transform-name | --program-transform-name \
677
| --program-transform-nam | --program-transform-na \
678
| --program-transform-n | --program-transform- \
679
| --program-transform | --program-transfor \
680
| --program-transfo | --program-transf \
681
| --program-trans | --program-tran \
682
| --progr-tra | --program-tr | --program-t)
683
ac_prev=program_transform_name ;;
684
-program-transform-name=* | --program-transform-name=* \
685
| --program-transform-nam=* | --program-transform-na=* \
686
| --program-transform-n=* | --program-transform-=* \
687
| --program-transform=* | --program-transfor=* \
688
| --program-transfo=* | --program-transf=* \
689
| --program-trans=* | --program-tran=* \
690
| --progr-tra=* | --program-tr=* | --program-t=*)
691
program_transform_name=$ac_optarg ;;
693
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
694
| -silent | --silent | --silen | --sile | --sil)
697
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701
sbindir=$ac_optarg ;;
703
-sharedstatedir | --sharedstatedir | --sharedstatedi \
704
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705
| --sharedst | --shareds | --shared | --share | --shar \
707
ac_prev=sharedstatedir ;;
708
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712
sharedstatedir=$ac_optarg ;;
714
-site | --site | --sit)
716
-site=* | --site=* | --sit=*)
719
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725
| --syscon | --sysco | --sysc | --sys | --sy)
726
ac_prev=sysconfdir ;;
727
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729
sysconfdir=$ac_optarg ;;
731
-target | --target | --targe | --targ | --tar | --ta | --t)
732
ac_prev=target_alias ;;
733
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734
target_alias=$ac_optarg ;;
736
-v | -verbose | --verbose | --verbos | --verbo | --verb)
739
-version | --version | --versio | --versi | --vers | -V)
743
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744
# Reject names that are not valid shell variable names.
745
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746
{ echo "$as_me: error: invalid package name: $ac_package" >&2
747
{ (exit 1); exit 1; }; }
748
ac_package=`echo $ac_package| sed 's/-/_/g'`
750
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753
eval "with_$ac_package='$ac_optarg'" ;;
755
-without-* | --without-*)
756
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
# Reject names that are not valid shell variable names.
758
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759
{ echo "$as_me: error: invalid package name: $ac_package" >&2
760
{ (exit 1); exit 1; }; }
761
ac_package=`echo $ac_package | sed 's/-/_/g'`
762
eval "with_$ac_package=no" ;;
765
# Obsolete; use --with-x.
768
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769
| --x-incl | --x-inc | --x-in | --x-i)
770
ac_prev=x_includes ;;
771
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773
x_includes=$ac_optarg ;;
775
-x-libraries | --x-libraries | --x-librarie | --x-librari \
776
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777
ac_prev=x_libraries ;;
778
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780
x_libraries=$ac_optarg ;;
782
-*) { echo "$as_me: error: unrecognized option: $ac_option
783
Try \`$0 --help' for more information." >&2
784
{ (exit 1); exit 1; }; }
788
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789
# Reject names that are not valid shell variable names.
790
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792
{ (exit 1); exit 1; }; }
793
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794
eval "$ac_envvar='$ac_optarg'"
798
# FIXME: should be removed in autoconf 3.0.
799
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808
if test -n "$ac_prev"; then
809
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810
{ echo "$as_me: error: missing argument to $ac_option" >&2
811
{ (exit 1); exit 1; }; }
814
# Be sure to have absolute paths.
815
for ac_var in exec_prefix prefix
817
eval ac_val=$`echo $ac_var`
819
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821
{ (exit 1); exit 1; }; };;
825
# Be sure to have absolute paths.
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827
localstatedir libdir includedir oldincludedir infodir mandir
829
eval ac_val=$`echo $ac_var`
831
[\\/$]* | ?:[\\/]* ) ;;
832
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833
{ (exit 1); exit 1; }; };;
837
# There might be people who depend on the old broken behavior: `$host'
838
# used to hold the argument of --host etc.
839
# FIXME: To remove some day.
844
# FIXME: To remove some day.
845
if test "x$host_alias" != x; then
846
if test "x$build_alias" = x; then
847
cross_compiling=maybe
848
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849
If a cross compiler is detected then cross compile mode will be used." >&2
850
elif test "x$build_alias" != "x$host_alias"; then
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
test "$silent" = yes && exec 6>/dev/null
861
# Find the source files, if location was not specified.
862
if test -z "$srcdir"; then
863
ac_srcdir_defaulted=yes
864
# Try the directory containing this script, then its parent.
865
ac_confdir=`(dirname "$0") 2>/dev/null ||
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867
X"$0" : 'X\(//\)[^/]' \| \
868
X"$0" : 'X\(//\)$' \| \
869
X"$0" : 'X\(/\)' \| \
870
. : '\(.\)' 2>/dev/null ||
872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
874
/^X\(\/\/\)$/{ s//\1/; q; }
875
/^X\(\/\).*/{ s//\1/; q; }
878
if test ! -r $srcdir/$ac_unique_file; then
882
ac_srcdir_defaulted=no
884
if test ! -r $srcdir/$ac_unique_file; then
885
if test "$ac_srcdir_defaulted" = yes; then
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
{ (exit 1); exit 1; }; }
889
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
{ (exit 1); exit 1; }; }
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895
{ (exit 1); exit 1; }; }
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897
ac_env_build_alias_set=${build_alias+set}
898
ac_env_build_alias_value=$build_alias
899
ac_cv_env_build_alias_set=${build_alias+set}
900
ac_cv_env_build_alias_value=$build_alias
901
ac_env_host_alias_set=${host_alias+set}
902
ac_env_host_alias_value=$host_alias
903
ac_cv_env_host_alias_set=${host_alias+set}
904
ac_cv_env_host_alias_value=$host_alias
905
ac_env_target_alias_set=${target_alias+set}
906
ac_env_target_alias_value=$target_alias
907
ac_cv_env_target_alias_set=${target_alias+set}
908
ac_cv_env_target_alias_value=$target_alias
909
ac_env_CC_set=${CC+set}
911
ac_cv_env_CC_set=${CC+set}
912
ac_cv_env_CC_value=$CC
913
ac_env_CFLAGS_set=${CFLAGS+set}
914
ac_env_CFLAGS_value=$CFLAGS
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
916
ac_cv_env_CFLAGS_value=$CFLAGS
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_env_LDFLAGS_value=$LDFLAGS
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
ac_env_CPP_set=${CPP+set}
926
ac_env_CPP_value=$CPP
927
ac_cv_env_CPP_set=${CPP+set}
928
ac_cv_env_CPP_value=$CPP
929
ac_env_CXX_set=${CXX+set}
930
ac_env_CXX_value=$CXX
931
ac_cv_env_CXX_set=${CXX+set}
932
ac_cv_env_CXX_value=$CXX
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_env_CXXFLAGS_value=$CXXFLAGS
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937
ac_env_CXXCPP_set=${CXXCPP+set}
938
ac_env_CXXCPP_value=$CXXCPP
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
940
ac_cv_env_CXXCPP_value=$CXXCPP
941
ac_env_F77_set=${F77+set}
942
ac_env_F77_value=$F77
943
ac_cv_env_F77_set=${F77+set}
944
ac_cv_env_F77_value=$F77
945
ac_env_FFLAGS_set=${FFLAGS+set}
946
ac_env_FFLAGS_value=$FFLAGS
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
ac_cv_env_FFLAGS_value=$FFLAGS
949
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950
ac_env_PKG_CONFIG_value=$PKG_CONFIG
951
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953
ac_env_XPM_CFLAGS_set=${XPM_CFLAGS+set}
954
ac_env_XPM_CFLAGS_value=$XPM_CFLAGS
955
ac_cv_env_XPM_CFLAGS_set=${XPM_CFLAGS+set}
956
ac_cv_env_XPM_CFLAGS_value=$XPM_CFLAGS
957
ac_env_XPM_LIBS_set=${XPM_LIBS+set}
958
ac_env_XPM_LIBS_value=$XPM_LIBS
959
ac_cv_env_XPM_LIBS_set=${XPM_LIBS+set}
960
ac_cv_env_XPM_LIBS_value=$XPM_LIBS
961
ac_env_SXPM_CFLAGS_set=${SXPM_CFLAGS+set}
962
ac_env_SXPM_CFLAGS_value=$SXPM_CFLAGS
963
ac_cv_env_SXPM_CFLAGS_set=${SXPM_CFLAGS+set}
964
ac_cv_env_SXPM_CFLAGS_value=$SXPM_CFLAGS
965
ac_env_SXPM_LIBS_set=${SXPM_LIBS+set}
966
ac_env_SXPM_LIBS_value=$SXPM_LIBS
967
ac_cv_env_SXPM_LIBS_set=${SXPM_LIBS+set}
968
ac_cv_env_SXPM_LIBS_value=$SXPM_LIBS
971
# Report the --help message.
973
if test "$ac_init_help" = "long"; then
974
# Omit some internal or obsolete options to make the list less imposing.
975
# This message is too long to be a string in the A/UX 3.1 sh.
977
\`configure' configures libXpm 3.5.2 to adapt to many kinds of systems.
979
Usage: $0 [OPTION]... [VAR=VALUE]...
981
To assign environment variables (e.g., CC, CFLAGS...), specify them as
982
VAR=VALUE. See below for descriptions of some of the useful variables.
984
Defaults for the options are specified in brackets.
987
-h, --help display this help and exit
988
--help=short display options specific to this package
989
--help=recursive display the short help of all the included packages
990
-V, --version display version information and exit
991
-q, --quiet, --silent do not print \`checking...' messages
992
--cache-file=FILE cache test results in FILE [disabled]
993
-C, --config-cache alias for \`--cache-file=config.cache'
994
-n, --no-create do not create output files
995
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1000
Installation directories:
1001
--prefix=PREFIX install architecture-independent files in PREFIX
1002
[$ac_default_prefix]
1003
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1006
By default, \`make install' will install all the files in
1007
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1008
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1009
for instance \`--prefix=\$HOME'.
1011
For better control, use the options below.
1013
Fine tuning of the installation directories:
1014
--bindir=DIR user executables [EPREFIX/bin]
1015
--sbindir=DIR system admin executables [EPREFIX/sbin]
1016
--libexecdir=DIR program executables [EPREFIX/libexec]
1017
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1018
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1019
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1020
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1021
--libdir=DIR object code libraries [EPREFIX/lib]
1022
--includedir=DIR C header files [PREFIX/include]
1023
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1024
--infodir=DIR info documentation [PREFIX/info]
1025
--mandir=DIR man documentation [PREFIX/man]
1031
--program-prefix=PREFIX prepend PREFIX to installed program names
1032
--program-suffix=SUFFIX append SUFFIX to installed program names
1033
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1036
--build=BUILD configure for building on BUILD [guessed]
1037
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1041
if test -n "$ac_init_help"; then
1042
case $ac_init_help in
1043
short | recursive ) echo "Configuration of libXpm 3.5.2:";;
1048
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1049
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1050
--enable-maintainer-mode enable make rules and dependencies not useful
1051
(and sometimes confusing) to the casual installer
1052
--enable-shared[=PKGS]
1053
build shared libraries [default=yes]
1054
--enable-static[=PKGS]
1055
build static libraries [default=yes]
1056
--enable-fast-install[=PKGS]
1057
optimize for fast installation [default=yes]
1058
--disable-dependency-tracking speeds up one-time build
1059
--enable-dependency-tracking do not reject slow dependency extractors
1060
--disable-libtool-lock avoid locking (might break parallel builds)
1063
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1064
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1065
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1066
--with-pic try to use only PIC/non-PIC objects [default=use
1069
include additional configurations [automatic]
1071
Some influential environment variables:
1072
CC C compiler command
1073
CFLAGS C compiler flags
1074
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1075
nonstandard directory <lib dir>
1076
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077
headers in a nonstandard directory <include dir>
1079
CXX C++ compiler command
1080
CXXFLAGS C++ compiler flags
1081
CXXCPP C++ preprocessor
1082
F77 Fortran 77 compiler command
1083
FFLAGS Fortran 77 compiler flags
1084
PKG_CONFIG path to pkg-config utility
1085
XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1086
XPM_LIBS linker flags for XPM, overriding pkg-config
1087
SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1088
SXPM_LIBS linker flags for SXPM, overriding pkg-config
1090
Use these variables to override the choices made by `configure' or to help
1091
it to find libraries and programs with nonstandard names/locations.
1093
Report bugs to <daniel@freedesktop.org>.
1097
if test "$ac_init_help" = "recursive"; then
1098
# If there are subdirs, report their specific --help.
1100
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1101
test -d $ac_dir || continue
1104
if test "$ac_dir" != .; then
1105
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1106
# A "../" for each directory in $ac_dir_suffix.
1107
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1109
ac_dir_suffix= ac_top_builddir=
1113
.) # No --srcdir option. We are building in place.
1115
if test -z "$ac_top_builddir"; then
1118
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1120
[\\/]* | ?:[\\/]* ) # Absolute path.
1121
ac_srcdir=$srcdir$ac_dir_suffix;
1122
ac_top_srcdir=$srcdir ;;
1124
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1125
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128
# Do not use `cd foo && pwd` to compute absolute paths, because
1129
# the directories may not exist.
1131
.) ac_abs_builddir="$ac_dir";;
1134
.) ac_abs_builddir=`pwd`;;
1135
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1136
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1139
case $ac_abs_builddir in
1140
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1142
case ${ac_top_builddir}. in
1143
.) ac_abs_top_builddir=$ac_abs_builddir;;
1144
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1145
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148
case $ac_abs_builddir in
1149
.) ac_abs_srcdir=$ac_srcdir;;
1152
.) ac_abs_srcdir=$ac_abs_builddir;;
1153
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1154
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157
case $ac_abs_builddir in
1158
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1160
case $ac_top_srcdir in
1161
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1162
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1163
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168
# Check for guested configure; otherwise get Cygnus style configure.
1169
if test -f $ac_srcdir/configure.gnu; then
1171
$SHELL $ac_srcdir/configure.gnu --help=recursive
1172
elif test -f $ac_srcdir/configure; then
1174
$SHELL $ac_srcdir/configure --help=recursive
1175
elif test -f $ac_srcdir/configure.ac ||
1176
test -f $ac_srcdir/configure.in; then
1178
$ac_configure --help
1180
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186
test -n "$ac_init_help" && exit 0
1187
if $ac_init_version; then
1189
libXpm configure 3.5.2
1190
generated by GNU Autoconf 2.59
1192
Copyright (C) 2003 Free Software Foundation, Inc.
1193
This configure script is free software; the Free Software Foundation
1194
gives unlimited permission to copy, distribute and modify it.
1200
This file contains any messages produced by compilers while
1201
running configure, to aid debugging if configure makes a mistake.
1203
It was created by libXpm $as_me 3.5.2, which was
1204
generated by GNU Autoconf 2.59. Invocation command line was
1215
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1216
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1217
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1218
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1219
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1221
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1222
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1224
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1225
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1226
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1227
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1228
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1229
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1230
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1238
test -z "$as_dir" && as_dir=.
1239
echo "PATH: $as_dir"
1254
# Keep a trace of the command line.
1255
# Strip out --no-create and --no-recursion so they do not pile up.
1256
# Strip out --silent because we don't want to record it for future runs.
1257
# Also quote any args containing shell meta-characters.
1258
# Make two passes to allow for proper duplicate-argument suppression.
1263
ac_must_keep_next=false
1269
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1270
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271
| -silent | --silent | --silen | --sile | --sil)
1273
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1279
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1280
if test $ac_must_keep_next = true; then
1281
ac_must_keep_next=false # Got value, back to normal.
1284
*=* | --config-cache | -C | -disable-* | --disable-* \
1285
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1286
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1287
| -with-* | --with-* | -without-* | --without-* | --x)
1288
case "$ac_configure_args0 " in
1289
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292
-* ) ac_must_keep_next=true ;;
1295
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1296
# Get rid of the leading space.
1302
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1303
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1305
# When interrupted or exit'd, cleanup temporary files, and complete
1306
# config.log. We remove comments because anyway the quotes in there
1307
# would cause problems or look ugly.
1308
# WARNING: Be sure not to use single quotes in there, as some shells,
1309
# such as our DU 5.0 friend, will then `close' the trap.
1310
trap 'exit_status=$?
1311
# Save into config.log some information that might help in debugging.
1316
## ---------------- ##
1317
## Cache variables. ##
1318
## ---------------- ##
1321
# The following way of writing the cache mishandles newlines in values,
1324
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1328
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1332
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1339
## ----------------- ##
1340
## Output variables. ##
1341
## ----------------- ##
1344
for ac_var in $ac_subst_vars
1346
eval ac_val=$`echo $ac_var`
1347
echo "$ac_var='"'"'$ac_val'"'"'"
1351
if test -n "$ac_subst_files"; then
1358
for ac_var in $ac_subst_files
1360
eval ac_val=$`echo $ac_var`
1361
echo "$ac_var='"'"'$ac_val'"'"'"
1366
if test -s confdefs.h; then
1373
sed "/^$/d" confdefs.h | sort
1376
test "$ac_signal" != 0 &&
1377
echo "$as_me: caught signal $ac_signal"
1378
echo "$as_me: exit $exit_status"
1380
rm -f core *.core &&
1381
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384
for ac_signal in 1 2 13 15; do
1385
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1389
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1390
rm -rf conftest* confdefs.h
1391
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394
# Predefined preprocessor variables.
1396
cat >>confdefs.h <<_ACEOF
1397
#define PACKAGE_NAME "$PACKAGE_NAME"
1401
cat >>confdefs.h <<_ACEOF
1402
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1406
cat >>confdefs.h <<_ACEOF
1407
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1411
cat >>confdefs.h <<_ACEOF
1412
#define PACKAGE_STRING "$PACKAGE_STRING"
1416
cat >>confdefs.h <<_ACEOF
1417
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1421
# Let the site file select an alternate cache file if it wants to.
1422
# Prefer explicitly selected file to automatically selected ones.
1423
if test -z "$CONFIG_SITE"; then
1424
if test "x$prefix" != xNONE; then
1425
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1427
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430
for ac_site_file in $CONFIG_SITE; do
1431
if test -r "$ac_site_file"; then
1432
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433
echo "$as_me: loading site script $ac_site_file" >&6;}
1434
sed 's/^/| /' "$ac_site_file" >&5
1439
if test -r "$cache_file"; then
1440
# Some versions of bash will fail to source /dev/null (special
1441
# files actually), so we avoid doing that.
1442
if test -f "$cache_file"; then
1443
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444
echo "$as_me: loading cache $cache_file" >&6;}
1446
[\\/]* | ?:[\\/]* ) . $cache_file;;
1447
*) . ./$cache_file;;
1451
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452
echo "$as_me: creating cache $cache_file" >&6;}
1456
# Check that the precious variables saved in the cache have kept the same
1458
ac_cache_corrupted=false
1459
for ac_var in `(set) 2>&1 |
1460
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1461
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462
eval ac_new_set=\$ac_env_${ac_var}_set
1463
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464
eval ac_new_val="\$ac_env_${ac_var}_value"
1465
case $ac_old_set,$ac_new_set in
1467
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469
ac_cache_corrupted=: ;;
1471
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473
ac_cache_corrupted=: ;;
1476
if test "x$ac_old_val" != "x$ac_new_val"; then
1477
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1478
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1479
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1480
echo "$as_me: former value: $ac_old_val" >&2;}
1481
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1482
echo "$as_me: current value: $ac_new_val" >&2;}
1483
ac_cache_corrupted=:
1486
# Pass precious variables to config.status.
1487
if test "$ac_new_set" = set; then
1489
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491
*) ac_arg=$ac_var=$ac_new_val ;;
1493
case " $ac_configure_args " in
1494
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1495
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499
if $ac_cache_corrupted; then
1500
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504
{ (exit 1); exit 1; }; }
1508
ac_cpp='$CPP $CPPFLAGS'
1509
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540
am__api_version="1.9"
1542
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1543
if test -f $ac_dir/install-sh; then
1545
ac_install_sh="$ac_aux_dir/install-sh -c"
1547
elif test -f $ac_dir/install.sh; then
1549
ac_install_sh="$ac_aux_dir/install.sh -c"
1551
elif test -f $ac_dir/shtool; then
1553
ac_install_sh="$ac_aux_dir/shtool install -c"
1557
if test -z "$ac_aux_dir"; then
1558
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1559
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1560
{ (exit 1); exit 1; }; }
1562
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
# Find a good install program. We prefer a C program (faster),
1567
# so one script is as good as another. But avoid the broken or
1568
# incompatible versions:
1569
# SysV /etc/install, /usr/sbin/install
1570
# SunOS /usr/etc/install
1571
# IRIX /sbin/install
1573
# AmigaOS /C/install, which installs bootblocks on floppy discs
1574
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1575
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1576
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1577
# OS/2's system install, which has a completely different semantic
1578
# ./install, which can be erroneously created by make from ./install.sh.
1579
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1580
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1581
if test -z "$INSTALL"; then
1582
if test "${ac_cv_path_install+set}" = set; then
1583
echo $ECHO_N "(cached) $ECHO_C" >&6
1585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589
test -z "$as_dir" && as_dir=.
1590
# Account for people who put trailing slashes in PATH elements.
1592
./ | .// | /cC/* | \
1593
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1594
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1597
# OSF1 and SCO ODT 3.0 have their own names for install.
1598
# Don't use installbsd from OSF since it installs stuff as root
1600
for ac_prog in ginstall scoinst install; do
1601
for ac_exec_ext in '' $ac_executable_extensions; do
1602
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603
if test $ac_prog = install &&
1604
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605
# AIX install. It has an incompatible calling convention.
1607
elif test $ac_prog = install &&
1608
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609
# program-specific install script used by HP pwplus--don't use.
1612
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1624
if test "${ac_cv_path_install+set}" = set; then
1625
INSTALL=$ac_cv_path_install
1627
# As a last resort, use the slow shell script. We don't cache a
1628
# path for INSTALL within a source directory, because that will
1629
# break other packages using the cache if that directory is
1630
# removed, or if the path is relative.
1631
INSTALL=$ac_install_sh
1634
echo "$as_me:$LINENO: result: $INSTALL" >&5
1635
echo "${ECHO_T}$INSTALL" >&6
1637
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638
# It thinks the first close brace ends the variable substitution.
1639
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1649
echo timestamp > conftest.file
1650
# Do `set' in a subshell so we don't clobber the current shell's
1651
# arguments. Must try -L first in case configure is actually a
1652
# symlink; some systems play weird games with the mod time of symlinks
1653
# (eg FreeBSD returns the mod time of the symlink's containing
1656
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657
if test "$*" = "X"; then
1659
set X `ls -t $srcdir/configure conftest.file`
1662
if test "$*" != "X $srcdir/configure conftest.file" \
1663
&& test "$*" != "X conftest.file $srcdir/configure"; then
1665
# If neither matched, then we have a broken ls. This can happen
1666
# if, for instance, CONFIG_SHELL is bash and it inherits a
1667
# broken ls alias from the environment. This has actually
1668
# happened. Such a system could not be considered "sane".
1669
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1670
alias in your environment" >&5
1671
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1672
alias in your environment" >&2;}
1673
{ (exit 1); exit 1; }; }
1676
test "$2" = conftest.file
1682
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683
Check your system clock" >&5
1684
echo "$as_me: error: newly created file is older than distributed files!
1685
Check your system clock" >&2;}
1686
{ (exit 1); exit 1; }; }
1688
echo "$as_me:$LINENO: result: yes" >&5
1689
echo "${ECHO_T}yes" >&6
1690
test "$program_prefix" != NONE &&
1691
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692
# Use a double $ so make ignores it.
1693
test "$program_suffix" != NONE &&
1694
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695
# Double any \ or $. echo might interpret backslashes.
1696
# By default was `s,x,x', remove it if useless.
1697
cat <<\_ACEOF >conftest.sed
1698
s/[\\$]/&&/g;s/;s,x,x,$//
1700
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1703
# expand $ac_aux_dir to an absolute path
1704
am_aux_dir=`cd $ac_aux_dir && pwd`
1706
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1707
# Use eval to expand $SHELL
1708
if eval "$MISSING --run true"; then
1709
am_missing_run="$MISSING --run "
1712
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1713
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1716
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1717
# We used to keeping the `.' as first argument, in order to
1718
# allow $(mkdir_p) to be used without argument. As in
1719
# $(mkdir_p) $(somedir)
1720
# where $(somedir) is conditionally defined. However this is wrong
1722
# 1. if the package is installed by a user who cannot write `.'
1723
# make install will fail,
1724
# 2. the above comment should most certainly read
1725
# $(mkdir_p) $(DESTDIR)$(somedir)
1726
# so it does not work when $(somedir) is undefined and
1727
# $(DESTDIR) is not.
1728
# To support the latter case, we have to write
1729
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1730
# so the `.' trick is pointless.
1731
mkdir_p='mkdir -p --'
1733
# On NextStep and OpenStep, the `mkdir' command does not
1734
# recognize any option. It will interpret all options as
1735
# directories to create, and then abort because `.' already
1737
for d in ./-p ./--version;
1739
test -d $d && rmdir $d
1741
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1742
if test -f "$ac_aux_dir/mkinstalldirs"; then
1743
mkdir_p='$(mkinstalldirs)'
1745
mkdir_p='$(install_sh) -d'
1749
for ac_prog in gawk mawk nawk awk
1751
# Extract the first word of "$ac_prog", so it can be a program name with args.
1752
set dummy $ac_prog; ac_word=$2
1753
echo "$as_me:$LINENO: checking for $ac_word" >&5
1754
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755
if test "${ac_cv_prog_AWK+set}" = set; then
1756
echo $ECHO_N "(cached) $ECHO_C" >&6
1758
if test -n "$AWK"; then
1759
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765
test -z "$as_dir" && as_dir=.
1766
for ac_exec_ext in '' $ac_executable_extensions; do
1767
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768
ac_cv_prog_AWK="$ac_prog"
1769
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778
if test -n "$AWK"; then
1779
echo "$as_me:$LINENO: result: $AWK" >&5
1780
echo "${ECHO_T}$AWK" >&6
1782
echo "$as_me:$LINENO: result: no" >&5
1783
echo "${ECHO_T}no" >&6
1786
test -n "$AWK" && break
1789
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1790
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1791
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1792
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1793
echo $ECHO_N "(cached) $ECHO_C" >&6
1795
cat >conftest.make <<\_ACEOF
1797
@echo 'ac_maketemp="$(MAKE)"'
1799
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1800
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1801
if test -n "$ac_maketemp"; then
1802
eval ac_cv_prog_make_${ac_make}_set=yes
1804
eval ac_cv_prog_make_${ac_make}_set=no
1808
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1809
echo "$as_me:$LINENO: result: yes" >&5
1810
echo "${ECHO_T}yes" >&6
1813
echo "$as_me:$LINENO: result: no" >&5
1814
echo "${ECHO_T}no" >&6
1815
SET_MAKE="MAKE=${MAKE-make}"
1818
rm -rf .tst 2>/dev/null
1819
mkdir .tst 2>/dev/null
1820
if test -d .tst; then
1825
rmdir .tst 2>/dev/null
1827
# test to see if srcdir already configured
1828
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1829
test -f $srcdir/config.status; then
1830
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1831
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1832
{ (exit 1); exit 1; }; }
1835
# test whether we have cygpath
1836
if test -z "$CYGPATH_W"; then
1837
if (cygpath --version) >/dev/null 2>/dev/null; then
1838
CYGPATH_W='cygpath -w'
1845
# Define the identity of the package.
1850
cat >>confdefs.h <<_ACEOF
1851
#define PACKAGE "$PACKAGE"
1855
cat >>confdefs.h <<_ACEOF
1856
#define VERSION "$VERSION"
1859
# Some tools Automake needs.
1861
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1864
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1867
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1870
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1873
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1875
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1877
# Installed binaries are usually stripped using `strip' when the user
1878
# run `make install-strip'. However `strip' might not be the right
1879
# tool to use in cross-compilation environments, therefore Automake
1880
# will honor the `STRIP' environment variable to overrule this program.
1881
if test "$cross_compiling" != no; then
1882
if test -n "$ac_tool_prefix"; then
1883
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1884
set dummy ${ac_tool_prefix}strip; ac_word=$2
1885
echo "$as_me:$LINENO: checking for $ac_word" >&5
1886
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887
if test "${ac_cv_prog_STRIP+set}" = set; then
1888
echo $ECHO_N "(cached) $ECHO_C" >&6
1890
if test -n "$STRIP"; then
1891
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897
test -z "$as_dir" && as_dir=.
1898
for ac_exec_ext in '' $ac_executable_extensions; do
1899
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1901
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909
STRIP=$ac_cv_prog_STRIP
1910
if test -n "$STRIP"; then
1911
echo "$as_me:$LINENO: result: $STRIP" >&5
1912
echo "${ECHO_T}$STRIP" >&6
1914
echo "$as_me:$LINENO: result: no" >&5
1915
echo "${ECHO_T}no" >&6
1919
if test -z "$ac_cv_prog_STRIP"; then
1921
# Extract the first word of "strip", so it can be a program name with args.
1922
set dummy strip; ac_word=$2
1923
echo "$as_me:$LINENO: checking for $ac_word" >&5
1924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1926
echo $ECHO_N "(cached) $ECHO_C" >&6
1928
if test -n "$ac_ct_STRIP"; then
1929
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935
test -z "$as_dir" && as_dir=.
1936
for ac_exec_ext in '' $ac_executable_extensions; do
1937
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938
ac_cv_prog_ac_ct_STRIP="strip"
1939
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1948
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1949
if test -n "$ac_ct_STRIP"; then
1950
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1951
echo "${ECHO_T}$ac_ct_STRIP" >&6
1953
echo "$as_me:$LINENO: result: no" >&5
1954
echo "${ECHO_T}no" >&6
1959
STRIP="$ac_cv_prog_STRIP"
1963
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1965
# We need awk for the "check" target. The system "awk" is bad on
1967
# Always define AMTAR for backward compatibility.
1969
AMTAR=${AMTAR-"${am_missing_run}tar"}
1971
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1978
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1979
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1980
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1981
if test "${enable_maintainer_mode+set}" = set; then
1982
enableval="$enable_maintainer_mode"
1983
USE_MAINTAINER_MODE=$enableval
1985
USE_MAINTAINER_MODE=no
1987
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1988
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1991
if test $USE_MAINTAINER_MODE = yes; then
1992
MAINTAINER_MODE_TRUE=
1993
MAINTAINER_MODE_FALSE='#'
1995
MAINTAINER_MODE_TRUE='#'
1996
MAINTAINER_MODE_FALSE=
1999
MAINT=$MAINTAINER_MODE_TRUE
2003
ac_config_headers="$ac_config_headers config.h"
2006
# Checks for programs.
2007
# Check whether --enable-shared or --disable-shared was given.
2008
if test "${enable_shared+set}" = set; then
2009
enableval="$enable_shared"
2010
p=${PACKAGE-default}
2012
yes) enable_shared=yes ;;
2013
no) enable_shared=no ;;
2016
# Look at the argument we got. We use all the common list separators.
2017
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2018
for pkg in $enableval; do
2020
if test "X$pkg" = "X$p"; then
2031
# Check whether --enable-static or --disable-static was given.
2032
if test "${enable_static+set}" = set; then
2033
enableval="$enable_static"
2034
p=${PACKAGE-default}
2036
yes) enable_static=yes ;;
2037
no) enable_static=no ;;
2040
# Look at the argument we got. We use all the common list separators.
2041
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2042
for pkg in $enableval; do
2044
if test "X$pkg" = "X$p"; then
2055
# Check whether --enable-fast-install or --disable-fast-install was given.
2056
if test "${enable_fast_install+set}" = set; then
2057
enableval="$enable_fast_install"
2058
p=${PACKAGE-default}
2060
yes) enable_fast_install=yes ;;
2061
no) enable_fast_install=no ;;
2063
enable_fast_install=no
2064
# Look at the argument we got. We use all the common list separators.
2065
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2066
for pkg in $enableval; do
2068
if test "X$pkg" = "X$p"; then
2069
enable_fast_install=yes
2076
enable_fast_install=yes
2079
# Make sure we can run config.sub.
2080
$ac_config_sub sun4 >/dev/null 2>&1 ||
2081
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2082
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2083
{ (exit 1); exit 1; }; }
2085
echo "$as_me:$LINENO: checking build system type" >&5
2086
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2087
if test "${ac_cv_build+set}" = set; then
2088
echo $ECHO_N "(cached) $ECHO_C" >&6
2090
ac_cv_build_alias=$build_alias
2091
test -z "$ac_cv_build_alias" &&
2092
ac_cv_build_alias=`$ac_config_guess`
2093
test -z "$ac_cv_build_alias" &&
2094
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2095
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2096
{ (exit 1); exit 1; }; }
2097
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2098
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2099
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2100
{ (exit 1); exit 1; }; }
2103
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2104
echo "${ECHO_T}$ac_cv_build" >&6
2106
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2107
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2108
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2111
echo "$as_me:$LINENO: checking host system type" >&5
2112
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2113
if test "${ac_cv_host+set}" = set; then
2114
echo $ECHO_N "(cached) $ECHO_C" >&6
2116
ac_cv_host_alias=$host_alias
2117
test -z "$ac_cv_host_alias" &&
2118
ac_cv_host_alias=$ac_cv_build_alias
2119
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2120
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2121
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2122
{ (exit 1); exit 1; }; }
2125
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126
echo "${ECHO_T}$ac_cv_host" >&6
2128
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2129
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2130
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2133
DEPDIR="${am__leading_dot}deps"
2135
ac_config_commands="$ac_config_commands depfiles"
2138
am_make=${MAKE-make}
2139
cat > confinc << 'END'
2144
# If we don't find an include directive, just comment out the code.
2145
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2146
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2150
# First try GNU make style include.
2151
echo "include confinc" > confmf
2152
# We grep out `Entering directory' and `Leaving directory'
2153
# messages which can occur if `w' ends up in MAKEFLAGS.
2154
# In particular we don't look at `^make:' because GNU make might
2155
# be invoked under some other name (usually "gmake"), in which
2156
# case it prints its new name instead of `make'.
2157
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2162
# Now try BSD make style include.
2163
if test "$am__include" = "#"; then
2164
echo '.include "confinc"' > confmf
2165
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2166
am__include=.include
2173
echo "$as_me:$LINENO: result: $_am_result" >&5
2174
echo "${ECHO_T}$_am_result" >&6
2175
rm -f confinc confmf
2177
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2178
if test "${enable_dependency_tracking+set}" = set; then
2179
enableval="$enable_dependency_tracking"
2182
if test "x$enable_dependency_tracking" != xno; then
2183
am_depcomp="$ac_aux_dir/depcomp"
2188
if test "x$enable_dependency_tracking" != xno; then
2199
ac_cpp='$CPP $CPPFLAGS'
2200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
if test -n "$ac_tool_prefix"; then
2204
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2205
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208
if test "${ac_cv_prog_CC+set}" = set; then
2209
echo $ECHO_N "(cached) $ECHO_C" >&6
2211
if test -n "$CC"; then
2212
ac_cv_prog_CC="$CC" # Let the user override the test.
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
test -z "$as_dir" && as_dir=.
2219
for ac_exec_ext in '' $ac_executable_extensions; do
2220
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231
if test -n "$CC"; then
2232
echo "$as_me:$LINENO: result: $CC" >&5
2233
echo "${ECHO_T}$CC" >&6
2235
echo "$as_me:$LINENO: result: no" >&5
2236
echo "${ECHO_T}no" >&6
2240
if test -z "$ac_cv_prog_CC"; then
2242
# Extract the first word of "gcc", so it can be a program name with args.
2243
set dummy gcc; ac_word=$2
2244
echo "$as_me:$LINENO: checking for $ac_word" >&5
2245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2247
echo $ECHO_N "(cached) $ECHO_C" >&6
2249
if test -n "$ac_ct_CC"; then
2250
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256
test -z "$as_dir" && as_dir=.
2257
for ac_exec_ext in '' $ac_executable_extensions; do
2258
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259
ac_cv_prog_ac_ct_CC="gcc"
2260
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269
if test -n "$ac_ct_CC"; then
2270
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271
echo "${ECHO_T}$ac_ct_CC" >&6
2273
echo "$as_me:$LINENO: result: no" >&5
2274
echo "${ECHO_T}no" >&6
2282
if test -z "$CC"; then
2283
if test -n "$ac_tool_prefix"; then
2284
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2285
set dummy ${ac_tool_prefix}cc; ac_word=$2
2286
echo "$as_me:$LINENO: checking for $ac_word" >&5
2287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288
if test "${ac_cv_prog_CC+set}" = set; then
2289
echo $ECHO_N "(cached) $ECHO_C" >&6
2291
if test -n "$CC"; then
2292
ac_cv_prog_CC="$CC" # Let the user override the test.
2294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298
test -z "$as_dir" && as_dir=.
2299
for ac_exec_ext in '' $ac_executable_extensions; do
2300
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301
ac_cv_prog_CC="${ac_tool_prefix}cc"
2302
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311
if test -n "$CC"; then
2312
echo "$as_me:$LINENO: result: $CC" >&5
2313
echo "${ECHO_T}$CC" >&6
2315
echo "$as_me:$LINENO: result: no" >&5
2316
echo "${ECHO_T}no" >&6
2320
if test -z "$ac_cv_prog_CC"; then
2322
# Extract the first word of "cc", so it can be a program name with args.
2323
set dummy cc; ac_word=$2
2324
echo "$as_me:$LINENO: checking for $ac_word" >&5
2325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2326
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2327
echo $ECHO_N "(cached) $ECHO_C" >&6
2329
if test -n "$ac_ct_CC"; then
2330
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336
test -z "$as_dir" && as_dir=.
2337
for ac_exec_ext in '' $ac_executable_extensions; do
2338
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2339
ac_cv_prog_ac_ct_CC="cc"
2340
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349
if test -n "$ac_ct_CC"; then
2350
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351
echo "${ECHO_T}$ac_ct_CC" >&6
2353
echo "$as_me:$LINENO: result: no" >&5
2354
echo "${ECHO_T}no" >&6
2363
if test -z "$CC"; then
2364
# Extract the first word of "cc", so it can be a program name with args.
2365
set dummy cc; ac_word=$2
2366
echo "$as_me:$LINENO: checking for $ac_word" >&5
2367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368
if test "${ac_cv_prog_CC+set}" = set; then
2369
echo $ECHO_N "(cached) $ECHO_C" >&6
2371
if test -n "$CC"; then
2372
ac_cv_prog_CC="$CC" # Let the user override the test.
2375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379
test -z "$as_dir" && as_dir=.
2380
for ac_exec_ext in '' $ac_executable_extensions; do
2381
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2383
ac_prog_rejected=yes
2387
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393
if test $ac_prog_rejected = yes; then
2394
# We found a bogon in the path, so make sure we never use it.
2395
set dummy $ac_cv_prog_CC
2397
if test $# != 0; then
2398
# We chose a different compiler from the bogus one.
2399
# However, it has the same basename, so the bogon will be chosen
2400
# first if we set CC to just the basename; use the full file name.
2402
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2408
if test -n "$CC"; then
2409
echo "$as_me:$LINENO: result: $CC" >&5
2410
echo "${ECHO_T}$CC" >&6
2412
echo "$as_me:$LINENO: result: no" >&5
2413
echo "${ECHO_T}no" >&6
2417
if test -z "$CC"; then
2418
if test -n "$ac_tool_prefix"; then
2421
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2422
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2423
echo "$as_me:$LINENO: checking for $ac_word" >&5
2424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425
if test "${ac_cv_prog_CC+set}" = set; then
2426
echo $ECHO_N "(cached) $ECHO_C" >&6
2428
if test -n "$CC"; then
2429
ac_cv_prog_CC="$CC" # Let the user override the test.
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435
test -z "$as_dir" && as_dir=.
2436
for ac_exec_ext in '' $ac_executable_extensions; do
2437
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2439
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448
if test -n "$CC"; then
2449
echo "$as_me:$LINENO: result: $CC" >&5
2450
echo "${ECHO_T}$CC" >&6
2452
echo "$as_me:$LINENO: result: no" >&5
2453
echo "${ECHO_T}no" >&6
2456
test -n "$CC" && break
2459
if test -z "$CC"; then
2463
# Extract the first word of "$ac_prog", so it can be a program name with args.
2464
set dummy $ac_prog; ac_word=$2
2465
echo "$as_me:$LINENO: checking for $ac_word" >&5
2466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2467
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468
echo $ECHO_N "(cached) $ECHO_C" >&6
2470
if test -n "$ac_ct_CC"; then
2471
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477
test -z "$as_dir" && as_dir=.
2478
for ac_exec_ext in '' $ac_executable_extensions; do
2479
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480
ac_cv_prog_ac_ct_CC="$ac_prog"
2481
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490
if test -n "$ac_ct_CC"; then
2491
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492
echo "${ECHO_T}$ac_ct_CC" >&6
2494
echo "$as_me:$LINENO: result: no" >&5
2495
echo "${ECHO_T}no" >&6
2498
test -n "$ac_ct_CC" && break
2507
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2508
See \`config.log' for more details." >&5
2509
echo "$as_me: error: no acceptable C compiler found in \$PATH
2510
See \`config.log' for more details." >&2;}
2511
{ (exit 1); exit 1; }; }
2513
# Provide some information about the compiler.
2514
echo "$as_me:$LINENO:" \
2515
"checking for C compiler version" >&5
2516
ac_compiler=`set X $ac_compile; echo $2`
2517
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2518
(eval $ac_compiler --version </dev/null >&5) 2>&5
2520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521
(exit $ac_status); }
2522
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2523
(eval $ac_compiler -v </dev/null >&5) 2>&5
2525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526
(exit $ac_status); }
2527
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2528
(eval $ac_compiler -V </dev/null >&5) 2>&5
2530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531
(exit $ac_status); }
2533
cat >conftest.$ac_ext <<_ACEOF
2536
cat confdefs.h >>conftest.$ac_ext
2537
cat >>conftest.$ac_ext <<_ACEOF
2538
/* end confdefs.h. */
2548
ac_clean_files_save=$ac_clean_files
2549
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2550
# Try to create an executable without -o first, disregard a.out.
2551
# It will help us diagnose broken compilers, and finding out an intuition
2553
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2554
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2555
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2556
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2557
(eval $ac_link_default) 2>&5
2559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560
(exit $ac_status); }; then
2561
# Find the output, starting from the most likely. This scheme is
2562
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2565
# Be careful to initialize this variable, since it used to be cached.
2566
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2568
# b.out is created by i960 compilers.
2569
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2571
test -f "$ac_file" || continue
2573
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2576
# This is the source file.
2579
# We found the default executable, but exeext='' is most
2583
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2584
# FIXME: I believe we export ac_cv_exeext for Libtool,
2585
# but it would be cool to find out if it's true. Does anybody
2586
# maintain Libtool? --akim.
2594
echo "$as_me: failed program was:" >&5
2595
sed 's/^/| /' conftest.$ac_ext >&5
2597
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2598
See \`config.log' for more details." >&5
2599
echo "$as_me: error: C compiler cannot create executables
2600
See \`config.log' for more details." >&2;}
2601
{ (exit 77); exit 77; }; }
2604
ac_exeext=$ac_cv_exeext
2605
echo "$as_me:$LINENO: result: $ac_file" >&5
2606
echo "${ECHO_T}$ac_file" >&6
2608
# Check the compiler produces executables we can run. If not, either
2609
# the compiler is broken, or we cross compile.
2610
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2611
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2612
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2613
# If not cross compiling, check that we can run a simple program.
2614
if test "$cross_compiling" != yes; then
2615
if { ac_try='./$ac_file'
2616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620
(exit $ac_status); }; }; then
2623
if test "$cross_compiling" = maybe; then
2626
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2627
If you meant to cross compile, use \`--host'.
2628
See \`config.log' for more details." >&5
2629
echo "$as_me: error: cannot run C compiled programs.
2630
If you meant to cross compile, use \`--host'.
2631
See \`config.log' for more details." >&2;}
2632
{ (exit 1); exit 1; }; }
2636
echo "$as_me:$LINENO: result: yes" >&5
2637
echo "${ECHO_T}yes" >&6
2639
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2640
ac_clean_files=$ac_clean_files_save
2641
# Check the compiler produces executables we can run. If not, either
2642
# the compiler is broken, or we cross compile.
2643
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2644
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2645
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2646
echo "${ECHO_T}$cross_compiling" >&6
2648
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2649
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2651
(eval $ac_link) 2>&5
2653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654
(exit $ac_status); }; then
2655
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2656
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2657
# work properly (i.e., refer to `conftest.exe'), while it won't with
2659
for ac_file in conftest.exe conftest conftest.*; do
2660
test -f "$ac_file" || continue
2662
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2663
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2670
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2671
See \`config.log' for more details." >&5
2672
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2673
See \`config.log' for more details." >&2;}
2674
{ (exit 1); exit 1; }; }
2677
rm -f conftest$ac_cv_exeext
2678
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2679
echo "${ECHO_T}$ac_cv_exeext" >&6
2681
rm -f conftest.$ac_ext
2682
EXEEXT=$ac_cv_exeext
2684
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2685
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2686
if test "${ac_cv_objext+set}" = set; then
2687
echo $ECHO_N "(cached) $ECHO_C" >&6
2689
cat >conftest.$ac_ext <<_ACEOF
2692
cat confdefs.h >>conftest.$ac_ext
2693
cat >>conftest.$ac_ext <<_ACEOF
2694
/* end confdefs.h. */
2704
rm -f conftest.o conftest.obj
2705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706
(eval $ac_compile) 2>&5
2708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709
(exit $ac_status); }; then
2710
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2712
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2713
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2718
echo "$as_me: failed program was:" >&5
2719
sed 's/^/| /' conftest.$ac_ext >&5
2721
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2722
See \`config.log' for more details." >&5
2723
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2724
See \`config.log' for more details." >&2;}
2725
{ (exit 1); exit 1; }; }
2728
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2730
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2731
echo "${ECHO_T}$ac_cv_objext" >&6
2732
OBJEXT=$ac_cv_objext
2734
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2735
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2736
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2737
echo $ECHO_N "(cached) $ECHO_C" >&6
2739
cat >conftest.$ac_ext <<_ACEOF
2742
cat confdefs.h >>conftest.$ac_ext
2743
cat >>conftest.$ac_ext <<_ACEOF
2744
/* end confdefs.h. */
2757
rm -f conftest.$ac_objext
2758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759
(eval $ac_compile) 2>conftest.er1
2761
grep -v '^ *+' conftest.er1 >conftest.err
2763
cat conftest.err >&5
2764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
(exit $ac_status); } &&
2766
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771
(exit $ac_status); }; } &&
2772
{ ac_try='test -s conftest.$ac_objext'
2773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777
(exit $ac_status); }; }; then
2780
echo "$as_me: failed program was:" >&5
2781
sed 's/^/| /' conftest.$ac_ext >&5
2785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2789
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2790
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2791
GCC=`test $ac_compiler_gnu = yes && echo yes`
2792
ac_test_CFLAGS=${CFLAGS+set}
2793
ac_save_CFLAGS=$CFLAGS
2795
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2796
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2797
if test "${ac_cv_prog_cc_g+set}" = set; then
2798
echo $ECHO_N "(cached) $ECHO_C" >&6
2800
cat >conftest.$ac_ext <<_ACEOF
2803
cat confdefs.h >>conftest.$ac_ext
2804
cat >>conftest.$ac_ext <<_ACEOF
2805
/* end confdefs.h. */
2815
rm -f conftest.$ac_objext
2816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817
(eval $ac_compile) 2>conftest.er1
2819
grep -v '^ *+' conftest.er1 >conftest.err
2821
cat conftest.err >&5
2822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
(exit $ac_status); } &&
2824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
(exit $ac_status); }; } &&
2830
{ ac_try='test -s conftest.$ac_objext'
2831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835
(exit $ac_status); }; }; then
2838
echo "$as_me: failed program was:" >&5
2839
sed 's/^/| /' conftest.$ac_ext >&5
2843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2846
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2847
if test "$ac_test_CFLAGS" = set; then
2848
CFLAGS=$ac_save_CFLAGS
2849
elif test $ac_cv_prog_cc_g = yes; then
2850
if test "$GCC" = yes; then
2856
if test "$GCC" = yes; then
2862
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2863
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2864
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2865
echo $ECHO_N "(cached) $ECHO_C" >&6
2867
ac_cv_prog_cc_stdc=no
2869
cat >conftest.$ac_ext <<_ACEOF
2872
cat confdefs.h >>conftest.$ac_ext
2873
cat >>conftest.$ac_ext <<_ACEOF
2874
/* end confdefs.h. */
2877
#include <sys/types.h>
2878
#include <sys/stat.h>
2879
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2880
struct buf { int x; };
2881
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2882
static char *e (p, i)
2888
static char *f (char * (*g) (char **, int), char **p, ...)
2893
s = g (p, va_arg (v,int));
2898
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2899
function prototypes and stuff, but not '\xHH' hex character constants.
2900
These don't provoke an error unfortunately, instead are silently treated
2901
as 'x'. The following induces an error, until -std1 is added to get
2902
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2903
array size at least. It's necessary to write '\x00'==0 to get something
2904
that's true only with -std1. */
2905
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2907
int test (int i, double x);
2908
struct s1 {int (*f) (int a);};
2909
struct s2 {int (*f) (double a);};
2910
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2916
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2921
# Don't try gcc -ansi; that turns off useful extensions and
2922
# breaks some systems' header files.
2923
# AIX -qlanglvl=ansi
2924
# Ultrix and OSF/1 -std1
2925
# HP-UX 10.20 and later -Ae
2926
# HP-UX older versions -Aa -D_HPUX_SOURCE
2927
# SVR4 -Xc -D__EXTENSIONS__
2928
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2930
CC="$ac_save_CC $ac_arg"
2931
rm -f conftest.$ac_objext
2932
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2933
(eval $ac_compile) 2>conftest.er1
2935
grep -v '^ *+' conftest.er1 >conftest.err
2937
cat conftest.err >&5
2938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939
(exit $ac_status); } &&
2940
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945
(exit $ac_status); }; } &&
2946
{ ac_try='test -s conftest.$ac_objext'
2947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951
(exit $ac_status); }; }; then
2952
ac_cv_prog_cc_stdc=$ac_arg
2955
echo "$as_me: failed program was:" >&5
2956
sed 's/^/| /' conftest.$ac_ext >&5
2959
rm -f conftest.err conftest.$ac_objext
2961
rm -f conftest.$ac_ext conftest.$ac_objext
2966
case "x$ac_cv_prog_cc_stdc" in
2968
echo "$as_me:$LINENO: result: none needed" >&5
2969
echo "${ECHO_T}none needed" >&6 ;;
2971
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2972
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2973
CC="$CC $ac_cv_prog_cc_stdc" ;;
2976
# Some people use a C++ compiler to compile C. Since we use `exit',
2977
# in C++ we need to declare it. In case someone uses the same compiler
2978
# for both compiling C and C++ we need to have the C++ compiler decide
2979
# the declaration of exit, since it's the most demanding environment.
2980
cat >conftest.$ac_ext <<_ACEOF
2985
rm -f conftest.$ac_objext
2986
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987
(eval $ac_compile) 2>conftest.er1
2989
grep -v '^ *+' conftest.er1 >conftest.err
2991
cat conftest.err >&5
2992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993
(exit $ac_status); } &&
2994
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999
(exit $ac_status); }; } &&
3000
{ ac_try='test -s conftest.$ac_objext'
3001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005
(exit $ac_status); }; }; then
3006
for ac_declaration in \
3008
'extern "C" void std::exit (int) throw (); using std::exit;' \
3009
'extern "C" void std::exit (int); using std::exit;' \
3010
'extern "C" void exit (int) throw ();' \
3011
'extern "C" void exit (int);' \
3014
cat >conftest.$ac_ext <<_ACEOF
3017
cat confdefs.h >>conftest.$ac_ext
3018
cat >>conftest.$ac_ext <<_ACEOF
3019
/* end confdefs.h. */
3030
rm -f conftest.$ac_objext
3031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3032
(eval $ac_compile) 2>conftest.er1
3034
grep -v '^ *+' conftest.er1 >conftest.err
3036
cat conftest.err >&5
3037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038
(exit $ac_status); } &&
3039
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
(exit $ac_status); }; } &&
3045
{ ac_try='test -s conftest.$ac_objext'
3046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050
(exit $ac_status); }; }; then
3053
echo "$as_me: failed program was:" >&5
3054
sed 's/^/| /' conftest.$ac_ext >&5
3058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059
cat >conftest.$ac_ext <<_ACEOF
3062
cat confdefs.h >>conftest.$ac_ext
3063
cat >>conftest.$ac_ext <<_ACEOF
3064
/* end confdefs.h. */
3074
rm -f conftest.$ac_objext
3075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076
(eval $ac_compile) 2>conftest.er1
3078
grep -v '^ *+' conftest.er1 >conftest.err
3080
cat conftest.err >&5
3081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082
(exit $ac_status); } &&
3083
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088
(exit $ac_status); }; } &&
3089
{ ac_try='test -s conftest.$ac_objext'
3090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094
(exit $ac_status); }; }; then
3097
echo "$as_me: failed program was:" >&5
3098
sed 's/^/| /' conftest.$ac_ext >&5
3101
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104
if test -n "$ac_declaration"; then
3105
echo '#ifdef __cplusplus' >>confdefs.h
3106
echo $ac_declaration >>confdefs.h
3107
echo '#endif' >>confdefs.h
3111
echo "$as_me: failed program was:" >&5
3112
sed 's/^/| /' conftest.$ac_ext >&5
3115
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117
ac_cpp='$CPP $CPPFLAGS'
3118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122
depcc="$CC" am_compiler_list=
3124
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3126
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3127
echo $ECHO_N "(cached) $ECHO_C" >&6
3129
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130
# We make a subdir and do the tests there. Otherwise we can end up
3131
# making bogus files that we don't know about and never remove. For
3132
# instance it was reported that on HP-UX the gcc test will end up
3133
# making a dummy file named `D' -- because `-MD' means `put the output
3136
# Copy depcomp to subdir because otherwise we won't find it if we're
3137
# using a relative directory.
3138
cp "$am_depcomp" conftest.dir
3140
# We will build objects and dependencies in a subdirectory because
3141
# it helps to detect inapplicable dependency modes. For instance
3142
# both Tru64's cc and ICC support -MD to output dependencies as a
3143
# side effect of compilation, but ICC will put the dependencies in
3144
# the current directory while Tru64 will put them in the object
3148
am_cv_CC_dependencies_compiler_type=none
3149
if test "$am_compiler_list" = ""; then
3150
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152
for depmode in $am_compiler_list; do
3153
# Setup a source with many dependencies, because some compilers
3154
# like to wrap large dependency lists on column 80 (with \), and
3155
# we should not choose a depcomp mode which is confused by this.
3157
# We need to recreate these files for each test, as the compiler may
3158
# overwrite some of them when testing with obscure command lines.
3159
# This happens at least with the AIX C compiler.
3161
for i in 1 2 3 4 5 6; do
3162
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3164
# Solaris 8's {/usr,}/bin/sh.
3165
touch sub/conftst$i.h
3167
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3171
# after this tag, mechanisms are not by side-effect, so they'll
3172
# only be used when explicitly requested
3173
if test "x$enable_dependency_tracking" = xyes; then
3181
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3182
# mode. It turns out that the SunPro C++ compiler does not properly
3183
# handle `-M -o', and we need to detect this.
3184
if depmode=$depmode \
3185
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3186
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3187
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3188
>/dev/null 2>conftest.err &&
3189
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3190
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3191
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3192
# icc doesn't choke on unknown options, it will just issue warnings
3193
# or remarks (even with -Werror). So we grep stderr for any message
3194
# that says an option was ignored or not supported.
3195
# When given -MP, icc 7.0 and 7.1 complain thusly:
3196
# icc: Command line warning: ignoring option '-M'; no argument required
3197
# The diagnosis changed in icc 8.0:
3198
# icc: Command line remark: option '-MP' not supported
3199
if (grep 'ignoring option' conftest.err ||
3200
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3201
am_cv_CC_dependencies_compiler_type=$depmode
3210
am_cv_CC_dependencies_compiler_type=none
3214
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3215
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3216
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3221
test "x$enable_dependency_tracking" != xno \
3222
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224
am__fastdepCC_FALSE='#'
3226
am__fastdepCC_TRUE='#'
3227
am__fastdepCC_FALSE=
3231
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3232
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3233
if test "${lt_cv_path_SED+set}" = set; then
3234
echo $ECHO_N "(cached) $ECHO_C" >&6
3236
# Loop through the user's path and test for sed and gsed.
3237
# Then use that list of sed's as ones to test for truncation.
3238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242
test -z "$as_dir" && as_dir=.
3243
for lt_ac_prog in sed gsed; do
3244
for ac_exec_ext in '' $ac_executable_extensions; do
3245
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3246
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3253
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3254
# along with /bin/sed that truncates output.
3255
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3256
test ! -f $lt_ac_sed && break
3257
cat /dev/null > conftest.in
3259
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3260
# Check for GNU sed and select it if it is found.
3261
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3262
lt_cv_path_SED=$lt_ac_sed
3266
cat conftest.in conftest.in >conftest.tmp
3267
mv conftest.tmp conftest.in
3268
cp conftest.in conftest.nl
3270
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3271
cmp -s conftest.out conftest.nl || break
3272
# 10000 chars as input seems more than enough
3273
test $lt_ac_count -gt 10 && break
3274
lt_ac_count=`expr $lt_ac_count + 1`
3275
if test $lt_ac_count -gt $lt_ac_max; then
3276
lt_ac_max=$lt_ac_count
3277
lt_cv_path_SED=$lt_ac_sed
3285
echo "$as_me:$LINENO: result: $SED" >&5
3286
echo "${ECHO_T}$SED" >&6
3288
echo "$as_me:$LINENO: checking for egrep" >&5
3289
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290
if test "${ac_cv_prog_egrep+set}" = set; then
3291
echo $ECHO_N "(cached) $ECHO_C" >&6
3293
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294
then ac_cv_prog_egrep='grep -E'
3295
else ac_cv_prog_egrep='egrep'
3298
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3299
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300
EGREP=$ac_cv_prog_egrep
3304
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3305
if test "${with_gnu_ld+set}" = set; then
3306
withval="$with_gnu_ld"
3307
test "$withval" = no || with_gnu_ld=yes
3312
if test "$GCC" = yes; then
3313
# Check if gcc -print-prog-name=ld gives a path.
3314
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3315
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3318
# gcc leaves a trailing carriage return which upsets mingw
3319
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324
# Accept absolute paths.
3326
re_direlt='/[^/][^/]*/\.\./'
3327
# Canonicalize the pathname of ld
3328
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3332
test -z "$LD" && LD="$ac_prog"
3335
# If it fails, then pretend we aren't using GCC.
3339
# If it is relative, then search for the first ld in PATH.
3343
elif test "$with_gnu_ld" = yes; then
3344
echo "$as_me:$LINENO: checking for GNU ld" >&5
3345
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3347
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3348
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3350
if test "${lt_cv_path_LD+set}" = set; then
3351
echo $ECHO_N "(cached) $ECHO_C" >&6
3353
if test -z "$LD"; then
3354
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3355
for ac_dir in $PATH; do
3357
test -z "$ac_dir" && ac_dir=.
3358
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359
lt_cv_path_LD="$ac_dir/$ac_prog"
3360
# Check to see if the program is GNU ld. I'd rather use --version,
3361
# but apparently some GNU ld's only accept -v.
3362
# Break only if it was the GNU/non-GNU ld that we prefer.
3363
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3364
*GNU* | *'with BFD'*)
3365
test "$with_gnu_ld" != no && break
3368
test "$with_gnu_ld" != yes && break
3375
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3380
if test -n "$LD"; then
3381
echo "$as_me:$LINENO: result: $LD" >&5
3382
echo "${ECHO_T}$LD" >&6
3384
echo "$as_me:$LINENO: result: no" >&5
3385
echo "${ECHO_T}no" >&6
3387
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389
{ (exit 1); exit 1; }; }
3390
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393
echo $ECHO_N "(cached) $ECHO_C" >&6
3395
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396
case `$LD -v 2>&1 </dev/null` in
3397
*GNU* | *'with BFD'*)
3398
lt_cv_prog_gnu_ld=yes
3401
lt_cv_prog_gnu_ld=no
3405
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3406
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3407
with_gnu_ld=$lt_cv_prog_gnu_ld
3410
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3411
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3412
if test "${lt_cv_ld_reload_flag+set}" = set; then
3413
echo $ECHO_N "(cached) $ECHO_C" >&6
3415
lt_cv_ld_reload_flag='-r'
3417
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3418
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3419
reload_flag=$lt_cv_ld_reload_flag
3420
case $reload_flag in
3422
*) reload_flag=" $reload_flag" ;;
3424
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3426
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3427
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3428
if test "${lt_cv_path_NM+set}" = set; then
3429
echo $ECHO_N "(cached) $ECHO_C" >&6
3431
if test -n "$NM"; then
3432
# Let the user override the test.
3435
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3436
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3438
test -z "$ac_dir" && ac_dir=.
3439
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3440
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3441
# Check to see if the nm accepts a BSD-compat flag.
3442
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3443
# nm: unknown option "B" ignored
3444
# Tru64's nm complains that /dev/null is an invalid object file
3445
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3446
*/dev/null* | *'Invalid file or object type'*)
3447
lt_cv_path_NM="$tmp_nm -B"
3451
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3453
lt_cv_path_NM="$tmp_nm -p"
3457
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3458
continue # so that we can try to find one that supports BSD flags
3465
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3468
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3469
echo "${ECHO_T}$lt_cv_path_NM" >&6
3472
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3473
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3475
if test "$LN_S" = "ln -s"; then
3476
echo "$as_me:$LINENO: result: yes" >&5
3477
echo "${ECHO_T}yes" >&6
3479
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3480
echo "${ECHO_T}no, using $LN_S" >&6
3483
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3484
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3485
if test "${lt_cv_deplibs_check_method+set}" = set; then
3486
echo $ECHO_N "(cached) $ECHO_C" >&6
3488
lt_cv_file_magic_cmd='$MAGIC_CMD'
3489
lt_cv_file_magic_test_file=
3490
lt_cv_deplibs_check_method='unknown'
3491
# Need to set the preceding variable on all platforms that support
3492
# interlibrary dependencies.
3493
# 'none' -- dependencies not supported.
3494
# `unknown' -- same as none, but documents that we really don't know.
3495
# 'pass_all' -- all dependencies passed with no checks.
3496
# 'test_compile' -- check by making test program.
3497
# 'file_magic [[regex]]' -- check by looking for files in library path
3498
# which responds to the $file_magic_cmd with a given extended regex.
3499
# If you have `file' or equivalent on your system and you're not sure
3500
# whether `pass_all' will *always* work, you probably want this one.
3504
lt_cv_deplibs_check_method=pass_all
3508
lt_cv_deplibs_check_method=pass_all
3512
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3513
lt_cv_file_magic_cmd='/usr/bin/file -L'
3514
lt_cv_file_magic_test_file=/shlib/libc.so
3518
# func_win32_libid is a shell function defined in ltmain.sh
3519
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3520
lt_cv_file_magic_cmd='func_win32_libid'
3524
# Base MSYS/MinGW do not provide the 'file' command needed by
3525
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3526
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3527
lt_cv_file_magic_cmd='$OBJDUMP -f'
3530
darwin* | rhapsody*)
3531
lt_cv_deplibs_check_method=pass_all
3534
freebsd* | kfreebsd*-gnu)
3535
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3538
# Not sure whether the presence of OpenBSD here was a mistake.
3539
# Let's accept both of them until this is cleared up.
3540
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3541
lt_cv_file_magic_cmd=/usr/bin/file
3542
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3546
lt_cv_deplibs_check_method=pass_all
3551
lt_cv_deplibs_check_method=pass_all
3554
hpux10.20* | hpux11*)
3555
lt_cv_file_magic_cmd=/usr/bin/file
3558
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3559
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3562
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]'
3563
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3566
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3567
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3572
irix5* | irix6* | nonstopux*)
3574
*-32|*"-32 ") libmagic=32-bit;;
3575
*-n32|*"-n32 ") libmagic=N32;;
3576
*-64|*"-64 ") libmagic=64-bit;;
3577
*) libmagic=never-match;;
3579
lt_cv_deplibs_check_method=pass_all
3582
# This must be Linux ELF.
3584
lt_cv_deplibs_check_method=pass_all
3587
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3588
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3589
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3591
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3596
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597
lt_cv_file_magic_cmd=/usr/bin/file
3598
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3602
lt_cv_deplibs_check_method=unknown
3606
lt_cv_file_magic_cmd=/usr/bin/file
3607
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3608
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3609
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3611
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3615
osf3* | osf4* | osf5*)
3616
lt_cv_deplibs_check_method=pass_all
3620
lt_cv_deplibs_check_method=pass_all
3624
lt_cv_deplibs_check_method=pass_all
3627
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3628
case $host_vendor in
3630
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]'
3631
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3634
lt_cv_deplibs_check_method=pass_all
3637
lt_cv_file_magic_cmd='/bin/file'
3638
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3641
lt_cv_file_magic_cmd='/bin/file'
3642
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3643
lt_cv_file_magic_test_file=/lib/libc.so
3646
lt_cv_deplibs_check_method=pass_all
3651
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3652
lt_cv_deplibs_check_method=pass_all
3657
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3658
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3659
file_magic_cmd=$lt_cv_file_magic_cmd
3660
deplibs_check_method=$lt_cv_deplibs_check_method
3661
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3666
# If no C compiler was specified, use CC.
3669
# Allow CC to be a program name with arguments.
3673
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3674
if test "${enable_libtool_lock+set}" = set; then
3675
enableval="$enable_libtool_lock"
3678
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3680
# Some flags need to be propagated to the compiler or linker for good
3684
# Find out which ABI we are using.
3685
echo 'int i;' > conftest.$ac_ext
3686
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687
(eval $ac_compile) 2>&5
3689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
(exit $ac_status); }; then
3691
case `/usr/bin/file conftest.$ac_objext` in
3703
# Find out which ABI we are using.
3704
echo '#line 3704 "configure"' > conftest.$ac_ext
3705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706
(eval $ac_compile) 2>&5
3708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
(exit $ac_status); }; then
3710
if test "$lt_cv_prog_gnu_ld" = yes; then
3711
case `/usr/bin/file conftest.$ac_objext` in
3713
LD="${LD-ld} -melf32bsmip"
3716
LD="${LD-ld} -melf32bmipn32"
3719
LD="${LD-ld} -melf64bmip"
3723
case `/usr/bin/file conftest.$ac_objext` in
3739
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3740
# Find out which ABI we are using.
3741
echo 'int i;' > conftest.$ac_ext
3742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743
(eval $ac_compile) 2>&5
3745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746
(exit $ac_status); }; then
3747
case "`/usr/bin/file conftest.o`" in
3751
LD="${LD-ld} -m elf_i386"
3753
ppc64-*linux*|powerpc64-*linux*)
3754
LD="${LD-ld} -m elf32ppclinux"
3757
LD="${LD-ld} -m elf_s390"
3760
LD="${LD-ld} -m elf32_sparc"
3767
LD="${LD-ld} -m elf_x86_64"
3769
ppc*-*linux*|powerpc*-*linux*)
3770
LD="${LD-ld} -m elf64ppc"
3773
LD="${LD-ld} -m elf64_s390"
3776
LD="${LD-ld} -m elf64_sparc"
3786
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3787
SAVE_CFLAGS="$CFLAGS"
3788
CFLAGS="$CFLAGS -belf"
3789
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3790
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3791
if test "${lt_cv_cc_needs_belf+set}" = set; then
3792
echo $ECHO_N "(cached) $ECHO_C" >&6
3795
ac_cpp='$CPP $CPPFLAGS'
3796
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
cat >conftest.$ac_ext <<_ACEOF
3803
cat confdefs.h >>conftest.$ac_ext
3804
cat >>conftest.$ac_ext <<_ACEOF
3805
/* end confdefs.h. */
3815
rm -f conftest.$ac_objext conftest$ac_exeext
3816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817
(eval $ac_link) 2>conftest.er1
3819
grep -v '^ *+' conftest.er1 >conftest.err
3821
cat conftest.err >&5
3822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823
(exit $ac_status); } &&
3824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829
(exit $ac_status); }; } &&
3830
{ ac_try='test -s conftest$ac_exeext'
3831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835
(exit $ac_status); }; }; then
3836
lt_cv_cc_needs_belf=yes
3838
echo "$as_me: failed program was:" >&5
3839
sed 's/^/| /' conftest.$ac_ext >&5
3841
lt_cv_cc_needs_belf=no
3843
rm -f conftest.err conftest.$ac_objext \
3844
conftest$ac_exeext conftest.$ac_ext
3846
ac_cpp='$CPP $CPPFLAGS'
3847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3853
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3854
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3855
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3856
CFLAGS="$SAVE_CFLAGS"
3862
need_locks="$enable_libtool_lock"
3866
ac_cpp='$CPP $CPPFLAGS'
3867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3871
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3872
# On Suns, sometimes $CPP names a directory.
3873
if test -n "$CPP" && test -d "$CPP"; then
3876
if test -z "$CPP"; then
3877
if test "${ac_cv_prog_CPP+set}" = set; then
3878
echo $ECHO_N "(cached) $ECHO_C" >&6
3880
# Double quotes because CPP needs to be expanded
3881
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3884
for ac_c_preproc_warn_flag in '' yes
3886
# Use a header file that comes with gcc, so configuring glibc
3887
# with a fresh cross-compiler works.
3888
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889
# <limits.h> exists even on freestanding compilers.
3890
# On the NeXT, cc -E runs the code through the compiler's parser,
3891
# not just through cpp. "Syntax error" is here to catch this case.
3892
cat >conftest.$ac_ext <<_ACEOF
3895
cat confdefs.h >>conftest.$ac_ext
3896
cat >>conftest.$ac_ext <<_ACEOF
3897
/* end confdefs.h. */
3899
# include <limits.h>
3901
# include <assert.h>
3905
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908
grep -v '^ *+' conftest.er1 >conftest.err
3910
cat conftest.err >&5
3911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912
(exit $ac_status); } >/dev/null; then
3913
if test -s conftest.err; then
3914
ac_cpp_err=$ac_c_preproc_warn_flag
3915
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3922
if test -z "$ac_cpp_err"; then
3925
echo "$as_me: failed program was:" >&5
3926
sed 's/^/| /' conftest.$ac_ext >&5
3928
# Broken: fails on valid input.
3931
rm -f conftest.err conftest.$ac_ext
3933
# OK, works on sane cases. Now check whether non-existent headers
3934
# can be detected and how.
3935
cat >conftest.$ac_ext <<_ACEOF
3938
cat confdefs.h >>conftest.$ac_ext
3939
cat >>conftest.$ac_ext <<_ACEOF
3940
/* end confdefs.h. */
3941
#include <ac_nonexistent.h>
3943
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3944
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3946
grep -v '^ *+' conftest.er1 >conftest.err
3948
cat conftest.err >&5
3949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
(exit $ac_status); } >/dev/null; then
3951
if test -s conftest.err; then
3952
ac_cpp_err=$ac_c_preproc_warn_flag
3953
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3960
if test -z "$ac_cpp_err"; then
3961
# Broken: success on invalid input.
3964
echo "$as_me: failed program was:" >&5
3965
sed 's/^/| /' conftest.$ac_ext >&5
3967
# Passes both tests.
3971
rm -f conftest.err conftest.$ac_ext
3974
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3975
rm -f conftest.err conftest.$ac_ext
3976
if $ac_preproc_ok; then
3988
echo "$as_me:$LINENO: result: $CPP" >&5
3989
echo "${ECHO_T}$CPP" >&6
3991
for ac_c_preproc_warn_flag in '' yes
3993
# Use a header file that comes with gcc, so configuring glibc
3994
# with a fresh cross-compiler works.
3995
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996
# <limits.h> exists even on freestanding compilers.
3997
# On the NeXT, cc -E runs the code through the compiler's parser,
3998
# not just through cpp. "Syntax error" is here to catch this case.
3999
cat >conftest.$ac_ext <<_ACEOF
4002
cat confdefs.h >>conftest.$ac_ext
4003
cat >>conftest.$ac_ext <<_ACEOF
4004
/* end confdefs.h. */
4006
# include <limits.h>
4008
# include <assert.h>
4012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015
grep -v '^ *+' conftest.er1 >conftest.err
4017
cat conftest.err >&5
4018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019
(exit $ac_status); } >/dev/null; then
4020
if test -s conftest.err; then
4021
ac_cpp_err=$ac_c_preproc_warn_flag
4022
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4029
if test -z "$ac_cpp_err"; then
4032
echo "$as_me: failed program was:" >&5
4033
sed 's/^/| /' conftest.$ac_ext >&5
4035
# Broken: fails on valid input.
4038
rm -f conftest.err conftest.$ac_ext
4040
# OK, works on sane cases. Now check whether non-existent headers
4041
# can be detected and how.
4042
cat >conftest.$ac_ext <<_ACEOF
4045
cat confdefs.h >>conftest.$ac_ext
4046
cat >>conftest.$ac_ext <<_ACEOF
4047
/* end confdefs.h. */
4048
#include <ac_nonexistent.h>
4050
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4051
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4053
grep -v '^ *+' conftest.er1 >conftest.err
4055
cat conftest.err >&5
4056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057
(exit $ac_status); } >/dev/null; then
4058
if test -s conftest.err; then
4059
ac_cpp_err=$ac_c_preproc_warn_flag
4060
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4067
if test -z "$ac_cpp_err"; then
4068
# Broken: success on invalid input.
4071
echo "$as_me: failed program was:" >&5
4072
sed 's/^/| /' conftest.$ac_ext >&5
4074
# Passes both tests.
4078
rm -f conftest.err conftest.$ac_ext
4081
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082
rm -f conftest.err conftest.$ac_ext
4083
if $ac_preproc_ok; then
4086
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4087
See \`config.log' for more details." >&5
4088
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4089
See \`config.log' for more details." >&2;}
4090
{ (exit 1); exit 1; }; }
4094
ac_cpp='$CPP $CPPFLAGS'
4095
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4101
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4102
if test "${ac_cv_header_stdc+set}" = set; then
4103
echo $ECHO_N "(cached) $ECHO_C" >&6
4105
cat >conftest.$ac_ext <<_ACEOF
4108
cat confdefs.h >>conftest.$ac_ext
4109
cat >>conftest.$ac_ext <<_ACEOF
4110
/* end confdefs.h. */
4124
rm -f conftest.$ac_objext
4125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126
(eval $ac_compile) 2>conftest.er1
4128
grep -v '^ *+' conftest.er1 >conftest.err
4130
cat conftest.err >&5
4131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132
(exit $ac_status); } &&
4133
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4134
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138
(exit $ac_status); }; } &&
4139
{ ac_try='test -s conftest.$ac_objext'
4140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144
(exit $ac_status); }; }; then
4145
ac_cv_header_stdc=yes
4147
echo "$as_me: failed program was:" >&5
4148
sed 's/^/| /' conftest.$ac_ext >&5
4150
ac_cv_header_stdc=no
4152
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4154
if test $ac_cv_header_stdc = yes; then
4155
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4156
cat >conftest.$ac_ext <<_ACEOF
4159
cat confdefs.h >>conftest.$ac_ext
4160
cat >>conftest.$ac_ext <<_ACEOF
4161
/* end confdefs.h. */
4165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166
$EGREP "memchr" >/dev/null 2>&1; then
4169
ac_cv_header_stdc=no
4175
if test $ac_cv_header_stdc = yes; then
4176
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4177
cat >conftest.$ac_ext <<_ACEOF
4180
cat confdefs.h >>conftest.$ac_ext
4181
cat >>conftest.$ac_ext <<_ACEOF
4182
/* end confdefs.h. */
4186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187
$EGREP "free" >/dev/null 2>&1; then
4190
ac_cv_header_stdc=no
4196
if test $ac_cv_header_stdc = yes; then
4197
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4198
if test "$cross_compiling" = yes; then
4201
cat >conftest.$ac_ext <<_ACEOF
4204
cat confdefs.h >>conftest.$ac_ext
4205
cat >>conftest.$ac_ext <<_ACEOF
4206
/* end confdefs.h. */
4208
#if ((' ' & 0x0FF) == 0x020)
4209
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4212
# define ISLOWER(c) \
4213
(('a' <= (c) && (c) <= 'i') \
4214
|| ('j' <= (c) && (c) <= 'r') \
4215
|| ('s' <= (c) && (c) <= 'z'))
4216
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4219
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224
for (i = 0; i < 256; i++)
4225
if (XOR (islower (i), ISLOWER (i))
4226
|| toupper (i) != TOUPPER (i))
4231
rm -f conftest$ac_exeext
4232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233
(eval $ac_link) 2>&5
4235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241
(exit $ac_status); }; }; then
4244
echo "$as_me: program exited with status $ac_status" >&5
4245
echo "$as_me: failed program was:" >&5
4246
sed 's/^/| /' conftest.$ac_ext >&5
4249
ac_cv_header_stdc=no
4251
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4256
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4257
if test $ac_cv_header_stdc = yes; then
4259
cat >>confdefs.h <<\_ACEOF
4260
#define STDC_HEADERS 1
4265
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276
inttypes.h stdint.h unistd.h
4278
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279
echo "$as_me:$LINENO: checking for $ac_header" >&5
4280
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4281
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4282
echo $ECHO_N "(cached) $ECHO_C" >&6
4284
cat >conftest.$ac_ext <<_ACEOF
4287
cat confdefs.h >>conftest.$ac_ext
4288
cat >>conftest.$ac_ext <<_ACEOF
4289
/* end confdefs.h. */
4290
$ac_includes_default
4292
#include <$ac_header>
4294
rm -f conftest.$ac_objext
4295
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296
(eval $ac_compile) 2>conftest.er1
4298
grep -v '^ *+' conftest.er1 >conftest.err
4300
cat conftest.err >&5
4301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302
(exit $ac_status); } &&
4303
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
(exit $ac_status); }; } &&
4309
{ ac_try='test -s conftest.$ac_objext'
4310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
(exit $ac_status); }; }; then
4315
eval "$as_ac_Header=yes"
4317
echo "$as_me: failed program was:" >&5
4318
sed 's/^/| /' conftest.$ac_ext >&5
4320
eval "$as_ac_Header=no"
4322
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4324
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4325
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4326
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4327
cat >>confdefs.h <<_ACEOF
4328
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337
for ac_header in dlfcn.h
4339
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4340
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4341
echo "$as_me:$LINENO: checking for $ac_header" >&5
4342
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4343
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344
echo $ECHO_N "(cached) $ECHO_C" >&6
4346
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4347
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4349
# Is the header compilable?
4350
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4351
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4352
cat >conftest.$ac_ext <<_ACEOF
4355
cat confdefs.h >>conftest.$ac_ext
4356
cat >>conftest.$ac_ext <<_ACEOF
4357
/* end confdefs.h. */
4358
$ac_includes_default
4359
#include <$ac_header>
4361
rm -f conftest.$ac_objext
4362
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363
(eval $ac_compile) 2>conftest.er1
4365
grep -v '^ *+' conftest.er1 >conftest.err
4367
cat conftest.err >&5
4368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369
(exit $ac_status); } &&
4370
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
(exit $ac_status); }; } &&
4376
{ ac_try='test -s conftest.$ac_objext'
4377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
(exit $ac_status); }; }; then
4382
ac_header_compiler=yes
4384
echo "$as_me: failed program was:" >&5
4385
sed 's/^/| /' conftest.$ac_ext >&5
4387
ac_header_compiler=no
4389
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4391
echo "${ECHO_T}$ac_header_compiler" >&6
4393
# Is the header present?
4394
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4395
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4396
cat >conftest.$ac_ext <<_ACEOF
4399
cat confdefs.h >>conftest.$ac_ext
4400
cat >>conftest.$ac_ext <<_ACEOF
4401
/* end confdefs.h. */
4402
#include <$ac_header>
4404
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407
grep -v '^ *+' conftest.er1 >conftest.err
4409
cat conftest.err >&5
4410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411
(exit $ac_status); } >/dev/null; then
4412
if test -s conftest.err; then
4413
ac_cpp_err=$ac_c_preproc_warn_flag
4414
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4421
if test -z "$ac_cpp_err"; then
4422
ac_header_preproc=yes
4424
echo "$as_me: failed program was:" >&5
4425
sed 's/^/| /' conftest.$ac_ext >&5
4427
ac_header_preproc=no
4429
rm -f conftest.err conftest.$ac_ext
4430
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4431
echo "${ECHO_T}$ac_header_preproc" >&6
4433
# So? What about this header?
4434
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4436
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4437
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4438
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4439
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4440
ac_header_preproc=yes
4443
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4444
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4445
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4446
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4447
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4448
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4449
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4450
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4451
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4452
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4453
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4454
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4457
## ------------------------------------- ##
4458
## Report this to daniel@freedesktop.org ##
4459
## ------------------------------------- ##
4462
sed "s/^/$as_me: WARNING: /" >&2
4465
echo "$as_me:$LINENO: checking for $ac_header" >&5
4466
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468
echo $ECHO_N "(cached) $ECHO_C" >&6
4470
eval "$as_ac_Header=\$ac_header_preproc"
4472
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4473
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4476
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4477
cat >>confdefs.h <<_ACEOF
4478
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486
ac_cpp='$CXXCPP $CPPFLAGS'
4487
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4490
if test -n "$ac_tool_prefix"; then
4491
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4493
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4495
echo "$as_me:$LINENO: checking for $ac_word" >&5
4496
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497
if test "${ac_cv_prog_CXX+set}" = set; then
4498
echo $ECHO_N "(cached) $ECHO_C" >&6
4500
if test -n "$CXX"; then
4501
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507
test -z "$as_dir" && as_dir=.
4508
for ac_exec_ext in '' $ac_executable_extensions; do
4509
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4511
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520
if test -n "$CXX"; then
4521
echo "$as_me:$LINENO: result: $CXX" >&5
4522
echo "${ECHO_T}$CXX" >&6
4524
echo "$as_me:$LINENO: result: no" >&5
4525
echo "${ECHO_T}no" >&6
4528
test -n "$CXX" && break
4531
if test -z "$CXX"; then
4533
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4535
# Extract the first word of "$ac_prog", so it can be a program name with args.
4536
set dummy $ac_prog; ac_word=$2
4537
echo "$as_me:$LINENO: checking for $ac_word" >&5
4538
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4540
echo $ECHO_N "(cached) $ECHO_C" >&6
4542
if test -n "$ac_ct_CXX"; then
4543
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549
test -z "$as_dir" && as_dir=.
4550
for ac_exec_ext in '' $ac_executable_extensions; do
4551
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552
ac_cv_prog_ac_ct_CXX="$ac_prog"
4553
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4562
if test -n "$ac_ct_CXX"; then
4563
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4564
echo "${ECHO_T}$ac_ct_CXX" >&6
4566
echo "$as_me:$LINENO: result: no" >&5
4567
echo "${ECHO_T}no" >&6
4570
test -n "$ac_ct_CXX" && break
4572
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4578
# Provide some information about the compiler.
4579
echo "$as_me:$LINENO:" \
4580
"checking for C++ compiler version" >&5
4581
ac_compiler=`set X $ac_compile; echo $2`
4582
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4583
(eval $ac_compiler --version </dev/null >&5) 2>&5
4585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586
(exit $ac_status); }
4587
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4588
(eval $ac_compiler -v </dev/null >&5) 2>&5
4590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591
(exit $ac_status); }
4592
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4593
(eval $ac_compiler -V </dev/null >&5) 2>&5
4595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596
(exit $ac_status); }
4598
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4599
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4600
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4601
echo $ECHO_N "(cached) $ECHO_C" >&6
4603
cat >conftest.$ac_ext <<_ACEOF
4606
cat confdefs.h >>conftest.$ac_ext
4607
cat >>conftest.$ac_ext <<_ACEOF
4608
/* end confdefs.h. */
4621
rm -f conftest.$ac_objext
4622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623
(eval $ac_compile) 2>conftest.er1
4625
grep -v '^ *+' conftest.er1 >conftest.err
4627
cat conftest.err >&5
4628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629
(exit $ac_status); } &&
4630
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635
(exit $ac_status); }; } &&
4636
{ ac_try='test -s conftest.$ac_objext'
4637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641
(exit $ac_status); }; }; then
4644
echo "$as_me: failed program was:" >&5
4645
sed 's/^/| /' conftest.$ac_ext >&5
4649
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4653
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4654
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4655
GXX=`test $ac_compiler_gnu = yes && echo yes`
4656
ac_test_CXXFLAGS=${CXXFLAGS+set}
4657
ac_save_CXXFLAGS=$CXXFLAGS
4659
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4660
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4661
if test "${ac_cv_prog_cxx_g+set}" = set; then
4662
echo $ECHO_N "(cached) $ECHO_C" >&6
4664
cat >conftest.$ac_ext <<_ACEOF
4667
cat confdefs.h >>conftest.$ac_ext
4668
cat >>conftest.$ac_ext <<_ACEOF
4669
/* end confdefs.h. */
4679
rm -f conftest.$ac_objext
4680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681
(eval $ac_compile) 2>conftest.er1
4683
grep -v '^ *+' conftest.er1 >conftest.err
4685
cat conftest.err >&5
4686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
(exit $ac_status); } &&
4688
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
(exit $ac_status); }; } &&
4694
{ ac_try='test -s conftest.$ac_objext'
4695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
(exit $ac_status); }; }; then
4700
ac_cv_prog_cxx_g=yes
4702
echo "$as_me: failed program was:" >&5
4703
sed 's/^/| /' conftest.$ac_ext >&5
4707
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4710
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4711
if test "$ac_test_CXXFLAGS" = set; then
4712
CXXFLAGS=$ac_save_CXXFLAGS
4713
elif test $ac_cv_prog_cxx_g = yes; then
4714
if test "$GXX" = yes; then
4720
if test "$GXX" = yes; then
4726
for ac_declaration in \
4728
'extern "C" void std::exit (int) throw (); using std::exit;' \
4729
'extern "C" void std::exit (int); using std::exit;' \
4730
'extern "C" void exit (int) throw ();' \
4731
'extern "C" void exit (int);' \
4734
cat >conftest.$ac_ext <<_ACEOF
4737
cat confdefs.h >>conftest.$ac_ext
4738
cat >>conftest.$ac_ext <<_ACEOF
4739
/* end confdefs.h. */
4750
rm -f conftest.$ac_objext
4751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752
(eval $ac_compile) 2>conftest.er1
4754
grep -v '^ *+' conftest.er1 >conftest.err
4756
cat conftest.err >&5
4757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758
(exit $ac_status); } &&
4759
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764
(exit $ac_status); }; } &&
4765
{ ac_try='test -s conftest.$ac_objext'
4766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770
(exit $ac_status); }; }; then
4773
echo "$as_me: failed program was:" >&5
4774
sed 's/^/| /' conftest.$ac_ext >&5
4778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4779
cat >conftest.$ac_ext <<_ACEOF
4782
cat confdefs.h >>conftest.$ac_ext
4783
cat >>conftest.$ac_ext <<_ACEOF
4784
/* end confdefs.h. */
4794
rm -f conftest.$ac_objext
4795
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796
(eval $ac_compile) 2>conftest.er1
4798
grep -v '^ *+' conftest.er1 >conftest.err
4800
cat conftest.err >&5
4801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802
(exit $ac_status); } &&
4803
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
(exit $ac_status); }; } &&
4809
{ ac_try='test -s conftest.$ac_objext'
4810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); }; }; then
4817
echo "$as_me: failed program was:" >&5
4818
sed 's/^/| /' conftest.$ac_ext >&5
4821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824
if test -n "$ac_declaration"; then
4825
echo '#ifdef __cplusplus' >>confdefs.h
4826
echo $ac_declaration >>confdefs.h
4827
echo '#endif' >>confdefs.h
4831
ac_cpp='$CXXCPP $CPPFLAGS'
4832
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4836
depcc="$CXX" am_compiler_list=
4838
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4839
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4840
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4841
echo $ECHO_N "(cached) $ECHO_C" >&6
4843
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844
# We make a subdir and do the tests there. Otherwise we can end up
4845
# making bogus files that we don't know about and never remove. For
4846
# instance it was reported that on HP-UX the gcc test will end up
4847
# making a dummy file named `D' -- because `-MD' means `put the output
4850
# Copy depcomp to subdir because otherwise we won't find it if we're
4851
# using a relative directory.
4852
cp "$am_depcomp" conftest.dir
4854
# We will build objects and dependencies in a subdirectory because
4855
# it helps to detect inapplicable dependency modes. For instance
4856
# both Tru64's cc and ICC support -MD to output dependencies as a
4857
# side effect of compilation, but ICC will put the dependencies in
4858
# the current directory while Tru64 will put them in the object
4862
am_cv_CXX_dependencies_compiler_type=none
4863
if test "$am_compiler_list" = ""; then
4864
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4866
for depmode in $am_compiler_list; do
4867
# Setup a source with many dependencies, because some compilers
4868
# like to wrap large dependency lists on column 80 (with \), and
4869
# we should not choose a depcomp mode which is confused by this.
4871
# We need to recreate these files for each test, as the compiler may
4872
# overwrite some of them when testing with obscure command lines.
4873
# This happens at least with the AIX C compiler.
4875
for i in 1 2 3 4 5 6; do
4876
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4877
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4878
# Solaris 8's {/usr,}/bin/sh.
4879
touch sub/conftst$i.h
4881
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4885
# after this tag, mechanisms are not by side-effect, so they'll
4886
# only be used when explicitly requested
4887
if test "x$enable_dependency_tracking" = xyes; then
4895
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4896
# mode. It turns out that the SunPro C++ compiler does not properly
4897
# handle `-M -o', and we need to detect this.
4898
if depmode=$depmode \
4899
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4900
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4901
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4902
>/dev/null 2>conftest.err &&
4903
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4905
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906
# icc doesn't choke on unknown options, it will just issue warnings
4907
# or remarks (even with -Werror). So we grep stderr for any message
4908
# that says an option was ignored or not supported.
4909
# When given -MP, icc 7.0 and 7.1 complain thusly:
4910
# icc: Command line warning: ignoring option '-M'; no argument required
4911
# The diagnosis changed in icc 8.0:
4912
# icc: Command line remark: option '-MP' not supported
4913
if (grep 'ignoring option' conftest.err ||
4914
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915
am_cv_CXX_dependencies_compiler_type=$depmode
4924
am_cv_CXX_dependencies_compiler_type=none
4928
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4929
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4930
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4935
test "x$enable_dependency_tracking" != xno \
4936
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4937
am__fastdepCXX_TRUE=
4938
am__fastdepCXX_FALSE='#'
4940
am__fastdepCXX_TRUE='#'
4941
am__fastdepCXX_FALSE=
4946
ac_cpp='$CXXCPP $CPPFLAGS'
4947
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4950
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4951
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4952
if test -z "$CXXCPP"; then
4953
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4954
echo $ECHO_N "(cached) $ECHO_C" >&6
4956
# Double quotes because CXXCPP needs to be expanded
4957
for CXXCPP in "$CXX -E" "/lib/cpp"
4960
for ac_cxx_preproc_warn_flag in '' yes
4962
# Use a header file that comes with gcc, so configuring glibc
4963
# with a fresh cross-compiler works.
4964
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965
# <limits.h> exists even on freestanding compilers.
4966
# On the NeXT, cc -E runs the code through the compiler's parser,
4967
# not just through cpp. "Syntax error" is here to catch this case.
4968
cat >conftest.$ac_ext <<_ACEOF
4971
cat confdefs.h >>conftest.$ac_ext
4972
cat >>conftest.$ac_ext <<_ACEOF
4973
/* end confdefs.h. */
4975
# include <limits.h>
4977
# include <assert.h>
4981
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4982
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984
grep -v '^ *+' conftest.er1 >conftest.err
4986
cat conftest.err >&5
4987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988
(exit $ac_status); } >/dev/null; then
4989
if test -s conftest.err; then
4990
ac_cpp_err=$ac_cxx_preproc_warn_flag
4991
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4998
if test -z "$ac_cpp_err"; then
5001
echo "$as_me: failed program was:" >&5
5002
sed 's/^/| /' conftest.$ac_ext >&5
5004
# Broken: fails on valid input.
5007
rm -f conftest.err conftest.$ac_ext
5009
# OK, works on sane cases. Now check whether non-existent headers
5010
# can be detected and how.
5011
cat >conftest.$ac_ext <<_ACEOF
5014
cat confdefs.h >>conftest.$ac_ext
5015
cat >>conftest.$ac_ext <<_ACEOF
5016
/* end confdefs.h. */
5017
#include <ac_nonexistent.h>
5019
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022
grep -v '^ *+' conftest.er1 >conftest.err
5024
cat conftest.err >&5
5025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026
(exit $ac_status); } >/dev/null; then
5027
if test -s conftest.err; then
5028
ac_cpp_err=$ac_cxx_preproc_warn_flag
5029
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5036
if test -z "$ac_cpp_err"; then
5037
# Broken: success on invalid input.
5040
echo "$as_me: failed program was:" >&5
5041
sed 's/^/| /' conftest.$ac_ext >&5
5043
# Passes both tests.
5047
rm -f conftest.err conftest.$ac_ext
5050
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5051
rm -f conftest.err conftest.$ac_ext
5052
if $ac_preproc_ok; then
5057
ac_cv_prog_CXXCPP=$CXXCPP
5060
CXXCPP=$ac_cv_prog_CXXCPP
5062
ac_cv_prog_CXXCPP=$CXXCPP
5064
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5065
echo "${ECHO_T}$CXXCPP" >&6
5067
for ac_cxx_preproc_warn_flag in '' yes
5069
# Use a header file that comes with gcc, so configuring glibc
5070
# with a fresh cross-compiler works.
5071
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072
# <limits.h> exists even on freestanding compilers.
5073
# On the NeXT, cc -E runs the code through the compiler's parser,
5074
# not just through cpp. "Syntax error" is here to catch this case.
5075
cat >conftest.$ac_ext <<_ACEOF
5078
cat confdefs.h >>conftest.$ac_ext
5079
cat >>conftest.$ac_ext <<_ACEOF
5080
/* end confdefs.h. */
5082
# include <limits.h>
5084
# include <assert.h>
5088
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5089
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091
grep -v '^ *+' conftest.er1 >conftest.err
5093
cat conftest.err >&5
5094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095
(exit $ac_status); } >/dev/null; then
5096
if test -s conftest.err; then
5097
ac_cpp_err=$ac_cxx_preproc_warn_flag
5098
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5105
if test -z "$ac_cpp_err"; then
5108
echo "$as_me: failed program was:" >&5
5109
sed 's/^/| /' conftest.$ac_ext >&5
5111
# Broken: fails on valid input.
5114
rm -f conftest.err conftest.$ac_ext
5116
# OK, works on sane cases. Now check whether non-existent headers
5117
# can be detected and how.
5118
cat >conftest.$ac_ext <<_ACEOF
5121
cat confdefs.h >>conftest.$ac_ext
5122
cat >>conftest.$ac_ext <<_ACEOF
5123
/* end confdefs.h. */
5124
#include <ac_nonexistent.h>
5126
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129
grep -v '^ *+' conftest.er1 >conftest.err
5131
cat conftest.err >&5
5132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133
(exit $ac_status); } >/dev/null; then
5134
if test -s conftest.err; then
5135
ac_cpp_err=$ac_cxx_preproc_warn_flag
5136
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5143
if test -z "$ac_cpp_err"; then
5144
# Broken: success on invalid input.
5147
echo "$as_me: failed program was:" >&5
5148
sed 's/^/| /' conftest.$ac_ext >&5
5150
# Passes both tests.
5154
rm -f conftest.err conftest.$ac_ext
5157
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158
rm -f conftest.err conftest.$ac_ext
5159
if $ac_preproc_ok; then
5162
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5163
See \`config.log' for more details." >&5
5164
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5165
See \`config.log' for more details." >&2;}
5166
{ (exit 1); exit 1; }; }
5170
ac_cpp='$CXXCPP $CPPFLAGS'
5171
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5177
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5178
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5180
if test -n "$ac_tool_prefix"; then
5181
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5183
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185
echo "$as_me:$LINENO: checking for $ac_word" >&5
5186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187
if test "${ac_cv_prog_F77+set}" = set; then
5188
echo $ECHO_N "(cached) $ECHO_C" >&6
5190
if test -n "$F77"; then
5191
ac_cv_prog_F77="$F77" # Let the user override the test.
5193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197
test -z "$as_dir" && as_dir=.
5198
for ac_exec_ext in '' $ac_executable_extensions; do
5199
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5201
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210
if test -n "$F77"; then
5211
echo "$as_me:$LINENO: result: $F77" >&5
5212
echo "${ECHO_T}$F77" >&6
5214
echo "$as_me:$LINENO: result: no" >&5
5215
echo "${ECHO_T}no" >&6
5218
test -n "$F77" && break
5221
if test -z "$F77"; then
5223
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5225
# Extract the first word of "$ac_prog", so it can be a program name with args.
5226
set dummy $ac_prog; ac_word=$2
5227
echo "$as_me:$LINENO: checking for $ac_word" >&5
5228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5230
echo $ECHO_N "(cached) $ECHO_C" >&6
5232
if test -n "$ac_ct_F77"; then
5233
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239
test -z "$as_dir" && as_dir=.
5240
for ac_exec_ext in '' $ac_executable_extensions; do
5241
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242
ac_cv_prog_ac_ct_F77="$ac_prog"
5243
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5252
if test -n "$ac_ct_F77"; then
5253
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5254
echo "${ECHO_T}$ac_ct_F77" >&6
5256
echo "$as_me:$LINENO: result: no" >&5
5257
echo "${ECHO_T}no" >&6
5260
test -n "$ac_ct_F77" && break
5267
# Provide some information about the compiler.
5268
echo "$as_me:5268:" \
5269
"checking for Fortran 77 compiler version" >&5
5270
ac_compiler=`set X $ac_compile; echo $2`
5271
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5272
(eval $ac_compiler --version </dev/null >&5) 2>&5
5274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
(exit $ac_status); }
5276
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5277
(eval $ac_compiler -v </dev/null >&5) 2>&5
5279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
(exit $ac_status); }
5281
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5282
(eval $ac_compiler -V </dev/null >&5) 2>&5
5284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285
(exit $ac_status); }
5288
# If we don't use `.F' as extension, the preprocessor is not run on the
5289
# input file. (Note that this only needs to work for GNU compilers.)
5292
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5293
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5294
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5295
echo $ECHO_N "(cached) $ECHO_C" >&6
5297
cat >conftest.$ac_ext <<_ACEOF
5305
rm -f conftest.$ac_objext
5306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307
(eval $ac_compile) 2>conftest.er1
5309
grep -v '^ *+' conftest.er1 >conftest.err
5311
cat conftest.err >&5
5312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313
(exit $ac_status); } &&
5314
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319
(exit $ac_status); }; } &&
5320
{ ac_try='test -s conftest.$ac_objext'
5321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325
(exit $ac_status); }; }; then
5328
echo "$as_me: failed program was:" >&5
5329
sed 's/^/| /' conftest.$ac_ext >&5
5333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5337
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5340
ac_test_FFLAGS=${FFLAGS+set}
5341
ac_save_FFLAGS=$FFLAGS
5343
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345
if test "${ac_cv_prog_f77_g+set}" = set; then
5346
echo $ECHO_N "(cached) $ECHO_C" >&6
5349
cat >conftest.$ac_ext <<_ACEOF
5354
rm -f conftest.$ac_objext
5355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356
(eval $ac_compile) 2>conftest.er1
5358
grep -v '^ *+' conftest.er1 >conftest.err
5360
cat conftest.err >&5
5361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362
(exit $ac_status); } &&
5363
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368
(exit $ac_status); }; } &&
5369
{ ac_try='test -s conftest.$ac_objext'
5370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374
(exit $ac_status); }; }; then
5375
ac_cv_prog_f77_g=yes
5377
echo "$as_me: failed program was:" >&5
5378
sed 's/^/| /' conftest.$ac_ext >&5
5382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5386
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5387
if test "$ac_test_FFLAGS" = set; then
5388
FFLAGS=$ac_save_FFLAGS
5389
elif test $ac_cv_prog_f77_g = yes; then
5390
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5396
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5403
G77=`test $ac_compiler_gnu = yes && echo yes`
5405
ac_cpp='$CPP $CPPFLAGS'
5406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5414
# find the maximum length of command line arguments
5415
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5416
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5417
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5418
echo $ECHO_N "(cached) $ECHO_C" >&6
5425
# On DJGPP, this test can blow up pretty badly due to problems in libc
5426
# (any single argument exceeding 2000 bytes causes a buffer overrun
5427
# during glob expansion). Even if it were fixed, the result of this
5428
# check would be larger than it should be.
5429
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5433
# Under GNU Hurd, this test is not required because there is
5434
# no limit to the length of command line arguments.
5435
# Libtool will interpret -1 as no limit whatsoever
5436
lt_cv_sys_max_cmd_len=-1;
5440
# On Win9x/ME, this test blows up -- it succeeds, but takes
5441
# about 5 minutes as the teststring grows exponentially.
5442
# Worse, since 9x/ME are not pre-emptively multitasking,
5443
# you end up with a "frozen" computer, even though with patience
5444
# the test eventually succeeds (with a max line length of 256k).
5445
# Instead, let's just punt: use the minimum linelength reported by
5446
# all of the supported platforms: 8192 (on NT/2K/XP).
5447
lt_cv_sys_max_cmd_len=8192;
5451
# On AmigaOS with pdksh, this test takes hours, literally.
5452
# So we just punt and use a minimum line length of 8192.
5453
lt_cv_sys_max_cmd_len=8192;
5457
# If test is not a shell built-in, we'll probably end up computing a
5458
# maximum length that is only half of the actual maximum length, but
5460
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5461
= "XX$teststring") >/dev/null 2>&1 &&
5462
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5463
lt_cv_sys_max_cmd_len=$new_result &&
5464
test $i != 17 # 1/2 MB should be enough
5467
teststring=$teststring$teststring
5470
# Add a significant safety factor because C++ compilers can tack on massive
5471
# amounts of additional arguments before passing them to the linker.
5472
# It appears as though 1/2 is a usable value.
5473
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479
if test -n $lt_cv_sys_max_cmd_len ; then
5480
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5481
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5483
echo "$as_me:$LINENO: result: none" >&5
5484
echo "${ECHO_T}none" >&6
5490
# Check for command to grab the raw symbol name followed by C symbol from nm.
5491
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5492
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5493
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5494
echo $ECHO_N "(cached) $ECHO_C" >&6
5497
# These are sane defaults that work on at least a few old systems.
5498
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5500
# Character class describing NM global symbol codes.
5501
symcode='[BCDEGRST]'
5503
# Regexp to match symbols that can be accessed directly from C.
5504
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5506
# Transform the above into a raw symbol and a C symbol.
5507
symxfrm='\1 \2\3 \3'
5509
# Transform an extracted symbol line into a proper C declaration
5510
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5512
# Transform an extracted symbol line into symbol name and symbol address
5513
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'"
5515
# Define system-specific variables.
5520
cygwin* | mingw* | pw32*)
5521
symcode='[ABCDGISTW]'
5523
hpux*) # Its linker distinguishes data from code symbols
5524
if test "$host_cpu" = ia64; then
5525
symcode='[ABCDEGRST]'
5527
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5528
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'"
5531
symcode='[BCDEGRST]'
5534
symcode='[BCDEGQRST]'
5544
# Handle CRLF in mingw tool chain
5548
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5552
# If we're using GNU nm, then use its standard symbol codes.
5553
case `$NM -V 2>&1` in
5554
*GNU* | *'with BFD'*)
5555
symcode='[ABCDGIRSTW]' ;;
5558
# Try without a prefix undercore, then with it.
5559
for ac_symprfx in "" "_"; do
5561
# Write the raw and C identifiers.
5562
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5564
# Check to see that the pipe works correctly.
5568
cat > conftest.$ac_ext <<EOF
5573
void nm_test_func(){}
5577
int main(){nm_test_var='a';nm_test_func();return(0);}
5580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581
(eval $ac_compile) 2>&5
5583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584
(exit $ac_status); }; then
5585
# Now try to grab the symbols.
5587
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5588
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591
(exit $ac_status); } && test -s "$nlist"; then
5592
# Try sorting and uniquifying the output.
5593
if sort "$nlist" | uniq > "$nlist"T; then
5594
mv -f "$nlist"T "$nlist"
5599
# Make sure that we snagged all the symbols we need.
5600
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5601
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5602
cat <<EOF > conftest.$ac_ext
5608
# Now generate the symbol file.
5609
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5611
cat <<EOF >> conftest.$ac_ext
5612
#if defined (__STDC__) && __STDC__
5613
# define lt_ptr_t void *
5615
# define lt_ptr_t char *
5619
/* The mapping between symbol names and symbols. */
5624
lt_preloaded_symbols[] =
5627
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5628
cat <<\EOF >> conftest.$ac_ext
5636
# Now try linking the two files.
5637
mv conftest.$ac_objext conftstm.$ac_objext
5638
lt_save_LIBS="$LIBS"
5639
lt_save_CFLAGS="$CFLAGS"
5640
LIBS="conftstm.$ac_objext"
5641
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643
(eval $ac_link) 2>&5
5645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5649
LIBS="$lt_save_LIBS"
5650
CFLAGS="$lt_save_CFLAGS"
5652
echo "cannot find nm_test_func in $nlist" >&5
5655
echo "cannot find nm_test_var in $nlist" >&5
5658
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661
echo "$progname: failed program was:" >&5
5662
cat conftest.$ac_ext >&5
5664
rm -f conftest* conftst*
5666
# Do not use the global_symbol_pipe unless it works.
5667
if test "$pipe_works" = yes; then
5670
lt_cv_sys_global_symbol_pipe=
5676
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5677
lt_cv_sys_global_symbol_to_cdecl=
5679
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5680
echo "$as_me:$LINENO: result: failed" >&5
5681
echo "${ECHO_T}failed" >&6
5683
echo "$as_me:$LINENO: result: ok" >&5
5684
echo "${ECHO_T}ok" >&6
5687
echo "$as_me:$LINENO: checking for objdir" >&5
5688
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5689
if test "${lt_cv_objdir+set}" = set; then
5690
echo $ECHO_N "(cached) $ECHO_C" >&6
5692
rm -f .libs 2>/dev/null
5693
mkdir .libs 2>/dev/null
5694
if test -d .libs; then
5697
# MS-DOS does not allow filenames that begin with a dot.
5700
rmdir .libs 2>/dev/null
5702
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5703
echo "${ECHO_T}$lt_cv_objdir" >&6
5704
objdir=$lt_cv_objdir
5712
# AIX sometimes has problems with the GCC collect2 program. For some
5713
# reason, if we set the COLLECT_NAMES environment variable, the problems
5714
# vanish in a puff of smoke.
5715
if test "X${COLLECT_NAMES+set}" != Xset; then
5717
export COLLECT_NAMES
5722
# Sed substitution that helps us do robust quoting. It backslashifies
5723
# metacharacters that are still active within double-quoted strings.
5724
Xsed='sed -e s/^X//'
5725
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5727
# Same as above, but do not quote variable references.
5728
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5730
# Sed substitution to delay expansion of an escaped shell variable in a
5731
# double_quote_subst'ed string.
5732
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5734
# Sed substitution to avoid accidental globbing in evaled expressions
5735
no_glob_subst='s/\*/\\\*/g'
5741
default_ofile=libtool
5742
can_build_shared=yes
5744
# All known linkers require a `.a' archive for static linking (except M$VC,
5745
# which needs '.lib').
5747
ltmain="$ac_aux_dir/ltmain.sh"
5748
ofile="$default_ofile"
5749
with_gnu_ld="$lt_cv_prog_gnu_ld"
5751
if test -n "$ac_tool_prefix"; then
5752
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5753
set dummy ${ac_tool_prefix}ar; ac_word=$2
5754
echo "$as_me:$LINENO: checking for $ac_word" >&5
5755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756
if test "${ac_cv_prog_AR+set}" = set; then
5757
echo $ECHO_N "(cached) $ECHO_C" >&6
5759
if test -n "$AR"; then
5760
ac_cv_prog_AR="$AR" # Let the user override the test.
5762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766
test -z "$as_dir" && as_dir=.
5767
for ac_exec_ext in '' $ac_executable_extensions; do
5768
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769
ac_cv_prog_AR="${ac_tool_prefix}ar"
5770
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779
if test -n "$AR"; then
5780
echo "$as_me:$LINENO: result: $AR" >&5
5781
echo "${ECHO_T}$AR" >&6
5783
echo "$as_me:$LINENO: result: no" >&5
5784
echo "${ECHO_T}no" >&6
5788
if test -z "$ac_cv_prog_AR"; then
5790
# Extract the first word of "ar", so it can be a program name with args.
5791
set dummy ar; ac_word=$2
5792
echo "$as_me:$LINENO: checking for $ac_word" >&5
5793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5795
echo $ECHO_N "(cached) $ECHO_C" >&6
5797
if test -n "$ac_ct_AR"; then
5798
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804
test -z "$as_dir" && as_dir=.
5805
for ac_exec_ext in '' $ac_executable_extensions; do
5806
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807
ac_cv_prog_ac_ct_AR="ar"
5808
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5817
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5818
if test -n "$ac_ct_AR"; then
5819
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5820
echo "${ECHO_T}$ac_ct_AR" >&6
5822
echo "$as_me:$LINENO: result: no" >&5
5823
echo "${ECHO_T}no" >&6
5831
if test -n "$ac_tool_prefix"; then
5832
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5833
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5834
echo "$as_me:$LINENO: checking for $ac_word" >&5
5835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836
if test "${ac_cv_prog_RANLIB+set}" = set; then
5837
echo $ECHO_N "(cached) $ECHO_C" >&6
5839
if test -n "$RANLIB"; then
5840
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846
test -z "$as_dir" && as_dir=.
5847
for ac_exec_ext in '' $ac_executable_extensions; do
5848
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5850
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858
RANLIB=$ac_cv_prog_RANLIB
5859
if test -n "$RANLIB"; then
5860
echo "$as_me:$LINENO: result: $RANLIB" >&5
5861
echo "${ECHO_T}$RANLIB" >&6
5863
echo "$as_me:$LINENO: result: no" >&5
5864
echo "${ECHO_T}no" >&6
5868
if test -z "$ac_cv_prog_RANLIB"; then
5869
ac_ct_RANLIB=$RANLIB
5870
# Extract the first word of "ranlib", so it can be a program name with args.
5871
set dummy ranlib; ac_word=$2
5872
echo "$as_me:$LINENO: checking for $ac_word" >&5
5873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5875
echo $ECHO_N "(cached) $ECHO_C" >&6
5877
if test -n "$ac_ct_RANLIB"; then
5878
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884
test -z "$as_dir" && as_dir=.
5885
for ac_exec_ext in '' $ac_executable_extensions; do
5886
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887
ac_cv_prog_ac_ct_RANLIB="ranlib"
5888
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5897
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5898
if test -n "$ac_ct_RANLIB"; then
5899
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5900
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5902
echo "$as_me:$LINENO: result: no" >&5
5903
echo "${ECHO_T}no" >&6
5906
RANLIB=$ac_ct_RANLIB
5908
RANLIB="$ac_cv_prog_RANLIB"
5911
if test -n "$ac_tool_prefix"; then
5912
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5913
set dummy ${ac_tool_prefix}strip; ac_word=$2
5914
echo "$as_me:$LINENO: checking for $ac_word" >&5
5915
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916
if test "${ac_cv_prog_STRIP+set}" = set; then
5917
echo $ECHO_N "(cached) $ECHO_C" >&6
5919
if test -n "$STRIP"; then
5920
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926
test -z "$as_dir" && as_dir=.
5927
for ac_exec_ext in '' $ac_executable_extensions; do
5928
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5930
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938
STRIP=$ac_cv_prog_STRIP
5939
if test -n "$STRIP"; then
5940
echo "$as_me:$LINENO: result: $STRIP" >&5
5941
echo "${ECHO_T}$STRIP" >&6
5943
echo "$as_me:$LINENO: result: no" >&5
5944
echo "${ECHO_T}no" >&6
5948
if test -z "$ac_cv_prog_STRIP"; then
5950
# Extract the first word of "strip", so it can be a program name with args.
5951
set dummy strip; ac_word=$2
5952
echo "$as_me:$LINENO: checking for $ac_word" >&5
5953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5955
echo $ECHO_N "(cached) $ECHO_C" >&6
5957
if test -n "$ac_ct_STRIP"; then
5958
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964
test -z "$as_dir" && as_dir=.
5965
for ac_exec_ext in '' $ac_executable_extensions; do
5966
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967
ac_cv_prog_ac_ct_STRIP="strip"
5968
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5977
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5978
if test -n "$ac_ct_STRIP"; then
5979
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5980
echo "${ECHO_T}$ac_ct_STRIP" >&6
5982
echo "$as_me:$LINENO: result: no" >&5
5983
echo "${ECHO_T}no" >&6
5988
STRIP="$ac_cv_prog_STRIP"
5993
old_CFLAGS="$CFLAGS"
5995
# Set sane defaults for various variables
5996
test -z "$AR" && AR=ar
5997
test -z "$AR_FLAGS" && AR_FLAGS=cru
5998
test -z "$AS" && AS=as
5999
test -z "$CC" && CC=cc
6000
test -z "$LTCC" && LTCC=$CC
6001
test -z "$DLLTOOL" && DLLTOOL=dlltool
6002
test -z "$LD" && LD=ld
6003
test -z "$LN_S" && LN_S="ln -s"
6004
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6005
test -z "$NM" && NM=nm
6006
test -z "$SED" && SED=sed
6007
test -z "$OBJDUMP" && OBJDUMP=objdump
6008
test -z "$RANLIB" && RANLIB=:
6009
test -z "$STRIP" && STRIP=:
6010
test -z "$ac_objext" && ac_objext=o
6012
# Determine commands to create old-style static archives.
6013
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6014
old_postinstall_cmds='chmod 644 $oldlib'
6015
old_postuninstall_cmds=
6017
if test -n "$RANLIB"; then
6020
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6023
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6026
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6029
# Only perform the check for file, if the check method requires it
6030
case $deplibs_check_method in
6032
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6033
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6034
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6035
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6036
echo $ECHO_N "(cached) $ECHO_C" >&6
6040
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043
lt_save_MAGIC_CMD="$MAGIC_CMD"
6044
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6045
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6046
for ac_dir in $ac_dummy; do
6048
test -z "$ac_dir" && ac_dir=.
6049
if test -f $ac_dir/${ac_tool_prefix}file; then
6050
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6051
if test -n "$file_magic_test_file"; then
6052
case $deplibs_check_method in
6054
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6055
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6056
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6057
$EGREP "$file_magic_regex" > /dev/null; then
6062
*** Warning: the command libtool uses to detect shared libraries,
6063
*** $file_magic_cmd, produces output that libtool cannot recognize.
6064
*** The result is that libtool may fail to recognize shared libraries
6065
*** as such. This will affect the creation of libtool libraries that
6066
*** depend on shared libraries, but programs linked with such libtool
6067
*** libraries will work regardless of this problem. Nevertheless, you
6068
*** may want to report the problem to your system manager and/or to
6069
*** bug-libtool@gnu.org
6079
MAGIC_CMD="$lt_save_MAGIC_CMD"
6084
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6085
if test -n "$MAGIC_CMD"; then
6086
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6087
echo "${ECHO_T}$MAGIC_CMD" >&6
6089
echo "$as_me:$LINENO: result: no" >&5
6090
echo "${ECHO_T}no" >&6
6093
if test -z "$lt_cv_path_MAGIC_CMD"; then
6094
if test -n "$ac_tool_prefix"; then
6095
echo "$as_me:$LINENO: checking for file" >&5
6096
echo $ECHO_N "checking for file... $ECHO_C" >&6
6097
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6098
echo $ECHO_N "(cached) $ECHO_C" >&6
6102
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6105
lt_save_MAGIC_CMD="$MAGIC_CMD"
6106
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6108
for ac_dir in $ac_dummy; do
6110
test -z "$ac_dir" && ac_dir=.
6111
if test -f $ac_dir/file; then
6112
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6113
if test -n "$file_magic_test_file"; then
6114
case $deplibs_check_method in
6116
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6117
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6118
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6119
$EGREP "$file_magic_regex" > /dev/null; then
6124
*** Warning: the command libtool uses to detect shared libraries,
6125
*** $file_magic_cmd, produces output that libtool cannot recognize.
6126
*** The result is that libtool may fail to recognize shared libraries
6127
*** as such. This will affect the creation of libtool libraries that
6128
*** depend on shared libraries, but programs linked with such libtool
6129
*** libraries will work regardless of this problem. Nevertheless, you
6130
*** may want to report the problem to your system manager and/or to
6131
*** bug-libtool@gnu.org
6141
MAGIC_CMD="$lt_save_MAGIC_CMD"
6146
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6147
if test -n "$MAGIC_CMD"; then
6148
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6149
echo "${ECHO_T}$MAGIC_CMD" >&6
6151
echo "$as_me:$LINENO: result: no" >&5
6152
echo "${ECHO_T}no" >&6
6167
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6168
if test "${enable_libtool_lock+set}" = set; then
6169
enableval="$enable_libtool_lock"
6172
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
# Check whether --with-pic or --without-pic was given.
6176
if test "${with_pic+set}" = set; then
6182
test -z "$pic_mode" && pic_mode=default
6184
# Use C for the default configuration in the libtool script
6188
ac_cpp='$CPP $CPPFLAGS'
6189
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
# Source file extension for C test sources.
6197
# Object file extension for compiled C test sources.
6201
# Code to be used in simple compile tests
6202
lt_simple_compile_test_code="int some_variable = 0;\n"
6204
# Code to be used in simple link tests
6205
lt_simple_link_test_code='int main(){return(0);}\n'
6208
# If no C compiler was specified, use CC.
6211
# Allow CC to be a program name with arguments.
6216
# Check for any special shared library compilation flags.
6219
if test "$GCC" = no; then
6222
lt_prog_cc_shlib='-belf'
6226
if test -n "$lt_prog_cc_shlib"; then
6227
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6228
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6229
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6231
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6232
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6233
lt_cv_prog_cc_can_build_shared=no
6239
# Check to make sure the static flag actually works.
6241
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6242
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6243
if test "${lt_prog_compiler_static_works+set}" = set; then
6244
echo $ECHO_N "(cached) $ECHO_C" >&6
6246
lt_prog_compiler_static_works=no
6247
save_LDFLAGS="$LDFLAGS"
6248
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6249
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6250
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6251
# The compiler can only warn and ignore the option if not recognized
6252
# So say no if there are warnings
6253
if test -s conftest.err; then
6254
# Append any errors to the config.log.
6255
cat conftest.err 1>&5
6257
lt_prog_compiler_static_works=yes
6261
LDFLAGS="$save_LDFLAGS"
6264
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6265
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6267
if test x"$lt_prog_compiler_static_works" = xyes; then
6270
lt_prog_compiler_static=
6276
lt_prog_compiler_no_builtin_flag=
6278
if test "$GCC" = yes; then
6279
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6282
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6283
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6284
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6285
echo $ECHO_N "(cached) $ECHO_C" >&6
6287
lt_cv_prog_compiler_rtti_exceptions=no
6288
ac_outfile=conftest.$ac_objext
6289
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6290
lt_compiler_flag="-fno-rtti -fno-exceptions"
6291
# Insert the option either (1) after the last *FLAGS variable, or
6292
# (2) before a word containing "conftest.", or (3) at the end.
6293
# Note that $ac_compile itself does not contain backslashes and begins
6294
# with a dollar sign (not a hyphen), so the echo should work correctly.
6295
# The option is referenced via a variable to avoid confusing sed.
6296
lt_compile=`echo "$ac_compile" | $SED \
6297
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6298
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6299
-e 's:$: $lt_compiler_flag:'`
6300
(eval echo "\"\$as_me:6300: $lt_compile\"" >&5)
6301
(eval "$lt_compile" 2>conftest.err)
6303
cat conftest.err >&5
6304
echo "$as_me:6304: \$? = $ac_status" >&5
6305
if (exit $ac_status) && test -s "$ac_outfile"; then
6306
# The compiler can only warn and ignore the option if not recognized
6307
# So say no if there are warnings
6308
if test ! -s conftest.err; then
6309
lt_cv_prog_compiler_rtti_exceptions=yes
6315
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6316
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6318
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6319
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6326
lt_prog_compiler_wl=
6327
lt_prog_compiler_pic=
6328
lt_prog_compiler_static=
6330
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6331
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6333
if test "$GCC" = yes; then
6334
lt_prog_compiler_wl='-Wl,'
6335
lt_prog_compiler_static='-static'
6339
# All AIX code is PIC.
6340
if test "$host_cpu" = ia64; then
6341
# AIX 5 now supports IA64 processor
6342
lt_prog_compiler_static='-Bstatic'
6347
# FIXME: we need at least 68020 code to build shared libraries, but
6348
# adding the `-m68020' flag to GCC prevents building anything better,
6350
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6353
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6354
# PIC is the default for these OSes.
6357
mingw* | pw32* | os2*)
6358
# This hack is so that the source file can tell whether it is being
6359
# built for inclusion in a dll (and should export symbols for example).
6360
lt_prog_compiler_pic='-DDLL_EXPORT'
6363
darwin* | rhapsody*)
6364
# PIC is the default on this platform
6365
# Common symbols not allowed in MH_DYLIB files
6366
lt_prog_compiler_pic='-fno-common'
6370
# Just because we use GCC doesn't mean we suddenly get shared libraries
6371
# on systems that don't support them.
6372
lt_prog_compiler_can_build_shared=no
6377
if test -d /usr/nec; then
6378
lt_prog_compiler_pic=-Kconform_pic
6383
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6390
lt_prog_compiler_pic='-fPIC'
6396
lt_prog_compiler_pic='-fPIC'
6400
# PORTME Check for flag to pass linker flags through the system compiler.
6403
lt_prog_compiler_wl='-Wl,'
6404
if test "$host_cpu" = ia64; then
6405
# AIX 5 now supports IA64 processor
6406
lt_prog_compiler_static='-Bstatic'
6408
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6412
mingw* | pw32* | os2*)
6413
# This hack is so that the source file can tell whether it is being
6414
# built for inclusion in a dll (and should export symbols for example).
6415
lt_prog_compiler_pic='-DDLL_EXPORT'
6418
hpux9* | hpux10* | hpux11*)
6419
lt_prog_compiler_wl='-Wl,'
6420
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6427
lt_prog_compiler_pic='+Z'
6430
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6431
lt_prog_compiler_static='${wl}-a ${wl}archive'
6434
irix5* | irix6* | nonstopux*)
6435
lt_prog_compiler_wl='-Wl,'
6436
# PIC (with -KPIC) is the default.
6437
lt_prog_compiler_static='-non_shared'
6441
lt_prog_compiler_pic='-KPIC'
6442
lt_prog_compiler_static='-Bstatic'
6448
lt_prog_compiler_wl='-Wl,'
6449
lt_prog_compiler_pic='-KPIC'
6450
lt_prog_compiler_static='-static'
6453
lt_prog_compiler_wl='-Wl,'
6454
# All Alpha code is PIC.
6455
lt_prog_compiler_static='-non_shared'
6460
osf3* | osf4* | osf5*)
6461
lt_prog_compiler_wl='-Wl,'
6462
# All OSF/1 code is PIC.
6463
lt_prog_compiler_static='-non_shared'
6467
lt_prog_compiler_pic='-Kpic'
6468
lt_prog_compiler_static='-dn'
6472
lt_prog_compiler_wl='-Wl,'
6473
lt_prog_compiler_pic='-KPIC'
6474
lt_prog_compiler_static='-Bstatic'
6478
lt_prog_compiler_wl='-Qoption ld '
6479
lt_prog_compiler_pic='-PIC'
6480
lt_prog_compiler_static='-Bstatic'
6483
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6484
lt_prog_compiler_wl='-Wl,'
6485
lt_prog_compiler_pic='-KPIC'
6486
lt_prog_compiler_static='-Bstatic'
6490
if test -d /usr/nec ;then
6491
lt_prog_compiler_pic='-Kconform_pic'
6492
lt_prog_compiler_static='-Bstatic'
6497
lt_prog_compiler_pic='-pic'
6498
lt_prog_compiler_static='-Bstatic'
6502
lt_prog_compiler_can_build_shared=no
6507
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6508
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6511
# Check to make sure the PIC flag actually works.
6513
if test -n "$lt_prog_compiler_pic"; then
6515
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6516
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6517
if test "${lt_prog_compiler_pic_works+set}" = set; then
6518
echo $ECHO_N "(cached) $ECHO_C" >&6
6520
lt_prog_compiler_pic_works=no
6521
ac_outfile=conftest.$ac_objext
6522
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6523
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6524
# Insert the option either (1) after the last *FLAGS variable, or
6525
# (2) before a word containing "conftest.", or (3) at the end.
6526
# Note that $ac_compile itself does not contain backslashes and begins
6527
# with a dollar sign (not a hyphen), so the echo should work correctly.
6528
# The option is referenced via a variable to avoid confusing sed.
6529
lt_compile=`echo "$ac_compile" | $SED \
6530
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6531
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6532
-e 's:$: $lt_compiler_flag:'`
6533
(eval echo "\"\$as_me:6533: $lt_compile\"" >&5)
6534
(eval "$lt_compile" 2>conftest.err)
6536
cat conftest.err >&5
6537
echo "$as_me:6537: \$? = $ac_status" >&5
6538
if (exit $ac_status) && test -s "$ac_outfile"; then
6539
# The compiler can only warn and ignore the option if not recognized
6540
# So say no if there are warnings
6541
if test ! -s conftest.err; then
6542
lt_prog_compiler_pic_works=yes
6548
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6549
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6551
if test x"$lt_prog_compiler_pic_works" = xyes; then
6552
case $lt_prog_compiler_pic in
6554
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6557
lt_prog_compiler_pic=
6558
lt_prog_compiler_can_build_shared=no
6563
# For platforms which do not support PIC, -DPIC is meaningless:
6565
lt_prog_compiler_pic=
6568
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6572
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6573
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6574
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6575
echo $ECHO_N "(cached) $ECHO_C" >&6
6577
lt_cv_prog_compiler_c_o=no
6578
$rm -r conftest 2>/dev/null
6582
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6584
lt_compiler_flag="-o out/conftest2.$ac_objext"
6585
# Insert the option either (1) after the last *FLAGS variable, or
6586
# (2) before a word containing "conftest.", or (3) at the end.
6587
# Note that $ac_compile itself does not contain backslashes and begins
6588
# with a dollar sign (not a hyphen), so the echo should work correctly.
6589
lt_compile=`echo "$ac_compile" | $SED \
6590
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6591
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592
-e 's:$: $lt_compiler_flag:'`
6593
(eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
6594
(eval "$lt_compile" 2>out/conftest.err)
6596
cat out/conftest.err >&5
6597
echo "$as_me:6597: \$? = $ac_status" >&5
6598
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6600
# The compiler can only warn and ignore the option if not recognized
6601
# So say no if there are warnings
6602
if test ! -s out/conftest.err; then
6603
lt_cv_prog_compiler_c_o=yes
6608
# SGI C++ compiler will create directory out/ii_files/ for
6609
# template instantiation
6610
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6611
$rm out/* && rmdir out
6617
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6618
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6621
hard_links="nottested"
6622
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6623
# do not overwrite the value of need_locks provided by the user
6624
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6625
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6628
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6630
ln conftest.a conftest.b 2>&5 || hard_links=no
6631
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6632
echo "$as_me:$LINENO: result: $hard_links" >&5
6633
echo "${ECHO_T}$hard_links" >&6
6634
if test "$hard_links" = no; then
6635
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6636
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6643
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6644
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6647
allow_undefined_flag=
6648
enable_shared_with_static_runtimes=no
6650
archive_expsym_cmds=
6651
old_archive_From_new_cmds=
6652
old_archive_from_expsyms_cmds=
6653
export_dynamic_flag_spec=
6654
whole_archive_flag_spec=
6655
thread_safe_flag_spec=
6656
hardcode_libdir_flag_spec=
6657
hardcode_libdir_flag_spec_ld=
6658
hardcode_libdir_separator=
6661
hardcode_shlibpath_var=unsupported
6662
link_all_deplibs=unknown
6663
hardcode_automatic=no
6666
always_export_symbols=no
6667
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6668
# include_expsyms should be a list of space-separated symbols to be *always*
6669
# included in the symbol list
6671
# exclude_expsyms can be an extended regexp of symbols to exclude
6672
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6673
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6674
# as well as any symbol that contains `d'.
6675
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6676
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6677
# platforms (ab)use it in PIC code, but their linkers get confused if
6678
# the symbol is explicitly referenced. Since portable code cannot
6679
# rely on this symbol name, it's probably fine to never include it in
6680
# preloaded symbol tables.
6681
extract_expsyms_cmds=
6684
cygwin* | mingw* | pw32*)
6685
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6686
# When not using gcc, we currently assume that we are using
6687
# Microsoft Visual C++.
6688
if test "$GCC" != yes; then
6698
if test "$with_gnu_ld" = yes; then
6699
# If archive_cmds runs LD, not CC, wlarc should be empty
6702
# See if GNU ld supports shared libraries.
6704
aix3* | aix4* | aix5*)
6705
# On AIX/PPC, the GNU linker is very broken
6706
if test "$host_cpu" != ia64; then
6710
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6711
*** to be unable to reliably create shared libraries on AIX.
6712
*** Therefore, libtool is disabling shared libraries support. If you
6713
*** really care for shared libraries, you may want to modify your PATH
6714
*** so that a non-GNU linker is found, and then restart.
6721
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)'
6722
hardcode_libdir_flag_spec='-L$libdir'
6723
hardcode_minus_L=yes
6725
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6726
# that the semantics of dynamic libraries on AmigaOS, at least up
6727
# to version 4, is to share data among multiple programs linked
6728
# with the same dynamic library. Since this doesn't match the
6729
# behavior of shared libraries on other platforms, we can't use
6735
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736
allow_undefined_flag=unsupported
6737
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6738
# support --undefined. This deserves some investigation. FIXME
6739
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745
cygwin* | mingw* | pw32*)
6746
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6747
# as there is no search path for DLLs.
6748
hardcode_libdir_flag_spec='-L$libdir'
6749
allow_undefined_flag=unsupported
6750
always_export_symbols=no
6751
enable_shared_with_static_runtimes=yes
6752
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6754
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6755
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6756
# If the export-symbols file already is a .def file (1st line
6757
# is EXPORTS), use it as is; otherwise, prepend...
6758
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6759
cp $export_symbols $output_objdir/$soname.def;
6761
echo EXPORTS > $output_objdir/$soname.def;
6762
cat $export_symbols >> $output_objdir/$soname.def;
6764
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6770
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6771
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6772
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6775
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6776
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6785
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6786
*** create shared libraries on Solaris systems. Therefore, libtool
6787
*** is disabling shared libraries support. We urge you to upgrade GNU
6788
*** binutils to release 2.9.1 or newer. Another option is to modify
6789
*** your PATH or compiler configuration so that the native linker is
6790
*** used, and then restart.
6793
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6794
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6805
hardcode_shlibpath_var=no
6809
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6810
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6811
archive_cmds="$tmp_archive_cmds"
6812
supports_anon_versioning=no
6813
case `$LD -v 2>/dev/null` in
6814
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6815
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6816
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6817
*\ 2.11.*) ;; # other 2.11 versions
6818
*) supports_anon_versioning=yes ;;
6820
if test $supports_anon_versioning = yes; then
6821
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6822
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6823
$echo "local: *; };" >> $output_objdir/$libname.ver~
6824
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6826
archive_expsym_cmds="$tmp_archive_cmds"
6835
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6836
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6837
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6844
if test "$ld_shlibs" = yes; then
6845
runpath_var=LD_RUN_PATH
6846
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6847
export_dynamic_flag_spec='${wl}--export-dynamic'
6848
# ancient GNU ld didn't support --whole-archive et. al.
6849
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6850
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6852
whole_archive_flag_spec=
6856
# PORTME fill in a description of your system's linker (not GNU ld)
6859
allow_undefined_flag=unsupported
6860
always_export_symbols=yes
6861
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'
6862
# Note: this linker hardcodes the directories in LIBPATH if there
6863
# are no directories specified by -L.
6864
hardcode_minus_L=yes
6865
if test "$GCC" = yes && test -z "$link_static_flag"; then
6866
# Neither direct hardcoding nor static linking is supported with a
6868
hardcode_direct=unsupported
6873
if test "$host_cpu" = ia64; then
6874
# On IA64, the linker does run time linking by default, so we don't
6875
# have to do anything special.
6876
aix_use_runtimelinking=no
6877
exp_sym_flag='-Bexport'
6880
# If we're using GNU nm, then we don't want the "-C" option.
6881
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6882
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6883
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'
6885
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'
6887
aix_use_runtimelinking=no
6889
# Test if we are trying to use run time linking or normal
6890
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6891
# need to do runtime linking.
6892
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6893
for ld_flag in $LDFLAGS; do
6894
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6895
aix_use_runtimelinking=yes
6901
exp_sym_flag='-bexport'
6902
no_entry_flag='-bnoentry'
6905
# When large executables or shared objects are built, AIX ld can
6906
# have problems creating the table of contents. If linking a library
6907
# or program results in "error TOC overflow" add -mminimal-toc to
6908
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6909
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6913
hardcode_libdir_separator=':'
6914
link_all_deplibs=yes
6916
if test "$GCC" = yes; then
6917
case $host_os in aix4.012|aix4.012.*)
6918
# We only want to do this on AIX 4.2 and lower, the check
6919
# below for broken collect2 doesn't work under 4.3+
6920
collect2name=`${CC} -print-prog-name=collect2`
6921
if test -f "$collect2name" && \
6922
strings "$collect2name" | grep resolve_lib_name >/dev/null
6924
# We have reworked collect2
6927
# We have old collect2
6928
hardcode_direct=unsupported
6929
# It fails to find uninstalled libraries when the uninstalled
6930
# path is not listed in the libpath. Setting hardcode_minus_L
6931
# to unsupported forces relinking
6932
hardcode_minus_L=yes
6933
hardcode_libdir_flag_spec='-L$libdir'
6934
hardcode_libdir_separator=
6937
shared_flag='-shared'
6940
if test "$host_cpu" = ia64; then
6941
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6942
# chokes on -Wl,-G. The following line is correct:
6945
if test "$aix_use_runtimelinking" = yes; then
6946
shared_flag='${wl}-G'
6948
shared_flag='${wl}-bM:SRE'
6953
# It seems that -bexpall does not export symbols beginning with
6954
# underscore (_), so it is better to generate a list of symbols to export.
6955
always_export_symbols=yes
6956
if test "$aix_use_runtimelinking" = yes; then
6957
# Warning - without using the other runtime loading flags (-brtl),
6958
# -berok will link without error, but may produce a broken library.
6959
allow_undefined_flag='-berok'
6960
# Determine the default libpath from the value encoded in an empty executable.
6961
cat >conftest.$ac_ext <<_ACEOF
6964
cat confdefs.h >>conftest.$ac_ext
6965
cat >>conftest.$ac_ext <<_ACEOF
6966
/* end confdefs.h. */
6976
rm -f conftest.$ac_objext conftest$ac_exeext
6977
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978
(eval $ac_link) 2>conftest.er1
6980
grep -v '^ *+' conftest.er1 >conftest.err
6982
cat conftest.err >&5
6983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984
(exit $ac_status); } &&
6985
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990
(exit $ac_status); }; } &&
6991
{ ac_try='test -s conftest$ac_exeext'
6992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996
(exit $ac_status); }; }; then
6998
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7000
# Check for a 64-bit object if we didn't find anything.
7001
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; }
7004
echo "$as_me: failed program was:" >&5
7005
sed 's/^/| /' conftest.$ac_ext >&5
7008
rm -f conftest.err conftest.$ac_objext \
7009
conftest$ac_exeext conftest.$ac_ext
7010
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7012
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7013
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"
7015
if test "$host_cpu" = ia64; then
7016
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7017
allow_undefined_flag="-z nodefs"
7018
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"
7020
# Determine the default libpath from the value encoded in an empty executable.
7021
cat >conftest.$ac_ext <<_ACEOF
7024
cat confdefs.h >>conftest.$ac_ext
7025
cat >>conftest.$ac_ext <<_ACEOF
7026
/* end confdefs.h. */
7036
rm -f conftest.$ac_objext conftest$ac_exeext
7037
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038
(eval $ac_link) 2>conftest.er1
7040
grep -v '^ *+' conftest.er1 >conftest.err
7042
cat conftest.err >&5
7043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044
(exit $ac_status); } &&
7045
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050
(exit $ac_status); }; } &&
7051
{ ac_try='test -s conftest$ac_exeext'
7052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056
(exit $ac_status); }; }; then
7058
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7060
# Check for a 64-bit object if we didn't find anything.
7061
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; }
7064
echo "$as_me: failed program was:" >&5
7065
sed 's/^/| /' conftest.$ac_ext >&5
7068
rm -f conftest.err conftest.$ac_objext \
7069
conftest$ac_exeext conftest.$ac_ext
7070
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7072
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7073
# Warning - without using the other run time loading flags,
7074
# -berok will link without error, but may produce a broken library.
7075
no_undefined_flag=' ${wl}-bernotok'
7076
allow_undefined_flag=' ${wl}-berok'
7077
# -bexpall does not export symbols beginning with underscore (_)
7078
always_export_symbols=yes
7079
# Exported symbols can be pulled into shared objects from archives
7080
whole_archive_flag_spec=' '
7081
archive_cmds_need_lc=yes
7082
# This is similar to how AIX traditionally builds it's shared libraries.
7083
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'
7089
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)'
7090
hardcode_libdir_flag_spec='-L$libdir'
7091
hardcode_minus_L=yes
7092
# see comment about different semantics on the GNU ld section
7097
export_dynamic_flag_spec=-rdynamic
7100
cygwin* | mingw* | pw32*)
7101
# When not using gcc, we currently assume that we are using
7102
# Microsoft Visual C++.
7103
# hardcode_libdir_flag_spec is actually meaningless, as there is
7104
# no search path for DLLs.
7105
hardcode_libdir_flag_spec=' '
7106
allow_undefined_flag=unsupported
7107
# Tell ltmain to make .lib files, not .a files.
7109
# Tell ltmain to make .dll files, not .so files.
7111
# FIXME: Setting linknames here is a bad hack.
7112
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7113
# The linker will automatically build a .lib file if we build a DLL.
7114
old_archive_From_new_cmds='true'
7115
# FIXME: Should let the user specify the lib program.
7116
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7117
fix_srcfile_path='`cygpath -w "$srcfile"`'
7118
enable_shared_with_static_runtimes=yes
7121
darwin* | rhapsody*)
7122
if test "$GXX" = yes ; then
7123
archive_cmds_need_lc=no
7125
rhapsody* | darwin1.[012])
7126
allow_undefined_flag='-undefined suppress'
7129
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7130
allow_undefined_flag='-flat_namespace -undefined suppress'
7132
case ${MACOSX_DEPLOYMENT_TARGET} in
7134
allow_undefined_flag='-flat_namespace -undefined suppress'
7137
allow_undefined_flag='-undefined dynamic_lookup'
7143
lt_int_apple_cc_single_mod=no
7144
output_verbose_link_cmd='echo'
7145
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7146
lt_int_apple_cc_single_mod=yes
7148
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7149
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7151
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'
7153
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7154
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7155
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7156
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}'
7158
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}'
7160
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}'
7162
hardcode_automatic=yes
7163
hardcode_shlibpath_var=unsupported
7164
whole_archive_flag_spec='-all_load $convenience'
7165
link_all_deplibs=yes
7172
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7173
hardcode_libdir_flag_spec='-L$libdir'
7174
hardcode_shlibpath_var=no
7181
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7182
# support. Future versions do this automatically, but an explicit c++rt0.o
7183
# does not break anything, and helps significantly (at the cost of a little
7186
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7187
hardcode_libdir_flag_spec='-R$libdir'
7189
hardcode_shlibpath_var=no
7192
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7194
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7196
hardcode_minus_L=yes
7197
hardcode_shlibpath_var=no
7200
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7201
freebsd* | kfreebsd*-gnu)
7202
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7203
hardcode_libdir_flag_spec='-R$libdir'
7205
hardcode_shlibpath_var=no
7209
if test "$GCC" = yes; then
7210
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'
7212
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'
7214
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7215
hardcode_libdir_separator=:
7218
# hardcode_minus_L: Not really in the search PATH,
7219
# but as the default location of the library.
7220
hardcode_minus_L=yes
7221
export_dynamic_flag_spec='${wl}-E'
7225
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7228
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7231
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7237
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7240
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7244
if test "$with_gnu_ld" = no; then
7247
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7248
hardcode_libdir_flag_spec_ld='+b $libdir'
7249
hardcode_libdir_separator=:
7251
hardcode_shlibpath_var=no
7254
hardcode_libdir_flag_spec='-L$libdir'
7256
hardcode_shlibpath_var=no
7258
# hardcode_minus_L: Not really in the search PATH,
7259
# but as the default location of the library.
7260
hardcode_minus_L=yes
7263
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7264
hardcode_libdir_separator=:
7266
export_dynamic_flag_spec='${wl}-E'
7268
# hardcode_minus_L: Not really in the search PATH,
7269
# but as the default location of the library.
7270
hardcode_minus_L=yes
7276
irix5* | irix6* | nonstopux*)
7277
if test "$GCC" = yes; then
7278
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'
7280
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'
7281
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7283
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7284
hardcode_libdir_separator=:
7285
link_all_deplibs=yes
7288
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7289
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7290
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7292
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7294
hardcode_libdir_flag_spec='-R$libdir'
7296
hardcode_shlibpath_var=no
7300
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7303
hardcode_libdir_separator=:
7304
hardcode_shlibpath_var=no
7309
hardcode_shlibpath_var=no
7310
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7311
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7312
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7313
export_dynamic_flag_spec='${wl}-E'
7316
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7317
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7318
hardcode_libdir_flag_spec='-R$libdir'
7321
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7322
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7329
hardcode_libdir_flag_spec='-L$libdir'
7330
hardcode_minus_L=yes
7331
allow_undefined_flag=unsupported
7332
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'
7333
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7337
if test "$GCC" = yes; then
7338
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7339
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'
7341
allow_undefined_flag=' -expect_unresolved \*'
7342
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'
7344
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7345
hardcode_libdir_separator=:
7348
osf4* | osf5*) # as osf3* with the addition of -msym flag
7349
if test "$GCC" = yes; then
7350
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7351
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'
7352
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7354
allow_undefined_flag=' -expect_unresolved \*'
7355
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'
7356
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7357
$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'
7359
# Both c and cxx compiler support -rpath directly
7360
hardcode_libdir_flag_spec='-rpath $libdir'
7362
hardcode_libdir_separator=:
7366
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367
hardcode_shlibpath_var=no
7368
export_dynamic_flag_spec='${wl}-Bexport'
7369
runpath_var=LD_RUN_PATH
7370
hardcode_runpath_var=yes
7374
no_undefined_flag=' -z text'
7375
if test "$GCC" = yes; then
7376
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7377
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7378
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7380
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7382
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7384
hardcode_libdir_flag_spec='-R$libdir'
7385
hardcode_shlibpath_var=no
7387
solaris2.[0-5] | solaris2.[0-5].*) ;;
7388
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7389
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7391
link_all_deplibs=yes
7395
if test "x$host_vendor" = xsequent; then
7396
# Use $CC to link under sequent, because it throws in some extra .o
7397
# files that make .init and .fini sections work.
7398
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7400
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7402
hardcode_libdir_flag_spec='-L$libdir'
7404
hardcode_minus_L=yes
7405
hardcode_shlibpath_var=no
7409
case $host_vendor in
7411
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412
hardcode_direct=yes # is this really true???
7415
## LD is ld it makes a PLAMLIB
7416
## CC just makes a GrossModule.
7417
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7418
reload_cmds='$CC -r -o $output$reload_objs'
7422
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7426
runpath_var='LD_RUN_PATH'
7427
hardcode_shlibpath_var=no
7431
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432
hardcode_shlibpath_var=no
7433
export_dynamic_flag_spec='-Bexport'
7437
if test -d /usr/nec; then
7438
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7439
hardcode_shlibpath_var=no
7440
runpath_var=LD_RUN_PATH
7441
hardcode_runpath_var=yes
7447
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7450
hardcode_shlibpath_var=no
7451
hardcode_runpath_var=yes
7452
runpath_var=LD_RUN_PATH
7455
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7456
no_undefined_flag='${wl}-z ${wl}text'
7457
if test "$GCC" = yes; then
7458
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7460
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462
runpath_var='LD_RUN_PATH'
7463
hardcode_shlibpath_var=no
7467
no_undefined_flag=' -z text'
7468
# $CC -shared without GNU ld will not create a library from C++
7469
# object files and a static libstdc++, better avoid it by now
7470
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7472
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7473
hardcode_libdir_flag_spec=
7474
hardcode_shlibpath_var=no
7475
runpath_var='LD_RUN_PATH'
7479
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7480
hardcode_libdir_flag_spec='-L$libdir'
7481
hardcode_shlibpath_var=no
7490
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7491
echo "${ECHO_T}$ld_shlibs" >&6
7492
test "$ld_shlibs" = no && can_build_shared=no
7494
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7495
if test "$GCC" = yes; then
7496
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7500
# Do we need to explicitly link libc?
7502
case "x$archive_cmds_need_lc" in
7504
# Assume -lc should be added
7505
archive_cmds_need_lc=yes
7507
if test "$enable_shared" = yes && test "$GCC" = yes; then
7508
case $archive_cmds in
7510
# FIXME: we may have to deal with multi-command sequences.
7513
# Test whether the compiler implicitly links with -lc since on some
7514
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7515
# to ld, don't add -lc before -lgcc.
7516
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7517
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7519
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7522
(eval $ac_compile) 2>&5
7524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525
(exit $ac_status); } 2>conftest.err; then
7528
libobjs=conftest.$ac_objext
7530
wl=$lt_prog_compiler_wl
7536
lt_save_allow_undefined_flag=$allow_undefined_flag
7537
allow_undefined_flag=
7538
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7539
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542
(exit $ac_status); }
7544
archive_cmds_need_lc=no
7546
archive_cmds_need_lc=yes
7548
allow_undefined_flag=$lt_save_allow_undefined_flag
7550
cat conftest.err 1>&5
7553
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7554
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7561
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7562
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7564
libname_spec='lib$name'
7572
shlibpath_overrides_runpath=unknown
7574
dynamic_linker="$host_os ld.so"
7575
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7576
if test "$GCC" = yes; then
7577
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7578
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7579
# if the path contains ";" then we assume it to be the separator
7580
# otherwise default to the standard path separator (i.e. ":") - it is
7581
# assumed that no part of a normal pathname contains ";" but that should
7582
# okay in the real world where ";" in dirpaths is itself problematic.
7583
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7585
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7588
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7590
need_lib_prefix=unknown
7591
hardcode_into_libs=no
7593
# when you set need_version to no, make sure it does not cause -set_version
7594
# flags to be left without arguments
7595
need_version=unknown
7600
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7601
shlibpath_var=LIBPATH
7603
# AIX 3 has no versioning support, so we append a major version to the name.
7604
soname_spec='${libname}${release}${shared_ext}$major'
7611
hardcode_into_libs=yes
7612
if test "$host_cpu" = ia64; then
7613
# AIX 5 supports IA64
7614
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7615
shlibpath_var=LD_LIBRARY_PATH
7617
# With GCC up to 2.95.x, collect2 would create an import file
7618
# for dependence libraries. The import file would start with
7619
# the line `#! .'. This would cause the generated library to
7620
# depend on `.', always an invalid library. This was fixed in
7621
# development snapshots of GCC prior to 3.0.
7623
aix4 | aix4.[01] | aix4.[01].*)
7624
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7626
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7633
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7634
# soname into executable. Probably we can add versioning support to
7635
# collect2, so additional links can be useful in future.
7636
if test "$aix_use_runtimelinking" = yes; then
7637
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7638
# instead of lib<name>.a to let people know that these are not
7639
# typical AIX shared libraries.
7640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642
# We preserve .a as extension for shared libraries through AIX4.2
7643
# and later when we are not doing run time linking.
7644
library_names_spec='${libname}${release}.a $libname.a'
7645
soname_spec='${libname}${release}${shared_ext}$major'
7647
shlibpath_var=LIBPATH
7652
library_names_spec='$libname.ixlibrary $libname.a'
7653
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7654
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'
7658
library_names_spec='${libname}${shared_ext}'
7659
dynamic_linker="$host_os ld.so"
7660
shlibpath_var=LIBRARY_PATH
7666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667
soname_spec='${libname}${release}${shared_ext}$major'
7668
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7669
shlibpath_var=LD_LIBRARY_PATH
7670
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7671
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7672
# the default ld.so.conf also contains /usr/contrib/lib and
7673
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7674
# libtool to hard-code these into programs
7677
cygwin* | mingw* | pw32*)
7678
version_type=windows
7683
case $GCC,$host_os in
7684
yes,cygwin* | yes,mingw* | yes,pw32*)
7685
library_names_spec='$libname.dll.a'
7686
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7687
postinstall_cmds='base_file=`basename \${file}`~
7688
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7689
dldir=$destdir/`dirname \$dlpath`~
7690
test -d \$dldir || mkdir -p \$dldir~
7691
$install_prog $dir/$dlname \$dldir/$dlname'
7692
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7693
dlpath=$dir/\$dldll~
7695
shlibpath_overrides_runpath=yes
7699
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7700
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7701
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7704
# MinGW DLLs use traditional 'lib' prefix
7705
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7706
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7707
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7708
# It is most probably a Windows format PATH printed by
7709
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7710
# path with ; separators, and with drive letters. We can handle the
7711
# drive letters (cygwin fileutils understands them), so leave them,
7712
# especially as we might pass files found there to a mingw objdump,
7713
# which wouldn't understand a cygwinified path. Ahh.
7714
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7716
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7720
# pw32 DLLs use 'pw' prefix rather than 'lib'
7721
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7727
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7730
dynamic_linker='Win32 ld.exe'
7731
# FIXME: first we should search . and the directory the executable is in
7735
darwin* | rhapsody*)
7736
dynamic_linker="$host_os dyld"
7740
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7741
soname_spec='${libname}${release}${major}$shared_ext'
7742
shlibpath_overrides_runpath=yes
7743
shlibpath_var=DYLD_LIBRARY_PATH
7744
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7745
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7746
if test "$GCC" = yes; then
7747
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"`
7749
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7751
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7759
soname_spec='${libname}${release}${shared_ext}$major'
7760
shlibpath_var=LD_LIBRARY_PATH
7771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7772
soname_spec='${libname}${release}${shared_ext}$major'
7773
shlibpath_var=LD_LIBRARY_PATH
7774
shlibpath_overrides_runpath=no
7775
hardcode_into_libs=yes
7776
dynamic_linker='GNU ld.so'
7780
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7781
version_type=freebsd-$objformat
7782
case $version_type in
7784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7789
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7793
shlibpath_var=LD_LIBRARY_PATH
7796
shlibpath_overrides_runpath=yes
7798
freebsd3.01* | freebsdelf3.01*)
7799
shlibpath_overrides_runpath=yes
7800
hardcode_into_libs=yes
7803
shlibpath_overrides_runpath=no
7804
hardcode_into_libs=yes
7813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7814
soname_spec='${libname}${release}${shared_ext}$major'
7815
shlibpath_var=LD_LIBRARY_PATH
7816
hardcode_into_libs=yes
7819
hpux9* | hpux10* | hpux11*)
7820
# Give a soname corresponding to the major version so that dld.sl refuses to
7821
# link against other versions.
7828
hardcode_into_libs=yes
7829
dynamic_linker="$host_os dld.so"
7830
shlibpath_var=LD_LIBRARY_PATH
7831
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833
soname_spec='${libname}${release}${shared_ext}$major'
7834
if test "X$HPUX_IA64_MODE" = X32; then
7835
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7837
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7839
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7843
hardcode_into_libs=yes
7844
dynamic_linker="$host_os dld.sl"
7845
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7846
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7848
soname_spec='${libname}${release}${shared_ext}$major'
7849
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7850
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7854
dynamic_linker="$host_os dld.sl"
7855
shlibpath_var=SHLIB_PATH
7856
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858
soname_spec='${libname}${release}${shared_ext}$major'
7861
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7862
postinstall_cmds='chmod 555 $lib'
7865
irix5* | irix6* | nonstopux*)
7867
nonstopux*) version_type=nonstopux ;;
7869
if test "$lt_cv_prog_gnu_ld" = yes; then
7877
soname_spec='${libname}${release}${shared_ext}$major'
7878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7880
irix5* | nonstopux*)
7884
case $LD in # libtool.m4 will add one of these switches to LD
7885
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7886
libsuff= shlibsuff= libmagic=32-bit;;
7887
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7888
libsuff=32 shlibsuff=N32 libmagic=N32;;
7889
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7890
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7891
*) libsuff= shlibsuff= libmagic=never-match;;
7895
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7896
shlibpath_overrides_runpath=no
7897
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7898
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7899
hardcode_into_libs=yes
7902
# No shared lib support for Linux oldld, aout, or coff.
7903
linux*oldld* | linux*aout* | linux*coff*)
7907
# This must be Linux ELF.
7912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913
soname_spec='${libname}${release}${shared_ext}$major'
7914
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7915
shlibpath_var=LD_LIBRARY_PATH
7916
shlibpath_overrides_runpath=no
7917
# This implies no fast_install, which is unacceptable.
7918
# Some rework will be needed to allow for fast_install
7919
# before this can be enabled.
7920
hardcode_into_libs=yes
7922
# Append ld.so.conf contents to the search path
7923
if test -f /etc/ld.so.conf; then
7924
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7925
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7928
# We used to test for /lib/ld.so.1 and disable shared libraries on
7929
# powerpc, because MkLinux only supported shared libraries with the
7930
# GNU dynamic linker. Since this was broken with cross compilers,
7931
# most powerpc-linux boxes support dynamic linking these days and
7932
# people can always --disable-shared, the test was removed, and we
7933
# assume the GNU/Linux dynamic linker is in use.
7934
dynamic_linker='GNU/Linux ld.so'
7941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7942
soname_spec='${libname}${release}${shared_ext}$major'
7943
shlibpath_var=LD_LIBRARY_PATH
7944
shlibpath_overrides_runpath=no
7945
hardcode_into_libs=yes
7946
dynamic_linker='NetBSD ld.elf_so'
7953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7954
soname_spec='${libname}${release}${shared_ext}$major'
7955
shlibpath_var=LD_LIBRARY_PATH
7956
shlibpath_overrides_runpath=no
7957
hardcode_into_libs=yes
7958
dynamic_linker='GNU ld.so'
7965
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7967
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7968
dynamic_linker='NetBSD (a.out) ld.so'
7970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7971
soname_spec='${libname}${release}${shared_ext}$major'
7972
dynamic_linker='NetBSD ld.elf_so'
7974
shlibpath_var=LD_LIBRARY_PATH
7975
shlibpath_overrides_runpath=yes
7976
hardcode_into_libs=yes
7981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982
shlibpath_var=LD_LIBRARY_PATH
7983
shlibpath_overrides_runpath=yes
7990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991
soname_spec='${libname}${release}${shared_ext}$major'
7992
shlibpath_var=LD_LIBRARY_PATH
7993
shlibpath_overrides_runpath=yes
8000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8001
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8002
shlibpath_var=LD_LIBRARY_PATH
8003
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8005
openbsd2.[89] | openbsd2.[89].*)
8006
shlibpath_overrides_runpath=no
8009
shlibpath_overrides_runpath=yes
8013
shlibpath_overrides_runpath=yes
8018
libname_spec='$name'
8021
library_names_spec='$libname${shared_ext} $libname.a'
8022
dynamic_linker='OS/2 ld.exe'
8023
shlibpath_var=LIBPATH
8026
osf3* | osf4* | osf5*)
8030
soname_spec='${libname}${release}${shared_ext}$major'
8031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032
shlibpath_var=LD_LIBRARY_PATH
8033
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8034
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8039
soname_spec='${libname}${release}${shared_ext}$major'
8040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041
shlibpath_var=LD_LIBRARY_PATH
8048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049
soname_spec='${libname}${release}${shared_ext}$major'
8050
shlibpath_var=LD_LIBRARY_PATH
8051
shlibpath_overrides_runpath=yes
8052
hardcode_into_libs=yes
8053
# ldd complains unless libraries are executable
8054
postinstall_cmds='chmod +x $lib'
8059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8060
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8061
shlibpath_var=LD_LIBRARY_PATH
8062
shlibpath_overrides_runpath=yes
8063
if test "$with_gnu_ld" = yes; then
8069
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8072
soname_spec='${libname}${release}${shared_ext}$major'
8073
shlibpath_var=LD_LIBRARY_PATH
8074
case $host_vendor in
8076
shlibpath_overrides_runpath=no
8078
export_dynamic_flag_spec='${wl}-Blargedynsym'
8079
runpath_var=LD_RUN_PATH
8087
shlibpath_overrides_runpath=no
8088
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8094
if test -d /usr/nec ;then
8096
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8097
soname_spec='$libname${shared_ext}.$major'
8098
shlibpath_var=LD_LIBRARY_PATH
8104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8105
soname_spec='${libname}${release}${shared_ext}$major'
8106
shlibpath_var=LD_LIBRARY_PATH
8113
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8114
echo "${ECHO_T}$dynamic_linker" >&6
8115
test "$dynamic_linker" = no && can_build_shared=no
8117
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8118
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8120
if test -n "$hardcode_libdir_flag_spec" || \
8121
test -n "$runpath_var " || \
8122
test "X$hardcode_automatic"="Xyes" ; then
8124
# We can hardcode non-existant directories.
8125
if test "$hardcode_direct" != no &&
8126
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8127
# have to relink, otherwise we might link with an installed library
8128
# when we should be linking with a yet-to-be-installed one
8129
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8130
test "$hardcode_minus_L" != no; then
8131
# Linking always hardcodes the temporary library directory.
8132
hardcode_action=relink
8134
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8135
hardcode_action=immediate
8138
# We cannot hardcode anything, or else we can only hardcode existing
8140
hardcode_action=unsupported
8142
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8143
echo "${ECHO_T}$hardcode_action" >&6
8145
if test "$hardcode_action" = relink; then
8146
# Fast installation is not supported
8147
enable_fast_install=no
8148
elif test "$shlibpath_overrides_runpath" = yes ||
8149
test "$enable_shared" = no; then
8150
# Fast installation is not necessary
8151
enable_fast_install=needless
8156
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8157
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8158
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8159
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8160
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8161
echo "$as_me:$LINENO: result: yes" >&5
8162
echo "${ECHO_T}yes" >&6
8164
# FIXME - insert some real tests, host_os isn't really good enough
8167
if test -n "$STRIP" ; then
8168
striplib="$STRIP -x"
8169
echo "$as_me:$LINENO: result: yes" >&5
8170
echo "${ECHO_T}yes" >&6
8172
echo "$as_me:$LINENO: result: no" >&5
8173
echo "${ECHO_T}no" >&6
8177
echo "$as_me:$LINENO: result: no" >&5
8178
echo "${ECHO_T}no" >&6
8183
if test "x$enable_dlopen" != xyes; then
8184
enable_dlopen=unknown
8185
enable_dlopen_self=unknown
8186
enable_dlopen_self_static=unknown
8193
lt_cv_dlopen="load_add_on"
8195
lt_cv_dlopen_self=yes
8199
lt_cv_dlopen="LoadLibrary"
8204
lt_cv_dlopen="dlopen"
8209
# if libdl is installed we need to link against it
8210
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8211
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8212
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8213
echo $ECHO_N "(cached) $ECHO_C" >&6
8215
ac_check_lib_save_LIBS=$LIBS
8217
cat >conftest.$ac_ext <<_ACEOF
8220
cat confdefs.h >>conftest.$ac_ext
8221
cat >>conftest.$ac_ext <<_ACEOF
8222
/* end confdefs.h. */
8224
/* Override any gcc2 internal prototype to avoid an error. */
8228
/* We use char because int might match the return type of a gcc2
8229
builtin and then its argument prototype would still apply. */
8239
rm -f conftest.$ac_objext conftest$ac_exeext
8240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241
(eval $ac_link) 2>conftest.er1
8243
grep -v '^ *+' conftest.er1 >conftest.err
8245
cat conftest.err >&5
8246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247
(exit $ac_status); } &&
8248
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253
(exit $ac_status); }; } &&
8254
{ ac_try='test -s conftest$ac_exeext'
8255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259
(exit $ac_status); }; }; then
8260
ac_cv_lib_dl_dlopen=yes
8262
echo "$as_me: failed program was:" >&5
8263
sed 's/^/| /' conftest.$ac_ext >&5
8265
ac_cv_lib_dl_dlopen=no
8267
rm -f conftest.err conftest.$ac_objext \
8268
conftest$ac_exeext conftest.$ac_ext
8269
LIBS=$ac_check_lib_save_LIBS
8271
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8272
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8273
if test $ac_cv_lib_dl_dlopen = yes; then
8274
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8279
lt_cv_dlopen_self=yes
8286
echo "$as_me:$LINENO: checking for shl_load" >&5
8287
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8288
if test "${ac_cv_func_shl_load+set}" = set; then
8289
echo $ECHO_N "(cached) $ECHO_C" >&6
8291
cat >conftest.$ac_ext <<_ACEOF
8294
cat confdefs.h >>conftest.$ac_ext
8295
cat >>conftest.$ac_ext <<_ACEOF
8296
/* end confdefs.h. */
8297
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8298
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8299
#define shl_load innocuous_shl_load
8301
/* System header to define __stub macros and hopefully few prototypes,
8302
which can conflict with char shl_load (); below.
8303
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8304
<limits.h> exists even on freestanding compilers. */
8307
# include <limits.h>
8309
# include <assert.h>
8314
/* Override any gcc2 internal prototype to avoid an error. */
8319
/* We use char because int might match the return type of a gcc2
8320
builtin and then its argument prototype would still apply. */
8322
/* The GNU C library defines this for functions which it implements
8323
to always fail with ENOSYS. Some functions are actually named
8324
something starting with __ and the normal name is an alias. */
8325
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8328
char (*f) () = shl_load;
8337
return f != shl_load;
8342
rm -f conftest.$ac_objext conftest$ac_exeext
8343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344
(eval $ac_link) 2>conftest.er1
8346
grep -v '^ *+' conftest.er1 >conftest.err
8348
cat conftest.err >&5
8349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350
(exit $ac_status); } &&
8351
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356
(exit $ac_status); }; } &&
8357
{ ac_try='test -s conftest$ac_exeext'
8358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
(exit $ac_status); }; }; then
8363
ac_cv_func_shl_load=yes
8365
echo "$as_me: failed program was:" >&5
8366
sed 's/^/| /' conftest.$ac_ext >&5
8368
ac_cv_func_shl_load=no
8370
rm -f conftest.err conftest.$ac_objext \
8371
conftest$ac_exeext conftest.$ac_ext
8373
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8374
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8375
if test $ac_cv_func_shl_load = yes; then
8376
lt_cv_dlopen="shl_load"
8378
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8379
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8380
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8381
echo $ECHO_N "(cached) $ECHO_C" >&6
8383
ac_check_lib_save_LIBS=$LIBS
8385
cat >conftest.$ac_ext <<_ACEOF
8388
cat confdefs.h >>conftest.$ac_ext
8389
cat >>conftest.$ac_ext <<_ACEOF
8390
/* end confdefs.h. */
8392
/* Override any gcc2 internal prototype to avoid an error. */
8396
/* We use char because int might match the return type of a gcc2
8397
builtin and then its argument prototype would still apply. */
8407
rm -f conftest.$ac_objext conftest$ac_exeext
8408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409
(eval $ac_link) 2>conftest.er1
8411
grep -v '^ *+' conftest.er1 >conftest.err
8413
cat conftest.err >&5
8414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415
(exit $ac_status); } &&
8416
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421
(exit $ac_status); }; } &&
8422
{ ac_try='test -s conftest$ac_exeext'
8423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427
(exit $ac_status); }; }; then
8428
ac_cv_lib_dld_shl_load=yes
8430
echo "$as_me: failed program was:" >&5
8431
sed 's/^/| /' conftest.$ac_ext >&5
8433
ac_cv_lib_dld_shl_load=no
8435
rm -f conftest.err conftest.$ac_objext \
8436
conftest$ac_exeext conftest.$ac_ext
8437
LIBS=$ac_check_lib_save_LIBS
8439
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8440
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8441
if test $ac_cv_lib_dld_shl_load = yes; then
8442
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8444
echo "$as_me:$LINENO: checking for dlopen" >&5
8445
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8446
if test "${ac_cv_func_dlopen+set}" = set; then
8447
echo $ECHO_N "(cached) $ECHO_C" >&6
8449
cat >conftest.$ac_ext <<_ACEOF
8452
cat confdefs.h >>conftest.$ac_ext
8453
cat >>conftest.$ac_ext <<_ACEOF
8454
/* end confdefs.h. */
8455
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8456
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8457
#define dlopen innocuous_dlopen
8459
/* System header to define __stub macros and hopefully few prototypes,
8460
which can conflict with char dlopen (); below.
8461
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462
<limits.h> exists even on freestanding compilers. */
8465
# include <limits.h>
8467
# include <assert.h>
8472
/* Override any gcc2 internal prototype to avoid an error. */
8477
/* We use char because int might match the return type of a gcc2
8478
builtin and then its argument prototype would still apply. */
8480
/* The GNU C library defines this for functions which it implements
8481
to always fail with ENOSYS. Some functions are actually named
8482
something starting with __ and the normal name is an alias. */
8483
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8486
char (*f) () = dlopen;
8500
rm -f conftest.$ac_objext conftest$ac_exeext
8501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502
(eval $ac_link) 2>conftest.er1
8504
grep -v '^ *+' conftest.er1 >conftest.err
8506
cat conftest.err >&5
8507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508
(exit $ac_status); } &&
8509
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514
(exit $ac_status); }; } &&
8515
{ ac_try='test -s conftest$ac_exeext'
8516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520
(exit $ac_status); }; }; then
8521
ac_cv_func_dlopen=yes
8523
echo "$as_me: failed program was:" >&5
8524
sed 's/^/| /' conftest.$ac_ext >&5
8526
ac_cv_func_dlopen=no
8528
rm -f conftest.err conftest.$ac_objext \
8529
conftest$ac_exeext conftest.$ac_ext
8531
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8532
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8533
if test $ac_cv_func_dlopen = yes; then
8534
lt_cv_dlopen="dlopen"
8536
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8537
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8538
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8539
echo $ECHO_N "(cached) $ECHO_C" >&6
8541
ac_check_lib_save_LIBS=$LIBS
8543
cat >conftest.$ac_ext <<_ACEOF
8546
cat confdefs.h >>conftest.$ac_ext
8547
cat >>conftest.$ac_ext <<_ACEOF
8548
/* end confdefs.h. */
8550
/* Override any gcc2 internal prototype to avoid an error. */
8554
/* We use char because int might match the return type of a gcc2
8555
builtin and then its argument prototype would still apply. */
8565
rm -f conftest.$ac_objext conftest$ac_exeext
8566
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8567
(eval $ac_link) 2>conftest.er1
8569
grep -v '^ *+' conftest.er1 >conftest.err
8571
cat conftest.err >&5
8572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573
(exit $ac_status); } &&
8574
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579
(exit $ac_status); }; } &&
8580
{ ac_try='test -s conftest$ac_exeext'
8581
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585
(exit $ac_status); }; }; then
8586
ac_cv_lib_dl_dlopen=yes
8588
echo "$as_me: failed program was:" >&5
8589
sed 's/^/| /' conftest.$ac_ext >&5
8591
ac_cv_lib_dl_dlopen=no
8593
rm -f conftest.err conftest.$ac_objext \
8594
conftest$ac_exeext conftest.$ac_ext
8595
LIBS=$ac_check_lib_save_LIBS
8597
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8598
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8599
if test $ac_cv_lib_dl_dlopen = yes; then
8600
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8602
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8603
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8604
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8605
echo $ECHO_N "(cached) $ECHO_C" >&6
8607
ac_check_lib_save_LIBS=$LIBS
8609
cat >conftest.$ac_ext <<_ACEOF
8612
cat confdefs.h >>conftest.$ac_ext
8613
cat >>conftest.$ac_ext <<_ACEOF
8614
/* end confdefs.h. */
8616
/* Override any gcc2 internal prototype to avoid an error. */
8620
/* We use char because int might match the return type of a gcc2
8621
builtin and then its argument prototype would still apply. */
8631
rm -f conftest.$ac_objext conftest$ac_exeext
8632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633
(eval $ac_link) 2>conftest.er1
8635
grep -v '^ *+' conftest.er1 >conftest.err
8637
cat conftest.err >&5
8638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639
(exit $ac_status); } &&
8640
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645
(exit $ac_status); }; } &&
8646
{ ac_try='test -s conftest$ac_exeext'
8647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651
(exit $ac_status); }; }; then
8652
ac_cv_lib_svld_dlopen=yes
8654
echo "$as_me: failed program was:" >&5
8655
sed 's/^/| /' conftest.$ac_ext >&5
8657
ac_cv_lib_svld_dlopen=no
8659
rm -f conftest.err conftest.$ac_objext \
8660
conftest$ac_exeext conftest.$ac_ext
8661
LIBS=$ac_check_lib_save_LIBS
8663
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8664
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8665
if test $ac_cv_lib_svld_dlopen = yes; then
8666
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8668
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8669
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8670
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8671
echo $ECHO_N "(cached) $ECHO_C" >&6
8673
ac_check_lib_save_LIBS=$LIBS
8675
cat >conftest.$ac_ext <<_ACEOF
8678
cat confdefs.h >>conftest.$ac_ext
8679
cat >>conftest.$ac_ext <<_ACEOF
8680
/* end confdefs.h. */
8682
/* Override any gcc2 internal prototype to avoid an error. */
8686
/* We use char because int might match the return type of a gcc2
8687
builtin and then its argument prototype would still apply. */
8697
rm -f conftest.$ac_objext conftest$ac_exeext
8698
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699
(eval $ac_link) 2>conftest.er1
8701
grep -v '^ *+' conftest.er1 >conftest.err
8703
cat conftest.err >&5
8704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705
(exit $ac_status); } &&
8706
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711
(exit $ac_status); }; } &&
8712
{ ac_try='test -s conftest$ac_exeext'
8713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717
(exit $ac_status); }; }; then
8718
ac_cv_lib_dld_dld_link=yes
8720
echo "$as_me: failed program was:" >&5
8721
sed 's/^/| /' conftest.$ac_ext >&5
8723
ac_cv_lib_dld_dld_link=no
8725
rm -f conftest.err conftest.$ac_objext \
8726
conftest$ac_exeext conftest.$ac_ext
8727
LIBS=$ac_check_lib_save_LIBS
8729
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8730
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8731
if test $ac_cv_lib_dld_dld_link = yes; then
8732
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8753
if test "x$lt_cv_dlopen" != xno; then
8759
case $lt_cv_dlopen in
8761
save_CPPFLAGS="$CPPFLAGS"
8762
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8764
save_LDFLAGS="$LDFLAGS"
8765
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8768
LIBS="$lt_cv_dlopen_libs $LIBS"
8770
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8771
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8772
if test "${lt_cv_dlopen_self+set}" = set; then
8773
echo $ECHO_N "(cached) $ECHO_C" >&6
8775
if test "$cross_compiling" = yes; then :
8776
lt_cv_dlopen_self=cross
8778
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8779
lt_status=$lt_dlunknown
8780
cat > conftest.$ac_ext <<EOF
8781
#line 8781 "configure"
8782
#include "confdefs.h"
8791
# define LT_DLGLOBAL RTLD_GLOBAL
8794
# define LT_DLGLOBAL DL_GLOBAL
8796
# define LT_DLGLOBAL 0
8800
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8801
find out it does not work in some platform. */
8802
#ifndef LT_DLLAZY_OR_NOW
8804
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8807
# define LT_DLLAZY_OR_NOW DL_LAZY
8810
# define LT_DLLAZY_OR_NOW RTLD_NOW
8813
# define LT_DLLAZY_OR_NOW DL_NOW
8815
# define LT_DLLAZY_OR_NOW 0
8823
extern "C" void exit (int);
8826
void fnord() { int i=42;}
8829
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8830
int status = $lt_dlunknown;
8834
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8835
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8836
/* dlclose (self); */
8842
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843
(eval $ac_link) 2>&5
8845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8847
(./conftest; exit; ) 2>/dev/null
8850
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8851
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8852
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8855
# compilation failed
8856
lt_cv_dlopen_self=no
8863
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8864
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8866
if test "x$lt_cv_dlopen_self" = xyes; then
8867
LDFLAGS="$LDFLAGS $link_static_flag"
8868
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8869
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8870
if test "${lt_cv_dlopen_self_static+set}" = set; then
8871
echo $ECHO_N "(cached) $ECHO_C" >&6
8873
if test "$cross_compiling" = yes; then :
8874
lt_cv_dlopen_self_static=cross
8876
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8877
lt_status=$lt_dlunknown
8878
cat > conftest.$ac_ext <<EOF
8879
#line 8879 "configure"
8880
#include "confdefs.h"
8889
# define LT_DLGLOBAL RTLD_GLOBAL
8892
# define LT_DLGLOBAL DL_GLOBAL
8894
# define LT_DLGLOBAL 0
8898
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8899
find out it does not work in some platform. */
8900
#ifndef LT_DLLAZY_OR_NOW
8902
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8905
# define LT_DLLAZY_OR_NOW DL_LAZY
8908
# define LT_DLLAZY_OR_NOW RTLD_NOW
8911
# define LT_DLLAZY_OR_NOW DL_NOW
8913
# define LT_DLLAZY_OR_NOW 0
8921
extern "C" void exit (int);
8924
void fnord() { int i=42;}
8927
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8928
int status = $lt_dlunknown;
8932
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8933
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8934
/* dlclose (self); */
8940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941
(eval $ac_link) 2>&5
8943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8945
(./conftest; exit; ) 2>/dev/null
8948
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8949
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8950
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8953
# compilation failed
8954
lt_cv_dlopen_self_static=no
8961
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8962
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8965
CPPFLAGS="$save_CPPFLAGS"
8966
LDFLAGS="$save_LDFLAGS"
8971
case $lt_cv_dlopen_self in
8972
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8973
*) enable_dlopen_self=unknown ;;
8976
case $lt_cv_dlopen_self_static in
8977
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8978
*) enable_dlopen_self_static=unknown ;;
8983
# Report which librarie types wil actually be built
8984
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8985
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8986
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8987
echo "${ECHO_T}$can_build_shared" >&6
8989
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8990
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8991
test "$can_build_shared" = "no" && enable_shared=no
8993
# On AIX, shared libraries and static libraries use the same namespace, and
8994
# are all built from PIC.
8997
test "$enable_shared" = yes && enable_static=no
8998
if test -n "$RANLIB"; then
8999
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9000
postinstall_cmds='$RANLIB $lib'
9005
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9006
test "$enable_shared" = yes && enable_static=no
9009
darwin* | rhapsody*)
9010
if test "$GCC" = yes; then
9011
archive_cmds_need_lc=no
9013
rhapsody* | darwin1.[012])
9014
allow_undefined_flag='-undefined suppress'
9017
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9018
allow_undefined_flag='-flat_namespace -undefined suppress'
9020
case ${MACOSX_DEPLOYMENT_TARGET} in
9022
allow_undefined_flag='-flat_namespace -undefined suppress'
9025
allow_undefined_flag='-undefined dynamic_lookup'
9031
output_verbose_link_cmd='echo'
9032
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9033
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9034
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9035
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}'
9036
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}'
9038
hardcode_automatic=yes
9039
hardcode_shlibpath_var=unsupported
9040
whole_archive_flag_spec='-all_load $convenience'
9041
link_all_deplibs=yes
9047
echo "$as_me:$LINENO: result: $enable_shared" >&5
9048
echo "${ECHO_T}$enable_shared" >&6
9050
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9051
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9052
# Make sure either enable_shared or enable_static is yes.
9053
test "$enable_shared" = yes || enable_static=yes
9054
echo "$as_me:$LINENO: result: $enable_static" >&5
9055
echo "${ECHO_T}$enable_static" >&6
9057
# The else clause should only fire when bootstrapping the
9058
# libtool distribution, otherwise you forgot to ship ltmain.sh
9059
# with your package, and you will get complaints that there are
9060
# no rules to generate ltmain.sh.
9061
if test -f "$ltmain"; then
9062
# See if we are running on zsh, and set the options which allow our commands through
9063
# without removal of \ escapes.
9064
if test -n "${ZSH_VERSION+set}" ; then
9065
setopt NO_GLOB_SUBST
9067
# Now quote all the things that may contain metacharacters while being
9068
# careful not to overquote the AC_SUBSTed values. We take copies of the
9069
# variables and quote the copies for generation of the libtool script.
9070
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9072
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9073
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9074
deplibs_check_method reload_flag reload_cmds need_locks \
9075
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9076
lt_cv_sys_global_symbol_to_c_name_address \
9077
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9078
old_postinstall_cmds old_postuninstall_cmds \
9082
lt_prog_compiler_wl \
9083
lt_prog_compiler_pic \
9084
lt_prog_compiler_static \
9085
lt_prog_compiler_no_builtin_flag \
9086
export_dynamic_flag_spec \
9087
thread_safe_flag_spec \
9088
whole_archive_flag_spec \
9089
enable_shared_with_static_runtimes \
9091
old_archive_from_new_cmds \
9096
compiler_lib_search_path \
9098
archive_expsym_cmds \
9100
postuninstall_cmds \
9101
old_archive_from_expsyms_cmds \
9102
allow_undefined_flag \
9104
export_symbols_cmds \
9105
hardcode_libdir_flag_spec \
9106
hardcode_libdir_flag_spec_ld \
9107
hardcode_libdir_separator \
9108
hardcode_automatic \
9110
module_expsym_cmds \
9111
lt_cv_prog_compiler_c_o \
9116
old_archive_cmds | \
9117
old_archive_from_new_cmds | \
9119
archive_expsym_cmds | \
9121
module_expsym_cmds | \
9122
old_archive_from_expsyms_cmds | \
9123
export_symbols_cmds | \
9124
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9125
postinstall_cmds | postuninstall_cmds | \
9126
old_postinstall_cmds | old_postuninstall_cmds | \
9127
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9128
# Double-quote double-evaled strings.
9129
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9132
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9138
*'\$0 --fallback-echo"')
9139
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9144
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9146
{ echo "$as_me:$LINENO: creating $ofile" >&5
9147
echo "$as_me: creating $ofile" >&6;}
9149
cat <<__EOF__ >> "$cfgfile"
9152
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9153
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9154
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9156
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9157
# Free Software Foundation, Inc.
9159
# This file is part of GNU Libtool:
9160
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9162
# This program is free software; you can redistribute it and/or modify
9163
# it under the terms of the GNU General Public License as published by
9164
# the Free Software Foundation; either version 2 of the License, or
9165
# (at your option) any later version.
9167
# This program is distributed in the hope that it will be useful, but
9168
# WITHOUT ANY WARRANTY; without even the implied warranty of
9169
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9170
# General Public License for more details.
9172
# You should have received a copy of the GNU General Public License
9173
# along with this program; if not, write to the Free Software
9174
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9176
# As a special exception to the GNU General Public License, if you
9177
# distribute this file as part of a program that contains a
9178
# configuration script generated by Autoconf, you may include it under
9179
# the same distribution terms that you use for the rest of that program.
9181
# A sed program that does not truncate output.
9184
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9185
Xsed="$SED -e s/^X//"
9187
# The HP-UX ksh and POSIX shell print the target directory to stdout
9189
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9191
# The names of the tagged configurations supported by this script.
9194
# ### BEGIN LIBTOOL CONFIG
9196
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9198
# Shell to use when invoking shell scripts.
9201
# Whether or not to build shared libraries.
9202
build_libtool_libs=$enable_shared
9204
# Whether or not to build static libraries.
9205
build_old_libs=$enable_static
9207
# Whether or not to add -lc for building shared libraries.
9208
build_libtool_need_lc=$archive_cmds_need_lc
9210
# Whether or not to disallow shared libs when runtime libs are static
9211
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9213
# Whether or not to optimize for fast installation.
9214
fast_install=$enable_fast_install
9217
host_alias=$host_alias
9220
# An echo program that does not interpret backslashes.
9225
AR_FLAGS=$lt_AR_FLAGS
9230
# A language-specific compiler.
9233
# Is the compiler the GNU C compiler?
9239
# The linker used to build libraries.
9242
# Whether we need hard or soft links.
9245
# A BSD-compatible nm program.
9248
# A symbol stripping program
9251
# Used to examine libraries when file_magic_cmd begins "file"
9252
MAGIC_CMD=$MAGIC_CMD
9254
# Used on cygwin: DLL creation program.
9257
# Used on cygwin: object dumper.
9260
# Used on cygwin: assembler.
9263
# The name of the directory that contains temporary libtool files.
9266
# How to create reloadable object files.
9267
reload_flag=$lt_reload_flag
9268
reload_cmds=$lt_reload_cmds
9270
# How to pass a linker flag through the compiler.
9271
wl=$lt_lt_prog_compiler_wl
9273
# Object file suffix (normally "o").
9276
# Old archive suffix (normally "a").
9279
# Shared library suffix (normally ".so").
9280
shrext_cmds='$shrext_cmds'
9282
# Executable file suffix (normally "").
9285
# Additional compiler flags for building library objects.
9286
pic_flag=$lt_lt_prog_compiler_pic
9289
# What is the maximum length of a command?
9290
max_cmd_len=$lt_cv_sys_max_cmd_len
9292
# Does compiler simultaneously support -c and -o options?
9293
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9295
# Must we lock files when doing compilation ?
9296
need_locks=$lt_need_locks
9298
# Do we need the lib prefix for modules?
9299
need_lib_prefix=$need_lib_prefix
9301
# Do we need a version for libraries?
9302
need_version=$need_version
9304
# Whether dlopen is supported.
9305
dlopen_support=$enable_dlopen
9307
# Whether dlopen of programs is supported.
9308
dlopen_self=$enable_dlopen_self
9310
# Whether dlopen of statically linked programs is supported.
9311
dlopen_self_static=$enable_dlopen_self_static
9313
# Compiler flag to prevent dynamic linking.
9314
link_static_flag=$lt_lt_prog_compiler_static
9316
# Compiler flag to turn off builtin functions.
9317
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9319
# Compiler flag to allow reflexive dlopens.
9320
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9322
# Compiler flag to generate shared objects directly from archives.
9323
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9325
# Compiler flag to generate thread-safe objects.
9326
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9328
# Library versioning type.
9329
version_type=$version_type
9331
# Format of library name prefix.
9332
libname_spec=$lt_libname_spec
9334
# List of archive names. First name is the real one, the rest are links.
9335
# The last name is the one that the linker finds with -lNAME.
9336
library_names_spec=$lt_library_names_spec
9338
# The coded name of the library, if different from the real name.
9339
soname_spec=$lt_soname_spec
9341
# Commands used to build and install an old-style archive.
9343
old_archive_cmds=$lt_old_archive_cmds
9344
old_postinstall_cmds=$lt_old_postinstall_cmds
9345
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9347
# Create an old-style archive from a shared archive.
9348
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9350
# Create a temporary old-style archive to link instead of a shared archive.
9351
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9353
# Commands used to build and install a shared archive.
9354
archive_cmds=$lt_archive_cmds
9355
archive_expsym_cmds=$lt_archive_expsym_cmds
9356
postinstall_cmds=$lt_postinstall_cmds
9357
postuninstall_cmds=$lt_postuninstall_cmds
9359
# Commands used to build a loadable module (assumed same as above if empty)
9360
module_cmds=$lt_module_cmds
9361
module_expsym_cmds=$lt_module_expsym_cmds
9363
# Commands to strip libraries.
9364
old_striplib=$lt_old_striplib
9365
striplib=$lt_striplib
9367
# Dependencies to place before the objects being linked to create a
9369
predep_objects=$lt_predep_objects
9371
# Dependencies to place after the objects being linked to create a
9373
postdep_objects=$lt_postdep_objects
9375
# Dependencies to place before the objects being linked to create a
9379
# Dependencies to place after the objects being linked to create a
9381
postdeps=$lt_postdeps
9383
# The library search path used internally by the compiler when linking
9385
compiler_lib_search_path=$lt_compiler_lib_search_path
9387
# Method to check whether dependent libraries are shared objects.
9388
deplibs_check_method=$lt_deplibs_check_method
9390
# Command to use when deplibs_check_method == file_magic.
9391
file_magic_cmd=$lt_file_magic_cmd
9393
# Flag that allows shared libraries with undefined symbols to be built.
9394
allow_undefined_flag=$lt_allow_undefined_flag
9396
# Flag that forces no undefined symbols.
9397
no_undefined_flag=$lt_no_undefined_flag
9399
# Commands used to finish a libtool library installation in a directory.
9400
finish_cmds=$lt_finish_cmds
9402
# Same as above, but a single script fragment to be evaled but not shown.
9403
finish_eval=$lt_finish_eval
9405
# Take the output of nm and produce a listing of raw symbols and C names.
9406
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9408
# Transform the output of nm in a proper C declaration
9409
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9411
# Transform the output of nm in a C name address pair
9412
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9414
# This is the shared library runtime path variable.
9415
runpath_var=$runpath_var
9417
# This is the shared library path variable.
9418
shlibpath_var=$shlibpath_var
9420
# Is shlibpath searched before the hard-coded library search path?
9421
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9423
# How to hardcode a shared library path into an executable.
9424
hardcode_action=$hardcode_action
9426
# Whether we should hardcode library paths into libraries.
9427
hardcode_into_libs=$hardcode_into_libs
9429
# Flag to hardcode \$libdir into a binary during linking.
9430
# This must work even if \$libdir does not exist.
9431
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9433
# If ld is used when linking, flag to hardcode \$libdir into
9434
# a binary during linking. This must work even if \$libdir does
9436
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9438
# Whether we need a single -rpath flag with a separated argument.
9439
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9441
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9443
hardcode_direct=$hardcode_direct
9445
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9447
hardcode_minus_L=$hardcode_minus_L
9449
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9450
# the resulting binary.
9451
hardcode_shlibpath_var=$hardcode_shlibpath_var
9453
# Set to yes if building a shared library automatically hardcodes DIR into the library
9454
# and all subsequent libraries and executables linked against it.
9455
hardcode_automatic=$hardcode_automatic
9457
# Variables whose values should be saved in libtool wrapper scripts and
9458
# restored at relink time.
9459
variables_saved_for_relink="$variables_saved_for_relink"
9461
# Whether libtool must link a program against all its dependency libraries.
9462
link_all_deplibs=$link_all_deplibs
9464
# Compile-time system search path for libraries
9465
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9467
# Run-time system search path for libraries
9468
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9470
# Fix the shell variable \$srcfile for the compiler.
9471
fix_srcfile_path="$fix_srcfile_path"
9473
# Set to yes if exported symbols are required.
9474
always_export_symbols=$always_export_symbols
9476
# The commands to list exported symbols.
9477
export_symbols_cmds=$lt_export_symbols_cmds
9479
# The commands to extract the exported symbol list from a shared archive.
9480
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9482
# Symbols that should not be listed in the preloaded symbols.
9483
exclude_expsyms=$lt_exclude_expsyms
9485
# Symbols that must always be exported.
9486
include_expsyms=$lt_include_expsyms
9488
# ### END LIBTOOL CONFIG
9495
cat <<\EOF >> "$cfgfile"
9497
# AIX sometimes has problems with the GCC collect2 program. For some
9498
# reason, if we set the COLLECT_NAMES environment variable, the problems
9499
# vanish in a puff of smoke.
9500
if test "X${COLLECT_NAMES+set}" != Xset; then
9502
export COLLECT_NAMES
9508
# We use sed instead of cat because bash on DJGPP gets confused if
9509
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9510
# text mode, it properly converts lines to CR/LF. This bash problem
9511
# is reportedly fixed, but why not run on old versions too?
9512
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9514
mv -f "$cfgfile" "$ofile" || \
9515
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9519
# If there is no Makefile yet, we rely on a make rule to execute
9520
# `config.status --recheck' to rerun these tests and create the
9521
# libtool script then.
9522
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9523
if test -f "$ltmain_in"; then
9524
test -f Makefile && make "$ltmain"
9530
ac_cpp='$CPP $CPPFLAGS'
9531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9538
# Check whether --with-tags or --without-tags was given.
9539
if test "${with_tags+set}" = set; then
9540
withval="$with_tags"
9544
if test -f "$ltmain" && test -n "$tagnames"; then
9545
if test ! -f "${ofile}"; then
9546
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9547
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9550
if test -z "$LTCC"; then
9551
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9552
if test -z "$LTCC"; then
9553
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9554
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9556
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9557
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9561
# Extract list of available tagged configurations in $ofile.
9562
# Note that this assumes the entire list is on one line.
9563
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9565
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9566
for tagname in $tagnames; do
9568
# Check whether tagname contains only valid characters
9569
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9571
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9572
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9573
{ (exit 1); exit 1; }; }
9577
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9579
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9580
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9581
{ (exit 1); exit 1; }; }
9584
# Update the list of available tags.
9585
if test -n "$tagname"; then
9586
echo appending configuration tag \"$tagname\" to $ofile
9590
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9592
ac_cpp='$CXXCPP $CPPFLAGS'
9593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9600
archive_cmds_need_lc_CXX=no
9601
allow_undefined_flag_CXX=
9602
always_export_symbols_CXX=no
9603
archive_expsym_cmds_CXX=
9604
export_dynamic_flag_spec_CXX=
9605
hardcode_direct_CXX=no
9606
hardcode_libdir_flag_spec_CXX=
9607
hardcode_libdir_flag_spec_ld_CXX=
9608
hardcode_libdir_separator_CXX=
9609
hardcode_minus_L_CXX=no
9610
hardcode_automatic_CXX=no
9612
module_expsym_cmds_CXX=
9613
link_all_deplibs_CXX=unknown
9614
old_archive_cmds_CXX=$old_archive_cmds
9615
no_undefined_flag_CXX=
9616
whole_archive_flag_spec_CXX=
9617
enable_shared_with_static_runtimes_CXX=no
9619
# Dependencies to place before and after the object being linked:
9621
postdep_objects_CXX=
9624
compiler_lib_search_path_CXX=
9626
# Source file extension for C++ test sources.
9629
# Object file extension for compiled C++ test sources.
9633
# Code to be used in simple compile tests
9634
lt_simple_compile_test_code="int some_variable = 0;\n"
9636
# Code to be used in simple link tests
9637
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9639
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9641
# If no C compiler was specified, use CC.
9644
# Allow CC to be a program name with arguments.
9648
# Allow CC to be a program name with arguments.
9653
lt_save_with_gnu_ld=$with_gnu_ld
9654
lt_save_path_LD=$lt_cv_path_LD
9655
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9656
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9658
unset lt_cv_prog_gnu_ld
9660
if test -n "${lt_cv_path_LDCXX+set}"; then
9661
lt_cv_path_LD=$lt_cv_path_LDCXX
9665
test -z "${LDCXX+set}" || LD=$LDCXX
9669
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9671
# We don't want -fno-exception wen compiling C++ code, so set the
9672
# no_builtin_flag separately
9673
if test "$GXX" = yes; then
9674
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9676
lt_prog_compiler_no_builtin_flag_CXX=
9679
if test "$GXX" = yes; then
9680
# Set up default GNU C++ configuration
9683
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9684
if test "${with_gnu_ld+set}" = set; then
9685
withval="$with_gnu_ld"
9686
test "$withval" = no || with_gnu_ld=yes
9691
if test "$GCC" = yes; then
9692
# Check if gcc -print-prog-name=ld gives a path.
9693
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9694
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9697
# gcc leaves a trailing carriage return which upsets mingw
9698
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9700
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9703
# Accept absolute paths.
9705
re_direlt='/[^/][^/]*/\.\./'
9706
# Canonicalize the pathname of ld
9707
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9708
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9709
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9711
test -z "$LD" && LD="$ac_prog"
9714
# If it fails, then pretend we aren't using GCC.
9718
# If it is relative, then search for the first ld in PATH.
9722
elif test "$with_gnu_ld" = yes; then
9723
echo "$as_me:$LINENO: checking for GNU ld" >&5
9724
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9726
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9727
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9729
if test "${lt_cv_path_LD+set}" = set; then
9730
echo $ECHO_N "(cached) $ECHO_C" >&6
9732
if test -z "$LD"; then
9733
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9734
for ac_dir in $PATH; do
9736
test -z "$ac_dir" && ac_dir=.
9737
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9738
lt_cv_path_LD="$ac_dir/$ac_prog"
9739
# Check to see if the program is GNU ld. I'd rather use --version,
9740
# but apparently some GNU ld's only accept -v.
9741
# Break only if it was the GNU/non-GNU ld that we prefer.
9742
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9743
*GNU* | *'with BFD'*)
9744
test "$with_gnu_ld" != no && break
9747
test "$with_gnu_ld" != yes && break
9754
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9759
if test -n "$LD"; then
9760
echo "$as_me:$LINENO: result: $LD" >&5
9761
echo "${ECHO_T}$LD" >&6
9763
echo "$as_me:$LINENO: result: no" >&5
9764
echo "${ECHO_T}no" >&6
9766
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9767
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9768
{ (exit 1); exit 1; }; }
9769
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9770
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9771
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9772
echo $ECHO_N "(cached) $ECHO_C" >&6
9774
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9775
case `$LD -v 2>&1 </dev/null` in
9776
*GNU* | *'with BFD'*)
9777
lt_cv_prog_gnu_ld=yes
9780
lt_cv_prog_gnu_ld=no
9784
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9785
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9786
with_gnu_ld=$lt_cv_prog_gnu_ld
9790
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9791
# archiving commands below assume that GNU ld is being used.
9792
if test "$with_gnu_ld" = yes; then
9793
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794
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'
9796
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9797
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9799
# If archive_cmds runs LD, not CC, wlarc should be empty
9800
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9801
# investigate it a little bit more. (MM)
9804
# ancient GNU ld didn't support --whole-archive et. al.
9805
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9806
grep 'no-whole-archive' > /dev/null; then
9807
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9809
whole_archive_flag_spec_CXX=
9815
# A generic and very simple default shared library creation
9816
# command for GNU C++ for the case where it uses the native
9817
# linker, instead of GNU ld. If possible, this setting should
9818
# overridden to take advantage of the native linker features on
9819
# the platform it is being used on.
9820
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9823
# Commands to make compiler produce verbose output that lists
9824
# what "hidden" libraries, object files and flags are used when
9825
# linking a shared library.
9826
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9834
# PORTME: fill in a description of your system's C++ link characteristics
9835
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9836
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9840
# FIXME: insert proper C++ library support
9844
if test "$host_cpu" = ia64; then
9845
# On IA64, the linker does run time linking by default, so we don't
9846
# have to do anything special.
9847
aix_use_runtimelinking=no
9848
exp_sym_flag='-Bexport'
9851
aix_use_runtimelinking=no
9853
# Test if we are trying to use run time linking or normal
9854
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9855
# need to do runtime linking.
9856
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9857
for ld_flag in $LDFLAGS; do
9860
aix_use_runtimelinking=yes
9867
exp_sym_flag='-bexport'
9868
no_entry_flag='-bnoentry'
9871
# When large executables or shared objects are built, AIX ld can
9872
# have problems creating the table of contents. If linking a library
9873
# or program results in "error TOC overflow" add -mminimal-toc to
9874
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9875
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9878
hardcode_direct_CXX=yes
9879
hardcode_libdir_separator_CXX=':'
9880
link_all_deplibs_CXX=yes
9882
if test "$GXX" = yes; then
9883
case $host_os in aix4.012|aix4.012.*)
9884
# We only want to do this on AIX 4.2 and lower, the check
9885
# below for broken collect2 doesn't work under 4.3+
9886
collect2name=`${CC} -print-prog-name=collect2`
9887
if test -f "$collect2name" && \
9888
strings "$collect2name" | grep resolve_lib_name >/dev/null
9890
# We have reworked collect2
9891
hardcode_direct_CXX=yes
9893
# We have old collect2
9894
hardcode_direct_CXX=unsupported
9895
# It fails to find uninstalled libraries when the uninstalled
9896
# path is not listed in the libpath. Setting hardcode_minus_L
9897
# to unsupported forces relinking
9898
hardcode_minus_L_CXX=yes
9899
hardcode_libdir_flag_spec_CXX='-L$libdir'
9900
hardcode_libdir_separator_CXX=
9903
shared_flag='-shared'
9906
if test "$host_cpu" = ia64; then
9907
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9908
# chokes on -Wl,-G. The following line is correct:
9911
if test "$aix_use_runtimelinking" = yes; then
9912
shared_flag='${wl}-G'
9914
shared_flag='${wl}-bM:SRE'
9919
# It seems that -bexpall does not export symbols beginning with
9920
# underscore (_), so it is better to generate a list of symbols to export.
9921
always_export_symbols_CXX=yes
9922
if test "$aix_use_runtimelinking" = yes; then
9923
# Warning - without using the other runtime loading flags (-brtl),
9924
# -berok will link without error, but may produce a broken library.
9925
allow_undefined_flag_CXX='-berok'
9926
# Determine the default libpath from the value encoded in an empty executable.
9927
cat >conftest.$ac_ext <<_ACEOF
9930
cat confdefs.h >>conftest.$ac_ext
9931
cat >>conftest.$ac_ext <<_ACEOF
9932
/* end confdefs.h. */
9942
rm -f conftest.$ac_objext conftest$ac_exeext
9943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944
(eval $ac_link) 2>conftest.er1
9946
grep -v '^ *+' conftest.er1 >conftest.err
9948
cat conftest.err >&5
9949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950
(exit $ac_status); } &&
9951
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956
(exit $ac_status); }; } &&
9957
{ ac_try='test -s conftest$ac_exeext'
9958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962
(exit $ac_status); }; }; then
9964
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9966
# Check for a 64-bit object if we didn't find anything.
9967
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; }
9970
echo "$as_me: failed program was:" >&5
9971
sed 's/^/| /' conftest.$ac_ext >&5
9974
rm -f conftest.err conftest.$ac_objext \
9975
conftest$ac_exeext conftest.$ac_ext
9976
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9978
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9980
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"
9982
if test "$host_cpu" = ia64; then
9983
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9984
allow_undefined_flag_CXX="-z nodefs"
9985
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"
9987
# Determine the default libpath from the value encoded in an empty executable.
9988
cat >conftest.$ac_ext <<_ACEOF
9991
cat confdefs.h >>conftest.$ac_ext
9992
cat >>conftest.$ac_ext <<_ACEOF
9993
/* end confdefs.h. */
10003
rm -f conftest.$ac_objext conftest$ac_exeext
10004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005
(eval $ac_link) 2>conftest.er1
10007
grep -v '^ *+' conftest.er1 >conftest.err
10009
cat conftest.err >&5
10010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011
(exit $ac_status); } &&
10012
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014
(eval $ac_try) 2>&5
10016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017
(exit $ac_status); }; } &&
10018
{ ac_try='test -s conftest$ac_exeext'
10019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020
(eval $ac_try) 2>&5
10022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023
(exit $ac_status); }; }; then
10025
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10027
# Check for a 64-bit object if we didn't find anything.
10028
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; }
10031
echo "$as_me: failed program was:" >&5
10032
sed 's/^/| /' conftest.$ac_ext >&5
10035
rm -f conftest.err conftest.$ac_objext \
10036
conftest$ac_exeext conftest.$ac_ext
10037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10039
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10040
# Warning - without using the other run time loading flags,
10041
# -berok will link without error, but may produce a broken library.
10042
no_undefined_flag_CXX=' ${wl}-bernotok'
10043
allow_undefined_flag_CXX=' ${wl}-berok'
10044
# -bexpall does not export symbols beginning with underscore (_)
10045
always_export_symbols_CXX=yes
10046
# Exported symbols can be pulled into shared objects from archives
10047
whole_archive_flag_spec_CXX=' '
10048
archive_cmds_need_lc_CXX=yes
10049
# This is similar to how AIX traditionally builds it's shared libraries.
10050
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'
10055
case $cc_basename in
10057
# FIXME: insert proper C++ library support
10063
cygwin* | mingw* | pw32*)
10064
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10065
# as there is no search path for DLLs.
10066
hardcode_libdir_flag_spec_CXX='-L$libdir'
10067
allow_undefined_flag_CXX=unsupported
10068
always_export_symbols_CXX=no
10069
enable_shared_with_static_runtimes_CXX=yes
10071
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10072
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'
10073
# If the export-symbols file already is a .def file (1st line
10074
# is EXPORTS), use it as is; otherwise, prepend...
10075
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10076
cp $export_symbols $output_objdir/$soname.def;
10078
echo EXPORTS > $output_objdir/$soname.def;
10079
cat $export_symbols >> $output_objdir/$soname.def;
10081
$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'
10087
darwin* | rhapsody*)
10088
if test "$GXX" = yes; then
10089
archive_cmds_need_lc_CXX=no
10091
rhapsody* | darwin1.[012])
10092
allow_undefined_flag_CXX='-undefined suppress'
10095
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10096
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10098
case ${MACOSX_DEPLOYMENT_TARGET} in
10100
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10103
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10109
lt_int_apple_cc_single_mod=no
10110
output_verbose_link_cmd='echo'
10111
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10112
lt_int_apple_cc_single_mod=yes
10114
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10115
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10117
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'
10119
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10121
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10122
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10123
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}'
10125
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}'
10127
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}'
10128
hardcode_direct_CXX=no
10129
hardcode_automatic_CXX=yes
10130
hardcode_shlibpath_var_CXX=unsupported
10131
whole_archive_flag_spec_CXX='-all_load $convenience'
10132
link_all_deplibs_CXX=yes
10139
case $cc_basename in
10141
# FIXME: insert proper C++ library support
10145
# Green Hills C++ Compiler
10146
# FIXME: insert proper C++ library support
10150
# FIXME: insert proper C++ library support
10156
# C++ shared libraries reported to be fairly broken before switch to ELF
10160
archive_cmds_need_lc_CXX=no
10162
freebsd* | kfreebsd*-gnu)
10163
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10170
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10171
hardcode_libdir_separator_CXX=:
10172
export_dynamic_flag_spec_CXX='${wl}-E'
10173
hardcode_direct_CXX=yes
10174
hardcode_minus_L_CXX=yes # Not in the search PATH,
10175
# but as the default
10176
# location of the library.
10178
case $cc_basename in
10180
# FIXME: insert proper C++ library support
10184
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'
10185
# Commands to make compiler produce verbose output that lists
10186
# what "hidden" libraries, object files and flags are used when
10187
# linking a shared library.
10189
# There doesn't appear to be a way to prevent this compiler from
10190
# explicitly linking system object files so we need to strip them
10191
# from the output so that they don't get included in the library
10193
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'
10196
if test "$GXX" = yes; then
10197
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'
10199
# FIXME: insert proper C++ library support
10206
if test $with_gnu_ld = no; then
10207
case "$host_cpu" in
10209
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10210
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10211
hardcode_libdir_separator_CXX=:
10214
hardcode_libdir_flag_spec_CXX='-L$libdir'
10217
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10218
hardcode_libdir_separator_CXX=:
10219
export_dynamic_flag_spec_CXX='${wl}-E'
10223
case "$host_cpu" in
10225
hardcode_direct_CXX=no
10226
hardcode_shlibpath_var_CXX=no
10229
hardcode_direct_CXX=no
10230
hardcode_shlibpath_var_CXX=no
10231
hardcode_minus_L_CXX=yes # Not in the search PATH,
10232
# but as the default
10233
# location of the library.
10236
hardcode_direct_CXX=yes
10237
hardcode_minus_L_CXX=yes # Not in the search PATH,
10238
# but as the default
10239
# location of the library.
10243
case $cc_basename in
10245
# FIXME: insert proper C++ library support
10249
case "$host_cpu" in
10251
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10254
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10257
# Commands to make compiler produce verbose output that lists
10258
# what "hidden" libraries, object files and flags are used when
10259
# linking a shared library.
10261
# There doesn't appear to be a way to prevent this compiler from
10262
# explicitly linking system object files so we need to strip them
10263
# from the output so that they don't get included in the library
10265
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'
10268
if test "$GXX" = yes; then
10269
if test $with_gnu_ld = no; then
10270
case "$host_cpu" in
10272
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10275
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'
10280
# FIXME: insert proper C++ library support
10287
case $cc_basename in
10290
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'
10292
# Archives containing C++ object files must be created using
10293
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10294
# necessary to make sure instantiated templates are included
10296
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10299
if test "$GXX" = yes; then
10300
if test "$with_gnu_ld" = no; then
10301
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'
10303
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'
10306
link_all_deplibs_CXX=yes
10309
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10310
hardcode_libdir_separator_CXX=:
10313
case $cc_basename in
10315
# Kuck and Associates, Inc. (KAI) C++ Compiler
10317
# KCC will only create a shared library if the output file
10318
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10319
# to its proper name (with version) after linking.
10320
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'
10321
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'
10322
# Commands to make compiler produce verbose output that lists
10323
# what "hidden" libraries, object files and flags are used when
10324
# linking a shared library.
10326
# There doesn't appear to be a way to prevent this compiler from
10327
# explicitly linking system object files so we need to strip them
10328
# from the output so that they don't get included in the library
10330
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'
10332
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10333
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10335
# Archives containing C++ object files must be created using
10336
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10337
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10342
archive_cmds_need_lc_CXX=no
10343
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344
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'
10345
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10346
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10347
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10351
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352
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'
10354
runpath_var=LD_RUN_PATH
10355
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10356
hardcode_libdir_separator_CXX=:
10358
# Commands to make compiler produce verbose output that lists
10359
# what "hidden" libraries, object files and flags are used when
10360
# linking a shared library.
10362
# There doesn't appear to be a way to prevent this compiler from
10363
# explicitly linking system object files so we need to strip them
10364
# from the output so that they don't get included in the library
10366
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'
10371
# FIXME: insert proper C++ library support
10375
# FIXME: insert proper C++ library support
10379
case $cc_basename in
10381
# FIXME: insert proper C++ library support
10385
# FIXME: insert proper C++ library support
10390
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10391
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10392
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10394
hardcode_libdir_flag_spec_CXX='-R$libdir'
10395
hardcode_direct_CXX=yes
10396
hardcode_shlibpath_var_CXX=no
10398
# Workaround some broken pre-1.5 toolchains
10399
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10402
case $cc_basename in
10404
# Kuck and Associates, Inc. (KAI) C++ Compiler
10406
# KCC will only create a shared library if the output file
10407
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10408
# to its proper name (with version) after linking.
10409
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'
10411
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10412
hardcode_libdir_separator_CXX=:
10414
# Archives containing C++ object files must be created using
10415
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10416
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10420
# Rational C++ 2.4.1
10421
# FIXME: insert proper C++ library support
10425
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10426
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'
10428
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10429
hardcode_libdir_separator_CXX=:
10431
# Commands to make compiler produce verbose output that lists
10432
# what "hidden" libraries, object files and flags are used when
10433
# linking a shared library.
10435
# There doesn't appear to be a way to prevent this compiler from
10436
# explicitly linking system object files so we need to strip them
10437
# from the output so that they don't get included in the library
10439
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'
10442
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10444
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'
10446
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10447
hardcode_libdir_separator_CXX=:
10449
# Commands to make compiler produce verbose output that lists
10450
# what "hidden" libraries, object files and flags are used when
10451
# linking a shared library.
10452
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10455
# FIXME: insert proper C++ library support
10462
case $cc_basename in
10464
# Kuck and Associates, Inc. (KAI) C++ Compiler
10466
# KCC will only create a shared library if the output file
10467
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10468
# to its proper name (with version) after linking.
10469
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'
10471
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10472
hardcode_libdir_separator_CXX=:
10474
# Archives containing C++ object files must be created using
10475
# the KAI C++ compiler.
10476
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10479
# Rational C++ 2.4.1
10480
# FIXME: insert proper C++ library support
10484
allow_undefined_flag_CXX=' -expect_unresolved \*'
10485
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'
10486
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10487
echo "-hidden">> $lib.exp~
10488
$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~
10491
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10492
hardcode_libdir_separator_CXX=:
10494
# Commands to make compiler produce verbose output that lists
10495
# what "hidden" libraries, object files and flags are used when
10496
# linking a shared library.
10498
# There doesn't appear to be a way to prevent this compiler from
10499
# explicitly linking system object files so we need to strip them
10500
# from the output so that they don't get included in the library
10502
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'
10505
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10506
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10507
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'
10509
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10510
hardcode_libdir_separator_CXX=:
10512
# Commands to make compiler produce verbose output that lists
10513
# what "hidden" libraries, object files and flags are used when
10514
# linking a shared library.
10515
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10518
# FIXME: insert proper C++ library support
10525
# FIXME: insert proper C++ library support
10529
archive_cmds_need_lc_CXX=no
10530
case $cc_basename in
10532
# FIXME: insert proper C++ library support
10536
# FIXME: insert proper C++ library support
10542
case $cc_basename in
10545
# FIXME: insert proper C++ library support
10550
# FIXME: insert proper C++ library support
10554
# FIXME: insert proper C++ library support
10560
case $cc_basename in
10562
# Sun C++ 4.2, 5.x and Centerline C++
10563
no_undefined_flag_CXX=' -zdefs'
10564
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10565
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10566
$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'
10568
hardcode_libdir_flag_spec_CXX='-R$libdir'
10569
hardcode_shlibpath_var_CXX=no
10571
solaris2.0-5 | solaris2.0-5.*) ;;
10573
# The C++ compiler is used as linker so we must use $wl
10574
# flag to pass the commands to the underlying system
10576
# Supported since Solaris 2.6 (maybe 2.5.1?)
10577
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10580
link_all_deplibs_CXX=yes
10582
# Commands to make compiler produce verbose output that lists
10583
# what "hidden" libraries, object files and flags are used when
10584
# linking a shared library.
10586
# There doesn't appear to be a way to prevent this compiler from
10587
# explicitly linking system object files so we need to strip them
10588
# from the output so that they don't get included in the library
10590
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'
10592
# Archives containing C++ object files must be created using
10593
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10594
# necessary to make sure instantiated templates are included
10596
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10599
# Green Hills C++ Compiler
10600
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10602
# The C++ compiler must be used to create the archive.
10603
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10606
# GNU C++ compiler with Solaris linker
10607
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10608
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10609
if $CC --version | grep -v '^2\.7' > /dev/null; then
10610
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10611
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10612
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10614
# Commands to make compiler produce verbose output that lists
10615
# what "hidden" libraries, object files and flags are used when
10616
# linking a shared library.
10617
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10619
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10621
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10622
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10623
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10625
# Commands to make compiler produce verbose output that lists
10626
# what "hidden" libraries, object files and flags are used when
10627
# linking a shared library.
10628
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10631
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10636
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10637
archive_cmds_need_lc_CXX=no
10640
case $cc_basename in
10642
# NonStop-UX NCC 3.20
10643
# FIXME: insert proper C++ library support
10647
# FIXME: insert proper C++ library support
10653
# FIXME: insert proper C++ library support
10657
# FIXME: insert proper C++ library support
10661
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10662
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10663
test "$ld_shlibs_CXX" = no && can_build_shared=no
10669
cat > conftest.$ac_ext <<EOF
10673
Foo (void) { a = 0; }
10679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680
(eval $ac_compile) 2>&5
10682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683
(exit $ac_status); }; then
10684
# Parse the compiler output and extract the necessary
10685
# objects, libraries and library flags.
10687
# Sentinel used to keep track of whether or not we are before
10688
# the conftest object file.
10689
pre_test_object_deps_done=no
10691
# The `*' in the case matches for architectures that use `case' in
10692
# $output_verbose_cmd can trigger glob expansion during the loop
10693
# eval without this substitution.
10694
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10696
for p in `eval $output_verbose_link_cmd`; do
10700
# Some compilers place space between "-{L,R}" and the path.
10701
# Remove the space.
10702
if test $p = "-L" \
10703
|| test $p = "-R"; then
10710
if test "$pre_test_object_deps_done" = no; then
10713
# Internal compiler library paths should come after those
10714
# provided the user. The postdeps already come after the
10715
# user supplied libs so there is no need to process them.
10716
if test -z "$compiler_lib_search_path_CXX"; then
10717
compiler_lib_search_path_CXX="${prev}${p}"
10719
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10722
# The "-l" case would never come before the object being
10723
# linked, so don't bother handling this case.
10726
if test -z "$postdeps_CXX"; then
10727
postdeps_CXX="${prev}${p}"
10729
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10735
# This assumes that the test object file only shows up
10736
# once in the compiler output.
10737
if test "$p" = "conftest.$objext"; then
10738
pre_test_object_deps_done=yes
10742
if test "$pre_test_object_deps_done" = no; then
10743
if test -z "$predep_objects_CXX"; then
10744
predep_objects_CXX="$p"
10746
predep_objects_CXX="$predep_objects_CXX $p"
10749
if test -z "$postdep_objects_CXX"; then
10750
postdep_objects_CXX="$p"
10752
postdep_objects_CXX="$postdep_objects_CXX $p"
10757
*) ;; # Ignore the rest.
10765
echo "libtool.m4: error: problem compiling CXX test program"
10768
$rm -f confest.$objext
10770
case " $postdeps_CXX " in
10771
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10774
lt_prog_compiler_wl_CXX=
10775
lt_prog_compiler_pic_CXX=
10776
lt_prog_compiler_static_CXX=
10778
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10779
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10781
# C++ specific cases for pic, static, wl, etc.
10782
if test "$GXX" = yes; then
10783
lt_prog_compiler_wl_CXX='-Wl,'
10784
lt_prog_compiler_static_CXX='-static'
10788
# All AIX code is PIC.
10789
if test "$host_cpu" = ia64; then
10790
# AIX 5 now supports IA64 processor
10791
lt_prog_compiler_static_CXX='-Bstatic'
10795
# FIXME: we need at least 68020 code to build shared libraries, but
10796
# adding the `-m68020' flag to GCC prevents building anything better,
10798
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10800
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10801
# PIC is the default for these OSes.
10803
mingw* | os2* | pw32*)
10804
# This hack is so that the source file can tell whether it is being
10805
# built for inclusion in a dll (and should export symbols for example).
10806
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10808
darwin* | rhapsody*)
10809
# PIC is the default on this platform
10810
# Common symbols not allowed in MH_DYLIB files
10811
lt_prog_compiler_pic_CXX='-fno-common'
10814
# DJGPP does not support shared libraries at all
10815
lt_prog_compiler_pic_CXX=
10818
if test -d /usr/nec; then
10819
lt_prog_compiler_pic_CXX=-Kconform_pic
10823
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10824
# not for PA HP-UX.
10825
case "$host_cpu" in
10829
lt_prog_compiler_pic_CXX='-fPIC'
10834
lt_prog_compiler_pic_CXX='-fPIC'
10840
# All AIX code is PIC.
10841
if test "$host_cpu" = ia64; then
10842
# AIX 5 now supports IA64 processor
10843
lt_prog_compiler_static_CXX='-Bstatic'
10845
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10849
case $cc_basename in
10851
# Green Hills C++ Compiler
10852
# _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"
10857
case $cc_basename in
10859
lt_prog_compiler_pic_CXX='-KPIC'
10862
# Green Hills C++ Compiler
10863
lt_prog_compiler_pic_CXX='-pic'
10869
freebsd* | kfreebsd*-gnu)
10870
# FreeBSD uses GNU C++
10872
hpux9* | hpux10* | hpux11*)
10873
case $cc_basename in
10875
lt_prog_compiler_wl_CXX='-Wl,'
10876
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10877
if test "$host_cpu" != ia64; then
10878
lt_prog_compiler_pic_CXX='+Z'
10882
lt_prog_compiler_wl_CXX='-Wl,'
10883
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10884
case "$host_cpu" in
10889
lt_prog_compiler_pic_CXX='+Z'
10897
irix5* | irix6* | nonstopux*)
10898
case $cc_basename in
10900
lt_prog_compiler_wl_CXX='-Wl,'
10901
lt_prog_compiler_static_CXX='-non_shared'
10902
# CC pic flag -KPIC is the default.
10909
case $cc_basename in
10912
lt_prog_compiler_wl_CXX='--backend -Wl,'
10913
lt_prog_compiler_pic_CXX='-fPIC'
10917
lt_prog_compiler_wl_CXX='-Wl,'
10918
lt_prog_compiler_pic_CXX='-KPIC'
10919
lt_prog_compiler_static_CXX='-static'
10923
# Make sure the PIC flag is empty. It appears that all Alpha
10924
# Linux and Compaq Tru64 Unix objects are PIC.
10925
lt_prog_compiler_pic_CXX=
10926
lt_prog_compiler_static_CXX='-non_shared'
10937
case $cc_basename in
10939
lt_prog_compiler_pic_CXX='-W c,exportall'
10945
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10947
osf3* | osf4* | osf5*)
10948
case $cc_basename in
10950
lt_prog_compiler_wl_CXX='--backend -Wl,'
10953
# Rational C++ 2.4.1
10954
lt_prog_compiler_pic_CXX='-pic'
10957
# Digital/Compaq C++
10958
lt_prog_compiler_wl_CXX='-Wl,'
10959
# Make sure the PIC flag is empty. It appears that all Alpha
10960
# Linux and Compaq Tru64 Unix objects are PIC.
10961
lt_prog_compiler_pic_CXX=
10962
lt_prog_compiler_static_CXX='-non_shared'
10971
case $cc_basename in
10973
lt_prog_compiler_pic_CXX='-fPIC'
10980
case $cc_basename in
10982
# Sun C++ 4.2, 5.x and Centerline C++
10983
lt_prog_compiler_pic_CXX='-KPIC'
10984
lt_prog_compiler_static_CXX='-Bstatic'
10985
lt_prog_compiler_wl_CXX='-Qoption ld '
10988
# Green Hills C++ Compiler
10989
lt_prog_compiler_pic_CXX='-PIC'
10996
case $cc_basename in
10999
lt_prog_compiler_pic_CXX='-pic'
11000
lt_prog_compiler_static_CXX='-Bstatic'
11004
lt_prog_compiler_pic_CXX='-pic'
11011
case $cc_basename in
11013
# NonStop-UX NCC 3.20
11014
lt_prog_compiler_pic_CXX='-KPIC'
11025
lt_prog_compiler_can_build_shared_CXX=no
11030
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11031
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11034
# Check to make sure the PIC flag actually works.
11036
if test -n "$lt_prog_compiler_pic_CXX"; then
11038
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11039
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11040
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11041
echo $ECHO_N "(cached) $ECHO_C" >&6
11043
lt_prog_compiler_pic_works_CXX=no
11044
ac_outfile=conftest.$ac_objext
11045
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11046
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11047
# Insert the option either (1) after the last *FLAGS variable, or
11048
# (2) before a word containing "conftest.", or (3) at the end.
11049
# Note that $ac_compile itself does not contain backslashes and begins
11050
# with a dollar sign (not a hyphen), so the echo should work correctly.
11051
# The option is referenced via a variable to avoid confusing sed.
11052
lt_compile=`echo "$ac_compile" | $SED \
11053
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11054
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11055
-e 's:$: $lt_compiler_flag:'`
11056
(eval echo "\"\$as_me:11056: $lt_compile\"" >&5)
11057
(eval "$lt_compile" 2>conftest.err)
11059
cat conftest.err >&5
11060
echo "$as_me:11060: \$? = $ac_status" >&5
11061
if (exit $ac_status) && test -s "$ac_outfile"; then
11062
# The compiler can only warn and ignore the option if not recognized
11063
# So say no if there are warnings
11064
if test ! -s conftest.err; then
11065
lt_prog_compiler_pic_works_CXX=yes
11071
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11072
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11074
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11075
case $lt_prog_compiler_pic_CXX in
11077
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11080
lt_prog_compiler_pic_CXX=
11081
lt_prog_compiler_can_build_shared_CXX=no
11086
# For platforms which do not support PIC, -DPIC is meaningless:
11088
lt_prog_compiler_pic_CXX=
11091
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11095
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11096
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11097
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11098
echo $ECHO_N "(cached) $ECHO_C" >&6
11100
lt_cv_prog_compiler_c_o_CXX=no
11101
$rm -r conftest 2>/dev/null
11105
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11107
lt_compiler_flag="-o out/conftest2.$ac_objext"
11108
# Insert the option either (1) after the last *FLAGS variable, or
11109
# (2) before a word containing "conftest.", or (3) at the end.
11110
# Note that $ac_compile itself does not contain backslashes and begins
11111
# with a dollar sign (not a hyphen), so the echo should work correctly.
11112
lt_compile=`echo "$ac_compile" | $SED \
11113
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11114
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11115
-e 's:$: $lt_compiler_flag:'`
11116
(eval echo "\"\$as_me:11116: $lt_compile\"" >&5)
11117
(eval "$lt_compile" 2>out/conftest.err)
11119
cat out/conftest.err >&5
11120
echo "$as_me:11120: \$? = $ac_status" >&5
11121
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11123
# The compiler can only warn and ignore the option if not recognized
11124
# So say no if there are warnings
11125
if test ! -s out/conftest.err; then
11126
lt_cv_prog_compiler_c_o_CXX=yes
11131
# SGI C++ compiler will create directory out/ii_files/ for
11132
# template instantiation
11133
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11134
$rm out/* && rmdir out
11140
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11141
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11144
hard_links="nottested"
11145
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11146
# do not overwrite the value of need_locks provided by the user
11147
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11148
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11151
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11153
ln conftest.a conftest.b 2>&5 || hard_links=no
11154
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11155
echo "$as_me:$LINENO: result: $hard_links" >&5
11156
echo "${ECHO_T}$hard_links" >&6
11157
if test "$hard_links" = no; then
11158
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11159
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11166
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11167
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11169
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11172
# If we're using GNU nm, then we don't want the "-C" option.
11173
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11174
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11175
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'
11177
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'
11181
export_symbols_cmds_CXX="$ltdll_cmds"
11184
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11187
link_all_deplibs_CXX=no
11190
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11194
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11195
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11196
test "$ld_shlibs_CXX" = no && can_build_shared=no
11198
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11199
if test "$GCC" = yes; then
11200
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11204
# Do we need to explicitly link libc?
11206
case "x$archive_cmds_need_lc_CXX" in
11208
# Assume -lc should be added
11209
archive_cmds_need_lc_CXX=yes
11211
if test "$enable_shared" = yes && test "$GCC" = yes; then
11212
case $archive_cmds_CXX in
11214
# FIXME: we may have to deal with multi-command sequences.
11217
# Test whether the compiler implicitly links with -lc since on some
11218
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11219
# to ld, don't add -lc before -lgcc.
11220
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11221
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11223
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11225
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226
(eval $ac_compile) 2>&5
11228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229
(exit $ac_status); } 2>conftest.err; then
11232
libobjs=conftest.$ac_objext
11234
wl=$lt_prog_compiler_wl_CXX
11240
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11241
allow_undefined_flag_CXX=
11242
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11243
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246
(exit $ac_status); }
11248
archive_cmds_need_lc_CXX=no
11250
archive_cmds_need_lc_CXX=yes
11252
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11254
cat conftest.err 1>&5
11257
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11258
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11265
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11266
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11267
library_names_spec=
11268
libname_spec='lib$name'
11272
postuninstall_cmds=
11276
shlibpath_overrides_runpath=unknown
11278
dynamic_linker="$host_os ld.so"
11279
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11280
if test "$GCC" = yes; then
11281
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11282
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11283
# if the path contains ";" then we assume it to be the separator
11284
# otherwise default to the standard path separator (i.e. ":") - it is
11285
# assumed that no part of a normal pathname contains ";" but that should
11286
# okay in the real world where ";" in dirpaths is itself problematic.
11287
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11289
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11292
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11294
need_lib_prefix=unknown
11295
hardcode_into_libs=no
11297
# when you set need_version to no, make sure it does not cause -set_version
11298
# flags to be left without arguments
11299
need_version=unknown
11304
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11305
shlibpath_var=LIBPATH
11307
# AIX 3 has no versioning support, so we append a major version to the name.
11308
soname_spec='${libname}${release}${shared_ext}$major'
11315
hardcode_into_libs=yes
11316
if test "$host_cpu" = ia64; then
11317
# AIX 5 supports IA64
11318
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11319
shlibpath_var=LD_LIBRARY_PATH
11321
# With GCC up to 2.95.x, collect2 would create an import file
11322
# for dependence libraries. The import file would start with
11323
# the line `#! .'. This would cause the generated library to
11324
# depend on `.', always an invalid library. This was fixed in
11325
# development snapshots of GCC prior to 3.0.
11327
aix4 | aix4.[01] | aix4.[01].*)
11328
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11330
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11333
can_build_shared=no
11337
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11338
# soname into executable. Probably we can add versioning support to
11339
# collect2, so additional links can be useful in future.
11340
if test "$aix_use_runtimelinking" = yes; then
11341
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11342
# instead of lib<name>.a to let people know that these are not
11343
# typical AIX shared libraries.
11344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346
# We preserve .a as extension for shared libraries through AIX4.2
11347
# and later when we are not doing run time linking.
11348
library_names_spec='${libname}${release}.a $libname.a'
11349
soname_spec='${libname}${release}${shared_ext}$major'
11351
shlibpath_var=LIBPATH
11356
library_names_spec='$libname.ixlibrary $libname.a'
11357
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11358
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'
11362
library_names_spec='${libname}${shared_ext}'
11363
dynamic_linker="$host_os ld.so"
11364
shlibpath_var=LIBRARY_PATH
11370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371
soname_spec='${libname}${release}${shared_ext}$major'
11372
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11373
shlibpath_var=LD_LIBRARY_PATH
11374
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11375
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11376
# the default ld.so.conf also contains /usr/contrib/lib and
11377
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11378
# libtool to hard-code these into programs
11381
cygwin* | mingw* | pw32*)
11382
version_type=windows
11387
case $GCC,$host_os in
11388
yes,cygwin* | yes,mingw* | yes,pw32*)
11389
library_names_spec='$libname.dll.a'
11390
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11391
postinstall_cmds='base_file=`basename \${file}`~
11392
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11393
dldir=$destdir/`dirname \$dlpath`~
11394
test -d \$dldir || mkdir -p \$dldir~
11395
$install_prog $dir/$dlname \$dldir/$dlname'
11396
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11397
dlpath=$dir/\$dldll~
11399
shlibpath_overrides_runpath=yes
11403
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11404
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11408
# MinGW DLLs use traditional 'lib' prefix
11409
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11410
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11411
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11412
# It is most probably a Windows format PATH printed by
11413
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11414
# path with ; separators, and with drive letters. We can handle the
11415
# drive letters (cygwin fileutils understands them), so leave them,
11416
# especially as we might pass files found there to a mingw objdump,
11417
# which wouldn't understand a cygwinified path. Ahh.
11418
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11420
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11424
# pw32 DLLs use 'pw' prefix rather than 'lib'
11425
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11431
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11434
dynamic_linker='Win32 ld.exe'
11435
# FIXME: first we should search . and the directory the executable is in
11439
darwin* | rhapsody*)
11440
dynamic_linker="$host_os dyld"
11441
version_type=darwin
11444
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11445
soname_spec='${libname}${release}${major}$shared_ext'
11446
shlibpath_overrides_runpath=yes
11447
shlibpath_var=DYLD_LIBRARY_PATH
11448
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11449
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11450
if test "$GCC" = yes; then
11451
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"`
11453
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11455
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11463
soname_spec='${libname}${release}${shared_ext}$major'
11464
shlibpath_var=LD_LIBRARY_PATH
11475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11476
soname_spec='${libname}${release}${shared_ext}$major'
11477
shlibpath_var=LD_LIBRARY_PATH
11478
shlibpath_overrides_runpath=no
11479
hardcode_into_libs=yes
11480
dynamic_linker='GNU ld.so'
11484
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11485
version_type=freebsd-$objformat
11486
case $version_type in
11488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11493
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11497
shlibpath_var=LD_LIBRARY_PATH
11500
shlibpath_overrides_runpath=yes
11502
freebsd3.01* | freebsdelf3.01*)
11503
shlibpath_overrides_runpath=yes
11504
hardcode_into_libs=yes
11507
shlibpath_overrides_runpath=no
11508
hardcode_into_libs=yes
11517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11518
soname_spec='${libname}${release}${shared_ext}$major'
11519
shlibpath_var=LD_LIBRARY_PATH
11520
hardcode_into_libs=yes
11523
hpux9* | hpux10* | hpux11*)
11524
# Give a soname corresponding to the major version so that dld.sl refuses to
11525
# link against other versions.
11529
case "$host_cpu" in
11532
hardcode_into_libs=yes
11533
dynamic_linker="$host_os dld.so"
11534
shlibpath_var=LD_LIBRARY_PATH
11535
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537
soname_spec='${libname}${release}${shared_ext}$major'
11538
if test "X$HPUX_IA64_MODE" = X32; then
11539
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11541
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11543
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11547
hardcode_into_libs=yes
11548
dynamic_linker="$host_os dld.sl"
11549
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11550
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552
soname_spec='${libname}${release}${shared_ext}$major'
11553
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11554
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558
dynamic_linker="$host_os dld.sl"
11559
shlibpath_var=SHLIB_PATH
11560
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562
soname_spec='${libname}${release}${shared_ext}$major'
11565
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11566
postinstall_cmds='chmod 555 $lib'
11569
irix5* | irix6* | nonstopux*)
11571
nonstopux*) version_type=nonstopux ;;
11573
if test "$lt_cv_prog_gnu_ld" = yes; then
11581
soname_spec='${libname}${release}${shared_ext}$major'
11582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11584
irix5* | nonstopux*)
11585
libsuff= shlibsuff=
11588
case $LD in # libtool.m4 will add one of these switches to LD
11589
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590
libsuff= shlibsuff= libmagic=32-bit;;
11591
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592
libsuff=32 shlibsuff=N32 libmagic=N32;;
11593
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595
*) libsuff= shlibsuff= libmagic=never-match;;
11599
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600
shlibpath_overrides_runpath=no
11601
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11602
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11603
hardcode_into_libs=yes
11606
# No shared lib support for Linux oldld, aout, or coff.
11607
linux*oldld* | linux*aout* | linux*coff*)
11611
# This must be Linux ELF.
11616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617
soname_spec='${libname}${release}${shared_ext}$major'
11618
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11619
shlibpath_var=LD_LIBRARY_PATH
11620
shlibpath_overrides_runpath=no
11621
# This implies no fast_install, which is unacceptable.
11622
# Some rework will be needed to allow for fast_install
11623
# before this can be enabled.
11624
hardcode_into_libs=yes
11626
# Append ld.so.conf contents to the search path
11627
if test -f /etc/ld.so.conf; then
11628
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11629
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11632
# We used to test for /lib/ld.so.1 and disable shared libraries on
11633
# powerpc, because MkLinux only supported shared libraries with the
11634
# GNU dynamic linker. Since this was broken with cross compilers,
11635
# most powerpc-linux boxes support dynamic linking these days and
11636
# people can always --disable-shared, the test was removed, and we
11637
# assume the GNU/Linux dynamic linker is in use.
11638
dynamic_linker='GNU/Linux ld.so'
11645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646
soname_spec='${libname}${release}${shared_ext}$major'
11647
shlibpath_var=LD_LIBRARY_PATH
11648
shlibpath_overrides_runpath=no
11649
hardcode_into_libs=yes
11650
dynamic_linker='NetBSD ld.elf_so'
11657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658
soname_spec='${libname}${release}${shared_ext}$major'
11659
shlibpath_var=LD_LIBRARY_PATH
11660
shlibpath_overrides_runpath=no
11661
hardcode_into_libs=yes
11662
dynamic_linker='GNU ld.so'
11669
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672
dynamic_linker='NetBSD (a.out) ld.so'
11674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11675
soname_spec='${libname}${release}${shared_ext}$major'
11676
dynamic_linker='NetBSD ld.elf_so'
11678
shlibpath_var=LD_LIBRARY_PATH
11679
shlibpath_overrides_runpath=yes
11680
hardcode_into_libs=yes
11685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686
shlibpath_var=LD_LIBRARY_PATH
11687
shlibpath_overrides_runpath=yes
11694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695
soname_spec='${libname}${release}${shared_ext}$major'
11696
shlibpath_var=LD_LIBRARY_PATH
11697
shlibpath_overrides_runpath=yes
11704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706
shlibpath_var=LD_LIBRARY_PATH
11707
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11709
openbsd2.[89] | openbsd2.[89].*)
11710
shlibpath_overrides_runpath=no
11713
shlibpath_overrides_runpath=yes
11717
shlibpath_overrides_runpath=yes
11722
libname_spec='$name'
11725
library_names_spec='$libname${shared_ext} $libname.a'
11726
dynamic_linker='OS/2 ld.exe'
11727
shlibpath_var=LIBPATH
11730
osf3* | osf4* | osf5*)
11734
soname_spec='${libname}${release}${shared_ext}$major'
11735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736
shlibpath_var=LD_LIBRARY_PATH
11737
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11738
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11743
soname_spec='${libname}${release}${shared_ext}$major'
11744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745
shlibpath_var=LD_LIBRARY_PATH
11752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753
soname_spec='${libname}${release}${shared_ext}$major'
11754
shlibpath_var=LD_LIBRARY_PATH
11755
shlibpath_overrides_runpath=yes
11756
hardcode_into_libs=yes
11757
# ldd complains unless libraries are executable
11758
postinstall_cmds='chmod +x $lib'
11763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11765
shlibpath_var=LD_LIBRARY_PATH
11766
shlibpath_overrides_runpath=yes
11767
if test "$with_gnu_ld" = yes; then
11773
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776
soname_spec='${libname}${release}${shared_ext}$major'
11777
shlibpath_var=LD_LIBRARY_PATH
11778
case $host_vendor in
11780
shlibpath_overrides_runpath=no
11782
export_dynamic_flag_spec='${wl}-Blargedynsym'
11783
runpath_var=LD_RUN_PATH
11791
shlibpath_overrides_runpath=no
11792
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11798
if test -d /usr/nec ;then
11800
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11801
soname_spec='$libname${shared_ext}.$major'
11802
shlibpath_var=LD_LIBRARY_PATH
11808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809
soname_spec='${libname}${release}${shared_ext}$major'
11810
shlibpath_var=LD_LIBRARY_PATH
11817
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11818
echo "${ECHO_T}$dynamic_linker" >&6
11819
test "$dynamic_linker" = no && can_build_shared=no
11821
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11822
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11823
hardcode_action_CXX=
11824
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11825
test -n "$runpath_var CXX" || \
11826
test "X$hardcode_automatic_CXX"="Xyes" ; then
11828
# We can hardcode non-existant directories.
11829
if test "$hardcode_direct_CXX" != no &&
11830
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11831
# have to relink, otherwise we might link with an installed library
11832
# when we should be linking with a yet-to-be-installed one
11833
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11834
test "$hardcode_minus_L_CXX" != no; then
11835
# Linking always hardcodes the temporary library directory.
11836
hardcode_action_CXX=relink
11838
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11839
hardcode_action_CXX=immediate
11842
# We cannot hardcode anything, or else we can only hardcode existing
11844
hardcode_action_CXX=unsupported
11846
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11847
echo "${ECHO_T}$hardcode_action_CXX" >&6
11849
if test "$hardcode_action_CXX" = relink; then
11850
# Fast installation is not supported
11851
enable_fast_install=no
11852
elif test "$shlibpath_overrides_runpath" = yes ||
11853
test "$enable_shared" = no; then
11854
# Fast installation is not necessary
11855
enable_fast_install=needless
11860
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11861
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11862
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11863
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11864
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11865
echo "$as_me:$LINENO: result: yes" >&5
11866
echo "${ECHO_T}yes" >&6
11868
# FIXME - insert some real tests, host_os isn't really good enough
11871
if test -n "$STRIP" ; then
11872
striplib="$STRIP -x"
11873
echo "$as_me:$LINENO: result: yes" >&5
11874
echo "${ECHO_T}yes" >&6
11876
echo "$as_me:$LINENO: result: no" >&5
11877
echo "${ECHO_T}no" >&6
11881
echo "$as_me:$LINENO: result: no" >&5
11882
echo "${ECHO_T}no" >&6
11887
if test "x$enable_dlopen" != xyes; then
11888
enable_dlopen=unknown
11889
enable_dlopen_self=unknown
11890
enable_dlopen_self_static=unknown
11897
lt_cv_dlopen="load_add_on"
11899
lt_cv_dlopen_self=yes
11903
lt_cv_dlopen="LoadLibrary"
11908
lt_cv_dlopen="dlopen"
11913
# if libdl is installed we need to link against it
11914
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11915
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11916
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11917
echo $ECHO_N "(cached) $ECHO_C" >&6
11919
ac_check_lib_save_LIBS=$LIBS
11921
cat >conftest.$ac_ext <<_ACEOF
11924
cat confdefs.h >>conftest.$ac_ext
11925
cat >>conftest.$ac_ext <<_ACEOF
11926
/* end confdefs.h. */
11928
/* Override any gcc2 internal prototype to avoid an error. */
11932
/* We use char because int might match the return type of a gcc2
11933
builtin and then its argument prototype would still apply. */
11943
rm -f conftest.$ac_objext conftest$ac_exeext
11944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945
(eval $ac_link) 2>conftest.er1
11947
grep -v '^ *+' conftest.er1 >conftest.err
11949
cat conftest.err >&5
11950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951
(exit $ac_status); } &&
11952
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954
(eval $ac_try) 2>&5
11956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957
(exit $ac_status); }; } &&
11958
{ ac_try='test -s conftest$ac_exeext'
11959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960
(eval $ac_try) 2>&5
11962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963
(exit $ac_status); }; }; then
11964
ac_cv_lib_dl_dlopen=yes
11966
echo "$as_me: failed program was:" >&5
11967
sed 's/^/| /' conftest.$ac_ext >&5
11969
ac_cv_lib_dl_dlopen=no
11971
rm -f conftest.err conftest.$ac_objext \
11972
conftest$ac_exeext conftest.$ac_ext
11973
LIBS=$ac_check_lib_save_LIBS
11975
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11976
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11977
if test $ac_cv_lib_dl_dlopen = yes; then
11978
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11981
lt_cv_dlopen="dyld"
11983
lt_cv_dlopen_self=yes
11990
echo "$as_me:$LINENO: checking for shl_load" >&5
11991
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11992
if test "${ac_cv_func_shl_load+set}" = set; then
11993
echo $ECHO_N "(cached) $ECHO_C" >&6
11995
cat >conftest.$ac_ext <<_ACEOF
11998
cat confdefs.h >>conftest.$ac_ext
11999
cat >>conftest.$ac_ext <<_ACEOF
12000
/* end confdefs.h. */
12001
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12002
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12003
#define shl_load innocuous_shl_load
12005
/* System header to define __stub macros and hopefully few prototypes,
12006
which can conflict with char shl_load (); below.
12007
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12008
<limits.h> exists even on freestanding compilers. */
12011
# include <limits.h>
12013
# include <assert.h>
12018
/* Override any gcc2 internal prototype to avoid an error. */
12023
/* We use char because int might match the return type of a gcc2
12024
builtin and then its argument prototype would still apply. */
12026
/* The GNU C library defines this for functions which it implements
12027
to always fail with ENOSYS. Some functions are actually named
12028
something starting with __ and the normal name is an alias. */
12029
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12032
char (*f) () = shl_load;
12041
return f != shl_load;
12046
rm -f conftest.$ac_objext conftest$ac_exeext
12047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12048
(eval $ac_link) 2>conftest.er1
12050
grep -v '^ *+' conftest.er1 >conftest.err
12052
cat conftest.err >&5
12053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054
(exit $ac_status); } &&
12055
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057
(eval $ac_try) 2>&5
12059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
(exit $ac_status); }; } &&
12061
{ ac_try='test -s conftest$ac_exeext'
12062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063
(eval $ac_try) 2>&5
12065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066
(exit $ac_status); }; }; then
12067
ac_cv_func_shl_load=yes
12069
echo "$as_me: failed program was:" >&5
12070
sed 's/^/| /' conftest.$ac_ext >&5
12072
ac_cv_func_shl_load=no
12074
rm -f conftest.err conftest.$ac_objext \
12075
conftest$ac_exeext conftest.$ac_ext
12077
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12078
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12079
if test $ac_cv_func_shl_load = yes; then
12080
lt_cv_dlopen="shl_load"
12082
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12083
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12084
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12085
echo $ECHO_N "(cached) $ECHO_C" >&6
12087
ac_check_lib_save_LIBS=$LIBS
12089
cat >conftest.$ac_ext <<_ACEOF
12092
cat confdefs.h >>conftest.$ac_ext
12093
cat >>conftest.$ac_ext <<_ACEOF
12094
/* end confdefs.h. */
12096
/* Override any gcc2 internal prototype to avoid an error. */
12100
/* We use char because int might match the return type of a gcc2
12101
builtin and then its argument prototype would still apply. */
12111
rm -f conftest.$ac_objext conftest$ac_exeext
12112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113
(eval $ac_link) 2>conftest.er1
12115
grep -v '^ *+' conftest.er1 >conftest.err
12117
cat conftest.err >&5
12118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119
(exit $ac_status); } &&
12120
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122
(eval $ac_try) 2>&5
12124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125
(exit $ac_status); }; } &&
12126
{ ac_try='test -s conftest$ac_exeext'
12127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128
(eval $ac_try) 2>&5
12130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131
(exit $ac_status); }; }; then
12132
ac_cv_lib_dld_shl_load=yes
12134
echo "$as_me: failed program was:" >&5
12135
sed 's/^/| /' conftest.$ac_ext >&5
12137
ac_cv_lib_dld_shl_load=no
12139
rm -f conftest.err conftest.$ac_objext \
12140
conftest$ac_exeext conftest.$ac_ext
12141
LIBS=$ac_check_lib_save_LIBS
12143
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12144
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12145
if test $ac_cv_lib_dld_shl_load = yes; then
12146
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12148
echo "$as_me:$LINENO: checking for dlopen" >&5
12149
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12150
if test "${ac_cv_func_dlopen+set}" = set; then
12151
echo $ECHO_N "(cached) $ECHO_C" >&6
12153
cat >conftest.$ac_ext <<_ACEOF
12156
cat confdefs.h >>conftest.$ac_ext
12157
cat >>conftest.$ac_ext <<_ACEOF
12158
/* end confdefs.h. */
12159
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12160
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12161
#define dlopen innocuous_dlopen
12163
/* System header to define __stub macros and hopefully few prototypes,
12164
which can conflict with char dlopen (); below.
12165
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12166
<limits.h> exists even on freestanding compilers. */
12169
# include <limits.h>
12171
# include <assert.h>
12176
/* Override any gcc2 internal prototype to avoid an error. */
12181
/* We use char because int might match the return type of a gcc2
12182
builtin and then its argument prototype would still apply. */
12184
/* The GNU C library defines this for functions which it implements
12185
to always fail with ENOSYS. Some functions are actually named
12186
something starting with __ and the normal name is an alias. */
12187
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12190
char (*f) () = dlopen;
12199
return f != dlopen;
12204
rm -f conftest.$ac_objext conftest$ac_exeext
12205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206
(eval $ac_link) 2>conftest.er1
12208
grep -v '^ *+' conftest.er1 >conftest.err
12210
cat conftest.err >&5
12211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212
(exit $ac_status); } &&
12213
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215
(eval $ac_try) 2>&5
12217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218
(exit $ac_status); }; } &&
12219
{ ac_try='test -s conftest$ac_exeext'
12220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221
(eval $ac_try) 2>&5
12223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224
(exit $ac_status); }; }; then
12225
ac_cv_func_dlopen=yes
12227
echo "$as_me: failed program was:" >&5
12228
sed 's/^/| /' conftest.$ac_ext >&5
12230
ac_cv_func_dlopen=no
12232
rm -f conftest.err conftest.$ac_objext \
12233
conftest$ac_exeext conftest.$ac_ext
12235
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12236
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12237
if test $ac_cv_func_dlopen = yes; then
12238
lt_cv_dlopen="dlopen"
12240
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12241
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12242
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12243
echo $ECHO_N "(cached) $ECHO_C" >&6
12245
ac_check_lib_save_LIBS=$LIBS
12247
cat >conftest.$ac_ext <<_ACEOF
12250
cat confdefs.h >>conftest.$ac_ext
12251
cat >>conftest.$ac_ext <<_ACEOF
12252
/* end confdefs.h. */
12254
/* Override any gcc2 internal prototype to avoid an error. */
12258
/* We use char because int might match the return type of a gcc2
12259
builtin and then its argument prototype would still apply. */
12269
rm -f conftest.$ac_objext conftest$ac_exeext
12270
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271
(eval $ac_link) 2>conftest.er1
12273
grep -v '^ *+' conftest.er1 >conftest.err
12275
cat conftest.err >&5
12276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277
(exit $ac_status); } &&
12278
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280
(eval $ac_try) 2>&5
12282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283
(exit $ac_status); }; } &&
12284
{ ac_try='test -s conftest$ac_exeext'
12285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286
(eval $ac_try) 2>&5
12288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289
(exit $ac_status); }; }; then
12290
ac_cv_lib_dl_dlopen=yes
12292
echo "$as_me: failed program was:" >&5
12293
sed 's/^/| /' conftest.$ac_ext >&5
12295
ac_cv_lib_dl_dlopen=no
12297
rm -f conftest.err conftest.$ac_objext \
12298
conftest$ac_exeext conftest.$ac_ext
12299
LIBS=$ac_check_lib_save_LIBS
12301
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12303
if test $ac_cv_lib_dl_dlopen = yes; then
12304
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12306
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12307
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12308
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12309
echo $ECHO_N "(cached) $ECHO_C" >&6
12311
ac_check_lib_save_LIBS=$LIBS
12312
LIBS="-lsvld $LIBS"
12313
cat >conftest.$ac_ext <<_ACEOF
12316
cat confdefs.h >>conftest.$ac_ext
12317
cat >>conftest.$ac_ext <<_ACEOF
12318
/* end confdefs.h. */
12320
/* Override any gcc2 internal prototype to avoid an error. */
12324
/* We use char because int might match the return type of a gcc2
12325
builtin and then its argument prototype would still apply. */
12335
rm -f conftest.$ac_objext conftest$ac_exeext
12336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337
(eval $ac_link) 2>conftest.er1
12339
grep -v '^ *+' conftest.er1 >conftest.err
12341
cat conftest.err >&5
12342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343
(exit $ac_status); } &&
12344
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346
(eval $ac_try) 2>&5
12348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349
(exit $ac_status); }; } &&
12350
{ ac_try='test -s conftest$ac_exeext'
12351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352
(eval $ac_try) 2>&5
12354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355
(exit $ac_status); }; }; then
12356
ac_cv_lib_svld_dlopen=yes
12358
echo "$as_me: failed program was:" >&5
12359
sed 's/^/| /' conftest.$ac_ext >&5
12361
ac_cv_lib_svld_dlopen=no
12363
rm -f conftest.err conftest.$ac_objext \
12364
conftest$ac_exeext conftest.$ac_ext
12365
LIBS=$ac_check_lib_save_LIBS
12367
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12368
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12369
if test $ac_cv_lib_svld_dlopen = yes; then
12370
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12373
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12374
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12375
echo $ECHO_N "(cached) $ECHO_C" >&6
12377
ac_check_lib_save_LIBS=$LIBS
12379
cat >conftest.$ac_ext <<_ACEOF
12382
cat confdefs.h >>conftest.$ac_ext
12383
cat >>conftest.$ac_ext <<_ACEOF
12384
/* end confdefs.h. */
12386
/* Override any gcc2 internal prototype to avoid an error. */
12390
/* We use char because int might match the return type of a gcc2
12391
builtin and then its argument prototype would still apply. */
12401
rm -f conftest.$ac_objext conftest$ac_exeext
12402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403
(eval $ac_link) 2>conftest.er1
12405
grep -v '^ *+' conftest.er1 >conftest.err
12407
cat conftest.err >&5
12408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
(exit $ac_status); } &&
12410
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412
(eval $ac_try) 2>&5
12414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415
(exit $ac_status); }; } &&
12416
{ ac_try='test -s conftest$ac_exeext'
12417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418
(eval $ac_try) 2>&5
12420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421
(exit $ac_status); }; }; then
12422
ac_cv_lib_dld_dld_link=yes
12424
echo "$as_me: failed program was:" >&5
12425
sed 's/^/| /' conftest.$ac_ext >&5
12427
ac_cv_lib_dld_dld_link=no
12429
rm -f conftest.err conftest.$ac_objext \
12430
conftest$ac_exeext conftest.$ac_ext
12431
LIBS=$ac_check_lib_save_LIBS
12433
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12434
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12435
if test $ac_cv_lib_dld_dld_link = yes; then
12436
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12457
if test "x$lt_cv_dlopen" != xno; then
12463
case $lt_cv_dlopen in
12465
save_CPPFLAGS="$CPPFLAGS"
12466
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12468
save_LDFLAGS="$LDFLAGS"
12469
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12472
LIBS="$lt_cv_dlopen_libs $LIBS"
12474
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12475
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12476
if test "${lt_cv_dlopen_self+set}" = set; then
12477
echo $ECHO_N "(cached) $ECHO_C" >&6
12479
if test "$cross_compiling" = yes; then :
12480
lt_cv_dlopen_self=cross
12482
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12483
lt_status=$lt_dlunknown
12484
cat > conftest.$ac_ext <<EOF
12485
#line 12485 "configure"
12486
#include "confdefs.h"
12495
# define LT_DLGLOBAL RTLD_GLOBAL
12498
# define LT_DLGLOBAL DL_GLOBAL
12500
# define LT_DLGLOBAL 0
12504
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12505
find out it does not work in some platform. */
12506
#ifndef LT_DLLAZY_OR_NOW
12508
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12511
# define LT_DLLAZY_OR_NOW DL_LAZY
12514
# define LT_DLLAZY_OR_NOW RTLD_NOW
12517
# define LT_DLLAZY_OR_NOW DL_NOW
12519
# define LT_DLLAZY_OR_NOW 0
12527
extern "C" void exit (int);
12530
void fnord() { int i=42;}
12533
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12534
int status = $lt_dlunknown;
12538
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12539
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12540
/* dlclose (self); */
12546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547
(eval $ac_link) 2>&5
12549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12551
(./conftest; exit; ) 2>/dev/null
12553
case x$lt_status in
12554
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12555
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12556
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12559
# compilation failed
12560
lt_cv_dlopen_self=no
12567
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12568
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12570
if test "x$lt_cv_dlopen_self" = xyes; then
12571
LDFLAGS="$LDFLAGS $link_static_flag"
12572
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12573
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12574
if test "${lt_cv_dlopen_self_static+set}" = set; then
12575
echo $ECHO_N "(cached) $ECHO_C" >&6
12577
if test "$cross_compiling" = yes; then :
12578
lt_cv_dlopen_self_static=cross
12580
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581
lt_status=$lt_dlunknown
12582
cat > conftest.$ac_ext <<EOF
12583
#line 12583 "configure"
12584
#include "confdefs.h"
12593
# define LT_DLGLOBAL RTLD_GLOBAL
12596
# define LT_DLGLOBAL DL_GLOBAL
12598
# define LT_DLGLOBAL 0
12602
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603
find out it does not work in some platform. */
12604
#ifndef LT_DLLAZY_OR_NOW
12606
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12609
# define LT_DLLAZY_OR_NOW DL_LAZY
12612
# define LT_DLLAZY_OR_NOW RTLD_NOW
12615
# define LT_DLLAZY_OR_NOW DL_NOW
12617
# define LT_DLLAZY_OR_NOW 0
12625
extern "C" void exit (int);
12628
void fnord() { int i=42;}
12631
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12632
int status = $lt_dlunknown;
12636
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12637
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12638
/* dlclose (self); */
12644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
(eval $ac_link) 2>&5
12647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12649
(./conftest; exit; ) 2>/dev/null
12651
case x$lt_status in
12652
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12653
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12654
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12657
# compilation failed
12658
lt_cv_dlopen_self_static=no
12665
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12666
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12669
CPPFLAGS="$save_CPPFLAGS"
12670
LDFLAGS="$save_LDFLAGS"
12675
case $lt_cv_dlopen_self in
12676
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12677
*) enable_dlopen_self=unknown ;;
12680
case $lt_cv_dlopen_self_static in
12681
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12682
*) enable_dlopen_self_static=unknown ;;
12687
# The else clause should only fire when bootstrapping the
12688
# libtool distribution, otherwise you forgot to ship ltmain.sh
12689
# with your package, and you will get complaints that there are
12690
# no rules to generate ltmain.sh.
12691
if test -f "$ltmain"; then
12692
# See if we are running on zsh, and set the options which allow our commands through
12693
# without removal of \ escapes.
12694
if test -n "${ZSH_VERSION+set}" ; then
12695
setopt NO_GLOB_SUBST
12697
# Now quote all the things that may contain metacharacters while being
12698
# careful not to overquote the AC_SUBSTed values. We take copies of the
12699
# variables and quote the copies for generation of the libtool script.
12700
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12702
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12703
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12704
deplibs_check_method reload_flag reload_cmds need_locks \
12705
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12706
lt_cv_sys_global_symbol_to_c_name_address \
12707
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12708
old_postinstall_cmds old_postuninstall_cmds \
12712
lt_prog_compiler_wl_CXX \
12713
lt_prog_compiler_pic_CXX \
12714
lt_prog_compiler_static_CXX \
12715
lt_prog_compiler_no_builtin_flag_CXX \
12716
export_dynamic_flag_spec_CXX \
12717
thread_safe_flag_spec_CXX \
12718
whole_archive_flag_spec_CXX \
12719
enable_shared_with_static_runtimes_CXX \
12720
old_archive_cmds_CXX \
12721
old_archive_from_new_cmds_CXX \
12722
predep_objects_CXX \
12723
postdep_objects_CXX \
12726
compiler_lib_search_path_CXX \
12728
archive_expsym_cmds_CXX \
12729
postinstall_cmds_CXX \
12730
postuninstall_cmds_CXX \
12731
old_archive_from_expsyms_cmds_CXX \
12732
allow_undefined_flag_CXX \
12733
no_undefined_flag_CXX \
12734
export_symbols_cmds_CXX \
12735
hardcode_libdir_flag_spec_CXX \
12736
hardcode_libdir_flag_spec_ld_CXX \
12737
hardcode_libdir_separator_CXX \
12738
hardcode_automatic_CXX \
12740
module_expsym_cmds_CXX \
12741
lt_cv_prog_compiler_c_o_CXX \
12742
exclude_expsyms_CXX \
12743
include_expsyms_CXX; do
12746
old_archive_cmds_CXX | \
12747
old_archive_from_new_cmds_CXX | \
12748
archive_cmds_CXX | \
12749
archive_expsym_cmds_CXX | \
12750
module_cmds_CXX | \
12751
module_expsym_cmds_CXX | \
12752
old_archive_from_expsyms_cmds_CXX | \
12753
export_symbols_cmds_CXX | \
12754
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12755
postinstall_cmds | postuninstall_cmds | \
12756
old_postinstall_cmds | old_postuninstall_cmds | \
12757
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12758
# Double-quote double-evaled strings.
12759
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12762
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12768
*'\$0 --fallback-echo"')
12769
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12775
cat <<__EOF__ >> "$cfgfile"
12776
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12778
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12780
# Shell to use when invoking shell scripts.
12783
# Whether or not to build shared libraries.
12784
build_libtool_libs=$enable_shared
12786
# Whether or not to build static libraries.
12787
build_old_libs=$enable_static
12789
# Whether or not to add -lc for building shared libraries.
12790
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12792
# Whether or not to disallow shared libs when runtime libs are static
12793
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12795
# Whether or not to optimize for fast installation.
12796
fast_install=$enable_fast_install
12799
host_alias=$host_alias
12802
# An echo program that does not interpret backslashes.
12807
AR_FLAGS=$lt_AR_FLAGS
12812
# A language-specific compiler.
12813
CC=$lt_compiler_CXX
12815
# Is the compiler the GNU C compiler?
12821
# The linker used to build libraries.
12824
# Whether we need hard or soft links.
12827
# A BSD-compatible nm program.
12830
# A symbol stripping program
12833
# Used to examine libraries when file_magic_cmd begins "file"
12834
MAGIC_CMD=$MAGIC_CMD
12836
# Used on cygwin: DLL creation program.
12839
# Used on cygwin: object dumper.
12842
# Used on cygwin: assembler.
12845
# The name of the directory that contains temporary libtool files.
12848
# How to create reloadable object files.
12849
reload_flag=$lt_reload_flag
12850
reload_cmds=$lt_reload_cmds
12852
# How to pass a linker flag through the compiler.
12853
wl=$lt_lt_prog_compiler_wl_CXX
12855
# Object file suffix (normally "o").
12856
objext="$ac_objext"
12858
# Old archive suffix (normally "a").
12861
# Shared library suffix (normally ".so").
12862
shrext_cmds='$shrext_cmds'
12864
# Executable file suffix (normally "").
12867
# Additional compiler flags for building library objects.
12868
pic_flag=$lt_lt_prog_compiler_pic_CXX
12871
# What is the maximum length of a command?
12872
max_cmd_len=$lt_cv_sys_max_cmd_len
12874
# Does compiler simultaneously support -c and -o options?
12875
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12877
# Must we lock files when doing compilation ?
12878
need_locks=$lt_need_locks
12880
# Do we need the lib prefix for modules?
12881
need_lib_prefix=$need_lib_prefix
12883
# Do we need a version for libraries?
12884
need_version=$need_version
12886
# Whether dlopen is supported.
12887
dlopen_support=$enable_dlopen
12889
# Whether dlopen of programs is supported.
12890
dlopen_self=$enable_dlopen_self
12892
# Whether dlopen of statically linked programs is supported.
12893
dlopen_self_static=$enable_dlopen_self_static
12895
# Compiler flag to prevent dynamic linking.
12896
link_static_flag=$lt_lt_prog_compiler_static_CXX
12898
# Compiler flag to turn off builtin functions.
12899
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12901
# Compiler flag to allow reflexive dlopens.
12902
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12904
# Compiler flag to generate shared objects directly from archives.
12905
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12907
# Compiler flag to generate thread-safe objects.
12908
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12910
# Library versioning type.
12911
version_type=$version_type
12913
# Format of library name prefix.
12914
libname_spec=$lt_libname_spec
12916
# List of archive names. First name is the real one, the rest are links.
12917
# The last name is the one that the linker finds with -lNAME.
12918
library_names_spec=$lt_library_names_spec
12920
# The coded name of the library, if different from the real name.
12921
soname_spec=$lt_soname_spec
12923
# Commands used to build and install an old-style archive.
12925
old_archive_cmds=$lt_old_archive_cmds_CXX
12926
old_postinstall_cmds=$lt_old_postinstall_cmds
12927
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12929
# Create an old-style archive from a shared archive.
12930
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12932
# Create a temporary old-style archive to link instead of a shared archive.
12933
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12935
# Commands used to build and install a shared archive.
12936
archive_cmds=$lt_archive_cmds_CXX
12937
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12938
postinstall_cmds=$lt_postinstall_cmds
12939
postuninstall_cmds=$lt_postuninstall_cmds
12941
# Commands used to build a loadable module (assumed same as above if empty)
12942
module_cmds=$lt_module_cmds_CXX
12943
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12945
# Commands to strip libraries.
12946
old_striplib=$lt_old_striplib
12947
striplib=$lt_striplib
12949
# Dependencies to place before the objects being linked to create a
12951
predep_objects=$lt_predep_objects_CXX
12953
# Dependencies to place after the objects being linked to create a
12955
postdep_objects=$lt_postdep_objects_CXX
12957
# Dependencies to place before the objects being linked to create a
12959
predeps=$lt_predeps_CXX
12961
# Dependencies to place after the objects being linked to create a
12963
postdeps=$lt_postdeps_CXX
12965
# The library search path used internally by the compiler when linking
12966
# a shared library.
12967
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12969
# Method to check whether dependent libraries are shared objects.
12970
deplibs_check_method=$lt_deplibs_check_method
12972
# Command to use when deplibs_check_method == file_magic.
12973
file_magic_cmd=$lt_file_magic_cmd
12975
# Flag that allows shared libraries with undefined symbols to be built.
12976
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12978
# Flag that forces no undefined symbols.
12979
no_undefined_flag=$lt_no_undefined_flag_CXX
12981
# Commands used to finish a libtool library installation in a directory.
12982
finish_cmds=$lt_finish_cmds
12984
# Same as above, but a single script fragment to be evaled but not shown.
12985
finish_eval=$lt_finish_eval
12987
# Take the output of nm and produce a listing of raw symbols and C names.
12988
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12990
# Transform the output of nm in a proper C declaration
12991
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12993
# Transform the output of nm in a C name address pair
12994
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12996
# This is the shared library runtime path variable.
12997
runpath_var=$runpath_var
12999
# This is the shared library path variable.
13000
shlibpath_var=$shlibpath_var
13002
# Is shlibpath searched before the hard-coded library search path?
13003
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13005
# How to hardcode a shared library path into an executable.
13006
hardcode_action=$hardcode_action_CXX
13008
# Whether we should hardcode library paths into libraries.
13009
hardcode_into_libs=$hardcode_into_libs
13011
# Flag to hardcode \$libdir into a binary during linking.
13012
# This must work even if \$libdir does not exist.
13013
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13015
# If ld is used when linking, flag to hardcode \$libdir into
13016
# a binary during linking. This must work even if \$libdir does
13018
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13020
# Whether we need a single -rpath flag with a separated argument.
13021
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13023
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13024
# resulting binary.
13025
hardcode_direct=$hardcode_direct_CXX
13027
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13028
# resulting binary.
13029
hardcode_minus_L=$hardcode_minus_L_CXX
13031
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13032
# the resulting binary.
13033
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13035
# Set to yes if building a shared library automatically hardcodes DIR into the library
13036
# and all subsequent libraries and executables linked against it.
13037
hardcode_automatic=$hardcode_automatic_CXX
13039
# Variables whose values should be saved in libtool wrapper scripts and
13040
# restored at relink time.
13041
variables_saved_for_relink="$variables_saved_for_relink"
13043
# Whether libtool must link a program against all its dependency libraries.
13044
link_all_deplibs=$link_all_deplibs_CXX
13046
# Compile-time system search path for libraries
13047
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13049
# Run-time system search path for libraries
13050
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13052
# Fix the shell variable \$srcfile for the compiler.
13053
fix_srcfile_path="$fix_srcfile_path_CXX"
13055
# Set to yes if exported symbols are required.
13056
always_export_symbols=$always_export_symbols_CXX
13058
# The commands to list exported symbols.
13059
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13061
# The commands to extract the exported symbol list from a shared archive.
13062
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13064
# Symbols that should not be listed in the preloaded symbols.
13065
exclude_expsyms=$lt_exclude_expsyms_CXX
13067
# Symbols that must always be exported.
13068
include_expsyms=$lt_include_expsyms_CXX
13070
# ### END LIBTOOL TAG CONFIG: $tagname
13076
# If there is no Makefile yet, we rely on a make rule to execute
13077
# `config.status --recheck' to rerun these tests and create the
13078
# libtool script then.
13079
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13080
if test -f "$ltmain_in"; then
13081
test -f Makefile && make "$ltmain"
13087
ac_cpp='$CPP $CPPFLAGS'
13088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
with_gnu_ldcxx=$with_gnu_ld
13097
with_gnu_ld=$lt_save_with_gnu_ld
13098
lt_cv_path_LDCXX=$lt_cv_path_LD
13099
lt_cv_path_LD=$lt_save_path_LD
13100
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13101
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13109
if test -n "$F77" && test "X$F77" != "Xno"; then
13112
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13113
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13114
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13117
archive_cmds_need_lc_F77=no
13118
allow_undefined_flag_F77=
13119
always_export_symbols_F77=no
13120
archive_expsym_cmds_F77=
13121
export_dynamic_flag_spec_F77=
13122
hardcode_direct_F77=no
13123
hardcode_libdir_flag_spec_F77=
13124
hardcode_libdir_flag_spec_ld_F77=
13125
hardcode_libdir_separator_F77=
13126
hardcode_minus_L_F77=no
13127
hardcode_automatic_F77=no
13129
module_expsym_cmds_F77=
13130
link_all_deplibs_F77=unknown
13131
old_archive_cmds_F77=$old_archive_cmds
13132
no_undefined_flag_F77=
13133
whole_archive_flag_spec_F77=
13134
enable_shared_with_static_runtimes_F77=no
13136
# Source file extension for f77 test sources.
13139
# Object file extension for compiled f77 test sources.
13143
# Code to be used in simple compile tests
13144
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13146
# Code to be used in simple link tests
13147
lt_simple_link_test_code=" program t\n end\n"
13149
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13151
# If no C compiler was specified, use CC.
13154
# Allow CC to be a program name with arguments.
13158
# Allow CC to be a program name with arguments.
13163
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13165
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13166
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13167
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13168
echo "${ECHO_T}$can_build_shared" >&6
13170
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13171
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13172
test "$can_build_shared" = "no" && enable_shared=no
13174
# On AIX, shared libraries and static libraries use the same namespace, and
13175
# are all built from PIC.
13178
test "$enable_shared" = yes && enable_static=no
13179
if test -n "$RANLIB"; then
13180
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13181
postinstall_cmds='$RANLIB $lib'
13185
test "$enable_shared" = yes && enable_static=no
13188
echo "$as_me:$LINENO: result: $enable_shared" >&5
13189
echo "${ECHO_T}$enable_shared" >&6
13191
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13192
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13193
# Make sure either enable_shared or enable_static is yes.
13194
test "$enable_shared" = yes || enable_static=yes
13195
echo "$as_me:$LINENO: result: $enable_static" >&5
13196
echo "${ECHO_T}$enable_static" >&6
13198
test "$ld_shlibs_F77" = no && can_build_shared=no
13203
lt_prog_compiler_wl_F77=
13204
lt_prog_compiler_pic_F77=
13205
lt_prog_compiler_static_F77=
13207
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13208
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13210
if test "$GCC" = yes; then
13211
lt_prog_compiler_wl_F77='-Wl,'
13212
lt_prog_compiler_static_F77='-static'
13216
# All AIX code is PIC.
13217
if test "$host_cpu" = ia64; then
13218
# AIX 5 now supports IA64 processor
13219
lt_prog_compiler_static_F77='-Bstatic'
13224
# FIXME: we need at least 68020 code to build shared libraries, but
13225
# adding the `-m68020' flag to GCC prevents building anything better,
13227
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13230
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13231
# PIC is the default for these OSes.
13234
mingw* | pw32* | os2*)
13235
# This hack is so that the source file can tell whether it is being
13236
# built for inclusion in a dll (and should export symbols for example).
13237
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13240
darwin* | rhapsody*)
13241
# PIC is the default on this platform
13242
# Common symbols not allowed in MH_DYLIB files
13243
lt_prog_compiler_pic_F77='-fno-common'
13247
# Just because we use GCC doesn't mean we suddenly get shared libraries
13248
# on systems that don't support them.
13249
lt_prog_compiler_can_build_shared_F77=no
13254
if test -d /usr/nec; then
13255
lt_prog_compiler_pic_F77=-Kconform_pic
13260
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13261
# not for PA HP-UX.
13262
case "$host_cpu" in
13267
lt_prog_compiler_pic_F77='-fPIC'
13273
lt_prog_compiler_pic_F77='-fPIC'
13277
# PORTME Check for flag to pass linker flags through the system compiler.
13280
lt_prog_compiler_wl_F77='-Wl,'
13281
if test "$host_cpu" = ia64; then
13282
# AIX 5 now supports IA64 processor
13283
lt_prog_compiler_static_F77='-Bstatic'
13285
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13289
mingw* | pw32* | os2*)
13290
# This hack is so that the source file can tell whether it is being
13291
# built for inclusion in a dll (and should export symbols for example).
13292
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13295
hpux9* | hpux10* | hpux11*)
13296
lt_prog_compiler_wl_F77='-Wl,'
13297
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13298
# not for PA HP-UX.
13299
case "$host_cpu" in
13304
lt_prog_compiler_pic_F77='+Z'
13307
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13308
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13311
irix5* | irix6* | nonstopux*)
13312
lt_prog_compiler_wl_F77='-Wl,'
13313
# PIC (with -KPIC) is the default.
13314
lt_prog_compiler_static_F77='-non_shared'
13318
lt_prog_compiler_pic_F77='-KPIC'
13319
lt_prog_compiler_static_F77='-Bstatic'
13325
lt_prog_compiler_wl_F77='-Wl,'
13326
lt_prog_compiler_pic_F77='-KPIC'
13327
lt_prog_compiler_static_F77='-static'
13330
lt_prog_compiler_wl_F77='-Wl,'
13331
# All Alpha code is PIC.
13332
lt_prog_compiler_static_F77='-non_shared'
13337
osf3* | osf4* | osf5*)
13338
lt_prog_compiler_wl_F77='-Wl,'
13339
# All OSF/1 code is PIC.
13340
lt_prog_compiler_static_F77='-non_shared'
13344
lt_prog_compiler_pic_F77='-Kpic'
13345
lt_prog_compiler_static_F77='-dn'
13349
lt_prog_compiler_wl_F77='-Wl,'
13350
lt_prog_compiler_pic_F77='-KPIC'
13351
lt_prog_compiler_static_F77='-Bstatic'
13355
lt_prog_compiler_wl_F77='-Qoption ld '
13356
lt_prog_compiler_pic_F77='-PIC'
13357
lt_prog_compiler_static_F77='-Bstatic'
13360
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13361
lt_prog_compiler_wl_F77='-Wl,'
13362
lt_prog_compiler_pic_F77='-KPIC'
13363
lt_prog_compiler_static_F77='-Bstatic'
13367
if test -d /usr/nec ;then
13368
lt_prog_compiler_pic_F77='-Kconform_pic'
13369
lt_prog_compiler_static_F77='-Bstatic'
13374
lt_prog_compiler_pic_F77='-pic'
13375
lt_prog_compiler_static_F77='-Bstatic'
13379
lt_prog_compiler_can_build_shared_F77=no
13384
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13385
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13388
# Check to make sure the PIC flag actually works.
13390
if test -n "$lt_prog_compiler_pic_F77"; then
13392
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13393
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13394
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13395
echo $ECHO_N "(cached) $ECHO_C" >&6
13397
lt_prog_compiler_pic_works_F77=no
13398
ac_outfile=conftest.$ac_objext
13399
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13400
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13401
# Insert the option either (1) after the last *FLAGS variable, or
13402
# (2) before a word containing "conftest.", or (3) at the end.
13403
# Note that $ac_compile itself does not contain backslashes and begins
13404
# with a dollar sign (not a hyphen), so the echo should work correctly.
13405
# The option is referenced via a variable to avoid confusing sed.
13406
lt_compile=`echo "$ac_compile" | $SED \
13407
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13408
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13409
-e 's:$: $lt_compiler_flag:'`
13410
(eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
13411
(eval "$lt_compile" 2>conftest.err)
13413
cat conftest.err >&5
13414
echo "$as_me:13414: \$? = $ac_status" >&5
13415
if (exit $ac_status) && test -s "$ac_outfile"; then
13416
# The compiler can only warn and ignore the option if not recognized
13417
# So say no if there are warnings
13418
if test ! -s conftest.err; then
13419
lt_prog_compiler_pic_works_F77=yes
13425
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13426
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13428
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13429
case $lt_prog_compiler_pic_F77 in
13431
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13434
lt_prog_compiler_pic_F77=
13435
lt_prog_compiler_can_build_shared_F77=no
13440
# For platforms which do not support PIC, -DPIC is meaningless:
13442
lt_prog_compiler_pic_F77=
13445
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13449
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13450
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13451
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13452
echo $ECHO_N "(cached) $ECHO_C" >&6
13454
lt_cv_prog_compiler_c_o_F77=no
13455
$rm -r conftest 2>/dev/null
13459
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13461
lt_compiler_flag="-o out/conftest2.$ac_objext"
13462
# Insert the option either (1) after the last *FLAGS variable, or
13463
# (2) before a word containing "conftest.", or (3) at the end.
13464
# Note that $ac_compile itself does not contain backslashes and begins
13465
# with a dollar sign (not a hyphen), so the echo should work correctly.
13466
lt_compile=`echo "$ac_compile" | $SED \
13467
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13468
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13469
-e 's:$: $lt_compiler_flag:'`
13470
(eval echo "\"\$as_me:13470: $lt_compile\"" >&5)
13471
(eval "$lt_compile" 2>out/conftest.err)
13473
cat out/conftest.err >&5
13474
echo "$as_me:13474: \$? = $ac_status" >&5
13475
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13477
# The compiler can only warn and ignore the option if not recognized
13478
# So say no if there are warnings
13479
if test ! -s out/conftest.err; then
13480
lt_cv_prog_compiler_c_o_F77=yes
13485
# SGI C++ compiler will create directory out/ii_files/ for
13486
# template instantiation
13487
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13488
$rm out/* && rmdir out
13494
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13495
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13498
hard_links="nottested"
13499
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13500
# do not overwrite the value of need_locks provided by the user
13501
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13502
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13505
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13507
ln conftest.a conftest.b 2>&5 || hard_links=no
13508
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13509
echo "$as_me:$LINENO: result: $hard_links" >&5
13510
echo "${ECHO_T}$hard_links" >&6
13511
if test "$hard_links" = no; then
13512
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13513
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13520
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13521
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13524
allow_undefined_flag_F77=
13525
enable_shared_with_static_runtimes_F77=no
13527
archive_expsym_cmds_F77=
13528
old_archive_From_new_cmds_F77=
13529
old_archive_from_expsyms_cmds_F77=
13530
export_dynamic_flag_spec_F77=
13531
whole_archive_flag_spec_F77=
13532
thread_safe_flag_spec_F77=
13533
hardcode_libdir_flag_spec_F77=
13534
hardcode_libdir_flag_spec_ld_F77=
13535
hardcode_libdir_separator_F77=
13536
hardcode_direct_F77=no
13537
hardcode_minus_L_F77=no
13538
hardcode_shlibpath_var_F77=unsupported
13539
link_all_deplibs_F77=unknown
13540
hardcode_automatic_F77=no
13542
module_expsym_cmds_F77=
13543
always_export_symbols_F77=no
13544
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13545
# include_expsyms should be a list of space-separated symbols to be *always*
13546
# included in the symbol list
13547
include_expsyms_F77=
13548
# exclude_expsyms can be an extended regexp of symbols to exclude
13549
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13550
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13551
# as well as any symbol that contains `d'.
13552
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13553
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13554
# platforms (ab)use it in PIC code, but their linkers get confused if
13555
# the symbol is explicitly referenced. Since portable code cannot
13556
# rely on this symbol name, it's probably fine to never include it in
13557
# preloaded symbol tables.
13558
extract_expsyms_cmds=
13561
cygwin* | mingw* | pw32*)
13562
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13563
# When not using gcc, we currently assume that we are using
13564
# Microsoft Visual C++.
13565
if test "$GCC" != yes; then
13575
if test "$with_gnu_ld" = yes; then
13576
# If archive_cmds runs LD, not CC, wlarc should be empty
13579
# See if GNU ld supports shared libraries.
13581
aix3* | aix4* | aix5*)
13582
# On AIX/PPC, the GNU linker is very broken
13583
if test "$host_cpu" != ia64; then
13587
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13588
*** to be unable to reliably create shared libraries on AIX.
13589
*** Therefore, libtool is disabling shared libraries support. If you
13590
*** really care for shared libraries, you may want to modify your PATH
13591
*** so that a non-GNU linker is found, and then restart.
13598
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)'
13599
hardcode_libdir_flag_spec_F77='-L$libdir'
13600
hardcode_minus_L_F77=yes
13602
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13603
# that the semantics of dynamic libraries on AmigaOS, at least up
13604
# to version 4, is to share data among multiple programs linked
13605
# with the same dynamic library. Since this doesn't match the
13606
# behavior of shared libraries on other platforms, we can't use
13612
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613
allow_undefined_flag_F77=unsupported
13614
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13615
# support --undefined. This deserves some investigation. FIXME
13616
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13622
cygwin* | mingw* | pw32*)
13623
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13624
# as there is no search path for DLLs.
13625
hardcode_libdir_flag_spec_F77='-L$libdir'
13626
allow_undefined_flag_F77=unsupported
13627
always_export_symbols_F77=no
13628
enable_shared_with_static_runtimes_F77=yes
13629
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13631
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13632
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13633
# If the export-symbols file already is a .def file (1st line
13634
# is EXPORTS), use it as is; otherwise, prepend...
13635
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13636
cp $export_symbols $output_objdir/$soname.def;
13638
echo EXPORTS > $output_objdir/$soname.def;
13639
cat $export_symbols >> $output_objdir/$soname.def;
13641
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13647
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13648
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13649
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13652
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13662
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13663
*** create shared libraries on Solaris systems. Therefore, libtool
13664
*** is disabling shared libraries support. We urge you to upgrade GNU
13665
*** binutils to release 2.9.1 or newer. Another option is to modify
13666
*** your PATH or compiler configuration so that the native linker is
13667
*** used, and then restart.
13670
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13671
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13679
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13681
hardcode_direct_F77=yes
13682
hardcode_shlibpath_var_F77=no
13686
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688
archive_cmds_F77="$tmp_archive_cmds"
13689
supports_anon_versioning=no
13690
case `$LD -v 2>/dev/null` in
13691
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13692
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13693
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13694
*\ 2.11.*) ;; # other 2.11 versions
13695
*) supports_anon_versioning=yes ;;
13697
if test $supports_anon_versioning = yes; then
13698
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13699
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13700
$echo "local: *; };" >> $output_objdir/$libname.ver~
13701
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13703
archive_expsym_cmds_F77="$tmp_archive_cmds"
13705
link_all_deplibs_F77=no
13712
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13713
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13721
if test "$ld_shlibs_F77" = yes; then
13722
runpath_var=LD_RUN_PATH
13723
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13724
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13725
# ancient GNU ld didn't support --whole-archive et. al.
13726
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13727
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729
whole_archive_flag_spec_F77=
13733
# PORTME fill in a description of your system's linker (not GNU ld)
13736
allow_undefined_flag_F77=unsupported
13737
always_export_symbols_F77=yes
13738
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'
13739
# Note: this linker hardcodes the directories in LIBPATH if there
13740
# are no directories specified by -L.
13741
hardcode_minus_L_F77=yes
13742
if test "$GCC" = yes && test -z "$link_static_flag"; then
13743
# Neither direct hardcoding nor static linking is supported with a
13745
hardcode_direct_F77=unsupported
13750
if test "$host_cpu" = ia64; then
13751
# On IA64, the linker does run time linking by default, so we don't
13752
# have to do anything special.
13753
aix_use_runtimelinking=no
13754
exp_sym_flag='-Bexport'
13757
# If we're using GNU nm, then we don't want the "-C" option.
13758
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13759
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13760
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'
13762
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'
13764
aix_use_runtimelinking=no
13766
# Test if we are trying to use run time linking or normal
13767
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13768
# need to do runtime linking.
13769
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13770
for ld_flag in $LDFLAGS; do
13771
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13772
aix_use_runtimelinking=yes
13778
exp_sym_flag='-bexport'
13779
no_entry_flag='-bnoentry'
13782
# When large executables or shared objects are built, AIX ld can
13783
# have problems creating the table of contents. If linking a library
13784
# or program results in "error TOC overflow" add -mminimal-toc to
13785
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13786
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13788
archive_cmds_F77=''
13789
hardcode_direct_F77=yes
13790
hardcode_libdir_separator_F77=':'
13791
link_all_deplibs_F77=yes
13793
if test "$GCC" = yes; then
13794
case $host_os in aix4.012|aix4.012.*)
13795
# We only want to do this on AIX 4.2 and lower, the check
13796
# below for broken collect2 doesn't work under 4.3+
13797
collect2name=`${CC} -print-prog-name=collect2`
13798
if test -f "$collect2name" && \
13799
strings "$collect2name" | grep resolve_lib_name >/dev/null
13801
# We have reworked collect2
13802
hardcode_direct_F77=yes
13804
# We have old collect2
13805
hardcode_direct_F77=unsupported
13806
# It fails to find uninstalled libraries when the uninstalled
13807
# path is not listed in the libpath. Setting hardcode_minus_L
13808
# to unsupported forces relinking
13809
hardcode_minus_L_F77=yes
13810
hardcode_libdir_flag_spec_F77='-L$libdir'
13811
hardcode_libdir_separator_F77=
13814
shared_flag='-shared'
13817
if test "$host_cpu" = ia64; then
13818
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13819
# chokes on -Wl,-G. The following line is correct:
13822
if test "$aix_use_runtimelinking" = yes; then
13823
shared_flag='${wl}-G'
13825
shared_flag='${wl}-bM:SRE'
13830
# It seems that -bexpall does not export symbols beginning with
13831
# underscore (_), so it is better to generate a list of symbols to export.
13832
always_export_symbols_F77=yes
13833
if test "$aix_use_runtimelinking" = yes; then
13834
# Warning - without using the other runtime loading flags (-brtl),
13835
# -berok will link without error, but may produce a broken library.
13836
allow_undefined_flag_F77='-berok'
13837
# Determine the default libpath from the value encoded in an empty executable.
13838
cat >conftest.$ac_ext <<_ACEOF
13843
rm -f conftest.$ac_objext conftest$ac_exeext
13844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845
(eval $ac_link) 2>conftest.er1
13847
grep -v '^ *+' conftest.er1 >conftest.err
13849
cat conftest.err >&5
13850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851
(exit $ac_status); } &&
13852
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854
(eval $ac_try) 2>&5
13856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857
(exit $ac_status); }; } &&
13858
{ ac_try='test -s conftest$ac_exeext'
13859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860
(eval $ac_try) 2>&5
13862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863
(exit $ac_status); }; }; then
13865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13867
# Check for a 64-bit object if we didn't find anything.
13868
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; }
13871
echo "$as_me: failed program was:" >&5
13872
sed 's/^/| /' conftest.$ac_ext >&5
13875
rm -f conftest.err conftest.$ac_objext \
13876
conftest$ac_exeext conftest.$ac_ext
13877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13879
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880
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"
13882
if test "$host_cpu" = ia64; then
13883
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13884
allow_undefined_flag_F77="-z nodefs"
13885
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"
13887
# Determine the default libpath from the value encoded in an empty executable.
13888
cat >conftest.$ac_ext <<_ACEOF
13893
rm -f conftest.$ac_objext conftest$ac_exeext
13894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895
(eval $ac_link) 2>conftest.er1
13897
grep -v '^ *+' conftest.er1 >conftest.err
13899
cat conftest.err >&5
13900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901
(exit $ac_status); } &&
13902
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13903
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904
(eval $ac_try) 2>&5
13906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907
(exit $ac_status); }; } &&
13908
{ ac_try='test -s conftest$ac_exeext'
13909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910
(eval $ac_try) 2>&5
13912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913
(exit $ac_status); }; }; then
13915
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13917
# Check for a 64-bit object if we didn't find anything.
13918
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; }
13921
echo "$as_me: failed program was:" >&5
13922
sed 's/^/| /' conftest.$ac_ext >&5
13925
rm -f conftest.err conftest.$ac_objext \
13926
conftest$ac_exeext conftest.$ac_ext
13927
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13929
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13930
# Warning - without using the other run time loading flags,
13931
# -berok will link without error, but may produce a broken library.
13932
no_undefined_flag_F77=' ${wl}-bernotok'
13933
allow_undefined_flag_F77=' ${wl}-berok'
13934
# -bexpall does not export symbols beginning with underscore (_)
13935
always_export_symbols_F77=yes
13936
# Exported symbols can be pulled into shared objects from archives
13937
whole_archive_flag_spec_F77=' '
13938
archive_cmds_need_lc_F77=yes
13939
# This is similar to how AIX traditionally builds it's shared libraries.
13940
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'
13946
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)'
13947
hardcode_libdir_flag_spec_F77='-L$libdir'
13948
hardcode_minus_L_F77=yes
13949
# see comment about different semantics on the GNU ld section
13954
export_dynamic_flag_spec_F77=-rdynamic
13957
cygwin* | mingw* | pw32*)
13958
# When not using gcc, we currently assume that we are using
13959
# Microsoft Visual C++.
13960
# hardcode_libdir_flag_spec is actually meaningless, as there is
13961
# no search path for DLLs.
13962
hardcode_libdir_flag_spec_F77=' '
13963
allow_undefined_flag_F77=unsupported
13964
# Tell ltmain to make .lib files, not .a files.
13966
# Tell ltmain to make .dll files, not .so files.
13968
# FIXME: Setting linknames here is a bad hack.
13969
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13970
# The linker will automatically build a .lib file if we build a DLL.
13971
old_archive_From_new_cmds_F77='true'
13972
# FIXME: Should let the user specify the lib program.
13973
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13974
fix_srcfile_path='`cygpath -w "$srcfile"`'
13975
enable_shared_with_static_runtimes_F77=yes
13978
darwin* | rhapsody*)
13979
if test "$GXX" = yes ; then
13980
archive_cmds_need_lc_F77=no
13982
rhapsody* | darwin1.[012])
13983
allow_undefined_flag_F77='-undefined suppress'
13986
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13987
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13989
case ${MACOSX_DEPLOYMENT_TARGET} in
13991
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13994
allow_undefined_flag_F77='-undefined dynamic_lookup'
14000
lt_int_apple_cc_single_mod=no
14001
output_verbose_link_cmd='echo'
14002
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14003
lt_int_apple_cc_single_mod=yes
14005
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14006
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14008
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'
14010
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14011
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14012
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14013
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}'
14015
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}'
14017
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}'
14018
hardcode_direct_F77=no
14019
hardcode_automatic_F77=yes
14020
hardcode_shlibpath_var_F77=unsupported
14021
whole_archive_flag_spec_F77='-all_load $convenience'
14022
link_all_deplibs_F77=yes
14029
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030
hardcode_libdir_flag_spec_F77='-L$libdir'
14031
hardcode_shlibpath_var_F77=no
14038
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14039
# support. Future versions do this automatically, but an explicit c++rt0.o
14040
# does not break anything, and helps significantly (at the cost of a little
14043
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14044
hardcode_libdir_flag_spec_F77='-R$libdir'
14045
hardcode_direct_F77=yes
14046
hardcode_shlibpath_var_F77=no
14049
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14051
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14052
hardcode_direct_F77=yes
14053
hardcode_minus_L_F77=yes
14054
hardcode_shlibpath_var_F77=no
14057
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14058
freebsd* | kfreebsd*-gnu)
14059
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14060
hardcode_libdir_flag_spec_F77='-R$libdir'
14061
hardcode_direct_F77=yes
14062
hardcode_shlibpath_var_F77=no
14066
if test "$GCC" = yes; then
14067
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'
14069
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'
14071
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14072
hardcode_libdir_separator_F77=:
14073
hardcode_direct_F77=yes
14075
# hardcode_minus_L: Not really in the search PATH,
14076
# but as the default location of the library.
14077
hardcode_minus_L_F77=yes
14078
export_dynamic_flag_spec_F77='${wl}-E'
14082
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14083
case "$host_cpu" in
14085
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14088
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14092
case "$host_cpu" in
14094
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14097
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14101
if test "$with_gnu_ld" = no; then
14102
case "$host_cpu" in
14104
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14105
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14106
hardcode_libdir_separator_F77=:
14107
hardcode_direct_F77=no
14108
hardcode_shlibpath_var_F77=no
14111
hardcode_libdir_flag_spec_F77='-L$libdir'
14112
hardcode_direct_F77=no
14113
hardcode_shlibpath_var_F77=no
14115
# hardcode_minus_L: Not really in the search PATH,
14116
# but as the default location of the library.
14117
hardcode_minus_L_F77=yes
14120
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14121
hardcode_libdir_separator_F77=:
14122
hardcode_direct_F77=yes
14123
export_dynamic_flag_spec_F77='${wl}-E'
14125
# hardcode_minus_L: Not really in the search PATH,
14126
# but as the default location of the library.
14127
hardcode_minus_L_F77=yes
14133
irix5* | irix6* | nonstopux*)
14134
if test "$GCC" = yes; then
14135
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'
14137
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'
14138
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14140
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14141
hardcode_libdir_separator_F77=:
14142
link_all_deplibs_F77=yes
14145
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14146
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14147
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14149
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14151
hardcode_libdir_flag_spec_F77='-R$libdir'
14152
hardcode_direct_F77=yes
14153
hardcode_shlibpath_var_F77=no
14157
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158
hardcode_direct_F77=yes
14159
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14160
hardcode_libdir_separator_F77=:
14161
hardcode_shlibpath_var_F77=no
14165
hardcode_direct_F77=yes
14166
hardcode_shlibpath_var_F77=no
14167
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14168
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14169
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14170
export_dynamic_flag_spec_F77='${wl}-E'
14173
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14174
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14175
hardcode_libdir_flag_spec_F77='-R$libdir'
14178
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14179
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14186
hardcode_libdir_flag_spec_F77='-L$libdir'
14187
hardcode_minus_L_F77=yes
14188
allow_undefined_flag_F77=unsupported
14189
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'
14190
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14194
if test "$GCC" = yes; then
14195
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14196
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'
14198
allow_undefined_flag_F77=' -expect_unresolved \*'
14199
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'
14201
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14202
hardcode_libdir_separator_F77=:
14205
osf4* | osf5*) # as osf3* with the addition of -msym flag
14206
if test "$GCC" = yes; then
14207
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14208
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'
14209
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14211
allow_undefined_flag_F77=' -expect_unresolved \*'
14212
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'
14213
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~
14214
$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'
14216
# Both c and cxx compiler support -rpath directly
14217
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14219
hardcode_libdir_separator_F77=:
14223
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14224
hardcode_shlibpath_var_F77=no
14225
export_dynamic_flag_spec_F77='${wl}-Bexport'
14226
runpath_var=LD_RUN_PATH
14227
hardcode_runpath_var=yes
14231
no_undefined_flag_F77=' -z text'
14232
if test "$GCC" = yes; then
14233
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14234
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14235
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14237
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14239
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14241
hardcode_libdir_flag_spec_F77='-R$libdir'
14242
hardcode_shlibpath_var_F77=no
14244
solaris2.[0-5] | solaris2.[0-5].*) ;;
14245
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14246
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14248
link_all_deplibs_F77=yes
14252
if test "x$host_vendor" = xsequent; then
14253
# Use $CC to link under sequent, because it throws in some extra .o
14254
# files that make .init and .fini sections work.
14255
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14257
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14259
hardcode_libdir_flag_spec_F77='-L$libdir'
14260
hardcode_direct_F77=yes
14261
hardcode_minus_L_F77=yes
14262
hardcode_shlibpath_var_F77=no
14266
case $host_vendor in
14268
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14269
hardcode_direct_F77=yes # is this really true???
14272
## LD is ld it makes a PLAMLIB
14273
## CC just makes a GrossModule.
14274
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14275
reload_cmds_F77='$CC -r -o $output$reload_objs'
14276
hardcode_direct_F77=no
14279
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14283
runpath_var='LD_RUN_PATH'
14284
hardcode_shlibpath_var_F77=no
14288
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289
hardcode_shlibpath_var_F77=no
14290
export_dynamic_flag_spec_F77='-Bexport'
14294
if test -d /usr/nec; then
14295
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14296
hardcode_shlibpath_var_F77=no
14297
runpath_var=LD_RUN_PATH
14298
hardcode_runpath_var=yes
14304
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14305
hardcode_direct_F77=yes
14306
hardcode_minus_L_F77=no
14307
hardcode_shlibpath_var_F77=no
14308
hardcode_runpath_var=yes
14309
runpath_var=LD_RUN_PATH
14312
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14313
no_undefined_flag_F77='${wl}-z ${wl}text'
14314
if test "$GCC" = yes; then
14315
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319
runpath_var='LD_RUN_PATH'
14320
hardcode_shlibpath_var_F77=no
14324
no_undefined_flag_F77=' -z text'
14325
# $CC -shared without GNU ld will not create a library from C++
14326
# object files and a static libstdc++, better avoid it by now
14327
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14328
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14329
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14330
hardcode_libdir_flag_spec_F77=
14331
hardcode_shlibpath_var_F77=no
14332
runpath_var='LD_RUN_PATH'
14336
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14337
hardcode_libdir_flag_spec_F77='-L$libdir'
14338
hardcode_shlibpath_var_F77=no
14347
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14348
echo "${ECHO_T}$ld_shlibs_F77" >&6
14349
test "$ld_shlibs_F77" = no && can_build_shared=no
14351
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14352
if test "$GCC" = yes; then
14353
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14357
# Do we need to explicitly link libc?
14359
case "x$archive_cmds_need_lc_F77" in
14361
# Assume -lc should be added
14362
archive_cmds_need_lc_F77=yes
14364
if test "$enable_shared" = yes && test "$GCC" = yes; then
14365
case $archive_cmds_F77 in
14367
# FIXME: we may have to deal with multi-command sequences.
14370
# Test whether the compiler implicitly links with -lc since on some
14371
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14372
# to ld, don't add -lc before -lgcc.
14373
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14374
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14376
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14378
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379
(eval $ac_compile) 2>&5
14381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382
(exit $ac_status); } 2>conftest.err; then
14385
libobjs=conftest.$ac_objext
14387
wl=$lt_prog_compiler_wl_F77
14393
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14394
allow_undefined_flag_F77=
14395
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14396
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399
(exit $ac_status); }
14401
archive_cmds_need_lc_F77=no
14403
archive_cmds_need_lc_F77=yes
14405
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14407
cat conftest.err 1>&5
14410
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14411
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14418
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14419
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14420
library_names_spec=
14421
libname_spec='lib$name'
14425
postuninstall_cmds=
14429
shlibpath_overrides_runpath=unknown
14431
dynamic_linker="$host_os ld.so"
14432
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14433
if test "$GCC" = yes; then
14434
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14435
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14436
# if the path contains ";" then we assume it to be the separator
14437
# otherwise default to the standard path separator (i.e. ":") - it is
14438
# assumed that no part of a normal pathname contains ";" but that should
14439
# okay in the real world where ";" in dirpaths is itself problematic.
14440
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14442
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14445
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14447
need_lib_prefix=unknown
14448
hardcode_into_libs=no
14450
# when you set need_version to no, make sure it does not cause -set_version
14451
# flags to be left without arguments
14452
need_version=unknown
14457
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14458
shlibpath_var=LIBPATH
14460
# AIX 3 has no versioning support, so we append a major version to the name.
14461
soname_spec='${libname}${release}${shared_ext}$major'
14468
hardcode_into_libs=yes
14469
if test "$host_cpu" = ia64; then
14470
# AIX 5 supports IA64
14471
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14472
shlibpath_var=LD_LIBRARY_PATH
14474
# With GCC up to 2.95.x, collect2 would create an import file
14475
# for dependence libraries. The import file would start with
14476
# the line `#! .'. This would cause the generated library to
14477
# depend on `.', always an invalid library. This was fixed in
14478
# development snapshots of GCC prior to 3.0.
14480
aix4 | aix4.[01] | aix4.[01].*)
14481
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14483
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14486
can_build_shared=no
14490
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14491
# soname into executable. Probably we can add versioning support to
14492
# collect2, so additional links can be useful in future.
14493
if test "$aix_use_runtimelinking" = yes; then
14494
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14495
# instead of lib<name>.a to let people know that these are not
14496
# typical AIX shared libraries.
14497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499
# We preserve .a as extension for shared libraries through AIX4.2
14500
# and later when we are not doing run time linking.
14501
library_names_spec='${libname}${release}.a $libname.a'
14502
soname_spec='${libname}${release}${shared_ext}$major'
14504
shlibpath_var=LIBPATH
14509
library_names_spec='$libname.ixlibrary $libname.a'
14510
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14511
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'
14515
library_names_spec='${libname}${shared_ext}'
14516
dynamic_linker="$host_os ld.so"
14517
shlibpath_var=LIBRARY_PATH
14523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524
soname_spec='${libname}${release}${shared_ext}$major'
14525
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14526
shlibpath_var=LD_LIBRARY_PATH
14527
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14528
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14529
# the default ld.so.conf also contains /usr/contrib/lib and
14530
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14531
# libtool to hard-code these into programs
14534
cygwin* | mingw* | pw32*)
14535
version_type=windows
14540
case $GCC,$host_os in
14541
yes,cygwin* | yes,mingw* | yes,pw32*)
14542
library_names_spec='$libname.dll.a'
14543
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14544
postinstall_cmds='base_file=`basename \${file}`~
14545
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14546
dldir=$destdir/`dirname \$dlpath`~
14547
test -d \$dldir || mkdir -p \$dldir~
14548
$install_prog $dir/$dlname \$dldir/$dlname'
14549
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14550
dlpath=$dir/\$dldll~
14552
shlibpath_overrides_runpath=yes
14556
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14557
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14558
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14561
# MinGW DLLs use traditional 'lib' prefix
14562
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14563
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14564
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14565
# It is most probably a Windows format PATH printed by
14566
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14567
# path with ; separators, and with drive letters. We can handle the
14568
# drive letters (cygwin fileutils understands them), so leave them,
14569
# especially as we might pass files found there to a mingw objdump,
14570
# which wouldn't understand a cygwinified path. Ahh.
14571
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14573
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14577
# pw32 DLLs use 'pw' prefix rather than 'lib'
14578
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14584
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14587
dynamic_linker='Win32 ld.exe'
14588
# FIXME: first we should search . and the directory the executable is in
14592
darwin* | rhapsody*)
14593
dynamic_linker="$host_os dyld"
14594
version_type=darwin
14597
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14598
soname_spec='${libname}${release}${major}$shared_ext'
14599
shlibpath_overrides_runpath=yes
14600
shlibpath_var=DYLD_LIBRARY_PATH
14601
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14602
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14603
if test "$GCC" = yes; then
14604
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"`
14606
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14608
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14616
soname_spec='${libname}${release}${shared_ext}$major'
14617
shlibpath_var=LD_LIBRARY_PATH
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14629
soname_spec='${libname}${release}${shared_ext}$major'
14630
shlibpath_var=LD_LIBRARY_PATH
14631
shlibpath_overrides_runpath=no
14632
hardcode_into_libs=yes
14633
dynamic_linker='GNU ld.so'
14637
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14638
version_type=freebsd-$objformat
14639
case $version_type in
14641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14646
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14650
shlibpath_var=LD_LIBRARY_PATH
14653
shlibpath_overrides_runpath=yes
14655
freebsd3.01* | freebsdelf3.01*)
14656
shlibpath_overrides_runpath=yes
14657
hardcode_into_libs=yes
14660
shlibpath_overrides_runpath=no
14661
hardcode_into_libs=yes
14670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14671
soname_spec='${libname}${release}${shared_ext}$major'
14672
shlibpath_var=LD_LIBRARY_PATH
14673
hardcode_into_libs=yes
14676
hpux9* | hpux10* | hpux11*)
14677
# Give a soname corresponding to the major version so that dld.sl refuses to
14678
# link against other versions.
14682
case "$host_cpu" in
14685
hardcode_into_libs=yes
14686
dynamic_linker="$host_os dld.so"
14687
shlibpath_var=LD_LIBRARY_PATH
14688
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690
soname_spec='${libname}${release}${shared_ext}$major'
14691
if test "X$HPUX_IA64_MODE" = X32; then
14692
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14694
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14696
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14700
hardcode_into_libs=yes
14701
dynamic_linker="$host_os dld.sl"
14702
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14703
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705
soname_spec='${libname}${release}${shared_ext}$major'
14706
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14707
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14711
dynamic_linker="$host_os dld.sl"
14712
shlibpath_var=SHLIB_PATH
14713
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715
soname_spec='${libname}${release}${shared_ext}$major'
14718
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14719
postinstall_cmds='chmod 555 $lib'
14722
irix5* | irix6* | nonstopux*)
14724
nonstopux*) version_type=nonstopux ;;
14726
if test "$lt_cv_prog_gnu_ld" = yes; then
14734
soname_spec='${libname}${release}${shared_ext}$major'
14735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14737
irix5* | nonstopux*)
14738
libsuff= shlibsuff=
14741
case $LD in # libtool.m4 will add one of these switches to LD
14742
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14743
libsuff= shlibsuff= libmagic=32-bit;;
14744
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14745
libsuff=32 shlibsuff=N32 libmagic=N32;;
14746
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14747
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14748
*) libsuff= shlibsuff= libmagic=never-match;;
14752
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14753
shlibpath_overrides_runpath=no
14754
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14755
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14756
hardcode_into_libs=yes
14759
# No shared lib support for Linux oldld, aout, or coff.
14760
linux*oldld* | linux*aout* | linux*coff*)
14764
# This must be Linux ELF.
14769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770
soname_spec='${libname}${release}${shared_ext}$major'
14771
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14772
shlibpath_var=LD_LIBRARY_PATH
14773
shlibpath_overrides_runpath=no
14774
# This implies no fast_install, which is unacceptable.
14775
# Some rework will be needed to allow for fast_install
14776
# before this can be enabled.
14777
hardcode_into_libs=yes
14779
# Append ld.so.conf contents to the search path
14780
if test -f /etc/ld.so.conf; then
14781
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14782
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14785
# We used to test for /lib/ld.so.1 and disable shared libraries on
14786
# powerpc, because MkLinux only supported shared libraries with the
14787
# GNU dynamic linker. Since this was broken with cross compilers,
14788
# most powerpc-linux boxes support dynamic linking these days and
14789
# people can always --disable-shared, the test was removed, and we
14790
# assume the GNU/Linux dynamic linker is in use.
14791
dynamic_linker='GNU/Linux ld.so'
14798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799
soname_spec='${libname}${release}${shared_ext}$major'
14800
shlibpath_var=LD_LIBRARY_PATH
14801
shlibpath_overrides_runpath=no
14802
hardcode_into_libs=yes
14803
dynamic_linker='NetBSD ld.elf_so'
14810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14811
soname_spec='${libname}${release}${shared_ext}$major'
14812
shlibpath_var=LD_LIBRARY_PATH
14813
shlibpath_overrides_runpath=no
14814
hardcode_into_libs=yes
14815
dynamic_linker='GNU ld.so'
14822
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14824
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14825
dynamic_linker='NetBSD (a.out) ld.so'
14827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14828
soname_spec='${libname}${release}${shared_ext}$major'
14829
dynamic_linker='NetBSD ld.elf_so'
14831
shlibpath_var=LD_LIBRARY_PATH
14832
shlibpath_overrides_runpath=yes
14833
hardcode_into_libs=yes
14838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839
shlibpath_var=LD_LIBRARY_PATH
14840
shlibpath_overrides_runpath=yes
14847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848
soname_spec='${libname}${release}${shared_ext}$major'
14849
shlibpath_var=LD_LIBRARY_PATH
14850
shlibpath_overrides_runpath=yes
14857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859
shlibpath_var=LD_LIBRARY_PATH
14860
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14862
openbsd2.[89] | openbsd2.[89].*)
14863
shlibpath_overrides_runpath=no
14866
shlibpath_overrides_runpath=yes
14870
shlibpath_overrides_runpath=yes
14875
libname_spec='$name'
14878
library_names_spec='$libname${shared_ext} $libname.a'
14879
dynamic_linker='OS/2 ld.exe'
14880
shlibpath_var=LIBPATH
14883
osf3* | osf4* | osf5*)
14887
soname_spec='${libname}${release}${shared_ext}$major'
14888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889
shlibpath_var=LD_LIBRARY_PATH
14890
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14891
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14896
soname_spec='${libname}${release}${shared_ext}$major'
14897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898
shlibpath_var=LD_LIBRARY_PATH
14905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906
soname_spec='${libname}${release}${shared_ext}$major'
14907
shlibpath_var=LD_LIBRARY_PATH
14908
shlibpath_overrides_runpath=yes
14909
hardcode_into_libs=yes
14910
# ldd complains unless libraries are executable
14911
postinstall_cmds='chmod +x $lib'
14916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14917
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14918
shlibpath_var=LD_LIBRARY_PATH
14919
shlibpath_overrides_runpath=yes
14920
if test "$with_gnu_ld" = yes; then
14926
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929
soname_spec='${libname}${release}${shared_ext}$major'
14930
shlibpath_var=LD_LIBRARY_PATH
14931
case $host_vendor in
14933
shlibpath_overrides_runpath=no
14935
export_dynamic_flag_spec='${wl}-Blargedynsym'
14936
runpath_var=LD_RUN_PATH
14944
shlibpath_overrides_runpath=no
14945
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14951
if test -d /usr/nec ;then
14953
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14954
soname_spec='$libname${shared_ext}.$major'
14955
shlibpath_var=LD_LIBRARY_PATH
14961
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962
soname_spec='${libname}${release}${shared_ext}$major'
14963
shlibpath_var=LD_LIBRARY_PATH
14970
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14971
echo "${ECHO_T}$dynamic_linker" >&6
14972
test "$dynamic_linker" = no && can_build_shared=no
14974
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14975
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14976
hardcode_action_F77=
14977
if test -n "$hardcode_libdir_flag_spec_F77" || \
14978
test -n "$runpath_var F77" || \
14979
test "X$hardcode_automatic_F77"="Xyes" ; then
14981
# We can hardcode non-existant directories.
14982
if test "$hardcode_direct_F77" != no &&
14983
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14984
# have to relink, otherwise we might link with an installed library
14985
# when we should be linking with a yet-to-be-installed one
14986
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14987
test "$hardcode_minus_L_F77" != no; then
14988
# Linking always hardcodes the temporary library directory.
14989
hardcode_action_F77=relink
14991
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14992
hardcode_action_F77=immediate
14995
# We cannot hardcode anything, or else we can only hardcode existing
14997
hardcode_action_F77=unsupported
14999
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15000
echo "${ECHO_T}$hardcode_action_F77" >&6
15002
if test "$hardcode_action_F77" = relink; then
15003
# Fast installation is not supported
15004
enable_fast_install=no
15005
elif test "$shlibpath_overrides_runpath" = yes ||
15006
test "$enable_shared" = no; then
15007
# Fast installation is not necessary
15008
enable_fast_install=needless
15013
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15014
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15015
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15016
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15017
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15018
echo "$as_me:$LINENO: result: yes" >&5
15019
echo "${ECHO_T}yes" >&6
15021
# FIXME - insert some real tests, host_os isn't really good enough
15024
if test -n "$STRIP" ; then
15025
striplib="$STRIP -x"
15026
echo "$as_me:$LINENO: result: yes" >&5
15027
echo "${ECHO_T}yes" >&6
15029
echo "$as_me:$LINENO: result: no" >&5
15030
echo "${ECHO_T}no" >&6
15034
echo "$as_me:$LINENO: result: no" >&5
15035
echo "${ECHO_T}no" >&6
15042
# The else clause should only fire when bootstrapping the
15043
# libtool distribution, otherwise you forgot to ship ltmain.sh
15044
# with your package, and you will get complaints that there are
15045
# no rules to generate ltmain.sh.
15046
if test -f "$ltmain"; then
15047
# See if we are running on zsh, and set the options which allow our commands through
15048
# without removal of \ escapes.
15049
if test -n "${ZSH_VERSION+set}" ; then
15050
setopt NO_GLOB_SUBST
15052
# Now quote all the things that may contain metacharacters while being
15053
# careful not to overquote the AC_SUBSTed values. We take copies of the
15054
# variables and quote the copies for generation of the libtool script.
15055
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15057
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15058
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15059
deplibs_check_method reload_flag reload_cmds need_locks \
15060
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15061
lt_cv_sys_global_symbol_to_c_name_address \
15062
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15063
old_postinstall_cmds old_postuninstall_cmds \
15067
lt_prog_compiler_wl_F77 \
15068
lt_prog_compiler_pic_F77 \
15069
lt_prog_compiler_static_F77 \
15070
lt_prog_compiler_no_builtin_flag_F77 \
15071
export_dynamic_flag_spec_F77 \
15072
thread_safe_flag_spec_F77 \
15073
whole_archive_flag_spec_F77 \
15074
enable_shared_with_static_runtimes_F77 \
15075
old_archive_cmds_F77 \
15076
old_archive_from_new_cmds_F77 \
15077
predep_objects_F77 \
15078
postdep_objects_F77 \
15081
compiler_lib_search_path_F77 \
15083
archive_expsym_cmds_F77 \
15084
postinstall_cmds_F77 \
15085
postuninstall_cmds_F77 \
15086
old_archive_from_expsyms_cmds_F77 \
15087
allow_undefined_flag_F77 \
15088
no_undefined_flag_F77 \
15089
export_symbols_cmds_F77 \
15090
hardcode_libdir_flag_spec_F77 \
15091
hardcode_libdir_flag_spec_ld_F77 \
15092
hardcode_libdir_separator_F77 \
15093
hardcode_automatic_F77 \
15095
module_expsym_cmds_F77 \
15096
lt_cv_prog_compiler_c_o_F77 \
15097
exclude_expsyms_F77 \
15098
include_expsyms_F77; do
15101
old_archive_cmds_F77 | \
15102
old_archive_from_new_cmds_F77 | \
15103
archive_cmds_F77 | \
15104
archive_expsym_cmds_F77 | \
15105
module_cmds_F77 | \
15106
module_expsym_cmds_F77 | \
15107
old_archive_from_expsyms_cmds_F77 | \
15108
export_symbols_cmds_F77 | \
15109
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15110
postinstall_cmds | postuninstall_cmds | \
15111
old_postinstall_cmds | old_postuninstall_cmds | \
15112
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15113
# Double-quote double-evaled strings.
15114
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15117
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15123
*'\$0 --fallback-echo"')
15124
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15130
cat <<__EOF__ >> "$cfgfile"
15131
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15133
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15135
# Shell to use when invoking shell scripts.
15138
# Whether or not to build shared libraries.
15139
build_libtool_libs=$enable_shared
15141
# Whether or not to build static libraries.
15142
build_old_libs=$enable_static
15144
# Whether or not to add -lc for building shared libraries.
15145
build_libtool_need_lc=$archive_cmds_need_lc_F77
15147
# Whether or not to disallow shared libs when runtime libs are static
15148
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15150
# Whether or not to optimize for fast installation.
15151
fast_install=$enable_fast_install
15154
host_alias=$host_alias
15157
# An echo program that does not interpret backslashes.
15162
AR_FLAGS=$lt_AR_FLAGS
15167
# A language-specific compiler.
15168
CC=$lt_compiler_F77
15170
# Is the compiler the GNU C compiler?
15176
# The linker used to build libraries.
15179
# Whether we need hard or soft links.
15182
# A BSD-compatible nm program.
15185
# A symbol stripping program
15188
# Used to examine libraries when file_magic_cmd begins "file"
15189
MAGIC_CMD=$MAGIC_CMD
15191
# Used on cygwin: DLL creation program.
15194
# Used on cygwin: object dumper.
15197
# Used on cygwin: assembler.
15200
# The name of the directory that contains temporary libtool files.
15203
# How to create reloadable object files.
15204
reload_flag=$lt_reload_flag
15205
reload_cmds=$lt_reload_cmds
15207
# How to pass a linker flag through the compiler.
15208
wl=$lt_lt_prog_compiler_wl_F77
15210
# Object file suffix (normally "o").
15211
objext="$ac_objext"
15213
# Old archive suffix (normally "a").
15216
# Shared library suffix (normally ".so").
15217
shrext_cmds='$shrext_cmds'
15219
# Executable file suffix (normally "").
15222
# Additional compiler flags for building library objects.
15223
pic_flag=$lt_lt_prog_compiler_pic_F77
15226
# What is the maximum length of a command?
15227
max_cmd_len=$lt_cv_sys_max_cmd_len
15229
# Does compiler simultaneously support -c and -o options?
15230
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15232
# Must we lock files when doing compilation ?
15233
need_locks=$lt_need_locks
15235
# Do we need the lib prefix for modules?
15236
need_lib_prefix=$need_lib_prefix
15238
# Do we need a version for libraries?
15239
need_version=$need_version
15241
# Whether dlopen is supported.
15242
dlopen_support=$enable_dlopen
15244
# Whether dlopen of programs is supported.
15245
dlopen_self=$enable_dlopen_self
15247
# Whether dlopen of statically linked programs is supported.
15248
dlopen_self_static=$enable_dlopen_self_static
15250
# Compiler flag to prevent dynamic linking.
15251
link_static_flag=$lt_lt_prog_compiler_static_F77
15253
# Compiler flag to turn off builtin functions.
15254
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15256
# Compiler flag to allow reflexive dlopens.
15257
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15259
# Compiler flag to generate shared objects directly from archives.
15260
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15262
# Compiler flag to generate thread-safe objects.
15263
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15265
# Library versioning type.
15266
version_type=$version_type
15268
# Format of library name prefix.
15269
libname_spec=$lt_libname_spec
15271
# List of archive names. First name is the real one, the rest are links.
15272
# The last name is the one that the linker finds with -lNAME.
15273
library_names_spec=$lt_library_names_spec
15275
# The coded name of the library, if different from the real name.
15276
soname_spec=$lt_soname_spec
15278
# Commands used to build and install an old-style archive.
15280
old_archive_cmds=$lt_old_archive_cmds_F77
15281
old_postinstall_cmds=$lt_old_postinstall_cmds
15282
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15284
# Create an old-style archive from a shared archive.
15285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15287
# Create a temporary old-style archive to link instead of a shared archive.
15288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15290
# Commands used to build and install a shared archive.
15291
archive_cmds=$lt_archive_cmds_F77
15292
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15293
postinstall_cmds=$lt_postinstall_cmds
15294
postuninstall_cmds=$lt_postuninstall_cmds
15296
# Commands used to build a loadable module (assumed same as above if empty)
15297
module_cmds=$lt_module_cmds_F77
15298
module_expsym_cmds=$lt_module_expsym_cmds_F77
15300
# Commands to strip libraries.
15301
old_striplib=$lt_old_striplib
15302
striplib=$lt_striplib
15304
# Dependencies to place before the objects being linked to create a
15306
predep_objects=$lt_predep_objects_F77
15308
# Dependencies to place after the objects being linked to create a
15310
postdep_objects=$lt_postdep_objects_F77
15312
# Dependencies to place before the objects being linked to create a
15314
predeps=$lt_predeps_F77
15316
# Dependencies to place after the objects being linked to create a
15318
postdeps=$lt_postdeps_F77
15320
# The library search path used internally by the compiler when linking
15321
# a shared library.
15322
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15324
# Method to check whether dependent libraries are shared objects.
15325
deplibs_check_method=$lt_deplibs_check_method
15327
# Command to use when deplibs_check_method == file_magic.
15328
file_magic_cmd=$lt_file_magic_cmd
15330
# Flag that allows shared libraries with undefined symbols to be built.
15331
allow_undefined_flag=$lt_allow_undefined_flag_F77
15333
# Flag that forces no undefined symbols.
15334
no_undefined_flag=$lt_no_undefined_flag_F77
15336
# Commands used to finish a libtool library installation in a directory.
15337
finish_cmds=$lt_finish_cmds
15339
# Same as above, but a single script fragment to be evaled but not shown.
15340
finish_eval=$lt_finish_eval
15342
# Take the output of nm and produce a listing of raw symbols and C names.
15343
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15345
# Transform the output of nm in a proper C declaration
15346
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15348
# Transform the output of nm in a C name address pair
15349
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15351
# This is the shared library runtime path variable.
15352
runpath_var=$runpath_var
15354
# This is the shared library path variable.
15355
shlibpath_var=$shlibpath_var
15357
# Is shlibpath searched before the hard-coded library search path?
15358
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15360
# How to hardcode a shared library path into an executable.
15361
hardcode_action=$hardcode_action_F77
15363
# Whether we should hardcode library paths into libraries.
15364
hardcode_into_libs=$hardcode_into_libs
15366
# Flag to hardcode \$libdir into a binary during linking.
15367
# This must work even if \$libdir does not exist.
15368
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15370
# If ld is used when linking, flag to hardcode \$libdir into
15371
# a binary during linking. This must work even if \$libdir does
15373
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15375
# Whether we need a single -rpath flag with a separated argument.
15376
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15378
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15379
# resulting binary.
15380
hardcode_direct=$hardcode_direct_F77
15382
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15383
# resulting binary.
15384
hardcode_minus_L=$hardcode_minus_L_F77
15386
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15387
# the resulting binary.
15388
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15390
# Set to yes if building a shared library automatically hardcodes DIR into the library
15391
# and all subsequent libraries and executables linked against it.
15392
hardcode_automatic=$hardcode_automatic_F77
15394
# Variables whose values should be saved in libtool wrapper scripts and
15395
# restored at relink time.
15396
variables_saved_for_relink="$variables_saved_for_relink"
15398
# Whether libtool must link a program against all its dependency libraries.
15399
link_all_deplibs=$link_all_deplibs_F77
15401
# Compile-time system search path for libraries
15402
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15404
# Run-time system search path for libraries
15405
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15407
# Fix the shell variable \$srcfile for the compiler.
15408
fix_srcfile_path="$fix_srcfile_path_F77"
15410
# Set to yes if exported symbols are required.
15411
always_export_symbols=$always_export_symbols_F77
15413
# The commands to list exported symbols.
15414
export_symbols_cmds=$lt_export_symbols_cmds_F77
15416
# The commands to extract the exported symbol list from a shared archive.
15417
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15419
# Symbols that should not be listed in the preloaded symbols.
15420
exclude_expsyms=$lt_exclude_expsyms_F77
15422
# Symbols that must always be exported.
15423
include_expsyms=$lt_include_expsyms_F77
15425
# ### END LIBTOOL TAG CONFIG: $tagname
15431
# If there is no Makefile yet, we rely on a make rule to execute
15432
# `config.status --recheck' to rerun these tests and create the
15433
# libtool script then.
15434
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15435
if test -f "$ltmain_in"; then
15436
test -f Makefile && make "$ltmain"
15442
ac_cpp='$CPP $CPPFLAGS'
15443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15455
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15459
# Source file extension for Java test sources.
15462
# Object file extension for compiled Java test sources.
15466
# Code to be used in simple compile tests
15467
lt_simple_compile_test_code="class foo {}\n"
15469
# Code to be used in simple link tests
15470
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15472
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15474
# If no C compiler was specified, use CC.
15477
# Allow CC to be a program name with arguments.
15481
# Allow CC to be a program name with arguments.
15487
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15488
archive_cmds_need_lc_GCJ=no
15491
lt_prog_compiler_no_builtin_flag_GCJ=
15493
if test "$GCC" = yes; then
15494
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15497
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15498
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15499
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15500
echo $ECHO_N "(cached) $ECHO_C" >&6
15502
lt_cv_prog_compiler_rtti_exceptions=no
15503
ac_outfile=conftest.$ac_objext
15504
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15505
lt_compiler_flag="-fno-rtti -fno-exceptions"
15506
# Insert the option either (1) after the last *FLAGS variable, or
15507
# (2) before a word containing "conftest.", or (3) at the end.
15508
# Note that $ac_compile itself does not contain backslashes and begins
15509
# with a dollar sign (not a hyphen), so the echo should work correctly.
15510
# The option is referenced via a variable to avoid confusing sed.
15511
lt_compile=`echo "$ac_compile" | $SED \
15512
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15513
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15514
-e 's:$: $lt_compiler_flag:'`
15515
(eval echo "\"\$as_me:15515: $lt_compile\"" >&5)
15516
(eval "$lt_compile" 2>conftest.err)
15518
cat conftest.err >&5
15519
echo "$as_me:15519: \$? = $ac_status" >&5
15520
if (exit $ac_status) && test -s "$ac_outfile"; then
15521
# The compiler can only warn and ignore the option if not recognized
15522
# So say no if there are warnings
15523
if test ! -s conftest.err; then
15524
lt_cv_prog_compiler_rtti_exceptions=yes
15530
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15531
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15533
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15534
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15541
lt_prog_compiler_wl_GCJ=
15542
lt_prog_compiler_pic_GCJ=
15543
lt_prog_compiler_static_GCJ=
15545
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15546
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15548
if test "$GCC" = yes; then
15549
lt_prog_compiler_wl_GCJ='-Wl,'
15550
lt_prog_compiler_static_GCJ='-static'
15554
# All AIX code is PIC.
15555
if test "$host_cpu" = ia64; then
15556
# AIX 5 now supports IA64 processor
15557
lt_prog_compiler_static_GCJ='-Bstatic'
15562
# FIXME: we need at least 68020 code to build shared libraries, but
15563
# adding the `-m68020' flag to GCC prevents building anything better,
15565
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15568
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15569
# PIC is the default for these OSes.
15572
mingw* | pw32* | os2*)
15573
# This hack is so that the source file can tell whether it is being
15574
# built for inclusion in a dll (and should export symbols for example).
15575
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15578
darwin* | rhapsody*)
15579
# PIC is the default on this platform
15580
# Common symbols not allowed in MH_DYLIB files
15581
lt_prog_compiler_pic_GCJ='-fno-common'
15585
# Just because we use GCC doesn't mean we suddenly get shared libraries
15586
# on systems that don't support them.
15587
lt_prog_compiler_can_build_shared_GCJ=no
15592
if test -d /usr/nec; then
15593
lt_prog_compiler_pic_GCJ=-Kconform_pic
15598
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15599
# not for PA HP-UX.
15600
case "$host_cpu" in
15605
lt_prog_compiler_pic_GCJ='-fPIC'
15611
lt_prog_compiler_pic_GCJ='-fPIC'
15615
# PORTME Check for flag to pass linker flags through the system compiler.
15618
lt_prog_compiler_wl_GCJ='-Wl,'
15619
if test "$host_cpu" = ia64; then
15620
# AIX 5 now supports IA64 processor
15621
lt_prog_compiler_static_GCJ='-Bstatic'
15623
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15627
mingw* | pw32* | os2*)
15628
# This hack is so that the source file can tell whether it is being
15629
# built for inclusion in a dll (and should export symbols for example).
15630
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15633
hpux9* | hpux10* | hpux11*)
15634
lt_prog_compiler_wl_GCJ='-Wl,'
15635
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15636
# not for PA HP-UX.
15637
case "$host_cpu" in
15642
lt_prog_compiler_pic_GCJ='+Z'
15645
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15646
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15649
irix5* | irix6* | nonstopux*)
15650
lt_prog_compiler_wl_GCJ='-Wl,'
15651
# PIC (with -KPIC) is the default.
15652
lt_prog_compiler_static_GCJ='-non_shared'
15656
lt_prog_compiler_pic_GCJ='-KPIC'
15657
lt_prog_compiler_static_GCJ='-Bstatic'
15663
lt_prog_compiler_wl_GCJ='-Wl,'
15664
lt_prog_compiler_pic_GCJ='-KPIC'
15665
lt_prog_compiler_static_GCJ='-static'
15668
lt_prog_compiler_wl_GCJ='-Wl,'
15669
# All Alpha code is PIC.
15670
lt_prog_compiler_static_GCJ='-non_shared'
15675
osf3* | osf4* | osf5*)
15676
lt_prog_compiler_wl_GCJ='-Wl,'
15677
# All OSF/1 code is PIC.
15678
lt_prog_compiler_static_GCJ='-non_shared'
15682
lt_prog_compiler_pic_GCJ='-Kpic'
15683
lt_prog_compiler_static_GCJ='-dn'
15687
lt_prog_compiler_wl_GCJ='-Wl,'
15688
lt_prog_compiler_pic_GCJ='-KPIC'
15689
lt_prog_compiler_static_GCJ='-Bstatic'
15693
lt_prog_compiler_wl_GCJ='-Qoption ld '
15694
lt_prog_compiler_pic_GCJ='-PIC'
15695
lt_prog_compiler_static_GCJ='-Bstatic'
15698
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15699
lt_prog_compiler_wl_GCJ='-Wl,'
15700
lt_prog_compiler_pic_GCJ='-KPIC'
15701
lt_prog_compiler_static_GCJ='-Bstatic'
15705
if test -d /usr/nec ;then
15706
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15707
lt_prog_compiler_static_GCJ='-Bstatic'
15712
lt_prog_compiler_pic_GCJ='-pic'
15713
lt_prog_compiler_static_GCJ='-Bstatic'
15717
lt_prog_compiler_can_build_shared_GCJ=no
15722
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15723
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15726
# Check to make sure the PIC flag actually works.
15728
if test -n "$lt_prog_compiler_pic_GCJ"; then
15730
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15731
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15732
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15733
echo $ECHO_N "(cached) $ECHO_C" >&6
15735
lt_prog_compiler_pic_works_GCJ=no
15736
ac_outfile=conftest.$ac_objext
15737
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15738
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15739
# Insert the option either (1) after the last *FLAGS variable, or
15740
# (2) before a word containing "conftest.", or (3) at the end.
15741
# Note that $ac_compile itself does not contain backslashes and begins
15742
# with a dollar sign (not a hyphen), so the echo should work correctly.
15743
# The option is referenced via a variable to avoid confusing sed.
15744
lt_compile=`echo "$ac_compile" | $SED \
15745
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15746
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15747
-e 's:$: $lt_compiler_flag:'`
15748
(eval echo "\"\$as_me:15748: $lt_compile\"" >&5)
15749
(eval "$lt_compile" 2>conftest.err)
15751
cat conftest.err >&5
15752
echo "$as_me:15752: \$? = $ac_status" >&5
15753
if (exit $ac_status) && test -s "$ac_outfile"; then
15754
# The compiler can only warn and ignore the option if not recognized
15755
# So say no if there are warnings
15756
if test ! -s conftest.err; then
15757
lt_prog_compiler_pic_works_GCJ=yes
15763
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15764
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15766
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15767
case $lt_prog_compiler_pic_GCJ in
15769
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15772
lt_prog_compiler_pic_GCJ=
15773
lt_prog_compiler_can_build_shared_GCJ=no
15778
# For platforms which do not support PIC, -DPIC is meaningless:
15780
lt_prog_compiler_pic_GCJ=
15783
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15787
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15788
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15789
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15790
echo $ECHO_N "(cached) $ECHO_C" >&6
15792
lt_cv_prog_compiler_c_o_GCJ=no
15793
$rm -r conftest 2>/dev/null
15797
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799
lt_compiler_flag="-o out/conftest2.$ac_objext"
15800
# Insert the option either (1) after the last *FLAGS variable, or
15801
# (2) before a word containing "conftest.", or (3) at the end.
15802
# Note that $ac_compile itself does not contain backslashes and begins
15803
# with a dollar sign (not a hyphen), so the echo should work correctly.
15804
lt_compile=`echo "$ac_compile" | $SED \
15805
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15806
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807
-e 's:$: $lt_compiler_flag:'`
15808
(eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809
(eval "$lt_compile" 2>out/conftest.err)
15811
cat out/conftest.err >&5
15812
echo "$as_me:15812: \$? = $ac_status" >&5
15813
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15815
# The compiler can only warn and ignore the option if not recognized
15816
# So say no if there are warnings
15817
if test ! -s out/conftest.err; then
15818
lt_cv_prog_compiler_c_o_GCJ=yes
15823
# SGI C++ compiler will create directory out/ii_files/ for
15824
# template instantiation
15825
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15826
$rm out/* && rmdir out
15832
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15833
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15836
hard_links="nottested"
15837
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15838
# do not overwrite the value of need_locks provided by the user
15839
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15840
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15843
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15845
ln conftest.a conftest.b 2>&5 || hard_links=no
15846
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15847
echo "$as_me:$LINENO: result: $hard_links" >&5
15848
echo "${ECHO_T}$hard_links" >&6
15849
if test "$hard_links" = no; then
15850
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15851
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15858
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15859
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15862
allow_undefined_flag_GCJ=
15863
enable_shared_with_static_runtimes_GCJ=no
15865
archive_expsym_cmds_GCJ=
15866
old_archive_From_new_cmds_GCJ=
15867
old_archive_from_expsyms_cmds_GCJ=
15868
export_dynamic_flag_spec_GCJ=
15869
whole_archive_flag_spec_GCJ=
15870
thread_safe_flag_spec_GCJ=
15871
hardcode_libdir_flag_spec_GCJ=
15872
hardcode_libdir_flag_spec_ld_GCJ=
15873
hardcode_libdir_separator_GCJ=
15874
hardcode_direct_GCJ=no
15875
hardcode_minus_L_GCJ=no
15876
hardcode_shlibpath_var_GCJ=unsupported
15877
link_all_deplibs_GCJ=unknown
15878
hardcode_automatic_GCJ=no
15880
module_expsym_cmds_GCJ=
15881
always_export_symbols_GCJ=no
15882
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15883
# include_expsyms should be a list of space-separated symbols to be *always*
15884
# included in the symbol list
15885
include_expsyms_GCJ=
15886
# exclude_expsyms can be an extended regexp of symbols to exclude
15887
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15888
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15889
# as well as any symbol that contains `d'.
15890
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15891
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15892
# platforms (ab)use it in PIC code, but their linkers get confused if
15893
# the symbol is explicitly referenced. Since portable code cannot
15894
# rely on this symbol name, it's probably fine to never include it in
15895
# preloaded symbol tables.
15896
extract_expsyms_cmds=
15899
cygwin* | mingw* | pw32*)
15900
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15901
# When not using gcc, we currently assume that we are using
15902
# Microsoft Visual C++.
15903
if test "$GCC" != yes; then
15913
if test "$with_gnu_ld" = yes; then
15914
# If archive_cmds runs LD, not CC, wlarc should be empty
15917
# See if GNU ld supports shared libraries.
15919
aix3* | aix4* | aix5*)
15920
# On AIX/PPC, the GNU linker is very broken
15921
if test "$host_cpu" != ia64; then
15925
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15926
*** to be unable to reliably create shared libraries on AIX.
15927
*** Therefore, libtool is disabling shared libraries support. If you
15928
*** really care for shared libraries, you may want to modify your PATH
15929
*** so that a non-GNU linker is found, and then restart.
15936
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)'
15937
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15938
hardcode_minus_L_GCJ=yes
15940
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15941
# that the semantics of dynamic libraries on AmigaOS, at least up
15942
# to version 4, is to share data among multiple programs linked
15943
# with the same dynamic library. Since this doesn't match the
15944
# behavior of shared libraries on other platforms, we can't use
15950
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951
allow_undefined_flag_GCJ=unsupported
15952
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15953
# support --undefined. This deserves some investigation. FIXME
15954
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960
cygwin* | mingw* | pw32*)
15961
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15962
# as there is no search path for DLLs.
15963
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964
allow_undefined_flag_GCJ=unsupported
15965
always_export_symbols_GCJ=no
15966
enable_shared_with_static_runtimes_GCJ=yes
15967
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15969
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15970
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15971
# If the export-symbols file already is a .def file (1st line
15972
# is EXPORTS), use it as is; otherwise, prepend...
15973
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15974
cp $export_symbols $output_objdir/$soname.def;
15976
echo EXPORTS > $output_objdir/$soname.def;
15977
cat $export_symbols >> $output_objdir/$soname.def;
15979
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15985
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15986
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15990
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16000
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16001
*** create shared libraries on Solaris systems. Therefore, libtool
16002
*** is disabling shared libraries support. We urge you to upgrade GNU
16003
*** binutils to release 2.9.1 or newer. Another option is to modify
16004
*** your PATH or compiler configuration so that the native linker is
16005
*** used, and then restart.
16008
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16009
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16010
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16017
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019
hardcode_direct_GCJ=yes
16020
hardcode_shlibpath_var_GCJ=no
16024
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026
archive_cmds_GCJ="$tmp_archive_cmds"
16027
supports_anon_versioning=no
16028
case `$LD -v 2>/dev/null` in
16029
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16030
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16031
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16032
*\ 2.11.*) ;; # other 2.11 versions
16033
*) supports_anon_versioning=yes ;;
16035
if test $supports_anon_versioning = yes; then
16036
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16037
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16038
$echo "local: *; };" >> $output_objdir/$libname.ver~
16039
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16041
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16043
link_all_deplibs_GCJ=no
16050
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16051
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16059
if test "$ld_shlibs_GCJ" = yes; then
16060
runpath_var=LD_RUN_PATH
16061
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16062
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16063
# ancient GNU ld didn't support --whole-archive et. al.
16064
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16065
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16067
whole_archive_flag_spec_GCJ=
16071
# PORTME fill in a description of your system's linker (not GNU ld)
16074
allow_undefined_flag_GCJ=unsupported
16075
always_export_symbols_GCJ=yes
16076
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'
16077
# Note: this linker hardcodes the directories in LIBPATH if there
16078
# are no directories specified by -L.
16079
hardcode_minus_L_GCJ=yes
16080
if test "$GCC" = yes && test -z "$link_static_flag"; then
16081
# Neither direct hardcoding nor static linking is supported with a
16083
hardcode_direct_GCJ=unsupported
16088
if test "$host_cpu" = ia64; then
16089
# On IA64, the linker does run time linking by default, so we don't
16090
# have to do anything special.
16091
aix_use_runtimelinking=no
16092
exp_sym_flag='-Bexport'
16095
# If we're using GNU nm, then we don't want the "-C" option.
16096
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16097
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16098
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'
16100
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'
16102
aix_use_runtimelinking=no
16104
# Test if we are trying to use run time linking or normal
16105
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16106
# need to do runtime linking.
16107
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16108
for ld_flag in $LDFLAGS; do
16109
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16110
aix_use_runtimelinking=yes
16116
exp_sym_flag='-bexport'
16117
no_entry_flag='-bnoentry'
16120
# When large executables or shared objects are built, AIX ld can
16121
# have problems creating the table of contents. If linking a library
16122
# or program results in "error TOC overflow" add -mminimal-toc to
16123
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16124
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16126
archive_cmds_GCJ=''
16127
hardcode_direct_GCJ=yes
16128
hardcode_libdir_separator_GCJ=':'
16129
link_all_deplibs_GCJ=yes
16131
if test "$GCC" = yes; then
16132
case $host_os in aix4.012|aix4.012.*)
16133
# We only want to do this on AIX 4.2 and lower, the check
16134
# below for broken collect2 doesn't work under 4.3+
16135
collect2name=`${CC} -print-prog-name=collect2`
16136
if test -f "$collect2name" && \
16137
strings "$collect2name" | grep resolve_lib_name >/dev/null
16139
# We have reworked collect2
16140
hardcode_direct_GCJ=yes
16142
# We have old collect2
16143
hardcode_direct_GCJ=unsupported
16144
# It fails to find uninstalled libraries when the uninstalled
16145
# path is not listed in the libpath. Setting hardcode_minus_L
16146
# to unsupported forces relinking
16147
hardcode_minus_L_GCJ=yes
16148
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16149
hardcode_libdir_separator_GCJ=
16152
shared_flag='-shared'
16155
if test "$host_cpu" = ia64; then
16156
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16157
# chokes on -Wl,-G. The following line is correct:
16160
if test "$aix_use_runtimelinking" = yes; then
16161
shared_flag='${wl}-G'
16163
shared_flag='${wl}-bM:SRE'
16168
# It seems that -bexpall does not export symbols beginning with
16169
# underscore (_), so it is better to generate a list of symbols to export.
16170
always_export_symbols_GCJ=yes
16171
if test "$aix_use_runtimelinking" = yes; then
16172
# Warning - without using the other runtime loading flags (-brtl),
16173
# -berok will link without error, but may produce a broken library.
16174
allow_undefined_flag_GCJ='-berok'
16175
# Determine the default libpath from the value encoded in an empty executable.
16176
cat >conftest.$ac_ext <<_ACEOF
16179
cat confdefs.h >>conftest.$ac_ext
16180
cat >>conftest.$ac_ext <<_ACEOF
16181
/* end confdefs.h. */
16191
rm -f conftest.$ac_objext conftest$ac_exeext
16192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16193
(eval $ac_link) 2>conftest.er1
16195
grep -v '^ *+' conftest.er1 >conftest.err
16197
cat conftest.err >&5
16198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199
(exit $ac_status); } &&
16200
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202
(eval $ac_try) 2>&5
16204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205
(exit $ac_status); }; } &&
16206
{ ac_try='test -s conftest$ac_exeext'
16207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208
(eval $ac_try) 2>&5
16210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211
(exit $ac_status); }; }; then
16213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16215
# Check for a 64-bit object if we didn't find anything.
16216
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; }
16219
echo "$as_me: failed program was:" >&5
16220
sed 's/^/| /' conftest.$ac_ext >&5
16223
rm -f conftest.err conftest.$ac_objext \
16224
conftest$ac_exeext conftest.$ac_ext
16225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16227
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16228
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"
16230
if test "$host_cpu" = ia64; then
16231
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16232
allow_undefined_flag_GCJ="-z nodefs"
16233
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"
16235
# Determine the default libpath from the value encoded in an empty executable.
16236
cat >conftest.$ac_ext <<_ACEOF
16239
cat confdefs.h >>conftest.$ac_ext
16240
cat >>conftest.$ac_ext <<_ACEOF
16241
/* end confdefs.h. */
16251
rm -f conftest.$ac_objext conftest$ac_exeext
16252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253
(eval $ac_link) 2>conftest.er1
16255
grep -v '^ *+' conftest.er1 >conftest.err
16257
cat conftest.err >&5
16258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259
(exit $ac_status); } &&
16260
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262
(eval $ac_try) 2>&5
16264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265
(exit $ac_status); }; } &&
16266
{ ac_try='test -s conftest$ac_exeext'
16267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268
(eval $ac_try) 2>&5
16270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271
(exit $ac_status); }; }; then
16273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16275
# Check for a 64-bit object if we didn't find anything.
16276
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; }
16279
echo "$as_me: failed program was:" >&5
16280
sed 's/^/| /' conftest.$ac_ext >&5
16283
rm -f conftest.err conftest.$ac_objext \
16284
conftest$ac_exeext conftest.$ac_ext
16285
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16287
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16288
# Warning - without using the other run time loading flags,
16289
# -berok will link without error, but may produce a broken library.
16290
no_undefined_flag_GCJ=' ${wl}-bernotok'
16291
allow_undefined_flag_GCJ=' ${wl}-berok'
16292
# -bexpall does not export symbols beginning with underscore (_)
16293
always_export_symbols_GCJ=yes
16294
# Exported symbols can be pulled into shared objects from archives
16295
whole_archive_flag_spec_GCJ=' '
16296
archive_cmds_need_lc_GCJ=yes
16297
# This is similar to how AIX traditionally builds it's shared libraries.
16298
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'
16304
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)'
16305
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16306
hardcode_minus_L_GCJ=yes
16307
# see comment about different semantics on the GNU ld section
16312
export_dynamic_flag_spec_GCJ=-rdynamic
16315
cygwin* | mingw* | pw32*)
16316
# When not using gcc, we currently assume that we are using
16317
# Microsoft Visual C++.
16318
# hardcode_libdir_flag_spec is actually meaningless, as there is
16319
# no search path for DLLs.
16320
hardcode_libdir_flag_spec_GCJ=' '
16321
allow_undefined_flag_GCJ=unsupported
16322
# Tell ltmain to make .lib files, not .a files.
16324
# Tell ltmain to make .dll files, not .so files.
16326
# FIXME: Setting linknames here is a bad hack.
16327
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16328
# The linker will automatically build a .lib file if we build a DLL.
16329
old_archive_From_new_cmds_GCJ='true'
16330
# FIXME: Should let the user specify the lib program.
16331
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16332
fix_srcfile_path='`cygpath -w "$srcfile"`'
16333
enable_shared_with_static_runtimes_GCJ=yes
16336
darwin* | rhapsody*)
16337
if test "$GXX" = yes ; then
16338
archive_cmds_need_lc_GCJ=no
16340
rhapsody* | darwin1.[012])
16341
allow_undefined_flag_GCJ='-undefined suppress'
16344
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16345
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16347
case ${MACOSX_DEPLOYMENT_TARGET} in
16349
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16352
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16358
lt_int_apple_cc_single_mod=no
16359
output_verbose_link_cmd='echo'
16360
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16361
lt_int_apple_cc_single_mod=yes
16363
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16364
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16366
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'
16368
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16369
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16370
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16371
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}'
16373
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}'
16375
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}'
16376
hardcode_direct_GCJ=no
16377
hardcode_automatic_GCJ=yes
16378
hardcode_shlibpath_var_GCJ=unsupported
16379
whole_archive_flag_spec_GCJ='-all_load $convenience'
16380
link_all_deplibs_GCJ=yes
16387
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389
hardcode_shlibpath_var_GCJ=no
16396
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16397
# support. Future versions do this automatically, but an explicit c++rt0.o
16398
# does not break anything, and helps significantly (at the cost of a little
16401
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16402
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16403
hardcode_direct_GCJ=yes
16404
hardcode_shlibpath_var_GCJ=no
16407
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16409
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16410
hardcode_direct_GCJ=yes
16411
hardcode_minus_L_GCJ=yes
16412
hardcode_shlibpath_var_GCJ=no
16415
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16416
freebsd* | kfreebsd*-gnu)
16417
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16418
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16419
hardcode_direct_GCJ=yes
16420
hardcode_shlibpath_var_GCJ=no
16424
if test "$GCC" = yes; then
16425
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'
16427
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'
16429
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16430
hardcode_libdir_separator_GCJ=:
16431
hardcode_direct_GCJ=yes
16433
# hardcode_minus_L: Not really in the search PATH,
16434
# but as the default location of the library.
16435
hardcode_minus_L_GCJ=yes
16436
export_dynamic_flag_spec_GCJ='${wl}-E'
16440
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16441
case "$host_cpu" in
16443
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16450
case "$host_cpu" in
16452
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16455
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16459
if test "$with_gnu_ld" = no; then
16460
case "$host_cpu" in
16462
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16463
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16464
hardcode_libdir_separator_GCJ=:
16465
hardcode_direct_GCJ=no
16466
hardcode_shlibpath_var_GCJ=no
16469
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16470
hardcode_direct_GCJ=no
16471
hardcode_shlibpath_var_GCJ=no
16473
# hardcode_minus_L: Not really in the search PATH,
16474
# but as the default location of the library.
16475
hardcode_minus_L_GCJ=yes
16478
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16479
hardcode_libdir_separator_GCJ=:
16480
hardcode_direct_GCJ=yes
16481
export_dynamic_flag_spec_GCJ='${wl}-E'
16483
# hardcode_minus_L: Not really in the search PATH,
16484
# but as the default location of the library.
16485
hardcode_minus_L_GCJ=yes
16491
irix5* | irix6* | nonstopux*)
16492
if test "$GCC" = yes; then
16493
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'
16495
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'
16496
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16498
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16499
hardcode_libdir_separator_GCJ=:
16500
link_all_deplibs_GCJ=yes
16503
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16504
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16505
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16507
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16509
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16510
hardcode_direct_GCJ=yes
16511
hardcode_shlibpath_var_GCJ=no
16515
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16516
hardcode_direct_GCJ=yes
16517
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16518
hardcode_libdir_separator_GCJ=:
16519
hardcode_shlibpath_var_GCJ=no
16523
hardcode_direct_GCJ=yes
16524
hardcode_shlibpath_var_GCJ=no
16525
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16526
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16527
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16528
export_dynamic_flag_spec_GCJ='${wl}-E'
16531
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16532
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16533
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16536
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16537
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16544
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16545
hardcode_minus_L_GCJ=yes
16546
allow_undefined_flag_GCJ=unsupported
16547
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'
16548
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16552
if test "$GCC" = yes; then
16553
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16554
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'
16556
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16557
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'
16559
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16560
hardcode_libdir_separator_GCJ=:
16563
osf4* | osf5*) # as osf3* with the addition of -msym flag
16564
if test "$GCC" = yes; then
16565
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16566
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'
16567
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16569
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16570
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'
16571
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~
16572
$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'
16574
# Both c and cxx compiler support -rpath directly
16575
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16577
hardcode_libdir_separator_GCJ=:
16581
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16582
hardcode_shlibpath_var_GCJ=no
16583
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16584
runpath_var=LD_RUN_PATH
16585
hardcode_runpath_var=yes
16589
no_undefined_flag_GCJ=' -z text'
16590
if test "$GCC" = yes; then
16591
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16593
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16595
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16596
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16597
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16599
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16600
hardcode_shlibpath_var_GCJ=no
16602
solaris2.[0-5] | solaris2.[0-5].*) ;;
16603
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16604
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16606
link_all_deplibs_GCJ=yes
16610
if test "x$host_vendor" = xsequent; then
16611
# Use $CC to link under sequent, because it throws in some extra .o
16612
# files that make .init and .fini sections work.
16613
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16615
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16617
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16618
hardcode_direct_GCJ=yes
16619
hardcode_minus_L_GCJ=yes
16620
hardcode_shlibpath_var_GCJ=no
16624
case $host_vendor in
16626
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627
hardcode_direct_GCJ=yes # is this really true???
16630
## LD is ld it makes a PLAMLIB
16631
## CC just makes a GrossModule.
16632
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16633
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16634
hardcode_direct_GCJ=no
16637
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16641
runpath_var='LD_RUN_PATH'
16642
hardcode_shlibpath_var_GCJ=no
16646
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647
hardcode_shlibpath_var_GCJ=no
16648
export_dynamic_flag_spec_GCJ='-Bexport'
16652
if test -d /usr/nec; then
16653
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654
hardcode_shlibpath_var_GCJ=no
16655
runpath_var=LD_RUN_PATH
16656
hardcode_runpath_var=yes
16662
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16663
hardcode_direct_GCJ=yes
16664
hardcode_minus_L_GCJ=no
16665
hardcode_shlibpath_var_GCJ=no
16666
hardcode_runpath_var=yes
16667
runpath_var=LD_RUN_PATH
16670
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16671
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16672
if test "$GCC" = yes; then
16673
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677
runpath_var='LD_RUN_PATH'
16678
hardcode_shlibpath_var_GCJ=no
16682
no_undefined_flag_GCJ=' -z text'
16683
# $CC -shared without GNU ld will not create a library from C++
16684
# object files and a static libstdc++, better avoid it by now
16685
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16687
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16688
hardcode_libdir_flag_spec_GCJ=
16689
hardcode_shlibpath_var_GCJ=no
16690
runpath_var='LD_RUN_PATH'
16694
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16695
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16696
hardcode_shlibpath_var_GCJ=no
16705
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16706
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16707
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16709
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16710
if test "$GCC" = yes; then
16711
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16715
# Do we need to explicitly link libc?
16717
case "x$archive_cmds_need_lc_GCJ" in
16719
# Assume -lc should be added
16720
archive_cmds_need_lc_GCJ=yes
16722
if test "$enable_shared" = yes && test "$GCC" = yes; then
16723
case $archive_cmds_GCJ in
16725
# FIXME: we may have to deal with multi-command sequences.
16728
# Test whether the compiler implicitly links with -lc since on some
16729
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16730
# to ld, don't add -lc before -lgcc.
16731
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16732
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16734
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16737
(eval $ac_compile) 2>&5
16739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740
(exit $ac_status); } 2>conftest.err; then
16743
libobjs=conftest.$ac_objext
16745
wl=$lt_prog_compiler_wl_GCJ
16751
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16752
allow_undefined_flag_GCJ=
16753
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16754
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757
(exit $ac_status); }
16759
archive_cmds_need_lc_GCJ=no
16761
archive_cmds_need_lc_GCJ=yes
16763
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16765
cat conftest.err 1>&5
16768
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16769
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16776
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16777
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16778
library_names_spec=
16779
libname_spec='lib$name'
16783
postuninstall_cmds=
16787
shlibpath_overrides_runpath=unknown
16789
dynamic_linker="$host_os ld.so"
16790
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16791
if test "$GCC" = yes; then
16792
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16793
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16794
# if the path contains ";" then we assume it to be the separator
16795
# otherwise default to the standard path separator (i.e. ":") - it is
16796
# assumed that no part of a normal pathname contains ";" but that should
16797
# okay in the real world where ";" in dirpaths is itself problematic.
16798
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16800
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16803
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16805
need_lib_prefix=unknown
16806
hardcode_into_libs=no
16808
# when you set need_version to no, make sure it does not cause -set_version
16809
# flags to be left without arguments
16810
need_version=unknown
16815
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16816
shlibpath_var=LIBPATH
16818
# AIX 3 has no versioning support, so we append a major version to the name.
16819
soname_spec='${libname}${release}${shared_ext}$major'
16826
hardcode_into_libs=yes
16827
if test "$host_cpu" = ia64; then
16828
# AIX 5 supports IA64
16829
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16830
shlibpath_var=LD_LIBRARY_PATH
16832
# With GCC up to 2.95.x, collect2 would create an import file
16833
# for dependence libraries. The import file would start with
16834
# the line `#! .'. This would cause the generated library to
16835
# depend on `.', always an invalid library. This was fixed in
16836
# development snapshots of GCC prior to 3.0.
16838
aix4 | aix4.[01] | aix4.[01].*)
16839
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16841
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16844
can_build_shared=no
16848
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16849
# soname into executable. Probably we can add versioning support to
16850
# collect2, so additional links can be useful in future.
16851
if test "$aix_use_runtimelinking" = yes; then
16852
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16853
# instead of lib<name>.a to let people know that these are not
16854
# typical AIX shared libraries.
16855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16857
# We preserve .a as extension for shared libraries through AIX4.2
16858
# and later when we are not doing run time linking.
16859
library_names_spec='${libname}${release}.a $libname.a'
16860
soname_spec='${libname}${release}${shared_ext}$major'
16862
shlibpath_var=LIBPATH
16867
library_names_spec='$libname.ixlibrary $libname.a'
16868
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16869
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'
16873
library_names_spec='${libname}${shared_ext}'
16874
dynamic_linker="$host_os ld.so"
16875
shlibpath_var=LIBRARY_PATH
16881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882
soname_spec='${libname}${release}${shared_ext}$major'
16883
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16884
shlibpath_var=LD_LIBRARY_PATH
16885
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16886
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16887
# the default ld.so.conf also contains /usr/contrib/lib and
16888
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16889
# libtool to hard-code these into programs
16892
cygwin* | mingw* | pw32*)
16893
version_type=windows
16898
case $GCC,$host_os in
16899
yes,cygwin* | yes,mingw* | yes,pw32*)
16900
library_names_spec='$libname.dll.a'
16901
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16902
postinstall_cmds='base_file=`basename \${file}`~
16903
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16904
dldir=$destdir/`dirname \$dlpath`~
16905
test -d \$dldir || mkdir -p \$dldir~
16906
$install_prog $dir/$dlname \$dldir/$dlname'
16907
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16908
dlpath=$dir/\$dldll~
16910
shlibpath_overrides_runpath=yes
16914
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16915
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16916
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16919
# MinGW DLLs use traditional 'lib' prefix
16920
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16921
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16922
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16923
# It is most probably a Windows format PATH printed by
16924
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16925
# path with ; separators, and with drive letters. We can handle the
16926
# drive letters (cygwin fileutils understands them), so leave them,
16927
# especially as we might pass files found there to a mingw objdump,
16928
# which wouldn't understand a cygwinified path. Ahh.
16929
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16931
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16935
# pw32 DLLs use 'pw' prefix rather than 'lib'
16936
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16942
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16945
dynamic_linker='Win32 ld.exe'
16946
# FIXME: first we should search . and the directory the executable is in
16950
darwin* | rhapsody*)
16951
dynamic_linker="$host_os dyld"
16952
version_type=darwin
16955
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16956
soname_spec='${libname}${release}${major}$shared_ext'
16957
shlibpath_overrides_runpath=yes
16958
shlibpath_var=DYLD_LIBRARY_PATH
16959
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16960
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16961
if test "$GCC" = yes; then
16962
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"`
16964
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16966
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16974
soname_spec='${libname}${release}${shared_ext}$major'
16975
shlibpath_var=LD_LIBRARY_PATH
16986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16987
soname_spec='${libname}${release}${shared_ext}$major'
16988
shlibpath_var=LD_LIBRARY_PATH
16989
shlibpath_overrides_runpath=no
16990
hardcode_into_libs=yes
16991
dynamic_linker='GNU ld.so'
16995
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16996
version_type=freebsd-$objformat
16997
case $version_type in
16999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17004
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17008
shlibpath_var=LD_LIBRARY_PATH
17011
shlibpath_overrides_runpath=yes
17013
freebsd3.01* | freebsdelf3.01*)
17014
shlibpath_overrides_runpath=yes
17015
hardcode_into_libs=yes
17018
shlibpath_overrides_runpath=no
17019
hardcode_into_libs=yes
17028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17029
soname_spec='${libname}${release}${shared_ext}$major'
17030
shlibpath_var=LD_LIBRARY_PATH
17031
hardcode_into_libs=yes
17034
hpux9* | hpux10* | hpux11*)
17035
# Give a soname corresponding to the major version so that dld.sl refuses to
17036
# link against other versions.
17040
case "$host_cpu" in
17043
hardcode_into_libs=yes
17044
dynamic_linker="$host_os dld.so"
17045
shlibpath_var=LD_LIBRARY_PATH
17046
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048
soname_spec='${libname}${release}${shared_ext}$major'
17049
if test "X$HPUX_IA64_MODE" = X32; then
17050
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17052
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17054
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17058
hardcode_into_libs=yes
17059
dynamic_linker="$host_os dld.sl"
17060
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17061
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063
soname_spec='${libname}${release}${shared_ext}$major'
17064
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17065
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17069
dynamic_linker="$host_os dld.sl"
17070
shlibpath_var=SHLIB_PATH
17071
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17073
soname_spec='${libname}${release}${shared_ext}$major'
17076
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17077
postinstall_cmds='chmod 555 $lib'
17080
irix5* | irix6* | nonstopux*)
17082
nonstopux*) version_type=nonstopux ;;
17084
if test "$lt_cv_prog_gnu_ld" = yes; then
17092
soname_spec='${libname}${release}${shared_ext}$major'
17093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17095
irix5* | nonstopux*)
17096
libsuff= shlibsuff=
17099
case $LD in # libtool.m4 will add one of these switches to LD
17100
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17101
libsuff= shlibsuff= libmagic=32-bit;;
17102
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17103
libsuff=32 shlibsuff=N32 libmagic=N32;;
17104
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17105
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17106
*) libsuff= shlibsuff= libmagic=never-match;;
17110
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17111
shlibpath_overrides_runpath=no
17112
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17113
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17114
hardcode_into_libs=yes
17117
# No shared lib support for Linux oldld, aout, or coff.
17118
linux*oldld* | linux*aout* | linux*coff*)
17122
# This must be Linux ELF.
17127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128
soname_spec='${libname}${release}${shared_ext}$major'
17129
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17130
shlibpath_var=LD_LIBRARY_PATH
17131
shlibpath_overrides_runpath=no
17132
# This implies no fast_install, which is unacceptable.
17133
# Some rework will be needed to allow for fast_install
17134
# before this can be enabled.
17135
hardcode_into_libs=yes
17137
# Append ld.so.conf contents to the search path
17138
if test -f /etc/ld.so.conf; then
17139
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17140
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17143
# We used to test for /lib/ld.so.1 and disable shared libraries on
17144
# powerpc, because MkLinux only supported shared libraries with the
17145
# GNU dynamic linker. Since this was broken with cross compilers,
17146
# most powerpc-linux boxes support dynamic linking these days and
17147
# people can always --disable-shared, the test was removed, and we
17148
# assume the GNU/Linux dynamic linker is in use.
17149
dynamic_linker='GNU/Linux ld.so'
17156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17157
soname_spec='${libname}${release}${shared_ext}$major'
17158
shlibpath_var=LD_LIBRARY_PATH
17159
shlibpath_overrides_runpath=no
17160
hardcode_into_libs=yes
17161
dynamic_linker='NetBSD ld.elf_so'
17168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17169
soname_spec='${libname}${release}${shared_ext}$major'
17170
shlibpath_var=LD_LIBRARY_PATH
17171
shlibpath_overrides_runpath=no
17172
hardcode_into_libs=yes
17173
dynamic_linker='GNU ld.so'
17180
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17182
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17183
dynamic_linker='NetBSD (a.out) ld.so'
17185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17186
soname_spec='${libname}${release}${shared_ext}$major'
17187
dynamic_linker='NetBSD ld.elf_so'
17189
shlibpath_var=LD_LIBRARY_PATH
17190
shlibpath_overrides_runpath=yes
17191
hardcode_into_libs=yes
17196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197
shlibpath_var=LD_LIBRARY_PATH
17198
shlibpath_overrides_runpath=yes
17205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206
soname_spec='${libname}${release}${shared_ext}$major'
17207
shlibpath_var=LD_LIBRARY_PATH
17208
shlibpath_overrides_runpath=yes
17215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17216
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17217
shlibpath_var=LD_LIBRARY_PATH
17218
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17220
openbsd2.[89] | openbsd2.[89].*)
17221
shlibpath_overrides_runpath=no
17224
shlibpath_overrides_runpath=yes
17228
shlibpath_overrides_runpath=yes
17233
libname_spec='$name'
17236
library_names_spec='$libname${shared_ext} $libname.a'
17237
dynamic_linker='OS/2 ld.exe'
17238
shlibpath_var=LIBPATH
17241
osf3* | osf4* | osf5*)
17245
soname_spec='${libname}${release}${shared_ext}$major'
17246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247
shlibpath_var=LD_LIBRARY_PATH
17248
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17249
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17254
soname_spec='${libname}${release}${shared_ext}$major'
17255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256
shlibpath_var=LD_LIBRARY_PATH
17263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264
soname_spec='${libname}${release}${shared_ext}$major'
17265
shlibpath_var=LD_LIBRARY_PATH
17266
shlibpath_overrides_runpath=yes
17267
hardcode_into_libs=yes
17268
# ldd complains unless libraries are executable
17269
postinstall_cmds='chmod +x $lib'
17274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17275
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17276
shlibpath_var=LD_LIBRARY_PATH
17277
shlibpath_overrides_runpath=yes
17278
if test "$with_gnu_ld" = yes; then
17284
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287
soname_spec='${libname}${release}${shared_ext}$major'
17288
shlibpath_var=LD_LIBRARY_PATH
17289
case $host_vendor in
17291
shlibpath_overrides_runpath=no
17293
export_dynamic_flag_spec='${wl}-Blargedynsym'
17294
runpath_var=LD_RUN_PATH
17302
shlibpath_overrides_runpath=no
17303
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17309
if test -d /usr/nec ;then
17311
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17312
soname_spec='$libname${shared_ext}.$major'
17313
shlibpath_var=LD_LIBRARY_PATH
17319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320
soname_spec='${libname}${release}${shared_ext}$major'
17321
shlibpath_var=LD_LIBRARY_PATH
17328
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17329
echo "${ECHO_T}$dynamic_linker" >&6
17330
test "$dynamic_linker" = no && can_build_shared=no
17332
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17333
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17334
hardcode_action_GCJ=
17335
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17336
test -n "$runpath_var GCJ" || \
17337
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17339
# We can hardcode non-existant directories.
17340
if test "$hardcode_direct_GCJ" != no &&
17341
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17342
# have to relink, otherwise we might link with an installed library
17343
# when we should be linking with a yet-to-be-installed one
17344
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17345
test "$hardcode_minus_L_GCJ" != no; then
17346
# Linking always hardcodes the temporary library directory.
17347
hardcode_action_GCJ=relink
17349
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17350
hardcode_action_GCJ=immediate
17353
# We cannot hardcode anything, or else we can only hardcode existing
17355
hardcode_action_GCJ=unsupported
17357
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17358
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17360
if test "$hardcode_action_GCJ" = relink; then
17361
# Fast installation is not supported
17362
enable_fast_install=no
17363
elif test "$shlibpath_overrides_runpath" = yes ||
17364
test "$enable_shared" = no; then
17365
# Fast installation is not necessary
17366
enable_fast_install=needless
17371
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17372
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17373
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17374
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17375
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17376
echo "$as_me:$LINENO: result: yes" >&5
17377
echo "${ECHO_T}yes" >&6
17379
# FIXME - insert some real tests, host_os isn't really good enough
17382
if test -n "$STRIP" ; then
17383
striplib="$STRIP -x"
17384
echo "$as_me:$LINENO: result: yes" >&5
17385
echo "${ECHO_T}yes" >&6
17387
echo "$as_me:$LINENO: result: no" >&5
17388
echo "${ECHO_T}no" >&6
17392
echo "$as_me:$LINENO: result: no" >&5
17393
echo "${ECHO_T}no" >&6
17398
if test "x$enable_dlopen" != xyes; then
17399
enable_dlopen=unknown
17400
enable_dlopen_self=unknown
17401
enable_dlopen_self_static=unknown
17408
lt_cv_dlopen="load_add_on"
17410
lt_cv_dlopen_self=yes
17414
lt_cv_dlopen="LoadLibrary"
17419
lt_cv_dlopen="dlopen"
17424
# if libdl is installed we need to link against it
17425
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17426
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17427
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17428
echo $ECHO_N "(cached) $ECHO_C" >&6
17430
ac_check_lib_save_LIBS=$LIBS
17432
cat >conftest.$ac_ext <<_ACEOF
17435
cat confdefs.h >>conftest.$ac_ext
17436
cat >>conftest.$ac_ext <<_ACEOF
17437
/* end confdefs.h. */
17439
/* Override any gcc2 internal prototype to avoid an error. */
17443
/* We use char because int might match the return type of a gcc2
17444
builtin and then its argument prototype would still apply. */
17454
rm -f conftest.$ac_objext conftest$ac_exeext
17455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17456
(eval $ac_link) 2>conftest.er1
17458
grep -v '^ *+' conftest.er1 >conftest.err
17460
cat conftest.err >&5
17461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462
(exit $ac_status); } &&
17463
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465
(eval $ac_try) 2>&5
17467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468
(exit $ac_status); }; } &&
17469
{ ac_try='test -s conftest$ac_exeext'
17470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471
(eval $ac_try) 2>&5
17473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474
(exit $ac_status); }; }; then
17475
ac_cv_lib_dl_dlopen=yes
17477
echo "$as_me: failed program was:" >&5
17478
sed 's/^/| /' conftest.$ac_ext >&5
17480
ac_cv_lib_dl_dlopen=no
17482
rm -f conftest.err conftest.$ac_objext \
17483
conftest$ac_exeext conftest.$ac_ext
17484
LIBS=$ac_check_lib_save_LIBS
17486
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17487
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17488
if test $ac_cv_lib_dl_dlopen = yes; then
17489
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17492
lt_cv_dlopen="dyld"
17494
lt_cv_dlopen_self=yes
17501
echo "$as_me:$LINENO: checking for shl_load" >&5
17502
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17503
if test "${ac_cv_func_shl_load+set}" = set; then
17504
echo $ECHO_N "(cached) $ECHO_C" >&6
17506
cat >conftest.$ac_ext <<_ACEOF
17509
cat confdefs.h >>conftest.$ac_ext
17510
cat >>conftest.$ac_ext <<_ACEOF
17511
/* end confdefs.h. */
17512
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17513
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17514
#define shl_load innocuous_shl_load
17516
/* System header to define __stub macros and hopefully few prototypes,
17517
which can conflict with char shl_load (); below.
17518
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17519
<limits.h> exists even on freestanding compilers. */
17522
# include <limits.h>
17524
# include <assert.h>
17529
/* Override any gcc2 internal prototype to avoid an error. */
17534
/* We use char because int might match the return type of a gcc2
17535
builtin and then its argument prototype would still apply. */
17537
/* The GNU C library defines this for functions which it implements
17538
to always fail with ENOSYS. Some functions are actually named
17539
something starting with __ and the normal name is an alias. */
17540
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17543
char (*f) () = shl_load;
17552
return f != shl_load;
17557
rm -f conftest.$ac_objext conftest$ac_exeext
17558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17559
(eval $ac_link) 2>conftest.er1
17561
grep -v '^ *+' conftest.er1 >conftest.err
17563
cat conftest.err >&5
17564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565
(exit $ac_status); } &&
17566
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568
(eval $ac_try) 2>&5
17570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571
(exit $ac_status); }; } &&
17572
{ ac_try='test -s conftest$ac_exeext'
17573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574
(eval $ac_try) 2>&5
17576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577
(exit $ac_status); }; }; then
17578
ac_cv_func_shl_load=yes
17580
echo "$as_me: failed program was:" >&5
17581
sed 's/^/| /' conftest.$ac_ext >&5
17583
ac_cv_func_shl_load=no
17585
rm -f conftest.err conftest.$ac_objext \
17586
conftest$ac_exeext conftest.$ac_ext
17588
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17589
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17590
if test $ac_cv_func_shl_load = yes; then
17591
lt_cv_dlopen="shl_load"
17593
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17594
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17595
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17596
echo $ECHO_N "(cached) $ECHO_C" >&6
17598
ac_check_lib_save_LIBS=$LIBS
17600
cat >conftest.$ac_ext <<_ACEOF
17603
cat confdefs.h >>conftest.$ac_ext
17604
cat >>conftest.$ac_ext <<_ACEOF
17605
/* end confdefs.h. */
17607
/* Override any gcc2 internal prototype to avoid an error. */
17611
/* We use char because int might match the return type of a gcc2
17612
builtin and then its argument prototype would still apply. */
17622
rm -f conftest.$ac_objext conftest$ac_exeext
17623
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624
(eval $ac_link) 2>conftest.er1
17626
grep -v '^ *+' conftest.er1 >conftest.err
17628
cat conftest.err >&5
17629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630
(exit $ac_status); } &&
17631
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633
(eval $ac_try) 2>&5
17635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636
(exit $ac_status); }; } &&
17637
{ ac_try='test -s conftest$ac_exeext'
17638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639
(eval $ac_try) 2>&5
17641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642
(exit $ac_status); }; }; then
17643
ac_cv_lib_dld_shl_load=yes
17645
echo "$as_me: failed program was:" >&5
17646
sed 's/^/| /' conftest.$ac_ext >&5
17648
ac_cv_lib_dld_shl_load=no
17650
rm -f conftest.err conftest.$ac_objext \
17651
conftest$ac_exeext conftest.$ac_ext
17652
LIBS=$ac_check_lib_save_LIBS
17654
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17655
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17656
if test $ac_cv_lib_dld_shl_load = yes; then
17657
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17659
echo "$as_me:$LINENO: checking for dlopen" >&5
17660
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17661
if test "${ac_cv_func_dlopen+set}" = set; then
17662
echo $ECHO_N "(cached) $ECHO_C" >&6
17664
cat >conftest.$ac_ext <<_ACEOF
17667
cat confdefs.h >>conftest.$ac_ext
17668
cat >>conftest.$ac_ext <<_ACEOF
17669
/* end confdefs.h. */
17670
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17671
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17672
#define dlopen innocuous_dlopen
17674
/* System header to define __stub macros and hopefully few prototypes,
17675
which can conflict with char dlopen (); below.
17676
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677
<limits.h> exists even on freestanding compilers. */
17680
# include <limits.h>
17682
# include <assert.h>
17687
/* Override any gcc2 internal prototype to avoid an error. */
17692
/* We use char because int might match the return type of a gcc2
17693
builtin and then its argument prototype would still apply. */
17695
/* The GNU C library defines this for functions which it implements
17696
to always fail with ENOSYS. Some functions are actually named
17697
something starting with __ and the normal name is an alias. */
17698
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17701
char (*f) () = dlopen;
17710
return f != dlopen;
17715
rm -f conftest.$ac_objext conftest$ac_exeext
17716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717
(eval $ac_link) 2>conftest.er1
17719
grep -v '^ *+' conftest.er1 >conftest.err
17721
cat conftest.err >&5
17722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723
(exit $ac_status); } &&
17724
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726
(eval $ac_try) 2>&5
17728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729
(exit $ac_status); }; } &&
17730
{ ac_try='test -s conftest$ac_exeext'
17731
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732
(eval $ac_try) 2>&5
17734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735
(exit $ac_status); }; }; then
17736
ac_cv_func_dlopen=yes
17738
echo "$as_me: failed program was:" >&5
17739
sed 's/^/| /' conftest.$ac_ext >&5
17741
ac_cv_func_dlopen=no
17743
rm -f conftest.err conftest.$ac_objext \
17744
conftest$ac_exeext conftest.$ac_ext
17746
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17747
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17748
if test $ac_cv_func_dlopen = yes; then
17749
lt_cv_dlopen="dlopen"
17751
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17752
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17753
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17754
echo $ECHO_N "(cached) $ECHO_C" >&6
17756
ac_check_lib_save_LIBS=$LIBS
17758
cat >conftest.$ac_ext <<_ACEOF
17761
cat confdefs.h >>conftest.$ac_ext
17762
cat >>conftest.$ac_ext <<_ACEOF
17763
/* end confdefs.h. */
17765
/* Override any gcc2 internal prototype to avoid an error. */
17769
/* We use char because int might match the return type of a gcc2
17770
builtin and then its argument prototype would still apply. */
17780
rm -f conftest.$ac_objext conftest$ac_exeext
17781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782
(eval $ac_link) 2>conftest.er1
17784
grep -v '^ *+' conftest.er1 >conftest.err
17786
cat conftest.err >&5
17787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788
(exit $ac_status); } &&
17789
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791
(eval $ac_try) 2>&5
17793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794
(exit $ac_status); }; } &&
17795
{ ac_try='test -s conftest$ac_exeext'
17796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797
(eval $ac_try) 2>&5
17799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800
(exit $ac_status); }; }; then
17801
ac_cv_lib_dl_dlopen=yes
17803
echo "$as_me: failed program was:" >&5
17804
sed 's/^/| /' conftest.$ac_ext >&5
17806
ac_cv_lib_dl_dlopen=no
17808
rm -f conftest.err conftest.$ac_objext \
17809
conftest$ac_exeext conftest.$ac_ext
17810
LIBS=$ac_check_lib_save_LIBS
17812
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17813
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17814
if test $ac_cv_lib_dl_dlopen = yes; then
17815
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17817
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17818
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17819
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17820
echo $ECHO_N "(cached) $ECHO_C" >&6
17822
ac_check_lib_save_LIBS=$LIBS
17823
LIBS="-lsvld $LIBS"
17824
cat >conftest.$ac_ext <<_ACEOF
17827
cat confdefs.h >>conftest.$ac_ext
17828
cat >>conftest.$ac_ext <<_ACEOF
17829
/* end confdefs.h. */
17831
/* Override any gcc2 internal prototype to avoid an error. */
17835
/* We use char because int might match the return type of a gcc2
17836
builtin and then its argument prototype would still apply. */
17846
rm -f conftest.$ac_objext conftest$ac_exeext
17847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17848
(eval $ac_link) 2>conftest.er1
17850
grep -v '^ *+' conftest.er1 >conftest.err
17852
cat conftest.err >&5
17853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854
(exit $ac_status); } &&
17855
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857
(eval $ac_try) 2>&5
17859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860
(exit $ac_status); }; } &&
17861
{ ac_try='test -s conftest$ac_exeext'
17862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863
(eval $ac_try) 2>&5
17865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
(exit $ac_status); }; }; then
17867
ac_cv_lib_svld_dlopen=yes
17869
echo "$as_me: failed program was:" >&5
17870
sed 's/^/| /' conftest.$ac_ext >&5
17872
ac_cv_lib_svld_dlopen=no
17874
rm -f conftest.err conftest.$ac_objext \
17875
conftest$ac_exeext conftest.$ac_ext
17876
LIBS=$ac_check_lib_save_LIBS
17878
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17879
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17880
if test $ac_cv_lib_svld_dlopen = yes; then
17881
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17883
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17884
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17885
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17886
echo $ECHO_N "(cached) $ECHO_C" >&6
17888
ac_check_lib_save_LIBS=$LIBS
17890
cat >conftest.$ac_ext <<_ACEOF
17893
cat confdefs.h >>conftest.$ac_ext
17894
cat >>conftest.$ac_ext <<_ACEOF
17895
/* end confdefs.h. */
17897
/* Override any gcc2 internal prototype to avoid an error. */
17901
/* We use char because int might match the return type of a gcc2
17902
builtin and then its argument prototype would still apply. */
17912
rm -f conftest.$ac_objext conftest$ac_exeext
17913
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914
(eval $ac_link) 2>conftest.er1
17916
grep -v '^ *+' conftest.er1 >conftest.err
17918
cat conftest.err >&5
17919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920
(exit $ac_status); } &&
17921
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923
(eval $ac_try) 2>&5
17925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926
(exit $ac_status); }; } &&
17927
{ ac_try='test -s conftest$ac_exeext'
17928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929
(eval $ac_try) 2>&5
17931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932
(exit $ac_status); }; }; then
17933
ac_cv_lib_dld_dld_link=yes
17935
echo "$as_me: failed program was:" >&5
17936
sed 's/^/| /' conftest.$ac_ext >&5
17938
ac_cv_lib_dld_dld_link=no
17940
rm -f conftest.err conftest.$ac_objext \
17941
conftest$ac_exeext conftest.$ac_ext
17942
LIBS=$ac_check_lib_save_LIBS
17944
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17945
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17946
if test $ac_cv_lib_dld_dld_link = yes; then
17947
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17968
if test "x$lt_cv_dlopen" != xno; then
17974
case $lt_cv_dlopen in
17976
save_CPPFLAGS="$CPPFLAGS"
17977
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17979
save_LDFLAGS="$LDFLAGS"
17980
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17983
LIBS="$lt_cv_dlopen_libs $LIBS"
17985
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17986
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17987
if test "${lt_cv_dlopen_self+set}" = set; then
17988
echo $ECHO_N "(cached) $ECHO_C" >&6
17990
if test "$cross_compiling" = yes; then :
17991
lt_cv_dlopen_self=cross
17993
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17994
lt_status=$lt_dlunknown
17995
cat > conftest.$ac_ext <<EOF
17996
#line 17996 "configure"
17997
#include "confdefs.h"
18006
# define LT_DLGLOBAL RTLD_GLOBAL
18009
# define LT_DLGLOBAL DL_GLOBAL
18011
# define LT_DLGLOBAL 0
18015
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18016
find out it does not work in some platform. */
18017
#ifndef LT_DLLAZY_OR_NOW
18019
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18022
# define LT_DLLAZY_OR_NOW DL_LAZY
18025
# define LT_DLLAZY_OR_NOW RTLD_NOW
18028
# define LT_DLLAZY_OR_NOW DL_NOW
18030
# define LT_DLLAZY_OR_NOW 0
18038
extern "C" void exit (int);
18041
void fnord() { int i=42;}
18044
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18045
int status = $lt_dlunknown;
18049
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18050
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18051
/* dlclose (self); */
18057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058
(eval $ac_link) 2>&5
18060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18062
(./conftest; exit; ) 2>/dev/null
18064
case x$lt_status in
18065
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18066
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18067
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18070
# compilation failed
18071
lt_cv_dlopen_self=no
18078
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18079
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18081
if test "x$lt_cv_dlopen_self" = xyes; then
18082
LDFLAGS="$LDFLAGS $link_static_flag"
18083
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18084
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18085
if test "${lt_cv_dlopen_self_static+set}" = set; then
18086
echo $ECHO_N "(cached) $ECHO_C" >&6
18088
if test "$cross_compiling" = yes; then :
18089
lt_cv_dlopen_self_static=cross
18091
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18092
lt_status=$lt_dlunknown
18093
cat > conftest.$ac_ext <<EOF
18094
#line 18094 "configure"
18095
#include "confdefs.h"
18104
# define LT_DLGLOBAL RTLD_GLOBAL
18107
# define LT_DLGLOBAL DL_GLOBAL
18109
# define LT_DLGLOBAL 0
18113
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18114
find out it does not work in some platform. */
18115
#ifndef LT_DLLAZY_OR_NOW
18117
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18120
# define LT_DLLAZY_OR_NOW DL_LAZY
18123
# define LT_DLLAZY_OR_NOW RTLD_NOW
18126
# define LT_DLLAZY_OR_NOW DL_NOW
18128
# define LT_DLLAZY_OR_NOW 0
18136
extern "C" void exit (int);
18139
void fnord() { int i=42;}
18142
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18143
int status = $lt_dlunknown;
18147
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18148
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18149
/* dlclose (self); */
18155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18156
(eval $ac_link) 2>&5
18158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18160
(./conftest; exit; ) 2>/dev/null
18162
case x$lt_status in
18163
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18164
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18165
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18168
# compilation failed
18169
lt_cv_dlopen_self_static=no
18176
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18177
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18180
CPPFLAGS="$save_CPPFLAGS"
18181
LDFLAGS="$save_LDFLAGS"
18186
case $lt_cv_dlopen_self in
18187
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18188
*) enable_dlopen_self=unknown ;;
18191
case $lt_cv_dlopen_self_static in
18192
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18193
*) enable_dlopen_self_static=unknown ;;
18198
# The else clause should only fire when bootstrapping the
18199
# libtool distribution, otherwise you forgot to ship ltmain.sh
18200
# with your package, and you will get complaints that there are
18201
# no rules to generate ltmain.sh.
18202
if test -f "$ltmain"; then
18203
# See if we are running on zsh, and set the options which allow our commands through
18204
# without removal of \ escapes.
18205
if test -n "${ZSH_VERSION+set}" ; then
18206
setopt NO_GLOB_SUBST
18208
# Now quote all the things that may contain metacharacters while being
18209
# careful not to overquote the AC_SUBSTed values. We take copies of the
18210
# variables and quote the copies for generation of the libtool script.
18211
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18213
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18214
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18215
deplibs_check_method reload_flag reload_cmds need_locks \
18216
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18217
lt_cv_sys_global_symbol_to_c_name_address \
18218
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18219
old_postinstall_cmds old_postuninstall_cmds \
18223
lt_prog_compiler_wl_GCJ \
18224
lt_prog_compiler_pic_GCJ \
18225
lt_prog_compiler_static_GCJ \
18226
lt_prog_compiler_no_builtin_flag_GCJ \
18227
export_dynamic_flag_spec_GCJ \
18228
thread_safe_flag_spec_GCJ \
18229
whole_archive_flag_spec_GCJ \
18230
enable_shared_with_static_runtimes_GCJ \
18231
old_archive_cmds_GCJ \
18232
old_archive_from_new_cmds_GCJ \
18233
predep_objects_GCJ \
18234
postdep_objects_GCJ \
18237
compiler_lib_search_path_GCJ \
18239
archive_expsym_cmds_GCJ \
18240
postinstall_cmds_GCJ \
18241
postuninstall_cmds_GCJ \
18242
old_archive_from_expsyms_cmds_GCJ \
18243
allow_undefined_flag_GCJ \
18244
no_undefined_flag_GCJ \
18245
export_symbols_cmds_GCJ \
18246
hardcode_libdir_flag_spec_GCJ \
18247
hardcode_libdir_flag_spec_ld_GCJ \
18248
hardcode_libdir_separator_GCJ \
18249
hardcode_automatic_GCJ \
18251
module_expsym_cmds_GCJ \
18252
lt_cv_prog_compiler_c_o_GCJ \
18253
exclude_expsyms_GCJ \
18254
include_expsyms_GCJ; do
18257
old_archive_cmds_GCJ | \
18258
old_archive_from_new_cmds_GCJ | \
18259
archive_cmds_GCJ | \
18260
archive_expsym_cmds_GCJ | \
18261
module_cmds_GCJ | \
18262
module_expsym_cmds_GCJ | \
18263
old_archive_from_expsyms_cmds_GCJ | \
18264
export_symbols_cmds_GCJ | \
18265
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18266
postinstall_cmds | postuninstall_cmds | \
18267
old_postinstall_cmds | old_postuninstall_cmds | \
18268
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18269
# Double-quote double-evaled strings.
18270
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18273
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18279
*'\$0 --fallback-echo"')
18280
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18286
cat <<__EOF__ >> "$cfgfile"
18287
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18289
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18291
# Shell to use when invoking shell scripts.
18294
# Whether or not to build shared libraries.
18295
build_libtool_libs=$enable_shared
18297
# Whether or not to build static libraries.
18298
build_old_libs=$enable_static
18300
# Whether or not to add -lc for building shared libraries.
18301
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18303
# Whether or not to disallow shared libs when runtime libs are static
18304
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18306
# Whether or not to optimize for fast installation.
18307
fast_install=$enable_fast_install
18310
host_alias=$host_alias
18313
# An echo program that does not interpret backslashes.
18318
AR_FLAGS=$lt_AR_FLAGS
18323
# A language-specific compiler.
18324
CC=$lt_compiler_GCJ
18326
# Is the compiler the GNU C compiler?
18332
# The linker used to build libraries.
18335
# Whether we need hard or soft links.
18338
# A BSD-compatible nm program.
18341
# A symbol stripping program
18344
# Used to examine libraries when file_magic_cmd begins "file"
18345
MAGIC_CMD=$MAGIC_CMD
18347
# Used on cygwin: DLL creation program.
18350
# Used on cygwin: object dumper.
18353
# Used on cygwin: assembler.
18356
# The name of the directory that contains temporary libtool files.
18359
# How to create reloadable object files.
18360
reload_flag=$lt_reload_flag
18361
reload_cmds=$lt_reload_cmds
18363
# How to pass a linker flag through the compiler.
18364
wl=$lt_lt_prog_compiler_wl_GCJ
18366
# Object file suffix (normally "o").
18367
objext="$ac_objext"
18369
# Old archive suffix (normally "a").
18372
# Shared library suffix (normally ".so").
18373
shrext_cmds='$shrext_cmds'
18375
# Executable file suffix (normally "").
18378
# Additional compiler flags for building library objects.
18379
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18382
# What is the maximum length of a command?
18383
max_cmd_len=$lt_cv_sys_max_cmd_len
18385
# Does compiler simultaneously support -c and -o options?
18386
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18388
# Must we lock files when doing compilation ?
18389
need_locks=$lt_need_locks
18391
# Do we need the lib prefix for modules?
18392
need_lib_prefix=$need_lib_prefix
18394
# Do we need a version for libraries?
18395
need_version=$need_version
18397
# Whether dlopen is supported.
18398
dlopen_support=$enable_dlopen
18400
# Whether dlopen of programs is supported.
18401
dlopen_self=$enable_dlopen_self
18403
# Whether dlopen of statically linked programs is supported.
18404
dlopen_self_static=$enable_dlopen_self_static
18406
# Compiler flag to prevent dynamic linking.
18407
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18409
# Compiler flag to turn off builtin functions.
18410
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18412
# Compiler flag to allow reflexive dlopens.
18413
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18415
# Compiler flag to generate shared objects directly from archives.
18416
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18418
# Compiler flag to generate thread-safe objects.
18419
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18421
# Library versioning type.
18422
version_type=$version_type
18424
# Format of library name prefix.
18425
libname_spec=$lt_libname_spec
18427
# List of archive names. First name is the real one, the rest are links.
18428
# The last name is the one that the linker finds with -lNAME.
18429
library_names_spec=$lt_library_names_spec
18431
# The coded name of the library, if different from the real name.
18432
soname_spec=$lt_soname_spec
18434
# Commands used to build and install an old-style archive.
18436
old_archive_cmds=$lt_old_archive_cmds_GCJ
18437
old_postinstall_cmds=$lt_old_postinstall_cmds
18438
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18440
# Create an old-style archive from a shared archive.
18441
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18443
# Create a temporary old-style archive to link instead of a shared archive.
18444
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18446
# Commands used to build and install a shared archive.
18447
archive_cmds=$lt_archive_cmds_GCJ
18448
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18449
postinstall_cmds=$lt_postinstall_cmds
18450
postuninstall_cmds=$lt_postuninstall_cmds
18452
# Commands used to build a loadable module (assumed same as above if empty)
18453
module_cmds=$lt_module_cmds_GCJ
18454
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18456
# Commands to strip libraries.
18457
old_striplib=$lt_old_striplib
18458
striplib=$lt_striplib
18460
# Dependencies to place before the objects being linked to create a
18462
predep_objects=$lt_predep_objects_GCJ
18464
# Dependencies to place after the objects being linked to create a
18466
postdep_objects=$lt_postdep_objects_GCJ
18468
# Dependencies to place before the objects being linked to create a
18470
predeps=$lt_predeps_GCJ
18472
# Dependencies to place after the objects being linked to create a
18474
postdeps=$lt_postdeps_GCJ
18476
# The library search path used internally by the compiler when linking
18477
# a shared library.
18478
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18480
# Method to check whether dependent libraries are shared objects.
18481
deplibs_check_method=$lt_deplibs_check_method
18483
# Command to use when deplibs_check_method == file_magic.
18484
file_magic_cmd=$lt_file_magic_cmd
18486
# Flag that allows shared libraries with undefined symbols to be built.
18487
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18489
# Flag that forces no undefined symbols.
18490
no_undefined_flag=$lt_no_undefined_flag_GCJ
18492
# Commands used to finish a libtool library installation in a directory.
18493
finish_cmds=$lt_finish_cmds
18495
# Same as above, but a single script fragment to be evaled but not shown.
18496
finish_eval=$lt_finish_eval
18498
# Take the output of nm and produce a listing of raw symbols and C names.
18499
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18501
# Transform the output of nm in a proper C declaration
18502
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18504
# Transform the output of nm in a C name address pair
18505
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18507
# This is the shared library runtime path variable.
18508
runpath_var=$runpath_var
18510
# This is the shared library path variable.
18511
shlibpath_var=$shlibpath_var
18513
# Is shlibpath searched before the hard-coded library search path?
18514
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18516
# How to hardcode a shared library path into an executable.
18517
hardcode_action=$hardcode_action_GCJ
18519
# Whether we should hardcode library paths into libraries.
18520
hardcode_into_libs=$hardcode_into_libs
18522
# Flag to hardcode \$libdir into a binary during linking.
18523
# This must work even if \$libdir does not exist.
18524
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18526
# If ld is used when linking, flag to hardcode \$libdir into
18527
# a binary during linking. This must work even if \$libdir does
18529
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18531
# Whether we need a single -rpath flag with a separated argument.
18532
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18534
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18535
# resulting binary.
18536
hardcode_direct=$hardcode_direct_GCJ
18538
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18539
# resulting binary.
18540
hardcode_minus_L=$hardcode_minus_L_GCJ
18542
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18543
# the resulting binary.
18544
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18546
# Set to yes if building a shared library automatically hardcodes DIR into the library
18547
# and all subsequent libraries and executables linked against it.
18548
hardcode_automatic=$hardcode_automatic_GCJ
18550
# Variables whose values should be saved in libtool wrapper scripts and
18551
# restored at relink time.
18552
variables_saved_for_relink="$variables_saved_for_relink"
18554
# Whether libtool must link a program against all its dependency libraries.
18555
link_all_deplibs=$link_all_deplibs_GCJ
18557
# Compile-time system search path for libraries
18558
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18560
# Run-time system search path for libraries
18561
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18563
# Fix the shell variable \$srcfile for the compiler.
18564
fix_srcfile_path="$fix_srcfile_path_GCJ"
18566
# Set to yes if exported symbols are required.
18567
always_export_symbols=$always_export_symbols_GCJ
18569
# The commands to list exported symbols.
18570
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18572
# The commands to extract the exported symbol list from a shared archive.
18573
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18575
# Symbols that should not be listed in the preloaded symbols.
18576
exclude_expsyms=$lt_exclude_expsyms_GCJ
18578
# Symbols that must always be exported.
18579
include_expsyms=$lt_include_expsyms_GCJ
18581
# ### END LIBTOOL TAG CONFIG: $tagname
18587
# If there is no Makefile yet, we rely on a make rule to execute
18588
# `config.status --recheck' to rerun these tests and create the
18589
# libtool script then.
18590
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18591
if test -f "$ltmain_in"; then
18592
test -f Makefile && make "$ltmain"
18598
ac_cpp='$CPP $CPPFLAGS'
18599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
# Source file extension for RC test sources.
18617
# Object file extension for compiled RC test sources.
18621
# Code to be used in simple compile tests
18622
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18624
# Code to be used in simple link tests
18625
lt_simple_link_test_code="$lt_simple_compile_test_code"
18627
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18629
# If no C compiler was specified, use CC.
18632
# Allow CC to be a program name with arguments.
18636
# Allow CC to be a program name with arguments.
18641
lt_cv_prog_compiler_c_o_RC=yes
18643
# The else clause should only fire when bootstrapping the
18644
# libtool distribution, otherwise you forgot to ship ltmain.sh
18645
# with your package, and you will get complaints that there are
18646
# no rules to generate ltmain.sh.
18647
if test -f "$ltmain"; then
18648
# See if we are running on zsh, and set the options which allow our commands through
18649
# without removal of \ escapes.
18650
if test -n "${ZSH_VERSION+set}" ; then
18651
setopt NO_GLOB_SUBST
18653
# Now quote all the things that may contain metacharacters while being
18654
# careful not to overquote the AC_SUBSTed values. We take copies of the
18655
# variables and quote the copies for generation of the libtool script.
18656
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18658
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18659
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18660
deplibs_check_method reload_flag reload_cmds need_locks \
18661
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18662
lt_cv_sys_global_symbol_to_c_name_address \
18663
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18664
old_postinstall_cmds old_postuninstall_cmds \
18668
lt_prog_compiler_wl_RC \
18669
lt_prog_compiler_pic_RC \
18670
lt_prog_compiler_static_RC \
18671
lt_prog_compiler_no_builtin_flag_RC \
18672
export_dynamic_flag_spec_RC \
18673
thread_safe_flag_spec_RC \
18674
whole_archive_flag_spec_RC \
18675
enable_shared_with_static_runtimes_RC \
18676
old_archive_cmds_RC \
18677
old_archive_from_new_cmds_RC \
18678
predep_objects_RC \
18679
postdep_objects_RC \
18682
compiler_lib_search_path_RC \
18684
archive_expsym_cmds_RC \
18685
postinstall_cmds_RC \
18686
postuninstall_cmds_RC \
18687
old_archive_from_expsyms_cmds_RC \
18688
allow_undefined_flag_RC \
18689
no_undefined_flag_RC \
18690
export_symbols_cmds_RC \
18691
hardcode_libdir_flag_spec_RC \
18692
hardcode_libdir_flag_spec_ld_RC \
18693
hardcode_libdir_separator_RC \
18694
hardcode_automatic_RC \
18696
module_expsym_cmds_RC \
18697
lt_cv_prog_compiler_c_o_RC \
18698
exclude_expsyms_RC \
18699
include_expsyms_RC; do
18702
old_archive_cmds_RC | \
18703
old_archive_from_new_cmds_RC | \
18704
archive_cmds_RC | \
18705
archive_expsym_cmds_RC | \
18707
module_expsym_cmds_RC | \
18708
old_archive_from_expsyms_cmds_RC | \
18709
export_symbols_cmds_RC | \
18710
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18711
postinstall_cmds | postuninstall_cmds | \
18712
old_postinstall_cmds | old_postuninstall_cmds | \
18713
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18714
# Double-quote double-evaled strings.
18715
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18718
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18724
*'\$0 --fallback-echo"')
18725
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18731
cat <<__EOF__ >> "$cfgfile"
18732
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18734
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18736
# Shell to use when invoking shell scripts.
18739
# Whether or not to build shared libraries.
18740
build_libtool_libs=$enable_shared
18742
# Whether or not to build static libraries.
18743
build_old_libs=$enable_static
18745
# Whether or not to add -lc for building shared libraries.
18746
build_libtool_need_lc=$archive_cmds_need_lc_RC
18748
# Whether or not to disallow shared libs when runtime libs are static
18749
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18751
# Whether or not to optimize for fast installation.
18752
fast_install=$enable_fast_install
18755
host_alias=$host_alias
18758
# An echo program that does not interpret backslashes.
18763
AR_FLAGS=$lt_AR_FLAGS
18768
# A language-specific compiler.
18771
# Is the compiler the GNU C compiler?
18777
# The linker used to build libraries.
18780
# Whether we need hard or soft links.
18783
# A BSD-compatible nm program.
18786
# A symbol stripping program
18789
# Used to examine libraries when file_magic_cmd begins "file"
18790
MAGIC_CMD=$MAGIC_CMD
18792
# Used on cygwin: DLL creation program.
18795
# Used on cygwin: object dumper.
18798
# Used on cygwin: assembler.
18801
# The name of the directory that contains temporary libtool files.
18804
# How to create reloadable object files.
18805
reload_flag=$lt_reload_flag
18806
reload_cmds=$lt_reload_cmds
18808
# How to pass a linker flag through the compiler.
18809
wl=$lt_lt_prog_compiler_wl_RC
18811
# Object file suffix (normally "o").
18812
objext="$ac_objext"
18814
# Old archive suffix (normally "a").
18817
# Shared library suffix (normally ".so").
18818
shrext_cmds='$shrext_cmds'
18820
# Executable file suffix (normally "").
18823
# Additional compiler flags for building library objects.
18824
pic_flag=$lt_lt_prog_compiler_pic_RC
18827
# What is the maximum length of a command?
18828
max_cmd_len=$lt_cv_sys_max_cmd_len
18830
# Does compiler simultaneously support -c and -o options?
18831
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18833
# Must we lock files when doing compilation ?
18834
need_locks=$lt_need_locks
18836
# Do we need the lib prefix for modules?
18837
need_lib_prefix=$need_lib_prefix
18839
# Do we need a version for libraries?
18840
need_version=$need_version
18842
# Whether dlopen is supported.
18843
dlopen_support=$enable_dlopen
18845
# Whether dlopen of programs is supported.
18846
dlopen_self=$enable_dlopen_self
18848
# Whether dlopen of statically linked programs is supported.
18849
dlopen_self_static=$enable_dlopen_self_static
18851
# Compiler flag to prevent dynamic linking.
18852
link_static_flag=$lt_lt_prog_compiler_static_RC
18854
# Compiler flag to turn off builtin functions.
18855
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18857
# Compiler flag to allow reflexive dlopens.
18858
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18860
# Compiler flag to generate shared objects directly from archives.
18861
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18863
# Compiler flag to generate thread-safe objects.
18864
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18866
# Library versioning type.
18867
version_type=$version_type
18869
# Format of library name prefix.
18870
libname_spec=$lt_libname_spec
18872
# List of archive names. First name is the real one, the rest are links.
18873
# The last name is the one that the linker finds with -lNAME.
18874
library_names_spec=$lt_library_names_spec
18876
# The coded name of the library, if different from the real name.
18877
soname_spec=$lt_soname_spec
18879
# Commands used to build and install an old-style archive.
18881
old_archive_cmds=$lt_old_archive_cmds_RC
18882
old_postinstall_cmds=$lt_old_postinstall_cmds
18883
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18885
# Create an old-style archive from a shared archive.
18886
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18888
# Create a temporary old-style archive to link instead of a shared archive.
18889
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18891
# Commands used to build and install a shared archive.
18892
archive_cmds=$lt_archive_cmds_RC
18893
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18894
postinstall_cmds=$lt_postinstall_cmds
18895
postuninstall_cmds=$lt_postuninstall_cmds
18897
# Commands used to build a loadable module (assumed same as above if empty)
18898
module_cmds=$lt_module_cmds_RC
18899
module_expsym_cmds=$lt_module_expsym_cmds_RC
18901
# Commands to strip libraries.
18902
old_striplib=$lt_old_striplib
18903
striplib=$lt_striplib
18905
# Dependencies to place before the objects being linked to create a
18907
predep_objects=$lt_predep_objects_RC
18909
# Dependencies to place after the objects being linked to create a
18911
postdep_objects=$lt_postdep_objects_RC
18913
# Dependencies to place before the objects being linked to create a
18915
predeps=$lt_predeps_RC
18917
# Dependencies to place after the objects being linked to create a
18919
postdeps=$lt_postdeps_RC
18921
# The library search path used internally by the compiler when linking
18922
# a shared library.
18923
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18925
# Method to check whether dependent libraries are shared objects.
18926
deplibs_check_method=$lt_deplibs_check_method
18928
# Command to use when deplibs_check_method == file_magic.
18929
file_magic_cmd=$lt_file_magic_cmd
18931
# Flag that allows shared libraries with undefined symbols to be built.
18932
allow_undefined_flag=$lt_allow_undefined_flag_RC
18934
# Flag that forces no undefined symbols.
18935
no_undefined_flag=$lt_no_undefined_flag_RC
18937
# Commands used to finish a libtool library installation in a directory.
18938
finish_cmds=$lt_finish_cmds
18940
# Same as above, but a single script fragment to be evaled but not shown.
18941
finish_eval=$lt_finish_eval
18943
# Take the output of nm and produce a listing of raw symbols and C names.
18944
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18946
# Transform the output of nm in a proper C declaration
18947
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18949
# Transform the output of nm in a C name address pair
18950
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18952
# This is the shared library runtime path variable.
18953
runpath_var=$runpath_var
18955
# This is the shared library path variable.
18956
shlibpath_var=$shlibpath_var
18958
# Is shlibpath searched before the hard-coded library search path?
18959
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18961
# How to hardcode a shared library path into an executable.
18962
hardcode_action=$hardcode_action_RC
18964
# Whether we should hardcode library paths into libraries.
18965
hardcode_into_libs=$hardcode_into_libs
18967
# Flag to hardcode \$libdir into a binary during linking.
18968
# This must work even if \$libdir does not exist.
18969
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18971
# If ld is used when linking, flag to hardcode \$libdir into
18972
# a binary during linking. This must work even if \$libdir does
18974
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18976
# Whether we need a single -rpath flag with a separated argument.
18977
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18979
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18980
# resulting binary.
18981
hardcode_direct=$hardcode_direct_RC
18983
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18984
# resulting binary.
18985
hardcode_minus_L=$hardcode_minus_L_RC
18987
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18988
# the resulting binary.
18989
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18991
# Set to yes if building a shared library automatically hardcodes DIR into the library
18992
# and all subsequent libraries and executables linked against it.
18993
hardcode_automatic=$hardcode_automatic_RC
18995
# Variables whose values should be saved in libtool wrapper scripts and
18996
# restored at relink time.
18997
variables_saved_for_relink="$variables_saved_for_relink"
18999
# Whether libtool must link a program against all its dependency libraries.
19000
link_all_deplibs=$link_all_deplibs_RC
19002
# Compile-time system search path for libraries
19003
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19005
# Run-time system search path for libraries
19006
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19008
# Fix the shell variable \$srcfile for the compiler.
19009
fix_srcfile_path="$fix_srcfile_path_RC"
19011
# Set to yes if exported symbols are required.
19012
always_export_symbols=$always_export_symbols_RC
19014
# The commands to list exported symbols.
19015
export_symbols_cmds=$lt_export_symbols_cmds_RC
19017
# The commands to extract the exported symbol list from a shared archive.
19018
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19020
# Symbols that should not be listed in the preloaded symbols.
19021
exclude_expsyms=$lt_exclude_expsyms_RC
19023
# Symbols that must always be exported.
19024
include_expsyms=$lt_include_expsyms_RC
19026
# ### END LIBTOOL TAG CONFIG: $tagname
19032
# If there is no Makefile yet, we rely on a make rule to execute
19033
# `config.status --recheck' to rerun these tests and create the
19034
# libtool script then.
19035
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19036
if test -f "$ltmain_in"; then
19037
test -f Makefile && make "$ltmain"
19043
ac_cpp='$CPP $CPPFLAGS'
19044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19053
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19054
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19055
{ (exit 1); exit 1; }; }
19059
# Append the new tag name to the list of available tags.
19060
if test -n "$tagname" ; then
19061
available_tags="$available_tags $tagname"
19067
# Now substitute the updated list of available tags.
19068
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19069
mv "${ofile}T" "$ofile"
19073
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19074
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19075
{ (exit 1); exit 1; }; }
19081
# This can be used to rebuild libtool when needed
19082
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19084
# Always use our own libtool.
19085
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19087
# Prevent multiple expansion
19109
ac_cpp='$CPP $CPPFLAGS'
19110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19113
if test -n "$ac_tool_prefix"; then
19114
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19115
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19116
echo "$as_me:$LINENO: checking for $ac_word" >&5
19117
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19118
if test "${ac_cv_prog_CC+set}" = set; then
19119
echo $ECHO_N "(cached) $ECHO_C" >&6
19121
if test -n "$CC"; then
19122
ac_cv_prog_CC="$CC" # Let the user override the test.
19124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125
for as_dir in $PATH
19128
test -z "$as_dir" && as_dir=.
19129
for ac_exec_ext in '' $ac_executable_extensions; do
19130
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19131
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19132
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19141
if test -n "$CC"; then
19142
echo "$as_me:$LINENO: result: $CC" >&5
19143
echo "${ECHO_T}$CC" >&6
19145
echo "$as_me:$LINENO: result: no" >&5
19146
echo "${ECHO_T}no" >&6
19150
if test -z "$ac_cv_prog_CC"; then
19152
# Extract the first word of "gcc", so it can be a program name with args.
19153
set dummy gcc; ac_word=$2
19154
echo "$as_me:$LINENO: checking for $ac_word" >&5
19155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19156
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19157
echo $ECHO_N "(cached) $ECHO_C" >&6
19159
if test -n "$ac_ct_CC"; then
19160
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19163
for as_dir in $PATH
19166
test -z "$as_dir" && as_dir=.
19167
for ac_exec_ext in '' $ac_executable_extensions; do
19168
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19169
ac_cv_prog_ac_ct_CC="gcc"
19170
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19179
if test -n "$ac_ct_CC"; then
19180
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19181
echo "${ECHO_T}$ac_ct_CC" >&6
19183
echo "$as_me:$LINENO: result: no" >&5
19184
echo "${ECHO_T}no" >&6
19189
CC="$ac_cv_prog_CC"
19192
if test -z "$CC"; then
19193
if test -n "$ac_tool_prefix"; then
19194
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19195
set dummy ${ac_tool_prefix}cc; ac_word=$2
19196
echo "$as_me:$LINENO: checking for $ac_word" >&5
19197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19198
if test "${ac_cv_prog_CC+set}" = set; then
19199
echo $ECHO_N "(cached) $ECHO_C" >&6
19201
if test -n "$CC"; then
19202
ac_cv_prog_CC="$CC" # Let the user override the test.
19204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19205
for as_dir in $PATH
19208
test -z "$as_dir" && as_dir=.
19209
for ac_exec_ext in '' $ac_executable_extensions; do
19210
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19211
ac_cv_prog_CC="${ac_tool_prefix}cc"
19212
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19221
if test -n "$CC"; then
19222
echo "$as_me:$LINENO: result: $CC" >&5
19223
echo "${ECHO_T}$CC" >&6
19225
echo "$as_me:$LINENO: result: no" >&5
19226
echo "${ECHO_T}no" >&6
19230
if test -z "$ac_cv_prog_CC"; then
19232
# Extract the first word of "cc", so it can be a program name with args.
19233
set dummy cc; ac_word=$2
19234
echo "$as_me:$LINENO: checking for $ac_word" >&5
19235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19236
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19237
echo $ECHO_N "(cached) $ECHO_C" >&6
19239
if test -n "$ac_ct_CC"; then
19240
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19243
for as_dir in $PATH
19246
test -z "$as_dir" && as_dir=.
19247
for ac_exec_ext in '' $ac_executable_extensions; do
19248
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19249
ac_cv_prog_ac_ct_CC="cc"
19250
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19258
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19259
if test -n "$ac_ct_CC"; then
19260
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19261
echo "${ECHO_T}$ac_ct_CC" >&6
19263
echo "$as_me:$LINENO: result: no" >&5
19264
echo "${ECHO_T}no" >&6
19269
CC="$ac_cv_prog_CC"
19273
if test -z "$CC"; then
19274
# Extract the first word of "cc", so it can be a program name with args.
19275
set dummy cc; ac_word=$2
19276
echo "$as_me:$LINENO: checking for $ac_word" >&5
19277
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19278
if test "${ac_cv_prog_CC+set}" = set; then
19279
echo $ECHO_N "(cached) $ECHO_C" >&6
19281
if test -n "$CC"; then
19282
ac_cv_prog_CC="$CC" # Let the user override the test.
19284
ac_prog_rejected=no
19285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19286
for as_dir in $PATH
19289
test -z "$as_dir" && as_dir=.
19290
for ac_exec_ext in '' $ac_executable_extensions; do
19291
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19292
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19293
ac_prog_rejected=yes
19297
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19303
if test $ac_prog_rejected = yes; then
19304
# We found a bogon in the path, so make sure we never use it.
19305
set dummy $ac_cv_prog_CC
19307
if test $# != 0; then
19308
# We chose a different compiler from the bogus one.
19309
# However, it has the same basename, so the bogon will be chosen
19310
# first if we set CC to just the basename; use the full file name.
19312
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19318
if test -n "$CC"; then
19319
echo "$as_me:$LINENO: result: $CC" >&5
19320
echo "${ECHO_T}$CC" >&6
19322
echo "$as_me:$LINENO: result: no" >&5
19323
echo "${ECHO_T}no" >&6
19327
if test -z "$CC"; then
19328
if test -n "$ac_tool_prefix"; then
19331
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19332
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19333
echo "$as_me:$LINENO: checking for $ac_word" >&5
19334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19335
if test "${ac_cv_prog_CC+set}" = set; then
19336
echo $ECHO_N "(cached) $ECHO_C" >&6
19338
if test -n "$CC"; then
19339
ac_cv_prog_CC="$CC" # Let the user override the test.
19341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19342
for as_dir in $PATH
19345
test -z "$as_dir" && as_dir=.
19346
for ac_exec_ext in '' $ac_executable_extensions; do
19347
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19348
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19349
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19358
if test -n "$CC"; then
19359
echo "$as_me:$LINENO: result: $CC" >&5
19360
echo "${ECHO_T}$CC" >&6
19362
echo "$as_me:$LINENO: result: no" >&5
19363
echo "${ECHO_T}no" >&6
19366
test -n "$CC" && break
19369
if test -z "$CC"; then
19373
# Extract the first word of "$ac_prog", so it can be a program name with args.
19374
set dummy $ac_prog; ac_word=$2
19375
echo "$as_me:$LINENO: checking for $ac_word" >&5
19376
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19377
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19378
echo $ECHO_N "(cached) $ECHO_C" >&6
19380
if test -n "$ac_ct_CC"; then
19381
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19384
for as_dir in $PATH
19387
test -z "$as_dir" && as_dir=.
19388
for ac_exec_ext in '' $ac_executable_extensions; do
19389
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19390
ac_cv_prog_ac_ct_CC="$ac_prog"
19391
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19399
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19400
if test -n "$ac_ct_CC"; then
19401
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19402
echo "${ECHO_T}$ac_ct_CC" >&6
19404
echo "$as_me:$LINENO: result: no" >&5
19405
echo "${ECHO_T}no" >&6
19408
test -n "$ac_ct_CC" && break
19417
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19418
See \`config.log' for more details." >&5
19419
echo "$as_me: error: no acceptable C compiler found in \$PATH
19420
See \`config.log' for more details." >&2;}
19421
{ (exit 1); exit 1; }; }
19423
# Provide some information about the compiler.
19424
echo "$as_me:$LINENO:" \
19425
"checking for C compiler version" >&5
19426
ac_compiler=`set X $ac_compile; echo $2`
19427
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19428
(eval $ac_compiler --version </dev/null >&5) 2>&5
19430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431
(exit $ac_status); }
19432
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19433
(eval $ac_compiler -v </dev/null >&5) 2>&5
19435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436
(exit $ac_status); }
19437
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19438
(eval $ac_compiler -V </dev/null >&5) 2>&5
19440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441
(exit $ac_status); }
19443
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19444
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19445
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19446
echo $ECHO_N "(cached) $ECHO_C" >&6
19448
cat >conftest.$ac_ext <<_ACEOF
19451
cat confdefs.h >>conftest.$ac_ext
19452
cat >>conftest.$ac_ext <<_ACEOF
19453
/* end confdefs.h. */
19466
rm -f conftest.$ac_objext
19467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19468
(eval $ac_compile) 2>conftest.er1
19470
grep -v '^ *+' conftest.er1 >conftest.err
19472
cat conftest.err >&5
19473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474
(exit $ac_status); } &&
19475
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477
(eval $ac_try) 2>&5
19479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480
(exit $ac_status); }; } &&
19481
{ ac_try='test -s conftest.$ac_objext'
19482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483
(eval $ac_try) 2>&5
19485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486
(exit $ac_status); }; }; then
19487
ac_compiler_gnu=yes
19489
echo "$as_me: failed program was:" >&5
19490
sed 's/^/| /' conftest.$ac_ext >&5
19494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19495
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19498
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19499
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19500
GCC=`test $ac_compiler_gnu = yes && echo yes`
19501
ac_test_CFLAGS=${CFLAGS+set}
19502
ac_save_CFLAGS=$CFLAGS
19504
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19505
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19506
if test "${ac_cv_prog_cc_g+set}" = set; then
19507
echo $ECHO_N "(cached) $ECHO_C" >&6
19509
cat >conftest.$ac_ext <<_ACEOF
19512
cat confdefs.h >>conftest.$ac_ext
19513
cat >>conftest.$ac_ext <<_ACEOF
19514
/* end confdefs.h. */
19524
rm -f conftest.$ac_objext
19525
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19526
(eval $ac_compile) 2>conftest.er1
19528
grep -v '^ *+' conftest.er1 >conftest.err
19530
cat conftest.err >&5
19531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532
(exit $ac_status); } &&
19533
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535
(eval $ac_try) 2>&5
19537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538
(exit $ac_status); }; } &&
19539
{ ac_try='test -s conftest.$ac_objext'
19540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541
(eval $ac_try) 2>&5
19543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544
(exit $ac_status); }; }; then
19545
ac_cv_prog_cc_g=yes
19547
echo "$as_me: failed program was:" >&5
19548
sed 's/^/| /' conftest.$ac_ext >&5
19552
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19554
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19555
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19556
if test "$ac_test_CFLAGS" = set; then
19557
CFLAGS=$ac_save_CFLAGS
19558
elif test $ac_cv_prog_cc_g = yes; then
19559
if test "$GCC" = yes; then
19565
if test "$GCC" = yes; then
19571
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19572
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19573
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19574
echo $ECHO_N "(cached) $ECHO_C" >&6
19576
ac_cv_prog_cc_stdc=no
19578
cat >conftest.$ac_ext <<_ACEOF
19581
cat confdefs.h >>conftest.$ac_ext
19582
cat >>conftest.$ac_ext <<_ACEOF
19583
/* end confdefs.h. */
19584
#include <stdarg.h>
19586
#include <sys/types.h>
19587
#include <sys/stat.h>
19588
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19589
struct buf { int x; };
19590
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19591
static char *e (p, i)
19597
static char *f (char * (*g) (char **, int), char **p, ...)
19602
s = g (p, va_arg (v,int));
19607
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19608
function prototypes and stuff, but not '\xHH' hex character constants.
19609
These don't provoke an error unfortunately, instead are silently treated
19610
as 'x'. The following induces an error, until -std1 is added to get
19611
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19612
array size at least. It's necessary to write '\x00'==0 to get something
19613
that's true only with -std1. */
19614
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19616
int test (int i, double x);
19617
struct s1 {int (*f) (int a);};
19618
struct s2 {int (*f) (double a);};
19619
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19625
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19630
# Don't try gcc -ansi; that turns off useful extensions and
19631
# breaks some systems' header files.
19632
# AIX -qlanglvl=ansi
19633
# Ultrix and OSF/1 -std1
19634
# HP-UX 10.20 and later -Ae
19635
# HP-UX older versions -Aa -D_HPUX_SOURCE
19636
# SVR4 -Xc -D__EXTENSIONS__
19637
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19639
CC="$ac_save_CC $ac_arg"
19640
rm -f conftest.$ac_objext
19641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642
(eval $ac_compile) 2>conftest.er1
19644
grep -v '^ *+' conftest.er1 >conftest.err
19646
cat conftest.err >&5
19647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648
(exit $ac_status); } &&
19649
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651
(eval $ac_try) 2>&5
19653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654
(exit $ac_status); }; } &&
19655
{ ac_try='test -s conftest.$ac_objext'
19656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657
(eval $ac_try) 2>&5
19659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660
(exit $ac_status); }; }; then
19661
ac_cv_prog_cc_stdc=$ac_arg
19664
echo "$as_me: failed program was:" >&5
19665
sed 's/^/| /' conftest.$ac_ext >&5
19668
rm -f conftest.err conftest.$ac_objext
19670
rm -f conftest.$ac_ext conftest.$ac_objext
19675
case "x$ac_cv_prog_cc_stdc" in
19677
echo "$as_me:$LINENO: result: none needed" >&5
19678
echo "${ECHO_T}none needed" >&6 ;;
19680
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19681
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19682
CC="$CC $ac_cv_prog_cc_stdc" ;;
19685
# Some people use a C++ compiler to compile C. Since we use `exit',
19686
# in C++ we need to declare it. In case someone uses the same compiler
19687
# for both compiling C and C++ we need to have the C++ compiler decide
19688
# the declaration of exit, since it's the most demanding environment.
19689
cat >conftest.$ac_ext <<_ACEOF
19690
#ifndef __cplusplus
19694
rm -f conftest.$ac_objext
19695
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696
(eval $ac_compile) 2>conftest.er1
19698
grep -v '^ *+' conftest.er1 >conftest.err
19700
cat conftest.err >&5
19701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702
(exit $ac_status); } &&
19703
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705
(eval $ac_try) 2>&5
19707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708
(exit $ac_status); }; } &&
19709
{ ac_try='test -s conftest.$ac_objext'
19710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711
(eval $ac_try) 2>&5
19713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714
(exit $ac_status); }; }; then
19715
for ac_declaration in \
19717
'extern "C" void std::exit (int) throw (); using std::exit;' \
19718
'extern "C" void std::exit (int); using std::exit;' \
19719
'extern "C" void exit (int) throw ();' \
19720
'extern "C" void exit (int);' \
19723
cat >conftest.$ac_ext <<_ACEOF
19726
cat confdefs.h >>conftest.$ac_ext
19727
cat >>conftest.$ac_ext <<_ACEOF
19728
/* end confdefs.h. */
19730
#include <stdlib.h>
19739
rm -f conftest.$ac_objext
19740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19741
(eval $ac_compile) 2>conftest.er1
19743
grep -v '^ *+' conftest.er1 >conftest.err
19745
cat conftest.err >&5
19746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747
(exit $ac_status); } &&
19748
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750
(eval $ac_try) 2>&5
19752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753
(exit $ac_status); }; } &&
19754
{ ac_try='test -s conftest.$ac_objext'
19755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756
(eval $ac_try) 2>&5
19758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759
(exit $ac_status); }; }; then
19762
echo "$as_me: failed program was:" >&5
19763
sed 's/^/| /' conftest.$ac_ext >&5
19767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19768
cat >conftest.$ac_ext <<_ACEOF
19771
cat confdefs.h >>conftest.$ac_ext
19772
cat >>conftest.$ac_ext <<_ACEOF
19773
/* end confdefs.h. */
19783
rm -f conftest.$ac_objext
19784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19785
(eval $ac_compile) 2>conftest.er1
19787
grep -v '^ *+' conftest.er1 >conftest.err
19789
cat conftest.err >&5
19790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791
(exit $ac_status); } &&
19792
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794
(eval $ac_try) 2>&5
19796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797
(exit $ac_status); }; } &&
19798
{ ac_try='test -s conftest.$ac_objext'
19799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800
(eval $ac_try) 2>&5
19802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803
(exit $ac_status); }; }; then
19806
echo "$as_me: failed program was:" >&5
19807
sed 's/^/| /' conftest.$ac_ext >&5
19810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19813
if test -n "$ac_declaration"; then
19814
echo '#ifdef __cplusplus' >>confdefs.h
19815
echo $ac_declaration >>confdefs.h
19816
echo '#endif' >>confdefs.h
19820
echo "$as_me: failed program was:" >&5
19821
sed 's/^/| /' conftest.$ac_ext >&5
19824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19826
ac_cpp='$CPP $CPPFLAGS'
19827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19831
depcc="$CC" am_compiler_list=
19833
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19834
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19835
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19836
echo $ECHO_N "(cached) $ECHO_C" >&6
19838
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19839
# We make a subdir and do the tests there. Otherwise we can end up
19840
# making bogus files that we don't know about and never remove. For
19841
# instance it was reported that on HP-UX the gcc test will end up
19842
# making a dummy file named `D' -- because `-MD' means `put the output
19845
# Copy depcomp to subdir because otherwise we won't find it if we're
19846
# using a relative directory.
19847
cp "$am_depcomp" conftest.dir
19849
# We will build objects and dependencies in a subdirectory because
19850
# it helps to detect inapplicable dependency modes. For instance
19851
# both Tru64's cc and ICC support -MD to output dependencies as a
19852
# side effect of compilation, but ICC will put the dependencies in
19853
# the current directory while Tru64 will put them in the object
19857
am_cv_CC_dependencies_compiler_type=none
19858
if test "$am_compiler_list" = ""; then
19859
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19861
for depmode in $am_compiler_list; do
19862
# Setup a source with many dependencies, because some compilers
19863
# like to wrap large dependency lists on column 80 (with \), and
19864
# we should not choose a depcomp mode which is confused by this.
19866
# We need to recreate these files for each test, as the compiler may
19867
# overwrite some of them when testing with obscure command lines.
19868
# This happens at least with the AIX C compiler.
19870
for i in 1 2 3 4 5 6; do
19871
echo '#include "conftst'$i'.h"' >> sub/conftest.c
19872
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19873
# Solaris 8's {/usr,}/bin/sh.
19874
touch sub/conftst$i.h
19876
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19880
# after this tag, mechanisms are not by side-effect, so they'll
19881
# only be used when explicitly requested
19882
if test "x$enable_dependency_tracking" = xyes; then
19890
# We check with `-c' and `-o' for the sake of the "dashmstdout"
19891
# mode. It turns out that the SunPro C++ compiler does not properly
19892
# handle `-M -o', and we need to detect this.
19893
if depmode=$depmode \
19894
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19895
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19896
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19897
>/dev/null 2>conftest.err &&
19898
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19899
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19900
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19901
# icc doesn't choke on unknown options, it will just issue warnings
19902
# or remarks (even with -Werror). So we grep stderr for any message
19903
# that says an option was ignored or not supported.
19904
# When given -MP, icc 7.0 and 7.1 complain thusly:
19905
# icc: Command line warning: ignoring option '-M'; no argument required
19906
# The diagnosis changed in icc 8.0:
19907
# icc: Command line remark: option '-MP' not supported
19908
if (grep 'ignoring option' conftest.err ||
19909
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19910
am_cv_CC_dependencies_compiler_type=$depmode
19917
rm -rf conftest.dir
19919
am_cv_CC_dependencies_compiler_type=none
19923
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19924
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19925
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19930
test "x$enable_dependency_tracking" != xno \
19931
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19932
am__fastdepCC_TRUE=
19933
am__fastdepCC_FALSE='#'
19935
am__fastdepCC_TRUE='#'
19936
am__fastdepCC_FALSE=
19941
# Checks for pkg-config packages
19944
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19945
if test -n "$ac_tool_prefix"; then
19946
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19947
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19948
echo "$as_me:$LINENO: checking for $ac_word" >&5
19949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19950
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19951
echo $ECHO_N "(cached) $ECHO_C" >&6
19953
case $PKG_CONFIG in
19955
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19959
for as_dir in $PATH
19962
test -z "$as_dir" && as_dir=.
19963
for ac_exec_ext in '' $ac_executable_extensions; do
19964
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19965
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19966
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19975
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19977
if test -n "$PKG_CONFIG"; then
19978
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19979
echo "${ECHO_T}$PKG_CONFIG" >&6
19981
echo "$as_me:$LINENO: result: no" >&5
19982
echo "${ECHO_T}no" >&6
19986
if test -z "$ac_cv_path_PKG_CONFIG"; then
19987
ac_pt_PKG_CONFIG=$PKG_CONFIG
19988
# Extract the first word of "pkg-config", so it can be a program name with args.
19989
set dummy pkg-config; ac_word=$2
19990
echo "$as_me:$LINENO: checking for $ac_word" >&5
19991
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19992
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19993
echo $ECHO_N "(cached) $ECHO_C" >&6
19995
case $ac_pt_PKG_CONFIG in
19997
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20001
for as_dir in $PATH
20004
test -z "$as_dir" && as_dir=.
20005
for ac_exec_ext in '' $ac_executable_extensions; do
20006
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20007
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20008
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20017
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20019
if test -n "$ac_pt_PKG_CONFIG"; then
20020
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20021
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20023
echo "$as_me:$LINENO: result: no" >&5
20024
echo "${ECHO_T}no" >&6
20027
PKG_CONFIG=$ac_pt_PKG_CONFIG
20029
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20033
if test -n "$PKG_CONFIG"; then
20034
_pkg_min_version=0.9.0
20035
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20036
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20037
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20038
echo "$as_me:$LINENO: result: yes" >&5
20039
echo "${ECHO_T}yes" >&6
20041
echo "$as_me:$LINENO: result: no" >&5
20042
echo "${ECHO_T}no" >&6
20049
echo "$as_me:$LINENO: checking for XPM" >&5
20050
echo $ECHO_N "checking for XPM... $ECHO_C" >&6
20052
if test -n "$PKG_CONFIG"; then
20053
if test -n "$PKG_CONFIG" && \
20054
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5
20055
($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
20057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058
(exit $ac_status); }; then
20059
pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
20066
if test -n "$PKG_CONFIG"; then
20067
if test -n "$PKG_CONFIG" && \
20068
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5
20069
($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
20071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072
(exit $ac_status); }; then
20073
pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
20081
if test $pkg_failed = yes; then
20082
XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11"`
20083
# Put the nasty error message in config.log where it belongs
20084
echo "$XPM_PKG_ERRORS" 1>&5
20086
{ { echo "$as_me:$LINENO: error: Package requirements (xproto x11) were not met.
20087
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20088
installed software in a non-standard prefix.
20090
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
20091
to avoid the need to call pkg-config. See the pkg-config man page for
20093
echo "$as_me: error: Package requirements (xproto x11) were not met.
20094
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20095
installed software in a non-standard prefix.
20097
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
20098
to avoid the need to call pkg-config. See the pkg-config man page for
20099
more details." >&2;}
20100
{ (exit 1); exit 1; }; }
20101
elif test $pkg_failed = untried; then
20102
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20103
is in your PATH or set the PKG_CONFIG environment variable to the full
20104
path to pkg-config.
20106
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
20107
to avoid the need to call pkg-config. See the pkg-config man page for
20110
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20111
See \`config.log' for more details." >&5
20112
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20113
is in your PATH or set the PKG_CONFIG environment variable to the full
20114
path to pkg-config.
20116
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
20117
to avoid the need to call pkg-config. See the pkg-config man page for
20120
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20121
See \`config.log' for more details." >&2;}
20122
{ (exit 1); exit 1; }; }
20124
XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
20125
XPM_LIBS=$pkg_cv_XPM_LIBS
20131
# Checks for header files.
20132
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20133
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20134
if test "${ac_cv_header_stdc+set}" = set; then
20135
echo $ECHO_N "(cached) $ECHO_C" >&6
20137
cat >conftest.$ac_ext <<_ACEOF
20140
cat confdefs.h >>conftest.$ac_ext
20141
cat >>conftest.$ac_ext <<_ACEOF
20142
/* end confdefs.h. */
20143
#include <stdlib.h>
20144
#include <stdarg.h>
20145
#include <string.h>
20156
rm -f conftest.$ac_objext
20157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158
(eval $ac_compile) 2>conftest.er1
20160
grep -v '^ *+' conftest.er1 >conftest.err
20162
cat conftest.err >&5
20163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164
(exit $ac_status); } &&
20165
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167
(eval $ac_try) 2>&5
20169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170
(exit $ac_status); }; } &&
20171
{ ac_try='test -s conftest.$ac_objext'
20172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173
(eval $ac_try) 2>&5
20175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176
(exit $ac_status); }; }; then
20177
ac_cv_header_stdc=yes
20179
echo "$as_me: failed program was:" >&5
20180
sed 's/^/| /' conftest.$ac_ext >&5
20182
ac_cv_header_stdc=no
20184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20186
if test $ac_cv_header_stdc = yes; then
20187
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20188
cat >conftest.$ac_ext <<_ACEOF
20191
cat confdefs.h >>conftest.$ac_ext
20192
cat >>conftest.$ac_ext <<_ACEOF
20193
/* end confdefs.h. */
20194
#include <string.h>
20197
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20198
$EGREP "memchr" >/dev/null 2>&1; then
20201
ac_cv_header_stdc=no
20207
if test $ac_cv_header_stdc = yes; then
20208
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20209
cat >conftest.$ac_ext <<_ACEOF
20212
cat confdefs.h >>conftest.$ac_ext
20213
cat >>conftest.$ac_ext <<_ACEOF
20214
/* end confdefs.h. */
20215
#include <stdlib.h>
20218
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20219
$EGREP "free" >/dev/null 2>&1; then
20222
ac_cv_header_stdc=no
20228
if test $ac_cv_header_stdc = yes; then
20229
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20230
if test "$cross_compiling" = yes; then
20233
cat >conftest.$ac_ext <<_ACEOF
20236
cat confdefs.h >>conftest.$ac_ext
20237
cat >>conftest.$ac_ext <<_ACEOF
20238
/* end confdefs.h. */
20240
#if ((' ' & 0x0FF) == 0x020)
20241
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20242
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20244
# define ISLOWER(c) \
20245
(('a' <= (c) && (c) <= 'i') \
20246
|| ('j' <= (c) && (c) <= 'r') \
20247
|| ('s' <= (c) && (c) <= 'z'))
20248
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20251
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20256
for (i = 0; i < 256; i++)
20257
if (XOR (islower (i), ISLOWER (i))
20258
|| toupper (i) != TOUPPER (i))
20263
rm -f conftest$ac_exeext
20264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265
(eval $ac_link) 2>&5
20267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270
(eval $ac_try) 2>&5
20272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273
(exit $ac_status); }; }; then
20276
echo "$as_me: program exited with status $ac_status" >&5
20277
echo "$as_me: failed program was:" >&5
20278
sed 's/^/| /' conftest.$ac_ext >&5
20280
( exit $ac_status )
20281
ac_cv_header_stdc=no
20283
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20287
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20288
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20289
if test $ac_cv_header_stdc = yes; then
20291
cat >>confdefs.h <<\_ACEOF
20292
#define STDC_HEADERS 1
20298
# Checks for functions
20300
for ac_func in strlcat
20302
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20303
echo "$as_me:$LINENO: checking for $ac_func" >&5
20304
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20305
if eval "test \"\${$as_ac_var+set}\" = set"; then
20306
echo $ECHO_N "(cached) $ECHO_C" >&6
20308
cat >conftest.$ac_ext <<_ACEOF
20311
cat confdefs.h >>conftest.$ac_ext
20312
cat >>conftest.$ac_ext <<_ACEOF
20313
/* end confdefs.h. */
20314
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20315
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20316
#define $ac_func innocuous_$ac_func
20318
/* System header to define __stub macros and hopefully few prototypes,
20319
which can conflict with char $ac_func (); below.
20320
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20321
<limits.h> exists even on freestanding compilers. */
20324
# include <limits.h>
20326
# include <assert.h>
20331
/* Override any gcc2 internal prototype to avoid an error. */
20336
/* We use char because int might match the return type of a gcc2
20337
builtin and then its argument prototype would still apply. */
20339
/* The GNU C library defines this for functions which it implements
20340
to always fail with ENOSYS. Some functions are actually named
20341
something starting with __ and the normal name is an alias. */
20342
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20345
char (*f) () = $ac_func;
20354
return f != $ac_func;
20359
rm -f conftest.$ac_objext conftest$ac_exeext
20360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20361
(eval $ac_link) 2>conftest.er1
20363
grep -v '^ *+' conftest.er1 >conftest.err
20365
cat conftest.err >&5
20366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367
(exit $ac_status); } &&
20368
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370
(eval $ac_try) 2>&5
20372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
(exit $ac_status); }; } &&
20374
{ ac_try='test -s conftest$ac_exeext'
20375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376
(eval $ac_try) 2>&5
20378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379
(exit $ac_status); }; }; then
20380
eval "$as_ac_var=yes"
20382
echo "$as_me: failed program was:" >&5
20383
sed 's/^/| /' conftest.$ac_ext >&5
20385
eval "$as_ac_var=no"
20387
rm -f conftest.err conftest.$ac_objext \
20388
conftest$ac_exeext conftest.$ac_ext
20390
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20391
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20392
if test `eval echo '${'$as_ac_var'}'` = yes; then
20393
cat >>confdefs.h <<_ACEOF
20394
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20401
# Checks for typedefs, structures, and compiler characteristics.
20403
if test "x$GCC" = "xyes"; then
20404
GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
20405
-Wmissing-prototypes -Wmissing-declarations \
20406
-Wnested-externs -fno-strict-aliasing"
20407
CFLAGS="$GCC_WARNINGS $CFLAGS"
20413
echo "$as_me:$LINENO: checking for SXPM" >&5
20414
echo $ECHO_N "checking for SXPM... $ECHO_C" >&6
20416
if test -n "$PKG_CONFIG"; then
20417
if test -n "$PKG_CONFIG" && \
20418
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext\"") >&5
20419
($PKG_CONFIG --exists --print-errors "xt xext") 2>&5
20421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422
(exit $ac_status); }; then
20423
pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "xt xext" 2>/dev/null`
20430
if test -n "$PKG_CONFIG"; then
20431
if test -n "$PKG_CONFIG" && \
20432
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext\"") >&5
20433
($PKG_CONFIG --exists --print-errors "xt xext") 2>&5
20435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436
(exit $ac_status); }; then
20437
pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "xt xext" 2>/dev/null`
20445
if test $pkg_failed = yes; then
20446
SXPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt xext"`
20447
# Put the nasty error message in config.log where it belongs
20448
echo "$SXPM_PKG_ERRORS" 1>&5
20451
elif test $pkg_failed = untried; then
20454
SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
20455
SXPM_LIBS=$pkg_cv_SXPM_LIBS
20461
if test x$build_sxpm = xtrue; then
20463
BUILD_SXPM_FALSE='#'
20465
BUILD_SXPM_TRUE='#'
20470
ac_config_files="$ac_config_files Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
20471
cat >confcache <<\_ACEOF
20472
# This file is a shell script that caches the results of configure
20473
# tests run on this system so they can be shared between configure
20474
# scripts and configure runs, see configure's option --config-cache.
20475
# It is not useful on other systems. If it contains results you don't
20476
# want to keep, you may remove or edit it.
20478
# config.status only pays attention to the cache file if you give it
20479
# the --recheck option to rerun configure.
20481
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20482
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20483
# following values.
20487
# The following way of writing the cache mishandles newlines in values,
20488
# but we know of no workaround that is simple, portable, and efficient.
20489
# So, don't put newlines in cache variables' values.
20490
# Ultrix sh set writes to stderr and can't be redirected directly,
20491
# and sets the high bit in the cache file unless we assign to the vars.
20494
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20496
# `set' does not quote correctly, so add quotes (double-quote
20497
# substitution turns \\\\ into \\, and sed turns \\ into \).
20500
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20503
# `set' quotes correctly as required by POSIX, so do not add quotes.
20505
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20512
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20514
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20516
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20517
if test -w $cache_file; then
20518
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20519
cat confcache >$cache_file
20521
echo "not updating unwritable cache $cache_file"
20526
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20527
# Let make expand exec_prefix.
20528
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20530
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20531
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20532
# trailing colons and then remove the whole line if VPATH becomes empty
20533
# (actually we leave an empty line to preserve line numbers).
20534
if test "x$srcdir" = x.; then
20535
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20536
s/:*\$(srcdir):*/:/;
20537
s/:*\${srcdir}:*/:/;
20539
s/^\([^=]*=[ ]*\):*/\1/;
20545
DEFS=-DHAVE_CONFIG_H
20549
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20550
# 1. Remove the extension, and $U if already installed.
20551
ac_i=`echo "$ac_i" |
20552
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20554
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20555
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20557
LIBOBJS=$ac_libobjs
20559
LTLIBOBJS=$ac_ltlibobjs
20562
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20563
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20564
Usually this means the macro was only invoked conditionally." >&5
20565
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20566
Usually this means the macro was only invoked conditionally." >&2;}
20567
{ (exit 1); exit 1; }; }
20569
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20570
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20571
Usually this means the macro was only invoked conditionally." >&5
20572
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20573
Usually this means the macro was only invoked conditionally." >&2;}
20574
{ (exit 1); exit 1; }; }
20576
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20577
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20578
Usually this means the macro was only invoked conditionally." >&5
20579
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20580
Usually this means the macro was only invoked conditionally." >&2;}
20581
{ (exit 1); exit 1; }; }
20583
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20584
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20585
Usually this means the macro was only invoked conditionally." >&5
20586
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20587
Usually this means the macro was only invoked conditionally." >&2;}
20588
{ (exit 1); exit 1; }; }
20590
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20591
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20592
Usually this means the macro was only invoked conditionally." >&5
20593
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20594
Usually this means the macro was only invoked conditionally." >&2;}
20595
{ (exit 1); exit 1; }; }
20597
if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
20598
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SXPM\" was never defined.
20599
Usually this means the macro was only invoked conditionally." >&5
20600
echo "$as_me: error: conditional \"BUILD_SXPM\" was never defined.
20601
Usually this means the macro was only invoked conditionally." >&2;}
20602
{ (exit 1); exit 1; }; }
20605
: ${CONFIG_STATUS=./config.status}
20606
ac_clean_files_save=$ac_clean_files
20607
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20608
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20609
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20610
cat >$CONFIG_STATUS <<_ACEOF
20612
# Generated by $as_me.
20613
# Run this file to recreate the current configuration.
20614
# Compiler output produced by configure, useful for debugging
20615
# configure, is in config.log if it exists.
20618
ac_cs_recheck=false
20620
SHELL=\${CONFIG_SHELL-$SHELL}
20623
cat >>$CONFIG_STATUS <<\_ACEOF
20624
## --------------------- ##
20625
## M4sh Initialization. ##
20626
## --------------------- ##
20628
# Be Bourne compatible
20629
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20632
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20633
# is contrary to our usage. Disable this feature.
20634
alias -g '${1+"$@"}'='"$@"'
20635
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20638
DUALCASE=1; export DUALCASE # for MKS sh
20640
# Support unset when possible.
20641
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20648
# Work around bugs in pre-3.0 UWIN ksh.
20649
$as_unset ENV MAIL MAILPATH
20656
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20657
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20658
LC_TELEPHONE LC_TIME
20660
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20661
eval $as_var=C; export $as_var
20667
# Required to use basename.
20668
if expr a : '\(a\)' >/dev/null 2>&1; then
20674
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20675
as_basename=basename
20681
# Name of the executable.
20682
as_me=`$as_basename "$0" ||
20683
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20684
X"$0" : 'X\(//\)$' \| \
20685
X"$0" : 'X\(/\)$' \| \
20686
. : '\(.\)' 2>/dev/null ||
20688
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20689
/^X\/\(\/\/\)$/{ s//\1/; q; }
20690
/^X\/\(\/\).*/{ s//\1/; q; }
20694
# PATH needs CR, and LINENO needs CR and PATH.
20695
# Avoid depending upon Character Ranges.
20696
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20697
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20698
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20699
as_cr_digits='0123456789'
20700
as_cr_alnum=$as_cr_Letters$as_cr_digits
20702
# The user is always right.
20703
if test "${PATH_SEPARATOR+set}" != set; then
20704
echo "#! /bin/sh" >conf$$.sh
20705
echo "exit 0" >>conf$$.sh
20707
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20716
as_lineno_1=$LINENO
20717
as_lineno_2=$LINENO
20718
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20719
test "x$as_lineno_1" != "x$as_lineno_2" &&
20720
test "x$as_lineno_3" = "x$as_lineno_2" || {
20721
# Find who we are. Look in the path if we contain no path at all
20724
*[\\/]* ) as_myself=$0 ;;
20725
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20726
for as_dir in $PATH
20729
test -z "$as_dir" && as_dir=.
20730
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20735
# We did not find ourselves, most probably we were run as `sh COMMAND'
20736
# in which case we are not to be found in the path.
20737
if test "x$as_myself" = x; then
20740
if test ! -f "$as_myself"; then
20741
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20742
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20743
{ (exit 1); exit 1; }; }
20745
case $CONFIG_SHELL in
20747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20751
test -z "$as_dir" && as_dir=.
20752
for as_base in sh bash ksh sh5; do
20755
if ("$as_dir/$as_base" -c '
20756
as_lineno_1=$LINENO
20757
as_lineno_2=$LINENO
20758
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20759
test "x$as_lineno_1" != "x$as_lineno_2" &&
20760
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20761
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20762
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20763
CONFIG_SHELL=$as_dir/$as_base
20764
export CONFIG_SHELL
20765
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20773
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20774
# uniformly replaced by the line number. The first 'sed' inserts a
20775
# line-number line before each line; the second 'sed' does the real
20776
# work. The second script uses 'N' to pair each line-number line
20777
# with the numbered line, and appends trailing '-' during
20778
# substitution so that $LINENO is not a special case at line end.
20779
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20780
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20781
sed '=' <$as_myself |
20786
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20789
s,^['$as_cr_digits']*\n,,
20790
' >$as_me.lineno &&
20791
chmod +x $as_me.lineno ||
20792
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20793
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20794
{ (exit 1); exit 1; }; }
20796
# Don't try to exec as it changes $[0], causing all sort of problems
20797
# (the dirname of $[0] is not the place where we might find the
20798
# original and so on. Autoconf is especially sensible to this).
20800
# Exit status is that of the last command.
20805
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20806
*c*,-n*) ECHO_N= ECHO_C='
20808
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20809
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20812
if expr a : '\(a\)' >/dev/null 2>&1; then
20818
rm -f conf$$ conf$$.exe conf$$.file
20820
if ln -s conf$$.file conf$$ 2>/dev/null; then
20821
# We could just check for DJGPP; but this test a) works b) is more generic
20822
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20823
if test -f conf$$.exe; then
20824
# Don't use ln at all; we don't have any links
20829
elif ln conf$$.file conf$$ 2>/dev/null; then
20834
rm -f conf$$ conf$$.exe conf$$.file
20836
if mkdir -p . 2>/dev/null; then
20839
test -d ./-p && rmdir ./-p
20843
as_executable_p="test -f"
20845
# Sed expression to map a string onto a valid CPP name.
20846
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20848
# Sed expression to map a string onto a valid variable name.
20849
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20853
# We need space, tab and new line, in precisely that order.
20863
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20864
# report actual input values of CONFIG_FILES etc. instead of their
20865
# values after options handling. Logging --version etc. is OK.
20869
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20870
## Running $as_me. ##
20875
This file was extended by libXpm $as_me 3.5.2, which was
20876
generated by GNU Autoconf 2.59. Invocation command line was
20878
CONFIG_FILES = $CONFIG_FILES
20879
CONFIG_HEADERS = $CONFIG_HEADERS
20880
CONFIG_LINKS = $CONFIG_LINKS
20881
CONFIG_COMMANDS = $CONFIG_COMMANDS
20885
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20889
# Files that config.status was made for.
20890
if test -n "$ac_config_files"; then
20891
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20894
if test -n "$ac_config_headers"; then
20895
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20898
if test -n "$ac_config_links"; then
20899
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20902
if test -n "$ac_config_commands"; then
20903
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20906
cat >>$CONFIG_STATUS <<\_ACEOF
20909
\`$as_me' instantiates files from templates according to the
20910
current configuration.
20912
Usage: $0 [OPTIONS] [FILE]...
20914
-h, --help print this help, then exit
20915
-V, --version print version number, then exit
20916
-q, --quiet do not print progress messages
20917
-d, --debug don't remove temporary files
20918
--recheck update $as_me by reconfiguring in the same conditions
20919
--file=FILE[:TEMPLATE]
20920
instantiate the configuration file FILE
20921
--header=FILE[:TEMPLATE]
20922
instantiate the configuration header FILE
20924
Configuration files:
20927
Configuration headers:
20930
Configuration commands:
20933
Report bugs to <bug-autoconf@gnu.org>."
20936
cat >>$CONFIG_STATUS <<_ACEOF
20938
libXpm config.status 3.5.2
20939
configured by $0, generated by GNU Autoconf 2.59,
20940
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20942
Copyright (C) 2003 Free Software Foundation, Inc.
20943
This config.status script is free software; the Free Software Foundation
20944
gives unlimited permission to copy, distribute and modify it."
20949
cat >>$CONFIG_STATUS <<\_ACEOF
20950
# If no file are specified by the user, then we need to provide default
20951
# value. By we need to know if files were specified by the user.
20957
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20958
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20966
*) # This is not an option, so the user has probably given explicit
20969
ac_need_defaults=false;;
20973
# Handling of the options.
20975
cat >>$CONFIG_STATUS <<\_ACEOF
20976
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20978
--version | --vers* | -V )
20979
echo "$ac_cs_version"; exit 0 ;;
20981
# Conflict between --help and --header
20982
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20983
Try \`$0 --help' for more information." >&5
20984
echo "$as_me: error: ambiguous option: $1
20985
Try \`$0 --help' for more information." >&2;}
20986
{ (exit 1); exit 1; }; };;
20987
--help | --hel | -h )
20988
echo "$ac_cs_usage"; exit 0 ;;
20989
--debug | --d* | -d )
20991
--file | --fil | --fi | --f )
20993
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20994
ac_need_defaults=false;;
20995
--header | --heade | --head | --hea )
20997
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20998
ac_need_defaults=false;;
20999
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21000
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21003
# This is an error.
21004
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21005
Try \`$0 --help' for more information." >&5
21006
echo "$as_me: error: unrecognized option: $1
21007
Try \`$0 --help' for more information." >&2;}
21008
{ (exit 1); exit 1; }; } ;;
21010
*) ac_config_targets="$ac_config_targets $1" ;;
21016
ac_configure_extra_args=
21018
if $ac_cs_silent; then
21020
ac_configure_extra_args="$ac_configure_extra_args --silent"
21024
cat >>$CONFIG_STATUS <<_ACEOF
21025
if \$ac_cs_recheck; then
21026
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21027
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21032
cat >>$CONFIG_STATUS <<_ACEOF
21034
# INIT-COMMANDS section.
21037
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21043
cat >>$CONFIG_STATUS <<\_ACEOF
21044
for ac_config_target in $ac_config_targets
21046
case "$ac_config_target" in
21047
# Handling of arguments.
21048
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21049
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21050
"sxpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
21051
"cxpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
21052
"xpm.pc" ) CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
21053
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21054
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21055
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21056
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21057
{ (exit 1); exit 1; }; };;
21061
# If the user did not use the arguments to specify the items to instantiate,
21062
# then the envvar interface is used. Set only those that are not.
21063
# We use the long form for the default assignment because of an extremely
21064
# bizarre bug on SunOS 4.1.3.
21065
if $ac_need_defaults; then
21066
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21067
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21068
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21071
# Have a temporary directory for convenience. Make it in the build tree
21072
# simply because there is no reason to put it here, and in addition,
21073
# creating and moving files from /tmp can sometimes cause problems.
21074
# Create a temporary directory, and hook for its removal unless debugging.
21077
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21078
trap '{ (exit 1); exit 1; }' 1 2 13 15
21081
# Create a (secure) tmp directory for tmp files.
21084
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21085
test -n "$tmp" && test -d "$tmp"
21088
tmp=./confstat$$-$RANDOM
21089
(umask 077 && mkdir $tmp)
21092
echo "$me: cannot create a temporary directory in ." >&2
21093
{ (exit 1); exit 1; }
21098
cat >>$CONFIG_STATUS <<_ACEOF
21101
# CONFIG_FILES section.
21104
# No need to generate the scripts if there are no CONFIG_FILES.
21105
# This happens for instance when ./config.status config.h
21106
if test -n "\$CONFIG_FILES"; then
21107
# Protect against being on the right side of a sed subst in config.status.
21108
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21109
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21110
s,@SHELL@,$SHELL,;t t
21111
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21112
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21113
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21114
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21115
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21116
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21117
s,@exec_prefix@,$exec_prefix,;t t
21118
s,@prefix@,$prefix,;t t
21119
s,@program_transform_name@,$program_transform_name,;t t
21120
s,@bindir@,$bindir,;t t
21121
s,@sbindir@,$sbindir,;t t
21122
s,@libexecdir@,$libexecdir,;t t
21123
s,@datadir@,$datadir,;t t
21124
s,@sysconfdir@,$sysconfdir,;t t
21125
s,@sharedstatedir@,$sharedstatedir,;t t
21126
s,@localstatedir@,$localstatedir,;t t
21127
s,@libdir@,$libdir,;t t
21128
s,@includedir@,$includedir,;t t
21129
s,@oldincludedir@,$oldincludedir,;t t
21130
s,@infodir@,$infodir,;t t
21131
s,@mandir@,$mandir,;t t
21132
s,@build_alias@,$build_alias,;t t
21133
s,@host_alias@,$host_alias,;t t
21134
s,@target_alias@,$target_alias,;t t
21135
s,@DEFS@,$DEFS,;t t
21136
s,@ECHO_C@,$ECHO_C,;t t
21137
s,@ECHO_N@,$ECHO_N,;t t
21138
s,@ECHO_T@,$ECHO_T,;t t
21139
s,@LIBS@,$LIBS,;t t
21140
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21141
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21142
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21143
s,@CYGPATH_W@,$CYGPATH_W,;t t
21144
s,@PACKAGE@,$PACKAGE,;t t
21145
s,@VERSION@,$VERSION,;t t
21146
s,@ACLOCAL@,$ACLOCAL,;t t
21147
s,@AUTOCONF@,$AUTOCONF,;t t
21148
s,@AUTOMAKE@,$AUTOMAKE,;t t
21149
s,@AUTOHEADER@,$AUTOHEADER,;t t
21150
s,@MAKEINFO@,$MAKEINFO,;t t
21151
s,@install_sh@,$install_sh,;t t
21152
s,@STRIP@,$STRIP,;t t
21153
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21154
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21155
s,@mkdir_p@,$mkdir_p,;t t
21157
s,@SET_MAKE@,$SET_MAKE,;t t
21158
s,@am__leading_dot@,$am__leading_dot,;t t
21159
s,@AMTAR@,$AMTAR,;t t
21160
s,@am__tar@,$am__tar,;t t
21161
s,@am__untar@,$am__untar,;t t
21162
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21163
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21164
s,@MAINT@,$MAINT,;t t
21165
s,@build@,$build,;t t
21166
s,@build_cpu@,$build_cpu,;t t
21167
s,@build_vendor@,$build_vendor,;t t
21168
s,@build_os@,$build_os,;t t
21169
s,@host@,$host,;t t
21170
s,@host_cpu@,$host_cpu,;t t
21171
s,@host_vendor@,$host_vendor,;t t
21172
s,@host_os@,$host_os,;t t
21174
s,@CFLAGS@,$CFLAGS,;t t
21175
s,@LDFLAGS@,$LDFLAGS,;t t
21176
s,@CPPFLAGS@,$CPPFLAGS,;t t
21177
s,@ac_ct_CC@,$ac_ct_CC,;t t
21178
s,@EXEEXT@,$EXEEXT,;t t
21179
s,@OBJEXT@,$OBJEXT,;t t
21180
s,@DEPDIR@,$DEPDIR,;t t
21181
s,@am__include@,$am__include,;t t
21182
s,@am__quote@,$am__quote,;t t
21183
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21184
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21185
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21186
s,@CCDEPMODE@,$CCDEPMODE,;t t
21187
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21188
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21189
s,@EGREP@,$EGREP,;t t
21190
s,@LN_S@,$LN_S,;t t
21191
s,@ECHO@,$ECHO,;t t
21193
s,@ac_ct_AR@,$ac_ct_AR,;t t
21194
s,@RANLIB@,$RANLIB,;t t
21195
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21198
s,@CXXFLAGS@,$CXXFLAGS,;t t
21199
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21200
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21201
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21202
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21203
s,@CXXCPP@,$CXXCPP,;t t
21205
s,@FFLAGS@,$FFLAGS,;t t
21206
s,@ac_ct_F77@,$ac_ct_F77,;t t
21207
s,@LIBTOOL@,$LIBTOOL,;t t
21208
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21209
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21210
s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
21211
s,@XPM_LIBS@,$XPM_LIBS,;t t
21212
s,@SXPM_CFLAGS@,$SXPM_CFLAGS,;t t
21213
s,@SXPM_LIBS@,$SXPM_LIBS,;t t
21214
s,@BUILD_SXPM_TRUE@,$BUILD_SXPM_TRUE,;t t
21215
s,@BUILD_SXPM_FALSE@,$BUILD_SXPM_FALSE,;t t
21216
s,@LIBOBJS@,$LIBOBJS,;t t
21217
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21222
cat >>$CONFIG_STATUS <<\_ACEOF
21223
# Split the substitutions into bite-sized pieces for seds with
21224
# small command number limits, like on Digital OSF/1 and HP-UX.
21225
ac_max_sed_lines=48
21226
ac_sed_frag=1 # Number of current file.
21227
ac_beg=1 # First line for current file.
21228
ac_end=$ac_max_sed_lines # Line after last line for current file.
21231
while $ac_more_lines; do
21232
if test $ac_beg -gt 1; then
21233
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21235
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21237
if test ! -s $tmp/subs.frag; then
21238
ac_more_lines=false
21240
# The purpose of the label and of the branching condition is to
21241
# speed up the sed processing (if there are no `@' at all, there
21242
# is no need to browse any of the substitutions).
21243
# These are the two extra sed commands mentioned above.
21245
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21246
if test -z "$ac_sed_cmds"; then
21247
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21249
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21251
ac_sed_frag=`expr $ac_sed_frag + 1`
21253
ac_end=`expr $ac_end + $ac_max_sed_lines`
21256
if test -z "$ac_sed_cmds"; then
21259
fi # test -n "$CONFIG_FILES"
21262
cat >>$CONFIG_STATUS <<\_ACEOF
21263
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21264
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21266
- | *:- | *:-:* ) # input from stdin
21268
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21269
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21270
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21271
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21272
* ) ac_file_in=$ac_file.in ;;
21275
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21276
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21277
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278
X"$ac_file" : 'X\(//\)[^/]' \| \
21279
X"$ac_file" : 'X\(//\)$' \| \
21280
X"$ac_file" : 'X\(/\)' \| \
21281
. : '\(.\)' 2>/dev/null ||
21283
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21284
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21285
/^X\(\/\/\)$/{ s//\1/; q; }
21286
/^X\(\/\).*/{ s//\1/; q; }
21288
{ if $as_mkdir_p; then
21293
while test ! -d "$as_dir"; do
21294
as_dirs="$as_dir $as_dirs"
21295
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21296
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21297
X"$as_dir" : 'X\(//\)[^/]' \| \
21298
X"$as_dir" : 'X\(//\)$' \| \
21299
X"$as_dir" : 'X\(/\)' \| \
21300
. : '\(.\)' 2>/dev/null ||
21302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21303
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21304
/^X\(\/\/\)$/{ s//\1/; q; }
21305
/^X\(\/\).*/{ s//\1/; q; }
21308
test ! -n "$as_dirs" || mkdir $as_dirs
21309
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21310
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21311
{ (exit 1); exit 1; }; }; }
21315
if test "$ac_dir" != .; then
21316
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21317
# A "../" for each directory in $ac_dir_suffix.
21318
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21320
ac_dir_suffix= ac_top_builddir=
21324
.) # No --srcdir option. We are building in place.
21326
if test -z "$ac_top_builddir"; then
21329
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21331
[\\/]* | ?:[\\/]* ) # Absolute path.
21332
ac_srcdir=$srcdir$ac_dir_suffix;
21333
ac_top_srcdir=$srcdir ;;
21334
*) # Relative path.
21335
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21336
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21339
# Do not use `cd foo && pwd` to compute absolute paths, because
21340
# the directories may not exist.
21342
.) ac_abs_builddir="$ac_dir";;
21345
.) ac_abs_builddir=`pwd`;;
21346
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21347
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21350
case $ac_abs_builddir in
21351
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21353
case ${ac_top_builddir}. in
21354
.) ac_abs_top_builddir=$ac_abs_builddir;;
21355
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21356
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21359
case $ac_abs_builddir in
21360
.) ac_abs_srcdir=$ac_srcdir;;
21363
.) ac_abs_srcdir=$ac_abs_builddir;;
21364
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21365
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21368
case $ac_abs_builddir in
21369
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21371
case $ac_top_srcdir in
21372
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21373
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21374
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21380
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21381
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21384
# Let's still pretend it is `configure' which instantiates (i.e., don't
21385
# use $as_me), people would be surprised to read:
21386
# /* config.h. Generated by config.status. */
21387
if test x"$ac_file" = x-; then
21390
configure_input="$ac_file. "
21392
configure_input=$configure_input"Generated from `echo $ac_file_in |
21393
sed 's,.*/,,'` by configure."
21395
# First look for the input files in the build tree, otherwise in the
21397
ac_file_inputs=`IFS=:
21398
for f in $ac_file_in; do
21400
-) echo $tmp/stdin ;;
21402
# Absolute (can't be DOS-style, as IFS=:)
21403
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21404
echo "$as_me: error: cannot find input file: $f" >&2;}
21405
{ (exit 1); exit 1; }; }
21408
if test -f "$f"; then
21411
elif test -f "$srcdir/$f"; then
21416
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21417
echo "$as_me: error: cannot find input file: $f" >&2;}
21418
{ (exit 1); exit 1; }; }
21421
done` || { (exit 1); exit 1; }
21423
if test x"$ac_file" != x-; then
21424
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21425
echo "$as_me: creating $ac_file" >&6;}
21429
cat >>$CONFIG_STATUS <<_ACEOF
21433
cat >>$CONFIG_STATUS <<\_ACEOF
21435
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21436
s,@configure_input@,$configure_input,;t t
21437
s,@srcdir@,$ac_srcdir,;t t
21438
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21439
s,@top_srcdir@,$ac_top_srcdir,;t t
21440
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21441
s,@builddir@,$ac_builddir,;t t
21442
s,@abs_builddir@,$ac_abs_builddir,;t t
21443
s,@top_builddir@,$ac_top_builddir,;t t
21444
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21445
s,@INSTALL@,$ac_INSTALL,;t t
21446
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21448
if test x"$ac_file" != x-; then
21449
mv $tmp/out $ac_file
21457
cat >>$CONFIG_STATUS <<\_ACEOF
21460
# CONFIG_HEADER section.
21463
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21464
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21466
# ac_d sets the value in "#define NAME VALUE" lines.
21467
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21468
ac_dB='[ ].*$,\1#\2'
21471
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21472
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21473
ac_uB='$,\1#\2define\3'
21477
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21478
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21480
- | *:- | *:-:* ) # input from stdin
21482
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21483
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21484
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21485
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21486
* ) ac_file_in=$ac_file.in ;;
21489
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21490
echo "$as_me: creating $ac_file" >&6;}
21492
# First look for the input files in the build tree, otherwise in the
21494
ac_file_inputs=`IFS=:
21495
for f in $ac_file_in; do
21497
-) echo $tmp/stdin ;;
21499
# Absolute (can't be DOS-style, as IFS=:)
21500
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21501
echo "$as_me: error: cannot find input file: $f" >&2;}
21502
{ (exit 1); exit 1; }; }
21503
# Do quote $f, to prevent DOS paths from being IFS'd.
21506
if test -f "$f"; then
21509
elif test -f "$srcdir/$f"; then
21514
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21515
echo "$as_me: error: cannot find input file: $f" >&2;}
21516
{ (exit 1); exit 1; }; }
21519
done` || { (exit 1); exit 1; }
21520
# Remove the trailing spaces.
21521
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21525
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21526
# `conftest.undefs', that substitutes the proper values into
21527
# config.h.in to produce config.h. The first handles `#define'
21528
# templates, and the second `#undef' templates.
21529
# And first: Protect against being on the right side of a sed subst in
21530
# config.status. Protect against being in an unquoted here document
21531
# in config.status.
21532
rm -f conftest.defines conftest.undefs
21533
# Using a here document instead of a string reduces the quoting nightmare.
21534
# Putting comments in sed scripts is not portable.
21536
# `end' is used to avoid that the second main sed command (meant for
21537
# 0-ary CPP macros) applies to n-ary macro definitions.
21538
# See the Autoconf documentation for `clear'.
21539
cat >confdef2sed.sed <<\_ACEOF
21544
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21546
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21549
# If some macros were called several times there might be several times
21550
# the same #defines, which is useless. Nevertheless, we may not want to
21551
# sort them, since we want the *last* AC-DEFINE to be honored.
21552
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21553
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21554
rm -f confdef2sed.sed
21556
# This sed command replaces #undef with comments. This is necessary, for
21557
# example, in the case of _POSIX_SOURCE, which is predefined and required
21558
# on some systems where configure will not decide to define it.
21559
cat >>conftest.undefs <<\_ACEOF
21560
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21563
# Break up conftest.defines because some shells have a limit on the size
21564
# of here documents, and old seds have small limits too (100 cmds).
21565
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21566
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21567
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21568
echo ' :' >>$CONFIG_STATUS
21569
rm -f conftest.tail
21570
while grep . conftest.defines >/dev/null
21572
# Write a limited-size here document to $tmp/defines.sed.
21573
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21574
# Speed up: don't consider the non `#define' lines.
21575
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21576
# Work around the forget-to-reset-the-flag bug.
21577
echo 't clr' >>$CONFIG_STATUS
21578
echo ': clr' >>$CONFIG_STATUS
21579
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21581
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21583
mv $tmp/out $tmp/in
21585
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21586
rm -f conftest.defines
21587
mv conftest.tail conftest.defines
21589
rm -f conftest.defines
21590
echo ' fi # grep' >>$CONFIG_STATUS
21591
echo >>$CONFIG_STATUS
21593
# Break up conftest.undefs because some shells have a limit on the size
21594
# of here documents, and old seds have small limits too (100 cmds).
21595
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21596
rm -f conftest.tail
21597
while grep . conftest.undefs >/dev/null
21599
# Write a limited-size here document to $tmp/undefs.sed.
21600
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21601
# Speed up: don't consider the non `#undef'
21602
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21603
# Work around the forget-to-reset-the-flag bug.
21604
echo 't clr' >>$CONFIG_STATUS
21605
echo ': clr' >>$CONFIG_STATUS
21606
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21608
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21610
mv $tmp/out $tmp/in
21612
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21613
rm -f conftest.undefs
21614
mv conftest.tail conftest.undefs
21616
rm -f conftest.undefs
21618
cat >>$CONFIG_STATUS <<\_ACEOF
21619
# Let's still pretend it is `configure' which instantiates (i.e., don't
21620
# use $as_me), people would be surprised to read:
21621
# /* config.h. Generated by config.status. */
21622
if test x"$ac_file" = x-; then
21623
echo "/* Generated by configure. */" >$tmp/config.h
21625
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21627
cat $tmp/in >>$tmp/config.h
21629
if test x"$ac_file" != x-; then
21630
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21631
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21632
echo "$as_me: $ac_file is unchanged" >&6;}
21634
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21635
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21636
X"$ac_file" : 'X\(//\)[^/]' \| \
21637
X"$ac_file" : 'X\(//\)$' \| \
21638
X"$ac_file" : 'X\(/\)' \| \
21639
. : '\(.\)' 2>/dev/null ||
21641
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21642
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21643
/^X\(\/\/\)$/{ s//\1/; q; }
21644
/^X\(\/\).*/{ s//\1/; q; }
21646
{ if $as_mkdir_p; then
21651
while test ! -d "$as_dir"; do
21652
as_dirs="$as_dir $as_dirs"
21653
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21654
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21655
X"$as_dir" : 'X\(//\)[^/]' \| \
21656
X"$as_dir" : 'X\(//\)$' \| \
21657
X"$as_dir" : 'X\(/\)' \| \
21658
. : '\(.\)' 2>/dev/null ||
21660
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21661
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21662
/^X\(\/\/\)$/{ s//\1/; q; }
21663
/^X\(\/\).*/{ s//\1/; q; }
21666
test ! -n "$as_dirs" || mkdir $as_dirs
21667
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21668
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21669
{ (exit 1); exit 1; }; }; }
21672
mv $tmp/config.h $ac_file
21676
rm -f $tmp/config.h
21678
# Compute $ac_file's index in $config_headers.
21680
for _am_header in $config_headers :; do
21681
case $_am_header in
21682
$ac_file | $ac_file:* )
21685
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21688
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21689
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21690
X$ac_file : 'X\(//\)[^/]' \| \
21691
X$ac_file : 'X\(//\)$' \| \
21692
X$ac_file : 'X\(/\)' \| \
21693
. : '\(.\)' 2>/dev/null ||
21695
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21696
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21697
/^X\(\/\/\)$/{ s//\1/; q; }
21698
/^X\(\/\).*/{ s//\1/; q; }
21699
s/.*/./; q'`/stamp-h$_am_stamp_count
21702
cat >>$CONFIG_STATUS <<\_ACEOF
21705
# CONFIG_COMMANDS section.
21707
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21708
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21709
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21710
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21711
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21712
X"$ac_dest" : 'X\(//\)[^/]' \| \
21713
X"$ac_dest" : 'X\(//\)$' \| \
21714
X"$ac_dest" : 'X\(/\)' \| \
21715
. : '\(.\)' 2>/dev/null ||
21717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21719
/^X\(\/\/\)$/{ s//\1/; q; }
21720
/^X\(\/\).*/{ s//\1/; q; }
21722
{ if $as_mkdir_p; then
21727
while test ! -d "$as_dir"; do
21728
as_dirs="$as_dir $as_dirs"
21729
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21731
X"$as_dir" : 'X\(//\)[^/]' \| \
21732
X"$as_dir" : 'X\(//\)$' \| \
21733
X"$as_dir" : 'X\(/\)' \| \
21734
. : '\(.\)' 2>/dev/null ||
21736
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21737
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21738
/^X\(\/\/\)$/{ s//\1/; q; }
21739
/^X\(\/\).*/{ s//\1/; q; }
21742
test ! -n "$as_dirs" || mkdir $as_dirs
21743
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21744
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21745
{ (exit 1); exit 1; }; }; }
21749
if test "$ac_dir" != .; then
21750
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21751
# A "../" for each directory in $ac_dir_suffix.
21752
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21754
ac_dir_suffix= ac_top_builddir=
21758
.) # No --srcdir option. We are building in place.
21760
if test -z "$ac_top_builddir"; then
21763
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21765
[\\/]* | ?:[\\/]* ) # Absolute path.
21766
ac_srcdir=$srcdir$ac_dir_suffix;
21767
ac_top_srcdir=$srcdir ;;
21768
*) # Relative path.
21769
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21770
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21773
# Do not use `cd foo && pwd` to compute absolute paths, because
21774
# the directories may not exist.
21776
.) ac_abs_builddir="$ac_dir";;
21779
.) ac_abs_builddir=`pwd`;;
21780
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21781
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21784
case $ac_abs_builddir in
21785
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21787
case ${ac_top_builddir}. in
21788
.) ac_abs_top_builddir=$ac_abs_builddir;;
21789
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21790
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21793
case $ac_abs_builddir in
21794
.) ac_abs_srcdir=$ac_srcdir;;
21797
.) ac_abs_srcdir=$ac_abs_builddir;;
21798
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21799
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21802
case $ac_abs_builddir in
21803
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21805
case $ac_top_srcdir in
21806
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21807
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21808
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21813
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21814
echo "$as_me: executing $ac_dest commands" >&6;}
21816
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21817
# Strip MF so we end up with the name of the file.
21818
mf=`echo "$mf" | sed -e 's/:.*$//'`
21819
# Check whether this is an Automake generated Makefile or not.
21820
# We used to match only the files named `Makefile.in', but
21821
# some people rename them; so instead we look at the file content.
21822
# Grep'ing the first line is not enough: some people post-process
21823
# each Makefile.in and add a new line on top of each file to say so.
21824
# So let's grep whole file.
21825
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21826
dirpart=`(dirname "$mf") 2>/dev/null ||
21827
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21828
X"$mf" : 'X\(//\)[^/]' \| \
21829
X"$mf" : 'X\(//\)$' \| \
21830
X"$mf" : 'X\(/\)' \| \
21831
. : '\(.\)' 2>/dev/null ||
21833
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21834
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21835
/^X\(\/\/\)$/{ s//\1/; q; }
21836
/^X\(\/\).*/{ s//\1/; q; }
21841
# Extract the definition of DEPDIR, am__include, and am__quote
21842
# from the Makefile without running `make'.
21843
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21844
test -z "$DEPDIR" && continue
21845
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21846
test -z "am__include" && continue
21847
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21848
# When using ansi2knr, U may be empty or an underscore; expand it
21849
U=`sed -n 's/^U = //p' < "$mf"`
21850
# Find all dependency output files, they are included files with
21851
# $(DEPDIR) in their names. We invoke sed twice because it is the
21852
# simplest approach to changing $(DEPDIR) to its actual value in the
21854
for file in `sed -n "
21855
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21856
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21857
# Make sure the directory exists.
21858
test -f "$dirpart/$file" && continue
21859
fdir=`(dirname "$file") 2>/dev/null ||
21860
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21861
X"$file" : 'X\(//\)[^/]' \| \
21862
X"$file" : 'X\(//\)$' \| \
21863
X"$file" : 'X\(/\)' \| \
21864
. : '\(.\)' 2>/dev/null ||
21866
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21867
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21868
/^X\(\/\/\)$/{ s//\1/; q; }
21869
/^X\(\/\).*/{ s//\1/; q; }
21871
{ if $as_mkdir_p; then
21872
mkdir -p $dirpart/$fdir
21874
as_dir=$dirpart/$fdir
21876
while test ! -d "$as_dir"; do
21877
as_dirs="$as_dir $as_dirs"
21878
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21879
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21880
X"$as_dir" : 'X\(//\)[^/]' \| \
21881
X"$as_dir" : 'X\(//\)$' \| \
21882
X"$as_dir" : 'X\(/\)' \| \
21883
. : '\(.\)' 2>/dev/null ||
21885
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21886
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21887
/^X\(\/\/\)$/{ s//\1/; q; }
21888
/^X\(\/\).*/{ s//\1/; q; }
21891
test ! -n "$as_dirs" || mkdir $as_dirs
21892
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21893
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21894
{ (exit 1); exit 1; }; }; }
21896
# echo "creating $dirpart/$file"
21897
echo '# dummy' > "$dirpart/$file"
21905
cat >>$CONFIG_STATUS <<\_ACEOF
21907
{ (exit 0); exit 0; }
21909
chmod +x $CONFIG_STATUS
21910
ac_clean_files=$ac_clean_files_save
21913
# configure is writing to config.log, and then calls config.status.
21914
# config.status does its own redirection, appending to config.log.
21915
# Unfortunately, on DOS this fails, as config.log is still kept open
21916
# by configure, so config.status won't be able to write to it; its
21917
# output is simply discarded. So we exec the FD to /dev/null,
21918
# effectively closing config.log, so it can be properly (re)opened and
21919
# appended to by config.status. When coming back to configure, we
21920
# need to make the FD available again.
21921
if test "$no_create" != yes; then
21923
ac_config_status_args=
21924
test "$silent" = yes &&
21925
ac_config_status_args="$ac_config_status_args --quiet"
21927
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21929
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21930
# would make configure fail if this is the last instruction.
21931
$ac_cs_success || { (exit 1); exit 1; }