2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for wizardpen 1.0.0.
5
# Report bugs to <NULL>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='wizardpen'
730
PACKAGE_TARNAME='xf86-input-wizardpen'
731
PACKAGE_VERSION='1.0.0'
732
PACKAGE_STRING='wizardpen 1.0.0'
733
PACKAGE_BUGREPORT='NULL'
735
ac_unique_file="Makefile.am"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
749
# ifdef HAVE_STDLIB_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
781
program_transform_name
823
INSTALL_STRIP_PROGRAM
832
MAINTAINER_MODE_FALSE
896
ac_precious_vars='build_alias
916
# Initialize some variables set by options.
918
ac_init_version=false
919
# The variables have the same names as the options, with
920
# dashes changed to underlines.
928
program_transform_name=s,x,x,
936
# Installation directory options.
937
# These are left unexpanded so users can "make install exec_prefix=/foo"
938
# and all the variables that are supposed to be based on exec_prefix
939
# by default will actually change.
940
# Use braces instead of parens because sh, perl, etc. also accept them.
941
# (The list follows the same order as the GNU Coding Standards.)
942
bindir='${exec_prefix}/bin'
943
sbindir='${exec_prefix}/sbin'
944
libexecdir='${exec_prefix}/libexec'
945
datarootdir='${prefix}/share'
946
datadir='${datarootdir}'
947
sysconfdir='${prefix}/etc'
948
sharedstatedir='${prefix}/com'
949
localstatedir='${prefix}/var'
950
includedir='${prefix}/include'
951
oldincludedir='/usr/include'
952
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953
infodir='${datarootdir}/info'
958
libdir='${exec_prefix}/lib'
959
localedir='${datarootdir}/locale'
960
mandir='${datarootdir}/man'
966
# If the previous option needs an argument, assign it.
967
if test -n "$ac_prev"; then
968
eval $ac_prev=\$ac_option
974
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978
# Accept the important Cygnus configure options, so we can diagnose typos.
980
case $ac_dashdash$ac_option in
984
-bindir | --bindir | --bindi | --bind | --bin | --bi)
986
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989
-build | --build | --buil | --bui | --bu)
990
ac_prev=build_alias ;;
991
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
992
build_alias=$ac_optarg ;;
994
-cache-file | --cache-file | --cache-fil | --cache-fi \
995
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996
ac_prev=cache_file ;;
997
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999
cache_file=$ac_optarg ;;
1001
--config-cache | -C)
1002
cache_file=config.cache ;;
1004
-datadir | --datadir | --datadi | --datad)
1006
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1007
datadir=$ac_optarg ;;
1009
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010
| --dataroo | --dataro | --datar)
1011
ac_prev=datarootdir ;;
1012
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014
datarootdir=$ac_optarg ;;
1016
-disable-* | --disable-*)
1017
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018
# Reject names that are not valid shell variable names.
1019
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021
{ (exit 1); exit 1; }; }
1022
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023
eval enable_$ac_feature=no ;;
1025
-docdir | --docdir | --docdi | --doc | --do)
1027
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028
docdir=$ac_optarg ;;
1030
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033
dvidir=$ac_optarg ;;
1035
-enable-* | --enable-*)
1036
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037
# Reject names that are not valid shell variable names.
1038
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040
{ (exit 1); exit 1; }; }
1041
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042
eval enable_$ac_feature=\$ac_optarg ;;
1044
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046
| --exec | --exe | --ex)
1047
ac_prev=exec_prefix ;;
1048
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050
| --exec=* | --exe=* | --ex=*)
1051
exec_prefix=$ac_optarg ;;
1053
-gas | --gas | --ga | --g)
1054
# Obsolete; use --with-gas.
1057
-help | --help | --hel | --he | -h)
1058
ac_init_help=long ;;
1059
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060
ac_init_help=recursive ;;
1061
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062
ac_init_help=short ;;
1064
-host | --host | --hos | --ho)
1065
ac_prev=host_alias ;;
1066
-host=* | --host=* | --hos=* | --ho=*)
1067
host_alias=$ac_optarg ;;
1069
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073
htmldir=$ac_optarg ;;
1075
-includedir | --includedir | --includedi | --included | --include \
1076
| --includ | --inclu | --incl | --inc)
1077
ac_prev=includedir ;;
1078
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079
| --includ=* | --inclu=* | --incl=* | --inc=*)
1080
includedir=$ac_optarg ;;
1082
-infodir | --infodir | --infodi | --infod | --info | --inf)
1084
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085
infodir=$ac_optarg ;;
1087
-libdir | --libdir | --libdi | --libd)
1089
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1090
libdir=$ac_optarg ;;
1092
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093
| --libexe | --libex | --libe)
1094
ac_prev=libexecdir ;;
1095
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096
| --libexe=* | --libex=* | --libe=*)
1097
libexecdir=$ac_optarg ;;
1099
-localedir | --localedir | --localedi | --localed | --locale)
1100
ac_prev=localedir ;;
1101
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102
localedir=$ac_optarg ;;
1104
-localstatedir | --localstatedir | --localstatedi | --localstated \
1105
| --localstate | --localstat | --localsta | --localst | --locals)
1106
ac_prev=localstatedir ;;
1107
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109
localstatedir=$ac_optarg ;;
1111
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114
mandir=$ac_optarg ;;
1116
-nfp | --nfp | --nf)
1117
# Obsolete; use --without-fp.
1120
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121
| --no-cr | --no-c | -n)
1124
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130
| --oldin | --oldi | --old | --ol | --o)
1131
ac_prev=oldincludedir ;;
1132
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135
oldincludedir=$ac_optarg ;;
1137
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140
prefix=$ac_optarg ;;
1142
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1143
| --program-pre | --program-pr | --program-p)
1144
ac_prev=program_prefix ;;
1145
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1146
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147
program_prefix=$ac_optarg ;;
1149
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1150
| --program-suf | --program-su | --program-s)
1151
ac_prev=program_suffix ;;
1152
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1153
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154
program_suffix=$ac_optarg ;;
1156
-program-transform-name | --program-transform-name \
1157
| --program-transform-nam | --program-transform-na \
1158
| --program-transform-n | --program-transform- \
1159
| --program-transform | --program-transfor \
1160
| --program-transfo | --program-transf \
1161
| --program-trans | --program-tran \
1162
| --progr-tra | --program-tr | --program-t)
1163
ac_prev=program_transform_name ;;
1164
-program-transform-name=* | --program-transform-name=* \
1165
| --program-transform-nam=* | --program-transform-na=* \
1166
| --program-transform-n=* | --program-transform-=* \
1167
| --program-transform=* | --program-transfor=* \
1168
| --program-transfo=* | --program-transf=* \
1169
| --program-trans=* | --program-tran=* \
1170
| --progr-tra=* | --program-tr=* | --program-t=*)
1171
program_transform_name=$ac_optarg ;;
1173
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176
pdfdir=$ac_optarg ;;
1178
-psdir | --psdir | --psdi | --psd | --ps)
1180
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184
| -silent | --silent | --silen | --sile | --sil)
1187
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191
sbindir=$ac_optarg ;;
1193
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1194
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195
| --sharedst | --shareds | --shared | --share | --shar \
1197
ac_prev=sharedstatedir ;;
1198
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202
sharedstatedir=$ac_optarg ;;
1204
-site | --site | --sit)
1206
-site=* | --site=* | --sit=*)
1209
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212
srcdir=$ac_optarg ;;
1214
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215
| --syscon | --sysco | --sysc | --sys | --sy)
1216
ac_prev=sysconfdir ;;
1217
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219
sysconfdir=$ac_optarg ;;
1221
-target | --target | --targe | --targ | --tar | --ta | --t)
1222
ac_prev=target_alias ;;
1223
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224
target_alias=$ac_optarg ;;
1226
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1229
-version | --version | --versio | --versi | --vers | -V)
1230
ac_init_version=: ;;
1233
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234
# Reject names that are not valid shell variable names.
1235
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1237
{ (exit 1); exit 1; }; }
1238
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239
eval with_$ac_package=\$ac_optarg ;;
1241
-without-* | --without-*)
1242
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243
# Reject names that are not valid shell variable names.
1244
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1246
{ (exit 1); exit 1; }; }
1247
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248
eval with_$ac_package=no ;;
1251
# Obsolete; use --with-x.
1254
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255
| --x-incl | --x-inc | --x-in | --x-i)
1256
ac_prev=x_includes ;;
1257
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259
x_includes=$ac_optarg ;;
1261
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1262
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263
ac_prev=x_libraries ;;
1264
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266
x_libraries=$ac_optarg ;;
1268
-*) { echo "$as_me: error: unrecognized option: $ac_option
1269
Try \`$0 --help' for more information." >&2
1270
{ (exit 1); exit 1; }; }
1274
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275
# Reject names that are not valid shell variable names.
1276
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278
{ (exit 1); exit 1; }; }
1279
eval $ac_envvar=\$ac_optarg
1280
export $ac_envvar ;;
1283
# FIXME: should be removed in autoconf 3.0.
1284
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293
if test -n "$ac_prev"; then
1294
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295
{ echo "$as_me: error: missing argument to $ac_option" >&2
1296
{ (exit 1); exit 1; }; }
1299
# Be sure to have absolute directory names.
1300
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301
datadir sysconfdir sharedstatedir localstatedir includedir \
1302
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303
libdir localedir mandir
1305
eval ac_val=\$$ac_var
1307
[\\/$]* | ?:[\\/]* ) continue;;
1308
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311
{ (exit 1); exit 1; }; }
1314
# There might be people who depend on the old broken behavior: `$host'
1315
# used to hold the argument of --host etc.
1316
# FIXME: To remove some day.
1319
target=$target_alias
1321
# FIXME: To remove some day.
1322
if test "x$host_alias" != x; then
1323
if test "x$build_alias" = x; then
1324
cross_compiling=maybe
1325
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326
If a cross compiler is detected then cross compile mode will be used." >&2
1327
elif test "x$build_alias" != "x$host_alias"; then
1333
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
test "$silent" = yes && exec 6>/dev/null
1338
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339
ac_ls_di=`ls -di .` &&
1340
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341
{ echo "$as_me: error: Working directory cannot be determined" >&2
1342
{ (exit 1); exit 1; }; }
1343
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1345
{ (exit 1); exit 1; }; }
1348
# Find the source files, if location was not specified.
1349
if test -z "$srcdir"; then
1350
ac_srcdir_defaulted=yes
1351
# Try the directory containing this script, then the parent directory.
1352
ac_confdir=`$as_dirname -- "$0" ||
1353
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354
X"$0" : 'X\(//\)[^/]' \| \
1355
X"$0" : 'X\(//\)$' \| \
1356
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376
if test ! -r "$srcdir/$ac_unique_file"; then
1380
ac_srcdir_defaulted=no
1382
if test ! -r "$srcdir/$ac_unique_file"; then
1383
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385
{ (exit 1); exit 1; }; }
1387
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390
{ (exit 1); exit 1; }; }
1392
# When building in place, set srcdir=.
1393
if test "$ac_abs_confdir" = "$ac_pwd"; then
1396
# Remove unnecessary trailing slashes from srcdir.
1397
# Double slashes in file names in object file debugging info
1398
# mess up M-x gdb in Emacs.
1400
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402
for ac_var in $ac_precious_vars; do
1403
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404
eval ac_env_${ac_var}_value=\$${ac_var}
1405
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410
# Report the --help message.
1412
if test "$ac_init_help" = "long"; then
1413
# Omit some internal or obsolete options to make the list less imposing.
1414
# This message is too long to be a string in the A/UX 3.1 sh.
1416
\`configure' configures wizardpen 1.0.0 to adapt to many kinds of systems.
1418
Usage: $0 [OPTION]... [VAR=VALUE]...
1420
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421
VAR=VALUE. See below for descriptions of some of the useful variables.
1423
Defaults for the options are specified in brackets.
1426
-h, --help display this help and exit
1427
--help=short display options specific to this package
1428
--help=recursive display the short help of all the included packages
1429
-V, --version display version information and exit
1430
-q, --quiet, --silent do not print \`checking...' messages
1431
--cache-file=FILE cache test results in FILE [disabled]
1432
-C, --config-cache alias for \`--cache-file=config.cache'
1433
-n, --no-create do not create output files
1434
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
Installation directories:
1437
--prefix=PREFIX install architecture-independent files in PREFIX
1438
[$ac_default_prefix]
1439
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442
By default, \`make install' will install all the files in
1443
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445
for instance \`--prefix=\$HOME'.
1447
For better control, use the options below.
1449
Fine tuning of the installation directories:
1450
--bindir=DIR user executables [EPREFIX/bin]
1451
--sbindir=DIR system admin executables [EPREFIX/sbin]
1452
--libexecdir=DIR program executables [EPREFIX/libexec]
1453
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456
--libdir=DIR object code libraries [EPREFIX/lib]
1457
--includedir=DIR C header files [PREFIX/include]
1458
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1459
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461
--infodir=DIR info documentation [DATAROOTDIR/info]
1462
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463
--mandir=DIR man documentation [DATAROOTDIR/man]
1464
--docdir=DIR documentation root [DATAROOTDIR/doc/xf86-input-wizardpen]
1465
--htmldir=DIR html documentation [DOCDIR]
1466
--dvidir=DIR dvi documentation [DOCDIR]
1467
--pdfdir=DIR pdf documentation [DOCDIR]
1468
--psdir=DIR ps documentation [DOCDIR]
1474
--program-prefix=PREFIX prepend PREFIX to installed program names
1475
--program-suffix=SUFFIX append SUFFIX to installed program names
1476
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
--build=BUILD configure for building on BUILD [guessed]
1480
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1484
if test -n "$ac_init_help"; then
1485
case $ac_init_help in
1486
short | recursive ) echo "Configuration of wizardpen 1.0.0:";;
1491
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493
--enable-maintainer-mode enable make rules and dependencies not useful
1494
(and sometimes confusing) to the casual installer
1495
--enable-static[=PKGS] build static libraries [default=no]
1496
--enable-shared[=PKGS] build shared libraries [default=yes]
1497
--enable-fast-install[=PKGS]
1498
optimize for fast installation [default=yes]
1499
--disable-dependency-tracking speeds up one-time build
1500
--enable-dependency-tracking do not reject slow dependency extractors
1501
--disable-libtool-lock avoid locking (might break parallel builds)
1504
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507
--with-pic try to use only PIC/non-PIC objects [default=use
1509
--with-tags[=TAGS] include additional configurations [automatic]
1510
--with-xorg-module-dir=DIR
1511
Default xorg module directory
1512
[default=$libdir/xorg/modules]
1513
--with-release-version=STRING
1514
Use release version string in package name
1516
Some influential environment variables:
1517
CC C compiler command
1518
CFLAGS C compiler flags
1519
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520
nonstandard directory <lib dir>
1521
LIBS libraries to pass to the linker, e.g. -l<library>
1522
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523
you have headers in a nonstandard directory <include dir>
1525
CXX C++ compiler command
1526
CXXFLAGS C++ compiler flags
1527
CXXCPP C++ preprocessor
1528
F77 Fortran 77 compiler command
1529
FFLAGS Fortran 77 compiler flags
1530
PKG_CONFIG path to pkg-config utility
1531
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1532
XORG_LIBS linker flags for XORG, overriding pkg-config
1534
Use these variables to override the choices made by `configure' or to help
1535
it to find libraries and programs with nonstandard names/locations.
1537
Report bugs to <NULL>.
1542
if test "$ac_init_help" = "recursive"; then
1543
# If there are subdirs, report their specific --help.
1544
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545
test -d "$ac_dir" || continue
1549
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1552
# A ".." for each directory in $ac_dir_suffix.
1553
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1554
case $ac_top_builddir_sub in
1555
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559
ac_abs_top_builddir=$ac_pwd
1560
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561
# for backward compatibility:
1562
ac_top_builddir=$ac_top_build_prefix
1565
.) # We are building in place.
1567
ac_top_srcdir=$ac_top_builddir_sub
1568
ac_abs_top_srcdir=$ac_pwd ;;
1569
[\\/]* | ?:[\\/]* ) # Absolute name.
1570
ac_srcdir=$srcdir$ac_dir_suffix;
1571
ac_top_srcdir=$srcdir
1572
ac_abs_top_srcdir=$srcdir ;;
1574
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575
ac_top_srcdir=$ac_top_build_prefix$srcdir
1576
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
cd "$ac_dir" || { ac_status=$?; continue; }
1581
# Check for guested configure.
1582
if test -f "$ac_srcdir/configure.gnu"; then
1584
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585
elif test -f "$ac_srcdir/configure"; then
1587
$SHELL "$ac_srcdir/configure" --help=recursive
1589
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591
cd "$ac_pwd" || { ac_status=$?; break; }
1595
test -n "$ac_init_help" && exit $ac_status
1596
if $ac_init_version; then
1598
wizardpen configure 1.0.0
1599
generated by GNU Autoconf 2.61
1601
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1603
This configure script is free software; the Free Software Foundation
1604
gives unlimited permission to copy, distribute and modify it.
1608
cat >config.log <<_ACEOF
1609
This file contains any messages produced by compilers while
1610
running configure, to aid debugging if configure makes a mistake.
1612
It was created by wizardpen $as_me 1.0.0, which was
1613
generated by GNU Autoconf 2.61. Invocation command line was
1625
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1635
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1636
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1638
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1639
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1640
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648
test -z "$as_dir" && as_dir=.
1649
echo "PATH: $as_dir"
1665
# Keep a trace of the command line.
1666
# Strip out --no-create and --no-recursion so they do not pile up.
1667
# Strip out --silent because we don't want to record it for future runs.
1668
# Also quote any args containing shell meta-characters.
1669
# Make two passes to allow for proper duplicate-argument suppression.
1673
ac_must_keep_next=false
1679
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681
| -silent | --silent | --silen | --sile | --sil)
1684
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690
if test $ac_must_keep_next = true; then
1691
ac_must_keep_next=false # Got value, back to normal.
1694
*=* | --config-cache | -C | -disable-* | --disable-* \
1695
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697
| -with-* | --with-* | -without-* | --without-* | --x)
1698
case "$ac_configure_args0 " in
1699
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702
-* ) ac_must_keep_next=true ;;
1705
ac_configure_args="$ac_configure_args '$ac_arg'"
1710
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
# When interrupted or exit'd, cleanup temporary files, and complete
1714
# config.log. We remove comments because anyway the quotes in there
1715
# would cause problems or look ugly.
1716
# WARNING: Use '\'' to represent an apostrophe within the trap.
1717
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718
trap 'exit_status=$?
1719
# Save into config.log some information that might help in debugging.
1724
## ---------------- ##
1725
## Cache variables. ##
1726
## ---------------- ##
1729
# The following way of writing the cache mishandles newlines in values,
1731
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732
eval ac_val=\$$ac_var
1736
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1737
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1740
_ | IFS | as_nl) ;; #(
1741
*) $as_unset $ac_var ;;
1746
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747
*${as_nl}ac_space=\ *)
1749
"s/'\''/'\''\\\\'\'''\''/g;
1750
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1761
## ----------------- ##
1762
## Output variables. ##
1763
## ----------------- ##
1766
for ac_var in $ac_subst_vars
1768
eval ac_val=\$$ac_var
1770
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772
echo "$ac_var='\''$ac_val'\''"
1776
if test -n "$ac_subst_files"; then
1778
## ------------------- ##
1779
## File substitutions. ##
1780
## ------------------- ##
1783
for ac_var in $ac_subst_files
1785
eval ac_val=\$$ac_var
1787
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789
echo "$ac_var='\''$ac_val'\''"
1794
if test -s confdefs.h; then
1804
test "$ac_signal" != 0 &&
1805
echo "$as_me: caught signal $ac_signal"
1806
echo "$as_me: exit $exit_status"
1808
rm -f core *.core core.conftest.* &&
1809
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812
for ac_signal in 1 2 13 15; do
1813
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1818
rm -f -r conftest* confdefs.h
1820
# Predefined preprocessor variables.
1822
cat >>confdefs.h <<_ACEOF
1823
#define PACKAGE_NAME "$PACKAGE_NAME"
1827
cat >>confdefs.h <<_ACEOF
1828
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832
cat >>confdefs.h <<_ACEOF
1833
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1837
cat >>confdefs.h <<_ACEOF
1838
#define PACKAGE_STRING "$PACKAGE_STRING"
1842
cat >>confdefs.h <<_ACEOF
1843
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847
# Let the site file select an alternate cache file if it wants to.
1848
# Prefer explicitly selected file to automatically selected ones.
1849
if test -n "$CONFIG_SITE"; then
1850
set x "$CONFIG_SITE"
1851
elif test "x$prefix" != xNONE; then
1852
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854
set x "$ac_default_prefix/share/config.site" \
1855
"$ac_default_prefix/etc/config.site"
1860
if test -r "$ac_site_file"; then
1861
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1862
echo "$as_me: loading site script $ac_site_file" >&6;}
1863
sed 's/^/| /' "$ac_site_file" >&5
1868
if test -r "$cache_file"; then
1869
# Some versions of bash will fail to source /dev/null (special
1870
# files actually), so we avoid doing that.
1871
if test -f "$cache_file"; then
1872
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1873
echo "$as_me: loading cache $cache_file" >&6;}
1875
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1876
*) . "./$cache_file";;
1880
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1881
echo "$as_me: creating cache $cache_file" >&6;}
1885
# Check that the precious variables saved in the cache have kept the same
1887
ac_cache_corrupted=false
1888
for ac_var in $ac_precious_vars; do
1889
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890
eval ac_new_set=\$ac_env_${ac_var}_set
1891
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892
eval ac_new_val=\$ac_env_${ac_var}_value
1893
case $ac_old_set,$ac_new_set in
1895
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897
ac_cache_corrupted=: ;;
1899
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901
ac_cache_corrupted=: ;;
1904
if test "x$ac_old_val" != "x$ac_new_val"; then
1905
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1906
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1908
echo "$as_me: former value: $ac_old_val" >&2;}
1909
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1910
echo "$as_me: current value: $ac_new_val" >&2;}
1911
ac_cache_corrupted=:
1914
# Pass precious variables to config.status.
1915
if test "$ac_new_set" = set; then
1917
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918
*) ac_arg=$ac_var=$ac_new_val ;;
1920
case " $ac_configure_args " in
1921
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926
if $ac_cache_corrupted; then
1927
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931
{ (exit 1); exit 1; }; }
1959
ac_cpp='$CPP $CPPFLAGS'
1960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
for ac_dir in . "$srcdir"/.; do
1969
if test -f "$ac_dir/install-sh"; then
1971
ac_install_sh="$ac_aux_dir/install-sh -c"
1973
elif test -f "$ac_dir/install.sh"; then
1975
ac_install_sh="$ac_aux_dir/install.sh -c"
1977
elif test -f "$ac_dir/shtool"; then
1979
ac_install_sh="$ac_aux_dir/shtool install -c"
1983
if test -z "$ac_aux_dir"; then
1984
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1985
echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1986
{ (exit 1); exit 1; }; }
1989
# These three variables are undocumented and unsupported,
1990
# and are intended to be withdrawn in a future Autoconf release.
1991
# They can cause serious problems if a builder's source tree is in a directory
1992
# whose full name contains unusual characters.
1993
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1998
am__api_version='1.10'
2000
# Find a good install program. We prefer a C program (faster),
2001
# so one script is as good as another. But avoid the broken or
2002
# incompatible versions:
2003
# SysV /etc/install, /usr/sbin/install
2004
# SunOS /usr/etc/install
2005
# IRIX /sbin/install
2007
# AmigaOS /C/install, which installs bootblocks on floppy discs
2008
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2009
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2010
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2011
# OS/2's system install, which has a completely different semantic
2012
# ./install, which can be erroneously created by make from ./install.sh.
2013
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2014
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2015
if test -z "$INSTALL"; then
2016
if test "${ac_cv_path_install+set}" = set; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023
test -z "$as_dir" && as_dir=.
2024
# Account for people who put trailing slashes in PATH elements.
2026
./ | .// | /cC/* | \
2027
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2028
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2031
# OSF1 and SCO ODT 3.0 have their own names for install.
2032
# Don't use installbsd from OSF since it installs stuff as root
2034
for ac_prog in ginstall scoinst install; do
2035
for ac_exec_ext in '' $ac_executable_extensions; do
2036
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2037
if test $ac_prog = install &&
2038
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2039
# AIX install. It has an incompatible calling convention.
2041
elif test $ac_prog = install &&
2042
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043
# program-specific install script used by HP pwplus--don't use.
2046
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059
if test "${ac_cv_path_install+set}" = set; then
2060
INSTALL=$ac_cv_path_install
2062
# As a last resort, use the slow shell script. Don't cache a
2063
# value for INSTALL within a source directory, because that will
2064
# break other packages using the cache if that directory is
2065
# removed, or if the value is a relative name.
2066
INSTALL=$ac_install_sh
2069
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2070
echo "${ECHO_T}$INSTALL" >&6; }
2072
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2073
# It thinks the first close brace ends the variable substitution.
2074
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2078
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2081
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2084
echo timestamp > conftest.file
2085
# Do `set' in a subshell so we don't clobber the current shell's
2086
# arguments. Must try -L first in case configure is actually a
2087
# symlink; some systems play weird games with the mod time of symlinks
2088
# (eg FreeBSD returns the mod time of the symlink's containing
2091
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2092
if test "$*" = "X"; then
2094
set X `ls -t $srcdir/configure conftest.file`
2097
if test "$*" != "X $srcdir/configure conftest.file" \
2098
&& test "$*" != "X conftest.file $srcdir/configure"; then
2100
# If neither matched, then we have a broken ls. This can happen
2101
# if, for instance, CONFIG_SHELL is bash and it inherits a
2102
# broken ls alias from the environment. This has actually
2103
# happened. Such a system could not be considered "sane".
2104
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2105
alias in your environment" >&5
2106
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2107
alias in your environment" >&2;}
2108
{ (exit 1); exit 1; }; }
2111
test "$2" = conftest.file
2117
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2118
Check your system clock" >&5
2119
echo "$as_me: error: newly created file is older than distributed files!
2120
Check your system clock" >&2;}
2121
{ (exit 1); exit 1; }; }
2123
{ echo "$as_me:$LINENO: result: yes" >&5
2124
echo "${ECHO_T}yes" >&6; }
2125
test "$program_prefix" != NONE &&
2126
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2127
# Use a double $ so make ignores it.
2128
test "$program_suffix" != NONE &&
2129
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2130
# Double any \ or $. echo might interpret backslashes.
2131
# By default was `s,x,x', remove it if useless.
2132
cat <<\_ACEOF >conftest.sed
2133
s/[\\$]/&&/g;s/;s,x,x,$//
2135
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2138
# expand $ac_aux_dir to an absolute path
2139
am_aux_dir=`cd $ac_aux_dir && pwd`
2141
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2142
# Use eval to expand $SHELL
2143
if eval "$MISSING --run true"; then
2144
am_missing_run="$MISSING --run "
2147
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2148
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2151
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2152
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2153
if test -z "$MKDIR_P"; then
2154
if test "${ac_cv_path_mkdir+set}" = set; then
2155
echo $ECHO_N "(cached) $ECHO_C" >&6
2157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2161
test -z "$as_dir" && as_dir=.
2162
for ac_prog in mkdir gmkdir; do
2163
for ac_exec_ext in '' $ac_executable_extensions; do
2164
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2165
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2166
'mkdir (GNU coreutils) '* | \
2167
'mkdir (coreutils) '* | \
2168
'mkdir (fileutils) '4.1*)
2169
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2179
if test "${ac_cv_path_mkdir+set}" = set; then
2180
MKDIR_P="$ac_cv_path_mkdir -p"
2182
# As a last resort, use the slow shell script. Don't cache a
2183
# value for MKDIR_P within a source directory, because that will
2184
# break other packages using the cache if that directory is
2185
# removed, or if the value is a relative name.
2186
test -d ./--version && rmdir ./--version
2187
MKDIR_P="$ac_install_sh -d"
2190
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2191
echo "${ECHO_T}$MKDIR_P" >&6; }
2195
[\\/$]* | ?:[\\/]*) ;;
2196
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2199
for ac_prog in gawk mawk nawk awk
2201
# Extract the first word of "$ac_prog", so it can be a program name with args.
2202
set dummy $ac_prog; ac_word=$2
2203
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2204
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2205
if test "${ac_cv_prog_AWK+set}" = set; then
2206
echo $ECHO_N "(cached) $ECHO_C" >&6
2208
if test -n "$AWK"; then
2209
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215
test -z "$as_dir" && as_dir=.
2216
for ac_exec_ext in '' $ac_executable_extensions; do
2217
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2218
ac_cv_prog_AWK="$ac_prog"
2219
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229
if test -n "$AWK"; then
2230
{ echo "$as_me:$LINENO: result: $AWK" >&5
2231
echo "${ECHO_T}$AWK" >&6; }
2233
{ echo "$as_me:$LINENO: result: no" >&5
2234
echo "${ECHO_T}no" >&6; }
2238
test -n "$AWK" && break
2241
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2242
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2243
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2244
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2245
echo $ECHO_N "(cached) $ECHO_C" >&6
2247
cat >conftest.make <<\_ACEOF
2250
@echo '@@@%%%=$(MAKE)=@@@%%%'
2252
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2253
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2255
eval ac_cv_prog_make_${ac_make}_set=yes;;
2257
eval ac_cv_prog_make_${ac_make}_set=no;;
2261
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2262
{ echo "$as_me:$LINENO: result: yes" >&5
2263
echo "${ECHO_T}yes" >&6; }
2266
{ echo "$as_me:$LINENO: result: no" >&5
2267
echo "${ECHO_T}no" >&6; }
2268
SET_MAKE="MAKE=${MAKE-make}"
2271
rm -rf .tst 2>/dev/null
2272
mkdir .tst 2>/dev/null
2273
if test -d .tst; then
2278
rmdir .tst 2>/dev/null
2280
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2281
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2282
# is not polluted with repeated "-I."
2283
am__isrc=' -I$(srcdir)'
2284
# test to see if srcdir already configured
2285
if test -f $srcdir/config.status; then
2286
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2287
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2288
{ (exit 1); exit 1; }; }
2292
# test whether we have cygpath
2293
if test -z "$CYGPATH_W"; then
2294
if (cygpath --version) >/dev/null 2>/dev/null; then
2295
CYGPATH_W='cygpath -w'
2302
# Define the identity of the package.
2303
PACKAGE='xf86-input-wizardpen'
2307
cat >>confdefs.h <<_ACEOF
2308
#define PACKAGE "$PACKAGE"
2312
cat >>confdefs.h <<_ACEOF
2313
#define VERSION "$VERSION"
2316
# Some tools Automake needs.
2318
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2321
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2324
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2327
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2330
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2332
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2334
# Installed binaries are usually stripped using `strip' when the user
2335
# run `make install-strip'. However `strip' might not be the right
2336
# tool to use in cross-compilation environments, therefore Automake
2337
# will honor the `STRIP' environment variable to overrule this program.
2338
if test "$cross_compiling" != no; then
2339
if test -n "$ac_tool_prefix"; then
2340
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2341
set dummy ${ac_tool_prefix}strip; ac_word=$2
2342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344
if test "${ac_cv_prog_STRIP+set}" = set; then
2345
echo $ECHO_N "(cached) $ECHO_C" >&6
2347
if test -n "$STRIP"; then
2348
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354
test -z "$as_dir" && as_dir=.
2355
for ac_exec_ext in '' $ac_executable_extensions; do
2356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2358
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367
STRIP=$ac_cv_prog_STRIP
2368
if test -n "$STRIP"; then
2369
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2370
echo "${ECHO_T}$STRIP" >&6; }
2372
{ echo "$as_me:$LINENO: result: no" >&5
2373
echo "${ECHO_T}no" >&6; }
2378
if test -z "$ac_cv_prog_STRIP"; then
2380
# Extract the first word of "strip", so it can be a program name with args.
2381
set dummy strip; ac_word=$2
2382
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2385
echo $ECHO_N "(cached) $ECHO_C" >&6
2387
if test -n "$ac_ct_STRIP"; then
2388
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394
test -z "$as_dir" && as_dir=.
2395
for ac_exec_ext in '' $ac_executable_extensions; do
2396
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397
ac_cv_prog_ac_ct_STRIP="strip"
2398
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2408
if test -n "$ac_ct_STRIP"; then
2409
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2410
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2412
{ echo "$as_me:$LINENO: result: no" >&5
2413
echo "${ECHO_T}no" >&6; }
2416
if test "x$ac_ct_STRIP" = x; then
2419
case $cross_compiling:$ac_tool_warned in
2421
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2422
whose name does not start with the host triplet. If you think this
2423
configuration is useful to you, please write to autoconf@gnu.org." >&5
2424
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2425
whose name does not start with the host triplet. If you think this
2426
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2427
ac_tool_warned=yes ;;
2432
STRIP="$ac_cv_prog_STRIP"
2436
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2438
# We need awk for the "check" target. The system "awk" is bad on
2440
# Always define AMTAR for backward compatibility.
2442
AMTAR=${AMTAR-"${am_missing_run}tar"}
2444
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2451
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2452
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2453
# Check whether --enable-maintainer-mode was given.
2454
if test "${enable_maintainer_mode+set}" = set; then
2455
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2457
USE_MAINTAINER_MODE=no
2460
{ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2461
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2462
if test $USE_MAINTAINER_MODE = yes; then
2463
MAINTAINER_MODE_TRUE=
2464
MAINTAINER_MODE_FALSE='#'
2466
MAINTAINER_MODE_TRUE='#'
2467
MAINTAINER_MODE_FALSE=
2470
MAINT=$MAINTAINER_MODE_TRUE
2474
DRIVER_NAME=wizardpen
2477
ac_config_headers="$ac_config_headers config.h"
2480
# Checks for programs.
2481
# Check whether --enable-static was given.
2482
if test "${enable_static+set}" = set; then
2483
enableval=$enable_static; p=${PACKAGE-default}
2485
yes) enable_static=yes ;;
2486
no) enable_static=no ;;
2489
# Look at the argument we got. We use all the common list separators.
2490
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2491
for pkg in $enableval; do
2493
if test "X$pkg" = "X$p"; then
2506
# Check whether --enable-shared was given.
2507
if test "${enable_shared+set}" = set; then
2508
enableval=$enable_shared; p=${PACKAGE-default}
2510
yes) enable_shared=yes ;;
2511
no) enable_shared=no ;;
2514
# Look at the argument we got. We use all the common list separators.
2515
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2516
for pkg in $enableval; do
2518
if test "X$pkg" = "X$p"; then
2530
# Check whether --enable-fast-install was given.
2531
if test "${enable_fast_install+set}" = set; then
2532
enableval=$enable_fast_install; p=${PACKAGE-default}
2534
yes) enable_fast_install=yes ;;
2535
no) enable_fast_install=no ;;
2537
enable_fast_install=no
2538
# Look at the argument we got. We use all the common list separators.
2539
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2540
for pkg in $enableval; do
2542
if test "X$pkg" = "X$p"; then
2543
enable_fast_install=yes
2550
enable_fast_install=yes
2554
# Make sure we can run config.sub.
2555
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2556
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2557
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2558
{ (exit 1); exit 1; }; }
2560
{ echo "$as_me:$LINENO: checking build system type" >&5
2561
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2562
if test "${ac_cv_build+set}" = set; then
2563
echo $ECHO_N "(cached) $ECHO_C" >&6
2565
ac_build_alias=$build_alias
2566
test "x$ac_build_alias" = x &&
2567
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2568
test "x$ac_build_alias" = x &&
2569
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2570
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2571
{ (exit 1); exit 1; }; }
2572
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2574
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2575
{ (exit 1); exit 1; }; }
2578
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2579
echo "${ECHO_T}$ac_cv_build" >&6; }
2580
case $ac_cv_build in
2582
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2583
echo "$as_me: error: invalid value of canonical build" >&2;}
2584
{ (exit 1); exit 1; }; };;
2587
ac_save_IFS=$IFS; IFS='-'
2593
# Remember, the first character of IFS is used to create $*,
2594
# except with old shells:
2597
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2600
{ echo "$as_me:$LINENO: checking host system type" >&5
2601
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2602
if test "${ac_cv_host+set}" = set; then
2603
echo $ECHO_N "(cached) $ECHO_C" >&6
2605
if test "x$host_alias" = x; then
2606
ac_cv_host=$ac_cv_build
2608
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2609
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2610
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2611
{ (exit 1); exit 1; }; }
2615
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2616
echo "${ECHO_T}$ac_cv_host" >&6; }
2619
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2620
echo "$as_me: error: invalid value of canonical host" >&2;}
2621
{ (exit 1); exit 1; }; };;
2624
ac_save_IFS=$IFS; IFS='-'
2630
# Remember, the first character of IFS is used to create $*,
2631
# except with old shells:
2634
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2637
DEPDIR="${am__leading_dot}deps"
2639
ac_config_commands="$ac_config_commands depfiles"
2642
am_make=${MAKE-make}
2643
cat > confinc << 'END'
2648
# If we don't find an include directive, just comment out the code.
2649
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2650
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2654
# First try GNU make style include.
2655
echo "include confinc" > confmf
2656
# We grep out `Entering directory' and `Leaving directory'
2657
# messages which can occur if `w' ends up in MAKEFLAGS.
2658
# In particular we don't look at `^make:' because GNU make might
2659
# be invoked under some other name (usually "gmake"), in which
2660
# case it prints its new name instead of `make'.
2661
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2666
# Now try BSD make style include.
2667
if test "$am__include" = "#"; then
2668
echo '.include "confinc"' > confmf
2669
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2670
am__include=.include
2677
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2678
echo "${ECHO_T}$_am_result" >&6; }
2679
rm -f confinc confmf
2681
# Check whether --enable-dependency-tracking was given.
2682
if test "${enable_dependency_tracking+set}" = set; then
2683
enableval=$enable_dependency_tracking;
2686
if test "x$enable_dependency_tracking" != xno; then
2687
am_depcomp="$ac_aux_dir/depcomp"
2690
if test "x$enable_dependency_tracking" != xno; then
2700
ac_cpp='$CPP $CPPFLAGS'
2701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
if test -n "$ac_tool_prefix"; then
2705
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709
if test "${ac_cv_prog_CC+set}" = set; then
2710
echo $ECHO_N "(cached) $ECHO_C" >&6
2712
if test -n "$CC"; then
2713
ac_cv_prog_CC="$CC" # Let the user override the test.
2715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719
test -z "$as_dir" && as_dir=.
2720
for ac_exec_ext in '' $ac_executable_extensions; do
2721
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733
if test -n "$CC"; then
2734
{ echo "$as_me:$LINENO: result: $CC" >&5
2735
echo "${ECHO_T}$CC" >&6; }
2737
{ echo "$as_me:$LINENO: result: no" >&5
2738
echo "${ECHO_T}no" >&6; }
2743
if test -z "$ac_cv_prog_CC"; then
2745
# Extract the first word of "gcc", so it can be a program name with args.
2746
set dummy gcc; ac_word=$2
2747
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2749
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2750
echo $ECHO_N "(cached) $ECHO_C" >&6
2752
if test -n "$ac_ct_CC"; then
2753
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759
test -z "$as_dir" && as_dir=.
2760
for ac_exec_ext in '' $ac_executable_extensions; do
2761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762
ac_cv_prog_ac_ct_CC="gcc"
2763
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773
if test -n "$ac_ct_CC"; then
2774
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775
echo "${ECHO_T}$ac_ct_CC" >&6; }
2777
{ echo "$as_me:$LINENO: result: no" >&5
2778
echo "${ECHO_T}no" >&6; }
2781
if test "x$ac_ct_CC" = x; then
2784
case $cross_compiling:$ac_tool_warned in
2786
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2787
whose name does not start with the host triplet. If you think this
2788
configuration is useful to you, please write to autoconf@gnu.org." >&5
2789
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2790
whose name does not start with the host triplet. If you think this
2791
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2792
ac_tool_warned=yes ;;
2800
if test -z "$CC"; then
2801
if test -n "$ac_tool_prefix"; then
2802
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2803
set dummy ${ac_tool_prefix}cc; ac_word=$2
2804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806
if test "${ac_cv_prog_CC+set}" = set; then
2807
echo $ECHO_N "(cached) $ECHO_C" >&6
2809
if test -n "$CC"; then
2810
ac_cv_prog_CC="$CC" # Let the user override the test.
2812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
test -z "$as_dir" && as_dir=.
2817
for ac_exec_ext in '' $ac_executable_extensions; do
2818
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819
ac_cv_prog_CC="${ac_tool_prefix}cc"
2820
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830
if test -n "$CC"; then
2831
{ echo "$as_me:$LINENO: result: $CC" >&5
2832
echo "${ECHO_T}$CC" >&6; }
2834
{ echo "$as_me:$LINENO: result: no" >&5
2835
echo "${ECHO_T}no" >&6; }
2841
if test -z "$CC"; then
2842
# Extract the first word of "cc", so it can be a program name with args.
2843
set dummy cc; ac_word=$2
2844
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2846
if test "${ac_cv_prog_CC+set}" = set; then
2847
echo $ECHO_N "(cached) $ECHO_C" >&6
2849
if test -n "$CC"; then
2850
ac_cv_prog_CC="$CC" # Let the user override the test.
2853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857
test -z "$as_dir" && as_dir=.
2858
for ac_exec_ext in '' $ac_executable_extensions; do
2859
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2861
ac_prog_rejected=yes
2865
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872
if test $ac_prog_rejected = yes; then
2873
# We found a bogon in the path, so make sure we never use it.
2874
set dummy $ac_cv_prog_CC
2876
if test $# != 0; then
2877
# We chose a different compiler from the bogus one.
2878
# However, it has the same basename, so the bogon will be chosen
2879
# first if we set CC to just the basename; use the full file name.
2881
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2887
if test -n "$CC"; then
2888
{ echo "$as_me:$LINENO: result: $CC" >&5
2889
echo "${ECHO_T}$CC" >&6; }
2891
{ echo "$as_me:$LINENO: result: no" >&5
2892
echo "${ECHO_T}no" >&6; }
2897
if test -z "$CC"; then
2898
if test -n "$ac_tool_prefix"; then
2899
for ac_prog in cl.exe
2901
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2905
if test "${ac_cv_prog_CC+set}" = set; then
2906
echo $ECHO_N "(cached) $ECHO_C" >&6
2908
if test -n "$CC"; then
2909
ac_cv_prog_CC="$CC" # Let the user override the test.
2911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915
test -z "$as_dir" && as_dir=.
2916
for ac_exec_ext in '' $ac_executable_extensions; do
2917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2919
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929
if test -n "$CC"; then
2930
{ echo "$as_me:$LINENO: result: $CC" >&5
2931
echo "${ECHO_T}$CC" >&6; }
2933
{ echo "$as_me:$LINENO: result: no" >&5
2934
echo "${ECHO_T}no" >&6; }
2938
test -n "$CC" && break
2941
if test -z "$CC"; then
2943
for ac_prog in cl.exe
2945
# Extract the first word of "$ac_prog", so it can be a program name with args.
2946
set dummy $ac_prog; ac_word=$2
2947
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2949
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2950
echo $ECHO_N "(cached) $ECHO_C" >&6
2952
if test -n "$ac_ct_CC"; then
2953
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959
test -z "$as_dir" && as_dir=.
2960
for ac_exec_ext in '' $ac_executable_extensions; do
2961
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962
ac_cv_prog_ac_ct_CC="$ac_prog"
2963
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973
if test -n "$ac_ct_CC"; then
2974
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2975
echo "${ECHO_T}$ac_ct_CC" >&6; }
2977
{ echo "$as_me:$LINENO: result: no" >&5
2978
echo "${ECHO_T}no" >&6; }
2982
test -n "$ac_ct_CC" && break
2985
if test "x$ac_ct_CC" = x; then
2988
case $cross_compiling:$ac_tool_warned in
2990
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2991
whose name does not start with the host triplet. If you think this
2992
configuration is useful to you, please write to autoconf@gnu.org." >&5
2993
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2994
whose name does not start with the host triplet. If you think this
2995
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2996
ac_tool_warned=yes ;;
3005
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3006
See \`config.log' for more details." >&5
3007
echo "$as_me: error: no acceptable C compiler found in \$PATH
3008
See \`config.log' for more details." >&2;}
3009
{ (exit 1); exit 1; }; }
3011
# Provide some information about the compiler.
3012
echo "$as_me:$LINENO: checking for C compiler version" >&5
3013
ac_compiler=`set X $ac_compile; echo $2`
3014
{ (ac_try="$ac_compiler --version >&5"
3016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017
*) ac_try_echo=$ac_try;;
3019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020
(eval "$ac_compiler --version >&5") 2>&5
3022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023
(exit $ac_status); }
3024
{ (ac_try="$ac_compiler -v >&5"
3026
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027
*) ac_try_echo=$ac_try;;
3029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030
(eval "$ac_compiler -v >&5") 2>&5
3032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033
(exit $ac_status); }
3034
{ (ac_try="$ac_compiler -V >&5"
3036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
*) ac_try_echo=$ac_try;;
3039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040
(eval "$ac_compiler -V >&5") 2>&5
3042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043
(exit $ac_status); }
3045
cat >conftest.$ac_ext <<_ACEOF
3048
cat confdefs.h >>conftest.$ac_ext
3049
cat >>conftest.$ac_ext <<_ACEOF
3050
/* end confdefs.h. */
3060
ac_clean_files_save=$ac_clean_files
3061
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3062
# Try to create an executable without -o first, disregard a.out.
3063
# It will help us diagnose broken compilers, and finding out an intuition
3065
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3066
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3067
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069
# List of possible output files, starting from the most likely.
3070
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3071
# only as a last resort. b.out is created by i960 compilers.
3072
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3074
# The IRIX 6 linker writes into existing files which may not be
3075
# executable, retaining their permissions. Remove them first so a
3076
# subsequent execution test works.
3078
for ac_file in $ac_files
3081
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3082
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087
if { (ac_try="$ac_link_default"
3089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090
*) ac_try_echo=$ac_try;;
3092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093
(eval "$ac_link_default") 2>&5
3095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096
(exit $ac_status); }; then
3097
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3100
# so that the user can short-circuit this test for compilers unknown to
3102
for ac_file in $ac_files ''
3104
test -f "$ac_file" || continue
3106
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3109
# We found the default executable, but exeext='' is most
3113
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117
# We set ac_cv_exeext here because the later test for it is not
3118
# safe: cross compilers may not add the suffix if given an `-o'
3119
# argument, so we may need to know it at that point already.
3120
# Even if this section looks crufty: it has the advantage of
3127
test "$ac_cv_exeext" = no && ac_cv_exeext=
3133
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3134
echo "${ECHO_T}$ac_file" >&6; }
3135
if test -z "$ac_file"; then
3136
echo "$as_me: failed program was:" >&5
3137
sed 's/^/| /' conftest.$ac_ext >&5
3139
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3140
See \`config.log' for more details." >&5
3141
echo "$as_me: error: C compiler cannot create executables
3142
See \`config.log' for more details." >&2;}
3143
{ (exit 77); exit 77; }; }
3146
ac_exeext=$ac_cv_exeext
3148
# Check that the compiler produces executables we can run. If not, either
3149
# the compiler is broken, or we cross compile.
3150
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3151
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3152
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3153
# If not cross compiling, check that we can run a simple program.
3154
if test "$cross_compiling" != yes; then
3155
if { ac_try='./$ac_file'
3156
{ (case "(($ac_try" in
3157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158
*) ac_try_echo=$ac_try;;
3160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161
(eval "$ac_try") 2>&5
3163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164
(exit $ac_status); }; }; then
3167
if test "$cross_compiling" = maybe; then
3170
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3171
If you meant to cross compile, use \`--host'.
3172
See \`config.log' for more details." >&5
3173
echo "$as_me: error: cannot run C compiled programs.
3174
If you meant to cross compile, use \`--host'.
3175
See \`config.log' for more details." >&2;}
3176
{ (exit 1); exit 1; }; }
3180
{ echo "$as_me:$LINENO: result: yes" >&5
3181
echo "${ECHO_T}yes" >&6; }
3183
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3184
ac_clean_files=$ac_clean_files_save
3185
# Check that the compiler produces executables we can run. If not, either
3186
# the compiler is broken, or we cross compile.
3187
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3188
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3189
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3190
echo "${ECHO_T}$cross_compiling" >&6; }
3192
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3193
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3194
if { (ac_try="$ac_link"
3196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197
*) ac_try_echo=$ac_try;;
3199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200
(eval "$ac_link") 2>&5
3202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203
(exit $ac_status); }; then
3204
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3205
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3206
# work properly (i.e., refer to `conftest.exe'), while it won't with
3208
for ac_file in conftest.exe conftest conftest.*; do
3209
test -f "$ac_file" || continue
3211
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3212
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3219
See \`config.log' for more details." >&5
3220
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3221
See \`config.log' for more details." >&2;}
3222
{ (exit 1); exit 1; }; }
3225
rm -f conftest$ac_cv_exeext
3226
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3227
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3229
rm -f conftest.$ac_ext
3230
EXEEXT=$ac_cv_exeext
3232
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3233
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3234
if test "${ac_cv_objext+set}" = set; then
3235
echo $ECHO_N "(cached) $ECHO_C" >&6
3237
cat >conftest.$ac_ext <<_ACEOF
3240
cat confdefs.h >>conftest.$ac_ext
3241
cat >>conftest.$ac_ext <<_ACEOF
3242
/* end confdefs.h. */
3252
rm -f conftest.o conftest.obj
3253
if { (ac_try="$ac_compile"
3255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256
*) ac_try_echo=$ac_try;;
3258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259
(eval "$ac_compile") 2>&5
3261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262
(exit $ac_status); }; then
3263
for ac_file in conftest.o conftest.obj conftest.*; do
3264
test -f "$ac_file" || continue;
3266
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3267
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272
echo "$as_me: failed program was:" >&5
3273
sed 's/^/| /' conftest.$ac_ext >&5
3275
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3276
See \`config.log' for more details." >&5
3277
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3278
See \`config.log' for more details." >&2;}
3279
{ (exit 1); exit 1; }; }
3282
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3285
echo "${ECHO_T}$ac_cv_objext" >&6; }
3286
OBJEXT=$ac_cv_objext
3288
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3289
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3290
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3291
echo $ECHO_N "(cached) $ECHO_C" >&6
3293
cat >conftest.$ac_ext <<_ACEOF
3296
cat confdefs.h >>conftest.$ac_ext
3297
cat >>conftest.$ac_ext <<_ACEOF
3298
/* end confdefs.h. */
3311
rm -f conftest.$ac_objext
3312
if { (ac_try="$ac_compile"
3314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315
*) ac_try_echo=$ac_try;;
3317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318
(eval "$ac_compile") 2>conftest.er1
3320
grep -v '^ *+' conftest.er1 >conftest.err
3322
cat conftest.err >&5
3323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324
(exit $ac_status); } && {
3325
test -z "$ac_c_werror_flag" ||
3326
test ! -s conftest.err
3327
} && test -s conftest.$ac_objext; then
3330
echo "$as_me: failed program was:" >&5
3331
sed 's/^/| /' conftest.$ac_ext >&5
3336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3340
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3341
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3342
GCC=`test $ac_compiler_gnu = yes && echo yes`
3343
ac_test_CFLAGS=${CFLAGS+set}
3344
ac_save_CFLAGS=$CFLAGS
3345
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3346
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3347
if test "${ac_cv_prog_cc_g+set}" = set; then
3348
echo $ECHO_N "(cached) $ECHO_C" >&6
3350
ac_save_c_werror_flag=$ac_c_werror_flag
3351
ac_c_werror_flag=yes
3354
cat >conftest.$ac_ext <<_ACEOF
3357
cat confdefs.h >>conftest.$ac_ext
3358
cat >>conftest.$ac_ext <<_ACEOF
3359
/* end confdefs.h. */
3369
rm -f conftest.$ac_objext
3370
if { (ac_try="$ac_compile"
3372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373
*) ac_try_echo=$ac_try;;
3375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376
(eval "$ac_compile") 2>conftest.er1
3378
grep -v '^ *+' conftest.er1 >conftest.err
3380
cat conftest.err >&5
3381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
(exit $ac_status); } && {
3383
test -z "$ac_c_werror_flag" ||
3384
test ! -s conftest.err
3385
} && test -s conftest.$ac_objext; then
3388
echo "$as_me: failed program was:" >&5
3389
sed 's/^/| /' conftest.$ac_ext >&5
3392
cat >conftest.$ac_ext <<_ACEOF
3395
cat confdefs.h >>conftest.$ac_ext
3396
cat >>conftest.$ac_ext <<_ACEOF
3397
/* end confdefs.h. */
3407
rm -f conftest.$ac_objext
3408
if { (ac_try="$ac_compile"
3410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411
*) ac_try_echo=$ac_try;;
3413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414
(eval "$ac_compile") 2>conftest.er1
3416
grep -v '^ *+' conftest.er1 >conftest.err
3418
cat conftest.err >&5
3419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420
(exit $ac_status); } && {
3421
test -z "$ac_c_werror_flag" ||
3422
test ! -s conftest.err
3423
} && test -s conftest.$ac_objext; then
3426
echo "$as_me: failed program was:" >&5
3427
sed 's/^/| /' conftest.$ac_ext >&5
3429
ac_c_werror_flag=$ac_save_c_werror_flag
3431
cat >conftest.$ac_ext <<_ACEOF
3434
cat confdefs.h >>conftest.$ac_ext
3435
cat >>conftest.$ac_ext <<_ACEOF
3436
/* end confdefs.h. */
3446
rm -f conftest.$ac_objext
3447
if { (ac_try="$ac_compile"
3449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450
*) ac_try_echo=$ac_try;;
3452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453
(eval "$ac_compile") 2>conftest.er1
3455
grep -v '^ *+' conftest.er1 >conftest.err
3457
cat conftest.err >&5
3458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459
(exit $ac_status); } && {
3460
test -z "$ac_c_werror_flag" ||
3461
test ! -s conftest.err
3462
} && test -s conftest.$ac_objext; then
3465
echo "$as_me: failed program was:" >&5
3466
sed 's/^/| /' conftest.$ac_ext >&5
3471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478
ac_c_werror_flag=$ac_save_c_werror_flag
3480
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3481
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3482
if test "$ac_test_CFLAGS" = set; then
3483
CFLAGS=$ac_save_CFLAGS
3484
elif test $ac_cv_prog_cc_g = yes; then
3485
if test "$GCC" = yes; then
3491
if test "$GCC" = yes; then
3497
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3498
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3499
if test "${ac_cv_prog_cc_c89+set}" = set; then
3500
echo $ECHO_N "(cached) $ECHO_C" >&6
3502
ac_cv_prog_cc_c89=no
3504
cat >conftest.$ac_ext <<_ACEOF
3507
cat confdefs.h >>conftest.$ac_ext
3508
cat >>conftest.$ac_ext <<_ACEOF
3509
/* end confdefs.h. */
3512
#include <sys/types.h>
3513
#include <sys/stat.h>
3514
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3515
struct buf { int x; };
3516
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3517
static char *e (p, i)
3523
static char *f (char * (*g) (char **, int), char **p, ...)
3528
s = g (p, va_arg (v,int));
3533
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3534
function prototypes and stuff, but not '\xHH' hex character constants.
3535
These don't provoke an error unfortunately, instead are silently treated
3536
as 'x'. The following induces an error, until -std is added to get
3537
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3538
array size at least. It's necessary to write '\x00'==0 to get something
3539
that's true only with -std. */
3540
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3543
inside strings and character constants. */
3545
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547
int test (int i, double x);
3548
struct s1 {int (*f) (int a);};
3549
struct s2 {int (*f) (double a);};
3550
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3556
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3561
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3562
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564
CC="$ac_save_CC $ac_arg"
3565
rm -f conftest.$ac_objext
3566
if { (ac_try="$ac_compile"
3568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569
*) ac_try_echo=$ac_try;;
3571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572
(eval "$ac_compile") 2>conftest.er1
3574
grep -v '^ *+' conftest.er1 >conftest.err
3576
cat conftest.err >&5
3577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
(exit $ac_status); } && {
3579
test -z "$ac_c_werror_flag" ||
3580
test ! -s conftest.err
3581
} && test -s conftest.$ac_objext; then
3582
ac_cv_prog_cc_c89=$ac_arg
3584
echo "$as_me: failed program was:" >&5
3585
sed 's/^/| /' conftest.$ac_ext >&5
3590
rm -f core conftest.err conftest.$ac_objext
3591
test "x$ac_cv_prog_cc_c89" != "xno" && break
3593
rm -f conftest.$ac_ext
3598
case "x$ac_cv_prog_cc_c89" in
3600
{ echo "$as_me:$LINENO: result: none needed" >&5
3601
echo "${ECHO_T}none needed" >&6; } ;;
3603
{ echo "$as_me:$LINENO: result: unsupported" >&5
3604
echo "${ECHO_T}unsupported" >&6; } ;;
3606
CC="$CC $ac_cv_prog_cc_c89"
3607
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3608
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3613
ac_cpp='$CPP $CPPFLAGS'
3614
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
depcc="$CC" am_compiler_list=
3620
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3621
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3622
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3623
echo $ECHO_N "(cached) $ECHO_C" >&6
3625
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626
# We make a subdir and do the tests there. Otherwise we can end up
3627
# making bogus files that we don't know about and never remove. For
3628
# instance it was reported that on HP-UX the gcc test will end up
3629
# making a dummy file named `D' -- because `-MD' means `put the output
3632
# Copy depcomp to subdir because otherwise we won't find it if we're
3633
# using a relative directory.
3634
cp "$am_depcomp" conftest.dir
3636
# We will build objects and dependencies in a subdirectory because
3637
# it helps to detect inapplicable dependency modes. For instance
3638
# both Tru64's cc and ICC support -MD to output dependencies as a
3639
# side effect of compilation, but ICC will put the dependencies in
3640
# the current directory while Tru64 will put them in the object
3644
am_cv_CC_dependencies_compiler_type=none
3645
if test "$am_compiler_list" = ""; then
3646
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3648
for depmode in $am_compiler_list; do
3649
# Setup a source with many dependencies, because some compilers
3650
# like to wrap large dependency lists on column 80 (with \), and
3651
# we should not choose a depcomp mode which is confused by this.
3653
# We need to recreate these files for each test, as the compiler may
3654
# overwrite some of them when testing with obscure command lines.
3655
# This happens at least with the AIX C compiler.
3657
for i in 1 2 3 4 5 6; do
3658
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3659
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3660
# Solaris 8's {/usr,}/bin/sh.
3661
touch sub/conftst$i.h
3663
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3667
# after this tag, mechanisms are not by side-effect, so they'll
3668
# only be used when explicitly requested
3669
if test "x$enable_dependency_tracking" = xyes; then
3677
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3678
# mode. It turns out that the SunPro C++ compiler does not properly
3679
# handle `-M -o', and we need to detect this.
3680
if depmode=$depmode \
3681
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3682
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3683
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3684
>/dev/null 2>conftest.err &&
3685
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3686
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3687
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3688
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3689
# icc doesn't choke on unknown options, it will just issue warnings
3690
# or remarks (even with -Werror). So we grep stderr for any message
3691
# that says an option was ignored or not supported.
3692
# When given -MP, icc 7.0 and 7.1 complain thusly:
3693
# icc: Command line warning: ignoring option '-M'; no argument required
3694
# The diagnosis changed in icc 8.0:
3695
# icc: Command line remark: option '-MP' not supported
3696
if (grep 'ignoring option' conftest.err ||
3697
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3698
am_cv_CC_dependencies_compiler_type=$depmode
3707
am_cv_CC_dependencies_compiler_type=none
3711
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3712
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3713
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3716
test "x$enable_dependency_tracking" != xno \
3717
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3719
am__fastdepCC_FALSE='#'
3721
am__fastdepCC_TRUE='#'
3722
am__fastdepCC_FALSE=
3726
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3727
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3728
if test "${lt_cv_path_SED+set}" = set; then
3729
echo $ECHO_N "(cached) $ECHO_C" >&6
3731
# Loop through the user's path and test for sed and gsed.
3732
# Then use that list of sed's as ones to test for truncation.
3733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737
test -z "$as_dir" && as_dir=.
3738
for lt_ac_prog in sed gsed; do
3739
for ac_exec_ext in '' $ac_executable_extensions; do
3740
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3741
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3748
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3749
# along with /bin/sed that truncates output.
3750
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3751
test ! -f $lt_ac_sed && continue
3752
cat /dev/null > conftest.in
3754
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3755
# Check for GNU sed and select it if it is found.
3756
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3757
lt_cv_path_SED=$lt_ac_sed
3761
cat conftest.in conftest.in >conftest.tmp
3762
mv conftest.tmp conftest.in
3763
cp conftest.in conftest.nl
3765
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3766
cmp -s conftest.out conftest.nl || break
3767
# 10000 chars as input seems more than enough
3768
test $lt_ac_count -gt 10 && break
3769
lt_ac_count=`expr $lt_ac_count + 1`
3770
if test $lt_ac_count -gt $lt_ac_max; then
3771
lt_ac_max=$lt_ac_count
3772
lt_cv_path_SED=$lt_ac_sed
3780
{ echo "$as_me:$LINENO: result: $SED" >&5
3781
echo "${ECHO_T}$SED" >&6; }
3783
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3784
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3785
if test "${ac_cv_path_GREP+set}" = set; then
3786
echo $ECHO_N "(cached) $ECHO_C" >&6
3788
# Extract the first word of "grep ggrep" to use in msg output
3789
if test -z "$GREP"; then
3790
set dummy grep ggrep; ac_prog_name=$2
3791
if test "${ac_cv_path_GREP+set}" = set; then
3792
echo $ECHO_N "(cached) $ECHO_C" >&6
3794
ac_path_GREP_found=false
3795
# Loop through the user's path and test for each of PROGNAME-LIST
3796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800
test -z "$as_dir" && as_dir=.
3801
for ac_prog in grep ggrep; do
3802
for ac_exec_ext in '' $ac_executable_extensions; do
3803
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3804
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3805
# Check for GNU ac_path_GREP and select it if it is found.
3806
# Check for GNU $ac_path_GREP
3807
case `"$ac_path_GREP" --version 2>&1` in
3809
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3815
cat "conftest.in" "conftest.in" >"conftest.tmp"
3816
mv "conftest.tmp" "conftest.in"
3817
cp "conftest.in" "conftest.nl"
3818
echo 'GREP' >> "conftest.nl"
3819
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3820
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3821
ac_count=`expr $ac_count + 1`
3822
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3823
# Best one so far, save it but keep looking for a better one
3824
ac_cv_path_GREP="$ac_path_GREP"
3825
ac_path_GREP_max=$ac_count
3827
# 10*(2^10) chars as input seems more than enough
3828
test $ac_count -gt 10 && break
3830
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834
$ac_path_GREP_found && break 3
3844
GREP="$ac_cv_path_GREP"
3845
if test -z "$GREP"; then
3846
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3847
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3848
{ (exit 1); exit 1; }; }
3852
ac_cv_path_GREP=$GREP
3857
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3858
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3859
GREP="$ac_cv_path_GREP"
3862
{ echo "$as_me:$LINENO: checking for egrep" >&5
3863
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3864
if test "${ac_cv_path_EGREP+set}" = set; then
3865
echo $ECHO_N "(cached) $ECHO_C" >&6
3867
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868
then ac_cv_path_EGREP="$GREP -E"
3870
# Extract the first word of "egrep" to use in msg output
3871
if test -z "$EGREP"; then
3872
set dummy egrep; ac_prog_name=$2
3873
if test "${ac_cv_path_EGREP+set}" = set; then
3874
echo $ECHO_N "(cached) $ECHO_C" >&6
3876
ac_path_EGREP_found=false
3877
# Loop through the user's path and test for each of PROGNAME-LIST
3878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882
test -z "$as_dir" && as_dir=.
3883
for ac_prog in egrep; do
3884
for ac_exec_ext in '' $ac_executable_extensions; do
3885
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3886
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3887
# Check for GNU ac_path_EGREP and select it if it is found.
3888
# Check for GNU $ac_path_EGREP
3889
case `"$ac_path_EGREP" --version 2>&1` in
3891
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3894
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3897
cat "conftest.in" "conftest.in" >"conftest.tmp"
3898
mv "conftest.tmp" "conftest.in"
3899
cp "conftest.in" "conftest.nl"
3900
echo 'EGREP' >> "conftest.nl"
3901
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903
ac_count=`expr $ac_count + 1`
3904
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3905
# Best one so far, save it but keep looking for a better one
3906
ac_cv_path_EGREP="$ac_path_EGREP"
3907
ac_path_EGREP_max=$ac_count
3909
# 10*(2^10) chars as input seems more than enough
3910
test $ac_count -gt 10 && break
3912
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916
$ac_path_EGREP_found && break 3
3926
EGREP="$ac_cv_path_EGREP"
3927
if test -z "$EGREP"; then
3928
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930
{ (exit 1); exit 1; }; }
3934
ac_cv_path_EGREP=$EGREP
3940
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3941
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3942
EGREP="$ac_cv_path_EGREP"
3946
# Check whether --with-gnu-ld was given.
3947
if test "${with_gnu_ld+set}" = set; then
3948
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3954
if test "$GCC" = yes; then
3955
# Check if gcc -print-prog-name=ld gives a path.
3956
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3957
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3960
# gcc leaves a trailing carriage return which upsets mingw
3961
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3963
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3966
# Accept absolute paths.
3968
re_direlt='/[^/][^/]*/\.\./'
3969
# Canonicalize the pathname of ld
3970
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3971
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3972
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3974
test -z "$LD" && LD="$ac_prog"
3977
# If it fails, then pretend we aren't using GCC.
3981
# If it is relative, then search for the first ld in PATH.
3985
elif test "$with_gnu_ld" = yes; then
3986
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
3987
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3989
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3990
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3992
if test "${lt_cv_path_LD+set}" = set; then
3993
echo $ECHO_N "(cached) $ECHO_C" >&6
3995
if test -z "$LD"; then
3996
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3997
for ac_dir in $PATH; do
3999
test -z "$ac_dir" && ac_dir=.
4000
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4001
lt_cv_path_LD="$ac_dir/$ac_prog"
4002
# Check to see if the program is GNU ld. I'd rather use --version,
4003
# but apparently some variants of GNU ld only accept -v.
4004
# Break only if it was the GNU/non-GNU ld that we prefer.
4005
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4006
*GNU* | *'with BFD'*)
4007
test "$with_gnu_ld" != no && break
4010
test "$with_gnu_ld" != yes && break
4017
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4022
if test -n "$LD"; then
4023
{ echo "$as_me:$LINENO: result: $LD" >&5
4024
echo "${ECHO_T}$LD" >&6; }
4026
{ echo "$as_me:$LINENO: result: no" >&5
4027
echo "${ECHO_T}no" >&6; }
4029
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4030
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4031
{ (exit 1); exit 1; }; }
4032
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4033
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4034
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4035
echo $ECHO_N "(cached) $ECHO_C" >&6
4037
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4038
case `$LD -v 2>&1 </dev/null` in
4039
*GNU* | *'with BFD'*)
4040
lt_cv_prog_gnu_ld=yes
4043
lt_cv_prog_gnu_ld=no
4047
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4048
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4049
with_gnu_ld=$lt_cv_prog_gnu_ld
4052
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4053
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4054
if test "${lt_cv_ld_reload_flag+set}" = set; then
4055
echo $ECHO_N "(cached) $ECHO_C" >&6
4057
lt_cv_ld_reload_flag='-r'
4059
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4060
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4061
reload_flag=$lt_cv_ld_reload_flag
4062
case $reload_flag in
4064
*) reload_flag=" $reload_flag" ;;
4066
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4069
if test "$GCC" = yes; then
4070
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4072
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4077
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4078
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4079
if test "${lt_cv_path_NM+set}" = set; then
4080
echo $ECHO_N "(cached) $ECHO_C" >&6
4082
if test -n "$NM"; then
4083
# Let the user override the test.
4086
lt_nm_to_check="${ac_tool_prefix}nm"
4087
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4088
lt_nm_to_check="$lt_nm_to_check nm"
4090
for lt_tmp_nm in $lt_nm_to_check; do
4091
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4094
test -z "$ac_dir" && ac_dir=.
4095
tmp_nm="$ac_dir/$lt_tmp_nm"
4096
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4097
# Check to see if the nm accepts a BSD-compat flag.
4098
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4099
# nm: unknown option "B" ignored
4100
# Tru64's nm complains that /dev/null is an invalid object file
4101
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4102
*/dev/null* | *'Invalid file or object type'*)
4103
lt_cv_path_NM="$tmp_nm -B"
4107
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4109
lt_cv_path_NM="$tmp_nm -p"
4113
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4114
continue # so that we can try to find one that supports BSD flags
4123
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4127
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4130
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4131
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4133
if test "$LN_S" = "ln -s"; then
4134
{ echo "$as_me:$LINENO: result: yes" >&5
4135
echo "${ECHO_T}yes" >&6; }
4137
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4138
echo "${ECHO_T}no, using $LN_S" >&6; }
4141
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4142
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4143
if test "${lt_cv_deplibs_check_method+set}" = set; then
4144
echo $ECHO_N "(cached) $ECHO_C" >&6
4146
lt_cv_file_magic_cmd='$MAGIC_CMD'
4147
lt_cv_file_magic_test_file=
4148
lt_cv_deplibs_check_method='unknown'
4149
# Need to set the preceding variable on all platforms that support
4150
# interlibrary dependencies.
4151
# 'none' -- dependencies not supported.
4152
# `unknown' -- same as none, but documents that we really don't know.
4153
# 'pass_all' -- all dependencies passed with no checks.
4154
# 'test_compile' -- check by making test program.
4155
# 'file_magic [[regex]]' -- check by looking for files in library path
4156
# which responds to the $file_magic_cmd with a given extended regex.
4157
# If you have `file' or equivalent on your system and you're not sure
4158
# whether `pass_all' will *always* work, you probably want this one.
4162
lt_cv_deplibs_check_method=pass_all
4166
lt_cv_deplibs_check_method=pass_all
4170
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4171
lt_cv_file_magic_cmd='/usr/bin/file -L'
4172
lt_cv_file_magic_test_file=/shlib/libc.so
4176
# func_win32_libid is a shell function defined in ltmain.sh
4177
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178
lt_cv_file_magic_cmd='func_win32_libid'
4182
# Base MSYS/MinGW do not provide the 'file' command needed by
4183
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4184
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4185
lt_cv_file_magic_cmd='$OBJDUMP -f'
4188
darwin* | rhapsody*)
4189
lt_cv_deplibs_check_method=pass_all
4192
freebsd* | dragonfly*)
4193
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4196
# Not sure whether the presence of OpenBSD here was a mistake.
4197
# Let's accept both of them until this is cleared up.
4198
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4199
lt_cv_file_magic_cmd=/usr/bin/file
4200
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4204
lt_cv_deplibs_check_method=pass_all
4209
lt_cv_deplibs_check_method=pass_all
4212
hpux10.20* | hpux11*)
4213
lt_cv_file_magic_cmd=/usr/bin/file
4216
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4217
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4220
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]'
4221
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4224
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4225
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4231
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4232
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4235
irix5* | irix6* | nonstopux*)
4237
*-32|*"-32 ") libmagic=32-bit;;
4238
*-n32|*"-n32 ") libmagic=N32;;
4239
*-64|*"-64 ") libmagic=64-bit;;
4240
*) libmagic=never-match;;
4242
lt_cv_deplibs_check_method=pass_all
4245
# This must be Linux ELF.
4246
linux* | k*bsd*-gnu)
4247
lt_cv_deplibs_check_method=pass_all
4250
netbsd* | netbsdelf*-gnu)
4251
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4252
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4254
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4259
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4260
lt_cv_file_magic_cmd=/usr/bin/file
4261
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4265
lt_cv_deplibs_check_method=unknown
4269
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4270
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4272
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4276
osf3* | osf4* | osf5*)
4277
lt_cv_deplibs_check_method=pass_all
4281
lt_cv_deplibs_check_method=pass_all
4285
case $host_vendor in
4287
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]'
4288
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4291
lt_cv_deplibs_check_method=pass_all
4294
lt_cv_file_magic_cmd='/bin/file'
4295
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4298
lt_cv_file_magic_cmd='/bin/file'
4299
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4300
lt_cv_file_magic_test_file=/lib/libc.so
4303
lt_cv_deplibs_check_method=pass_all
4306
lt_cv_deplibs_check_method=pass_all
4311
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4312
lt_cv_deplibs_check_method=pass_all
4317
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4318
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4319
file_magic_cmd=$lt_cv_file_magic_cmd
4320
deplibs_check_method=$lt_cv_deplibs_check_method
4321
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4326
# If no C compiler was specified, use CC.
4329
# If no C compiler flags were specified, use CFLAGS.
4330
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4332
# Allow CC to be a program name with arguments.
4336
# Check whether --enable-libtool-lock was given.
4337
if test "${enable_libtool_lock+set}" = set; then
4338
enableval=$enable_libtool_lock;
4341
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4343
# Some flags need to be propagated to the compiler or linker for good
4347
# Find out which ABI we are using.
4348
echo 'int i;' > conftest.$ac_ext
4349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350
(eval $ac_compile) 2>&5
4352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
(exit $ac_status); }; then
4354
case `/usr/bin/file conftest.$ac_objext` in
4366
# Find out which ABI we are using.
4367
echo '#line 4367 "configure"' > conftest.$ac_ext
4368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369
(eval $ac_compile) 2>&5
4371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372
(exit $ac_status); }; then
4373
if test "$lt_cv_prog_gnu_ld" = yes; then
4374
case `/usr/bin/file conftest.$ac_objext` in
4376
LD="${LD-ld} -melf32bsmip"
4379
LD="${LD-ld} -melf32bmipn32"
4382
LD="${LD-ld} -melf64bmip"
4386
case `/usr/bin/file conftest.$ac_objext` in
4402
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4403
# Find out which ABI we are using.
4404
echo 'int i;' > conftest.$ac_ext
4405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406
(eval $ac_compile) 2>&5
4408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
(exit $ac_status); }; then
4410
case `/usr/bin/file conftest.o` in
4414
LD="${LD-ld} -m elf_i386"
4416
ppc64-*linux*|powerpc64-*linux*)
4417
LD="${LD-ld} -m elf32ppclinux"
4420
LD="${LD-ld} -m elf_s390"
4423
LD="${LD-ld} -m elf32_sparc"
4430
LD="${LD-ld} -m elf_x86_64"
4432
ppc*-*linux*|powerpc*-*linux*)
4433
LD="${LD-ld} -m elf64ppc"
4436
LD="${LD-ld} -m elf64_s390"
4439
LD="${LD-ld} -m elf64_sparc"
4449
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4450
SAVE_CFLAGS="$CFLAGS"
4451
CFLAGS="$CFLAGS -belf"
4452
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4453
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4454
if test "${lt_cv_cc_needs_belf+set}" = set; then
4455
echo $ECHO_N "(cached) $ECHO_C" >&6
4458
ac_cpp='$CPP $CPPFLAGS'
4459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
cat >conftest.$ac_ext <<_ACEOF
4466
cat confdefs.h >>conftest.$ac_ext
4467
cat >>conftest.$ac_ext <<_ACEOF
4468
/* end confdefs.h. */
4478
rm -f conftest.$ac_objext conftest$ac_exeext
4479
if { (ac_try="$ac_link"
4481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482
*) ac_try_echo=$ac_try;;
4484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485
(eval "$ac_link") 2>conftest.er1
4487
grep -v '^ *+' conftest.er1 >conftest.err
4489
cat conftest.err >&5
4490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491
(exit $ac_status); } && {
4492
test -z "$ac_c_werror_flag" ||
4493
test ! -s conftest.err
4494
} && test -s conftest$ac_exeext &&
4495
$as_test_x conftest$ac_exeext; then
4496
lt_cv_cc_needs_belf=yes
4498
echo "$as_me: failed program was:" >&5
4499
sed 's/^/| /' conftest.$ac_ext >&5
4501
lt_cv_cc_needs_belf=no
4504
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4505
conftest$ac_exeext conftest.$ac_ext
4507
ac_cpp='$CPP $CPPFLAGS'
4508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4514
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4515
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4516
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4517
CFLAGS="$SAVE_CFLAGS"
4521
# Find out which ABI we are using.
4522
echo 'int i;' > conftest.$ac_ext
4523
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524
(eval $ac_compile) 2>&5
4526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527
(exit $ac_status); }; then
4528
case `/usr/bin/file conftest.o` in
4530
case $lt_cv_prog_gnu_ld in
4531
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4532
*) LD="${LD-ld} -64" ;;
4543
need_locks="$enable_libtool_lock"
4547
ac_cpp='$CPP $CPPFLAGS'
4548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4552
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4553
# On Suns, sometimes $CPP names a directory.
4554
if test -n "$CPP" && test -d "$CPP"; then
4557
if test -z "$CPP"; then
4558
if test "${ac_cv_prog_CPP+set}" = set; then
4559
echo $ECHO_N "(cached) $ECHO_C" >&6
4561
# Double quotes because CPP needs to be expanded
4562
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4565
for ac_c_preproc_warn_flag in '' yes
4567
# Use a header file that comes with gcc, so configuring glibc
4568
# with a fresh cross-compiler works.
4569
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570
# <limits.h> exists even on freestanding compilers.
4571
# On the NeXT, cc -E runs the code through the compiler's parser,
4572
# not just through cpp. "Syntax error" is here to catch this case.
4573
cat >conftest.$ac_ext <<_ACEOF
4576
cat confdefs.h >>conftest.$ac_ext
4577
cat >>conftest.$ac_ext <<_ACEOF
4578
/* end confdefs.h. */
4580
# include <limits.h>
4582
# include <assert.h>
4586
if { (ac_try="$ac_cpp conftest.$ac_ext"
4588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589
*) ac_try_echo=$ac_try;;
4591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4594
grep -v '^ *+' conftest.er1 >conftest.err
4596
cat conftest.err >&5
4597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598
(exit $ac_status); } >/dev/null && {
4599
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4600
test ! -s conftest.err
4604
echo "$as_me: failed program was:" >&5
4605
sed 's/^/| /' conftest.$ac_ext >&5
4607
# Broken: fails on valid input.
4611
rm -f conftest.err conftest.$ac_ext
4613
# OK, works on sane cases. Now check whether nonexistent headers
4614
# can be detected and how.
4615
cat >conftest.$ac_ext <<_ACEOF
4618
cat confdefs.h >>conftest.$ac_ext
4619
cat >>conftest.$ac_ext <<_ACEOF
4620
/* end confdefs.h. */
4621
#include <ac_nonexistent.h>
4623
if { (ac_try="$ac_cpp conftest.$ac_ext"
4625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626
*) ac_try_echo=$ac_try;;
4628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4631
grep -v '^ *+' conftest.er1 >conftest.err
4633
cat conftest.err >&5
4634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635
(exit $ac_status); } >/dev/null && {
4636
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4637
test ! -s conftest.err
4639
# Broken: success on invalid input.
4642
echo "$as_me: failed program was:" >&5
4643
sed 's/^/| /' conftest.$ac_ext >&5
4645
# Passes both tests.
4650
rm -f conftest.err conftest.$ac_ext
4653
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4654
rm -f conftest.err conftest.$ac_ext
4655
if $ac_preproc_ok; then
4667
{ echo "$as_me:$LINENO: result: $CPP" >&5
4668
echo "${ECHO_T}$CPP" >&6; }
4670
for ac_c_preproc_warn_flag in '' yes
4672
# Use a header file that comes with gcc, so configuring glibc
4673
# with a fresh cross-compiler works.
4674
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675
# <limits.h> exists even on freestanding compilers.
4676
# On the NeXT, cc -E runs the code through the compiler's parser,
4677
# not just through cpp. "Syntax error" is here to catch this case.
4678
cat >conftest.$ac_ext <<_ACEOF
4681
cat confdefs.h >>conftest.$ac_ext
4682
cat >>conftest.$ac_ext <<_ACEOF
4683
/* end confdefs.h. */
4685
# include <limits.h>
4687
# include <assert.h>
4691
if { (ac_try="$ac_cpp conftest.$ac_ext"
4693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694
*) ac_try_echo=$ac_try;;
4696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699
grep -v '^ *+' conftest.er1 >conftest.err
4701
cat conftest.err >&5
4702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
(exit $ac_status); } >/dev/null && {
4704
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705
test ! -s conftest.err
4709
echo "$as_me: failed program was:" >&5
4710
sed 's/^/| /' conftest.$ac_ext >&5
4712
# Broken: fails on valid input.
4716
rm -f conftest.err conftest.$ac_ext
4718
# OK, works on sane cases. Now check whether nonexistent headers
4719
# can be detected and how.
4720
cat >conftest.$ac_ext <<_ACEOF
4723
cat confdefs.h >>conftest.$ac_ext
4724
cat >>conftest.$ac_ext <<_ACEOF
4725
/* end confdefs.h. */
4726
#include <ac_nonexistent.h>
4728
if { (ac_try="$ac_cpp conftest.$ac_ext"
4730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731
*) ac_try_echo=$ac_try;;
4733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736
grep -v '^ *+' conftest.er1 >conftest.err
4738
cat conftest.err >&5
4739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740
(exit $ac_status); } >/dev/null && {
4741
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742
test ! -s conftest.err
4744
# Broken: success on invalid input.
4747
echo "$as_me: failed program was:" >&5
4748
sed 's/^/| /' conftest.$ac_ext >&5
4750
# Passes both tests.
4755
rm -f conftest.err conftest.$ac_ext
4758
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759
rm -f conftest.err conftest.$ac_ext
4760
if $ac_preproc_ok; then
4763
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4764
See \`config.log' for more details." >&5
4765
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4766
See \`config.log' for more details." >&2;}
4767
{ (exit 1); exit 1; }; }
4771
ac_cpp='$CPP $CPPFLAGS'
4772
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4778
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4779
if test "${ac_cv_header_stdc+set}" = set; then
4780
echo $ECHO_N "(cached) $ECHO_C" >&6
4782
cat >conftest.$ac_ext <<_ACEOF
4785
cat confdefs.h >>conftest.$ac_ext
4786
cat >>conftest.$ac_ext <<_ACEOF
4787
/* end confdefs.h. */
4801
rm -f conftest.$ac_objext
4802
if { (ac_try="$ac_compile"
4804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805
*) ac_try_echo=$ac_try;;
4807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808
(eval "$ac_compile") 2>conftest.er1
4810
grep -v '^ *+' conftest.er1 >conftest.err
4812
cat conftest.err >&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); } && {
4815
test -z "$ac_c_werror_flag" ||
4816
test ! -s conftest.err
4817
} && test -s conftest.$ac_objext; then
4818
ac_cv_header_stdc=yes
4820
echo "$as_me: failed program was:" >&5
4821
sed 's/^/| /' conftest.$ac_ext >&5
4823
ac_cv_header_stdc=no
4826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828
if test $ac_cv_header_stdc = yes; then
4829
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4830
cat >conftest.$ac_ext <<_ACEOF
4833
cat confdefs.h >>conftest.$ac_ext
4834
cat >>conftest.$ac_ext <<_ACEOF
4835
/* end confdefs.h. */
4839
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840
$EGREP "memchr" >/dev/null 2>&1; then
4843
ac_cv_header_stdc=no
4849
if test $ac_cv_header_stdc = yes; then
4850
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4851
cat >conftest.$ac_ext <<_ACEOF
4854
cat confdefs.h >>conftest.$ac_ext
4855
cat >>conftest.$ac_ext <<_ACEOF
4856
/* end confdefs.h. */
4860
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861
$EGREP "free" >/dev/null 2>&1; then
4864
ac_cv_header_stdc=no
4870
if test $ac_cv_header_stdc = yes; then
4871
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4872
if test "$cross_compiling" = yes; then
4875
cat >conftest.$ac_ext <<_ACEOF
4878
cat confdefs.h >>conftest.$ac_ext
4879
cat >>conftest.$ac_ext <<_ACEOF
4880
/* end confdefs.h. */
4883
#if ((' ' & 0x0FF) == 0x020)
4884
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887
# define ISLOWER(c) \
4888
(('a' <= (c) && (c) <= 'i') \
4889
|| ('j' <= (c) && (c) <= 'r') \
4890
|| ('s' <= (c) && (c) <= 'z'))
4891
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4894
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4899
for (i = 0; i < 256; i++)
4900
if (XOR (islower (i), ISLOWER (i))
4901
|| toupper (i) != TOUPPER (i))
4906
rm -f conftest$ac_exeext
4907
if { (ac_try="$ac_link"
4909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910
*) ac_try_echo=$ac_try;;
4912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913
(eval "$ac_link") 2>&5
4915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4917
{ (case "(($ac_try" in
4918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919
*) ac_try_echo=$ac_try;;
4921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922
(eval "$ac_try") 2>&5
4924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925
(exit $ac_status); }; }; then
4928
echo "$as_me: program exited with status $ac_status" >&5
4929
echo "$as_me: failed program was:" >&5
4930
sed 's/^/| /' conftest.$ac_ext >&5
4933
ac_cv_header_stdc=no
4935
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4941
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4942
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4943
if test $ac_cv_header_stdc = yes; then
4945
cat >>confdefs.h <<\_ACEOF
4946
#define STDC_HEADERS 1
4951
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4961
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4962
inttypes.h stdint.h unistd.h
4964
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4966
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4967
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4968
echo $ECHO_N "(cached) $ECHO_C" >&6
4970
cat >conftest.$ac_ext <<_ACEOF
4973
cat confdefs.h >>conftest.$ac_ext
4974
cat >>conftest.$ac_ext <<_ACEOF
4975
/* end confdefs.h. */
4976
$ac_includes_default
4978
#include <$ac_header>
4980
rm -f conftest.$ac_objext
4981
if { (ac_try="$ac_compile"
4983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984
*) ac_try_echo=$ac_try;;
4986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987
(eval "$ac_compile") 2>conftest.er1
4989
grep -v '^ *+' conftest.er1 >conftest.err
4991
cat conftest.err >&5
4992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993
(exit $ac_status); } && {
4994
test -z "$ac_c_werror_flag" ||
4995
test ! -s conftest.err
4996
} && test -s conftest.$ac_objext; then
4997
eval "$as_ac_Header=yes"
4999
echo "$as_me: failed program was:" >&5
5000
sed 's/^/| /' conftest.$ac_ext >&5
5002
eval "$as_ac_Header=no"
5005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007
ac_res=`eval echo '${'$as_ac_Header'}'`
5008
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5009
echo "${ECHO_T}$ac_res" >&6; }
5010
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5011
cat >>confdefs.h <<_ACEOF
5012
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021
for ac_header in dlfcn.h
5023
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5025
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5026
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5027
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5028
echo $ECHO_N "(cached) $ECHO_C" >&6
5030
ac_res=`eval echo '${'$as_ac_Header'}'`
5031
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5032
echo "${ECHO_T}$ac_res" >&6; }
5034
# Is the header compilable?
5035
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5036
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5037
cat >conftest.$ac_ext <<_ACEOF
5040
cat confdefs.h >>conftest.$ac_ext
5041
cat >>conftest.$ac_ext <<_ACEOF
5042
/* end confdefs.h. */
5043
$ac_includes_default
5044
#include <$ac_header>
5046
rm -f conftest.$ac_objext
5047
if { (ac_try="$ac_compile"
5049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050
*) ac_try_echo=$ac_try;;
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053
(eval "$ac_compile") 2>conftest.er1
5055
grep -v '^ *+' conftest.er1 >conftest.err
5057
cat conftest.err >&5
5058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059
(exit $ac_status); } && {
5060
test -z "$ac_c_werror_flag" ||
5061
test ! -s conftest.err
5062
} && test -s conftest.$ac_objext; then
5063
ac_header_compiler=yes
5065
echo "$as_me: failed program was:" >&5
5066
sed 's/^/| /' conftest.$ac_ext >&5
5068
ac_header_compiler=no
5071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5073
echo "${ECHO_T}$ac_header_compiler" >&6; }
5075
# Is the header present?
5076
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5077
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5078
cat >conftest.$ac_ext <<_ACEOF
5081
cat confdefs.h >>conftest.$ac_ext
5082
cat >>conftest.$ac_ext <<_ACEOF
5083
/* end confdefs.h. */
5084
#include <$ac_header>
5086
if { (ac_try="$ac_cpp conftest.$ac_ext"
5088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089
*) ac_try_echo=$ac_try;;
5091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5094
grep -v '^ *+' conftest.er1 >conftest.err
5096
cat conftest.err >&5
5097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
(exit $ac_status); } >/dev/null && {
5099
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100
test ! -s conftest.err
5102
ac_header_preproc=yes
5104
echo "$as_me: failed program was:" >&5
5105
sed 's/^/| /' conftest.$ac_ext >&5
5107
ac_header_preproc=no
5110
rm -f conftest.err conftest.$ac_ext
5111
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5112
echo "${ECHO_T}$ac_header_preproc" >&6; }
5114
# So? What about this header?
5115
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5117
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5118
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5119
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5120
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5121
ac_header_preproc=yes
5124
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5125
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5126
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5127
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5128
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5129
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5130
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5131
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5132
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5133
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5134
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5135
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5137
## ------------------- ##
5138
## Report this to NULL ##
5139
## ------------------- ##
5141
) | sed "s/^/$as_me: WARNING: /" >&2
5144
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5145
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5146
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5147
echo $ECHO_N "(cached) $ECHO_C" >&6
5149
eval "$as_ac_Header=\$ac_header_preproc"
5151
ac_res=`eval echo '${'$as_ac_Header'}'`
5152
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5153
echo "${ECHO_T}$ac_res" >&6; }
5156
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5157
cat >>confdefs.h <<_ACEOF
5158
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5166
ac_cpp='$CXXCPP $CPPFLAGS'
5167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170
if test -z "$CXX"; then
5171
if test -n "$CCC"; then
5174
if test -n "$ac_tool_prefix"; then
5175
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5177
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5181
if test "${ac_cv_prog_CXX+set}" = set; then
5182
echo $ECHO_N "(cached) $ECHO_C" >&6
5184
if test -n "$CXX"; then
5185
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191
test -z "$as_dir" && as_dir=.
5192
for ac_exec_ext in '' $ac_executable_extensions; do
5193
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5195
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205
if test -n "$CXX"; then
5206
{ echo "$as_me:$LINENO: result: $CXX" >&5
5207
echo "${ECHO_T}$CXX" >&6; }
5209
{ echo "$as_me:$LINENO: result: no" >&5
5210
echo "${ECHO_T}no" >&6; }
5214
test -n "$CXX" && break
5217
if test -z "$CXX"; then
5219
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5221
# Extract the first word of "$ac_prog", so it can be a program name with args.
5222
set dummy $ac_prog; ac_word=$2
5223
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5225
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5226
echo $ECHO_N "(cached) $ECHO_C" >&6
5228
if test -n "$ac_ct_CXX"; then
5229
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235
test -z "$as_dir" && as_dir=.
5236
for ac_exec_ext in '' $ac_executable_extensions; do
5237
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238
ac_cv_prog_ac_ct_CXX="$ac_prog"
5239
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5249
if test -n "$ac_ct_CXX"; then
5250
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5251
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5253
{ echo "$as_me:$LINENO: result: no" >&5
5254
echo "${ECHO_T}no" >&6; }
5258
test -n "$ac_ct_CXX" && break
5261
if test "x$ac_ct_CXX" = x; then
5264
case $cross_compiling:$ac_tool_warned in
5266
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5267
whose name does not start with the host triplet. If you think this
5268
configuration is useful to you, please write to autoconf@gnu.org." >&5
5269
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5270
whose name does not start with the host triplet. If you think this
5271
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5272
ac_tool_warned=yes ;;
5280
# Provide some information about the compiler.
5281
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5282
ac_compiler=`set X $ac_compile; echo $2`
5283
{ (ac_try="$ac_compiler --version >&5"
5285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286
*) ac_try_echo=$ac_try;;
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289
(eval "$ac_compiler --version >&5") 2>&5
5291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292
(exit $ac_status); }
5293
{ (ac_try="$ac_compiler -v >&5"
5295
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296
*) ac_try_echo=$ac_try;;
5298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299
(eval "$ac_compiler -v >&5") 2>&5
5301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302
(exit $ac_status); }
5303
{ (ac_try="$ac_compiler -V >&5"
5305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306
*) ac_try_echo=$ac_try;;
5308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309
(eval "$ac_compiler -V >&5") 2>&5
5311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
(exit $ac_status); }
5314
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5315
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5316
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5317
echo $ECHO_N "(cached) $ECHO_C" >&6
5319
cat >conftest.$ac_ext <<_ACEOF
5322
cat confdefs.h >>conftest.$ac_ext
5323
cat >>conftest.$ac_ext <<_ACEOF
5324
/* end confdefs.h. */
5337
rm -f conftest.$ac_objext
5338
if { (ac_try="$ac_compile"
5340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341
*) ac_try_echo=$ac_try;;
5343
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344
(eval "$ac_compile") 2>conftest.er1
5346
grep -v '^ *+' conftest.er1 >conftest.err
5348
cat conftest.err >&5
5349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350
(exit $ac_status); } && {
5351
test -z "$ac_cxx_werror_flag" ||
5352
test ! -s conftest.err
5353
} && test -s conftest.$ac_objext; then
5356
echo "$as_me: failed program was:" >&5
5357
sed 's/^/| /' conftest.$ac_ext >&5
5362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5366
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5367
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5368
GXX=`test $ac_compiler_gnu = yes && echo yes`
5369
ac_test_CXXFLAGS=${CXXFLAGS+set}
5370
ac_save_CXXFLAGS=$CXXFLAGS
5371
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5372
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5373
if test "${ac_cv_prog_cxx_g+set}" = set; then
5374
echo $ECHO_N "(cached) $ECHO_C" >&6
5376
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5377
ac_cxx_werror_flag=yes
5380
cat >conftest.$ac_ext <<_ACEOF
5383
cat confdefs.h >>conftest.$ac_ext
5384
cat >>conftest.$ac_ext <<_ACEOF
5385
/* end confdefs.h. */
5395
rm -f conftest.$ac_objext
5396
if { (ac_try="$ac_compile"
5398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399
*) ac_try_echo=$ac_try;;
5401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402
(eval "$ac_compile") 2>conftest.er1
5404
grep -v '^ *+' conftest.er1 >conftest.err
5406
cat conftest.err >&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); } && {
5409
test -z "$ac_cxx_werror_flag" ||
5410
test ! -s conftest.err
5411
} && test -s conftest.$ac_objext; then
5412
ac_cv_prog_cxx_g=yes
5414
echo "$as_me: failed program was:" >&5
5415
sed 's/^/| /' conftest.$ac_ext >&5
5418
cat >conftest.$ac_ext <<_ACEOF
5421
cat confdefs.h >>conftest.$ac_ext
5422
cat >>conftest.$ac_ext <<_ACEOF
5423
/* end confdefs.h. */
5433
rm -f conftest.$ac_objext
5434
if { (ac_try="$ac_compile"
5436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437
*) ac_try_echo=$ac_try;;
5439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440
(eval "$ac_compile") 2>conftest.er1
5442
grep -v '^ *+' conftest.er1 >conftest.err
5444
cat conftest.err >&5
5445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446
(exit $ac_status); } && {
5447
test -z "$ac_cxx_werror_flag" ||
5448
test ! -s conftest.err
5449
} && test -s conftest.$ac_objext; then
5452
echo "$as_me: failed program was:" >&5
5453
sed 's/^/| /' conftest.$ac_ext >&5
5455
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5457
cat >conftest.$ac_ext <<_ACEOF
5460
cat confdefs.h >>conftest.$ac_ext
5461
cat >>conftest.$ac_ext <<_ACEOF
5462
/* end confdefs.h. */
5472
rm -f conftest.$ac_objext
5473
if { (ac_try="$ac_compile"
5475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476
*) ac_try_echo=$ac_try;;
5478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479
(eval "$ac_compile") 2>conftest.er1
5481
grep -v '^ *+' conftest.er1 >conftest.err
5483
cat conftest.err >&5
5484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485
(exit $ac_status); } && {
5486
test -z "$ac_cxx_werror_flag" ||
5487
test ! -s conftest.err
5488
} && test -s conftest.$ac_objext; then
5489
ac_cv_prog_cxx_g=yes
5491
echo "$as_me: failed program was:" >&5
5492
sed 's/^/| /' conftest.$ac_ext >&5
5497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5506
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5507
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5508
if test "$ac_test_CXXFLAGS" = set; then
5509
CXXFLAGS=$ac_save_CXXFLAGS
5510
elif test $ac_cv_prog_cxx_g = yes; then
5511
if test "$GXX" = yes; then
5517
if test "$GXX" = yes; then
5524
ac_cpp='$CXXCPP $CPPFLAGS'
5525
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5526
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5527
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5529
depcc="$CXX" am_compiler_list=
5531
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5532
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5533
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5534
echo $ECHO_N "(cached) $ECHO_C" >&6
5536
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5537
# We make a subdir and do the tests there. Otherwise we can end up
5538
# making bogus files that we don't know about and never remove. For
5539
# instance it was reported that on HP-UX the gcc test will end up
5540
# making a dummy file named `D' -- because `-MD' means `put the output
5543
# Copy depcomp to subdir because otherwise we won't find it if we're
5544
# using a relative directory.
5545
cp "$am_depcomp" conftest.dir
5547
# We will build objects and dependencies in a subdirectory because
5548
# it helps to detect inapplicable dependency modes. For instance
5549
# both Tru64's cc and ICC support -MD to output dependencies as a
5550
# side effect of compilation, but ICC will put the dependencies in
5551
# the current directory while Tru64 will put them in the object
5555
am_cv_CXX_dependencies_compiler_type=none
5556
if test "$am_compiler_list" = ""; then
5557
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5559
for depmode in $am_compiler_list; do
5560
# Setup a source with many dependencies, because some compilers
5561
# like to wrap large dependency lists on column 80 (with \), and
5562
# we should not choose a depcomp mode which is confused by this.
5564
# We need to recreate these files for each test, as the compiler may
5565
# overwrite some of them when testing with obscure command lines.
5566
# This happens at least with the AIX C compiler.
5568
for i in 1 2 3 4 5 6; do
5569
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5570
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5571
# Solaris 8's {/usr,}/bin/sh.
5572
touch sub/conftst$i.h
5574
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5578
# after this tag, mechanisms are not by side-effect, so they'll
5579
# only be used when explicitly requested
5580
if test "x$enable_dependency_tracking" = xyes; then
5588
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5589
# mode. It turns out that the SunPro C++ compiler does not properly
5590
# handle `-M -o', and we need to detect this.
5591
if depmode=$depmode \
5592
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5593
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5594
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5595
>/dev/null 2>conftest.err &&
5596
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5597
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5598
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5599
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5600
# icc doesn't choke on unknown options, it will just issue warnings
5601
# or remarks (even with -Werror). So we grep stderr for any message
5602
# that says an option was ignored or not supported.
5603
# When given -MP, icc 7.0 and 7.1 complain thusly:
5604
# icc: Command line warning: ignoring option '-M'; no argument required
5605
# The diagnosis changed in icc 8.0:
5606
# icc: Command line remark: option '-MP' not supported
5607
if (grep 'ignoring option' conftest.err ||
5608
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5609
am_cv_CXX_dependencies_compiler_type=$depmode
5618
am_cv_CXX_dependencies_compiler_type=none
5622
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5623
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5624
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5627
test "x$enable_dependency_tracking" != xno \
5628
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5629
am__fastdepCXX_TRUE=
5630
am__fastdepCXX_FALSE='#'
5632
am__fastdepCXX_TRUE='#'
5633
am__fastdepCXX_FALSE=
5639
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5640
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5641
(test "X$CXX" != "Xg++"))) ; then
5643
ac_cpp='$CXXCPP $CPPFLAGS'
5644
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5647
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5648
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5649
if test -z "$CXXCPP"; then
5650
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5651
echo $ECHO_N "(cached) $ECHO_C" >&6
5653
# Double quotes because CXXCPP needs to be expanded
5654
for CXXCPP in "$CXX -E" "/lib/cpp"
5657
for ac_cxx_preproc_warn_flag in '' yes
5659
# Use a header file that comes with gcc, so configuring glibc
5660
# with a fresh cross-compiler works.
5661
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662
# <limits.h> exists even on freestanding compilers.
5663
# On the NeXT, cc -E runs the code through the compiler's parser,
5664
# not just through cpp. "Syntax error" is here to catch this case.
5665
cat >conftest.$ac_ext <<_ACEOF
5668
cat confdefs.h >>conftest.$ac_ext
5669
cat >>conftest.$ac_ext <<_ACEOF
5670
/* end confdefs.h. */
5672
# include <limits.h>
5674
# include <assert.h>
5678
if { (ac_try="$ac_cpp conftest.$ac_ext"
5680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681
*) ac_try_echo=$ac_try;;
5683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5686
grep -v '^ *+' conftest.er1 >conftest.err
5688
cat conftest.err >&5
5689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690
(exit $ac_status); } >/dev/null && {
5691
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5692
test ! -s conftest.err
5696
echo "$as_me: failed program was:" >&5
5697
sed 's/^/| /' conftest.$ac_ext >&5
5699
# Broken: fails on valid input.
5703
rm -f conftest.err conftest.$ac_ext
5705
# OK, works on sane cases. Now check whether nonexistent headers
5706
# can be detected and how.
5707
cat >conftest.$ac_ext <<_ACEOF
5710
cat confdefs.h >>conftest.$ac_ext
5711
cat >>conftest.$ac_ext <<_ACEOF
5712
/* end confdefs.h. */
5713
#include <ac_nonexistent.h>
5715
if { (ac_try="$ac_cpp conftest.$ac_ext"
5717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718
*) ac_try_echo=$ac_try;;
5720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723
grep -v '^ *+' conftest.er1 >conftest.err
5725
cat conftest.err >&5
5726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727
(exit $ac_status); } >/dev/null && {
5728
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5729
test ! -s conftest.err
5731
# Broken: success on invalid input.
5734
echo "$as_me: failed program was:" >&5
5735
sed 's/^/| /' conftest.$ac_ext >&5
5737
# Passes both tests.
5742
rm -f conftest.err conftest.$ac_ext
5745
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5746
rm -f conftest.err conftest.$ac_ext
5747
if $ac_preproc_ok; then
5752
ac_cv_prog_CXXCPP=$CXXCPP
5755
CXXCPP=$ac_cv_prog_CXXCPP
5757
ac_cv_prog_CXXCPP=$CXXCPP
5759
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5760
echo "${ECHO_T}$CXXCPP" >&6; }
5762
for ac_cxx_preproc_warn_flag in '' yes
5764
# Use a header file that comes with gcc, so configuring glibc
5765
# with a fresh cross-compiler works.
5766
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5767
# <limits.h> exists even on freestanding compilers.
5768
# On the NeXT, cc -E runs the code through the compiler's parser,
5769
# not just through cpp. "Syntax error" is here to catch this case.
5770
cat >conftest.$ac_ext <<_ACEOF
5773
cat confdefs.h >>conftest.$ac_ext
5774
cat >>conftest.$ac_ext <<_ACEOF
5775
/* end confdefs.h. */
5777
# include <limits.h>
5779
# include <assert.h>
5783
if { (ac_try="$ac_cpp conftest.$ac_ext"
5785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786
*) ac_try_echo=$ac_try;;
5788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791
grep -v '^ *+' conftest.er1 >conftest.err
5793
cat conftest.err >&5
5794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795
(exit $ac_status); } >/dev/null && {
5796
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5797
test ! -s conftest.err
5801
echo "$as_me: failed program was:" >&5
5802
sed 's/^/| /' conftest.$ac_ext >&5
5804
# Broken: fails on valid input.
5808
rm -f conftest.err conftest.$ac_ext
5810
# OK, works on sane cases. Now check whether nonexistent headers
5811
# can be detected and how.
5812
cat >conftest.$ac_ext <<_ACEOF
5815
cat confdefs.h >>conftest.$ac_ext
5816
cat >>conftest.$ac_ext <<_ACEOF
5817
/* end confdefs.h. */
5818
#include <ac_nonexistent.h>
5820
if { (ac_try="$ac_cpp conftest.$ac_ext"
5822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823
*) ac_try_echo=$ac_try;;
5825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828
grep -v '^ *+' conftest.er1 >conftest.err
5830
cat conftest.err >&5
5831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832
(exit $ac_status); } >/dev/null && {
5833
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5834
test ! -s conftest.err
5836
# Broken: success on invalid input.
5839
echo "$as_me: failed program was:" >&5
5840
sed 's/^/| /' conftest.$ac_ext >&5
5842
# Passes both tests.
5847
rm -f conftest.err conftest.$ac_ext
5850
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851
rm -f conftest.err conftest.$ac_ext
5852
if $ac_preproc_ok; then
5855
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5856
See \`config.log' for more details." >&5
5857
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5858
See \`config.log' for more details." >&2;}
5859
{ (exit 1); exit 1; }; }
5863
ac_cpp='$CXXCPP $CPPFLAGS'
5864
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5872
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5873
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5875
if test -n "$ac_tool_prefix"; then
5876
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5878
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5882
if test "${ac_cv_prog_F77+set}" = set; then
5883
echo $ECHO_N "(cached) $ECHO_C" >&6
5885
if test -n "$F77"; then
5886
ac_cv_prog_F77="$F77" # Let the user override the test.
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892
test -z "$as_dir" && as_dir=.
5893
for ac_exec_ext in '' $ac_executable_extensions; do
5894
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5896
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906
if test -n "$F77"; then
5907
{ echo "$as_me:$LINENO: result: $F77" >&5
5908
echo "${ECHO_T}$F77" >&6; }
5910
{ echo "$as_me:$LINENO: result: no" >&5
5911
echo "${ECHO_T}no" >&6; }
5915
test -n "$F77" && break
5918
if test -z "$F77"; then
5920
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5922
# Extract the first word of "$ac_prog", so it can be a program name with args.
5923
set dummy $ac_prog; ac_word=$2
5924
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5927
echo $ECHO_N "(cached) $ECHO_C" >&6
5929
if test -n "$ac_ct_F77"; then
5930
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936
test -z "$as_dir" && as_dir=.
5937
for ac_exec_ext in '' $ac_executable_extensions; do
5938
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939
ac_cv_prog_ac_ct_F77="$ac_prog"
5940
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5950
if test -n "$ac_ct_F77"; then
5951
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5952
echo "${ECHO_T}$ac_ct_F77" >&6; }
5954
{ echo "$as_me:$LINENO: result: no" >&5
5955
echo "${ECHO_T}no" >&6; }
5959
test -n "$ac_ct_F77" && break
5962
if test "x$ac_ct_F77" = x; then
5965
case $cross_compiling:$ac_tool_warned in
5967
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5968
whose name does not start with the host triplet. If you think this
5969
configuration is useful to you, please write to autoconf@gnu.org." >&5
5970
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5971
whose name does not start with the host triplet. If you think this
5972
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5973
ac_tool_warned=yes ;;
5980
# Provide some information about the compiler.
5981
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5982
ac_compiler=`set X $ac_compile; echo $2`
5983
{ (ac_try="$ac_compiler --version >&5"
5985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986
*) ac_try_echo=$ac_try;;
5988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989
(eval "$ac_compiler --version >&5") 2>&5
5991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992
(exit $ac_status); }
5993
{ (ac_try="$ac_compiler -v >&5"
5995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996
*) ac_try_echo=$ac_try;;
5998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999
(eval "$ac_compiler -v >&5") 2>&5
6001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002
(exit $ac_status); }
6003
{ (ac_try="$ac_compiler -V >&5"
6005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006
*) ac_try_echo=$ac_try;;
6008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009
(eval "$ac_compiler -V >&5") 2>&5
6011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012
(exit $ac_status); }
6015
# If we don't use `.F' as extension, the preprocessor is not run on the
6016
# input file. (Note that this only needs to work for GNU compilers.)
6019
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6020
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6021
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6022
echo $ECHO_N "(cached) $ECHO_C" >&6
6024
cat >conftest.$ac_ext <<_ACEOF
6032
rm -f conftest.$ac_objext
6033
if { (ac_try="$ac_compile"
6035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036
*) ac_try_echo=$ac_try;;
6038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039
(eval "$ac_compile") 2>conftest.er1
6041
grep -v '^ *+' conftest.er1 >conftest.err
6043
cat conftest.err >&5
6044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045
(exit $ac_status); } && {
6046
test -z "$ac_f77_werror_flag" ||
6047
test ! -s conftest.err
6048
} && test -s conftest.$ac_objext; then
6051
echo "$as_me: failed program was:" >&5
6052
sed 's/^/| /' conftest.$ac_ext >&5
6057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6061
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6062
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6064
ac_test_FFLAGS=${FFLAGS+set}
6065
ac_save_FFLAGS=$FFLAGS
6067
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6068
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6069
if test "${ac_cv_prog_f77_g+set}" = set; then
6070
echo $ECHO_N "(cached) $ECHO_C" >&6
6073
cat >conftest.$ac_ext <<_ACEOF
6078
rm -f conftest.$ac_objext
6079
if { (ac_try="$ac_compile"
6081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082
*) ac_try_echo=$ac_try;;
6084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085
(eval "$ac_compile") 2>conftest.er1
6087
grep -v '^ *+' conftest.er1 >conftest.err
6089
cat conftest.err >&5
6090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
(exit $ac_status); } && {
6092
test -z "$ac_f77_werror_flag" ||
6093
test ! -s conftest.err
6094
} && test -s conftest.$ac_objext; then
6095
ac_cv_prog_f77_g=yes
6097
echo "$as_me: failed program was:" >&5
6098
sed 's/^/| /' conftest.$ac_ext >&5
6103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6107
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6108
if test "$ac_test_FFLAGS" = set; then
6109
FFLAGS=$ac_save_FFLAGS
6110
elif test $ac_cv_prog_f77_g = yes; then
6111
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6117
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6124
G77=`test $ac_compiler_gnu = yes && echo yes`
6126
ac_cpp='$CPP $CPPFLAGS'
6127
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6135
# find the maximum length of command line arguments
6136
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6137
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6138
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6139
echo $ECHO_N "(cached) $ECHO_C" >&6
6146
# On DJGPP, this test can blow up pretty badly due to problems in libc
6147
# (any single argument exceeding 2000 bytes causes a buffer overrun
6148
# during glob expansion). Even if it were fixed, the result of this
6149
# check would be larger than it should be.
6150
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6154
# Under GNU Hurd, this test is not required because there is
6155
# no limit to the length of command line arguments.
6156
# Libtool will interpret -1 as no limit whatsoever
6157
lt_cv_sys_max_cmd_len=-1;
6161
# On Win9x/ME, this test blows up -- it succeeds, but takes
6162
# about 5 minutes as the teststring grows exponentially.
6163
# Worse, since 9x/ME are not pre-emptively multitasking,
6164
# you end up with a "frozen" computer, even though with patience
6165
# the test eventually succeeds (with a max line length of 256k).
6166
# Instead, let's just punt: use the minimum linelength reported by
6167
# all of the supported platforms: 8192 (on NT/2K/XP).
6168
lt_cv_sys_max_cmd_len=8192;
6172
# On AmigaOS with pdksh, this test takes hours, literally.
6173
# So we just punt and use a minimum line length of 8192.
6174
lt_cv_sys_max_cmd_len=8192;
6177
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6178
# This has been around since 386BSD, at least. Likely further.
6179
if test -x /sbin/sysctl; then
6180
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6181
elif test -x /usr/sbin/sysctl; then
6182
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6184
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6186
# And add a safety zone
6187
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6188
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6192
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6193
lt_cv_sys_max_cmd_len=196608
6197
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6198
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6199
# nice to cause kernel panics so lets avoid the loop below.
6200
# First set a reasonable default.
6201
lt_cv_sys_max_cmd_len=16384
6203
if test -x /sbin/sysconfig; then
6204
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6205
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6210
lt_cv_sys_max_cmd_len=102400
6212
sysv5* | sco5v6* | sysv4.2uw2*)
6213
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6214
if test -n "$kargmax"; then
6215
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6217
lt_cv_sys_max_cmd_len=32768
6221
# If test is not a shell built-in, we'll probably end up computing a
6222
# maximum length that is only half of the actual maximum length, but
6224
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6225
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6226
= "XX$teststring") >/dev/null 2>&1 &&
6227
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6228
lt_cv_sys_max_cmd_len=$new_result &&
6229
test $i != 17 # 1/2 MB should be enough
6232
teststring=$teststring$teststring
6235
# Add a significant safety factor because C++ compilers can tack on massive
6236
# amounts of additional arguments before passing them to the linker.
6237
# It appears as though 1/2 is a usable value.
6238
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6244
if test -n $lt_cv_sys_max_cmd_len ; then
6245
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6246
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6248
{ echo "$as_me:$LINENO: result: none" >&5
6249
echo "${ECHO_T}none" >&6; }
6255
# Check for command to grab the raw symbol name followed by C symbol from nm.
6256
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6257
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6258
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6259
echo $ECHO_N "(cached) $ECHO_C" >&6
6262
# These are sane defaults that work on at least a few old systems.
6263
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6265
# Character class describing NM global symbol codes.
6266
symcode='[BCDEGRST]'
6268
# Regexp to match symbols that can be accessed directly from C.
6269
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6271
# Transform an extracted symbol line into a proper C declaration
6272
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6274
# Transform an extracted symbol line into symbol name and symbol address
6275
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'"
6277
# Define system-specific variables.
6282
cygwin* | mingw* | pw32*)
6283
symcode='[ABCDGISTW]'
6285
hpux*) # Its linker distinguishes data from code symbols
6286
if test "$host_cpu" = ia64; then
6287
symcode='[ABCDEGRST]'
6289
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6290
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'"
6292
linux* | k*bsd*-gnu)
6293
if test "$host_cpu" = ia64; then
6294
symcode='[ABCDGIRSTW]'
6295
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6296
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'"
6300
symcode='[BCDEGRST]'
6303
symcode='[BCDEGQRST]'
6314
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6322
# Handle CRLF in mingw tool chain
6326
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6330
# If we're using GNU nm, then use its standard symbol codes.
6331
case `$NM -V 2>&1` in
6332
*GNU* | *'with BFD'*)
6333
symcode='[ABCDGIRSTW]' ;;
6336
# Try without a prefix undercore, then with it.
6337
for ac_symprfx in "" "_"; do
6339
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6340
symxfrm="\\1 $ac_symprfx\\2 \\2"
6342
# Write the raw and C identifiers.
6343
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6345
# Check to see that the pipe works correctly.
6349
cat > conftest.$ac_ext <<EOF
6354
void nm_test_func(){}
6358
int main(){nm_test_var='a';nm_test_func();return(0);}
6361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362
(eval $ac_compile) 2>&5
6364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365
(exit $ac_status); }; then
6366
# Now try to grab the symbols.
6368
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6369
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372
(exit $ac_status); } && test -s "$nlist"; then
6373
# Try sorting and uniquifying the output.
6374
if sort "$nlist" | uniq > "$nlist"T; then
6375
mv -f "$nlist"T "$nlist"
6380
# Make sure that we snagged all the symbols we need.
6381
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6382
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6383
cat <<EOF > conftest.$ac_ext
6389
# Now generate the symbol file.
6390
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6392
cat <<EOF >> conftest.$ac_ext
6393
#if defined (__STDC__) && __STDC__
6394
# define lt_ptr_t void *
6396
# define lt_ptr_t char *
6400
/* The mapping between symbol names and symbols. */
6405
lt_preloaded_symbols[] =
6408
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6409
cat <<\EOF >> conftest.$ac_ext
6417
# Now try linking the two files.
6418
mv conftest.$ac_objext conftstm.$ac_objext
6419
lt_save_LIBS="$LIBS"
6420
lt_save_CFLAGS="$CFLAGS"
6421
LIBS="conftstm.$ac_objext"
6422
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424
(eval $ac_link) 2>&5
6426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6430
LIBS="$lt_save_LIBS"
6431
CFLAGS="$lt_save_CFLAGS"
6433
echo "cannot find nm_test_func in $nlist" >&5
6436
echo "cannot find nm_test_var in $nlist" >&5
6439
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6442
echo "$progname: failed program was:" >&5
6443
cat conftest.$ac_ext >&5
6445
rm -f conftest* conftst*
6447
# Do not use the global_symbol_pipe unless it works.
6448
if test "$pipe_works" = yes; then
6451
lt_cv_sys_global_symbol_pipe=
6457
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6458
lt_cv_sys_global_symbol_to_cdecl=
6460
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6461
{ echo "$as_me:$LINENO: result: failed" >&5
6462
echo "${ECHO_T}failed" >&6; }
6464
{ echo "$as_me:$LINENO: result: ok" >&5
6465
echo "${ECHO_T}ok" >&6; }
6468
{ echo "$as_me:$LINENO: checking for objdir" >&5
6469
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6470
if test "${lt_cv_objdir+set}" = set; then
6471
echo $ECHO_N "(cached) $ECHO_C" >&6
6473
rm -f .libs 2>/dev/null
6474
mkdir .libs 2>/dev/null
6475
if test -d .libs; then
6478
# MS-DOS does not allow filenames that begin with a dot.
6481
rmdir .libs 2>/dev/null
6483
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6484
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6485
objdir=$lt_cv_objdir
6493
# AIX sometimes has problems with the GCC collect2 program. For some
6494
# reason, if we set the COLLECT_NAMES environment variable, the problems
6495
# vanish in a puff of smoke.
6496
if test "X${COLLECT_NAMES+set}" != Xset; then
6498
export COLLECT_NAMES
6503
# Sed substitution that helps us do robust quoting. It backslashifies
6504
# metacharacters that are still active within double-quoted strings.
6505
Xsed='sed -e 1s/^X//'
6506
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6508
# Same as above, but do not quote variable references.
6509
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6511
# Sed substitution to delay expansion of an escaped shell variable in a
6512
# double_quote_subst'ed string.
6513
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6515
# Sed substitution to avoid accidental globbing in evaled expressions
6516
no_glob_subst='s/\*/\\\*/g'
6522
default_ofile=libtool
6523
can_build_shared=yes
6525
# All known linkers require a `.a' archive for static linking (except MSVC,
6526
# which needs '.lib').
6528
ltmain="$ac_aux_dir/ltmain.sh"
6529
ofile="$default_ofile"
6530
with_gnu_ld="$lt_cv_prog_gnu_ld"
6532
if test -n "$ac_tool_prefix"; then
6533
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6534
set dummy ${ac_tool_prefix}ar; ac_word=$2
6535
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537
if test "${ac_cv_prog_AR+set}" = set; then
6538
echo $ECHO_N "(cached) $ECHO_C" >&6
6540
if test -n "$AR"; then
6541
ac_cv_prog_AR="$AR" # Let the user override the test.
6543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547
test -z "$as_dir" && as_dir=.
6548
for ac_exec_ext in '' $ac_executable_extensions; do
6549
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550
ac_cv_prog_AR="${ac_tool_prefix}ar"
6551
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561
if test -n "$AR"; then
6562
{ echo "$as_me:$LINENO: result: $AR" >&5
6563
echo "${ECHO_T}$AR" >&6; }
6565
{ echo "$as_me:$LINENO: result: no" >&5
6566
echo "${ECHO_T}no" >&6; }
6571
if test -z "$ac_cv_prog_AR"; then
6573
# Extract the first word of "ar", so it can be a program name with args.
6574
set dummy ar; ac_word=$2
6575
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6578
echo $ECHO_N "(cached) $ECHO_C" >&6
6580
if test -n "$ac_ct_AR"; then
6581
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587
test -z "$as_dir" && as_dir=.
6588
for ac_exec_ext in '' $ac_executable_extensions; do
6589
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590
ac_cv_prog_ac_ct_AR="ar"
6591
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6601
if test -n "$ac_ct_AR"; then
6602
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6603
echo "${ECHO_T}$ac_ct_AR" >&6; }
6605
{ echo "$as_me:$LINENO: result: no" >&5
6606
echo "${ECHO_T}no" >&6; }
6609
if test "x$ac_ct_AR" = x; then
6612
case $cross_compiling:$ac_tool_warned in
6614
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6615
whose name does not start with the host triplet. If you think this
6616
configuration is useful to you, please write to autoconf@gnu.org." >&5
6617
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6618
whose name does not start with the host triplet. If you think this
6619
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6620
ac_tool_warned=yes ;;
6628
if test -n "$ac_tool_prefix"; then
6629
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6630
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6631
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6632
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633
if test "${ac_cv_prog_RANLIB+set}" = set; then
6634
echo $ECHO_N "(cached) $ECHO_C" >&6
6636
if test -n "$RANLIB"; then
6637
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643
test -z "$as_dir" && as_dir=.
6644
for ac_exec_ext in '' $ac_executable_extensions; do
6645
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6647
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656
RANLIB=$ac_cv_prog_RANLIB
6657
if test -n "$RANLIB"; then
6658
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6659
echo "${ECHO_T}$RANLIB" >&6; }
6661
{ echo "$as_me:$LINENO: result: no" >&5
6662
echo "${ECHO_T}no" >&6; }
6667
if test -z "$ac_cv_prog_RANLIB"; then
6668
ac_ct_RANLIB=$RANLIB
6669
# Extract the first word of "ranlib", so it can be a program name with args.
6670
set dummy ranlib; ac_word=$2
6671
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6674
echo $ECHO_N "(cached) $ECHO_C" >&6
6676
if test -n "$ac_ct_RANLIB"; then
6677
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683
test -z "$as_dir" && as_dir=.
6684
for ac_exec_ext in '' $ac_executable_extensions; do
6685
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686
ac_cv_prog_ac_ct_RANLIB="ranlib"
6687
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6697
if test -n "$ac_ct_RANLIB"; then
6698
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6699
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6701
{ echo "$as_me:$LINENO: result: no" >&5
6702
echo "${ECHO_T}no" >&6; }
6705
if test "x$ac_ct_RANLIB" = x; then
6708
case $cross_compiling:$ac_tool_warned in
6710
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6711
whose name does not start with the host triplet. If you think this
6712
configuration is useful to you, please write to autoconf@gnu.org." >&5
6713
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6714
whose name does not start with the host triplet. If you think this
6715
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6716
ac_tool_warned=yes ;;
6718
RANLIB=$ac_ct_RANLIB
6721
RANLIB="$ac_cv_prog_RANLIB"
6724
if test -n "$ac_tool_prefix"; then
6725
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6726
set dummy ${ac_tool_prefix}strip; ac_word=$2
6727
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729
if test "${ac_cv_prog_STRIP+set}" = set; then
6730
echo $ECHO_N "(cached) $ECHO_C" >&6
6732
if test -n "$STRIP"; then
6733
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739
test -z "$as_dir" && as_dir=.
6740
for ac_exec_ext in '' $ac_executable_extensions; do
6741
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6743
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752
STRIP=$ac_cv_prog_STRIP
6753
if test -n "$STRIP"; then
6754
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6755
echo "${ECHO_T}$STRIP" >&6; }
6757
{ echo "$as_me:$LINENO: result: no" >&5
6758
echo "${ECHO_T}no" >&6; }
6763
if test -z "$ac_cv_prog_STRIP"; then
6765
# Extract the first word of "strip", so it can be a program name with args.
6766
set dummy strip; ac_word=$2
6767
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6770
echo $ECHO_N "(cached) $ECHO_C" >&6
6772
if test -n "$ac_ct_STRIP"; then
6773
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779
test -z "$as_dir" && as_dir=.
6780
for ac_exec_ext in '' $ac_executable_extensions; do
6781
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782
ac_cv_prog_ac_ct_STRIP="strip"
6783
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6793
if test -n "$ac_ct_STRIP"; then
6794
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6795
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6797
{ echo "$as_me:$LINENO: result: no" >&5
6798
echo "${ECHO_T}no" >&6; }
6801
if test "x$ac_ct_STRIP" = x; then
6804
case $cross_compiling:$ac_tool_warned in
6806
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6807
whose name does not start with the host triplet. If you think this
6808
configuration is useful to you, please write to autoconf@gnu.org." >&5
6809
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6810
whose name does not start with the host triplet. If you think this
6811
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6812
ac_tool_warned=yes ;;
6817
STRIP="$ac_cv_prog_STRIP"
6822
old_CFLAGS="$CFLAGS"
6824
# Set sane defaults for various variables
6825
test -z "$AR" && AR=ar
6826
test -z "$AR_FLAGS" && AR_FLAGS=cru
6827
test -z "$AS" && AS=as
6828
test -z "$CC" && CC=cc
6829
test -z "$LTCC" && LTCC=$CC
6830
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6831
test -z "$DLLTOOL" && DLLTOOL=dlltool
6832
test -z "$LD" && LD=ld
6833
test -z "$LN_S" && LN_S="ln -s"
6834
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6835
test -z "$NM" && NM=nm
6836
test -z "$SED" && SED=sed
6837
test -z "$OBJDUMP" && OBJDUMP=objdump
6838
test -z "$RANLIB" && RANLIB=:
6839
test -z "$STRIP" && STRIP=:
6840
test -z "$ac_objext" && ac_objext=o
6842
# Determine commands to create old-style static archives.
6843
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6844
old_postinstall_cmds='chmod 644 $oldlib'
6845
old_postuninstall_cmds=
6847
if test -n "$RANLIB"; then
6850
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6853
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6856
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6859
for cc_temp in $compiler""; do
6861
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6862
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6867
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6870
# Only perform the check for file, if the check method requires it
6871
case $deplibs_check_method in
6873
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6874
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6875
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6876
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6877
echo $ECHO_N "(cached) $ECHO_C" >&6
6881
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6884
lt_save_MAGIC_CMD="$MAGIC_CMD"
6885
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6886
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6887
for ac_dir in $ac_dummy; do
6889
test -z "$ac_dir" && ac_dir=.
6890
if test -f $ac_dir/${ac_tool_prefix}file; then
6891
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6892
if test -n "$file_magic_test_file"; then
6893
case $deplibs_check_method in
6895
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6896
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6897
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6898
$EGREP "$file_magic_regex" > /dev/null; then
6903
*** Warning: the command libtool uses to detect shared libraries,
6904
*** $file_magic_cmd, produces output that libtool cannot recognize.
6905
*** The result is that libtool may fail to recognize shared libraries
6906
*** as such. This will affect the creation of libtool libraries that
6907
*** depend on shared libraries, but programs linked with such libtool
6908
*** libraries will work regardless of this problem. Nevertheless, you
6909
*** may want to report the problem to your system manager and/or to
6910
*** bug-libtool@gnu.org
6920
MAGIC_CMD="$lt_save_MAGIC_CMD"
6925
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6926
if test -n "$MAGIC_CMD"; then
6927
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6928
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6930
{ echo "$as_me:$LINENO: result: no" >&5
6931
echo "${ECHO_T}no" >&6; }
6934
if test -z "$lt_cv_path_MAGIC_CMD"; then
6935
if test -n "$ac_tool_prefix"; then
6936
{ echo "$as_me:$LINENO: checking for file" >&5
6937
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6938
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6939
echo $ECHO_N "(cached) $ECHO_C" >&6
6943
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6946
lt_save_MAGIC_CMD="$MAGIC_CMD"
6947
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6948
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6949
for ac_dir in $ac_dummy; do
6951
test -z "$ac_dir" && ac_dir=.
6952
if test -f $ac_dir/file; then
6953
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6954
if test -n "$file_magic_test_file"; then
6955
case $deplibs_check_method in
6957
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6958
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6960
$EGREP "$file_magic_regex" > /dev/null; then
6965
*** Warning: the command libtool uses to detect shared libraries,
6966
*** $file_magic_cmd, produces output that libtool cannot recognize.
6967
*** The result is that libtool may fail to recognize shared libraries
6968
*** as such. This will affect the creation of libtool libraries that
6969
*** depend on shared libraries, but programs linked with such libtool
6970
*** libraries will work regardless of this problem. Nevertheless, you
6971
*** may want to report the problem to your system manager and/or to
6972
*** bug-libtool@gnu.org
6982
MAGIC_CMD="$lt_save_MAGIC_CMD"
6987
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988
if test -n "$MAGIC_CMD"; then
6989
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6990
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6992
{ echo "$as_me:$LINENO: result: no" >&5
6993
echo "${ECHO_T}no" >&6; }
7008
# Check whether --enable-libtool-lock was given.
7009
if test "${enable_libtool_lock+set}" = set; then
7010
enableval=$enable_libtool_lock;
7013
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7016
# Check whether --with-pic was given.
7017
if test "${with_pic+set}" = set; then
7018
withval=$with_pic; pic_mode="$withval"
7023
test -z "$pic_mode" && pic_mode=default
7025
# Use C for the default configuration in the libtool script
7029
ac_cpp='$CPP $CPPFLAGS'
7030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035
# Source file extension for C test sources.
7038
# Object file extension for compiled C test sources.
7042
# Code to be used in simple compile tests
7043
lt_simple_compile_test_code="int some_variable = 0;\n"
7045
# Code to be used in simple link tests
7046
lt_simple_link_test_code='int main(){return(0);}\n'
7049
# If no C compiler was specified, use CC.
7052
# If no C compiler flags were specified, use CFLAGS.
7053
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7055
# Allow CC to be a program name with arguments.
7059
# save warnings/boilerplate of simple test code
7060
ac_outfile=conftest.$ac_objext
7061
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7062
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7063
_lt_compiler_boilerplate=`cat conftest.err`
7066
ac_outfile=conftest.$ac_objext
7067
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7068
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7069
_lt_linker_boilerplate=`cat conftest.err`
7074
lt_prog_compiler_no_builtin_flag=
7076
if test "$GCC" = yes; then
7077
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7080
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7081
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7082
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7083
echo $ECHO_N "(cached) $ECHO_C" >&6
7085
lt_cv_prog_compiler_rtti_exceptions=no
7086
ac_outfile=conftest.$ac_objext
7087
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7088
lt_compiler_flag="-fno-rtti -fno-exceptions"
7089
# Insert the option either (1) after the last *FLAGS variable, or
7090
# (2) before a word containing "conftest.", or (3) at the end.
7091
# Note that $ac_compile itself does not contain backslashes and begins
7092
# with a dollar sign (not a hyphen), so the echo should work correctly.
7093
# The option is referenced via a variable to avoid confusing sed.
7094
lt_compile=`echo "$ac_compile" | $SED \
7095
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7096
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7097
-e 's:$: $lt_compiler_flag:'`
7098
(eval echo "\"\$as_me:7098: $lt_compile\"" >&5)
7099
(eval "$lt_compile" 2>conftest.err)
7101
cat conftest.err >&5
7102
echo "$as_me:7102: \$? = $ac_status" >&5
7103
if (exit $ac_status) && test -s "$ac_outfile"; then
7104
# The compiler can only warn and ignore the option if not recognized
7105
# So say no if there are warnings other than the usual output.
7106
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7107
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7108
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7109
lt_cv_prog_compiler_rtti_exceptions=yes
7115
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7116
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7118
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7119
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7126
lt_prog_compiler_wl=
7127
lt_prog_compiler_pic=
7128
lt_prog_compiler_static=
7130
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7131
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7133
if test "$GCC" = yes; then
7134
lt_prog_compiler_wl='-Wl,'
7135
lt_prog_compiler_static='-static'
7139
# All AIX code is PIC.
7140
if test "$host_cpu" = ia64; then
7141
# AIX 5 now supports IA64 processor
7142
lt_prog_compiler_static='-Bstatic'
7147
# FIXME: we need at least 68020 code to build shared libraries, but
7148
# adding the `-m68020' flag to GCC prevents building anything better,
7150
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7153
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7154
# PIC is the default for these OSes.
7157
mingw* | pw32* | os2*)
7158
# This hack is so that the source file can tell whether it is being
7159
# built for inclusion in a dll (and should export symbols for example).
7160
lt_prog_compiler_pic='-DDLL_EXPORT'
7163
darwin* | rhapsody*)
7164
# PIC is the default on this platform
7165
# Common symbols not allowed in MH_DYLIB files
7166
lt_prog_compiler_pic='-fno-common'
7170
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7171
# Instead, we relocate shared libraries at runtime.
7175
# Just because we use GCC doesn't mean we suddenly get shared libraries
7176
# on systems that don't support them.
7177
lt_prog_compiler_can_build_shared=no
7182
if test -d /usr/nec; then
7183
lt_prog_compiler_pic=-Kconform_pic
7188
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7195
lt_prog_compiler_pic='-fPIC'
7201
lt_prog_compiler_pic='-fPIC'
7205
# PORTME Check for flag to pass linker flags through the system compiler.
7208
lt_prog_compiler_wl='-Wl,'
7209
if test "$host_cpu" = ia64; then
7210
# AIX 5 now supports IA64 processor
7211
lt_prog_compiler_static='-Bstatic'
7213
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7217
# PIC is the default on this platform
7218
# Common symbols not allowed in MH_DYLIB files
7219
case $cc_basename in
7221
lt_prog_compiler_pic='-qnocommon'
7222
lt_prog_compiler_wl='-Wl,'
7227
mingw* | pw32* | os2*)
7228
# This hack is so that the source file can tell whether it is being
7229
# built for inclusion in a dll (and should export symbols for example).
7230
lt_prog_compiler_pic='-DDLL_EXPORT'
7233
hpux9* | hpux10* | hpux11*)
7234
lt_prog_compiler_wl='-Wl,'
7235
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7242
lt_prog_compiler_pic='+Z'
7245
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7246
lt_prog_compiler_static='${wl}-a ${wl}archive'
7249
irix5* | irix6* | nonstopux*)
7250
lt_prog_compiler_wl='-Wl,'
7251
# PIC (with -KPIC) is the default.
7252
lt_prog_compiler_static='-non_shared'
7256
lt_prog_compiler_pic='-KPIC'
7257
lt_prog_compiler_static='-Bstatic'
7260
linux* | k*bsd*-gnu)
7261
case $cc_basename in
7263
lt_prog_compiler_wl='-Wl,'
7264
lt_prog_compiler_pic='-KPIC'
7265
lt_prog_compiler_static='-static'
7267
pgcc* | pgf77* | pgf90* | pgf95*)
7268
# Portland Group compilers (*not* the Pentium gcc compiler,
7269
# which looks to be a dead project)
7270
lt_prog_compiler_wl='-Wl,'
7271
lt_prog_compiler_pic='-fpic'
7272
lt_prog_compiler_static='-Bstatic'
7275
lt_prog_compiler_wl='-Wl,'
7276
# All Alpha code is PIC.
7277
lt_prog_compiler_static='-non_shared'
7282
osf3* | osf4* | osf5*)
7283
lt_prog_compiler_wl='-Wl,'
7284
# All OSF/1 code is PIC.
7285
lt_prog_compiler_static='-non_shared'
7289
lt_prog_compiler_pic='-KPIC'
7290
lt_prog_compiler_static='-Bstatic'
7291
case $cc_basename in
7293
lt_prog_compiler_wl='-Qoption ld ';;
7295
lt_prog_compiler_wl='-Wl,';;
7300
lt_prog_compiler_wl='-Qoption ld '
7301
lt_prog_compiler_pic='-PIC'
7302
lt_prog_compiler_static='-Bstatic'
7305
sysv4 | sysv4.2uw2* | sysv4.3*)
7306
lt_prog_compiler_wl='-Wl,'
7307
lt_prog_compiler_pic='-KPIC'
7308
lt_prog_compiler_static='-Bstatic'
7312
if test -d /usr/nec ;then
7313
lt_prog_compiler_pic='-Kconform_pic'
7314
lt_prog_compiler_static='-Bstatic'
7318
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7319
lt_prog_compiler_wl='-Wl,'
7320
lt_prog_compiler_pic='-KPIC'
7321
lt_prog_compiler_static='-Bstatic'
7325
lt_prog_compiler_wl='-Wl,'
7326
lt_prog_compiler_can_build_shared=no
7330
lt_prog_compiler_pic='-pic'
7331
lt_prog_compiler_static='-Bstatic'
7335
lt_prog_compiler_can_build_shared=no
7340
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7341
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7344
# Check to make sure the PIC flag actually works.
7346
if test -n "$lt_prog_compiler_pic"; then
7348
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7349
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7350
if test "${lt_prog_compiler_pic_works+set}" = set; then
7351
echo $ECHO_N "(cached) $ECHO_C" >&6
7353
lt_prog_compiler_pic_works=no
7354
ac_outfile=conftest.$ac_objext
7355
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7356
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7357
# Insert the option either (1) after the last *FLAGS variable, or
7358
# (2) before a word containing "conftest.", or (3) at the end.
7359
# Note that $ac_compile itself does not contain backslashes and begins
7360
# with a dollar sign (not a hyphen), so the echo should work correctly.
7361
# The option is referenced via a variable to avoid confusing sed.
7362
lt_compile=`echo "$ac_compile" | $SED \
7363
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7364
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7365
-e 's:$: $lt_compiler_flag:'`
7366
(eval echo "\"\$as_me:7366: $lt_compile\"" >&5)
7367
(eval "$lt_compile" 2>conftest.err)
7369
cat conftest.err >&5
7370
echo "$as_me:7370: \$? = $ac_status" >&5
7371
if (exit $ac_status) && test -s "$ac_outfile"; then
7372
# The compiler can only warn and ignore the option if not recognized
7373
# So say no if there are warnings other than the usual output.
7374
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7375
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7376
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7377
lt_prog_compiler_pic_works=yes
7383
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7384
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7386
if test x"$lt_prog_compiler_pic_works" = xyes; then
7387
case $lt_prog_compiler_pic in
7389
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7392
lt_prog_compiler_pic=
7393
lt_prog_compiler_can_build_shared=no
7398
# For platforms which do not support PIC, -DPIC is meaningless:
7400
lt_prog_compiler_pic=
7403
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7408
# Check to make sure the static flag actually works.
7410
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7411
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7412
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7413
if test "${lt_prog_compiler_static_works+set}" = set; then
7414
echo $ECHO_N "(cached) $ECHO_C" >&6
7416
lt_prog_compiler_static_works=no
7417
save_LDFLAGS="$LDFLAGS"
7418
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7419
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7420
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7421
# The linker can only warn and ignore the option if not recognized
7422
# So say no if there are warnings
7423
if test -s conftest.err; then
7424
# Append any errors to the config.log.
7425
cat conftest.err 1>&5
7426
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7427
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7428
if diff conftest.exp conftest.er2 >/dev/null; then
7429
lt_prog_compiler_static_works=yes
7432
lt_prog_compiler_static_works=yes
7436
LDFLAGS="$save_LDFLAGS"
7439
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7440
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7442
if test x"$lt_prog_compiler_static_works" = xyes; then
7445
lt_prog_compiler_static=
7449
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7450
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7451
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7452
echo $ECHO_N "(cached) $ECHO_C" >&6
7454
lt_cv_prog_compiler_c_o=no
7455
$rm -r conftest 2>/dev/null
7459
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7461
lt_compiler_flag="-o out/conftest2.$ac_objext"
7462
# Insert the option either (1) after the last *FLAGS variable, or
7463
# (2) before a word containing "conftest.", or (3) at the end.
7464
# Note that $ac_compile itself does not contain backslashes and begins
7465
# with a dollar sign (not a hyphen), so the echo should work correctly.
7466
lt_compile=`echo "$ac_compile" | $SED \
7467
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7468
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7469
-e 's:$: $lt_compiler_flag:'`
7470
(eval echo "\"\$as_me:7470: $lt_compile\"" >&5)
7471
(eval "$lt_compile" 2>out/conftest.err)
7473
cat out/conftest.err >&5
7474
echo "$as_me:7474: \$? = $ac_status" >&5
7475
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7477
# The compiler can only warn and ignore the option if not recognized
7478
# So say no if there are warnings
7479
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7480
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7481
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7482
lt_cv_prog_compiler_c_o=yes
7487
# SGI C++ compiler will create directory out/ii_files/ for
7488
# template instantiation
7489
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7490
$rm out/* && rmdir out
7496
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7497
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7500
hard_links="nottested"
7501
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7502
# do not overwrite the value of need_locks provided by the user
7503
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7504
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7507
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7509
ln conftest.a conftest.b 2>&5 || hard_links=no
7510
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7511
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7512
echo "${ECHO_T}$hard_links" >&6; }
7513
if test "$hard_links" = no; then
7514
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7515
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7522
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7523
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7526
allow_undefined_flag=
7527
enable_shared_with_static_runtimes=no
7529
archive_expsym_cmds=
7530
old_archive_From_new_cmds=
7531
old_archive_from_expsyms_cmds=
7532
export_dynamic_flag_spec=
7533
whole_archive_flag_spec=
7534
thread_safe_flag_spec=
7535
hardcode_libdir_flag_spec=
7536
hardcode_libdir_flag_spec_ld=
7537
hardcode_libdir_separator=
7540
hardcode_shlibpath_var=unsupported
7541
link_all_deplibs=unknown
7542
hardcode_automatic=no
7545
always_export_symbols=no
7546
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7547
# include_expsyms should be a list of space-separated symbols to be *always*
7548
# included in the symbol list
7550
# exclude_expsyms can be an extended regexp of symbols to exclude
7551
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7552
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7553
# as well as any symbol that contains `d'.
7554
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7555
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7556
# platforms (ab)use it in PIC code, but their linkers get confused if
7557
# the symbol is explicitly referenced. Since portable code cannot
7558
# rely on this symbol name, it's probably fine to never include it in
7559
# preloaded symbol tables.
7560
extract_expsyms_cmds=
7561
# Just being paranoid about ensuring that cc_basename is set.
7562
for cc_temp in $compiler""; do
7564
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7565
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7570
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7573
cygwin* | mingw* | pw32*)
7574
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7575
# When not using gcc, we currently assume that we are using
7576
# Microsoft Visual C++.
7577
if test "$GCC" != yes; then
7582
# we just hope/assume this is gcc and not c89 (= MSVC++)
7591
if test "$with_gnu_ld" = yes; then
7592
# If archive_cmds runs LD, not CC, wlarc should be empty
7595
# Set some defaults for GNU ld with shared library support. These
7596
# are reset later if shared libraries are not supported. Putting them
7597
# here allows them to be overridden if necessary.
7598
runpath_var=LD_RUN_PATH
7599
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7600
export_dynamic_flag_spec='${wl}--export-dynamic'
7601
# ancient GNU ld didn't support --whole-archive et. al.
7602
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7603
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7605
whole_archive_flag_spec=
7607
supports_anon_versioning=no
7608
case `$LD -v 2>/dev/null` in
7609
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7610
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7611
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7612
*\ 2.11.*) ;; # other 2.11 versions
7613
*) supports_anon_versioning=yes ;;
7616
# See if GNU ld supports shared libraries.
7618
aix3* | aix4* | aix5*)
7619
# On AIX/PPC, the GNU linker is very broken
7620
if test "$host_cpu" != ia64; then
7624
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7625
*** to be unable to reliably create shared libraries on AIX.
7626
*** Therefore, libtool is disabling shared libraries support. If you
7627
*** really care for shared libraries, you may want to modify your PATH
7628
*** so that a non-GNU linker is found, and then restart.
7635
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)'
7636
hardcode_libdir_flag_spec='-L$libdir'
7637
hardcode_minus_L=yes
7639
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7640
# that the semantics of dynamic libraries on AmigaOS, at least up
7641
# to version 4, is to share data among multiple programs linked
7642
# with the same dynamic library. Since this doesn't match the
7643
# behavior of shared libraries on other platforms, we can't use
7649
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7650
allow_undefined_flag=unsupported
7651
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7652
# support --undefined. This deserves some investigation. FIXME
7653
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659
cygwin* | mingw* | pw32*)
7660
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7661
# as there is no search path for DLLs.
7662
hardcode_libdir_flag_spec='-L$libdir'
7663
allow_undefined_flag=unsupported
7664
always_export_symbols=no
7665
enable_shared_with_static_runtimes=yes
7666
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7668
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7669
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7670
# If the export-symbols file already is a .def file (1st line
7671
# is EXPORTS), use it as is; otherwise, prepend...
7672
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7673
cp $export_symbols $output_objdir/$soname.def;
7675
echo EXPORTS > $output_objdir/$soname.def;
7676
cat $export_symbols >> $output_objdir/$soname.def;
7678
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7686
hardcode_shlibpath_var=no
7687
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7688
export_dynamic_flag_spec='${wl}-E'
7689
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7690
# Instead, shared libraries are loaded at an image base (0x10000000 by
7691
# default) and relocated if they conflict, which is a slow very memory
7692
# consuming and fragmenting process. To avoid this, we pick a random,
7693
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7694
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7695
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7696
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7699
linux* | k*bsd*-gnu)
7700
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702
case $cc_basename,$host_cpu in
7703
pgcc*) # Portland Group C compiler
7704
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7705
tmp_addflag=' $pic_flag'
7707
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7708
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7709
tmp_addflag=' $pic_flag -Mnomain' ;;
7710
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7711
tmp_addflag=' -i_dynamic' ;;
7712
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7713
tmp_addflag=' -i_dynamic -nofor_main' ;;
7714
ifc* | ifort*) # Intel Fortran compiler
7715
tmp_addflag=' -nofor_main' ;;
7717
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7719
if test $supports_anon_versioning = yes; then
7720
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7721
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7722
$echo "local: *; };" >> $output_objdir/$libname.ver~
7723
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7731
netbsd* | netbsdelf*-gnu)
7732
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7736
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7742
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7746
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7747
*** create shared libraries on Solaris systems. Therefore, libtool
7748
*** is disabling shared libraries support. We urge you to upgrade GNU
7749
*** binutils to release 2.9.1 or newer. Another option is to modify
7750
*** your PATH or compiler configuration so that the native linker is
7751
*** used, and then restart.
7754
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7755
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7762
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7763
case `$LD -v 2>&1` in
7764
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7768
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7769
*** reliably create shared libraries on SCO systems. Therefore, libtool
7770
*** is disabling shared libraries support. We urge you to upgrade GNU
7771
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7772
*** your PATH or compiler configuration so that the native linker is
7773
*** used, and then restart.
7778
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7780
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7781
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7790
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7793
hardcode_shlibpath_var=no
7797
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7806
if test "$ld_shlibs" = no; then
7808
hardcode_libdir_flag_spec=
7809
export_dynamic_flag_spec=
7810
whole_archive_flag_spec=
7813
# PORTME fill in a description of your system's linker (not GNU ld)
7816
allow_undefined_flag=unsupported
7817
always_export_symbols=yes
7818
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'
7819
# Note: this linker hardcodes the directories in LIBPATH if there
7820
# are no directories specified by -L.
7821
hardcode_minus_L=yes
7822
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7823
# Neither direct hardcoding nor static linking is supported with a
7825
hardcode_direct=unsupported
7830
if test "$host_cpu" = ia64; then
7831
# On IA64, the linker does run time linking by default, so we don't
7832
# have to do anything special.
7833
aix_use_runtimelinking=no
7834
exp_sym_flag='-Bexport'
7837
# If we're using GNU nm, then we don't want the "-C" option.
7838
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7839
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7840
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'
7842
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'
7844
aix_use_runtimelinking=no
7846
# Test if we are trying to use run time linking or normal
7847
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7848
# need to do runtime linking.
7849
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7850
for ld_flag in $LDFLAGS; do
7851
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7852
aix_use_runtimelinking=yes
7859
exp_sym_flag='-bexport'
7860
no_entry_flag='-bnoentry'
7863
# When large executables or shared objects are built, AIX ld can
7864
# have problems creating the table of contents. If linking a library
7865
# or program results in "error TOC overflow" add -mminimal-toc to
7866
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7867
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7871
hardcode_libdir_separator=':'
7872
link_all_deplibs=yes
7874
if test "$GCC" = yes; then
7875
case $host_os in aix4.[012]|aix4.[012].*)
7876
# We only want to do this on AIX 4.2 and lower, the check
7877
# below for broken collect2 doesn't work under 4.3+
7878
collect2name=`${CC} -print-prog-name=collect2`
7879
if test -f "$collect2name" && \
7880
strings "$collect2name" | grep resolve_lib_name >/dev/null
7882
# We have reworked collect2
7885
# We have old collect2
7886
hardcode_direct=unsupported
7887
# It fails to find uninstalled libraries when the uninstalled
7888
# path is not listed in the libpath. Setting hardcode_minus_L
7889
# to unsupported forces relinking
7890
hardcode_minus_L=yes
7891
hardcode_libdir_flag_spec='-L$libdir'
7892
hardcode_libdir_separator=
7896
shared_flag='-shared'
7897
if test "$aix_use_runtimelinking" = yes; then
7898
shared_flag="$shared_flag "'${wl}-G'
7902
if test "$host_cpu" = ia64; then
7903
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7904
# chokes on -Wl,-G. The following line is correct:
7907
if test "$aix_use_runtimelinking" = yes; then
7908
shared_flag='${wl}-G'
7910
shared_flag='${wl}-bM:SRE'
7915
# It seems that -bexpall does not export symbols beginning with
7916
# underscore (_), so it is better to generate a list of symbols to export.
7917
always_export_symbols=yes
7918
if test "$aix_use_runtimelinking" = yes; then
7919
# Warning - without using the other runtime loading flags (-brtl),
7920
# -berok will link without error, but may produce a broken library.
7921
allow_undefined_flag='-berok'
7922
# Determine the default libpath from the value encoded in an empty executable.
7923
cat >conftest.$ac_ext <<_ACEOF
7926
cat confdefs.h >>conftest.$ac_ext
7927
cat >>conftest.$ac_ext <<_ACEOF
7928
/* end confdefs.h. */
7938
rm -f conftest.$ac_objext conftest$ac_exeext
7939
if { (ac_try="$ac_link"
7941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942
*) ac_try_echo=$ac_try;;
7944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945
(eval "$ac_link") 2>conftest.er1
7947
grep -v '^ *+' conftest.er1 >conftest.err
7949
cat conftest.err >&5
7950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951
(exit $ac_status); } && {
7952
test -z "$ac_c_werror_flag" ||
7953
test ! -s conftest.err
7954
} && test -s conftest$ac_exeext &&
7955
$as_test_x conftest$ac_exeext; then
7957
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7959
# Check for a 64-bit object if we didn't find anything.
7960
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; }
7963
echo "$as_me: failed program was:" >&5
7964
sed 's/^/| /' conftest.$ac_ext >&5
7969
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970
conftest$ac_exeext conftest.$ac_ext
7971
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7973
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7974
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7976
if test "$host_cpu" = ia64; then
7977
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7978
allow_undefined_flag="-z nodefs"
7979
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7981
# Determine the default libpath from the value encoded in an empty executable.
7982
cat >conftest.$ac_ext <<_ACEOF
7985
cat confdefs.h >>conftest.$ac_ext
7986
cat >>conftest.$ac_ext <<_ACEOF
7987
/* end confdefs.h. */
7997
rm -f conftest.$ac_objext conftest$ac_exeext
7998
if { (ac_try="$ac_link"
8000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001
*) ac_try_echo=$ac_try;;
8003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004
(eval "$ac_link") 2>conftest.er1
8006
grep -v '^ *+' conftest.er1 >conftest.err
8008
cat conftest.err >&5
8009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010
(exit $ac_status); } && {
8011
test -z "$ac_c_werror_flag" ||
8012
test ! -s conftest.err
8013
} && test -s conftest$ac_exeext &&
8014
$as_test_x conftest$ac_exeext; then
8016
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8018
# Check for a 64-bit object if we didn't find anything.
8019
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; }
8022
echo "$as_me: failed program was:" >&5
8023
sed 's/^/| /' conftest.$ac_ext >&5
8028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029
conftest$ac_exeext conftest.$ac_ext
8030
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8032
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033
# Warning - without using the other run time loading flags,
8034
# -berok will link without error, but may produce a broken library.
8035
no_undefined_flag=' ${wl}-bernotok'
8036
allow_undefined_flag=' ${wl}-berok'
8037
# Exported symbols can be pulled into shared objects from archives
8038
whole_archive_flag_spec='$convenience'
8039
archive_cmds_need_lc=yes
8040
# This is similar to how AIX traditionally builds its shared libraries.
8041
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8047
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)'
8048
hardcode_libdir_flag_spec='-L$libdir'
8049
hardcode_minus_L=yes
8050
# see comment about different semantics on the GNU ld section
8055
export_dynamic_flag_spec=-rdynamic
8058
cygwin* | mingw* | pw32*)
8059
# When not using gcc, we currently assume that we are using
8060
# Microsoft Visual C++.
8061
# hardcode_libdir_flag_spec is actually meaningless, as there is
8062
# no search path for DLLs.
8063
hardcode_libdir_flag_spec=' '
8064
allow_undefined_flag=unsupported
8065
# Tell ltmain to make .lib files, not .a files.
8067
# Tell ltmain to make .dll files, not .so files.
8069
# FIXME: Setting linknames here is a bad hack.
8070
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071
# The linker will automatically build a .lib file if we build a DLL.
8072
old_archive_From_new_cmds='true'
8073
# FIXME: Should let the user specify the lib program.
8074
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8075
fix_srcfile_path='`cygpath -w "$srcfile"`'
8076
enable_shared_with_static_runtimes=yes
8079
darwin* | rhapsody*)
8081
rhapsody* | darwin1.[012])
8082
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8085
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8086
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088
case ${MACOSX_DEPLOYMENT_TARGET} in
8090
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8093
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8099
archive_cmds_need_lc=no
8101
hardcode_automatic=yes
8102
hardcode_shlibpath_var=unsupported
8103
whole_archive_flag_spec=''
8104
link_all_deplibs=yes
8105
if test "$GCC" = yes ; then
8106
output_verbose_link_cmd='echo'
8107
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8108
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8109
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8110
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}'
8111
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}'
8113
case $cc_basename in
8115
output_verbose_link_cmd='echo'
8116
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8117
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8118
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8119
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8120
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}'
8130
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131
hardcode_libdir_flag_spec='-L$libdir'
8132
hardcode_shlibpath_var=no
8139
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8140
# support. Future versions do this automatically, but an explicit c++rt0.o
8141
# does not break anything, and helps significantly (at the cost of a little
8144
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8145
hardcode_libdir_flag_spec='-R$libdir'
8147
hardcode_shlibpath_var=no
8150
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8152
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8154
hardcode_minus_L=yes
8155
hardcode_shlibpath_var=no
8158
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8159
freebsd* | dragonfly*)
8160
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8161
hardcode_libdir_flag_spec='-R$libdir'
8163
hardcode_shlibpath_var=no
8167
if test "$GCC" = yes; then
8168
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'
8170
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'
8172
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173
hardcode_libdir_separator=:
8176
# hardcode_minus_L: Not really in the search PATH,
8177
# but as the default location of the library.
8178
hardcode_minus_L=yes
8179
export_dynamic_flag_spec='${wl}-E'
8183
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8184
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8186
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8188
if test "$with_gnu_ld" = no; then
8189
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190
hardcode_libdir_separator=:
8193
export_dynamic_flag_spec='${wl}-E'
8195
# hardcode_minus_L: Not really in the search PATH,
8196
# but as the default location of the library.
8197
hardcode_minus_L=yes
8202
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8205
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8208
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8211
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8217
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8220
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8223
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8227
if test "$with_gnu_ld" = no; then
8228
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8229
hardcode_libdir_separator=:
8233
hardcode_libdir_flag_spec_ld='+b $libdir'
8235
hardcode_shlibpath_var=no
8239
export_dynamic_flag_spec='${wl}-E'
8241
# hardcode_minus_L: Not really in the search PATH,
8242
# but as the default location of the library.
8243
hardcode_minus_L=yes
8249
irix5* | irix6* | nonstopux*)
8250
if test "$GCC" = yes; then
8251
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'
8253
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'
8254
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8256
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257
hardcode_libdir_separator=:
8258
link_all_deplibs=yes
8261
netbsd* | netbsdelf*-gnu)
8262
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8265
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8267
hardcode_libdir_flag_spec='-R$libdir'
8269
hardcode_shlibpath_var=no
8273
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276
hardcode_libdir_separator=:
8277
hardcode_shlibpath_var=no
8282
hardcode_shlibpath_var=no
8283
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8284
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8285
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8286
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287
export_dynamic_flag_spec='${wl}-E'
8290
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8291
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292
hardcode_libdir_flag_spec='-R$libdir'
8295
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8296
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8303
hardcode_libdir_flag_spec='-L$libdir'
8304
hardcode_minus_L=yes
8305
allow_undefined_flag=unsupported
8306
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'
8307
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8311
if test "$GCC" = yes; then
8312
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8313
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'
8315
allow_undefined_flag=' -expect_unresolved \*'
8316
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'
8318
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319
hardcode_libdir_separator=:
8322
osf4* | osf5*) # as osf3* with the addition of -msym flag
8323
if test "$GCC" = yes; then
8324
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8325
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'
8326
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8328
allow_undefined_flag=' -expect_unresolved \*'
8329
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'
8330
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8331
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8333
# Both c and cxx compiler support -rpath directly
8334
hardcode_libdir_flag_spec='-rpath $libdir'
8336
hardcode_libdir_separator=:
8340
no_undefined_flag=' -z text'
8341
if test "$GCC" = yes; then
8343
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8345
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8348
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8349
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8350
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8352
hardcode_libdir_flag_spec='-R$libdir'
8353
hardcode_shlibpath_var=no
8355
solaris2.[0-5] | solaris2.[0-5].*) ;;
8357
# The compiler driver will combine linker options so we
8358
# cannot just pass the convience library names through
8359
# without $wl, iff we do not link with $LD.
8360
# Luckily, gcc supports the same syntax we need for Sun Studio.
8361
# Supported since Solaris 2.6 (maybe 2.5.1?)
8364
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8366
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8369
link_all_deplibs=yes
8373
if test "x$host_vendor" = xsequent; then
8374
# Use $CC to link under sequent, because it throws in some extra .o
8375
# files that make .init and .fini sections work.
8376
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8378
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8380
hardcode_libdir_flag_spec='-L$libdir'
8382
hardcode_minus_L=yes
8383
hardcode_shlibpath_var=no
8387
case $host_vendor in
8389
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390
hardcode_direct=yes # is this really true???
8393
## LD is ld it makes a PLAMLIB
8394
## CC just makes a GrossModule.
8395
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8396
reload_cmds='$CC -r -o $output$reload_objs'
8400
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8404
runpath_var='LD_RUN_PATH'
8405
hardcode_shlibpath_var=no
8409
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410
hardcode_shlibpath_var=no
8411
export_dynamic_flag_spec='-Bexport'
8415
if test -d /usr/nec; then
8416
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417
hardcode_shlibpath_var=no
8418
runpath_var=LD_RUN_PATH
8419
hardcode_runpath_var=yes
8424
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8425
no_undefined_flag='${wl}-z,text'
8426
archive_cmds_need_lc=no
8427
hardcode_shlibpath_var=no
8428
runpath_var='LD_RUN_PATH'
8430
if test "$GCC" = yes; then
8431
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439
sysv5* | sco3.2v5* | sco5v6*)
8440
# Note: We can NOT use -z defs as we might desire, because we do not
8441
# link with -lc, and that would cause any symbols used from libc to
8442
# always be unresolved, which means just about no library would
8443
# ever link correctly. If we're not using GNU ld we use -z text
8444
# though, which does catch some bad symbols but isn't as heavy-handed
8446
no_undefined_flag='${wl}-z,text'
8447
allow_undefined_flag='${wl}-z,nodefs'
8448
archive_cmds_need_lc=no
8449
hardcode_shlibpath_var=no
8450
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8451
hardcode_libdir_separator=':'
8452
link_all_deplibs=yes
8453
export_dynamic_flag_spec='${wl}-Bexport'
8454
runpath_var='LD_RUN_PATH'
8456
if test "$GCC" = yes; then
8457
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467
hardcode_libdir_flag_spec='-L$libdir'
8468
hardcode_shlibpath_var=no
8477
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8478
echo "${ECHO_T}$ld_shlibs" >&6; }
8479
test "$ld_shlibs" = no && can_build_shared=no
8482
# Do we need to explicitly link libc?
8484
case "x$archive_cmds_need_lc" in
8486
# Assume -lc should be added
8487
archive_cmds_need_lc=yes
8489
if test "$enable_shared" = yes && test "$GCC" = yes; then
8490
case $archive_cmds in
8492
# FIXME: we may have to deal with multi-command sequences.
8495
# Test whether the compiler implicitly links with -lc since on some
8496
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8497
# to ld, don't add -lc before -lgcc.
8498
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8499
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8501
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504
(eval $ac_compile) 2>&5
8506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507
(exit $ac_status); } 2>conftest.err; then
8510
libobjs=conftest.$ac_objext
8512
wl=$lt_prog_compiler_wl
8513
pic_flag=$lt_prog_compiler_pic
8519
lt_save_allow_undefined_flag=$allow_undefined_flag
8520
allow_undefined_flag=
8521
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8522
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
(exit $ac_status); }
8527
archive_cmds_need_lc=no
8529
archive_cmds_need_lc=yes
8531
allow_undefined_flag=$lt_save_allow_undefined_flag
8533
cat conftest.err 1>&5
8536
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8537
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8544
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547
libname_spec='lib$name'
8555
shlibpath_overrides_runpath=unknown
8557
dynamic_linker="$host_os ld.so"
8558
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559
if test "$GCC" = yes; then
8560
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562
# if the path contains ";" then we assume it to be the separator
8563
# otherwise default to the standard path separator (i.e. ":") - it is
8564
# assumed that no part of a normal pathname contains ";" but that should
8565
# okay in the real world where ";" in dirpaths is itself problematic.
8566
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8568
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8571
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8573
need_lib_prefix=unknown
8574
hardcode_into_libs=no
8576
# when you set need_version to no, make sure it does not cause -set_version
8577
# flags to be left without arguments
8578
need_version=unknown
8583
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584
shlibpath_var=LIBPATH
8586
# AIX 3 has no versioning support, so we append a major version to the name.
8587
soname_spec='${libname}${release}${shared_ext}$major'
8594
hardcode_into_libs=yes
8595
if test "$host_cpu" = ia64; then
8596
# AIX 5 supports IA64
8597
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598
shlibpath_var=LD_LIBRARY_PATH
8600
# With GCC up to 2.95.x, collect2 would create an import file
8601
# for dependence libraries. The import file would start with
8602
# the line `#! .'. This would cause the generated library to
8603
# depend on `.', always an invalid library. This was fixed in
8604
# development snapshots of GCC prior to 3.0.
8606
aix4 | aix4.[01] | aix4.[01].*)
8607
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8609
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8616
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617
# soname into executable. Probably we can add versioning support to
8618
# collect2, so additional links can be useful in future.
8619
if test "$aix_use_runtimelinking" = yes; then
8620
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621
# instead of lib<name>.a to let people know that these are not
8622
# typical AIX shared libraries.
8623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625
# We preserve .a as extension for shared libraries through AIX4.2
8626
# and later when we are not doing run time linking.
8627
library_names_spec='${libname}${release}.a $libname.a'
8628
soname_spec='${libname}${release}${shared_ext}$major'
8630
shlibpath_var=LIBPATH
8635
library_names_spec='$libname.ixlibrary $libname.a'
8636
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8637
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'
8641
library_names_spec='${libname}${shared_ext}'
8642
dynamic_linker="$host_os ld.so"
8643
shlibpath_var=LIBRARY_PATH
8649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650
soname_spec='${libname}${release}${shared_ext}$major'
8651
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652
shlibpath_var=LD_LIBRARY_PATH
8653
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655
# the default ld.so.conf also contains /usr/contrib/lib and
8656
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657
# libtool to hard-code these into programs
8660
cygwin* | mingw* | pw32*)
8661
version_type=windows
8666
case $GCC,$host_os in
8667
yes,cygwin* | yes,mingw* | yes,pw32*)
8668
library_names_spec='$libname.dll.a'
8669
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8670
postinstall_cmds='base_file=`basename \${file}`~
8671
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672
dldir=$destdir/`dirname \$dlpath`~
8673
test -d \$dldir || mkdir -p \$dldir~
8674
$install_prog $dir/$dlname \$dldir/$dlname~
8675
chmod a+x \$dldir/$dlname'
8676
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677
dlpath=$dir/\$dldll~
8679
shlibpath_overrides_runpath=yes
8683
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8688
# MinGW DLLs use traditional 'lib' prefix
8689
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692
# It is most probably a Windows format PATH printed by
8693
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8694
# path with ; separators, and with drive letters. We can handle the
8695
# drive letters (cygwin fileutils understands them), so leave them,
8696
# especially as we might pass files found there to a mingw objdump,
8697
# which wouldn't understand a cygwinified path. Ahh.
8698
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8700
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8704
# pw32 DLLs use 'pw' prefix rather than 'lib'
8705
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8714
dynamic_linker='Win32 ld.exe'
8715
# FIXME: first we should search . and the directory the executable is in
8719
darwin* | rhapsody*)
8720
dynamic_linker="$host_os dyld"
8724
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8725
soname_spec='${libname}${release}${major}$shared_ext'
8726
shlibpath_overrides_runpath=yes
8727
shlibpath_var=DYLD_LIBRARY_PATH
8728
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8729
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8730
if test "$GCC" = yes; then
8731
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"`
8733
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8735
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8743
soname_spec='${libname}${release}${shared_ext}$major'
8744
shlibpath_var=LD_LIBRARY_PATH
8751
freebsd* | dragonfly*)
8752
# DragonFly does not have aout. When/if they implement a new
8753
# versioning mechanism, adjust this.
8754
if test -x /usr/bin/objformat; then
8755
objformat=`/usr/bin/objformat`
8758
freebsd[123]*) objformat=aout ;;
8762
version_type=freebsd-$objformat
8763
case $version_type in
8765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8770
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8774
shlibpath_var=LD_LIBRARY_PATH
8777
shlibpath_overrides_runpath=yes
8779
freebsd3.[01]* | freebsdelf3.[01]*)
8780
shlibpath_overrides_runpath=yes
8781
hardcode_into_libs=yes
8783
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8784
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8785
shlibpath_overrides_runpath=no
8786
hardcode_into_libs=yes
8788
freebsd*) # from 4.6 on
8789
shlibpath_overrides_runpath=yes
8790
hardcode_into_libs=yes
8799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8800
soname_spec='${libname}${release}${shared_ext}$major'
8801
shlibpath_var=LD_LIBRARY_PATH
8802
hardcode_into_libs=yes
8805
hpux9* | hpux10* | hpux11*)
8806
# Give a soname corresponding to the major version so that dld.sl refuses to
8807
# link against other versions.
8814
hardcode_into_libs=yes
8815
dynamic_linker="$host_os dld.so"
8816
shlibpath_var=LD_LIBRARY_PATH
8817
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819
soname_spec='${libname}${release}${shared_ext}$major'
8820
if test "X$HPUX_IA64_MODE" = X32; then
8821
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8823
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8825
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8829
hardcode_into_libs=yes
8830
dynamic_linker="$host_os dld.sl"
8831
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8832
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834
soname_spec='${libname}${release}${shared_ext}$major'
8835
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8836
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8840
dynamic_linker="$host_os dld.sl"
8841
shlibpath_var=SHLIB_PATH
8842
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844
soname_spec='${libname}${release}${shared_ext}$major'
8847
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8848
postinstall_cmds='chmod 555 $lib'
8855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8856
soname_spec='${libname}${release}${shared_ext}$major'
8857
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8858
shlibpath_var=LD_LIBRARY_PATH
8859
shlibpath_overrides_runpath=no
8860
hardcode_into_libs=yes
8863
irix5* | irix6* | nonstopux*)
8865
nonstopux*) version_type=nonstopux ;;
8867
if test "$lt_cv_prog_gnu_ld" = yes; then
8875
soname_spec='${libname}${release}${shared_ext}$major'
8876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8878
irix5* | nonstopux*)
8882
case $LD in # libtool.m4 will add one of these switches to LD
8883
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8884
libsuff= shlibsuff= libmagic=32-bit;;
8885
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8886
libsuff=32 shlibsuff=N32 libmagic=N32;;
8887
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8888
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8889
*) libsuff= shlibsuff= libmagic=never-match;;
8893
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8894
shlibpath_overrides_runpath=no
8895
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8896
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8897
hardcode_into_libs=yes
8900
# No shared lib support for Linux oldld, aout, or coff.
8901
linux*oldld* | linux*aout* | linux*coff*)
8905
# This must be Linux ELF.
8906
linux* | k*bsd*-gnu)
8910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911
soname_spec='${libname}${release}${shared_ext}$major'
8912
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8913
shlibpath_var=LD_LIBRARY_PATH
8914
shlibpath_overrides_runpath=no
8915
# This implies no fast_install, which is unacceptable.
8916
# Some rework will be needed to allow for fast_install
8917
# before this can be enabled.
8918
hardcode_into_libs=yes
8920
# Append ld.so.conf contents to the search path
8921
if test -f /etc/ld.so.conf; then
8922
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8923
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8926
# We used to test for /lib/ld.so.1 and disable shared libraries on
8927
# powerpc, because MkLinux only supported shared libraries with the
8928
# GNU dynamic linker. Since this was broken with cross compilers,
8929
# most powerpc-linux boxes support dynamic linking these days and
8930
# people can always --disable-shared, the test was removed, and we
8931
# assume the GNU/Linux dynamic linker is in use.
8932
dynamic_linker='GNU/Linux ld.so'
8939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8940
soname_spec='${libname}${release}${shared_ext}$major'
8941
shlibpath_var=LD_LIBRARY_PATH
8942
shlibpath_overrides_runpath=no
8943
hardcode_into_libs=yes
8944
dynamic_linker='NetBSD ld.elf_so'
8951
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8953
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8954
dynamic_linker='NetBSD (a.out) ld.so'
8956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957
soname_spec='${libname}${release}${shared_ext}$major'
8958
dynamic_linker='NetBSD ld.elf_so'
8960
shlibpath_var=LD_LIBRARY_PATH
8961
shlibpath_overrides_runpath=yes
8962
hardcode_into_libs=yes
8967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968
shlibpath_var=LD_LIBRARY_PATH
8969
shlibpath_overrides_runpath=yes
8976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977
soname_spec='${libname}${release}${shared_ext}$major'
8978
shlibpath_var=LD_LIBRARY_PATH
8979
shlibpath_overrides_runpath=yes
8984
sys_lib_dlsearch_path_spec="/usr/lib"
8986
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8988
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8989
*) need_version=no ;;
8991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8993
shlibpath_var=LD_LIBRARY_PATH
8994
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8996
openbsd2.[89] | openbsd2.[89].*)
8997
shlibpath_overrides_runpath=no
9000
shlibpath_overrides_runpath=yes
9004
shlibpath_overrides_runpath=yes
9009
libname_spec='$name'
9012
library_names_spec='$libname${shared_ext} $libname.a'
9013
dynamic_linker='OS/2 ld.exe'
9014
shlibpath_var=LIBPATH
9017
osf3* | osf4* | osf5*)
9021
soname_spec='${libname}${release}${shared_ext}$major'
9022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023
shlibpath_var=LD_LIBRARY_PATH
9024
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9025
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9032
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033
soname_spec='${libname}${release}${shared_ext}$major'
9034
shlibpath_var=LD_LIBRARY_PATH
9035
shlibpath_overrides_runpath=yes
9036
hardcode_into_libs=yes
9037
# ldd complains unless libraries are executable
9038
postinstall_cmds='chmod +x $lib'
9043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9044
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9045
shlibpath_var=LD_LIBRARY_PATH
9046
shlibpath_overrides_runpath=yes
9047
if test "$with_gnu_ld" = yes; then
9055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056
soname_spec='${libname}${release}${shared_ext}$major'
9057
shlibpath_var=LD_LIBRARY_PATH
9058
case $host_vendor in
9060
shlibpath_overrides_runpath=no
9062
export_dynamic_flag_spec='${wl}-Blargedynsym'
9063
runpath_var=LD_RUN_PATH
9071
shlibpath_overrides_runpath=no
9072
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9078
if test -d /usr/nec ;then
9080
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9081
soname_spec='$libname${shared_ext}.$major'
9082
shlibpath_var=LD_LIBRARY_PATH
9086
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9087
version_type=freebsd-elf
9090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9091
soname_spec='${libname}${release}${shared_ext}$major'
9092
shlibpath_var=LD_LIBRARY_PATH
9093
hardcode_into_libs=yes
9094
if test "$with_gnu_ld" = yes; then
9095
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9096
shlibpath_overrides_runpath=no
9098
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9099
shlibpath_overrides_runpath=yes
9102
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9106
sys_lib_dlsearch_path_spec='/usr/lib'
9111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112
soname_spec='${libname}${release}${shared_ext}$major'
9113
shlibpath_var=LD_LIBRARY_PATH
9120
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9121
echo "${ECHO_T}$dynamic_linker" >&6; }
9122
test "$dynamic_linker" = no && can_build_shared=no
9124
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9125
if test "$GCC" = yes; then
9126
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9129
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9130
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9132
if test -n "$hardcode_libdir_flag_spec" || \
9133
test -n "$runpath_var" || \
9134
test "X$hardcode_automatic" = "Xyes" ; then
9136
# We can hardcode non-existant directories.
9137
if test "$hardcode_direct" != no &&
9138
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9139
# have to relink, otherwise we might link with an installed library
9140
# when we should be linking with a yet-to-be-installed one
9141
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9142
test "$hardcode_minus_L" != no; then
9143
# Linking always hardcodes the temporary library directory.
9144
hardcode_action=relink
9146
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9147
hardcode_action=immediate
9150
# We cannot hardcode anything, or else we can only hardcode existing
9152
hardcode_action=unsupported
9154
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9155
echo "${ECHO_T}$hardcode_action" >&6; }
9157
if test "$hardcode_action" = relink; then
9158
# Fast installation is not supported
9159
enable_fast_install=no
9160
elif test "$shlibpath_overrides_runpath" = yes ||
9161
test "$enable_shared" = no; then
9162
# Fast installation is not necessary
9163
enable_fast_install=needless
9168
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9169
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9170
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9171
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9172
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9173
{ echo "$as_me:$LINENO: result: yes" >&5
9174
echo "${ECHO_T}yes" >&6; }
9176
# FIXME - insert some real tests, host_os isn't really good enough
9179
if test -n "$STRIP" ; then
9180
striplib="$STRIP -x"
9181
{ echo "$as_me:$LINENO: result: yes" >&5
9182
echo "${ECHO_T}yes" >&6; }
9184
{ echo "$as_me:$LINENO: result: no" >&5
9185
echo "${ECHO_T}no" >&6; }
9189
{ echo "$as_me:$LINENO: result: no" >&5
9190
echo "${ECHO_T}no" >&6; }
9195
if test "x$enable_dlopen" != xyes; then
9196
enable_dlopen=unknown
9197
enable_dlopen_self=unknown
9198
enable_dlopen_self_static=unknown
9205
lt_cv_dlopen="load_add_on"
9207
lt_cv_dlopen_self=yes
9211
lt_cv_dlopen="LoadLibrary"
9216
lt_cv_dlopen="dlopen"
9221
# if libdl is installed we need to link against it
9222
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9225
echo $ECHO_N "(cached) $ECHO_C" >&6
9227
ac_check_lib_save_LIBS=$LIBS
9229
cat >conftest.$ac_ext <<_ACEOF
9232
cat confdefs.h >>conftest.$ac_ext
9233
cat >>conftest.$ac_ext <<_ACEOF
9234
/* end confdefs.h. */
9236
/* Override any GCC internal prototype to avoid an error.
9237
Use char because int might match the return type of a GCC
9238
builtin and then its argument prototype would still apply. */
9251
rm -f conftest.$ac_objext conftest$ac_exeext
9252
if { (ac_try="$ac_link"
9254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255
*) ac_try_echo=$ac_try;;
9257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258
(eval "$ac_link") 2>conftest.er1
9260
grep -v '^ *+' conftest.er1 >conftest.err
9262
cat conftest.err >&5
9263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264
(exit $ac_status); } && {
9265
test -z "$ac_c_werror_flag" ||
9266
test ! -s conftest.err
9267
} && test -s conftest$ac_exeext &&
9268
$as_test_x conftest$ac_exeext; then
9269
ac_cv_lib_dl_dlopen=yes
9271
echo "$as_me: failed program was:" >&5
9272
sed 's/^/| /' conftest.$ac_ext >&5
9274
ac_cv_lib_dl_dlopen=no
9277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9278
conftest$ac_exeext conftest.$ac_ext
9279
LIBS=$ac_check_lib_save_LIBS
9281
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9282
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9283
if test $ac_cv_lib_dl_dlopen = yes; then
9284
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9289
lt_cv_dlopen_self=yes
9296
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9297
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9298
if test "${ac_cv_func_shl_load+set}" = set; then
9299
echo $ECHO_N "(cached) $ECHO_C" >&6
9301
cat >conftest.$ac_ext <<_ACEOF
9304
cat confdefs.h >>conftest.$ac_ext
9305
cat >>conftest.$ac_ext <<_ACEOF
9306
/* end confdefs.h. */
9307
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9308
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9309
#define shl_load innocuous_shl_load
9311
/* System header to define __stub macros and hopefully few prototypes,
9312
which can conflict with char shl_load (); below.
9313
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314
<limits.h> exists even on freestanding compilers. */
9317
# include <limits.h>
9319
# include <assert.h>
9324
/* Override any GCC internal prototype to avoid an error.
9325
Use char because int might match the return type of a GCC
9326
builtin and then its argument prototype would still apply. */
9331
/* The GNU C library defines this for functions which it implements
9332
to always fail with ENOSYS. Some functions are actually named
9333
something starting with __ and the normal name is an alias. */
9334
#if defined __stub_shl_load || defined __stub___shl_load
9346
rm -f conftest.$ac_objext conftest$ac_exeext
9347
if { (ac_try="$ac_link"
9349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350
*) ac_try_echo=$ac_try;;
9352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353
(eval "$ac_link") 2>conftest.er1
9355
grep -v '^ *+' conftest.er1 >conftest.err
9357
cat conftest.err >&5
9358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359
(exit $ac_status); } && {
9360
test -z "$ac_c_werror_flag" ||
9361
test ! -s conftest.err
9362
} && test -s conftest$ac_exeext &&
9363
$as_test_x conftest$ac_exeext; then
9364
ac_cv_func_shl_load=yes
9366
echo "$as_me: failed program was:" >&5
9367
sed 's/^/| /' conftest.$ac_ext >&5
9369
ac_cv_func_shl_load=no
9372
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9373
conftest$ac_exeext conftest.$ac_ext
9375
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9376
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9377
if test $ac_cv_func_shl_load = yes; then
9378
lt_cv_dlopen="shl_load"
9380
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9381
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9382
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9383
echo $ECHO_N "(cached) $ECHO_C" >&6
9385
ac_check_lib_save_LIBS=$LIBS
9387
cat >conftest.$ac_ext <<_ACEOF
9390
cat confdefs.h >>conftest.$ac_ext
9391
cat >>conftest.$ac_ext <<_ACEOF
9392
/* end confdefs.h. */
9394
/* Override any GCC internal prototype to avoid an error.
9395
Use char because int might match the return type of a GCC
9396
builtin and then its argument prototype would still apply. */
9409
rm -f conftest.$ac_objext conftest$ac_exeext
9410
if { (ac_try="$ac_link"
9412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413
*) ac_try_echo=$ac_try;;
9415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416
(eval "$ac_link") 2>conftest.er1
9418
grep -v '^ *+' conftest.er1 >conftest.err
9420
cat conftest.err >&5
9421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422
(exit $ac_status); } && {
9423
test -z "$ac_c_werror_flag" ||
9424
test ! -s conftest.err
9425
} && test -s conftest$ac_exeext &&
9426
$as_test_x conftest$ac_exeext; then
9427
ac_cv_lib_dld_shl_load=yes
9429
echo "$as_me: failed program was:" >&5
9430
sed 's/^/| /' conftest.$ac_ext >&5
9432
ac_cv_lib_dld_shl_load=no
9435
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9436
conftest$ac_exeext conftest.$ac_ext
9437
LIBS=$ac_check_lib_save_LIBS
9439
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9440
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9441
if test $ac_cv_lib_dld_shl_load = yes; then
9442
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9444
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9445
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9446
if test "${ac_cv_func_dlopen+set}" = set; then
9447
echo $ECHO_N "(cached) $ECHO_C" >&6
9449
cat >conftest.$ac_ext <<_ACEOF
9452
cat confdefs.h >>conftest.$ac_ext
9453
cat >>conftest.$ac_ext <<_ACEOF
9454
/* end confdefs.h. */
9455
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9456
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9457
#define dlopen innocuous_dlopen
9459
/* System header to define __stub macros and hopefully few prototypes,
9460
which can conflict with char dlopen (); below.
9461
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9462
<limits.h> exists even on freestanding compilers. */
9465
# include <limits.h>
9467
# include <assert.h>
9472
/* Override any GCC internal prototype to avoid an error.
9473
Use char because int might match the return type of a GCC
9474
builtin and then its argument prototype would still apply. */
9479
/* The GNU C library defines this for functions which it implements
9480
to always fail with ENOSYS. Some functions are actually named
9481
something starting with __ and the normal name is an alias. */
9482
#if defined __stub_dlopen || defined __stub___dlopen
9494
rm -f conftest.$ac_objext conftest$ac_exeext
9495
if { (ac_try="$ac_link"
9497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498
*) ac_try_echo=$ac_try;;
9500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501
(eval "$ac_link") 2>conftest.er1
9503
grep -v '^ *+' conftest.er1 >conftest.err
9505
cat conftest.err >&5
9506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507
(exit $ac_status); } && {
9508
test -z "$ac_c_werror_flag" ||
9509
test ! -s conftest.err
9510
} && test -s conftest$ac_exeext &&
9511
$as_test_x conftest$ac_exeext; then
9512
ac_cv_func_dlopen=yes
9514
echo "$as_me: failed program was:" >&5
9515
sed 's/^/| /' conftest.$ac_ext >&5
9517
ac_cv_func_dlopen=no
9520
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521
conftest$ac_exeext conftest.$ac_ext
9523
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9524
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9525
if test $ac_cv_func_dlopen = yes; then
9526
lt_cv_dlopen="dlopen"
9528
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9529
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9530
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9531
echo $ECHO_N "(cached) $ECHO_C" >&6
9533
ac_check_lib_save_LIBS=$LIBS
9535
cat >conftest.$ac_ext <<_ACEOF
9538
cat confdefs.h >>conftest.$ac_ext
9539
cat >>conftest.$ac_ext <<_ACEOF
9540
/* end confdefs.h. */
9542
/* Override any GCC internal prototype to avoid an error.
9543
Use char because int might match the return type of a GCC
9544
builtin and then its argument prototype would still apply. */
9557
rm -f conftest.$ac_objext conftest$ac_exeext
9558
if { (ac_try="$ac_link"
9560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561
*) ac_try_echo=$ac_try;;
9563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564
(eval "$ac_link") 2>conftest.er1
9566
grep -v '^ *+' conftest.er1 >conftest.err
9568
cat conftest.err >&5
9569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570
(exit $ac_status); } && {
9571
test -z "$ac_c_werror_flag" ||
9572
test ! -s conftest.err
9573
} && test -s conftest$ac_exeext &&
9574
$as_test_x conftest$ac_exeext; then
9575
ac_cv_lib_dl_dlopen=yes
9577
echo "$as_me: failed program was:" >&5
9578
sed 's/^/| /' conftest.$ac_ext >&5
9580
ac_cv_lib_dl_dlopen=no
9583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9584
conftest$ac_exeext conftest.$ac_ext
9585
LIBS=$ac_check_lib_save_LIBS
9587
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9588
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9589
if test $ac_cv_lib_dl_dlopen = yes; then
9590
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9592
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9593
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9594
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9595
echo $ECHO_N "(cached) $ECHO_C" >&6
9597
ac_check_lib_save_LIBS=$LIBS
9599
cat >conftest.$ac_ext <<_ACEOF
9602
cat confdefs.h >>conftest.$ac_ext
9603
cat >>conftest.$ac_ext <<_ACEOF
9604
/* end confdefs.h. */
9606
/* Override any GCC internal prototype to avoid an error.
9607
Use char because int might match the return type of a GCC
9608
builtin and then its argument prototype would still apply. */
9621
rm -f conftest.$ac_objext conftest$ac_exeext
9622
if { (ac_try="$ac_link"
9624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625
*) ac_try_echo=$ac_try;;
9627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628
(eval "$ac_link") 2>conftest.er1
9630
grep -v '^ *+' conftest.er1 >conftest.err
9632
cat conftest.err >&5
9633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634
(exit $ac_status); } && {
9635
test -z "$ac_c_werror_flag" ||
9636
test ! -s conftest.err
9637
} && test -s conftest$ac_exeext &&
9638
$as_test_x conftest$ac_exeext; then
9639
ac_cv_lib_svld_dlopen=yes
9641
echo "$as_me: failed program was:" >&5
9642
sed 's/^/| /' conftest.$ac_ext >&5
9644
ac_cv_lib_svld_dlopen=no
9647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648
conftest$ac_exeext conftest.$ac_ext
9649
LIBS=$ac_check_lib_save_LIBS
9651
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9652
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9653
if test $ac_cv_lib_svld_dlopen = yes; then
9654
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9656
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9657
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9658
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9659
echo $ECHO_N "(cached) $ECHO_C" >&6
9661
ac_check_lib_save_LIBS=$LIBS
9663
cat >conftest.$ac_ext <<_ACEOF
9666
cat confdefs.h >>conftest.$ac_ext
9667
cat >>conftest.$ac_ext <<_ACEOF
9668
/* end confdefs.h. */
9670
/* Override any GCC internal prototype to avoid an error.
9671
Use char because int might match the return type of a GCC
9672
builtin and then its argument prototype would still apply. */
9685
rm -f conftest.$ac_objext conftest$ac_exeext
9686
if { (ac_try="$ac_link"
9688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689
*) ac_try_echo=$ac_try;;
9691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692
(eval "$ac_link") 2>conftest.er1
9694
grep -v '^ *+' conftest.er1 >conftest.err
9696
cat conftest.err >&5
9697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698
(exit $ac_status); } && {
9699
test -z "$ac_c_werror_flag" ||
9700
test ! -s conftest.err
9701
} && test -s conftest$ac_exeext &&
9702
$as_test_x conftest$ac_exeext; then
9703
ac_cv_lib_dld_dld_link=yes
9705
echo "$as_me: failed program was:" >&5
9706
sed 's/^/| /' conftest.$ac_ext >&5
9708
ac_cv_lib_dld_dld_link=no
9711
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712
conftest$ac_exeext conftest.$ac_ext
9713
LIBS=$ac_check_lib_save_LIBS
9715
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9716
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9717
if test $ac_cv_lib_dld_dld_link = yes; then
9718
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9739
if test "x$lt_cv_dlopen" != xno; then
9745
case $lt_cv_dlopen in
9747
save_CPPFLAGS="$CPPFLAGS"
9748
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9750
save_LDFLAGS="$LDFLAGS"
9751
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9754
LIBS="$lt_cv_dlopen_libs $LIBS"
9756
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9757
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9758
if test "${lt_cv_dlopen_self+set}" = set; then
9759
echo $ECHO_N "(cached) $ECHO_C" >&6
9761
if test "$cross_compiling" = yes; then :
9762
lt_cv_dlopen_self=cross
9764
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9765
lt_status=$lt_dlunknown
9766
cat > conftest.$ac_ext <<EOF
9767
#line 9767 "configure"
9768
#include "confdefs.h"
9777
# define LT_DLGLOBAL RTLD_GLOBAL
9780
# define LT_DLGLOBAL DL_GLOBAL
9782
# define LT_DLGLOBAL 0
9786
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9787
find out it does not work in some platform. */
9788
#ifndef LT_DLLAZY_OR_NOW
9790
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9793
# define LT_DLLAZY_OR_NOW DL_LAZY
9796
# define LT_DLLAZY_OR_NOW RTLD_NOW
9799
# define LT_DLLAZY_OR_NOW DL_NOW
9801
# define LT_DLLAZY_OR_NOW 0
9809
extern "C" void exit (int);
9812
void fnord() { int i=42;}
9815
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9816
int status = $lt_dlunknown;
9820
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9821
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9822
/* dlclose (self); */
9830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831
(eval $ac_link) 2>&5
9833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9835
(./conftest; exit; ) >&5 2>/dev/null
9838
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9839
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9840
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9843
# compilation failed
9844
lt_cv_dlopen_self=no
9851
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9852
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9854
if test "x$lt_cv_dlopen_self" = xyes; then
9855
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9856
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9857
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9858
if test "${lt_cv_dlopen_self_static+set}" = set; then
9859
echo $ECHO_N "(cached) $ECHO_C" >&6
9861
if test "$cross_compiling" = yes; then :
9862
lt_cv_dlopen_self_static=cross
9864
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9865
lt_status=$lt_dlunknown
9866
cat > conftest.$ac_ext <<EOF
9867
#line 9867 "configure"
9868
#include "confdefs.h"
9877
# define LT_DLGLOBAL RTLD_GLOBAL
9880
# define LT_DLGLOBAL DL_GLOBAL
9882
# define LT_DLGLOBAL 0
9886
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9887
find out it does not work in some platform. */
9888
#ifndef LT_DLLAZY_OR_NOW
9890
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9893
# define LT_DLLAZY_OR_NOW DL_LAZY
9896
# define LT_DLLAZY_OR_NOW RTLD_NOW
9899
# define LT_DLLAZY_OR_NOW DL_NOW
9901
# define LT_DLLAZY_OR_NOW 0
9909
extern "C" void exit (int);
9912
void fnord() { int i=42;}
9915
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9916
int status = $lt_dlunknown;
9920
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9921
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9922
/* dlclose (self); */
9930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931
(eval $ac_link) 2>&5
9933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9935
(./conftest; exit; ) >&5 2>/dev/null
9938
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9939
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9940
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9943
# compilation failed
9944
lt_cv_dlopen_self_static=no
9951
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9952
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9955
CPPFLAGS="$save_CPPFLAGS"
9956
LDFLAGS="$save_LDFLAGS"
9961
case $lt_cv_dlopen_self in
9962
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9963
*) enable_dlopen_self=unknown ;;
9966
case $lt_cv_dlopen_self_static in
9967
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9968
*) enable_dlopen_self_static=unknown ;;
9973
# Report which library types will actually be built
9974
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9975
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9976
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9977
echo "${ECHO_T}$can_build_shared" >&6; }
9979
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9980
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9981
test "$can_build_shared" = "no" && enable_shared=no
9983
# On AIX, shared libraries and static libraries use the same namespace, and
9984
# are all built from PIC.
9987
test "$enable_shared" = yes && enable_static=no
9988
if test -n "$RANLIB"; then
9989
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9990
postinstall_cmds='$RANLIB $lib'
9995
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9996
test "$enable_shared" = yes && enable_static=no
10000
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10001
echo "${ECHO_T}$enable_shared" >&6; }
10003
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10004
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10005
# Make sure either enable_shared or enable_static is yes.
10006
test "$enable_shared" = yes || enable_static=yes
10007
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10008
echo "${ECHO_T}$enable_static" >&6; }
10010
# The else clause should only fire when bootstrapping the
10011
# libtool distribution, otherwise you forgot to ship ltmain.sh
10012
# with your package, and you will get complaints that there are
10013
# no rules to generate ltmain.sh.
10014
if test -f "$ltmain"; then
10015
# See if we are running on zsh, and set the options which allow our commands through
10016
# without removal of \ escapes.
10017
if test -n "${ZSH_VERSION+set}" ; then
10018
setopt NO_GLOB_SUBST
10020
# Now quote all the things that may contain metacharacters while being
10021
# careful not to overquote the AC_SUBSTed values. We take copies of the
10022
# variables and quote the copies for generation of the libtool script.
10023
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10025
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10026
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10027
deplibs_check_method reload_flag reload_cmds need_locks \
10028
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10029
lt_cv_sys_global_symbol_to_c_name_address \
10030
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10031
old_postinstall_cmds old_postuninstall_cmds \
10035
lt_prog_compiler_wl \
10036
lt_prog_compiler_pic \
10037
lt_prog_compiler_static \
10038
lt_prog_compiler_no_builtin_flag \
10039
export_dynamic_flag_spec \
10040
thread_safe_flag_spec \
10041
whole_archive_flag_spec \
10042
enable_shared_with_static_runtimes \
10044
old_archive_from_new_cmds \
10049
compiler_lib_search_path \
10051
archive_expsym_cmds \
10053
postuninstall_cmds \
10054
old_archive_from_expsyms_cmds \
10055
allow_undefined_flag \
10056
no_undefined_flag \
10057
export_symbols_cmds \
10058
hardcode_libdir_flag_spec \
10059
hardcode_libdir_flag_spec_ld \
10060
hardcode_libdir_separator \
10061
hardcode_automatic \
10063
module_expsym_cmds \
10064
lt_cv_prog_compiler_c_o \
10066
include_expsyms; do
10069
old_archive_cmds | \
10070
old_archive_from_new_cmds | \
10072
archive_expsym_cmds | \
10074
module_expsym_cmds | \
10075
old_archive_from_expsyms_cmds | \
10076
export_symbols_cmds | \
10077
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10078
postinstall_cmds | postuninstall_cmds | \
10079
old_postinstall_cmds | old_postuninstall_cmds | \
10080
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10081
# Double-quote double-evaled strings.
10082
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10085
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10091
*'\$0 --fallback-echo"')
10092
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10096
cfgfile="${ofile}T"
10097
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10099
{ echo "$as_me:$LINENO: creating $ofile" >&5
10100
echo "$as_me: creating $ofile" >&6;}
10102
cat <<__EOF__ >> "$cfgfile"
10105
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10106
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10107
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10109
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10110
# Free Software Foundation, Inc.
10112
# This file is part of GNU Libtool:
10113
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10115
# This program is free software; you can redistribute it and/or modify
10116
# it under the terms of the GNU General Public License as published by
10117
# the Free Software Foundation; either version 2 of the License, or
10118
# (at your option) any later version.
10120
# This program is distributed in the hope that it will be useful, but
10121
# WITHOUT ANY WARRANTY; without even the implied warranty of
10122
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10123
# General Public License for more details.
10125
# You should have received a copy of the GNU General Public License
10126
# along with this program; if not, write to the Free Software
10127
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10129
# As a special exception to the GNU General Public License, if you
10130
# distribute this file as part of a program that contains a
10131
# configuration script generated by Autoconf, you may include it under
10132
# the same distribution terms that you use for the rest of that program.
10134
# A sed program that does not truncate output.
10137
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10138
Xsed="$SED -e 1s/^X//"
10140
# The HP-UX ksh and POSIX shell print the target directory to stdout
10141
# if CDPATH is set.
10142
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10144
# The names of the tagged configurations supported by this script.
10147
# ### BEGIN LIBTOOL CONFIG
10149
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10151
# Shell to use when invoking shell scripts.
10154
# Whether or not to build shared libraries.
10155
build_libtool_libs=$enable_shared
10157
# Whether or not to build static libraries.
10158
build_old_libs=$enable_static
10160
# Whether or not to add -lc for building shared libraries.
10161
build_libtool_need_lc=$archive_cmds_need_lc
10163
# Whether or not to disallow shared libs when runtime libs are static
10164
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10166
# Whether or not to optimize for fast installation.
10167
fast_install=$enable_fast_install
10170
host_alias=$host_alias
10174
# The build system.
10175
build_alias=$build_alias
10179
# An echo program that does not interpret backslashes.
10184
AR_FLAGS=$lt_AR_FLAGS
10189
# LTCC compiler flags.
10190
LTCFLAGS=$lt_LTCFLAGS
10192
# A language-specific compiler.
10195
# Is the compiler the GNU C compiler?
10201
# The linker used to build libraries.
10204
# Whether we need hard or soft links.
10207
# A BSD-compatible nm program.
10210
# A symbol stripping program
10213
# Used to examine libraries when file_magic_cmd begins "file"
10214
MAGIC_CMD=$MAGIC_CMD
10216
# Used on cygwin: DLL creation program.
10219
# Used on cygwin: object dumper.
10222
# Used on cygwin: assembler.
10225
# The name of the directory that contains temporary libtool files.
10228
# How to create reloadable object files.
10229
reload_flag=$lt_reload_flag
10230
reload_cmds=$lt_reload_cmds
10232
# How to pass a linker flag through the compiler.
10233
wl=$lt_lt_prog_compiler_wl
10235
# Object file suffix (normally "o").
10236
objext="$ac_objext"
10238
# Old archive suffix (normally "a").
10241
# Shared library suffix (normally ".so").
10242
shrext_cmds='$shrext_cmds'
10244
# Executable file suffix (normally "").
10247
# Additional compiler flags for building library objects.
10248
pic_flag=$lt_lt_prog_compiler_pic
10251
# What is the maximum length of a command?
10252
max_cmd_len=$lt_cv_sys_max_cmd_len
10254
# Does compiler simultaneously support -c and -o options?
10255
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10257
# Must we lock files when doing compilation?
10258
need_locks=$lt_need_locks
10260
# Do we need the lib prefix for modules?
10261
need_lib_prefix=$need_lib_prefix
10263
# Do we need a version for libraries?
10264
need_version=$need_version
10266
# Whether dlopen is supported.
10267
dlopen_support=$enable_dlopen
10269
# Whether dlopen of programs is supported.
10270
dlopen_self=$enable_dlopen_self
10272
# Whether dlopen of statically linked programs is supported.
10273
dlopen_self_static=$enable_dlopen_self_static
10275
# Compiler flag to prevent dynamic linking.
10276
link_static_flag=$lt_lt_prog_compiler_static
10278
# Compiler flag to turn off builtin functions.
10279
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10281
# Compiler flag to allow reflexive dlopens.
10282
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10284
# Compiler flag to generate shared objects directly from archives.
10285
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10287
# Compiler flag to generate thread-safe objects.
10288
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10290
# Library versioning type.
10291
version_type=$version_type
10293
# Format of library name prefix.
10294
libname_spec=$lt_libname_spec
10296
# List of archive names. First name is the real one, the rest are links.
10297
# The last name is the one that the linker finds with -lNAME.
10298
library_names_spec=$lt_library_names_spec
10300
# The coded name of the library, if different from the real name.
10301
soname_spec=$lt_soname_spec
10303
# Commands used to build and install an old-style archive.
10305
old_archive_cmds=$lt_old_archive_cmds
10306
old_postinstall_cmds=$lt_old_postinstall_cmds
10307
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10309
# Create an old-style archive from a shared archive.
10310
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10312
# Create a temporary old-style archive to link instead of a shared archive.
10313
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10315
# Commands used to build and install a shared archive.
10316
archive_cmds=$lt_archive_cmds
10317
archive_expsym_cmds=$lt_archive_expsym_cmds
10318
postinstall_cmds=$lt_postinstall_cmds
10319
postuninstall_cmds=$lt_postuninstall_cmds
10321
# Commands used to build a loadable module (assumed same as above if empty)
10322
module_cmds=$lt_module_cmds
10323
module_expsym_cmds=$lt_module_expsym_cmds
10325
# Commands to strip libraries.
10326
old_striplib=$lt_old_striplib
10327
striplib=$lt_striplib
10329
# Dependencies to place before the objects being linked to create a
10331
predep_objects=$lt_predep_objects
10333
# Dependencies to place after the objects being linked to create a
10335
postdep_objects=$lt_postdep_objects
10337
# Dependencies to place before the objects being linked to create a
10339
predeps=$lt_predeps
10341
# Dependencies to place after the objects being linked to create a
10343
postdeps=$lt_postdeps
10345
# The library search path used internally by the compiler when linking
10346
# a shared library.
10347
compiler_lib_search_path=$lt_compiler_lib_search_path
10349
# Method to check whether dependent libraries are shared objects.
10350
deplibs_check_method=$lt_deplibs_check_method
10352
# Command to use when deplibs_check_method == file_magic.
10353
file_magic_cmd=$lt_file_magic_cmd
10355
# Flag that allows shared libraries with undefined symbols to be built.
10356
allow_undefined_flag=$lt_allow_undefined_flag
10358
# Flag that forces no undefined symbols.
10359
no_undefined_flag=$lt_no_undefined_flag
10361
# Commands used to finish a libtool library installation in a directory.
10362
finish_cmds=$lt_finish_cmds
10364
# Same as above, but a single script fragment to be evaled but not shown.
10365
finish_eval=$lt_finish_eval
10367
# Take the output of nm and produce a listing of raw symbols and C names.
10368
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10370
# Transform the output of nm in a proper C declaration
10371
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10373
# Transform the output of nm in a C name address pair
10374
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10376
# This is the shared library runtime path variable.
10377
runpath_var=$runpath_var
10379
# This is the shared library path variable.
10380
shlibpath_var=$shlibpath_var
10382
# Is shlibpath searched before the hard-coded library search path?
10383
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10385
# How to hardcode a shared library path into an executable.
10386
hardcode_action=$hardcode_action
10388
# Whether we should hardcode library paths into libraries.
10389
hardcode_into_libs=$hardcode_into_libs
10391
# Flag to hardcode \$libdir into a binary during linking.
10392
# This must work even if \$libdir does not exist.
10393
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10395
# If ld is used when linking, flag to hardcode \$libdir into
10396
# a binary during linking. This must work even if \$libdir does
10398
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10400
# Whether we need a single -rpath flag with a separated argument.
10401
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10403
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10404
# resulting binary.
10405
hardcode_direct=$hardcode_direct
10407
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10408
# resulting binary.
10409
hardcode_minus_L=$hardcode_minus_L
10411
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10412
# the resulting binary.
10413
hardcode_shlibpath_var=$hardcode_shlibpath_var
10415
# Set to yes if building a shared library automatically hardcodes DIR into the library
10416
# and all subsequent libraries and executables linked against it.
10417
hardcode_automatic=$hardcode_automatic
10419
# Variables whose values should be saved in libtool wrapper scripts and
10420
# restored at relink time.
10421
variables_saved_for_relink="$variables_saved_for_relink"
10423
# Whether libtool must link a program against all its dependency libraries.
10424
link_all_deplibs=$link_all_deplibs
10426
# Compile-time system search path for libraries
10427
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10429
# Run-time system search path for libraries
10430
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10432
# Fix the shell variable \$srcfile for the compiler.
10433
fix_srcfile_path="$fix_srcfile_path"
10435
# Set to yes if exported symbols are required.
10436
always_export_symbols=$always_export_symbols
10438
# The commands to list exported symbols.
10439
export_symbols_cmds=$lt_export_symbols_cmds
10441
# The commands to extract the exported symbol list from a shared archive.
10442
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10444
# Symbols that should not be listed in the preloaded symbols.
10445
exclude_expsyms=$lt_exclude_expsyms
10447
# Symbols that must always be exported.
10448
include_expsyms=$lt_include_expsyms
10450
# ### END LIBTOOL CONFIG
10457
cat <<\EOF >> "$cfgfile"
10459
# AIX sometimes has problems with the GCC collect2 program. For some
10460
# reason, if we set the COLLECT_NAMES environment variable, the problems
10461
# vanish in a puff of smoke.
10462
if test "X${COLLECT_NAMES+set}" != Xset; then
10464
export COLLECT_NAMES
10470
# We use sed instead of cat because bash on DJGPP gets confused if
10471
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10472
# text mode, it properly converts lines to CR/LF. This bash problem
10473
# is reportedly fixed, but why not run on old versions too?
10474
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10476
mv -f "$cfgfile" "$ofile" || \
10477
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10481
# If there is no Makefile yet, we rely on a make rule to execute
10482
# `config.status --recheck' to rerun these tests and create the
10483
# libtool script then.
10484
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10485
if test -f "$ltmain_in"; then
10486
test -f Makefile && make "$ltmain"
10492
ac_cpp='$CPP $CPPFLAGS'
10493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10500
# Check whether --with-tags was given.
10501
if test "${with_tags+set}" = set; then
10502
withval=$with_tags; tagnames="$withval"
10506
if test -f "$ltmain" && test -n "$tagnames"; then
10507
if test ! -f "${ofile}"; then
10508
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10509
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10512
if test -z "$LTCC"; then
10513
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10514
if test -z "$LTCC"; then
10515
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10516
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10518
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10519
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10522
if test -z "$LTCFLAGS"; then
10523
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10526
# Extract list of available tagged configurations in $ofile.
10527
# Note that this assumes the entire list is on one line.
10528
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10530
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10531
for tagname in $tagnames; do
10533
# Check whether tagname contains only valid characters
10534
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10536
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10537
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10538
{ (exit 1); exit 1; }; }
10542
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10544
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10545
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10546
{ (exit 1); exit 1; }; }
10549
# Update the list of available tags.
10550
if test -n "$tagname"; then
10551
echo appending configuration tag \"$tagname\" to $ofile
10555
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10556
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10557
(test "X$CXX" != "Xg++"))) ; then
10559
ac_cpp='$CXXCPP $CPPFLAGS'
10560
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10561
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10562
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10567
archive_cmds_need_lc_CXX=no
10568
allow_undefined_flag_CXX=
10569
always_export_symbols_CXX=no
10570
archive_expsym_cmds_CXX=
10571
export_dynamic_flag_spec_CXX=
10572
hardcode_direct_CXX=no
10573
hardcode_libdir_flag_spec_CXX=
10574
hardcode_libdir_flag_spec_ld_CXX=
10575
hardcode_libdir_separator_CXX=
10576
hardcode_minus_L_CXX=no
10577
hardcode_shlibpath_var_CXX=unsupported
10578
hardcode_automatic_CXX=no
10580
module_expsym_cmds_CXX=
10581
link_all_deplibs_CXX=unknown
10582
old_archive_cmds_CXX=$old_archive_cmds
10583
no_undefined_flag_CXX=
10584
whole_archive_flag_spec_CXX=
10585
enable_shared_with_static_runtimes_CXX=no
10587
# Dependencies to place before and after the object being linked:
10588
predep_objects_CXX=
10589
postdep_objects_CXX=
10592
compiler_lib_search_path_CXX=
10594
# Source file extension for C++ test sources.
10597
# Object file extension for compiled C++ test sources.
10601
# Code to be used in simple compile tests
10602
lt_simple_compile_test_code="int some_variable = 0;\n"
10604
# Code to be used in simple link tests
10605
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10607
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10609
# If no C compiler was specified, use CC.
10612
# If no C compiler flags were specified, use CFLAGS.
10613
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10615
# Allow CC to be a program name with arguments.
10619
# save warnings/boilerplate of simple test code
10620
ac_outfile=conftest.$ac_objext
10621
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10622
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10623
_lt_compiler_boilerplate=`cat conftest.err`
10626
ac_outfile=conftest.$ac_objext
10627
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10628
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10629
_lt_linker_boilerplate=`cat conftest.err`
10633
# Allow CC to be a program name with arguments.
10638
lt_save_with_gnu_ld=$with_gnu_ld
10639
lt_save_path_LD=$lt_cv_path_LD
10640
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10641
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10643
$as_unset lt_cv_prog_gnu_ld
10645
if test -n "${lt_cv_path_LDCXX+set}"; then
10646
lt_cv_path_LD=$lt_cv_path_LDCXX
10648
$as_unset lt_cv_path_LD
10650
test -z "${LDCXX+set}" || LD=$LDCXX
10654
for cc_temp in $compiler""; do
10656
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10657
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10662
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10665
# We don't want -fno-exception wen compiling C++ code, so set the
10666
# no_builtin_flag separately
10667
if test "$GXX" = yes; then
10668
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10670
lt_prog_compiler_no_builtin_flag_CXX=
10673
if test "$GXX" = yes; then
10674
# Set up default GNU C++ configuration
10677
# Check whether --with-gnu-ld was given.
10678
if test "${with_gnu_ld+set}" = set; then
10679
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10685
if test "$GCC" = yes; then
10686
# Check if gcc -print-prog-name=ld gives a path.
10687
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10688
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10691
# gcc leaves a trailing carriage return which upsets mingw
10692
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10694
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10697
# Accept absolute paths.
10699
re_direlt='/[^/][^/]*/\.\./'
10700
# Canonicalize the pathname of ld
10701
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10702
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10703
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10705
test -z "$LD" && LD="$ac_prog"
10708
# If it fails, then pretend we aren't using GCC.
10712
# If it is relative, then search for the first ld in PATH.
10713
with_gnu_ld=unknown
10716
elif test "$with_gnu_ld" = yes; then
10717
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10718
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10720
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10721
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10723
if test "${lt_cv_path_LD+set}" = set; then
10724
echo $ECHO_N "(cached) $ECHO_C" >&6
10726
if test -z "$LD"; then
10727
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10728
for ac_dir in $PATH; do
10730
test -z "$ac_dir" && ac_dir=.
10731
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10732
lt_cv_path_LD="$ac_dir/$ac_prog"
10733
# Check to see if the program is GNU ld. I'd rather use --version,
10734
# but apparently some variants of GNU ld only accept -v.
10735
# Break only if it was the GNU/non-GNU ld that we prefer.
10736
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10737
*GNU* | *'with BFD'*)
10738
test "$with_gnu_ld" != no && break
10741
test "$with_gnu_ld" != yes && break
10748
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10752
LD="$lt_cv_path_LD"
10753
if test -n "$LD"; then
10754
{ echo "$as_me:$LINENO: result: $LD" >&5
10755
echo "${ECHO_T}$LD" >&6; }
10757
{ echo "$as_me:$LINENO: result: no" >&5
10758
echo "${ECHO_T}no" >&6; }
10760
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10761
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10762
{ (exit 1); exit 1; }; }
10763
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10764
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10765
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10766
echo $ECHO_N "(cached) $ECHO_C" >&6
10768
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10769
case `$LD -v 2>&1 </dev/null` in
10770
*GNU* | *'with BFD'*)
10771
lt_cv_prog_gnu_ld=yes
10774
lt_cv_prog_gnu_ld=no
10778
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10779
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10780
with_gnu_ld=$lt_cv_prog_gnu_ld
10784
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10785
# archiving commands below assume that GNU ld is being used.
10786
if test "$with_gnu_ld" = yes; then
10787
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10788
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'
10790
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10791
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10793
# If archive_cmds runs LD, not CC, wlarc should be empty
10794
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10795
# investigate it a little bit more. (MM)
10798
# ancient GNU ld didn't support --whole-archive et. al.
10799
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10800
grep 'no-whole-archive' > /dev/null; then
10801
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10803
whole_archive_flag_spec_CXX=
10809
# A generic and very simple default shared library creation
10810
# command for GNU C++ for the case where it uses the native
10811
# linker, instead of GNU ld. If possible, this setting should
10812
# overridden to take advantage of the native linker features on
10813
# the platform it is being used on.
10814
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10817
# Commands to make compiler produce verbose output that lists
10818
# what "hidden" libraries, object files and flags are used when
10819
# linking a shared library.
10820
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10828
# PORTME: fill in a description of your system's C++ link characteristics
10829
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10830
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10834
# FIXME: insert proper C++ library support
10838
if test "$host_cpu" = ia64; then
10839
# On IA64, the linker does run time linking by default, so we don't
10840
# have to do anything special.
10841
aix_use_runtimelinking=no
10842
exp_sym_flag='-Bexport'
10845
aix_use_runtimelinking=no
10847
# Test if we are trying to use run time linking or normal
10848
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10849
# need to do runtime linking.
10850
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10851
for ld_flag in $LDFLAGS; do
10854
aix_use_runtimelinking=yes
10862
exp_sym_flag='-bexport'
10863
no_entry_flag='-bnoentry'
10866
# When large executables or shared objects are built, AIX ld can
10867
# have problems creating the table of contents. If linking a library
10868
# or program results in "error TOC overflow" add -mminimal-toc to
10869
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10870
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10872
archive_cmds_CXX=''
10873
hardcode_direct_CXX=yes
10874
hardcode_libdir_separator_CXX=':'
10875
link_all_deplibs_CXX=yes
10877
if test "$GXX" = yes; then
10878
case $host_os in aix4.[012]|aix4.[012].*)
10879
# We only want to do this on AIX 4.2 and lower, the check
10880
# below for broken collect2 doesn't work under 4.3+
10881
collect2name=`${CC} -print-prog-name=collect2`
10882
if test -f "$collect2name" && \
10883
strings "$collect2name" | grep resolve_lib_name >/dev/null
10885
# We have reworked collect2
10886
hardcode_direct_CXX=yes
10888
# We have old collect2
10889
hardcode_direct_CXX=unsupported
10890
# It fails to find uninstalled libraries when the uninstalled
10891
# path is not listed in the libpath. Setting hardcode_minus_L
10892
# to unsupported forces relinking
10893
hardcode_minus_L_CXX=yes
10894
hardcode_libdir_flag_spec_CXX='-L$libdir'
10895
hardcode_libdir_separator_CXX=
10899
shared_flag='-shared'
10900
if test "$aix_use_runtimelinking" = yes; then
10901
shared_flag="$shared_flag "'${wl}-G'
10905
if test "$host_cpu" = ia64; then
10906
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10907
# chokes on -Wl,-G. The following line is correct:
10910
if test "$aix_use_runtimelinking" = yes; then
10911
shared_flag='${wl}-G'
10913
shared_flag='${wl}-bM:SRE'
10918
# It seems that -bexpall does not export symbols beginning with
10919
# underscore (_), so it is better to generate a list of symbols to export.
10920
always_export_symbols_CXX=yes
10921
if test "$aix_use_runtimelinking" = yes; then
10922
# Warning - without using the other runtime loading flags (-brtl),
10923
# -berok will link without error, but may produce a broken library.
10924
allow_undefined_flag_CXX='-berok'
10925
# Determine the default libpath from the value encoded in an empty executable.
10926
cat >conftest.$ac_ext <<_ACEOF
10929
cat confdefs.h >>conftest.$ac_ext
10930
cat >>conftest.$ac_ext <<_ACEOF
10931
/* end confdefs.h. */
10941
rm -f conftest.$ac_objext conftest$ac_exeext
10942
if { (ac_try="$ac_link"
10943
case "(($ac_try" in
10944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945
*) ac_try_echo=$ac_try;;
10947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948
(eval "$ac_link") 2>conftest.er1
10950
grep -v '^ *+' conftest.er1 >conftest.err
10952
cat conftest.err >&5
10953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954
(exit $ac_status); } && {
10955
test -z "$ac_cxx_werror_flag" ||
10956
test ! -s conftest.err
10957
} && test -s conftest$ac_exeext &&
10958
$as_test_x conftest$ac_exeext; then
10960
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10962
# Check for a 64-bit object if we didn't find anything.
10963
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; }
10966
echo "$as_me: failed program was:" >&5
10967
sed 's/^/| /' conftest.$ac_ext >&5
10972
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973
conftest$ac_exeext conftest.$ac_ext
10974
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10976
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10978
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10980
if test "$host_cpu" = ia64; then
10981
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10982
allow_undefined_flag_CXX="-z nodefs"
10983
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10985
# Determine the default libpath from the value encoded in an empty executable.
10986
cat >conftest.$ac_ext <<_ACEOF
10989
cat confdefs.h >>conftest.$ac_ext
10990
cat >>conftest.$ac_ext <<_ACEOF
10991
/* end confdefs.h. */
11001
rm -f conftest.$ac_objext conftest$ac_exeext
11002
if { (ac_try="$ac_link"
11003
case "(($ac_try" in
11004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005
*) ac_try_echo=$ac_try;;
11007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008
(eval "$ac_link") 2>conftest.er1
11010
grep -v '^ *+' conftest.er1 >conftest.err
11012
cat conftest.err >&5
11013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014
(exit $ac_status); } && {
11015
test -z "$ac_cxx_werror_flag" ||
11016
test ! -s conftest.err
11017
} && test -s conftest$ac_exeext &&
11018
$as_test_x conftest$ac_exeext; then
11020
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11022
# Check for a 64-bit object if we didn't find anything.
11023
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; }
11026
echo "$as_me: failed program was:" >&5
11027
sed 's/^/| /' conftest.$ac_ext >&5
11032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033
conftest$ac_exeext conftest.$ac_ext
11034
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11036
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11037
# Warning - without using the other run time loading flags,
11038
# -berok will link without error, but may produce a broken library.
11039
no_undefined_flag_CXX=' ${wl}-bernotok'
11040
allow_undefined_flag_CXX=' ${wl}-berok'
11041
# Exported symbols can be pulled into shared objects from archives
11042
whole_archive_flag_spec_CXX='$convenience'
11043
archive_cmds_need_lc_CXX=yes
11044
# This is similar to how AIX traditionally builds its shared libraries.
11045
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11051
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11052
allow_undefined_flag_CXX=unsupported
11053
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11054
# support --undefined. This deserves some investigation. FIXME
11055
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062
case $cc_basename in
11064
# FIXME: insert proper C++ library support
11070
cygwin* | mingw* | pw32*)
11071
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11072
# as there is no search path for DLLs.
11073
hardcode_libdir_flag_spec_CXX='-L$libdir'
11074
allow_undefined_flag_CXX=unsupported
11075
always_export_symbols_CXX=no
11076
enable_shared_with_static_runtimes_CXX=yes
11078
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11079
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11080
# If the export-symbols file already is a .def file (1st line
11081
# is EXPORTS), use it as is; otherwise, prepend...
11082
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11083
cp $export_symbols $output_objdir/$soname.def;
11085
echo EXPORTS > $output_objdir/$soname.def;
11086
cat $export_symbols >> $output_objdir/$soname.def;
11088
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11093
darwin* | rhapsody*)
11095
rhapsody* | darwin1.[012])
11096
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11099
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11100
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11102
case ${MACOSX_DEPLOYMENT_TARGET} in
11104
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11107
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11113
archive_cmds_need_lc_CXX=no
11114
hardcode_direct_CXX=no
11115
hardcode_automatic_CXX=yes
11116
hardcode_shlibpath_var_CXX=unsupported
11117
whole_archive_flag_spec_CXX=''
11118
link_all_deplibs_CXX=yes
11120
if test "$GXX" = yes ; then
11121
lt_int_apple_cc_single_mod=no
11122
output_verbose_link_cmd='echo'
11123
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11124
lt_int_apple_cc_single_mod=yes
11126
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11127
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11129
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11131
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11132
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11133
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11134
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}'
11136
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11138
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}'
11140
case $cc_basename in
11142
output_verbose_link_cmd='echo'
11143
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11144
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11145
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11146
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11147
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}'
11157
case $cc_basename in
11159
# FIXME: insert proper C++ library support
11163
# Green Hills C++ Compiler
11164
# FIXME: insert proper C++ library support
11168
# FIXME: insert proper C++ library support
11174
# C++ shared libraries reported to be fairly broken before switch to ELF
11178
archive_cmds_need_lc_CXX=no
11180
freebsd* | dragonfly*)
11181
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11188
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11189
hardcode_libdir_separator_CXX=:
11190
export_dynamic_flag_spec_CXX='${wl}-E'
11191
hardcode_direct_CXX=yes
11192
hardcode_minus_L_CXX=yes # Not in the search PATH,
11193
# but as the default
11194
# location of the library.
11196
case $cc_basename in
11198
# FIXME: insert proper C++ library support
11202
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'
11203
# Commands to make compiler produce verbose output that lists
11204
# what "hidden" libraries, object files and flags are used when
11205
# linking a shared library.
11207
# There doesn't appear to be a way to prevent this compiler from
11208
# explicitly linking system object files so we need to strip them
11209
# from the output so that they don't get included in the library
11211
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'
11214
if test "$GXX" = yes; then
11215
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'
11217
# FIXME: insert proper C++ library support
11224
if test $with_gnu_ld = no; then
11225
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11226
hardcode_libdir_separator_CXX=:
11230
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11233
export_dynamic_flag_spec_CXX='${wl}-E'
11239
hardcode_direct_CXX=no
11240
hardcode_shlibpath_var_CXX=no
11243
hardcode_direct_CXX=yes
11244
hardcode_minus_L_CXX=yes # Not in the search PATH,
11245
# but as the default
11246
# location of the library.
11250
case $cc_basename in
11252
# FIXME: insert proper C++ library support
11258
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11261
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11264
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11267
# Commands to make compiler produce verbose output that lists
11268
# what "hidden" libraries, object files and flags are used when
11269
# linking a shared library.
11271
# There doesn't appear to be a way to prevent this compiler from
11272
# explicitly linking system object files so we need to strip them
11273
# from the output so that they don't get included in the library
11275
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'
11278
if test "$GXX" = yes; then
11279
if test $with_gnu_ld = no; then
11282
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11285
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11288
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'
11293
# FIXME: insert proper C++ library support
11300
hardcode_direct_CXX=no
11301
hardcode_shlibpath_var_CXX=no
11302
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11303
export_dynamic_flag_spec_CXX='${wl}-E'
11304
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11305
# Instead, shared libraries are loaded at an image base (0x10000000 by
11306
# default) and relocated if they conflict, which is a slow very memory
11307
# consuming and fragmenting process. To avoid this, we pick a random,
11308
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11309
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11310
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11311
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11314
case $cc_basename in
11317
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11319
# Archives containing C++ object files must be created using
11320
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11321
# necessary to make sure instantiated templates are included
11323
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11326
if test "$GXX" = yes; then
11327
if test "$with_gnu_ld" = no; then
11328
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11330
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'
11333
link_all_deplibs_CXX=yes
11336
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11337
hardcode_libdir_separator_CXX=:
11339
linux* | k*bsd*-gnu)
11340
case $cc_basename in
11342
# Kuck and Associates, Inc. (KAI) C++ Compiler
11344
# KCC will only create a shared library if the output file
11345
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11346
# to its proper name (with version) after linking.
11347
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'
11348
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'
11349
# Commands to make compiler produce verbose output that lists
11350
# what "hidden" libraries, object files and flags are used when
11351
# linking a shared library.
11353
# There doesn't appear to be a way to prevent this compiler from
11354
# explicitly linking system object files so we need to strip them
11355
# from the output so that they don't get included in the library
11357
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'
11359
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11360
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11362
# Archives containing C++ object files must be created using
11363
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11364
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11369
# version 8.0 and above of icpc choke on multiply defined symbols
11370
# if we add $predep_objects and $postdep_objects, however 7.1 and
11371
# earlier do not add the objects themselves.
11372
case `$CC -V 2>&1` in
11374
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11375
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'
11377
*) # Version 8.0 or newer
11380
ia64*) tmp_idyn=' -i_dynamic';;
11382
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11383
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11386
archive_cmds_need_lc_CXX=no
11387
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11388
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11389
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11392
# Portland Group C++ compiler
11393
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11394
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11396
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11397
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11398
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11402
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11403
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'
11405
runpath_var=LD_RUN_PATH
11406
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11407
hardcode_libdir_separator_CXX=:
11409
# Commands to make compiler produce verbose output that lists
11410
# what "hidden" libraries, object files and flags are used when
11411
# linking a shared library.
11413
# There doesn't appear to be a way to prevent this compiler from
11414
# explicitly linking system object files so we need to strip them
11415
# from the output so that they don't get included in the library
11417
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'
11422
# FIXME: insert proper C++ library support
11426
# FIXME: insert proper C++ library support
11430
case $cc_basename in
11432
# FIXME: insert proper C++ library support
11436
# FIXME: insert proper C++ library support
11441
netbsd* | netbsdelf*-gnu)
11442
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11443
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11445
hardcode_libdir_flag_spec_CXX='-R$libdir'
11446
hardcode_direct_CXX=yes
11447
hardcode_shlibpath_var_CXX=no
11449
# Workaround some broken pre-1.5 toolchains
11450
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11453
# C++ shared libraries are fairly broken
11457
hardcode_direct_CXX=yes
11458
hardcode_shlibpath_var_CXX=no
11459
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11460
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11461
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11462
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11463
export_dynamic_flag_spec_CXX='${wl}-E'
11464
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11466
output_verbose_link_cmd='echo'
11469
case $cc_basename in
11471
# Kuck and Associates, Inc. (KAI) C++ Compiler
11473
# KCC will only create a shared library if the output file
11474
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11475
# to its proper name (with version) after linking.
11476
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'
11478
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11479
hardcode_libdir_separator_CXX=:
11481
# Archives containing C++ object files must be created using
11482
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11483
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11487
# Rational C++ 2.4.1
11488
# FIXME: insert proper C++ library support
11492
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11493
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11495
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11496
hardcode_libdir_separator_CXX=:
11498
# Commands to make compiler produce verbose output that lists
11499
# what "hidden" libraries, object files and flags are used when
11500
# linking a shared library.
11502
# There doesn't appear to be a way to prevent this compiler from
11503
# explicitly linking system object files so we need to strip them
11504
# from the output so that they don't get included in the library
11506
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'
11509
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11510
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11511
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11513
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11514
hardcode_libdir_separator_CXX=:
11516
# Commands to make compiler produce verbose output that lists
11517
# what "hidden" libraries, object files and flags are used when
11518
# linking a shared library.
11519
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11522
# FIXME: insert proper C++ library support
11529
case $cc_basename in
11531
# Kuck and Associates, Inc. (KAI) C++ Compiler
11533
# KCC will only create a shared library if the output file
11534
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11535
# to its proper name (with version) after linking.
11536
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'
11538
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11539
hardcode_libdir_separator_CXX=:
11541
# Archives containing C++ object files must be created using
11542
# the KAI C++ compiler.
11543
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11546
# Rational C++ 2.4.1
11547
# FIXME: insert proper C++ library support
11551
allow_undefined_flag_CXX=' -expect_unresolved \*'
11552
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11553
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11554
echo "-hidden">> $lib.exp~
11555
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11558
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11559
hardcode_libdir_separator_CXX=:
11561
# Commands to make compiler produce verbose output that lists
11562
# what "hidden" libraries, object files and flags are used when
11563
# linking a shared library.
11565
# There doesn't appear to be a way to prevent this compiler from
11566
# explicitly linking system object files so we need to strip them
11567
# from the output so that they don't get included in the library
11569
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'
11572
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11573
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11574
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11576
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11577
hardcode_libdir_separator_CXX=:
11579
# Commands to make compiler produce verbose output that lists
11580
# what "hidden" libraries, object files and flags are used when
11581
# linking a shared library.
11582
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11585
# FIXME: insert proper C++ library support
11592
# FIXME: insert proper C++ library support
11596
case $cc_basename in
11599
# FIXME: insert proper C++ library support
11604
# FIXME: insert proper C++ library support
11608
# FIXME: insert proper C++ library support
11614
case $cc_basename in
11616
# Sun C++ 4.2, 5.x and Centerline C++
11617
archive_cmds_need_lc_CXX=yes
11618
no_undefined_flag_CXX=' -zdefs'
11619
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11620
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11621
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11623
hardcode_libdir_flag_spec_CXX='-R$libdir'
11624
hardcode_shlibpath_var_CXX=no
11626
solaris2.[0-5] | solaris2.[0-5].*) ;;
11628
# The C++ compiler is used as linker so we must use $wl
11629
# flag to pass the commands to the underlying system
11630
# linker. We must also pass each convience library through
11631
# to the system linker between allextract/defaultextract.
11632
# The C++ compiler will combine linker options so we
11633
# cannot just pass the convience library names through
11635
# Supported since Solaris 2.6 (maybe 2.5.1?)
11636
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11639
link_all_deplibs_CXX=yes
11641
output_verbose_link_cmd='echo'
11643
# Archives containing C++ object files must be created using
11644
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11645
# necessary to make sure instantiated templates are included
11647
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11650
# Green Hills C++ Compiler
11651
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11653
# The C++ compiler must be used to create the archive.
11654
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11657
# GNU C++ compiler with Solaris linker
11658
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11659
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11660
if $CC --version | grep -v '^2\.7' > /dev/null; then
11661
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11662
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11663
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11665
# Commands to make compiler produce verbose output that lists
11666
# what "hidden" libraries, object files and flags are used when
11667
# linking a shared library.
11668
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11670
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11672
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11673
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11674
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11676
# Commands to make compiler produce verbose output that lists
11677
# what "hidden" libraries, object files and flags are used when
11678
# linking a shared library.
11679
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11682
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11687
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11688
no_undefined_flag_CXX='${wl}-z,text'
11689
archive_cmds_need_lc_CXX=no
11690
hardcode_shlibpath_var_CXX=no
11691
runpath_var='LD_RUN_PATH'
11693
case $cc_basename in
11695
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11696
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11704
sysv5* | sco3.2v5* | sco5v6*)
11705
# Note: We can NOT use -z defs as we might desire, because we do not
11706
# link with -lc, and that would cause any symbols used from libc to
11707
# always be unresolved, which means just about no library would
11708
# ever link correctly. If we're not using GNU ld we use -z text
11709
# though, which does catch some bad symbols but isn't as heavy-handed
11711
# For security reasons, it is highly recommended that you always
11712
# use absolute paths for naming shared libraries, and exclude the
11713
# DT_RUNPATH tag from executables and libraries. But doing so
11714
# requires that you compile everything twice, which is a pain.
11715
# So that behaviour is only enabled if SCOABSPATH is set to a
11716
# non-empty value in the environment. Most likely only useful for
11717
# creating official distributions of packages.
11718
# This is a hack until libtool officially supports absolute path
11719
# names for shared libraries.
11720
no_undefined_flag_CXX='${wl}-z,text'
11721
allow_undefined_flag_CXX='${wl}-z,nodefs'
11722
archive_cmds_need_lc_CXX=no
11723
hardcode_shlibpath_var_CXX=no
11724
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11725
hardcode_libdir_separator_CXX=':'
11726
link_all_deplibs_CXX=yes
11727
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11728
runpath_var='LD_RUN_PATH'
11730
case $cc_basename in
11732
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11733
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11736
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11737
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11742
case $cc_basename in
11744
# NonStop-UX NCC 3.20
11745
# FIXME: insert proper C++ library support
11749
# FIXME: insert proper C++ library support
11755
# FIXME: insert proper C++ library support
11759
# FIXME: insert proper C++ library support
11763
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11764
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11765
test "$ld_shlibs_CXX" = no && can_build_shared=no
11771
cat > conftest.$ac_ext <<EOF
11775
Foo (void) { a = 0; }
11781
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782
(eval $ac_compile) 2>&5
11784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785
(exit $ac_status); }; then
11786
# Parse the compiler output and extract the necessary
11787
# objects, libraries and library flags.
11789
# Sentinel used to keep track of whether or not we are before
11790
# the conftest object file.
11791
pre_test_object_deps_done=no
11793
# The `*' in the case matches for architectures that use `case' in
11794
# $output_verbose_cmd can trigger glob expansion during the loop
11795
# eval without this substitution.
11796
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11798
for p in `eval $output_verbose_link_cmd`; do
11802
# Some compilers place space between "-{L,R}" and the path.
11803
# Remove the space.
11804
if test $p = "-L" \
11805
|| test $p = "-R"; then
11812
if test "$pre_test_object_deps_done" = no; then
11815
# Internal compiler library paths should come after those
11816
# provided the user. The postdeps already come after the
11817
# user supplied libs so there is no need to process them.
11818
if test -z "$compiler_lib_search_path_CXX"; then
11819
compiler_lib_search_path_CXX="${prev}${p}"
11821
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11824
# The "-l" case would never come before the object being
11825
# linked, so don't bother handling this case.
11828
if test -z "$postdeps_CXX"; then
11829
postdeps_CXX="${prev}${p}"
11831
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11837
# This assumes that the test object file only shows up
11838
# once in the compiler output.
11839
if test "$p" = "conftest.$objext"; then
11840
pre_test_object_deps_done=yes
11844
if test "$pre_test_object_deps_done" = no; then
11845
if test -z "$predep_objects_CXX"; then
11846
predep_objects_CXX="$p"
11848
predep_objects_CXX="$predep_objects_CXX $p"
11851
if test -z "$postdep_objects_CXX"; then
11852
postdep_objects_CXX="$p"
11854
postdep_objects_CXX="$postdep_objects_CXX $p"
11859
*) ;; # Ignore the rest.
11867
echo "libtool.m4: error: problem compiling CXX test program"
11870
$rm -f confest.$objext
11872
# PORTME: override above test on systems where it is broken
11875
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11876
# hack all around it, let's just trust "g++" to DTRT.
11877
predep_objects_CXX=
11878
postdep_objects_CXX=
11883
case $cc_basename in
11885
# Adding this requires a known-good setup of shared libraries for
11886
# Sun compiler versions before 5.6, else PIC objects from an old
11887
# archive will be linked into the output, leading to subtle bugs.
11888
postdeps_CXX='-lCstd -lCrun'
11895
case " $postdeps_CXX " in
11896
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11899
lt_prog_compiler_wl_CXX=
11900
lt_prog_compiler_pic_CXX=
11901
lt_prog_compiler_static_CXX=
11903
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11904
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11906
# C++ specific cases for pic, static, wl, etc.
11907
if test "$GXX" = yes; then
11908
lt_prog_compiler_wl_CXX='-Wl,'
11909
lt_prog_compiler_static_CXX='-static'
11913
# All AIX code is PIC.
11914
if test "$host_cpu" = ia64; then
11915
# AIX 5 now supports IA64 processor
11916
lt_prog_compiler_static_CXX='-Bstatic'
11920
# FIXME: we need at least 68020 code to build shared libraries, but
11921
# adding the `-m68020' flag to GCC prevents building anything better,
11923
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11925
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11926
# PIC is the default for these OSes.
11928
mingw* | os2* | pw32*)
11929
# This hack is so that the source file can tell whether it is being
11930
# built for inclusion in a dll (and should export symbols for example).
11931
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11933
darwin* | rhapsody*)
11934
# PIC is the default on this platform
11935
# Common symbols not allowed in MH_DYLIB files
11936
lt_prog_compiler_pic_CXX='-fno-common'
11939
# DJGPP does not support shared libraries at all
11940
lt_prog_compiler_pic_CXX=
11943
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11944
# Instead, we relocate shared libraries at runtime.
11947
if test -d /usr/nec; then
11948
lt_prog_compiler_pic_CXX=-Kconform_pic
11952
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11953
# not for PA HP-UX.
11958
lt_prog_compiler_pic_CXX='-fPIC'
11963
lt_prog_compiler_pic_CXX='-fPIC'
11969
# All AIX code is PIC.
11970
if test "$host_cpu" = ia64; then
11971
# AIX 5 now supports IA64 processor
11972
lt_prog_compiler_static_CXX='-Bstatic'
11974
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11978
case $cc_basename in
11980
# Green Hills C++ Compiler
11981
# _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"
11986
# PIC is the default on this platform
11987
# Common symbols not allowed in MH_DYLIB files
11988
case $cc_basename in
11990
lt_prog_compiler_pic_CXX='-qnocommon'
11991
lt_prog_compiler_wl_CXX='-Wl,'
11996
case $cc_basename in
11998
lt_prog_compiler_pic_CXX='-KPIC'
12001
# Green Hills C++ Compiler
12002
lt_prog_compiler_pic_CXX='-pic'
12008
freebsd* | dragonfly*)
12009
# FreeBSD uses GNU C++
12011
hpux9* | hpux10* | hpux11*)
12012
case $cc_basename in
12014
lt_prog_compiler_wl_CXX='-Wl,'
12015
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12016
if test "$host_cpu" != ia64; then
12017
lt_prog_compiler_pic_CXX='+Z'
12021
lt_prog_compiler_wl_CXX='-Wl,'
12022
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12028
lt_prog_compiler_pic_CXX='+Z'
12037
# This is c89, which is MS Visual C++ (no shared libs)
12038
# Anyone wants to do a port?
12040
irix5* | irix6* | nonstopux*)
12041
case $cc_basename in
12043
lt_prog_compiler_wl_CXX='-Wl,'
12044
lt_prog_compiler_static_CXX='-non_shared'
12045
# CC pic flag -KPIC is the default.
12051
linux* | k*bsd*-gnu)
12052
case $cc_basename in
12055
lt_prog_compiler_wl_CXX='--backend -Wl,'
12056
lt_prog_compiler_pic_CXX='-fPIC'
12060
lt_prog_compiler_wl_CXX='-Wl,'
12061
lt_prog_compiler_pic_CXX='-KPIC'
12062
lt_prog_compiler_static_CXX='-static'
12065
# Portland Group C++ compiler.
12066
lt_prog_compiler_wl_CXX='-Wl,'
12067
lt_prog_compiler_pic_CXX='-fpic'
12068
lt_prog_compiler_static_CXX='-Bstatic'
12072
# Make sure the PIC flag is empty. It appears that all Alpha
12073
# Linux and Compaq Tru64 Unix objects are PIC.
12074
lt_prog_compiler_pic_CXX=
12075
lt_prog_compiler_static_CXX='-non_shared'
12086
case $cc_basename in
12088
lt_prog_compiler_pic_CXX='-W c,exportall'
12094
netbsd* | netbsdelf*-gnu)
12096
osf3* | osf4* | osf5*)
12097
case $cc_basename in
12099
lt_prog_compiler_wl_CXX='--backend -Wl,'
12102
# Rational C++ 2.4.1
12103
lt_prog_compiler_pic_CXX='-pic'
12106
# Digital/Compaq C++
12107
lt_prog_compiler_wl_CXX='-Wl,'
12108
# Make sure the PIC flag is empty. It appears that all Alpha
12109
# Linux and Compaq Tru64 Unix objects are PIC.
12110
lt_prog_compiler_pic_CXX=
12111
lt_prog_compiler_static_CXX='-non_shared'
12120
case $cc_basename in
12122
# Sun C++ 4.2, 5.x and Centerline C++
12123
lt_prog_compiler_pic_CXX='-KPIC'
12124
lt_prog_compiler_static_CXX='-Bstatic'
12125
lt_prog_compiler_wl_CXX='-Qoption ld '
12128
# Green Hills C++ Compiler
12129
lt_prog_compiler_pic_CXX='-PIC'
12136
case $cc_basename in
12139
lt_prog_compiler_pic_CXX='-pic'
12140
lt_prog_compiler_static_CXX='-Bstatic'
12144
lt_prog_compiler_pic_CXX='-pic'
12151
case $cc_basename in
12153
# NonStop-UX NCC 3.20
12154
lt_prog_compiler_pic_CXX='-KPIC'
12160
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12161
case $cc_basename in
12163
lt_prog_compiler_wl_CXX='-Wl,'
12164
lt_prog_compiler_pic_CXX='-KPIC'
12165
lt_prog_compiler_static_CXX='-Bstatic'
12172
lt_prog_compiler_can_build_shared_CXX=no
12177
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12178
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12181
# Check to make sure the PIC flag actually works.
12183
if test -n "$lt_prog_compiler_pic_CXX"; then
12185
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12186
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12187
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12188
echo $ECHO_N "(cached) $ECHO_C" >&6
12190
lt_prog_compiler_pic_works_CXX=no
12191
ac_outfile=conftest.$ac_objext
12192
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12193
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12194
# Insert the option either (1) after the last *FLAGS variable, or
12195
# (2) before a word containing "conftest.", or (3) at the end.
12196
# Note that $ac_compile itself does not contain backslashes and begins
12197
# with a dollar sign (not a hyphen), so the echo should work correctly.
12198
# The option is referenced via a variable to avoid confusing sed.
12199
lt_compile=`echo "$ac_compile" | $SED \
12200
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12201
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12202
-e 's:$: $lt_compiler_flag:'`
12203
(eval echo "\"\$as_me:12203: $lt_compile\"" >&5)
12204
(eval "$lt_compile" 2>conftest.err)
12206
cat conftest.err >&5
12207
echo "$as_me:12207: \$? = $ac_status" >&5
12208
if (exit $ac_status) && test -s "$ac_outfile"; then
12209
# The compiler can only warn and ignore the option if not recognized
12210
# So say no if there are warnings other than the usual output.
12211
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12212
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12213
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12214
lt_prog_compiler_pic_works_CXX=yes
12220
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12221
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12223
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12224
case $lt_prog_compiler_pic_CXX in
12226
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12229
lt_prog_compiler_pic_CXX=
12230
lt_prog_compiler_can_build_shared_CXX=no
12235
# For platforms which do not support PIC, -DPIC is meaningless:
12237
lt_prog_compiler_pic_CXX=
12240
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12245
# Check to make sure the static flag actually works.
12247
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12248
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12249
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12250
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12251
echo $ECHO_N "(cached) $ECHO_C" >&6
12253
lt_prog_compiler_static_works_CXX=no
12254
save_LDFLAGS="$LDFLAGS"
12255
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12256
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12257
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12258
# The linker can only warn and ignore the option if not recognized
12259
# So say no if there are warnings
12260
if test -s conftest.err; then
12261
# Append any errors to the config.log.
12262
cat conftest.err 1>&5
12263
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12264
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12265
if diff conftest.exp conftest.er2 >/dev/null; then
12266
lt_prog_compiler_static_works_CXX=yes
12269
lt_prog_compiler_static_works_CXX=yes
12273
LDFLAGS="$save_LDFLAGS"
12276
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12277
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12279
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12282
lt_prog_compiler_static_CXX=
12286
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12287
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12288
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12289
echo $ECHO_N "(cached) $ECHO_C" >&6
12291
lt_cv_prog_compiler_c_o_CXX=no
12292
$rm -r conftest 2>/dev/null
12296
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12298
lt_compiler_flag="-o out/conftest2.$ac_objext"
12299
# Insert the option either (1) after the last *FLAGS variable, or
12300
# (2) before a word containing "conftest.", or (3) at the end.
12301
# Note that $ac_compile itself does not contain backslashes and begins
12302
# with a dollar sign (not a hyphen), so the echo should work correctly.
12303
lt_compile=`echo "$ac_compile" | $SED \
12304
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12305
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306
-e 's:$: $lt_compiler_flag:'`
12307
(eval echo "\"\$as_me:12307: $lt_compile\"" >&5)
12308
(eval "$lt_compile" 2>out/conftest.err)
12310
cat out/conftest.err >&5
12311
echo "$as_me:12311: \$? = $ac_status" >&5
12312
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12314
# The compiler can only warn and ignore the option if not recognized
12315
# So say no if there are warnings
12316
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12317
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12318
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12319
lt_cv_prog_compiler_c_o_CXX=yes
12324
# SGI C++ compiler will create directory out/ii_files/ for
12325
# template instantiation
12326
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12327
$rm out/* && rmdir out
12333
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12334
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12337
hard_links="nottested"
12338
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12339
# do not overwrite the value of need_locks provided by the user
12340
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12341
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12344
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12346
ln conftest.a conftest.b 2>&5 || hard_links=no
12347
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12348
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12349
echo "${ECHO_T}$hard_links" >&6; }
12350
if test "$hard_links" = no; then
12351
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12352
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12359
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12360
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12362
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12365
# If we're using GNU nm, then we don't want the "-C" option.
12366
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12367
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12368
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'
12370
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'
12374
export_symbols_cmds_CXX="$ltdll_cmds"
12377
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12379
linux* | k*bsd*-gnu)
12380
link_all_deplibs_CXX=no
12383
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12387
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12388
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12389
test "$ld_shlibs_CXX" = no && can_build_shared=no
12392
# Do we need to explicitly link libc?
12394
case "x$archive_cmds_need_lc_CXX" in
12396
# Assume -lc should be added
12397
archive_cmds_need_lc_CXX=yes
12399
if test "$enable_shared" = yes && test "$GCC" = yes; then
12400
case $archive_cmds_CXX in
12402
# FIXME: we may have to deal with multi-command sequences.
12405
# Test whether the compiler implicitly links with -lc since on some
12406
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12407
# to ld, don't add -lc before -lgcc.
12408
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12409
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12411
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12413
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414
(eval $ac_compile) 2>&5
12416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417
(exit $ac_status); } 2>conftest.err; then
12420
libobjs=conftest.$ac_objext
12422
wl=$lt_prog_compiler_wl_CXX
12423
pic_flag=$lt_prog_compiler_pic_CXX
12429
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12430
allow_undefined_flag_CXX=
12431
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12432
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435
(exit $ac_status); }
12437
archive_cmds_need_lc_CXX=no
12439
archive_cmds_need_lc_CXX=yes
12441
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12443
cat conftest.err 1>&5
12446
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12447
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12454
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12455
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12456
library_names_spec=
12457
libname_spec='lib$name'
12461
postuninstall_cmds=
12465
shlibpath_overrides_runpath=unknown
12467
dynamic_linker="$host_os ld.so"
12468
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12469
if test "$GCC" = yes; then
12470
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12471
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12472
# if the path contains ";" then we assume it to be the separator
12473
# otherwise default to the standard path separator (i.e. ":") - it is
12474
# assumed that no part of a normal pathname contains ";" but that should
12475
# okay in the real world where ";" in dirpaths is itself problematic.
12476
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12478
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12481
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12483
need_lib_prefix=unknown
12484
hardcode_into_libs=no
12486
# when you set need_version to no, make sure it does not cause -set_version
12487
# flags to be left without arguments
12488
need_version=unknown
12493
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12494
shlibpath_var=LIBPATH
12496
# AIX 3 has no versioning support, so we append a major version to the name.
12497
soname_spec='${libname}${release}${shared_ext}$major'
12504
hardcode_into_libs=yes
12505
if test "$host_cpu" = ia64; then
12506
# AIX 5 supports IA64
12507
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12508
shlibpath_var=LD_LIBRARY_PATH
12510
# With GCC up to 2.95.x, collect2 would create an import file
12511
# for dependence libraries. The import file would start with
12512
# the line `#! .'. This would cause the generated library to
12513
# depend on `.', always an invalid library. This was fixed in
12514
# development snapshots of GCC prior to 3.0.
12516
aix4 | aix4.[01] | aix4.[01].*)
12517
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12519
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12522
can_build_shared=no
12526
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12527
# soname into executable. Probably we can add versioning support to
12528
# collect2, so additional links can be useful in future.
12529
if test "$aix_use_runtimelinking" = yes; then
12530
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12531
# instead of lib<name>.a to let people know that these are not
12532
# typical AIX shared libraries.
12533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535
# We preserve .a as extension for shared libraries through AIX4.2
12536
# and later when we are not doing run time linking.
12537
library_names_spec='${libname}${release}.a $libname.a'
12538
soname_spec='${libname}${release}${shared_ext}$major'
12540
shlibpath_var=LIBPATH
12545
library_names_spec='$libname.ixlibrary $libname.a'
12546
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12547
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'
12551
library_names_spec='${libname}${shared_ext}'
12552
dynamic_linker="$host_os ld.so"
12553
shlibpath_var=LIBRARY_PATH
12559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560
soname_spec='${libname}${release}${shared_ext}$major'
12561
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12562
shlibpath_var=LD_LIBRARY_PATH
12563
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12564
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12565
# the default ld.so.conf also contains /usr/contrib/lib and
12566
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12567
# libtool to hard-code these into programs
12570
cygwin* | mingw* | pw32*)
12571
version_type=windows
12576
case $GCC,$host_os in
12577
yes,cygwin* | yes,mingw* | yes,pw32*)
12578
library_names_spec='$libname.dll.a'
12579
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12580
postinstall_cmds='base_file=`basename \${file}`~
12581
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12582
dldir=$destdir/`dirname \$dlpath`~
12583
test -d \$dldir || mkdir -p \$dldir~
12584
$install_prog $dir/$dlname \$dldir/$dlname~
12585
chmod a+x \$dldir/$dlname'
12586
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12587
dlpath=$dir/\$dldll~
12589
shlibpath_overrides_runpath=yes
12593
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12594
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12595
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12598
# MinGW DLLs use traditional 'lib' prefix
12599
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12601
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12602
# It is most probably a Windows format PATH printed by
12603
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12604
# path with ; separators, and with drive letters. We can handle the
12605
# drive letters (cygwin fileutils understands them), so leave them,
12606
# especially as we might pass files found there to a mingw objdump,
12607
# which wouldn't understand a cygwinified path. Ahh.
12608
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12610
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12614
# pw32 DLLs use 'pw' prefix rather than 'lib'
12615
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12621
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12624
dynamic_linker='Win32 ld.exe'
12625
# FIXME: first we should search . and the directory the executable is in
12629
darwin* | rhapsody*)
12630
dynamic_linker="$host_os dyld"
12631
version_type=darwin
12634
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12635
soname_spec='${libname}${release}${major}$shared_ext'
12636
shlibpath_overrides_runpath=yes
12637
shlibpath_var=DYLD_LIBRARY_PATH
12638
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12639
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12640
if test "$GCC" = yes; then
12641
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"`
12643
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12645
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12653
soname_spec='${libname}${release}${shared_ext}$major'
12654
shlibpath_var=LD_LIBRARY_PATH
12661
freebsd* | dragonfly*)
12662
# DragonFly does not have aout. When/if they implement a new
12663
# versioning mechanism, adjust this.
12664
if test -x /usr/bin/objformat; then
12665
objformat=`/usr/bin/objformat`
12668
freebsd[123]*) objformat=aout ;;
12669
*) objformat=elf ;;
12672
version_type=freebsd-$objformat
12673
case $version_type in
12675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12680
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12684
shlibpath_var=LD_LIBRARY_PATH
12687
shlibpath_overrides_runpath=yes
12689
freebsd3.[01]* | freebsdelf3.[01]*)
12690
shlibpath_overrides_runpath=yes
12691
hardcode_into_libs=yes
12693
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12694
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12695
shlibpath_overrides_runpath=no
12696
hardcode_into_libs=yes
12698
freebsd*) # from 4.6 on
12699
shlibpath_overrides_runpath=yes
12700
hardcode_into_libs=yes
12709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12710
soname_spec='${libname}${release}${shared_ext}$major'
12711
shlibpath_var=LD_LIBRARY_PATH
12712
hardcode_into_libs=yes
12715
hpux9* | hpux10* | hpux11*)
12716
# Give a soname corresponding to the major version so that dld.sl refuses to
12717
# link against other versions.
12724
hardcode_into_libs=yes
12725
dynamic_linker="$host_os dld.so"
12726
shlibpath_var=LD_LIBRARY_PATH
12727
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12729
soname_spec='${libname}${release}${shared_ext}$major'
12730
if test "X$HPUX_IA64_MODE" = X32; then
12731
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12733
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12735
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12739
hardcode_into_libs=yes
12740
dynamic_linker="$host_os dld.sl"
12741
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12742
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12744
soname_spec='${libname}${release}${shared_ext}$major'
12745
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12746
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12750
dynamic_linker="$host_os dld.sl"
12751
shlibpath_var=SHLIB_PATH
12752
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754
soname_spec='${libname}${release}${shared_ext}$major'
12757
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12758
postinstall_cmds='chmod 555 $lib'
12765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12766
soname_spec='${libname}${release}${shared_ext}$major'
12767
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12768
shlibpath_var=LD_LIBRARY_PATH
12769
shlibpath_overrides_runpath=no
12770
hardcode_into_libs=yes
12773
irix5* | irix6* | nonstopux*)
12775
nonstopux*) version_type=nonstopux ;;
12777
if test "$lt_cv_prog_gnu_ld" = yes; then
12785
soname_spec='${libname}${release}${shared_ext}$major'
12786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12788
irix5* | nonstopux*)
12789
libsuff= shlibsuff=
12792
case $LD in # libtool.m4 will add one of these switches to LD
12793
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12794
libsuff= shlibsuff= libmagic=32-bit;;
12795
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12796
libsuff=32 shlibsuff=N32 libmagic=N32;;
12797
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12798
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12799
*) libsuff= shlibsuff= libmagic=never-match;;
12803
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12804
shlibpath_overrides_runpath=no
12805
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12806
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12807
hardcode_into_libs=yes
12810
# No shared lib support for Linux oldld, aout, or coff.
12811
linux*oldld* | linux*aout* | linux*coff*)
12815
# This must be Linux ELF.
12816
linux* | k*bsd*-gnu)
12820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821
soname_spec='${libname}${release}${shared_ext}$major'
12822
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12823
shlibpath_var=LD_LIBRARY_PATH
12824
shlibpath_overrides_runpath=no
12825
# This implies no fast_install, which is unacceptable.
12826
# Some rework will be needed to allow for fast_install
12827
# before this can be enabled.
12828
hardcode_into_libs=yes
12830
# Append ld.so.conf contents to the search path
12831
if test -f /etc/ld.so.conf; then
12832
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12833
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12836
# We used to test for /lib/ld.so.1 and disable shared libraries on
12837
# powerpc, because MkLinux only supported shared libraries with the
12838
# GNU dynamic linker. Since this was broken with cross compilers,
12839
# most powerpc-linux boxes support dynamic linking these days and
12840
# people can always --disable-shared, the test was removed, and we
12841
# assume the GNU/Linux dynamic linker is in use.
12842
dynamic_linker='GNU/Linux ld.so'
12849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12850
soname_spec='${libname}${release}${shared_ext}$major'
12851
shlibpath_var=LD_LIBRARY_PATH
12852
shlibpath_overrides_runpath=no
12853
hardcode_into_libs=yes
12854
dynamic_linker='NetBSD ld.elf_so'
12861
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12863
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12864
dynamic_linker='NetBSD (a.out) ld.so'
12866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12867
soname_spec='${libname}${release}${shared_ext}$major'
12868
dynamic_linker='NetBSD ld.elf_so'
12870
shlibpath_var=LD_LIBRARY_PATH
12871
shlibpath_overrides_runpath=yes
12872
hardcode_into_libs=yes
12877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878
shlibpath_var=LD_LIBRARY_PATH
12879
shlibpath_overrides_runpath=yes
12886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887
soname_spec='${libname}${release}${shared_ext}$major'
12888
shlibpath_var=LD_LIBRARY_PATH
12889
shlibpath_overrides_runpath=yes
12894
sys_lib_dlsearch_path_spec="/usr/lib"
12896
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12898
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12899
*) need_version=no ;;
12901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12902
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12903
shlibpath_var=LD_LIBRARY_PATH
12904
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12906
openbsd2.[89] | openbsd2.[89].*)
12907
shlibpath_overrides_runpath=no
12910
shlibpath_overrides_runpath=yes
12914
shlibpath_overrides_runpath=yes
12919
libname_spec='$name'
12922
library_names_spec='$libname${shared_ext} $libname.a'
12923
dynamic_linker='OS/2 ld.exe'
12924
shlibpath_var=LIBPATH
12927
osf3* | osf4* | osf5*)
12931
soname_spec='${libname}${release}${shared_ext}$major'
12932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933
shlibpath_var=LD_LIBRARY_PATH
12934
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12935
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943
soname_spec='${libname}${release}${shared_ext}$major'
12944
shlibpath_var=LD_LIBRARY_PATH
12945
shlibpath_overrides_runpath=yes
12946
hardcode_into_libs=yes
12947
# ldd complains unless libraries are executable
12948
postinstall_cmds='chmod +x $lib'
12953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12954
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12955
shlibpath_var=LD_LIBRARY_PATH
12956
shlibpath_overrides_runpath=yes
12957
if test "$with_gnu_ld" = yes; then
12965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966
soname_spec='${libname}${release}${shared_ext}$major'
12967
shlibpath_var=LD_LIBRARY_PATH
12968
case $host_vendor in
12970
shlibpath_overrides_runpath=no
12972
export_dynamic_flag_spec='${wl}-Blargedynsym'
12973
runpath_var=LD_RUN_PATH
12981
shlibpath_overrides_runpath=no
12982
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12988
if test -d /usr/nec ;then
12990
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12991
soname_spec='$libname${shared_ext}.$major'
12992
shlibpath_var=LD_LIBRARY_PATH
12996
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12997
version_type=freebsd-elf
13000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13001
soname_spec='${libname}${release}${shared_ext}$major'
13002
shlibpath_var=LD_LIBRARY_PATH
13003
hardcode_into_libs=yes
13004
if test "$with_gnu_ld" = yes; then
13005
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13006
shlibpath_overrides_runpath=no
13008
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13009
shlibpath_overrides_runpath=yes
13012
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13016
sys_lib_dlsearch_path_spec='/usr/lib'
13021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022
soname_spec='${libname}${release}${shared_ext}$major'
13023
shlibpath_var=LD_LIBRARY_PATH
13030
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13031
echo "${ECHO_T}$dynamic_linker" >&6; }
13032
test "$dynamic_linker" = no && can_build_shared=no
13034
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13035
if test "$GCC" = yes; then
13036
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13039
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13040
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13041
hardcode_action_CXX=
13042
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13043
test -n "$runpath_var_CXX" || \
13044
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13046
# We can hardcode non-existant directories.
13047
if test "$hardcode_direct_CXX" != no &&
13048
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13049
# have to relink, otherwise we might link with an installed library
13050
# when we should be linking with a yet-to-be-installed one
13051
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13052
test "$hardcode_minus_L_CXX" != no; then
13053
# Linking always hardcodes the temporary library directory.
13054
hardcode_action_CXX=relink
13056
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13057
hardcode_action_CXX=immediate
13060
# We cannot hardcode anything, or else we can only hardcode existing
13062
hardcode_action_CXX=unsupported
13064
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13065
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13067
if test "$hardcode_action_CXX" = relink; then
13068
# Fast installation is not supported
13069
enable_fast_install=no
13070
elif test "$shlibpath_overrides_runpath" = yes ||
13071
test "$enable_shared" = no; then
13072
# Fast installation is not necessary
13073
enable_fast_install=needless
13077
# The else clause should only fire when bootstrapping the
13078
# libtool distribution, otherwise you forgot to ship ltmain.sh
13079
# with your package, and you will get complaints that there are
13080
# no rules to generate ltmain.sh.
13081
if test -f "$ltmain"; then
13082
# See if we are running on zsh, and set the options which allow our commands through
13083
# without removal of \ escapes.
13084
if test -n "${ZSH_VERSION+set}" ; then
13085
setopt NO_GLOB_SUBST
13087
# Now quote all the things that may contain metacharacters while being
13088
# careful not to overquote the AC_SUBSTed values. We take copies of the
13089
# variables and quote the copies for generation of the libtool script.
13090
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13092
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13093
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13094
deplibs_check_method reload_flag reload_cmds need_locks \
13095
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13096
lt_cv_sys_global_symbol_to_c_name_address \
13097
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13098
old_postinstall_cmds old_postuninstall_cmds \
13102
lt_prog_compiler_wl_CXX \
13103
lt_prog_compiler_pic_CXX \
13104
lt_prog_compiler_static_CXX \
13105
lt_prog_compiler_no_builtin_flag_CXX \
13106
export_dynamic_flag_spec_CXX \
13107
thread_safe_flag_spec_CXX \
13108
whole_archive_flag_spec_CXX \
13109
enable_shared_with_static_runtimes_CXX \
13110
old_archive_cmds_CXX \
13111
old_archive_from_new_cmds_CXX \
13112
predep_objects_CXX \
13113
postdep_objects_CXX \
13116
compiler_lib_search_path_CXX \
13118
archive_expsym_cmds_CXX \
13119
postinstall_cmds_CXX \
13120
postuninstall_cmds_CXX \
13121
old_archive_from_expsyms_cmds_CXX \
13122
allow_undefined_flag_CXX \
13123
no_undefined_flag_CXX \
13124
export_symbols_cmds_CXX \
13125
hardcode_libdir_flag_spec_CXX \
13126
hardcode_libdir_flag_spec_ld_CXX \
13127
hardcode_libdir_separator_CXX \
13128
hardcode_automatic_CXX \
13130
module_expsym_cmds_CXX \
13131
lt_cv_prog_compiler_c_o_CXX \
13132
exclude_expsyms_CXX \
13133
include_expsyms_CXX; do
13136
old_archive_cmds_CXX | \
13137
old_archive_from_new_cmds_CXX | \
13138
archive_cmds_CXX | \
13139
archive_expsym_cmds_CXX | \
13140
module_cmds_CXX | \
13141
module_expsym_cmds_CXX | \
13142
old_archive_from_expsyms_cmds_CXX | \
13143
export_symbols_cmds_CXX | \
13144
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13145
postinstall_cmds | postuninstall_cmds | \
13146
old_postinstall_cmds | old_postuninstall_cmds | \
13147
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13148
# Double-quote double-evaled strings.
13149
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13152
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13158
*'\$0 --fallback-echo"')
13159
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13165
cat <<__EOF__ >> "$cfgfile"
13166
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13168
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13170
# Shell to use when invoking shell scripts.
13173
# Whether or not to build shared libraries.
13174
build_libtool_libs=$enable_shared
13176
# Whether or not to build static libraries.
13177
build_old_libs=$enable_static
13179
# Whether or not to add -lc for building shared libraries.
13180
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13182
# Whether or not to disallow shared libs when runtime libs are static
13183
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13185
# Whether or not to optimize for fast installation.
13186
fast_install=$enable_fast_install
13189
host_alias=$host_alias
13193
# The build system.
13194
build_alias=$build_alias
13198
# An echo program that does not interpret backslashes.
13203
AR_FLAGS=$lt_AR_FLAGS
13208
# LTCC compiler flags.
13209
LTCFLAGS=$lt_LTCFLAGS
13211
# A language-specific compiler.
13212
CC=$lt_compiler_CXX
13214
# Is the compiler the GNU C compiler?
13220
# The linker used to build libraries.
13223
# Whether we need hard or soft links.
13226
# A BSD-compatible nm program.
13229
# A symbol stripping program
13232
# Used to examine libraries when file_magic_cmd begins "file"
13233
MAGIC_CMD=$MAGIC_CMD
13235
# Used on cygwin: DLL creation program.
13238
# Used on cygwin: object dumper.
13241
# Used on cygwin: assembler.
13244
# The name of the directory that contains temporary libtool files.
13247
# How to create reloadable object files.
13248
reload_flag=$lt_reload_flag
13249
reload_cmds=$lt_reload_cmds
13251
# How to pass a linker flag through the compiler.
13252
wl=$lt_lt_prog_compiler_wl_CXX
13254
# Object file suffix (normally "o").
13255
objext="$ac_objext"
13257
# Old archive suffix (normally "a").
13260
# Shared library suffix (normally ".so").
13261
shrext_cmds='$shrext_cmds'
13263
# Executable file suffix (normally "").
13266
# Additional compiler flags for building library objects.
13267
pic_flag=$lt_lt_prog_compiler_pic_CXX
13270
# What is the maximum length of a command?
13271
max_cmd_len=$lt_cv_sys_max_cmd_len
13273
# Does compiler simultaneously support -c and -o options?
13274
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13276
# Must we lock files when doing compilation?
13277
need_locks=$lt_need_locks
13279
# Do we need the lib prefix for modules?
13280
need_lib_prefix=$need_lib_prefix
13282
# Do we need a version for libraries?
13283
need_version=$need_version
13285
# Whether dlopen is supported.
13286
dlopen_support=$enable_dlopen
13288
# Whether dlopen of programs is supported.
13289
dlopen_self=$enable_dlopen_self
13291
# Whether dlopen of statically linked programs is supported.
13292
dlopen_self_static=$enable_dlopen_self_static
13294
# Compiler flag to prevent dynamic linking.
13295
link_static_flag=$lt_lt_prog_compiler_static_CXX
13297
# Compiler flag to turn off builtin functions.
13298
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13300
# Compiler flag to allow reflexive dlopens.
13301
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13303
# Compiler flag to generate shared objects directly from archives.
13304
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13306
# Compiler flag to generate thread-safe objects.
13307
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13309
# Library versioning type.
13310
version_type=$version_type
13312
# Format of library name prefix.
13313
libname_spec=$lt_libname_spec
13315
# List of archive names. First name is the real one, the rest are links.
13316
# The last name is the one that the linker finds with -lNAME.
13317
library_names_spec=$lt_library_names_spec
13319
# The coded name of the library, if different from the real name.
13320
soname_spec=$lt_soname_spec
13322
# Commands used to build and install an old-style archive.
13324
old_archive_cmds=$lt_old_archive_cmds_CXX
13325
old_postinstall_cmds=$lt_old_postinstall_cmds
13326
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13328
# Create an old-style archive from a shared archive.
13329
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13331
# Create a temporary old-style archive to link instead of a shared archive.
13332
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13334
# Commands used to build and install a shared archive.
13335
archive_cmds=$lt_archive_cmds_CXX
13336
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13337
postinstall_cmds=$lt_postinstall_cmds
13338
postuninstall_cmds=$lt_postuninstall_cmds
13340
# Commands used to build a loadable module (assumed same as above if empty)
13341
module_cmds=$lt_module_cmds_CXX
13342
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13344
# Commands to strip libraries.
13345
old_striplib=$lt_old_striplib
13346
striplib=$lt_striplib
13348
# Dependencies to place before the objects being linked to create a
13350
predep_objects=$lt_predep_objects_CXX
13352
# Dependencies to place after the objects being linked to create a
13354
postdep_objects=$lt_postdep_objects_CXX
13356
# Dependencies to place before the objects being linked to create a
13358
predeps=$lt_predeps_CXX
13360
# Dependencies to place after the objects being linked to create a
13362
postdeps=$lt_postdeps_CXX
13364
# The library search path used internally by the compiler when linking
13365
# a shared library.
13366
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13368
# Method to check whether dependent libraries are shared objects.
13369
deplibs_check_method=$lt_deplibs_check_method
13371
# Command to use when deplibs_check_method == file_magic.
13372
file_magic_cmd=$lt_file_magic_cmd
13374
# Flag that allows shared libraries with undefined symbols to be built.
13375
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13377
# Flag that forces no undefined symbols.
13378
no_undefined_flag=$lt_no_undefined_flag_CXX
13380
# Commands used to finish a libtool library installation in a directory.
13381
finish_cmds=$lt_finish_cmds
13383
# Same as above, but a single script fragment to be evaled but not shown.
13384
finish_eval=$lt_finish_eval
13386
# Take the output of nm and produce a listing of raw symbols and C names.
13387
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13389
# Transform the output of nm in a proper C declaration
13390
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13392
# Transform the output of nm in a C name address pair
13393
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13395
# This is the shared library runtime path variable.
13396
runpath_var=$runpath_var
13398
# This is the shared library path variable.
13399
shlibpath_var=$shlibpath_var
13401
# Is shlibpath searched before the hard-coded library search path?
13402
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13404
# How to hardcode a shared library path into an executable.
13405
hardcode_action=$hardcode_action_CXX
13407
# Whether we should hardcode library paths into libraries.
13408
hardcode_into_libs=$hardcode_into_libs
13410
# Flag to hardcode \$libdir into a binary during linking.
13411
# This must work even if \$libdir does not exist.
13412
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13414
# If ld is used when linking, flag to hardcode \$libdir into
13415
# a binary during linking. This must work even if \$libdir does
13417
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13419
# Whether we need a single -rpath flag with a separated argument.
13420
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13422
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13423
# resulting binary.
13424
hardcode_direct=$hardcode_direct_CXX
13426
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13427
# resulting binary.
13428
hardcode_minus_L=$hardcode_minus_L_CXX
13430
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13431
# the resulting binary.
13432
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13434
# Set to yes if building a shared library automatically hardcodes DIR into the library
13435
# and all subsequent libraries and executables linked against it.
13436
hardcode_automatic=$hardcode_automatic_CXX
13438
# Variables whose values should be saved in libtool wrapper scripts and
13439
# restored at relink time.
13440
variables_saved_for_relink="$variables_saved_for_relink"
13442
# Whether libtool must link a program against all its dependency libraries.
13443
link_all_deplibs=$link_all_deplibs_CXX
13445
# Compile-time system search path for libraries
13446
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13448
# Run-time system search path for libraries
13449
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13451
# Fix the shell variable \$srcfile for the compiler.
13452
fix_srcfile_path="$fix_srcfile_path_CXX"
13454
# Set to yes if exported symbols are required.
13455
always_export_symbols=$always_export_symbols_CXX
13457
# The commands to list exported symbols.
13458
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13460
# The commands to extract the exported symbol list from a shared archive.
13461
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13463
# Symbols that should not be listed in the preloaded symbols.
13464
exclude_expsyms=$lt_exclude_expsyms_CXX
13466
# Symbols that must always be exported.
13467
include_expsyms=$lt_include_expsyms_CXX
13469
# ### END LIBTOOL TAG CONFIG: $tagname
13475
# If there is no Makefile yet, we rely on a make rule to execute
13476
# `config.status --recheck' to rerun these tests and create the
13477
# libtool script then.
13478
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13479
if test -f "$ltmain_in"; then
13480
test -f Makefile && make "$ltmain"
13486
ac_cpp='$CPP $CPPFLAGS'
13487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13495
with_gnu_ldcxx=$with_gnu_ld
13496
with_gnu_ld=$lt_save_with_gnu_ld
13497
lt_cv_path_LDCXX=$lt_cv_path_LD
13498
lt_cv_path_LD=$lt_save_path_LD
13499
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13500
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13508
if test -n "$F77" && test "X$F77" != "Xno"; then
13511
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13512
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13516
archive_cmds_need_lc_F77=no
13517
allow_undefined_flag_F77=
13518
always_export_symbols_F77=no
13519
archive_expsym_cmds_F77=
13520
export_dynamic_flag_spec_F77=
13521
hardcode_direct_F77=no
13522
hardcode_libdir_flag_spec_F77=
13523
hardcode_libdir_flag_spec_ld_F77=
13524
hardcode_libdir_separator_F77=
13525
hardcode_minus_L_F77=no
13526
hardcode_automatic_F77=no
13528
module_expsym_cmds_F77=
13529
link_all_deplibs_F77=unknown
13530
old_archive_cmds_F77=$old_archive_cmds
13531
no_undefined_flag_F77=
13532
whole_archive_flag_spec_F77=
13533
enable_shared_with_static_runtimes_F77=no
13535
# Source file extension for f77 test sources.
13538
# Object file extension for compiled f77 test sources.
13542
# Code to be used in simple compile tests
13543
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13545
# Code to be used in simple link tests
13546
lt_simple_link_test_code=" program t\n end\n"
13548
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13550
# If no C compiler was specified, use CC.
13553
# If no C compiler flags were specified, use CFLAGS.
13554
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13556
# Allow CC to be a program name with arguments.
13560
# save warnings/boilerplate of simple test code
13561
ac_outfile=conftest.$ac_objext
13562
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13563
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13564
_lt_compiler_boilerplate=`cat conftest.err`
13567
ac_outfile=conftest.$ac_objext
13568
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13569
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13570
_lt_linker_boilerplate=`cat conftest.err`
13574
# Allow CC to be a program name with arguments.
13579
for cc_temp in $compiler""; do
13581
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13582
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13587
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13590
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13591
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13592
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13593
echo "${ECHO_T}$can_build_shared" >&6; }
13595
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13596
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13597
test "$can_build_shared" = "no" && enable_shared=no
13599
# On AIX, shared libraries and static libraries use the same namespace, and
13600
# are all built from PIC.
13603
test "$enable_shared" = yes && enable_static=no
13604
if test -n "$RANLIB"; then
13605
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13606
postinstall_cmds='$RANLIB $lib'
13610
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13611
test "$enable_shared" = yes && enable_static=no
13615
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13616
echo "${ECHO_T}$enable_shared" >&6; }
13618
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13619
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13620
# Make sure either enable_shared or enable_static is yes.
13621
test "$enable_shared" = yes || enable_static=yes
13622
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13623
echo "${ECHO_T}$enable_static" >&6; }
13628
lt_prog_compiler_wl_F77=
13629
lt_prog_compiler_pic_F77=
13630
lt_prog_compiler_static_F77=
13632
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13633
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13635
if test "$GCC" = yes; then
13636
lt_prog_compiler_wl_F77='-Wl,'
13637
lt_prog_compiler_static_F77='-static'
13641
# All AIX code is PIC.
13642
if test "$host_cpu" = ia64; then
13643
# AIX 5 now supports IA64 processor
13644
lt_prog_compiler_static_F77='-Bstatic'
13649
# FIXME: we need at least 68020 code to build shared libraries, but
13650
# adding the `-m68020' flag to GCC prevents building anything better,
13652
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13655
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13656
# PIC is the default for these OSes.
13659
mingw* | pw32* | os2*)
13660
# This hack is so that the source file can tell whether it is being
13661
# built for inclusion in a dll (and should export symbols for example).
13662
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13665
darwin* | rhapsody*)
13666
# PIC is the default on this platform
13667
# Common symbols not allowed in MH_DYLIB files
13668
lt_prog_compiler_pic_F77='-fno-common'
13672
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13673
# Instead, we relocate shared libraries at runtime.
13677
# Just because we use GCC doesn't mean we suddenly get shared libraries
13678
# on systems that don't support them.
13679
lt_prog_compiler_can_build_shared_F77=no
13684
if test -d /usr/nec; then
13685
lt_prog_compiler_pic_F77=-Kconform_pic
13690
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13691
# not for PA HP-UX.
13697
lt_prog_compiler_pic_F77='-fPIC'
13703
lt_prog_compiler_pic_F77='-fPIC'
13707
# PORTME Check for flag to pass linker flags through the system compiler.
13710
lt_prog_compiler_wl_F77='-Wl,'
13711
if test "$host_cpu" = ia64; then
13712
# AIX 5 now supports IA64 processor
13713
lt_prog_compiler_static_F77='-Bstatic'
13715
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13719
# PIC is the default on this platform
13720
# Common symbols not allowed in MH_DYLIB files
13721
case $cc_basename in
13723
lt_prog_compiler_pic_F77='-qnocommon'
13724
lt_prog_compiler_wl_F77='-Wl,'
13729
mingw* | pw32* | os2*)
13730
# This hack is so that the source file can tell whether it is being
13731
# built for inclusion in a dll (and should export symbols for example).
13732
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13735
hpux9* | hpux10* | hpux11*)
13736
lt_prog_compiler_wl_F77='-Wl,'
13737
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13738
# not for PA HP-UX.
13744
lt_prog_compiler_pic_F77='+Z'
13747
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13748
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13751
irix5* | irix6* | nonstopux*)
13752
lt_prog_compiler_wl_F77='-Wl,'
13753
# PIC (with -KPIC) is the default.
13754
lt_prog_compiler_static_F77='-non_shared'
13758
lt_prog_compiler_pic_F77='-KPIC'
13759
lt_prog_compiler_static_F77='-Bstatic'
13762
linux* | k*bsd*-gnu)
13763
case $cc_basename in
13765
lt_prog_compiler_wl_F77='-Wl,'
13766
lt_prog_compiler_pic_F77='-KPIC'
13767
lt_prog_compiler_static_F77='-static'
13769
pgcc* | pgf77* | pgf90* | pgf95*)
13770
# Portland Group compilers (*not* the Pentium gcc compiler,
13771
# which looks to be a dead project)
13772
lt_prog_compiler_wl_F77='-Wl,'
13773
lt_prog_compiler_pic_F77='-fpic'
13774
lt_prog_compiler_static_F77='-Bstatic'
13777
lt_prog_compiler_wl_F77='-Wl,'
13778
# All Alpha code is PIC.
13779
lt_prog_compiler_static_F77='-non_shared'
13784
osf3* | osf4* | osf5*)
13785
lt_prog_compiler_wl_F77='-Wl,'
13786
# All OSF/1 code is PIC.
13787
lt_prog_compiler_static_F77='-non_shared'
13791
lt_prog_compiler_pic_F77='-KPIC'
13792
lt_prog_compiler_static_F77='-Bstatic'
13793
case $cc_basename in
13794
f77* | f90* | f95*)
13795
lt_prog_compiler_wl_F77='-Qoption ld ';;
13797
lt_prog_compiler_wl_F77='-Wl,';;
13802
lt_prog_compiler_wl_F77='-Qoption ld '
13803
lt_prog_compiler_pic_F77='-PIC'
13804
lt_prog_compiler_static_F77='-Bstatic'
13807
sysv4 | sysv4.2uw2* | sysv4.3*)
13808
lt_prog_compiler_wl_F77='-Wl,'
13809
lt_prog_compiler_pic_F77='-KPIC'
13810
lt_prog_compiler_static_F77='-Bstatic'
13814
if test -d /usr/nec ;then
13815
lt_prog_compiler_pic_F77='-Kconform_pic'
13816
lt_prog_compiler_static_F77='-Bstatic'
13820
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13821
lt_prog_compiler_wl_F77='-Wl,'
13822
lt_prog_compiler_pic_F77='-KPIC'
13823
lt_prog_compiler_static_F77='-Bstatic'
13827
lt_prog_compiler_wl_F77='-Wl,'
13828
lt_prog_compiler_can_build_shared_F77=no
13832
lt_prog_compiler_pic_F77='-pic'
13833
lt_prog_compiler_static_F77='-Bstatic'
13837
lt_prog_compiler_can_build_shared_F77=no
13842
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13843
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13846
# Check to make sure the PIC flag actually works.
13848
if test -n "$lt_prog_compiler_pic_F77"; then
13850
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13851
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13852
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13853
echo $ECHO_N "(cached) $ECHO_C" >&6
13855
lt_prog_compiler_pic_works_F77=no
13856
ac_outfile=conftest.$ac_objext
13857
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13858
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13859
# Insert the option either (1) after the last *FLAGS variable, or
13860
# (2) before a word containing "conftest.", or (3) at the end.
13861
# Note that $ac_compile itself does not contain backslashes and begins
13862
# with a dollar sign (not a hyphen), so the echo should work correctly.
13863
# The option is referenced via a variable to avoid confusing sed.
13864
lt_compile=`echo "$ac_compile" | $SED \
13865
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13866
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13867
-e 's:$: $lt_compiler_flag:'`
13868
(eval echo "\"\$as_me:13868: $lt_compile\"" >&5)
13869
(eval "$lt_compile" 2>conftest.err)
13871
cat conftest.err >&5
13872
echo "$as_me:13872: \$? = $ac_status" >&5
13873
if (exit $ac_status) && test -s "$ac_outfile"; then
13874
# The compiler can only warn and ignore the option if not recognized
13875
# So say no if there are warnings other than the usual output.
13876
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13877
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13878
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13879
lt_prog_compiler_pic_works_F77=yes
13885
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13886
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13888
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13889
case $lt_prog_compiler_pic_F77 in
13891
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13894
lt_prog_compiler_pic_F77=
13895
lt_prog_compiler_can_build_shared_F77=no
13900
# For platforms which do not support PIC, -DPIC is meaningless:
13902
lt_prog_compiler_pic_F77=
13905
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13910
# Check to make sure the static flag actually works.
13912
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13913
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13914
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13915
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13916
echo $ECHO_N "(cached) $ECHO_C" >&6
13918
lt_prog_compiler_static_works_F77=no
13919
save_LDFLAGS="$LDFLAGS"
13920
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13921
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13922
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13923
# The linker can only warn and ignore the option if not recognized
13924
# So say no if there are warnings
13925
if test -s conftest.err; then
13926
# Append any errors to the config.log.
13927
cat conftest.err 1>&5
13928
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13929
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13930
if diff conftest.exp conftest.er2 >/dev/null; then
13931
lt_prog_compiler_static_works_F77=yes
13934
lt_prog_compiler_static_works_F77=yes
13938
LDFLAGS="$save_LDFLAGS"
13941
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13942
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13944
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13947
lt_prog_compiler_static_F77=
13951
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13952
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13953
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13954
echo $ECHO_N "(cached) $ECHO_C" >&6
13956
lt_cv_prog_compiler_c_o_F77=no
13957
$rm -r conftest 2>/dev/null
13961
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13963
lt_compiler_flag="-o out/conftest2.$ac_objext"
13964
# Insert the option either (1) after the last *FLAGS variable, or
13965
# (2) before a word containing "conftest.", or (3) at the end.
13966
# Note that $ac_compile itself does not contain backslashes and begins
13967
# with a dollar sign (not a hyphen), so the echo should work correctly.
13968
lt_compile=`echo "$ac_compile" | $SED \
13969
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13970
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13971
-e 's:$: $lt_compiler_flag:'`
13972
(eval echo "\"\$as_me:13972: $lt_compile\"" >&5)
13973
(eval "$lt_compile" 2>out/conftest.err)
13975
cat out/conftest.err >&5
13976
echo "$as_me:13976: \$? = $ac_status" >&5
13977
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13979
# The compiler can only warn and ignore the option if not recognized
13980
# So say no if there are warnings
13981
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13982
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13983
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13984
lt_cv_prog_compiler_c_o_F77=yes
13989
# SGI C++ compiler will create directory out/ii_files/ for
13990
# template instantiation
13991
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13992
$rm out/* && rmdir out
13998
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13999
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14002
hard_links="nottested"
14003
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14004
# do not overwrite the value of need_locks provided by the user
14005
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14006
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14009
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14011
ln conftest.a conftest.b 2>&5 || hard_links=no
14012
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14013
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14014
echo "${ECHO_T}$hard_links" >&6; }
14015
if test "$hard_links" = no; then
14016
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14017
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14024
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14025
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14028
allow_undefined_flag_F77=
14029
enable_shared_with_static_runtimes_F77=no
14031
archive_expsym_cmds_F77=
14032
old_archive_From_new_cmds_F77=
14033
old_archive_from_expsyms_cmds_F77=
14034
export_dynamic_flag_spec_F77=
14035
whole_archive_flag_spec_F77=
14036
thread_safe_flag_spec_F77=
14037
hardcode_libdir_flag_spec_F77=
14038
hardcode_libdir_flag_spec_ld_F77=
14039
hardcode_libdir_separator_F77=
14040
hardcode_direct_F77=no
14041
hardcode_minus_L_F77=no
14042
hardcode_shlibpath_var_F77=unsupported
14043
link_all_deplibs_F77=unknown
14044
hardcode_automatic_F77=no
14046
module_expsym_cmds_F77=
14047
always_export_symbols_F77=no
14048
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14049
# include_expsyms should be a list of space-separated symbols to be *always*
14050
# included in the symbol list
14051
include_expsyms_F77=
14052
# exclude_expsyms can be an extended regexp of symbols to exclude
14053
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14054
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14055
# as well as any symbol that contains `d'.
14056
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14057
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14058
# platforms (ab)use it in PIC code, but their linkers get confused if
14059
# the symbol is explicitly referenced. Since portable code cannot
14060
# rely on this symbol name, it's probably fine to never include it in
14061
# preloaded symbol tables.
14062
extract_expsyms_cmds=
14063
# Just being paranoid about ensuring that cc_basename is set.
14064
for cc_temp in $compiler""; do
14066
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14067
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14072
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14075
cygwin* | mingw* | pw32*)
14076
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14077
# When not using gcc, we currently assume that we are using
14078
# Microsoft Visual C++.
14079
if test "$GCC" != yes; then
14084
# we just hope/assume this is gcc and not c89 (= MSVC++)
14093
if test "$with_gnu_ld" = yes; then
14094
# If archive_cmds runs LD, not CC, wlarc should be empty
14097
# Set some defaults for GNU ld with shared library support. These
14098
# are reset later if shared libraries are not supported. Putting them
14099
# here allows them to be overridden if necessary.
14100
runpath_var=LD_RUN_PATH
14101
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14102
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14103
# ancient GNU ld didn't support --whole-archive et. al.
14104
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14105
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14107
whole_archive_flag_spec_F77=
14109
supports_anon_versioning=no
14110
case `$LD -v 2>/dev/null` in
14111
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14112
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14113
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14114
*\ 2.11.*) ;; # other 2.11 versions
14115
*) supports_anon_versioning=yes ;;
14118
# See if GNU ld supports shared libraries.
14120
aix3* | aix4* | aix5*)
14121
# On AIX/PPC, the GNU linker is very broken
14122
if test "$host_cpu" != ia64; then
14126
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14127
*** to be unable to reliably create shared libraries on AIX.
14128
*** Therefore, libtool is disabling shared libraries support. If you
14129
*** really care for shared libraries, you may want to modify your PATH
14130
*** so that a non-GNU linker is found, and then restart.
14137
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)'
14138
hardcode_libdir_flag_spec_F77='-L$libdir'
14139
hardcode_minus_L_F77=yes
14141
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14142
# that the semantics of dynamic libraries on AmigaOS, at least up
14143
# to version 4, is to share data among multiple programs linked
14144
# with the same dynamic library. Since this doesn't match the
14145
# behavior of shared libraries on other platforms, we can't use
14151
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14152
allow_undefined_flag_F77=unsupported
14153
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14154
# support --undefined. This deserves some investigation. FIXME
14155
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14161
cygwin* | mingw* | pw32*)
14162
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14163
# as there is no search path for DLLs.
14164
hardcode_libdir_flag_spec_F77='-L$libdir'
14165
allow_undefined_flag_F77=unsupported
14166
always_export_symbols_F77=no
14167
enable_shared_with_static_runtimes_F77=yes
14168
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14170
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14171
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14172
# If the export-symbols file already is a .def file (1st line
14173
# is EXPORTS), use it as is; otherwise, prepend...
14174
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14175
cp $export_symbols $output_objdir/$soname.def;
14177
echo EXPORTS > $output_objdir/$soname.def;
14178
cat $export_symbols >> $output_objdir/$soname.def;
14180
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14187
hardcode_direct_F77=no
14188
hardcode_shlibpath_var_F77=no
14189
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14190
export_dynamic_flag_spec_F77='${wl}-E'
14191
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14192
# Instead, shared libraries are loaded at an image base (0x10000000 by
14193
# default) and relocated if they conflict, which is a slow very memory
14194
# consuming and fragmenting process. To avoid this, we pick a random,
14195
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14196
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14197
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14198
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14201
linux* | k*bsd*-gnu)
14202
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14204
case $cc_basename,$host_cpu in
14205
pgcc*) # Portland Group C compiler
14206
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14207
tmp_addflag=' $pic_flag'
14209
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14210
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14211
tmp_addflag=' $pic_flag -Mnomain' ;;
14212
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14213
tmp_addflag=' -i_dynamic' ;;
14214
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14215
tmp_addflag=' -i_dynamic -nofor_main' ;;
14216
ifc* | ifort*) # Intel Fortran compiler
14217
tmp_addflag=' -nofor_main' ;;
14219
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14221
if test $supports_anon_versioning = yes; then
14222
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14223
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14224
$echo "local: *; };" >> $output_objdir/$libname.ver~
14225
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14227
link_all_deplibs_F77=no
14233
netbsd* | netbsdelf*-gnu)
14234
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14235
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14238
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14239
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14244
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14248
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14249
*** create shared libraries on Solaris systems. Therefore, libtool
14250
*** is disabling shared libraries support. We urge you to upgrade GNU
14251
*** binutils to release 2.9.1 or newer. Another option is to modify
14252
*** your PATH or compiler configuration so that the native linker is
14253
*** used, and then restart.
14256
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14257
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14264
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14265
case `$LD -v 2>&1` in
14266
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14270
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14271
*** reliably create shared libraries on SCO systems. Therefore, libtool
14272
*** is disabling shared libraries support. We urge you to upgrade GNU
14273
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14274
*** your PATH or compiler configuration so that the native linker is
14275
*** used, and then restart.
14280
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14281
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14282
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14283
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14292
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14294
hardcode_direct_F77=yes
14295
hardcode_shlibpath_var_F77=no
14299
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14308
if test "$ld_shlibs_F77" = no; then
14310
hardcode_libdir_flag_spec_F77=
14311
export_dynamic_flag_spec_F77=
14312
whole_archive_flag_spec_F77=
14315
# PORTME fill in a description of your system's linker (not GNU ld)
14318
allow_undefined_flag_F77=unsupported
14319
always_export_symbols_F77=yes
14320
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'
14321
# Note: this linker hardcodes the directories in LIBPATH if there
14322
# are no directories specified by -L.
14323
hardcode_minus_L_F77=yes
14324
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14325
# Neither direct hardcoding nor static linking is supported with a
14327
hardcode_direct_F77=unsupported
14332
if test "$host_cpu" = ia64; then
14333
# On IA64, the linker does run time linking by default, so we don't
14334
# have to do anything special.
14335
aix_use_runtimelinking=no
14336
exp_sym_flag='-Bexport'
14339
# If we're using GNU nm, then we don't want the "-C" option.
14340
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14341
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14342
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'
14344
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'
14346
aix_use_runtimelinking=no
14348
# Test if we are trying to use run time linking or normal
14349
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14350
# need to do runtime linking.
14351
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14352
for ld_flag in $LDFLAGS; do
14353
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14354
aix_use_runtimelinking=yes
14361
exp_sym_flag='-bexport'
14362
no_entry_flag='-bnoentry'
14365
# When large executables or shared objects are built, AIX ld can
14366
# have problems creating the table of contents. If linking a library
14367
# or program results in "error TOC overflow" add -mminimal-toc to
14368
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14369
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14371
archive_cmds_F77=''
14372
hardcode_direct_F77=yes
14373
hardcode_libdir_separator_F77=':'
14374
link_all_deplibs_F77=yes
14376
if test "$GCC" = yes; then
14377
case $host_os in aix4.[012]|aix4.[012].*)
14378
# We only want to do this on AIX 4.2 and lower, the check
14379
# below for broken collect2 doesn't work under 4.3+
14380
collect2name=`${CC} -print-prog-name=collect2`
14381
if test -f "$collect2name" && \
14382
strings "$collect2name" | grep resolve_lib_name >/dev/null
14384
# We have reworked collect2
14385
hardcode_direct_F77=yes
14387
# We have old collect2
14388
hardcode_direct_F77=unsupported
14389
# It fails to find uninstalled libraries when the uninstalled
14390
# path is not listed in the libpath. Setting hardcode_minus_L
14391
# to unsupported forces relinking
14392
hardcode_minus_L_F77=yes
14393
hardcode_libdir_flag_spec_F77='-L$libdir'
14394
hardcode_libdir_separator_F77=
14398
shared_flag='-shared'
14399
if test "$aix_use_runtimelinking" = yes; then
14400
shared_flag="$shared_flag "'${wl}-G'
14404
if test "$host_cpu" = ia64; then
14405
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14406
# chokes on -Wl,-G. The following line is correct:
14409
if test "$aix_use_runtimelinking" = yes; then
14410
shared_flag='${wl}-G'
14412
shared_flag='${wl}-bM:SRE'
14417
# It seems that -bexpall does not export symbols beginning with
14418
# underscore (_), so it is better to generate a list of symbols to export.
14419
always_export_symbols_F77=yes
14420
if test "$aix_use_runtimelinking" = yes; then
14421
# Warning - without using the other runtime loading flags (-brtl),
14422
# -berok will link without error, but may produce a broken library.
14423
allow_undefined_flag_F77='-berok'
14424
# Determine the default libpath from the value encoded in an empty executable.
14425
cat >conftest.$ac_ext <<_ACEOF
14430
rm -f conftest.$ac_objext conftest$ac_exeext
14431
if { (ac_try="$ac_link"
14432
case "(($ac_try" in
14433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434
*) ac_try_echo=$ac_try;;
14436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437
(eval "$ac_link") 2>conftest.er1
14439
grep -v '^ *+' conftest.er1 >conftest.err
14441
cat conftest.err >&5
14442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443
(exit $ac_status); } && {
14444
test -z "$ac_f77_werror_flag" ||
14445
test ! -s conftest.err
14446
} && test -s conftest$ac_exeext &&
14447
$as_test_x conftest$ac_exeext; then
14449
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14451
# Check for a 64-bit object if we didn't find anything.
14452
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; }
14455
echo "$as_me: failed program was:" >&5
14456
sed 's/^/| /' conftest.$ac_ext >&5
14461
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14462
conftest$ac_exeext conftest.$ac_ext
14463
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14465
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14466
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14468
if test "$host_cpu" = ia64; then
14469
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14470
allow_undefined_flag_F77="-z nodefs"
14471
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14473
# Determine the default libpath from the value encoded in an empty executable.
14474
cat >conftest.$ac_ext <<_ACEOF
14479
rm -f conftest.$ac_objext conftest$ac_exeext
14480
if { (ac_try="$ac_link"
14481
case "(($ac_try" in
14482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483
*) ac_try_echo=$ac_try;;
14485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486
(eval "$ac_link") 2>conftest.er1
14488
grep -v '^ *+' conftest.er1 >conftest.err
14490
cat conftest.err >&5
14491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492
(exit $ac_status); } && {
14493
test -z "$ac_f77_werror_flag" ||
14494
test ! -s conftest.err
14495
} && test -s conftest$ac_exeext &&
14496
$as_test_x conftest$ac_exeext; then
14498
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14500
# Check for a 64-bit object if we didn't find anything.
14501
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; }
14504
echo "$as_me: failed program was:" >&5
14505
sed 's/^/| /' conftest.$ac_ext >&5
14510
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14511
conftest$ac_exeext conftest.$ac_ext
14512
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14514
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14515
# Warning - without using the other run time loading flags,
14516
# -berok will link without error, but may produce a broken library.
14517
no_undefined_flag_F77=' ${wl}-bernotok'
14518
allow_undefined_flag_F77=' ${wl}-berok'
14519
# Exported symbols can be pulled into shared objects from archives
14520
whole_archive_flag_spec_F77='$convenience'
14521
archive_cmds_need_lc_F77=yes
14522
# This is similar to how AIX traditionally builds its shared libraries.
14523
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14529
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)'
14530
hardcode_libdir_flag_spec_F77='-L$libdir'
14531
hardcode_minus_L_F77=yes
14532
# see comment about different semantics on the GNU ld section
14537
export_dynamic_flag_spec_F77=-rdynamic
14540
cygwin* | mingw* | pw32*)
14541
# When not using gcc, we currently assume that we are using
14542
# Microsoft Visual C++.
14543
# hardcode_libdir_flag_spec is actually meaningless, as there is
14544
# no search path for DLLs.
14545
hardcode_libdir_flag_spec_F77=' '
14546
allow_undefined_flag_F77=unsupported
14547
# Tell ltmain to make .lib files, not .a files.
14549
# Tell ltmain to make .dll files, not .so files.
14551
# FIXME: Setting linknames here is a bad hack.
14552
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14553
# The linker will automatically build a .lib file if we build a DLL.
14554
old_archive_From_new_cmds_F77='true'
14555
# FIXME: Should let the user specify the lib program.
14556
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14557
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14558
enable_shared_with_static_runtimes_F77=yes
14561
darwin* | rhapsody*)
14563
rhapsody* | darwin1.[012])
14564
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14567
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14568
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14570
case ${MACOSX_DEPLOYMENT_TARGET} in
14572
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14575
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14581
archive_cmds_need_lc_F77=no
14582
hardcode_direct_F77=no
14583
hardcode_automatic_F77=yes
14584
hardcode_shlibpath_var_F77=unsupported
14585
whole_archive_flag_spec_F77=''
14586
link_all_deplibs_F77=yes
14587
if test "$GCC" = yes ; then
14588
output_verbose_link_cmd='echo'
14589
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14590
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14591
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14592
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14593
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}'
14595
case $cc_basename in
14597
output_verbose_link_cmd='echo'
14598
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14599
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14600
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14601
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14602
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}'
14612
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14613
hardcode_libdir_flag_spec_F77='-L$libdir'
14614
hardcode_shlibpath_var_F77=no
14621
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14622
# support. Future versions do this automatically, but an explicit c++rt0.o
14623
# does not break anything, and helps significantly (at the cost of a little
14626
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14627
hardcode_libdir_flag_spec_F77='-R$libdir'
14628
hardcode_direct_F77=yes
14629
hardcode_shlibpath_var_F77=no
14632
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14634
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14635
hardcode_direct_F77=yes
14636
hardcode_minus_L_F77=yes
14637
hardcode_shlibpath_var_F77=no
14640
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14641
freebsd* | dragonfly*)
14642
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14643
hardcode_libdir_flag_spec_F77='-R$libdir'
14644
hardcode_direct_F77=yes
14645
hardcode_shlibpath_var_F77=no
14649
if test "$GCC" = yes; then
14650
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'
14652
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'
14654
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14655
hardcode_libdir_separator_F77=:
14656
hardcode_direct_F77=yes
14658
# hardcode_minus_L: Not really in the search PATH,
14659
# but as the default location of the library.
14660
hardcode_minus_L_F77=yes
14661
export_dynamic_flag_spec_F77='${wl}-E'
14665
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14666
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14668
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14670
if test "$with_gnu_ld" = no; then
14671
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14672
hardcode_libdir_separator_F77=:
14674
hardcode_direct_F77=yes
14675
export_dynamic_flag_spec_F77='${wl}-E'
14677
# hardcode_minus_L: Not really in the search PATH,
14678
# but as the default location of the library.
14679
hardcode_minus_L_F77=yes
14684
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14687
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14690
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14693
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14699
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14702
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14705
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14709
if test "$with_gnu_ld" = no; then
14710
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14711
hardcode_libdir_separator_F77=:
14715
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14716
hardcode_direct_F77=no
14717
hardcode_shlibpath_var_F77=no
14720
hardcode_direct_F77=yes
14721
export_dynamic_flag_spec_F77='${wl}-E'
14723
# hardcode_minus_L: Not really in the search PATH,
14724
# but as the default location of the library.
14725
hardcode_minus_L_F77=yes
14731
irix5* | irix6* | nonstopux*)
14732
if test "$GCC" = yes; then
14733
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'
14735
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'
14736
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14738
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14739
hardcode_libdir_separator_F77=:
14740
link_all_deplibs_F77=yes
14743
netbsd* | netbsdelf*-gnu)
14744
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14745
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14747
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14749
hardcode_libdir_flag_spec_F77='-R$libdir'
14750
hardcode_direct_F77=yes
14751
hardcode_shlibpath_var_F77=no
14755
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756
hardcode_direct_F77=yes
14757
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14758
hardcode_libdir_separator_F77=:
14759
hardcode_shlibpath_var_F77=no
14763
hardcode_direct_F77=yes
14764
hardcode_shlibpath_var_F77=no
14765
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14766
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14767
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14768
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14769
export_dynamic_flag_spec_F77='${wl}-E'
14772
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14773
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14774
hardcode_libdir_flag_spec_F77='-R$libdir'
14777
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14778
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14785
hardcode_libdir_flag_spec_F77='-L$libdir'
14786
hardcode_minus_L_F77=yes
14787
allow_undefined_flag_F77=unsupported
14788
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'
14789
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14793
if test "$GCC" = yes; then
14794
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14795
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'
14797
allow_undefined_flag_F77=' -expect_unresolved \*'
14798
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'
14800
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14801
hardcode_libdir_separator_F77=:
14804
osf4* | osf5*) # as osf3* with the addition of -msym flag
14805
if test "$GCC" = yes; then
14806
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14807
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'
14808
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14810
allow_undefined_flag_F77=' -expect_unresolved \*'
14811
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'
14812
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~
14813
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14815
# Both c and cxx compiler support -rpath directly
14816
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14818
hardcode_libdir_separator_F77=:
14822
no_undefined_flag_F77=' -z text'
14823
if test "$GCC" = yes; then
14825
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14826
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14827
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14830
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14832
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14834
hardcode_libdir_flag_spec_F77='-R$libdir'
14835
hardcode_shlibpath_var_F77=no
14837
solaris2.[0-5] | solaris2.[0-5].*) ;;
14839
# The compiler driver will combine linker options so we
14840
# cannot just pass the convience library names through
14841
# without $wl, iff we do not link with $LD.
14842
# Luckily, gcc supports the same syntax we need for Sun Studio.
14843
# Supported since Solaris 2.6 (maybe 2.5.1?)
14846
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14848
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14851
link_all_deplibs_F77=yes
14855
if test "x$host_vendor" = xsequent; then
14856
# Use $CC to link under sequent, because it throws in some extra .o
14857
# files that make .init and .fini sections work.
14858
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14860
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14862
hardcode_libdir_flag_spec_F77='-L$libdir'
14863
hardcode_direct_F77=yes
14864
hardcode_minus_L_F77=yes
14865
hardcode_shlibpath_var_F77=no
14869
case $host_vendor in
14871
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872
hardcode_direct_F77=yes # is this really true???
14875
## LD is ld it makes a PLAMLIB
14876
## CC just makes a GrossModule.
14877
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14878
reload_cmds_F77='$CC -r -o $output$reload_objs'
14879
hardcode_direct_F77=no
14882
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14886
runpath_var='LD_RUN_PATH'
14887
hardcode_shlibpath_var_F77=no
14891
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892
hardcode_shlibpath_var_F77=no
14893
export_dynamic_flag_spec_F77='-Bexport'
14897
if test -d /usr/nec; then
14898
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899
hardcode_shlibpath_var_F77=no
14900
runpath_var=LD_RUN_PATH
14901
hardcode_runpath_var=yes
14906
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14907
no_undefined_flag_F77='${wl}-z,text'
14908
archive_cmds_need_lc_F77=no
14909
hardcode_shlibpath_var_F77=no
14910
runpath_var='LD_RUN_PATH'
14912
if test "$GCC" = yes; then
14913
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14921
sysv5* | sco3.2v5* | sco5v6*)
14922
# Note: We can NOT use -z defs as we might desire, because we do not
14923
# link with -lc, and that would cause any symbols used from libc to
14924
# always be unresolved, which means just about no library would
14925
# ever link correctly. If we're not using GNU ld we use -z text
14926
# though, which does catch some bad symbols but isn't as heavy-handed
14928
no_undefined_flag_F77='${wl}-z,text'
14929
allow_undefined_flag_F77='${wl}-z,nodefs'
14930
archive_cmds_need_lc_F77=no
14931
hardcode_shlibpath_var_F77=no
14932
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14933
hardcode_libdir_separator_F77=':'
14934
link_all_deplibs_F77=yes
14935
export_dynamic_flag_spec_F77='${wl}-Bexport'
14936
runpath_var='LD_RUN_PATH'
14938
if test "$GCC" = yes; then
14939
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949
hardcode_libdir_flag_spec_F77='-L$libdir'
14950
hardcode_shlibpath_var_F77=no
14959
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14960
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14961
test "$ld_shlibs_F77" = no && can_build_shared=no
14964
# Do we need to explicitly link libc?
14966
case "x$archive_cmds_need_lc_F77" in
14968
# Assume -lc should be added
14969
archive_cmds_need_lc_F77=yes
14971
if test "$enable_shared" = yes && test "$GCC" = yes; then
14972
case $archive_cmds_F77 in
14974
# FIXME: we may have to deal with multi-command sequences.
14977
# Test whether the compiler implicitly links with -lc since on some
14978
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14979
# to ld, don't add -lc before -lgcc.
14980
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14981
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14983
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986
(eval $ac_compile) 2>&5
14988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989
(exit $ac_status); } 2>conftest.err; then
14992
libobjs=conftest.$ac_objext
14994
wl=$lt_prog_compiler_wl_F77
14995
pic_flag=$lt_prog_compiler_pic_F77
15001
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15002
allow_undefined_flag_F77=
15003
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15004
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007
(exit $ac_status); }
15009
archive_cmds_need_lc_F77=no
15011
archive_cmds_need_lc_F77=yes
15013
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15015
cat conftest.err 1>&5
15018
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15019
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15026
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15027
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15028
library_names_spec=
15029
libname_spec='lib$name'
15033
postuninstall_cmds=
15037
shlibpath_overrides_runpath=unknown
15039
dynamic_linker="$host_os ld.so"
15040
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15041
if test "$GCC" = yes; then
15042
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15043
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15044
# if the path contains ";" then we assume it to be the separator
15045
# otherwise default to the standard path separator (i.e. ":") - it is
15046
# assumed that no part of a normal pathname contains ";" but that should
15047
# okay in the real world where ";" in dirpaths is itself problematic.
15048
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15050
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15053
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15055
need_lib_prefix=unknown
15056
hardcode_into_libs=no
15058
# when you set need_version to no, make sure it does not cause -set_version
15059
# flags to be left without arguments
15060
need_version=unknown
15065
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15066
shlibpath_var=LIBPATH
15068
# AIX 3 has no versioning support, so we append a major version to the name.
15069
soname_spec='${libname}${release}${shared_ext}$major'
15076
hardcode_into_libs=yes
15077
if test "$host_cpu" = ia64; then
15078
# AIX 5 supports IA64
15079
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15080
shlibpath_var=LD_LIBRARY_PATH
15082
# With GCC up to 2.95.x, collect2 would create an import file
15083
# for dependence libraries. The import file would start with
15084
# the line `#! .'. This would cause the generated library to
15085
# depend on `.', always an invalid library. This was fixed in
15086
# development snapshots of GCC prior to 3.0.
15088
aix4 | aix4.[01] | aix4.[01].*)
15089
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15091
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15094
can_build_shared=no
15098
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15099
# soname into executable. Probably we can add versioning support to
15100
# collect2, so additional links can be useful in future.
15101
if test "$aix_use_runtimelinking" = yes; then
15102
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15103
# instead of lib<name>.a to let people know that these are not
15104
# typical AIX shared libraries.
15105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107
# We preserve .a as extension for shared libraries through AIX4.2
15108
# and later when we are not doing run time linking.
15109
library_names_spec='${libname}${release}.a $libname.a'
15110
soname_spec='${libname}${release}${shared_ext}$major'
15112
shlibpath_var=LIBPATH
15117
library_names_spec='$libname.ixlibrary $libname.a'
15118
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15119
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'
15123
library_names_spec='${libname}${shared_ext}'
15124
dynamic_linker="$host_os ld.so"
15125
shlibpath_var=LIBRARY_PATH
15131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132
soname_spec='${libname}${release}${shared_ext}$major'
15133
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15134
shlibpath_var=LD_LIBRARY_PATH
15135
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15136
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15137
# the default ld.so.conf also contains /usr/contrib/lib and
15138
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15139
# libtool to hard-code these into programs
15142
cygwin* | mingw* | pw32*)
15143
version_type=windows
15148
case $GCC,$host_os in
15149
yes,cygwin* | yes,mingw* | yes,pw32*)
15150
library_names_spec='$libname.dll.a'
15151
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15152
postinstall_cmds='base_file=`basename \${file}`~
15153
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15154
dldir=$destdir/`dirname \$dlpath`~
15155
test -d \$dldir || mkdir -p \$dldir~
15156
$install_prog $dir/$dlname \$dldir/$dlname~
15157
chmod a+x \$dldir/$dlname'
15158
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15159
dlpath=$dir/\$dldll~
15161
shlibpath_overrides_runpath=yes
15165
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15166
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15167
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15170
# MinGW DLLs use traditional 'lib' prefix
15171
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15172
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15173
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15174
# It is most probably a Windows format PATH printed by
15175
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15176
# path with ; separators, and with drive letters. We can handle the
15177
# drive letters (cygwin fileutils understands them), so leave them,
15178
# especially as we might pass files found there to a mingw objdump,
15179
# which wouldn't understand a cygwinified path. Ahh.
15180
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15182
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15186
# pw32 DLLs use 'pw' prefix rather than 'lib'
15187
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15193
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15196
dynamic_linker='Win32 ld.exe'
15197
# FIXME: first we should search . and the directory the executable is in
15201
darwin* | rhapsody*)
15202
dynamic_linker="$host_os dyld"
15203
version_type=darwin
15206
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15207
soname_spec='${libname}${release}${major}$shared_ext'
15208
shlibpath_overrides_runpath=yes
15209
shlibpath_var=DYLD_LIBRARY_PATH
15210
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15211
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15212
if test "$GCC" = yes; then
15213
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"`
15215
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15217
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15225
soname_spec='${libname}${release}${shared_ext}$major'
15226
shlibpath_var=LD_LIBRARY_PATH
15233
freebsd* | dragonfly*)
15234
# DragonFly does not have aout. When/if they implement a new
15235
# versioning mechanism, adjust this.
15236
if test -x /usr/bin/objformat; then
15237
objformat=`/usr/bin/objformat`
15240
freebsd[123]*) objformat=aout ;;
15241
*) objformat=elf ;;
15244
version_type=freebsd-$objformat
15245
case $version_type in
15247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15252
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15256
shlibpath_var=LD_LIBRARY_PATH
15259
shlibpath_overrides_runpath=yes
15261
freebsd3.[01]* | freebsdelf3.[01]*)
15262
shlibpath_overrides_runpath=yes
15263
hardcode_into_libs=yes
15265
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15266
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15267
shlibpath_overrides_runpath=no
15268
hardcode_into_libs=yes
15270
freebsd*) # from 4.6 on
15271
shlibpath_overrides_runpath=yes
15272
hardcode_into_libs=yes
15281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15282
soname_spec='${libname}${release}${shared_ext}$major'
15283
shlibpath_var=LD_LIBRARY_PATH
15284
hardcode_into_libs=yes
15287
hpux9* | hpux10* | hpux11*)
15288
# Give a soname corresponding to the major version so that dld.sl refuses to
15289
# link against other versions.
15296
hardcode_into_libs=yes
15297
dynamic_linker="$host_os dld.so"
15298
shlibpath_var=LD_LIBRARY_PATH
15299
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301
soname_spec='${libname}${release}${shared_ext}$major'
15302
if test "X$HPUX_IA64_MODE" = X32; then
15303
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15305
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15307
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15311
hardcode_into_libs=yes
15312
dynamic_linker="$host_os dld.sl"
15313
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15314
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316
soname_spec='${libname}${release}${shared_ext}$major'
15317
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15318
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15322
dynamic_linker="$host_os dld.sl"
15323
shlibpath_var=SHLIB_PATH
15324
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326
soname_spec='${libname}${release}${shared_ext}$major'
15329
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15330
postinstall_cmds='chmod 555 $lib'
15337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15338
soname_spec='${libname}${release}${shared_ext}$major'
15339
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15340
shlibpath_var=LD_LIBRARY_PATH
15341
shlibpath_overrides_runpath=no
15342
hardcode_into_libs=yes
15345
irix5* | irix6* | nonstopux*)
15347
nonstopux*) version_type=nonstopux ;;
15349
if test "$lt_cv_prog_gnu_ld" = yes; then
15357
soname_spec='${libname}${release}${shared_ext}$major'
15358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15360
irix5* | nonstopux*)
15361
libsuff= shlibsuff=
15364
case $LD in # libtool.m4 will add one of these switches to LD
15365
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15366
libsuff= shlibsuff= libmagic=32-bit;;
15367
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15368
libsuff=32 shlibsuff=N32 libmagic=N32;;
15369
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15370
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15371
*) libsuff= shlibsuff= libmagic=never-match;;
15375
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15376
shlibpath_overrides_runpath=no
15377
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15378
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15379
hardcode_into_libs=yes
15382
# No shared lib support for Linux oldld, aout, or coff.
15383
linux*oldld* | linux*aout* | linux*coff*)
15387
# This must be Linux ELF.
15388
linux* | k*bsd*-gnu)
15392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393
soname_spec='${libname}${release}${shared_ext}$major'
15394
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15395
shlibpath_var=LD_LIBRARY_PATH
15396
shlibpath_overrides_runpath=no
15397
# This implies no fast_install, which is unacceptable.
15398
# Some rework will be needed to allow for fast_install
15399
# before this can be enabled.
15400
hardcode_into_libs=yes
15402
# Append ld.so.conf contents to the search path
15403
if test -f /etc/ld.so.conf; then
15404
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15405
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15408
# We used to test for /lib/ld.so.1 and disable shared libraries on
15409
# powerpc, because MkLinux only supported shared libraries with the
15410
# GNU dynamic linker. Since this was broken with cross compilers,
15411
# most powerpc-linux boxes support dynamic linking these days and
15412
# people can always --disable-shared, the test was removed, and we
15413
# assume the GNU/Linux dynamic linker is in use.
15414
dynamic_linker='GNU/Linux ld.so'
15421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15422
soname_spec='${libname}${release}${shared_ext}$major'
15423
shlibpath_var=LD_LIBRARY_PATH
15424
shlibpath_overrides_runpath=no
15425
hardcode_into_libs=yes
15426
dynamic_linker='NetBSD ld.elf_so'
15433
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15434
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15435
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15436
dynamic_linker='NetBSD (a.out) ld.so'
15438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15439
soname_spec='${libname}${release}${shared_ext}$major'
15440
dynamic_linker='NetBSD ld.elf_so'
15442
shlibpath_var=LD_LIBRARY_PATH
15443
shlibpath_overrides_runpath=yes
15444
hardcode_into_libs=yes
15449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450
shlibpath_var=LD_LIBRARY_PATH
15451
shlibpath_overrides_runpath=yes
15458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459
soname_spec='${libname}${release}${shared_ext}$major'
15460
shlibpath_var=LD_LIBRARY_PATH
15461
shlibpath_overrides_runpath=yes
15466
sys_lib_dlsearch_path_spec="/usr/lib"
15468
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15470
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15471
*) need_version=no ;;
15473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15474
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15475
shlibpath_var=LD_LIBRARY_PATH
15476
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478
openbsd2.[89] | openbsd2.[89].*)
15479
shlibpath_overrides_runpath=no
15482
shlibpath_overrides_runpath=yes
15486
shlibpath_overrides_runpath=yes
15491
libname_spec='$name'
15494
library_names_spec='$libname${shared_ext} $libname.a'
15495
dynamic_linker='OS/2 ld.exe'
15496
shlibpath_var=LIBPATH
15499
osf3* | osf4* | osf5*)
15503
soname_spec='${libname}${release}${shared_ext}$major'
15504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505
shlibpath_var=LD_LIBRARY_PATH
15506
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15507
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515
soname_spec='${libname}${release}${shared_ext}$major'
15516
shlibpath_var=LD_LIBRARY_PATH
15517
shlibpath_overrides_runpath=yes
15518
hardcode_into_libs=yes
15519
# ldd complains unless libraries are executable
15520
postinstall_cmds='chmod +x $lib'
15525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15526
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15527
shlibpath_var=LD_LIBRARY_PATH
15528
shlibpath_overrides_runpath=yes
15529
if test "$with_gnu_ld" = yes; then
15537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538
soname_spec='${libname}${release}${shared_ext}$major'
15539
shlibpath_var=LD_LIBRARY_PATH
15540
case $host_vendor in
15542
shlibpath_overrides_runpath=no
15544
export_dynamic_flag_spec='${wl}-Blargedynsym'
15545
runpath_var=LD_RUN_PATH
15553
shlibpath_overrides_runpath=no
15554
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15560
if test -d /usr/nec ;then
15562
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15563
soname_spec='$libname${shared_ext}.$major'
15564
shlibpath_var=LD_LIBRARY_PATH
15568
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15569
version_type=freebsd-elf
15572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15573
soname_spec='${libname}${release}${shared_ext}$major'
15574
shlibpath_var=LD_LIBRARY_PATH
15575
hardcode_into_libs=yes
15576
if test "$with_gnu_ld" = yes; then
15577
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15578
shlibpath_overrides_runpath=no
15580
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15581
shlibpath_overrides_runpath=yes
15584
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15588
sys_lib_dlsearch_path_spec='/usr/lib'
15593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594
soname_spec='${libname}${release}${shared_ext}$major'
15595
shlibpath_var=LD_LIBRARY_PATH
15602
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15603
echo "${ECHO_T}$dynamic_linker" >&6; }
15604
test "$dynamic_linker" = no && can_build_shared=no
15606
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15607
if test "$GCC" = yes; then
15608
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15611
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15612
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15613
hardcode_action_F77=
15614
if test -n "$hardcode_libdir_flag_spec_F77" || \
15615
test -n "$runpath_var_F77" || \
15616
test "X$hardcode_automatic_F77" = "Xyes" ; then
15618
# We can hardcode non-existant directories.
15619
if test "$hardcode_direct_F77" != no &&
15620
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15621
# have to relink, otherwise we might link with an installed library
15622
# when we should be linking with a yet-to-be-installed one
15623
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15624
test "$hardcode_minus_L_F77" != no; then
15625
# Linking always hardcodes the temporary library directory.
15626
hardcode_action_F77=relink
15628
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15629
hardcode_action_F77=immediate
15632
# We cannot hardcode anything, or else we can only hardcode existing
15634
hardcode_action_F77=unsupported
15636
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15637
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15639
if test "$hardcode_action_F77" = relink; then
15640
# Fast installation is not supported
15641
enable_fast_install=no
15642
elif test "$shlibpath_overrides_runpath" = yes ||
15643
test "$enable_shared" = no; then
15644
# Fast installation is not necessary
15645
enable_fast_install=needless
15649
# The else clause should only fire when bootstrapping the
15650
# libtool distribution, otherwise you forgot to ship ltmain.sh
15651
# with your package, and you will get complaints that there are
15652
# no rules to generate ltmain.sh.
15653
if test -f "$ltmain"; then
15654
# See if we are running on zsh, and set the options which allow our commands through
15655
# without removal of \ escapes.
15656
if test -n "${ZSH_VERSION+set}" ; then
15657
setopt NO_GLOB_SUBST
15659
# Now quote all the things that may contain metacharacters while being
15660
# careful not to overquote the AC_SUBSTed values. We take copies of the
15661
# variables and quote the copies for generation of the libtool script.
15662
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15664
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15665
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15666
deplibs_check_method reload_flag reload_cmds need_locks \
15667
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15668
lt_cv_sys_global_symbol_to_c_name_address \
15669
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15670
old_postinstall_cmds old_postuninstall_cmds \
15674
lt_prog_compiler_wl_F77 \
15675
lt_prog_compiler_pic_F77 \
15676
lt_prog_compiler_static_F77 \
15677
lt_prog_compiler_no_builtin_flag_F77 \
15678
export_dynamic_flag_spec_F77 \
15679
thread_safe_flag_spec_F77 \
15680
whole_archive_flag_spec_F77 \
15681
enable_shared_with_static_runtimes_F77 \
15682
old_archive_cmds_F77 \
15683
old_archive_from_new_cmds_F77 \
15684
predep_objects_F77 \
15685
postdep_objects_F77 \
15688
compiler_lib_search_path_F77 \
15690
archive_expsym_cmds_F77 \
15691
postinstall_cmds_F77 \
15692
postuninstall_cmds_F77 \
15693
old_archive_from_expsyms_cmds_F77 \
15694
allow_undefined_flag_F77 \
15695
no_undefined_flag_F77 \
15696
export_symbols_cmds_F77 \
15697
hardcode_libdir_flag_spec_F77 \
15698
hardcode_libdir_flag_spec_ld_F77 \
15699
hardcode_libdir_separator_F77 \
15700
hardcode_automatic_F77 \
15702
module_expsym_cmds_F77 \
15703
lt_cv_prog_compiler_c_o_F77 \
15704
exclude_expsyms_F77 \
15705
include_expsyms_F77; do
15708
old_archive_cmds_F77 | \
15709
old_archive_from_new_cmds_F77 | \
15710
archive_cmds_F77 | \
15711
archive_expsym_cmds_F77 | \
15712
module_cmds_F77 | \
15713
module_expsym_cmds_F77 | \
15714
old_archive_from_expsyms_cmds_F77 | \
15715
export_symbols_cmds_F77 | \
15716
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15717
postinstall_cmds | postuninstall_cmds | \
15718
old_postinstall_cmds | old_postuninstall_cmds | \
15719
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15720
# Double-quote double-evaled strings.
15721
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15724
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15730
*'\$0 --fallback-echo"')
15731
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15737
cat <<__EOF__ >> "$cfgfile"
15738
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15740
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15742
# Shell to use when invoking shell scripts.
15745
# Whether or not to build shared libraries.
15746
build_libtool_libs=$enable_shared
15748
# Whether or not to build static libraries.
15749
build_old_libs=$enable_static
15751
# Whether or not to add -lc for building shared libraries.
15752
build_libtool_need_lc=$archive_cmds_need_lc_F77
15754
# Whether or not to disallow shared libs when runtime libs are static
15755
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15757
# Whether or not to optimize for fast installation.
15758
fast_install=$enable_fast_install
15761
host_alias=$host_alias
15765
# The build system.
15766
build_alias=$build_alias
15770
# An echo program that does not interpret backslashes.
15775
AR_FLAGS=$lt_AR_FLAGS
15780
# LTCC compiler flags.
15781
LTCFLAGS=$lt_LTCFLAGS
15783
# A language-specific compiler.
15784
CC=$lt_compiler_F77
15786
# Is the compiler the GNU C compiler?
15792
# The linker used to build libraries.
15795
# Whether we need hard or soft links.
15798
# A BSD-compatible nm program.
15801
# A symbol stripping program
15804
# Used to examine libraries when file_magic_cmd begins "file"
15805
MAGIC_CMD=$MAGIC_CMD
15807
# Used on cygwin: DLL creation program.
15810
# Used on cygwin: object dumper.
15813
# Used on cygwin: assembler.
15816
# The name of the directory that contains temporary libtool files.
15819
# How to create reloadable object files.
15820
reload_flag=$lt_reload_flag
15821
reload_cmds=$lt_reload_cmds
15823
# How to pass a linker flag through the compiler.
15824
wl=$lt_lt_prog_compiler_wl_F77
15826
# Object file suffix (normally "o").
15827
objext="$ac_objext"
15829
# Old archive suffix (normally "a").
15832
# Shared library suffix (normally ".so").
15833
shrext_cmds='$shrext_cmds'
15835
# Executable file suffix (normally "").
15838
# Additional compiler flags for building library objects.
15839
pic_flag=$lt_lt_prog_compiler_pic_F77
15842
# What is the maximum length of a command?
15843
max_cmd_len=$lt_cv_sys_max_cmd_len
15845
# Does compiler simultaneously support -c and -o options?
15846
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15848
# Must we lock files when doing compilation?
15849
need_locks=$lt_need_locks
15851
# Do we need the lib prefix for modules?
15852
need_lib_prefix=$need_lib_prefix
15854
# Do we need a version for libraries?
15855
need_version=$need_version
15857
# Whether dlopen is supported.
15858
dlopen_support=$enable_dlopen
15860
# Whether dlopen of programs is supported.
15861
dlopen_self=$enable_dlopen_self
15863
# Whether dlopen of statically linked programs is supported.
15864
dlopen_self_static=$enable_dlopen_self_static
15866
# Compiler flag to prevent dynamic linking.
15867
link_static_flag=$lt_lt_prog_compiler_static_F77
15869
# Compiler flag to turn off builtin functions.
15870
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15872
# Compiler flag to allow reflexive dlopens.
15873
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15875
# Compiler flag to generate shared objects directly from archives.
15876
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15878
# Compiler flag to generate thread-safe objects.
15879
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15881
# Library versioning type.
15882
version_type=$version_type
15884
# Format of library name prefix.
15885
libname_spec=$lt_libname_spec
15887
# List of archive names. First name is the real one, the rest are links.
15888
# The last name is the one that the linker finds with -lNAME.
15889
library_names_spec=$lt_library_names_spec
15891
# The coded name of the library, if different from the real name.
15892
soname_spec=$lt_soname_spec
15894
# Commands used to build and install an old-style archive.
15896
old_archive_cmds=$lt_old_archive_cmds_F77
15897
old_postinstall_cmds=$lt_old_postinstall_cmds
15898
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15900
# Create an old-style archive from a shared archive.
15901
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15903
# Create a temporary old-style archive to link instead of a shared archive.
15904
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15906
# Commands used to build and install a shared archive.
15907
archive_cmds=$lt_archive_cmds_F77
15908
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15909
postinstall_cmds=$lt_postinstall_cmds
15910
postuninstall_cmds=$lt_postuninstall_cmds
15912
# Commands used to build a loadable module (assumed same as above if empty)
15913
module_cmds=$lt_module_cmds_F77
15914
module_expsym_cmds=$lt_module_expsym_cmds_F77
15916
# Commands to strip libraries.
15917
old_striplib=$lt_old_striplib
15918
striplib=$lt_striplib
15920
# Dependencies to place before the objects being linked to create a
15922
predep_objects=$lt_predep_objects_F77
15924
# Dependencies to place after the objects being linked to create a
15926
postdep_objects=$lt_postdep_objects_F77
15928
# Dependencies to place before the objects being linked to create a
15930
predeps=$lt_predeps_F77
15932
# Dependencies to place after the objects being linked to create a
15934
postdeps=$lt_postdeps_F77
15936
# The library search path used internally by the compiler when linking
15937
# a shared library.
15938
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15940
# Method to check whether dependent libraries are shared objects.
15941
deplibs_check_method=$lt_deplibs_check_method
15943
# Command to use when deplibs_check_method == file_magic.
15944
file_magic_cmd=$lt_file_magic_cmd
15946
# Flag that allows shared libraries with undefined symbols to be built.
15947
allow_undefined_flag=$lt_allow_undefined_flag_F77
15949
# Flag that forces no undefined symbols.
15950
no_undefined_flag=$lt_no_undefined_flag_F77
15952
# Commands used to finish a libtool library installation in a directory.
15953
finish_cmds=$lt_finish_cmds
15955
# Same as above, but a single script fragment to be evaled but not shown.
15956
finish_eval=$lt_finish_eval
15958
# Take the output of nm and produce a listing of raw symbols and C names.
15959
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15961
# Transform the output of nm in a proper C declaration
15962
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15964
# Transform the output of nm in a C name address pair
15965
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15967
# This is the shared library runtime path variable.
15968
runpath_var=$runpath_var
15970
# This is the shared library path variable.
15971
shlibpath_var=$shlibpath_var
15973
# Is shlibpath searched before the hard-coded library search path?
15974
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15976
# How to hardcode a shared library path into an executable.
15977
hardcode_action=$hardcode_action_F77
15979
# Whether we should hardcode library paths into libraries.
15980
hardcode_into_libs=$hardcode_into_libs
15982
# Flag to hardcode \$libdir into a binary during linking.
15983
# This must work even if \$libdir does not exist.
15984
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15986
# If ld is used when linking, flag to hardcode \$libdir into
15987
# a binary during linking. This must work even if \$libdir does
15989
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15991
# Whether we need a single -rpath flag with a separated argument.
15992
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15994
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15995
# resulting binary.
15996
hardcode_direct=$hardcode_direct_F77
15998
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15999
# resulting binary.
16000
hardcode_minus_L=$hardcode_minus_L_F77
16002
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16003
# the resulting binary.
16004
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16006
# Set to yes if building a shared library automatically hardcodes DIR into the library
16007
# and all subsequent libraries and executables linked against it.
16008
hardcode_automatic=$hardcode_automatic_F77
16010
# Variables whose values should be saved in libtool wrapper scripts and
16011
# restored at relink time.
16012
variables_saved_for_relink="$variables_saved_for_relink"
16014
# Whether libtool must link a program against all its dependency libraries.
16015
link_all_deplibs=$link_all_deplibs_F77
16017
# Compile-time system search path for libraries
16018
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16020
# Run-time system search path for libraries
16021
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16023
# Fix the shell variable \$srcfile for the compiler.
16024
fix_srcfile_path="$fix_srcfile_path_F77"
16026
# Set to yes if exported symbols are required.
16027
always_export_symbols=$always_export_symbols_F77
16029
# The commands to list exported symbols.
16030
export_symbols_cmds=$lt_export_symbols_cmds_F77
16032
# The commands to extract the exported symbol list from a shared archive.
16033
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16035
# Symbols that should not be listed in the preloaded symbols.
16036
exclude_expsyms=$lt_exclude_expsyms_F77
16038
# Symbols that must always be exported.
16039
include_expsyms=$lt_include_expsyms_F77
16041
# ### END LIBTOOL TAG CONFIG: $tagname
16047
# If there is no Makefile yet, we rely on a make rule to execute
16048
# `config.status --recheck' to rerun these tests and create the
16049
# libtool script then.
16050
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16051
if test -f "$ltmain_in"; then
16052
test -f Makefile && make "$ltmain"
16058
ac_cpp='$CPP $CPPFLAGS'
16059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16071
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16074
# Source file extension for Java test sources.
16077
# Object file extension for compiled Java test sources.
16081
# Code to be used in simple compile tests
16082
lt_simple_compile_test_code="class foo {}\n"
16084
# Code to be used in simple link tests
16085
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16087
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16089
# If no C compiler was specified, use CC.
16092
# If no C compiler flags were specified, use CFLAGS.
16093
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16095
# Allow CC to be a program name with arguments.
16099
# save warnings/boilerplate of simple test code
16100
ac_outfile=conftest.$ac_objext
16101
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16102
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16103
_lt_compiler_boilerplate=`cat conftest.err`
16106
ac_outfile=conftest.$ac_objext
16107
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16108
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16109
_lt_linker_boilerplate=`cat conftest.err`
16113
# Allow CC to be a program name with arguments.
16118
for cc_temp in $compiler""; do
16120
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16121
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16126
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16129
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16130
archive_cmds_need_lc_GCJ=no
16132
old_archive_cmds_GCJ=$old_archive_cmds
16135
lt_prog_compiler_no_builtin_flag_GCJ=
16137
if test "$GCC" = yes; then
16138
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16141
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16142
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16143
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16144
echo $ECHO_N "(cached) $ECHO_C" >&6
16146
lt_cv_prog_compiler_rtti_exceptions=no
16147
ac_outfile=conftest.$ac_objext
16148
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16149
lt_compiler_flag="-fno-rtti -fno-exceptions"
16150
# Insert the option either (1) after the last *FLAGS variable, or
16151
# (2) before a word containing "conftest.", or (3) at the end.
16152
# Note that $ac_compile itself does not contain backslashes and begins
16153
# with a dollar sign (not a hyphen), so the echo should work correctly.
16154
# The option is referenced via a variable to avoid confusing sed.
16155
lt_compile=`echo "$ac_compile" | $SED \
16156
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16157
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16158
-e 's:$: $lt_compiler_flag:'`
16159
(eval echo "\"\$as_me:16159: $lt_compile\"" >&5)
16160
(eval "$lt_compile" 2>conftest.err)
16162
cat conftest.err >&5
16163
echo "$as_me:16163: \$? = $ac_status" >&5
16164
if (exit $ac_status) && test -s "$ac_outfile"; then
16165
# The compiler can only warn and ignore the option if not recognized
16166
# So say no if there are warnings other than the usual output.
16167
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16168
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16169
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16170
lt_cv_prog_compiler_rtti_exceptions=yes
16176
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16177
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16179
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16180
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16187
lt_prog_compiler_wl_GCJ=
16188
lt_prog_compiler_pic_GCJ=
16189
lt_prog_compiler_static_GCJ=
16191
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16192
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16194
if test "$GCC" = yes; then
16195
lt_prog_compiler_wl_GCJ='-Wl,'
16196
lt_prog_compiler_static_GCJ='-static'
16200
# All AIX code is PIC.
16201
if test "$host_cpu" = ia64; then
16202
# AIX 5 now supports IA64 processor
16203
lt_prog_compiler_static_GCJ='-Bstatic'
16208
# FIXME: we need at least 68020 code to build shared libraries, but
16209
# adding the `-m68020' flag to GCC prevents building anything better,
16211
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16214
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16215
# PIC is the default for these OSes.
16218
mingw* | pw32* | os2*)
16219
# This hack is so that the source file can tell whether it is being
16220
# built for inclusion in a dll (and should export symbols for example).
16221
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16224
darwin* | rhapsody*)
16225
# PIC is the default on this platform
16226
# Common symbols not allowed in MH_DYLIB files
16227
lt_prog_compiler_pic_GCJ='-fno-common'
16231
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16232
# Instead, we relocate shared libraries at runtime.
16236
# Just because we use GCC doesn't mean we suddenly get shared libraries
16237
# on systems that don't support them.
16238
lt_prog_compiler_can_build_shared_GCJ=no
16243
if test -d /usr/nec; then
16244
lt_prog_compiler_pic_GCJ=-Kconform_pic
16249
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16250
# not for PA HP-UX.
16256
lt_prog_compiler_pic_GCJ='-fPIC'
16262
lt_prog_compiler_pic_GCJ='-fPIC'
16266
# PORTME Check for flag to pass linker flags through the system compiler.
16269
lt_prog_compiler_wl_GCJ='-Wl,'
16270
if test "$host_cpu" = ia64; then
16271
# AIX 5 now supports IA64 processor
16272
lt_prog_compiler_static_GCJ='-Bstatic'
16274
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16278
# PIC is the default on this platform
16279
# Common symbols not allowed in MH_DYLIB files
16280
case $cc_basename in
16282
lt_prog_compiler_pic_GCJ='-qnocommon'
16283
lt_prog_compiler_wl_GCJ='-Wl,'
16288
mingw* | pw32* | os2*)
16289
# This hack is so that the source file can tell whether it is being
16290
# built for inclusion in a dll (and should export symbols for example).
16291
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16294
hpux9* | hpux10* | hpux11*)
16295
lt_prog_compiler_wl_GCJ='-Wl,'
16296
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16297
# not for PA HP-UX.
16303
lt_prog_compiler_pic_GCJ='+Z'
16306
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16307
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16310
irix5* | irix6* | nonstopux*)
16311
lt_prog_compiler_wl_GCJ='-Wl,'
16312
# PIC (with -KPIC) is the default.
16313
lt_prog_compiler_static_GCJ='-non_shared'
16317
lt_prog_compiler_pic_GCJ='-KPIC'
16318
lt_prog_compiler_static_GCJ='-Bstatic'
16321
linux* | k*bsd*-gnu)
16322
case $cc_basename in
16324
lt_prog_compiler_wl_GCJ='-Wl,'
16325
lt_prog_compiler_pic_GCJ='-KPIC'
16326
lt_prog_compiler_static_GCJ='-static'
16328
pgcc* | pgf77* | pgf90* | pgf95*)
16329
# Portland Group compilers (*not* the Pentium gcc compiler,
16330
# which looks to be a dead project)
16331
lt_prog_compiler_wl_GCJ='-Wl,'
16332
lt_prog_compiler_pic_GCJ='-fpic'
16333
lt_prog_compiler_static_GCJ='-Bstatic'
16336
lt_prog_compiler_wl_GCJ='-Wl,'
16337
# All Alpha code is PIC.
16338
lt_prog_compiler_static_GCJ='-non_shared'
16343
osf3* | osf4* | osf5*)
16344
lt_prog_compiler_wl_GCJ='-Wl,'
16345
# All OSF/1 code is PIC.
16346
lt_prog_compiler_static_GCJ='-non_shared'
16350
lt_prog_compiler_pic_GCJ='-KPIC'
16351
lt_prog_compiler_static_GCJ='-Bstatic'
16352
case $cc_basename in
16353
f77* | f90* | f95*)
16354
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16356
lt_prog_compiler_wl_GCJ='-Wl,';;
16361
lt_prog_compiler_wl_GCJ='-Qoption ld '
16362
lt_prog_compiler_pic_GCJ='-PIC'
16363
lt_prog_compiler_static_GCJ='-Bstatic'
16366
sysv4 | sysv4.2uw2* | sysv4.3*)
16367
lt_prog_compiler_wl_GCJ='-Wl,'
16368
lt_prog_compiler_pic_GCJ='-KPIC'
16369
lt_prog_compiler_static_GCJ='-Bstatic'
16373
if test -d /usr/nec ;then
16374
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16375
lt_prog_compiler_static_GCJ='-Bstatic'
16379
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16380
lt_prog_compiler_wl_GCJ='-Wl,'
16381
lt_prog_compiler_pic_GCJ='-KPIC'
16382
lt_prog_compiler_static_GCJ='-Bstatic'
16386
lt_prog_compiler_wl_GCJ='-Wl,'
16387
lt_prog_compiler_can_build_shared_GCJ=no
16391
lt_prog_compiler_pic_GCJ='-pic'
16392
lt_prog_compiler_static_GCJ='-Bstatic'
16396
lt_prog_compiler_can_build_shared_GCJ=no
16401
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16402
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16405
# Check to make sure the PIC flag actually works.
16407
if test -n "$lt_prog_compiler_pic_GCJ"; then
16409
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16410
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16411
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16412
echo $ECHO_N "(cached) $ECHO_C" >&6
16414
lt_prog_compiler_pic_works_GCJ=no
16415
ac_outfile=conftest.$ac_objext
16416
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16417
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16418
# Insert the option either (1) after the last *FLAGS variable, or
16419
# (2) before a word containing "conftest.", or (3) at the end.
16420
# Note that $ac_compile itself does not contain backslashes and begins
16421
# with a dollar sign (not a hyphen), so the echo should work correctly.
16422
# The option is referenced via a variable to avoid confusing sed.
16423
lt_compile=`echo "$ac_compile" | $SED \
16424
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16425
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426
-e 's:$: $lt_compiler_flag:'`
16427
(eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
16428
(eval "$lt_compile" 2>conftest.err)
16430
cat conftest.err >&5
16431
echo "$as_me:16431: \$? = $ac_status" >&5
16432
if (exit $ac_status) && test -s "$ac_outfile"; then
16433
# The compiler can only warn and ignore the option if not recognized
16434
# So say no if there are warnings other than the usual output.
16435
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16436
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16437
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16438
lt_prog_compiler_pic_works_GCJ=yes
16444
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16445
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16447
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16448
case $lt_prog_compiler_pic_GCJ in
16450
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16453
lt_prog_compiler_pic_GCJ=
16454
lt_prog_compiler_can_build_shared_GCJ=no
16459
# For platforms which do not support PIC, -DPIC is meaningless:
16461
lt_prog_compiler_pic_GCJ=
16464
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16469
# Check to make sure the static flag actually works.
16471
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16472
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16473
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16474
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16475
echo $ECHO_N "(cached) $ECHO_C" >&6
16477
lt_prog_compiler_static_works_GCJ=no
16478
save_LDFLAGS="$LDFLAGS"
16479
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16480
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16481
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16482
# The linker can only warn and ignore the option if not recognized
16483
# So say no if there are warnings
16484
if test -s conftest.err; then
16485
# Append any errors to the config.log.
16486
cat conftest.err 1>&5
16487
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16488
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16489
if diff conftest.exp conftest.er2 >/dev/null; then
16490
lt_prog_compiler_static_works_GCJ=yes
16493
lt_prog_compiler_static_works_GCJ=yes
16497
LDFLAGS="$save_LDFLAGS"
16500
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16501
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16503
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16506
lt_prog_compiler_static_GCJ=
16510
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16511
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16512
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16513
echo $ECHO_N "(cached) $ECHO_C" >&6
16515
lt_cv_prog_compiler_c_o_GCJ=no
16516
$rm -r conftest 2>/dev/null
16520
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16522
lt_compiler_flag="-o out/conftest2.$ac_objext"
16523
# Insert the option either (1) after the last *FLAGS variable, or
16524
# (2) before a word containing "conftest.", or (3) at the end.
16525
# Note that $ac_compile itself does not contain backslashes and begins
16526
# with a dollar sign (not a hyphen), so the echo should work correctly.
16527
lt_compile=`echo "$ac_compile" | $SED \
16528
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16529
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16530
-e 's:$: $lt_compiler_flag:'`
16531
(eval echo "\"\$as_me:16531: $lt_compile\"" >&5)
16532
(eval "$lt_compile" 2>out/conftest.err)
16534
cat out/conftest.err >&5
16535
echo "$as_me:16535: \$? = $ac_status" >&5
16536
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16538
# The compiler can only warn and ignore the option if not recognized
16539
# So say no if there are warnings
16540
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16541
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16542
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16543
lt_cv_prog_compiler_c_o_GCJ=yes
16548
# SGI C++ compiler will create directory out/ii_files/ for
16549
# template instantiation
16550
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16551
$rm out/* && rmdir out
16557
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16558
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16561
hard_links="nottested"
16562
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16563
# do not overwrite the value of need_locks provided by the user
16564
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16565
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16568
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16570
ln conftest.a conftest.b 2>&5 || hard_links=no
16571
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16572
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16573
echo "${ECHO_T}$hard_links" >&6; }
16574
if test "$hard_links" = no; then
16575
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16576
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16583
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16584
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16587
allow_undefined_flag_GCJ=
16588
enable_shared_with_static_runtimes_GCJ=no
16590
archive_expsym_cmds_GCJ=
16591
old_archive_From_new_cmds_GCJ=
16592
old_archive_from_expsyms_cmds_GCJ=
16593
export_dynamic_flag_spec_GCJ=
16594
whole_archive_flag_spec_GCJ=
16595
thread_safe_flag_spec_GCJ=
16596
hardcode_libdir_flag_spec_GCJ=
16597
hardcode_libdir_flag_spec_ld_GCJ=
16598
hardcode_libdir_separator_GCJ=
16599
hardcode_direct_GCJ=no
16600
hardcode_minus_L_GCJ=no
16601
hardcode_shlibpath_var_GCJ=unsupported
16602
link_all_deplibs_GCJ=unknown
16603
hardcode_automatic_GCJ=no
16605
module_expsym_cmds_GCJ=
16606
always_export_symbols_GCJ=no
16607
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16608
# include_expsyms should be a list of space-separated symbols to be *always*
16609
# included in the symbol list
16610
include_expsyms_GCJ=
16611
# exclude_expsyms can be an extended regexp of symbols to exclude
16612
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16613
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16614
# as well as any symbol that contains `d'.
16615
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16616
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16617
# platforms (ab)use it in PIC code, but their linkers get confused if
16618
# the symbol is explicitly referenced. Since portable code cannot
16619
# rely on this symbol name, it's probably fine to never include it in
16620
# preloaded symbol tables.
16621
extract_expsyms_cmds=
16622
# Just being paranoid about ensuring that cc_basename is set.
16623
for cc_temp in $compiler""; do
16625
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16626
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16631
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16634
cygwin* | mingw* | pw32*)
16635
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16636
# When not using gcc, we currently assume that we are using
16637
# Microsoft Visual C++.
16638
if test "$GCC" != yes; then
16643
# we just hope/assume this is gcc and not c89 (= MSVC++)
16652
if test "$with_gnu_ld" = yes; then
16653
# If archive_cmds runs LD, not CC, wlarc should be empty
16656
# Set some defaults for GNU ld with shared library support. These
16657
# are reset later if shared libraries are not supported. Putting them
16658
# here allows them to be overridden if necessary.
16659
runpath_var=LD_RUN_PATH
16660
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16661
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16662
# ancient GNU ld didn't support --whole-archive et. al.
16663
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16664
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16666
whole_archive_flag_spec_GCJ=
16668
supports_anon_versioning=no
16669
case `$LD -v 2>/dev/null` in
16670
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16671
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16672
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16673
*\ 2.11.*) ;; # other 2.11 versions
16674
*) supports_anon_versioning=yes ;;
16677
# See if GNU ld supports shared libraries.
16679
aix3* | aix4* | aix5*)
16680
# On AIX/PPC, the GNU linker is very broken
16681
if test "$host_cpu" != ia64; then
16685
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16686
*** to be unable to reliably create shared libraries on AIX.
16687
*** Therefore, libtool is disabling shared libraries support. If you
16688
*** really care for shared libraries, you may want to modify your PATH
16689
*** so that a non-GNU linker is found, and then restart.
16696
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)'
16697
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16698
hardcode_minus_L_GCJ=yes
16700
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16701
# that the semantics of dynamic libraries on AmigaOS, at least up
16702
# to version 4, is to share data among multiple programs linked
16703
# with the same dynamic library. Since this doesn't match the
16704
# behavior of shared libraries on other platforms, we can't use
16710
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16711
allow_undefined_flag_GCJ=unsupported
16712
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16713
# support --undefined. This deserves some investigation. FIXME
16714
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16720
cygwin* | mingw* | pw32*)
16721
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16722
# as there is no search path for DLLs.
16723
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16724
allow_undefined_flag_GCJ=unsupported
16725
always_export_symbols_GCJ=no
16726
enable_shared_with_static_runtimes_GCJ=yes
16727
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16729
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16730
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16731
# If the export-symbols file already is a .def file (1st line
16732
# is EXPORTS), use it as is; otherwise, prepend...
16733
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16734
cp $export_symbols $output_objdir/$soname.def;
16736
echo EXPORTS > $output_objdir/$soname.def;
16737
cat $export_symbols >> $output_objdir/$soname.def;
16739
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16746
hardcode_direct_GCJ=no
16747
hardcode_shlibpath_var_GCJ=no
16748
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16749
export_dynamic_flag_spec_GCJ='${wl}-E'
16750
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16751
# Instead, shared libraries are loaded at an image base (0x10000000 by
16752
# default) and relocated if they conflict, which is a slow very memory
16753
# consuming and fragmenting process. To avoid this, we pick a random,
16754
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16755
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16756
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16757
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16760
linux* | k*bsd*-gnu)
16761
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16763
case $cc_basename,$host_cpu in
16764
pgcc*) # Portland Group C compiler
16765
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16766
tmp_addflag=' $pic_flag'
16768
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16769
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16770
tmp_addflag=' $pic_flag -Mnomain' ;;
16771
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16772
tmp_addflag=' -i_dynamic' ;;
16773
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16774
tmp_addflag=' -i_dynamic -nofor_main' ;;
16775
ifc* | ifort*) # Intel Fortran compiler
16776
tmp_addflag=' -nofor_main' ;;
16778
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16780
if test $supports_anon_versioning = yes; then
16781
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16782
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16783
$echo "local: *; };" >> $output_objdir/$libname.ver~
16784
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16786
link_all_deplibs_GCJ=no
16792
netbsd* | netbsdelf*-gnu)
16793
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16794
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16797
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16798
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16803
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16807
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16808
*** create shared libraries on Solaris systems. Therefore, libtool
16809
*** is disabling shared libraries support. We urge you to upgrade GNU
16810
*** binutils to release 2.9.1 or newer. Another option is to modify
16811
*** your PATH or compiler configuration so that the native linker is
16812
*** used, and then restart.
16815
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16816
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16817
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16823
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16824
case `$LD -v 2>&1` in
16825
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16829
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16830
*** reliably create shared libraries on SCO systems. Therefore, libtool
16831
*** is disabling shared libraries support. We urge you to upgrade GNU
16832
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16833
*** your PATH or compiler configuration so that the native linker is
16834
*** used, and then restart.
16839
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16840
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16841
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16842
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16851
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16853
hardcode_direct_GCJ=yes
16854
hardcode_shlibpath_var_GCJ=no
16858
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16859
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16860
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16867
if test "$ld_shlibs_GCJ" = no; then
16869
hardcode_libdir_flag_spec_GCJ=
16870
export_dynamic_flag_spec_GCJ=
16871
whole_archive_flag_spec_GCJ=
16874
# PORTME fill in a description of your system's linker (not GNU ld)
16877
allow_undefined_flag_GCJ=unsupported
16878
always_export_symbols_GCJ=yes
16879
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'
16880
# Note: this linker hardcodes the directories in LIBPATH if there
16881
# are no directories specified by -L.
16882
hardcode_minus_L_GCJ=yes
16883
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16884
# Neither direct hardcoding nor static linking is supported with a
16886
hardcode_direct_GCJ=unsupported
16891
if test "$host_cpu" = ia64; then
16892
# On IA64, the linker does run time linking by default, so we don't
16893
# have to do anything special.
16894
aix_use_runtimelinking=no
16895
exp_sym_flag='-Bexport'
16898
# If we're using GNU nm, then we don't want the "-C" option.
16899
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16900
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16901
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'
16903
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'
16905
aix_use_runtimelinking=no
16907
# Test if we are trying to use run time linking or normal
16908
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16909
# need to do runtime linking.
16910
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16911
for ld_flag in $LDFLAGS; do
16912
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16913
aix_use_runtimelinking=yes
16920
exp_sym_flag='-bexport'
16921
no_entry_flag='-bnoentry'
16924
# When large executables or shared objects are built, AIX ld can
16925
# have problems creating the table of contents. If linking a library
16926
# or program results in "error TOC overflow" add -mminimal-toc to
16927
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16928
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16930
archive_cmds_GCJ=''
16931
hardcode_direct_GCJ=yes
16932
hardcode_libdir_separator_GCJ=':'
16933
link_all_deplibs_GCJ=yes
16935
if test "$GCC" = yes; then
16936
case $host_os in aix4.[012]|aix4.[012].*)
16937
# We only want to do this on AIX 4.2 and lower, the check
16938
# below for broken collect2 doesn't work under 4.3+
16939
collect2name=`${CC} -print-prog-name=collect2`
16940
if test -f "$collect2name" && \
16941
strings "$collect2name" | grep resolve_lib_name >/dev/null
16943
# We have reworked collect2
16944
hardcode_direct_GCJ=yes
16946
# We have old collect2
16947
hardcode_direct_GCJ=unsupported
16948
# It fails to find uninstalled libraries when the uninstalled
16949
# path is not listed in the libpath. Setting hardcode_minus_L
16950
# to unsupported forces relinking
16951
hardcode_minus_L_GCJ=yes
16952
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16953
hardcode_libdir_separator_GCJ=
16957
shared_flag='-shared'
16958
if test "$aix_use_runtimelinking" = yes; then
16959
shared_flag="$shared_flag "'${wl}-G'
16963
if test "$host_cpu" = ia64; then
16964
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16965
# chokes on -Wl,-G. The following line is correct:
16968
if test "$aix_use_runtimelinking" = yes; then
16969
shared_flag='${wl}-G'
16971
shared_flag='${wl}-bM:SRE'
16976
# It seems that -bexpall does not export symbols beginning with
16977
# underscore (_), so it is better to generate a list of symbols to export.
16978
always_export_symbols_GCJ=yes
16979
if test "$aix_use_runtimelinking" = yes; then
16980
# Warning - without using the other runtime loading flags (-brtl),
16981
# -berok will link without error, but may produce a broken library.
16982
allow_undefined_flag_GCJ='-berok'
16983
# Determine the default libpath from the value encoded in an empty executable.
16984
cat >conftest.$ac_ext <<_ACEOF
16987
cat confdefs.h >>conftest.$ac_ext
16988
cat >>conftest.$ac_ext <<_ACEOF
16989
/* end confdefs.h. */
16999
rm -f conftest.$ac_objext conftest$ac_exeext
17000
if { (ac_try="$ac_link"
17001
case "(($ac_try" in
17002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003
*) ac_try_echo=$ac_try;;
17005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006
(eval "$ac_link") 2>conftest.er1
17008
grep -v '^ *+' conftest.er1 >conftest.err
17010
cat conftest.err >&5
17011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012
(exit $ac_status); } && {
17013
test -z "$ac_c_werror_flag" ||
17014
test ! -s conftest.err
17015
} && test -s conftest$ac_exeext &&
17016
$as_test_x conftest$ac_exeext; then
17018
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17020
# Check for a 64-bit object if we didn't find anything.
17021
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; }
17024
echo "$as_me: failed program was:" >&5
17025
sed 's/^/| /' conftest.$ac_ext >&5
17030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17031
conftest$ac_exeext conftest.$ac_ext
17032
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17034
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17035
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17037
if test "$host_cpu" = ia64; then
17038
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17039
allow_undefined_flag_GCJ="-z nodefs"
17040
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17042
# Determine the default libpath from the value encoded in an empty executable.
17043
cat >conftest.$ac_ext <<_ACEOF
17046
cat confdefs.h >>conftest.$ac_ext
17047
cat >>conftest.$ac_ext <<_ACEOF
17048
/* end confdefs.h. */
17058
rm -f conftest.$ac_objext conftest$ac_exeext
17059
if { (ac_try="$ac_link"
17060
case "(($ac_try" in
17061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062
*) ac_try_echo=$ac_try;;
17064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065
(eval "$ac_link") 2>conftest.er1
17067
grep -v '^ *+' conftest.er1 >conftest.err
17069
cat conftest.err >&5
17070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071
(exit $ac_status); } && {
17072
test -z "$ac_c_werror_flag" ||
17073
test ! -s conftest.err
17074
} && test -s conftest$ac_exeext &&
17075
$as_test_x conftest$ac_exeext; then
17077
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17079
# Check for a 64-bit object if we didn't find anything.
17080
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; }
17083
echo "$as_me: failed program was:" >&5
17084
sed 's/^/| /' conftest.$ac_ext >&5
17089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090
conftest$ac_exeext conftest.$ac_ext
17091
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17093
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17094
# Warning - without using the other run time loading flags,
17095
# -berok will link without error, but may produce a broken library.
17096
no_undefined_flag_GCJ=' ${wl}-bernotok'
17097
allow_undefined_flag_GCJ=' ${wl}-berok'
17098
# Exported symbols can be pulled into shared objects from archives
17099
whole_archive_flag_spec_GCJ='$convenience'
17100
archive_cmds_need_lc_GCJ=yes
17101
# This is similar to how AIX traditionally builds its shared libraries.
17102
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17108
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)'
17109
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110
hardcode_minus_L_GCJ=yes
17111
# see comment about different semantics on the GNU ld section
17116
export_dynamic_flag_spec_GCJ=-rdynamic
17119
cygwin* | mingw* | pw32*)
17120
# When not using gcc, we currently assume that we are using
17121
# Microsoft Visual C++.
17122
# hardcode_libdir_flag_spec is actually meaningless, as there is
17123
# no search path for DLLs.
17124
hardcode_libdir_flag_spec_GCJ=' '
17125
allow_undefined_flag_GCJ=unsupported
17126
# Tell ltmain to make .lib files, not .a files.
17128
# Tell ltmain to make .dll files, not .so files.
17130
# FIXME: Setting linknames here is a bad hack.
17131
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17132
# The linker will automatically build a .lib file if we build a DLL.
17133
old_archive_From_new_cmds_GCJ='true'
17134
# FIXME: Should let the user specify the lib program.
17135
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17136
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17137
enable_shared_with_static_runtimes_GCJ=yes
17140
darwin* | rhapsody*)
17142
rhapsody* | darwin1.[012])
17143
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17146
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17147
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17149
case ${MACOSX_DEPLOYMENT_TARGET} in
17151
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17154
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17160
archive_cmds_need_lc_GCJ=no
17161
hardcode_direct_GCJ=no
17162
hardcode_automatic_GCJ=yes
17163
hardcode_shlibpath_var_GCJ=unsupported
17164
whole_archive_flag_spec_GCJ=''
17165
link_all_deplibs_GCJ=yes
17166
if test "$GCC" = yes ; then
17167
output_verbose_link_cmd='echo'
17168
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17169
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17170
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17171
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17172
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}'
17174
case $cc_basename in
17176
output_verbose_link_cmd='echo'
17177
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17178
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17179
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17180
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17181
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}'
17191
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17192
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17193
hardcode_shlibpath_var_GCJ=no
17200
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17201
# support. Future versions do this automatically, but an explicit c++rt0.o
17202
# does not break anything, and helps significantly (at the cost of a little
17205
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17206
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17207
hardcode_direct_GCJ=yes
17208
hardcode_shlibpath_var_GCJ=no
17211
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17213
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17214
hardcode_direct_GCJ=yes
17215
hardcode_minus_L_GCJ=yes
17216
hardcode_shlibpath_var_GCJ=no
17219
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17220
freebsd* | dragonfly*)
17221
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17222
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17223
hardcode_direct_GCJ=yes
17224
hardcode_shlibpath_var_GCJ=no
17228
if test "$GCC" = yes; then
17229
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'
17231
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'
17233
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17234
hardcode_libdir_separator_GCJ=:
17235
hardcode_direct_GCJ=yes
17237
# hardcode_minus_L: Not really in the search PATH,
17238
# but as the default location of the library.
17239
hardcode_minus_L_GCJ=yes
17240
export_dynamic_flag_spec_GCJ='${wl}-E'
17244
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17245
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17247
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17249
if test "$with_gnu_ld" = no; then
17250
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17251
hardcode_libdir_separator_GCJ=:
17253
hardcode_direct_GCJ=yes
17254
export_dynamic_flag_spec_GCJ='${wl}-E'
17256
# hardcode_minus_L: Not really in the search PATH,
17257
# but as the default location of the library.
17258
hardcode_minus_L_GCJ=yes
17263
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17266
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17269
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17272
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17278
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17281
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17284
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17288
if test "$with_gnu_ld" = no; then
17289
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17290
hardcode_libdir_separator_GCJ=:
17294
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17295
hardcode_direct_GCJ=no
17296
hardcode_shlibpath_var_GCJ=no
17299
hardcode_direct_GCJ=yes
17300
export_dynamic_flag_spec_GCJ='${wl}-E'
17302
# hardcode_minus_L: Not really in the search PATH,
17303
# but as the default location of the library.
17304
hardcode_minus_L_GCJ=yes
17310
irix5* | irix6* | nonstopux*)
17311
if test "$GCC" = yes; then
17312
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'
17314
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'
17315
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17317
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17318
hardcode_libdir_separator_GCJ=:
17319
link_all_deplibs_GCJ=yes
17322
netbsd* | netbsdelf*-gnu)
17323
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17324
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17326
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17328
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17329
hardcode_direct_GCJ=yes
17330
hardcode_shlibpath_var_GCJ=no
17334
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335
hardcode_direct_GCJ=yes
17336
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17337
hardcode_libdir_separator_GCJ=:
17338
hardcode_shlibpath_var_GCJ=no
17342
hardcode_direct_GCJ=yes
17343
hardcode_shlibpath_var_GCJ=no
17344
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17345
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17346
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17347
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17348
export_dynamic_flag_spec_GCJ='${wl}-E'
17351
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17352
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17353
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17356
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17357
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17364
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17365
hardcode_minus_L_GCJ=yes
17366
allow_undefined_flag_GCJ=unsupported
17367
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'
17368
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17372
if test "$GCC" = yes; then
17373
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17374
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'
17376
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17377
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'
17379
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17380
hardcode_libdir_separator_GCJ=:
17383
osf4* | osf5*) # as osf3* with the addition of -msym flag
17384
if test "$GCC" = yes; then
17385
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17386
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'
17387
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17389
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17390
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'
17391
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~
17392
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17394
# Both c and cxx compiler support -rpath directly
17395
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17397
hardcode_libdir_separator_GCJ=:
17401
no_undefined_flag_GCJ=' -z text'
17402
if test "$GCC" = yes; then
17404
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17405
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17406
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17409
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17410
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17411
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17413
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17414
hardcode_shlibpath_var_GCJ=no
17416
solaris2.[0-5] | solaris2.[0-5].*) ;;
17418
# The compiler driver will combine linker options so we
17419
# cannot just pass the convience library names through
17420
# without $wl, iff we do not link with $LD.
17421
# Luckily, gcc supports the same syntax we need for Sun Studio.
17422
# Supported since Solaris 2.6 (maybe 2.5.1?)
17425
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17427
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17430
link_all_deplibs_GCJ=yes
17434
if test "x$host_vendor" = xsequent; then
17435
# Use $CC to link under sequent, because it throws in some extra .o
17436
# files that make .init and .fini sections work.
17437
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17439
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17441
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17442
hardcode_direct_GCJ=yes
17443
hardcode_minus_L_GCJ=yes
17444
hardcode_shlibpath_var_GCJ=no
17448
case $host_vendor in
17450
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451
hardcode_direct_GCJ=yes # is this really true???
17454
## LD is ld it makes a PLAMLIB
17455
## CC just makes a GrossModule.
17456
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17457
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17458
hardcode_direct_GCJ=no
17461
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17462
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17465
runpath_var='LD_RUN_PATH'
17466
hardcode_shlibpath_var_GCJ=no
17470
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17471
hardcode_shlibpath_var_GCJ=no
17472
export_dynamic_flag_spec_GCJ='-Bexport'
17476
if test -d /usr/nec; then
17477
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17478
hardcode_shlibpath_var_GCJ=no
17479
runpath_var=LD_RUN_PATH
17480
hardcode_runpath_var=yes
17485
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17486
no_undefined_flag_GCJ='${wl}-z,text'
17487
archive_cmds_need_lc_GCJ=no
17488
hardcode_shlibpath_var_GCJ=no
17489
runpath_var='LD_RUN_PATH'
17491
if test "$GCC" = yes; then
17492
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17493
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17495
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17496
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17500
sysv5* | sco3.2v5* | sco5v6*)
17501
# Note: We can NOT use -z defs as we might desire, because we do not
17502
# link with -lc, and that would cause any symbols used from libc to
17503
# always be unresolved, which means just about no library would
17504
# ever link correctly. If we're not using GNU ld we use -z text
17505
# though, which does catch some bad symbols but isn't as heavy-handed
17507
no_undefined_flag_GCJ='${wl}-z,text'
17508
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17509
archive_cmds_need_lc_GCJ=no
17510
hardcode_shlibpath_var_GCJ=no
17511
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17512
hardcode_libdir_separator_GCJ=':'
17513
link_all_deplibs_GCJ=yes
17514
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17515
runpath_var='LD_RUN_PATH'
17517
if test "$GCC" = yes; then
17518
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17519
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17522
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17529
hardcode_shlibpath_var_GCJ=no
17538
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17539
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17540
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17543
# Do we need to explicitly link libc?
17545
case "x$archive_cmds_need_lc_GCJ" in
17547
# Assume -lc should be added
17548
archive_cmds_need_lc_GCJ=yes
17550
if test "$enable_shared" = yes && test "$GCC" = yes; then
17551
case $archive_cmds_GCJ in
17553
# FIXME: we may have to deal with multi-command sequences.
17556
# Test whether the compiler implicitly links with -lc since on some
17557
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17558
# to ld, don't add -lc before -lgcc.
17559
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17560
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17562
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565
(eval $ac_compile) 2>&5
17567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568
(exit $ac_status); } 2>conftest.err; then
17571
libobjs=conftest.$ac_objext
17573
wl=$lt_prog_compiler_wl_GCJ
17574
pic_flag=$lt_prog_compiler_pic_GCJ
17580
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17581
allow_undefined_flag_GCJ=
17582
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17583
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
(exit $ac_status); }
17588
archive_cmds_need_lc_GCJ=no
17590
archive_cmds_need_lc_GCJ=yes
17592
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17594
cat conftest.err 1>&5
17597
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17598
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17605
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17606
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17607
library_names_spec=
17608
libname_spec='lib$name'
17612
postuninstall_cmds=
17616
shlibpath_overrides_runpath=unknown
17618
dynamic_linker="$host_os ld.so"
17619
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17620
if test "$GCC" = yes; then
17621
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17622
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17623
# if the path contains ";" then we assume it to be the separator
17624
# otherwise default to the standard path separator (i.e. ":") - it is
17625
# assumed that no part of a normal pathname contains ";" but that should
17626
# okay in the real world where ";" in dirpaths is itself problematic.
17627
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17629
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17632
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17634
need_lib_prefix=unknown
17635
hardcode_into_libs=no
17637
# when you set need_version to no, make sure it does not cause -set_version
17638
# flags to be left without arguments
17639
need_version=unknown
17644
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17645
shlibpath_var=LIBPATH
17647
# AIX 3 has no versioning support, so we append a major version to the name.
17648
soname_spec='${libname}${release}${shared_ext}$major'
17655
hardcode_into_libs=yes
17656
if test "$host_cpu" = ia64; then
17657
# AIX 5 supports IA64
17658
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17659
shlibpath_var=LD_LIBRARY_PATH
17661
# With GCC up to 2.95.x, collect2 would create an import file
17662
# for dependence libraries. The import file would start with
17663
# the line `#! .'. This would cause the generated library to
17664
# depend on `.', always an invalid library. This was fixed in
17665
# development snapshots of GCC prior to 3.0.
17667
aix4 | aix4.[01] | aix4.[01].*)
17668
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17670
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17673
can_build_shared=no
17677
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17678
# soname into executable. Probably we can add versioning support to
17679
# collect2, so additional links can be useful in future.
17680
if test "$aix_use_runtimelinking" = yes; then
17681
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17682
# instead of lib<name>.a to let people know that these are not
17683
# typical AIX shared libraries.
17684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686
# We preserve .a as extension for shared libraries through AIX4.2
17687
# and later when we are not doing run time linking.
17688
library_names_spec='${libname}${release}.a $libname.a'
17689
soname_spec='${libname}${release}${shared_ext}$major'
17691
shlibpath_var=LIBPATH
17696
library_names_spec='$libname.ixlibrary $libname.a'
17697
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17698
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'
17702
library_names_spec='${libname}${shared_ext}'
17703
dynamic_linker="$host_os ld.so"
17704
shlibpath_var=LIBRARY_PATH
17710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711
soname_spec='${libname}${release}${shared_ext}$major'
17712
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17713
shlibpath_var=LD_LIBRARY_PATH
17714
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17715
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17716
# the default ld.so.conf also contains /usr/contrib/lib and
17717
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17718
# libtool to hard-code these into programs
17721
cygwin* | mingw* | pw32*)
17722
version_type=windows
17727
case $GCC,$host_os in
17728
yes,cygwin* | yes,mingw* | yes,pw32*)
17729
library_names_spec='$libname.dll.a'
17730
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17731
postinstall_cmds='base_file=`basename \${file}`~
17732
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17733
dldir=$destdir/`dirname \$dlpath`~
17734
test -d \$dldir || mkdir -p \$dldir~
17735
$install_prog $dir/$dlname \$dldir/$dlname~
17736
chmod a+x \$dldir/$dlname'
17737
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17738
dlpath=$dir/\$dldll~
17740
shlibpath_overrides_runpath=yes
17744
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17745
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17746
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17749
# MinGW DLLs use traditional 'lib' prefix
17750
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17751
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17752
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17753
# It is most probably a Windows format PATH printed by
17754
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17755
# path with ; separators, and with drive letters. We can handle the
17756
# drive letters (cygwin fileutils understands them), so leave them,
17757
# especially as we might pass files found there to a mingw objdump,
17758
# which wouldn't understand a cygwinified path. Ahh.
17759
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17761
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17765
# pw32 DLLs use 'pw' prefix rather than 'lib'
17766
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17772
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17775
dynamic_linker='Win32 ld.exe'
17776
# FIXME: first we should search . and the directory the executable is in
17780
darwin* | rhapsody*)
17781
dynamic_linker="$host_os dyld"
17782
version_type=darwin
17785
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17786
soname_spec='${libname}${release}${major}$shared_ext'
17787
shlibpath_overrides_runpath=yes
17788
shlibpath_var=DYLD_LIBRARY_PATH
17789
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17790
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17791
if test "$GCC" = yes; then
17792
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"`
17794
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17796
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17804
soname_spec='${libname}${release}${shared_ext}$major'
17805
shlibpath_var=LD_LIBRARY_PATH
17812
freebsd* | dragonfly*)
17813
# DragonFly does not have aout. When/if they implement a new
17814
# versioning mechanism, adjust this.
17815
if test -x /usr/bin/objformat; then
17816
objformat=`/usr/bin/objformat`
17819
freebsd[123]*) objformat=aout ;;
17820
*) objformat=elf ;;
17823
version_type=freebsd-$objformat
17824
case $version_type in
17826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17831
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17835
shlibpath_var=LD_LIBRARY_PATH
17838
shlibpath_overrides_runpath=yes
17840
freebsd3.[01]* | freebsdelf3.[01]*)
17841
shlibpath_overrides_runpath=yes
17842
hardcode_into_libs=yes
17844
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17845
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17846
shlibpath_overrides_runpath=no
17847
hardcode_into_libs=yes
17849
freebsd*) # from 4.6 on
17850
shlibpath_overrides_runpath=yes
17851
hardcode_into_libs=yes
17860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17861
soname_spec='${libname}${release}${shared_ext}$major'
17862
shlibpath_var=LD_LIBRARY_PATH
17863
hardcode_into_libs=yes
17866
hpux9* | hpux10* | hpux11*)
17867
# Give a soname corresponding to the major version so that dld.sl refuses to
17868
# link against other versions.
17875
hardcode_into_libs=yes
17876
dynamic_linker="$host_os dld.so"
17877
shlibpath_var=LD_LIBRARY_PATH
17878
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880
soname_spec='${libname}${release}${shared_ext}$major'
17881
if test "X$HPUX_IA64_MODE" = X32; then
17882
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17884
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17886
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17890
hardcode_into_libs=yes
17891
dynamic_linker="$host_os dld.sl"
17892
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17893
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895
soname_spec='${libname}${release}${shared_ext}$major'
17896
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17897
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17901
dynamic_linker="$host_os dld.sl"
17902
shlibpath_var=SHLIB_PATH
17903
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905
soname_spec='${libname}${release}${shared_ext}$major'
17908
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17909
postinstall_cmds='chmod 555 $lib'
17916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17917
soname_spec='${libname}${release}${shared_ext}$major'
17918
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17919
shlibpath_var=LD_LIBRARY_PATH
17920
shlibpath_overrides_runpath=no
17921
hardcode_into_libs=yes
17924
irix5* | irix6* | nonstopux*)
17926
nonstopux*) version_type=nonstopux ;;
17928
if test "$lt_cv_prog_gnu_ld" = yes; then
17936
soname_spec='${libname}${release}${shared_ext}$major'
17937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17939
irix5* | nonstopux*)
17940
libsuff= shlibsuff=
17943
case $LD in # libtool.m4 will add one of these switches to LD
17944
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17945
libsuff= shlibsuff= libmagic=32-bit;;
17946
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17947
libsuff=32 shlibsuff=N32 libmagic=N32;;
17948
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17949
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17950
*) libsuff= shlibsuff= libmagic=never-match;;
17954
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17955
shlibpath_overrides_runpath=no
17956
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17957
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17958
hardcode_into_libs=yes
17961
# No shared lib support for Linux oldld, aout, or coff.
17962
linux*oldld* | linux*aout* | linux*coff*)
17966
# This must be Linux ELF.
17967
linux* | k*bsd*-gnu)
17971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972
soname_spec='${libname}${release}${shared_ext}$major'
17973
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17974
shlibpath_var=LD_LIBRARY_PATH
17975
shlibpath_overrides_runpath=no
17976
# This implies no fast_install, which is unacceptable.
17977
# Some rework will be needed to allow for fast_install
17978
# before this can be enabled.
17979
hardcode_into_libs=yes
17981
# Append ld.so.conf contents to the search path
17982
if test -f /etc/ld.so.conf; then
17983
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17984
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17987
# We used to test for /lib/ld.so.1 and disable shared libraries on
17988
# powerpc, because MkLinux only supported shared libraries with the
17989
# GNU dynamic linker. Since this was broken with cross compilers,
17990
# most powerpc-linux boxes support dynamic linking these days and
17991
# people can always --disable-shared, the test was removed, and we
17992
# assume the GNU/Linux dynamic linker is in use.
17993
dynamic_linker='GNU/Linux ld.so'
18000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18001
soname_spec='${libname}${release}${shared_ext}$major'
18002
shlibpath_var=LD_LIBRARY_PATH
18003
shlibpath_overrides_runpath=no
18004
hardcode_into_libs=yes
18005
dynamic_linker='NetBSD ld.elf_so'
18012
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18014
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18015
dynamic_linker='NetBSD (a.out) ld.so'
18017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18018
soname_spec='${libname}${release}${shared_ext}$major'
18019
dynamic_linker='NetBSD ld.elf_so'
18021
shlibpath_var=LD_LIBRARY_PATH
18022
shlibpath_overrides_runpath=yes
18023
hardcode_into_libs=yes
18028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029
shlibpath_var=LD_LIBRARY_PATH
18030
shlibpath_overrides_runpath=yes
18037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038
soname_spec='${libname}${release}${shared_ext}$major'
18039
shlibpath_var=LD_LIBRARY_PATH
18040
shlibpath_overrides_runpath=yes
18045
sys_lib_dlsearch_path_spec="/usr/lib"
18047
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18049
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18050
*) need_version=no ;;
18052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18053
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18054
shlibpath_var=LD_LIBRARY_PATH
18055
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18057
openbsd2.[89] | openbsd2.[89].*)
18058
shlibpath_overrides_runpath=no
18061
shlibpath_overrides_runpath=yes
18065
shlibpath_overrides_runpath=yes
18070
libname_spec='$name'
18073
library_names_spec='$libname${shared_ext} $libname.a'
18074
dynamic_linker='OS/2 ld.exe'
18075
shlibpath_var=LIBPATH
18078
osf3* | osf4* | osf5*)
18082
soname_spec='${libname}${release}${shared_ext}$major'
18083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084
shlibpath_var=LD_LIBRARY_PATH
18085
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18086
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094
soname_spec='${libname}${release}${shared_ext}$major'
18095
shlibpath_var=LD_LIBRARY_PATH
18096
shlibpath_overrides_runpath=yes
18097
hardcode_into_libs=yes
18098
# ldd complains unless libraries are executable
18099
postinstall_cmds='chmod +x $lib'
18104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18105
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18106
shlibpath_var=LD_LIBRARY_PATH
18107
shlibpath_overrides_runpath=yes
18108
if test "$with_gnu_ld" = yes; then
18116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117
soname_spec='${libname}${release}${shared_ext}$major'
18118
shlibpath_var=LD_LIBRARY_PATH
18119
case $host_vendor in
18121
shlibpath_overrides_runpath=no
18123
export_dynamic_flag_spec='${wl}-Blargedynsym'
18124
runpath_var=LD_RUN_PATH
18132
shlibpath_overrides_runpath=no
18133
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18139
if test -d /usr/nec ;then
18141
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18142
soname_spec='$libname${shared_ext}.$major'
18143
shlibpath_var=LD_LIBRARY_PATH
18147
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18148
version_type=freebsd-elf
18151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18152
soname_spec='${libname}${release}${shared_ext}$major'
18153
shlibpath_var=LD_LIBRARY_PATH
18154
hardcode_into_libs=yes
18155
if test "$with_gnu_ld" = yes; then
18156
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18157
shlibpath_overrides_runpath=no
18159
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18160
shlibpath_overrides_runpath=yes
18163
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18167
sys_lib_dlsearch_path_spec='/usr/lib'
18172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173
soname_spec='${libname}${release}${shared_ext}$major'
18174
shlibpath_var=LD_LIBRARY_PATH
18181
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18182
echo "${ECHO_T}$dynamic_linker" >&6; }
18183
test "$dynamic_linker" = no && can_build_shared=no
18185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18186
if test "$GCC" = yes; then
18187
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18190
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18191
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18192
hardcode_action_GCJ=
18193
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18194
test -n "$runpath_var_GCJ" || \
18195
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18197
# We can hardcode non-existant directories.
18198
if test "$hardcode_direct_GCJ" != no &&
18199
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18200
# have to relink, otherwise we might link with an installed library
18201
# when we should be linking with a yet-to-be-installed one
18202
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18203
test "$hardcode_minus_L_GCJ" != no; then
18204
# Linking always hardcodes the temporary library directory.
18205
hardcode_action_GCJ=relink
18207
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18208
hardcode_action_GCJ=immediate
18211
# We cannot hardcode anything, or else we can only hardcode existing
18213
hardcode_action_GCJ=unsupported
18215
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18216
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18218
if test "$hardcode_action_GCJ" = relink; then
18219
# Fast installation is not supported
18220
enable_fast_install=no
18221
elif test "$shlibpath_overrides_runpath" = yes ||
18222
test "$enable_shared" = no; then
18223
# Fast installation is not necessary
18224
enable_fast_install=needless
18228
# The else clause should only fire when bootstrapping the
18229
# libtool distribution, otherwise you forgot to ship ltmain.sh
18230
# with your package, and you will get complaints that there are
18231
# no rules to generate ltmain.sh.
18232
if test -f "$ltmain"; then
18233
# See if we are running on zsh, and set the options which allow our commands through
18234
# without removal of \ escapes.
18235
if test -n "${ZSH_VERSION+set}" ; then
18236
setopt NO_GLOB_SUBST
18238
# Now quote all the things that may contain metacharacters while being
18239
# careful not to overquote the AC_SUBSTed values. We take copies of the
18240
# variables and quote the copies for generation of the libtool script.
18241
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18243
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18244
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18245
deplibs_check_method reload_flag reload_cmds need_locks \
18246
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18247
lt_cv_sys_global_symbol_to_c_name_address \
18248
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18249
old_postinstall_cmds old_postuninstall_cmds \
18253
lt_prog_compiler_wl_GCJ \
18254
lt_prog_compiler_pic_GCJ \
18255
lt_prog_compiler_static_GCJ \
18256
lt_prog_compiler_no_builtin_flag_GCJ \
18257
export_dynamic_flag_spec_GCJ \
18258
thread_safe_flag_spec_GCJ \
18259
whole_archive_flag_spec_GCJ \
18260
enable_shared_with_static_runtimes_GCJ \
18261
old_archive_cmds_GCJ \
18262
old_archive_from_new_cmds_GCJ \
18263
predep_objects_GCJ \
18264
postdep_objects_GCJ \
18267
compiler_lib_search_path_GCJ \
18269
archive_expsym_cmds_GCJ \
18270
postinstall_cmds_GCJ \
18271
postuninstall_cmds_GCJ \
18272
old_archive_from_expsyms_cmds_GCJ \
18273
allow_undefined_flag_GCJ \
18274
no_undefined_flag_GCJ \
18275
export_symbols_cmds_GCJ \
18276
hardcode_libdir_flag_spec_GCJ \
18277
hardcode_libdir_flag_spec_ld_GCJ \
18278
hardcode_libdir_separator_GCJ \
18279
hardcode_automatic_GCJ \
18281
module_expsym_cmds_GCJ \
18282
lt_cv_prog_compiler_c_o_GCJ \
18283
exclude_expsyms_GCJ \
18284
include_expsyms_GCJ; do
18287
old_archive_cmds_GCJ | \
18288
old_archive_from_new_cmds_GCJ | \
18289
archive_cmds_GCJ | \
18290
archive_expsym_cmds_GCJ | \
18291
module_cmds_GCJ | \
18292
module_expsym_cmds_GCJ | \
18293
old_archive_from_expsyms_cmds_GCJ | \
18294
export_symbols_cmds_GCJ | \
18295
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18296
postinstall_cmds | postuninstall_cmds | \
18297
old_postinstall_cmds | old_postuninstall_cmds | \
18298
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18299
# Double-quote double-evaled strings.
18300
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18303
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18309
*'\$0 --fallback-echo"')
18310
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18316
cat <<__EOF__ >> "$cfgfile"
18317
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18319
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18321
# Shell to use when invoking shell scripts.
18324
# Whether or not to build shared libraries.
18325
build_libtool_libs=$enable_shared
18327
# Whether or not to build static libraries.
18328
build_old_libs=$enable_static
18330
# Whether or not to add -lc for building shared libraries.
18331
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18333
# Whether or not to disallow shared libs when runtime libs are static
18334
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18336
# Whether or not to optimize for fast installation.
18337
fast_install=$enable_fast_install
18340
host_alias=$host_alias
18344
# The build system.
18345
build_alias=$build_alias
18349
# An echo program that does not interpret backslashes.
18354
AR_FLAGS=$lt_AR_FLAGS
18359
# LTCC compiler flags.
18360
LTCFLAGS=$lt_LTCFLAGS
18362
# A language-specific compiler.
18363
CC=$lt_compiler_GCJ
18365
# Is the compiler the GNU C compiler?
18371
# The linker used to build libraries.
18374
# Whether we need hard or soft links.
18377
# A BSD-compatible nm program.
18380
# A symbol stripping program
18383
# Used to examine libraries when file_magic_cmd begins "file"
18384
MAGIC_CMD=$MAGIC_CMD
18386
# Used on cygwin: DLL creation program.
18389
# Used on cygwin: object dumper.
18392
# Used on cygwin: assembler.
18395
# The name of the directory that contains temporary libtool files.
18398
# How to create reloadable object files.
18399
reload_flag=$lt_reload_flag
18400
reload_cmds=$lt_reload_cmds
18402
# How to pass a linker flag through the compiler.
18403
wl=$lt_lt_prog_compiler_wl_GCJ
18405
# Object file suffix (normally "o").
18406
objext="$ac_objext"
18408
# Old archive suffix (normally "a").
18411
# Shared library suffix (normally ".so").
18412
shrext_cmds='$shrext_cmds'
18414
# Executable file suffix (normally "").
18417
# Additional compiler flags for building library objects.
18418
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18421
# What is the maximum length of a command?
18422
max_cmd_len=$lt_cv_sys_max_cmd_len
18424
# Does compiler simultaneously support -c and -o options?
18425
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18427
# Must we lock files when doing compilation?
18428
need_locks=$lt_need_locks
18430
# Do we need the lib prefix for modules?
18431
need_lib_prefix=$need_lib_prefix
18433
# Do we need a version for libraries?
18434
need_version=$need_version
18436
# Whether dlopen is supported.
18437
dlopen_support=$enable_dlopen
18439
# Whether dlopen of programs is supported.
18440
dlopen_self=$enable_dlopen_self
18442
# Whether dlopen of statically linked programs is supported.
18443
dlopen_self_static=$enable_dlopen_self_static
18445
# Compiler flag to prevent dynamic linking.
18446
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18448
# Compiler flag to turn off builtin functions.
18449
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18451
# Compiler flag to allow reflexive dlopens.
18452
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18454
# Compiler flag to generate shared objects directly from archives.
18455
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18457
# Compiler flag to generate thread-safe objects.
18458
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18460
# Library versioning type.
18461
version_type=$version_type
18463
# Format of library name prefix.
18464
libname_spec=$lt_libname_spec
18466
# List of archive names. First name is the real one, the rest are links.
18467
# The last name is the one that the linker finds with -lNAME.
18468
library_names_spec=$lt_library_names_spec
18470
# The coded name of the library, if different from the real name.
18471
soname_spec=$lt_soname_spec
18473
# Commands used to build and install an old-style archive.
18475
old_archive_cmds=$lt_old_archive_cmds_GCJ
18476
old_postinstall_cmds=$lt_old_postinstall_cmds
18477
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18479
# Create an old-style archive from a shared archive.
18480
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18482
# Create a temporary old-style archive to link instead of a shared archive.
18483
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18485
# Commands used to build and install a shared archive.
18486
archive_cmds=$lt_archive_cmds_GCJ
18487
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18488
postinstall_cmds=$lt_postinstall_cmds
18489
postuninstall_cmds=$lt_postuninstall_cmds
18491
# Commands used to build a loadable module (assumed same as above if empty)
18492
module_cmds=$lt_module_cmds_GCJ
18493
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18495
# Commands to strip libraries.
18496
old_striplib=$lt_old_striplib
18497
striplib=$lt_striplib
18499
# Dependencies to place before the objects being linked to create a
18501
predep_objects=$lt_predep_objects_GCJ
18503
# Dependencies to place after the objects being linked to create a
18505
postdep_objects=$lt_postdep_objects_GCJ
18507
# Dependencies to place before the objects being linked to create a
18509
predeps=$lt_predeps_GCJ
18511
# Dependencies to place after the objects being linked to create a
18513
postdeps=$lt_postdeps_GCJ
18515
# The library search path used internally by the compiler when linking
18516
# a shared library.
18517
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18519
# Method to check whether dependent libraries are shared objects.
18520
deplibs_check_method=$lt_deplibs_check_method
18522
# Command to use when deplibs_check_method == file_magic.
18523
file_magic_cmd=$lt_file_magic_cmd
18525
# Flag that allows shared libraries with undefined symbols to be built.
18526
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18528
# Flag that forces no undefined symbols.
18529
no_undefined_flag=$lt_no_undefined_flag_GCJ
18531
# Commands used to finish a libtool library installation in a directory.
18532
finish_cmds=$lt_finish_cmds
18534
# Same as above, but a single script fragment to be evaled but not shown.
18535
finish_eval=$lt_finish_eval
18537
# Take the output of nm and produce a listing of raw symbols and C names.
18538
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18540
# Transform the output of nm in a proper C declaration
18541
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18543
# Transform the output of nm in a C name address pair
18544
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18546
# This is the shared library runtime path variable.
18547
runpath_var=$runpath_var
18549
# This is the shared library path variable.
18550
shlibpath_var=$shlibpath_var
18552
# Is shlibpath searched before the hard-coded library search path?
18553
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18555
# How to hardcode a shared library path into an executable.
18556
hardcode_action=$hardcode_action_GCJ
18558
# Whether we should hardcode library paths into libraries.
18559
hardcode_into_libs=$hardcode_into_libs
18561
# Flag to hardcode \$libdir into a binary during linking.
18562
# This must work even if \$libdir does not exist.
18563
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18565
# If ld is used when linking, flag to hardcode \$libdir into
18566
# a binary during linking. This must work even if \$libdir does
18568
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18570
# Whether we need a single -rpath flag with a separated argument.
18571
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18573
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18574
# resulting binary.
18575
hardcode_direct=$hardcode_direct_GCJ
18577
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18578
# resulting binary.
18579
hardcode_minus_L=$hardcode_minus_L_GCJ
18581
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18582
# the resulting binary.
18583
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18585
# Set to yes if building a shared library automatically hardcodes DIR into the library
18586
# and all subsequent libraries and executables linked against it.
18587
hardcode_automatic=$hardcode_automatic_GCJ
18589
# Variables whose values should be saved in libtool wrapper scripts and
18590
# restored at relink time.
18591
variables_saved_for_relink="$variables_saved_for_relink"
18593
# Whether libtool must link a program against all its dependency libraries.
18594
link_all_deplibs=$link_all_deplibs_GCJ
18596
# Compile-time system search path for libraries
18597
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18599
# Run-time system search path for libraries
18600
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18602
# Fix the shell variable \$srcfile for the compiler.
18603
fix_srcfile_path="$fix_srcfile_path_GCJ"
18605
# Set to yes if exported symbols are required.
18606
always_export_symbols=$always_export_symbols_GCJ
18608
# The commands to list exported symbols.
18609
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18611
# The commands to extract the exported symbol list from a shared archive.
18612
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18614
# Symbols that should not be listed in the preloaded symbols.
18615
exclude_expsyms=$lt_exclude_expsyms_GCJ
18617
# Symbols that must always be exported.
18618
include_expsyms=$lt_include_expsyms_GCJ
18620
# ### END LIBTOOL TAG CONFIG: $tagname
18626
# If there is no Makefile yet, we rely on a make rule to execute
18627
# `config.status --recheck' to rerun these tests and create the
18628
# libtool script then.
18629
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18630
if test -f "$ltmain_in"; then
18631
test -f Makefile && make "$ltmain"
18637
ac_cpp='$CPP $CPPFLAGS'
18638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18652
# Source file extension for RC test sources.
18655
# Object file extension for compiled RC test sources.
18659
# Code to be used in simple compile tests
18660
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18662
# Code to be used in simple link tests
18663
lt_simple_link_test_code="$lt_simple_compile_test_code"
18665
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18667
# If no C compiler was specified, use CC.
18670
# If no C compiler flags were specified, use CFLAGS.
18671
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18673
# Allow CC to be a program name with arguments.
18677
# save warnings/boilerplate of simple test code
18678
ac_outfile=conftest.$ac_objext
18679
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18680
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18681
_lt_compiler_boilerplate=`cat conftest.err`
18684
ac_outfile=conftest.$ac_objext
18685
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18686
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18687
_lt_linker_boilerplate=`cat conftest.err`
18691
# Allow CC to be a program name with arguments.
18696
for cc_temp in $compiler""; do
18698
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18699
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18704
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18706
lt_cv_prog_compiler_c_o_RC=yes
18708
# The else clause should only fire when bootstrapping the
18709
# libtool distribution, otherwise you forgot to ship ltmain.sh
18710
# with your package, and you will get complaints that there are
18711
# no rules to generate ltmain.sh.
18712
if test -f "$ltmain"; then
18713
# See if we are running on zsh, and set the options which allow our commands through
18714
# without removal of \ escapes.
18715
if test -n "${ZSH_VERSION+set}" ; then
18716
setopt NO_GLOB_SUBST
18718
# Now quote all the things that may contain metacharacters while being
18719
# careful not to overquote the AC_SUBSTed values. We take copies of the
18720
# variables and quote the copies for generation of the libtool script.
18721
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18723
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18724
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18725
deplibs_check_method reload_flag reload_cmds need_locks \
18726
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18727
lt_cv_sys_global_symbol_to_c_name_address \
18728
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18729
old_postinstall_cmds old_postuninstall_cmds \
18733
lt_prog_compiler_wl_RC \
18734
lt_prog_compiler_pic_RC \
18735
lt_prog_compiler_static_RC \
18736
lt_prog_compiler_no_builtin_flag_RC \
18737
export_dynamic_flag_spec_RC \
18738
thread_safe_flag_spec_RC \
18739
whole_archive_flag_spec_RC \
18740
enable_shared_with_static_runtimes_RC \
18741
old_archive_cmds_RC \
18742
old_archive_from_new_cmds_RC \
18743
predep_objects_RC \
18744
postdep_objects_RC \
18747
compiler_lib_search_path_RC \
18749
archive_expsym_cmds_RC \
18750
postinstall_cmds_RC \
18751
postuninstall_cmds_RC \
18752
old_archive_from_expsyms_cmds_RC \
18753
allow_undefined_flag_RC \
18754
no_undefined_flag_RC \
18755
export_symbols_cmds_RC \
18756
hardcode_libdir_flag_spec_RC \
18757
hardcode_libdir_flag_spec_ld_RC \
18758
hardcode_libdir_separator_RC \
18759
hardcode_automatic_RC \
18761
module_expsym_cmds_RC \
18762
lt_cv_prog_compiler_c_o_RC \
18763
exclude_expsyms_RC \
18764
include_expsyms_RC; do
18767
old_archive_cmds_RC | \
18768
old_archive_from_new_cmds_RC | \
18769
archive_cmds_RC | \
18770
archive_expsym_cmds_RC | \
18772
module_expsym_cmds_RC | \
18773
old_archive_from_expsyms_cmds_RC | \
18774
export_symbols_cmds_RC | \
18775
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18776
postinstall_cmds | postuninstall_cmds | \
18777
old_postinstall_cmds | old_postuninstall_cmds | \
18778
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18779
# Double-quote double-evaled strings.
18780
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18783
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18789
*'\$0 --fallback-echo"')
18790
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18796
cat <<__EOF__ >> "$cfgfile"
18797
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18799
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18801
# Shell to use when invoking shell scripts.
18804
# Whether or not to build shared libraries.
18805
build_libtool_libs=$enable_shared
18807
# Whether or not to build static libraries.
18808
build_old_libs=$enable_static
18810
# Whether or not to add -lc for building shared libraries.
18811
build_libtool_need_lc=$archive_cmds_need_lc_RC
18813
# Whether or not to disallow shared libs when runtime libs are static
18814
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18816
# Whether or not to optimize for fast installation.
18817
fast_install=$enable_fast_install
18820
host_alias=$host_alias
18824
# The build system.
18825
build_alias=$build_alias
18829
# An echo program that does not interpret backslashes.
18834
AR_FLAGS=$lt_AR_FLAGS
18839
# LTCC compiler flags.
18840
LTCFLAGS=$lt_LTCFLAGS
18842
# A language-specific compiler.
18845
# Is the compiler the GNU C compiler?
18851
# The linker used to build libraries.
18854
# Whether we need hard or soft links.
18857
# A BSD-compatible nm program.
18860
# A symbol stripping program
18863
# Used to examine libraries when file_magic_cmd begins "file"
18864
MAGIC_CMD=$MAGIC_CMD
18866
# Used on cygwin: DLL creation program.
18869
# Used on cygwin: object dumper.
18872
# Used on cygwin: assembler.
18875
# The name of the directory that contains temporary libtool files.
18878
# How to create reloadable object files.
18879
reload_flag=$lt_reload_flag
18880
reload_cmds=$lt_reload_cmds
18882
# How to pass a linker flag through the compiler.
18883
wl=$lt_lt_prog_compiler_wl_RC
18885
# Object file suffix (normally "o").
18886
objext="$ac_objext"
18888
# Old archive suffix (normally "a").
18891
# Shared library suffix (normally ".so").
18892
shrext_cmds='$shrext_cmds'
18894
# Executable file suffix (normally "").
18897
# Additional compiler flags for building library objects.
18898
pic_flag=$lt_lt_prog_compiler_pic_RC
18901
# What is the maximum length of a command?
18902
max_cmd_len=$lt_cv_sys_max_cmd_len
18904
# Does compiler simultaneously support -c and -o options?
18905
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18907
# Must we lock files when doing compilation?
18908
need_locks=$lt_need_locks
18910
# Do we need the lib prefix for modules?
18911
need_lib_prefix=$need_lib_prefix
18913
# Do we need a version for libraries?
18914
need_version=$need_version
18916
# Whether dlopen is supported.
18917
dlopen_support=$enable_dlopen
18919
# Whether dlopen of programs is supported.
18920
dlopen_self=$enable_dlopen_self
18922
# Whether dlopen of statically linked programs is supported.
18923
dlopen_self_static=$enable_dlopen_self_static
18925
# Compiler flag to prevent dynamic linking.
18926
link_static_flag=$lt_lt_prog_compiler_static_RC
18928
# Compiler flag to turn off builtin functions.
18929
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18931
# Compiler flag to allow reflexive dlopens.
18932
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18934
# Compiler flag to generate shared objects directly from archives.
18935
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18937
# Compiler flag to generate thread-safe objects.
18938
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18940
# Library versioning type.
18941
version_type=$version_type
18943
# Format of library name prefix.
18944
libname_spec=$lt_libname_spec
18946
# List of archive names. First name is the real one, the rest are links.
18947
# The last name is the one that the linker finds with -lNAME.
18948
library_names_spec=$lt_library_names_spec
18950
# The coded name of the library, if different from the real name.
18951
soname_spec=$lt_soname_spec
18953
# Commands used to build and install an old-style archive.
18955
old_archive_cmds=$lt_old_archive_cmds_RC
18956
old_postinstall_cmds=$lt_old_postinstall_cmds
18957
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18959
# Create an old-style archive from a shared archive.
18960
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18962
# Create a temporary old-style archive to link instead of a shared archive.
18963
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18965
# Commands used to build and install a shared archive.
18966
archive_cmds=$lt_archive_cmds_RC
18967
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18968
postinstall_cmds=$lt_postinstall_cmds
18969
postuninstall_cmds=$lt_postuninstall_cmds
18971
# Commands used to build a loadable module (assumed same as above if empty)
18972
module_cmds=$lt_module_cmds_RC
18973
module_expsym_cmds=$lt_module_expsym_cmds_RC
18975
# Commands to strip libraries.
18976
old_striplib=$lt_old_striplib
18977
striplib=$lt_striplib
18979
# Dependencies to place before the objects being linked to create a
18981
predep_objects=$lt_predep_objects_RC
18983
# Dependencies to place after the objects being linked to create a
18985
postdep_objects=$lt_postdep_objects_RC
18987
# Dependencies to place before the objects being linked to create a
18989
predeps=$lt_predeps_RC
18991
# Dependencies to place after the objects being linked to create a
18993
postdeps=$lt_postdeps_RC
18995
# The library search path used internally by the compiler when linking
18996
# a shared library.
18997
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18999
# Method to check whether dependent libraries are shared objects.
19000
deplibs_check_method=$lt_deplibs_check_method
19002
# Command to use when deplibs_check_method == file_magic.
19003
file_magic_cmd=$lt_file_magic_cmd
19005
# Flag that allows shared libraries with undefined symbols to be built.
19006
allow_undefined_flag=$lt_allow_undefined_flag_RC
19008
# Flag that forces no undefined symbols.
19009
no_undefined_flag=$lt_no_undefined_flag_RC
19011
# Commands used to finish a libtool library installation in a directory.
19012
finish_cmds=$lt_finish_cmds
19014
# Same as above, but a single script fragment to be evaled but not shown.
19015
finish_eval=$lt_finish_eval
19017
# Take the output of nm and produce a listing of raw symbols and C names.
19018
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19020
# Transform the output of nm in a proper C declaration
19021
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19023
# Transform the output of nm in a C name address pair
19024
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19026
# This is the shared library runtime path variable.
19027
runpath_var=$runpath_var
19029
# This is the shared library path variable.
19030
shlibpath_var=$shlibpath_var
19032
# Is shlibpath searched before the hard-coded library search path?
19033
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19035
# How to hardcode a shared library path into an executable.
19036
hardcode_action=$hardcode_action_RC
19038
# Whether we should hardcode library paths into libraries.
19039
hardcode_into_libs=$hardcode_into_libs
19041
# Flag to hardcode \$libdir into a binary during linking.
19042
# This must work even if \$libdir does not exist.
19043
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19045
# If ld is used when linking, flag to hardcode \$libdir into
19046
# a binary during linking. This must work even if \$libdir does
19048
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19050
# Whether we need a single -rpath flag with a separated argument.
19051
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19053
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19054
# resulting binary.
19055
hardcode_direct=$hardcode_direct_RC
19057
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19058
# resulting binary.
19059
hardcode_minus_L=$hardcode_minus_L_RC
19061
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19062
# the resulting binary.
19063
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19065
# Set to yes if building a shared library automatically hardcodes DIR into the library
19066
# and all subsequent libraries and executables linked against it.
19067
hardcode_automatic=$hardcode_automatic_RC
19069
# Variables whose values should be saved in libtool wrapper scripts and
19070
# restored at relink time.
19071
variables_saved_for_relink="$variables_saved_for_relink"
19073
# Whether libtool must link a program against all its dependency libraries.
19074
link_all_deplibs=$link_all_deplibs_RC
19076
# Compile-time system search path for libraries
19077
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19079
# Run-time system search path for libraries
19080
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19082
# Fix the shell variable \$srcfile for the compiler.
19083
fix_srcfile_path="$fix_srcfile_path_RC"
19085
# Set to yes if exported symbols are required.
19086
always_export_symbols=$always_export_symbols_RC
19088
# The commands to list exported symbols.
19089
export_symbols_cmds=$lt_export_symbols_cmds_RC
19091
# The commands to extract the exported symbol list from a shared archive.
19092
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19094
# Symbols that should not be listed in the preloaded symbols.
19095
exclude_expsyms=$lt_exclude_expsyms_RC
19097
# Symbols that must always be exported.
19098
include_expsyms=$lt_include_expsyms_RC
19100
# ### END LIBTOOL TAG CONFIG: $tagname
19106
# If there is no Makefile yet, we rely on a make rule to execute
19107
# `config.status --recheck' to rerun these tests and create the
19108
# libtool script then.
19109
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19110
if test -f "$ltmain_in"; then
19111
test -f Makefile && make "$ltmain"
19117
ac_cpp='$CPP $CPPFLAGS'
19118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19128
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19129
{ (exit 1); exit 1; }; }
19133
# Append the new tag name to the list of available tags.
19134
if test -n "$tagname" ; then
19135
available_tags="$available_tags $tagname"
19141
# Now substitute the updated list of available tags.
19142
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19143
mv "${ofile}T" "$ofile"
19147
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19148
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19149
{ (exit 1); exit 1; }; }
19155
# This can be used to rebuild libtool when needed
19156
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19158
# Always use our own libtool.
19159
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19161
# Prevent multiple expansion
19183
ac_cpp='$CPP $CPPFLAGS'
19184
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19187
if test -n "$ac_tool_prefix"; then
19188
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19189
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19190
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19192
if test "${ac_cv_prog_CC+set}" = set; then
19193
echo $ECHO_N "(cached) $ECHO_C" >&6
19195
if test -n "$CC"; then
19196
ac_cv_prog_CC="$CC" # Let the user override the test.
19198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19199
for as_dir in $PATH
19202
test -z "$as_dir" && as_dir=.
19203
for ac_exec_ext in '' $ac_executable_extensions; do
19204
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19205
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19206
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19216
if test -n "$CC"; then
19217
{ echo "$as_me:$LINENO: result: $CC" >&5
19218
echo "${ECHO_T}$CC" >&6; }
19220
{ echo "$as_me:$LINENO: result: no" >&5
19221
echo "${ECHO_T}no" >&6; }
19226
if test -z "$ac_cv_prog_CC"; then
19228
# Extract the first word of "gcc", so it can be a program name with args.
19229
set dummy gcc; ac_word=$2
19230
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19231
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19232
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19233
echo $ECHO_N "(cached) $ECHO_C" >&6
19235
if test -n "$ac_ct_CC"; then
19236
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19239
for as_dir in $PATH
19242
test -z "$as_dir" && as_dir=.
19243
for ac_exec_ext in '' $ac_executable_extensions; do
19244
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19245
ac_cv_prog_ac_ct_CC="gcc"
19246
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19255
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19256
if test -n "$ac_ct_CC"; then
19257
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19258
echo "${ECHO_T}$ac_ct_CC" >&6; }
19260
{ echo "$as_me:$LINENO: result: no" >&5
19261
echo "${ECHO_T}no" >&6; }
19264
if test "x$ac_ct_CC" = x; then
19267
case $cross_compiling:$ac_tool_warned in
19269
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19270
whose name does not start with the host triplet. If you think this
19271
configuration is useful to you, please write to autoconf@gnu.org." >&5
19272
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19273
whose name does not start with the host triplet. If you think this
19274
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19275
ac_tool_warned=yes ;;
19280
CC="$ac_cv_prog_CC"
19283
if test -z "$CC"; then
19284
if test -n "$ac_tool_prefix"; then
19285
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19286
set dummy ${ac_tool_prefix}cc; ac_word=$2
19287
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19289
if test "${ac_cv_prog_CC+set}" = set; then
19290
echo $ECHO_N "(cached) $ECHO_C" >&6
19292
if test -n "$CC"; then
19293
ac_cv_prog_CC="$CC" # Let the user override the test.
19295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19296
for as_dir in $PATH
19299
test -z "$as_dir" && as_dir=.
19300
for ac_exec_ext in '' $ac_executable_extensions; do
19301
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19302
ac_cv_prog_CC="${ac_tool_prefix}cc"
19303
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19313
if test -n "$CC"; then
19314
{ echo "$as_me:$LINENO: result: $CC" >&5
19315
echo "${ECHO_T}$CC" >&6; }
19317
{ echo "$as_me:$LINENO: result: no" >&5
19318
echo "${ECHO_T}no" >&6; }
19324
if test -z "$CC"; then
19325
# Extract the first word of "cc", so it can be a program name with args.
19326
set dummy cc; ac_word=$2
19327
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19329
if test "${ac_cv_prog_CC+set}" = set; then
19330
echo $ECHO_N "(cached) $ECHO_C" >&6
19332
if test -n "$CC"; then
19333
ac_cv_prog_CC="$CC" # Let the user override the test.
19335
ac_prog_rejected=no
19336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337
for as_dir in $PATH
19340
test -z "$as_dir" && as_dir=.
19341
for ac_exec_ext in '' $ac_executable_extensions; do
19342
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19343
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19344
ac_prog_rejected=yes
19348
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19355
if test $ac_prog_rejected = yes; then
19356
# We found a bogon in the path, so make sure we never use it.
19357
set dummy $ac_cv_prog_CC
19359
if test $# != 0; then
19360
# We chose a different compiler from the bogus one.
19361
# However, it has the same basename, so the bogon will be chosen
19362
# first if we set CC to just the basename; use the full file name.
19364
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19370
if test -n "$CC"; then
19371
{ echo "$as_me:$LINENO: result: $CC" >&5
19372
echo "${ECHO_T}$CC" >&6; }
19374
{ echo "$as_me:$LINENO: result: no" >&5
19375
echo "${ECHO_T}no" >&6; }
19380
if test -z "$CC"; then
19381
if test -n "$ac_tool_prefix"; then
19382
for ac_prog in cl.exe
19384
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19385
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19386
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19387
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19388
if test "${ac_cv_prog_CC+set}" = set; then
19389
echo $ECHO_N "(cached) $ECHO_C" >&6
19391
if test -n "$CC"; then
19392
ac_cv_prog_CC="$CC" # Let the user override the test.
19394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19395
for as_dir in $PATH
19398
test -z "$as_dir" && as_dir=.
19399
for ac_exec_ext in '' $ac_executable_extensions; do
19400
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19401
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19402
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19412
if test -n "$CC"; then
19413
{ echo "$as_me:$LINENO: result: $CC" >&5
19414
echo "${ECHO_T}$CC" >&6; }
19416
{ echo "$as_me:$LINENO: result: no" >&5
19417
echo "${ECHO_T}no" >&6; }
19421
test -n "$CC" && break
19424
if test -z "$CC"; then
19426
for ac_prog in cl.exe
19428
# Extract the first word of "$ac_prog", so it can be a program name with args.
19429
set dummy $ac_prog; ac_word=$2
19430
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19432
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19433
echo $ECHO_N "(cached) $ECHO_C" >&6
19435
if test -n "$ac_ct_CC"; then
19436
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19439
for as_dir in $PATH
19442
test -z "$as_dir" && as_dir=.
19443
for ac_exec_ext in '' $ac_executable_extensions; do
19444
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19445
ac_cv_prog_ac_ct_CC="$ac_prog"
19446
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19455
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19456
if test -n "$ac_ct_CC"; then
19457
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19458
echo "${ECHO_T}$ac_ct_CC" >&6; }
19460
{ echo "$as_me:$LINENO: result: no" >&5
19461
echo "${ECHO_T}no" >&6; }
19465
test -n "$ac_ct_CC" && break
19468
if test "x$ac_ct_CC" = x; then
19471
case $cross_compiling:$ac_tool_warned in
19473
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19474
whose name does not start with the host triplet. If you think this
19475
configuration is useful to you, please write to autoconf@gnu.org." >&5
19476
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19477
whose name does not start with the host triplet. If you think this
19478
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19479
ac_tool_warned=yes ;;
19488
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19489
See \`config.log' for more details." >&5
19490
echo "$as_me: error: no acceptable C compiler found in \$PATH
19491
See \`config.log' for more details." >&2;}
19492
{ (exit 1); exit 1; }; }
19494
# Provide some information about the compiler.
19495
echo "$as_me:$LINENO: checking for C compiler version" >&5
19496
ac_compiler=`set X $ac_compile; echo $2`
19497
{ (ac_try="$ac_compiler --version >&5"
19498
case "(($ac_try" in
19499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500
*) ac_try_echo=$ac_try;;
19502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503
(eval "$ac_compiler --version >&5") 2>&5
19505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506
(exit $ac_status); }
19507
{ (ac_try="$ac_compiler -v >&5"
19508
case "(($ac_try" in
19509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510
*) ac_try_echo=$ac_try;;
19512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513
(eval "$ac_compiler -v >&5") 2>&5
19515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516
(exit $ac_status); }
19517
{ (ac_try="$ac_compiler -V >&5"
19518
case "(($ac_try" in
19519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520
*) ac_try_echo=$ac_try;;
19522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523
(eval "$ac_compiler -V >&5") 2>&5
19525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526
(exit $ac_status); }
19528
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19529
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19530
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19531
echo $ECHO_N "(cached) $ECHO_C" >&6
19533
cat >conftest.$ac_ext <<_ACEOF
19536
cat confdefs.h >>conftest.$ac_ext
19537
cat >>conftest.$ac_ext <<_ACEOF
19538
/* end confdefs.h. */
19551
rm -f conftest.$ac_objext
19552
if { (ac_try="$ac_compile"
19553
case "(($ac_try" in
19554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555
*) ac_try_echo=$ac_try;;
19557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558
(eval "$ac_compile") 2>conftest.er1
19560
grep -v '^ *+' conftest.er1 >conftest.err
19562
cat conftest.err >&5
19563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564
(exit $ac_status); } && {
19565
test -z "$ac_c_werror_flag" ||
19566
test ! -s conftest.err
19567
} && test -s conftest.$ac_objext; then
19568
ac_compiler_gnu=yes
19570
echo "$as_me: failed program was:" >&5
19571
sed 's/^/| /' conftest.$ac_ext >&5
19576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19580
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19581
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19582
GCC=`test $ac_compiler_gnu = yes && echo yes`
19583
ac_test_CFLAGS=${CFLAGS+set}
19584
ac_save_CFLAGS=$CFLAGS
19585
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19586
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19587
if test "${ac_cv_prog_cc_g+set}" = set; then
19588
echo $ECHO_N "(cached) $ECHO_C" >&6
19590
ac_save_c_werror_flag=$ac_c_werror_flag
19591
ac_c_werror_flag=yes
19594
cat >conftest.$ac_ext <<_ACEOF
19597
cat confdefs.h >>conftest.$ac_ext
19598
cat >>conftest.$ac_ext <<_ACEOF
19599
/* end confdefs.h. */
19609
rm -f conftest.$ac_objext
19610
if { (ac_try="$ac_compile"
19611
case "(($ac_try" in
19612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613
*) ac_try_echo=$ac_try;;
19615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616
(eval "$ac_compile") 2>conftest.er1
19618
grep -v '^ *+' conftest.er1 >conftest.err
19620
cat conftest.err >&5
19621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622
(exit $ac_status); } && {
19623
test -z "$ac_c_werror_flag" ||
19624
test ! -s conftest.err
19625
} && test -s conftest.$ac_objext; then
19626
ac_cv_prog_cc_g=yes
19628
echo "$as_me: failed program was:" >&5
19629
sed 's/^/| /' conftest.$ac_ext >&5
19632
cat >conftest.$ac_ext <<_ACEOF
19635
cat confdefs.h >>conftest.$ac_ext
19636
cat >>conftest.$ac_ext <<_ACEOF
19637
/* end confdefs.h. */
19647
rm -f conftest.$ac_objext
19648
if { (ac_try="$ac_compile"
19649
case "(($ac_try" in
19650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651
*) ac_try_echo=$ac_try;;
19653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654
(eval "$ac_compile") 2>conftest.er1
19656
grep -v '^ *+' conftest.er1 >conftest.err
19658
cat conftest.err >&5
19659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660
(exit $ac_status); } && {
19661
test -z "$ac_c_werror_flag" ||
19662
test ! -s conftest.err
19663
} && test -s conftest.$ac_objext; then
19666
echo "$as_me: failed program was:" >&5
19667
sed 's/^/| /' conftest.$ac_ext >&5
19669
ac_c_werror_flag=$ac_save_c_werror_flag
19671
cat >conftest.$ac_ext <<_ACEOF
19674
cat confdefs.h >>conftest.$ac_ext
19675
cat >>conftest.$ac_ext <<_ACEOF
19676
/* end confdefs.h. */
19686
rm -f conftest.$ac_objext
19687
if { (ac_try="$ac_compile"
19688
case "(($ac_try" in
19689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690
*) ac_try_echo=$ac_try;;
19692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693
(eval "$ac_compile") 2>conftest.er1
19695
grep -v '^ *+' conftest.er1 >conftest.err
19697
cat conftest.err >&5
19698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699
(exit $ac_status); } && {
19700
test -z "$ac_c_werror_flag" ||
19701
test ! -s conftest.err
19702
} && test -s conftest.$ac_objext; then
19703
ac_cv_prog_cc_g=yes
19705
echo "$as_me: failed program was:" >&5
19706
sed 's/^/| /' conftest.$ac_ext >&5
19711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718
ac_c_werror_flag=$ac_save_c_werror_flag
19720
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19721
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19722
if test "$ac_test_CFLAGS" = set; then
19723
CFLAGS=$ac_save_CFLAGS
19724
elif test $ac_cv_prog_cc_g = yes; then
19725
if test "$GCC" = yes; then
19731
if test "$GCC" = yes; then
19737
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19738
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19739
if test "${ac_cv_prog_cc_c89+set}" = set; then
19740
echo $ECHO_N "(cached) $ECHO_C" >&6
19742
ac_cv_prog_cc_c89=no
19744
cat >conftest.$ac_ext <<_ACEOF
19747
cat confdefs.h >>conftest.$ac_ext
19748
cat >>conftest.$ac_ext <<_ACEOF
19749
/* end confdefs.h. */
19750
#include <stdarg.h>
19752
#include <sys/types.h>
19753
#include <sys/stat.h>
19754
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19755
struct buf { int x; };
19756
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19757
static char *e (p, i)
19763
static char *f (char * (*g) (char **, int), char **p, ...)
19768
s = g (p, va_arg (v,int));
19773
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19774
function prototypes and stuff, but not '\xHH' hex character constants.
19775
These don't provoke an error unfortunately, instead are silently treated
19776
as 'x'. The following induces an error, until -std is added to get
19777
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19778
array size at least. It's necessary to write '\x00'==0 to get something
19779
that's true only with -std. */
19780
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19782
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19783
inside strings and character constants. */
19785
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19787
int test (int i, double x);
19788
struct s1 {int (*f) (int a);};
19789
struct s2 {int (*f) (double a);};
19790
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19796
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19801
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19802
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19804
CC="$ac_save_CC $ac_arg"
19805
rm -f conftest.$ac_objext
19806
if { (ac_try="$ac_compile"
19807
case "(($ac_try" in
19808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809
*) ac_try_echo=$ac_try;;
19811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812
(eval "$ac_compile") 2>conftest.er1
19814
grep -v '^ *+' conftest.er1 >conftest.err
19816
cat conftest.err >&5
19817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818
(exit $ac_status); } && {
19819
test -z "$ac_c_werror_flag" ||
19820
test ! -s conftest.err
19821
} && test -s conftest.$ac_objext; then
19822
ac_cv_prog_cc_c89=$ac_arg
19824
echo "$as_me: failed program was:" >&5
19825
sed 's/^/| /' conftest.$ac_ext >&5
19830
rm -f core conftest.err conftest.$ac_objext
19831
test "x$ac_cv_prog_cc_c89" != "xno" && break
19833
rm -f conftest.$ac_ext
19838
case "x$ac_cv_prog_cc_c89" in
19840
{ echo "$as_me:$LINENO: result: none needed" >&5
19841
echo "${ECHO_T}none needed" >&6; } ;;
19843
{ echo "$as_me:$LINENO: result: unsupported" >&5
19844
echo "${ECHO_T}unsupported" >&6; } ;;
19846
CC="$CC $ac_cv_prog_cc_c89"
19847
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19848
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19853
ac_cpp='$CPP $CPPFLAGS'
19854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19858
depcc="$CC" am_compiler_list=
19860
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19861
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19862
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19863
echo $ECHO_N "(cached) $ECHO_C" >&6
19865
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19866
# We make a subdir and do the tests there. Otherwise we can end up
19867
# making bogus files that we don't know about and never remove. For
19868
# instance it was reported that on HP-UX the gcc test will end up
19869
# making a dummy file named `D' -- because `-MD' means `put the output
19872
# Copy depcomp to subdir because otherwise we won't find it if we're
19873
# using a relative directory.
19874
cp "$am_depcomp" conftest.dir
19876
# We will build objects and dependencies in a subdirectory because
19877
# it helps to detect inapplicable dependency modes. For instance
19878
# both Tru64's cc and ICC support -MD to output dependencies as a
19879
# side effect of compilation, but ICC will put the dependencies in
19880
# the current directory while Tru64 will put them in the object
19884
am_cv_CC_dependencies_compiler_type=none
19885
if test "$am_compiler_list" = ""; then
19886
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19888
for depmode in $am_compiler_list; do
19889
# Setup a source with many dependencies, because some compilers
19890
# like to wrap large dependency lists on column 80 (with \), and
19891
# we should not choose a depcomp mode which is confused by this.
19893
# We need to recreate these files for each test, as the compiler may
19894
# overwrite some of them when testing with obscure command lines.
19895
# This happens at least with the AIX C compiler.
19897
for i in 1 2 3 4 5 6; do
19898
echo '#include "conftst'$i'.h"' >> sub/conftest.c
19899
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19900
# Solaris 8's {/usr,}/bin/sh.
19901
touch sub/conftst$i.h
19903
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19907
# after this tag, mechanisms are not by side-effect, so they'll
19908
# only be used when explicitly requested
19909
if test "x$enable_dependency_tracking" = xyes; then
19917
# We check with `-c' and `-o' for the sake of the "dashmstdout"
19918
# mode. It turns out that the SunPro C++ compiler does not properly
19919
# handle `-M -o', and we need to detect this.
19920
if depmode=$depmode \
19921
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19922
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19923
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19924
>/dev/null 2>conftest.err &&
19925
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19926
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19927
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19928
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19929
# icc doesn't choke on unknown options, it will just issue warnings
19930
# or remarks (even with -Werror). So we grep stderr for any message
19931
# that says an option was ignored or not supported.
19932
# When given -MP, icc 7.0 and 7.1 complain thusly:
19933
# icc: Command line warning: ignoring option '-M'; no argument required
19934
# The diagnosis changed in icc 8.0:
19935
# icc: Command line remark: option '-MP' not supported
19936
if (grep 'ignoring option' conftest.err ||
19937
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19938
am_cv_CC_dependencies_compiler_type=$depmode
19945
rm -rf conftest.dir
19947
am_cv_CC_dependencies_compiler_type=none
19951
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19952
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19953
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19956
test "x$enable_dependency_tracking" != xno \
19957
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19958
am__fastdepCC_TRUE=
19959
am__fastdepCC_FALSE='#'
19961
am__fastdepCC_TRUE='#'
19962
am__fastdepCC_FALSE=
19970
#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
19972
#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
19973
# [Build XInput support (default: yes)]),
19974
# [XINPUT=$enableval],[XINPUT=yes])
19975
#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
19976
#if test "x$XINPUT" = "xyes" ; then
19977
# AC_DEFINE(XINPUT,1,[Enable XInput support])
19980
#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
19981
# [Build XKB support (default: yes)]),
19982
# [XKB=$enableval],[XKB=yes])
19983
#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
19984
#if test "x$XKB" = "xyes" ; then
19985
# AC_DEFINE(XKB,1,[Enable XKB support])
19989
# Check whether --with-xorg-module-dir was given.
19990
if test "${with_xorg_module_dir+set}" = set; then
19991
withval=$with_xorg_module_dir; moduledir="$withval"
19993
moduledir="$libdir/xorg/modules"
19996
inputdir=${moduledir}/input
19999
# Checks for extensions
20001
SAVE_CFLAGS="$CFLAGS"
20002
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20003
cat >conftest.$ac_ext <<_ACEOF
20006
cat confdefs.h >>conftest.$ac_ext
20007
cat >>conftest.$ac_ext <<_ACEOF
20008
/* end confdefs.h. */
20010
#include "xorg-server.h"
20012
#error RANDR not defined
20023
rm -f conftest.$ac_objext
20024
if { (ac_try="$ac_compile"
20025
case "(($ac_try" in
20026
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027
*) ac_try_echo=$ac_try;;
20029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030
(eval "$ac_compile") 2>conftest.er1
20032
grep -v '^ *+' conftest.er1 >conftest.err
20034
cat conftest.err >&5
20035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036
(exit $ac_status); } && {
20037
test -z "$ac_c_werror_flag" ||
20038
test ! -s conftest.err
20039
} && test -s conftest.$ac_objext; then
20042
echo "$as_me: failed program was:" >&5
20043
sed 's/^/| /' conftest.$ac_ext >&5
20048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049
CFLAGS="$SAVE_CFLAGS"
20050
{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20051
echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20052
{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20053
echo "${ECHO_T}$_EXT_CHECK" >&6; }
20054
if test "$_EXT_CHECK" != no; then
20055
REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20059
SAVE_CFLAGS="$CFLAGS"
20060
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20061
cat >conftest.$ac_ext <<_ACEOF
20064
cat confdefs.h >>conftest.$ac_ext
20065
cat >>conftest.$ac_ext <<_ACEOF
20066
/* end confdefs.h. */
20068
#include "xorg-server.h"
20069
#if !defined XINPUT
20070
#error XINPUT not defined
20081
rm -f conftest.$ac_objext
20082
if { (ac_try="$ac_compile"
20083
case "(($ac_try" in
20084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085
*) ac_try_echo=$ac_try;;
20087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088
(eval "$ac_compile") 2>conftest.er1
20090
grep -v '^ *+' conftest.er1 >conftest.err
20092
cat conftest.err >&5
20093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094
(exit $ac_status); } && {
20095
test -z "$ac_c_werror_flag" ||
20096
test ! -s conftest.err
20097
} && test -s conftest.$ac_objext; then
20100
echo "$as_me: failed program was:" >&5
20101
sed 's/^/| /' conftest.$ac_ext >&5
20106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107
CFLAGS="$SAVE_CFLAGS"
20108
{ echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
20109
echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6; }
20110
{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20111
echo "${ECHO_T}$_EXT_CHECK" >&6; }
20112
if test "$_EXT_CHECK" != no; then
20113
REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20117
# Checks for pkg-config packages
20120
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20121
if test -n "$ac_tool_prefix"; then
20122
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20123
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20124
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20126
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20127
echo $ECHO_N "(cached) $ECHO_C" >&6
20129
case $PKG_CONFIG in
20131
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20135
for as_dir in $PATH
20138
test -z "$as_dir" && as_dir=.
20139
for ac_exec_ext in '' $ac_executable_extensions; do
20140
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20141
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20142
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20152
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20153
if test -n "$PKG_CONFIG"; then
20154
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20155
echo "${ECHO_T}$PKG_CONFIG" >&6; }
20157
{ echo "$as_me:$LINENO: result: no" >&5
20158
echo "${ECHO_T}no" >&6; }
20163
if test -z "$ac_cv_path_PKG_CONFIG"; then
20164
ac_pt_PKG_CONFIG=$PKG_CONFIG
20165
# Extract the first word of "pkg-config", so it can be a program name with args.
20166
set dummy pkg-config; ac_word=$2
20167
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20169
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20170
echo $ECHO_N "(cached) $ECHO_C" >&6
20172
case $ac_pt_PKG_CONFIG in
20174
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20178
for as_dir in $PATH
20181
test -z "$as_dir" && as_dir=.
20182
for ac_exec_ext in '' $ac_executable_extensions; do
20183
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20184
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20185
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20195
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20196
if test -n "$ac_pt_PKG_CONFIG"; then
20197
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20198
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20200
{ echo "$as_me:$LINENO: result: no" >&5
20201
echo "${ECHO_T}no" >&6; }
20204
if test "x$ac_pt_PKG_CONFIG" = x; then
20207
case $cross_compiling:$ac_tool_warned in
20209
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20210
whose name does not start with the host triplet. If you think this
20211
configuration is useful to you, please write to autoconf@gnu.org." >&5
20212
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20213
whose name does not start with the host triplet. If you think this
20214
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20215
ac_tool_warned=yes ;;
20217
PKG_CONFIG=$ac_pt_PKG_CONFIG
20220
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20224
if test -n "$PKG_CONFIG"; then
20225
_pkg_min_version=0.9.0
20226
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20227
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20228
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20229
{ echo "$as_me:$LINENO: result: yes" >&5
20230
echo "${ECHO_T}yes" >&6; }
20232
{ echo "$as_me:$LINENO: result: no" >&5
20233
echo "${ECHO_T}no" >&6; }
20240
{ echo "$as_me:$LINENO: checking for XORG" >&5
20241
echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20243
if test -n "$PKG_CONFIG"; then
20244
if test -n "$XORG_CFLAGS"; then
20245
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20247
if test -n "$PKG_CONFIG" && \
20248
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
20249
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
20251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252
(exit $ac_status); }; then
20253
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
20261
if test -n "$PKG_CONFIG"; then
20262
if test -n "$XORG_LIBS"; then
20263
pkg_cv_XORG_LIBS="$XORG_LIBS"
20265
if test -n "$PKG_CONFIG" && \
20266
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
20267
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
20269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270
(exit $ac_status); }; then
20271
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
20282
if test $pkg_failed = yes; then
20284
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20285
_pkg_short_errors_supported=yes
20287
_pkg_short_errors_supported=no
20289
if test $_pkg_short_errors_supported = yes; then
20290
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
20292
XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
20294
# Put the nasty error message in config.log where it belongs
20295
echo "$XORG_PKG_ERRORS" >&5
20297
{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
20301
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20302
installed software in a non-standard prefix.
20304
Alternatively, you may set the environment variables XORG_CFLAGS
20305
and XORG_LIBS to avoid the need to call pkg-config.
20306
See the pkg-config man page for more details.
20308
echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
20312
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20313
installed software in a non-standard prefix.
20315
Alternatively, you may set the environment variables XORG_CFLAGS
20316
and XORG_LIBS to avoid the need to call pkg-config.
20317
See the pkg-config man page for more details.
20319
{ (exit 1); exit 1; }; }
20320
elif test $pkg_failed = untried; then
20321
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20322
is in your PATH or set the PKG_CONFIG environment variable to the full
20323
path to pkg-config.
20325
Alternatively, you may set the environment variables XORG_CFLAGS
20326
and XORG_LIBS to avoid the need to call pkg-config.
20327
See the pkg-config man page for more details.
20329
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20330
See \`config.log' for more details." >&5
20331
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20332
is in your PATH or set the PKG_CONFIG environment variable to the full
20333
path to pkg-config.
20335
Alternatively, you may set the environment variables XORG_CFLAGS
20336
and XORG_LIBS to avoid the need to call pkg-config.
20337
See the pkg-config man page for more details.
20339
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20340
See \`config.log' for more details." >&2;}
20341
{ (exit 1); exit 1; }; }
20343
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20344
XORG_LIBS=$pkg_cv_XORG_LIBS
20345
{ echo "$as_me:$LINENO: result: yes" >&5
20346
echo "${ECHO_T}yes" >&6; }
20349
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20351
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
20354
# Checks for libraries.
20356
# Checks for header files.
20357
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20358
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20359
if test "${ac_cv_header_stdc+set}" = set; then
20360
echo $ECHO_N "(cached) $ECHO_C" >&6
20362
cat >conftest.$ac_ext <<_ACEOF
20365
cat confdefs.h >>conftest.$ac_ext
20366
cat >>conftest.$ac_ext <<_ACEOF
20367
/* end confdefs.h. */
20368
#include <stdlib.h>
20369
#include <stdarg.h>
20370
#include <string.h>
20381
rm -f conftest.$ac_objext
20382
if { (ac_try="$ac_compile"
20383
case "(($ac_try" in
20384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385
*) ac_try_echo=$ac_try;;
20387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388
(eval "$ac_compile") 2>conftest.er1
20390
grep -v '^ *+' conftest.er1 >conftest.err
20392
cat conftest.err >&5
20393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394
(exit $ac_status); } && {
20395
test -z "$ac_c_werror_flag" ||
20396
test ! -s conftest.err
20397
} && test -s conftest.$ac_objext; then
20398
ac_cv_header_stdc=yes
20400
echo "$as_me: failed program was:" >&5
20401
sed 's/^/| /' conftest.$ac_ext >&5
20403
ac_cv_header_stdc=no
20406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20408
if test $ac_cv_header_stdc = yes; then
20409
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20410
cat >conftest.$ac_ext <<_ACEOF
20413
cat confdefs.h >>conftest.$ac_ext
20414
cat >>conftest.$ac_ext <<_ACEOF
20415
/* end confdefs.h. */
20416
#include <string.h>
20419
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20420
$EGREP "memchr" >/dev/null 2>&1; then
20423
ac_cv_header_stdc=no
20429
if test $ac_cv_header_stdc = yes; then
20430
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20431
cat >conftest.$ac_ext <<_ACEOF
20434
cat confdefs.h >>conftest.$ac_ext
20435
cat >>conftest.$ac_ext <<_ACEOF
20436
/* end confdefs.h. */
20437
#include <stdlib.h>
20440
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20441
$EGREP "free" >/dev/null 2>&1; then
20444
ac_cv_header_stdc=no
20450
if test $ac_cv_header_stdc = yes; then
20451
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20452
if test "$cross_compiling" = yes; then
20455
cat >conftest.$ac_ext <<_ACEOF
20458
cat confdefs.h >>conftest.$ac_ext
20459
cat >>conftest.$ac_ext <<_ACEOF
20460
/* end confdefs.h. */
20462
#include <stdlib.h>
20463
#if ((' ' & 0x0FF) == 0x020)
20464
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20465
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20467
# define ISLOWER(c) \
20468
(('a' <= (c) && (c) <= 'i') \
20469
|| ('j' <= (c) && (c) <= 'r') \
20470
|| ('s' <= (c) && (c) <= 'z'))
20471
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20474
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20479
for (i = 0; i < 256; i++)
20480
if (XOR (islower (i), ISLOWER (i))
20481
|| toupper (i) != TOUPPER (i))
20486
rm -f conftest$ac_exeext
20487
if { (ac_try="$ac_link"
20488
case "(($ac_try" in
20489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490
*) ac_try_echo=$ac_try;;
20492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493
(eval "$ac_link") 2>&5
20495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20497
{ (case "(($ac_try" in
20498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499
*) ac_try_echo=$ac_try;;
20501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502
(eval "$ac_try") 2>&5
20504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505
(exit $ac_status); }; }; then
20508
echo "$as_me: program exited with status $ac_status" >&5
20509
echo "$as_me: failed program was:" >&5
20510
sed 's/^/| /' conftest.$ac_ext >&5
20512
( exit $ac_status )
20513
ac_cv_header_stdc=no
20515
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20521
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20522
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20523
if test $ac_cv_header_stdc = yes; then
20525
cat >>confdefs.h <<\_ACEOF
20526
#define STDC_HEADERS 1
20531
if test "${ac_cv_header_linux_input_h+set}" = set; then
20532
{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
20533
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
20534
if test "${ac_cv_header_linux_input_h+set}" = set; then
20535
echo $ECHO_N "(cached) $ECHO_C" >&6
20537
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
20538
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
20540
# Is the header compilable?
20541
{ echo "$as_me:$LINENO: checking linux/input.h usability" >&5
20542
echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
20543
cat >conftest.$ac_ext <<_ACEOF
20546
cat confdefs.h >>conftest.$ac_ext
20547
cat >>conftest.$ac_ext <<_ACEOF
20548
/* end confdefs.h. */
20549
$ac_includes_default
20550
#include <linux/input.h>
20552
rm -f conftest.$ac_objext
20553
if { (ac_try="$ac_compile"
20554
case "(($ac_try" in
20555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556
*) ac_try_echo=$ac_try;;
20558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559
(eval "$ac_compile") 2>conftest.er1
20561
grep -v '^ *+' conftest.er1 >conftest.err
20563
cat conftest.err >&5
20564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565
(exit $ac_status); } && {
20566
test -z "$ac_c_werror_flag" ||
20567
test ! -s conftest.err
20568
} && test -s conftest.$ac_objext; then
20569
ac_header_compiler=yes
20571
echo "$as_me: failed program was:" >&5
20572
sed 's/^/| /' conftest.$ac_ext >&5
20574
ac_header_compiler=no
20577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20579
echo "${ECHO_T}$ac_header_compiler" >&6; }
20581
# Is the header present?
20582
{ echo "$as_me:$LINENO: checking linux/input.h presence" >&5
20583
echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
20584
cat >conftest.$ac_ext <<_ACEOF
20587
cat confdefs.h >>conftest.$ac_ext
20588
cat >>conftest.$ac_ext <<_ACEOF
20589
/* end confdefs.h. */
20590
#include <linux/input.h>
20592
if { (ac_try="$ac_cpp conftest.$ac_ext"
20593
case "(($ac_try" in
20594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595
*) ac_try_echo=$ac_try;;
20597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20600
grep -v '^ *+' conftest.er1 >conftest.err
20602
cat conftest.err >&5
20603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604
(exit $ac_status); } >/dev/null && {
20605
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20606
test ! -s conftest.err
20608
ac_header_preproc=yes
20610
echo "$as_me: failed program was:" >&5
20611
sed 's/^/| /' conftest.$ac_ext >&5
20613
ac_header_preproc=no
20616
rm -f conftest.err conftest.$ac_ext
20617
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20618
echo "${ECHO_T}$ac_header_preproc" >&6; }
20620
# So? What about this header?
20621
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20623
{ echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
20624
echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20625
{ echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
20626
echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
20627
ac_header_preproc=yes
20630
{ echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
20631
echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
20632
{ echo "$as_me:$LINENO: WARNING: linux/input.h: check for missing prerequisite headers?" >&5
20633
echo "$as_me: WARNING: linux/input.h: check for missing prerequisite headers?" >&2;}
20634
{ echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
20635
echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
20636
{ echo "$as_me:$LINENO: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&5
20637
echo "$as_me: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&2;}
20638
{ echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
20639
echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
20640
{ echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
20641
echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
20643
## ------------------- ##
20644
## Report this to NULL ##
20645
## ------------------- ##
20647
) | sed "s/^/$as_me: WARNING: /" >&2
20650
{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
20651
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
20652
if test "${ac_cv_header_linux_input_h+set}" = set; then
20653
echo $ECHO_N "(cached) $ECHO_C" >&6
20655
ac_cv_header_linux_input_h=$ac_header_preproc
20657
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
20658
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
20661
if test $ac_cv_header_linux_input_h = yes; then
20663
cat >>confdefs.h <<\_ACEOF
20664
#define LINUX_INPUT 1
20671
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
20672
{ echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
20673
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
20674
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
20675
echo $ECHO_N "(cached) $ECHO_C" >&6
20677
{ echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
20678
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
20680
# Is the header compilable?
20681
{ echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
20682
echo $ECHO_N "checking sysfs/libsysfs.h usability... $ECHO_C" >&6; }
20683
cat >conftest.$ac_ext <<_ACEOF
20686
cat confdefs.h >>conftest.$ac_ext
20687
cat >>conftest.$ac_ext <<_ACEOF
20688
/* end confdefs.h. */
20689
$ac_includes_default
20690
#include <sysfs/libsysfs.h>
20692
rm -f conftest.$ac_objext
20693
if { (ac_try="$ac_compile"
20694
case "(($ac_try" in
20695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696
*) ac_try_echo=$ac_try;;
20698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699
(eval "$ac_compile") 2>conftest.er1
20701
grep -v '^ *+' conftest.er1 >conftest.err
20703
cat conftest.err >&5
20704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705
(exit $ac_status); } && {
20706
test -z "$ac_c_werror_flag" ||
20707
test ! -s conftest.err
20708
} && test -s conftest.$ac_objext; then
20709
ac_header_compiler=yes
20711
echo "$as_me: failed program was:" >&5
20712
sed 's/^/| /' conftest.$ac_ext >&5
20714
ac_header_compiler=no
20717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719
echo "${ECHO_T}$ac_header_compiler" >&6; }
20721
# Is the header present?
20722
{ echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
20723
echo $ECHO_N "checking sysfs/libsysfs.h presence... $ECHO_C" >&6; }
20724
cat >conftest.$ac_ext <<_ACEOF
20727
cat confdefs.h >>conftest.$ac_ext
20728
cat >>conftest.$ac_ext <<_ACEOF
20729
/* end confdefs.h. */
20730
#include <sysfs/libsysfs.h>
20732
if { (ac_try="$ac_cpp conftest.$ac_ext"
20733
case "(($ac_try" in
20734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735
*) ac_try_echo=$ac_try;;
20737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20740
grep -v '^ *+' conftest.er1 >conftest.err
20742
cat conftest.err >&5
20743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744
(exit $ac_status); } >/dev/null && {
20745
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746
test ! -s conftest.err
20748
ac_header_preproc=yes
20750
echo "$as_me: failed program was:" >&5
20751
sed 's/^/| /' conftest.$ac_ext >&5
20753
ac_header_preproc=no
20756
rm -f conftest.err conftest.$ac_ext
20757
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758
echo "${ECHO_T}$ac_header_preproc" >&6; }
20760
# So? What about this header?
20761
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20764
echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
20766
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
20767
ac_header_preproc=yes
20770
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
20771
echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
20772
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&5
20773
echo "$as_me: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&2;}
20774
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
20775
echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
20776
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&5
20777
echo "$as_me: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20778
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
20779
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
20780
{ echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
20781
echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
20783
## ------------------- ##
20784
## Report this to NULL ##
20785
## ------------------- ##
20787
) | sed "s/^/$as_me: WARNING: /" >&2
20790
{ echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
20791
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
20792
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
20793
echo $ECHO_N "(cached) $ECHO_C" >&6
20795
ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
20797
{ echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
20798
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
20801
if test $ac_cv_header_sysfs_libsysfs_h = yes; then
20803
cat >>confdefs.h <<\_ACEOF
20804
#define LINUX_SYSFS 1
20815
if test x$APP_MAN_SUFFIX = x ; then
20818
if test x$APP_MAN_DIR = x ; then
20819
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20822
if test x$LIB_MAN_SUFFIX = x ; then
20825
if test x$LIB_MAN_DIR = x ; then
20826
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20829
if test x$FILE_MAN_SUFFIX = x ; then
20831
solaris*) FILE_MAN_SUFFIX=4 ;;
20832
*) FILE_MAN_SUFFIX=5 ;;
20835
if test x$FILE_MAN_DIR = x ; then
20836
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20839
if test x$MISC_MAN_SUFFIX = x ; then
20841
solaris*) MISC_MAN_SUFFIX=5 ;;
20842
*) MISC_MAN_SUFFIX=7 ;;
20845
if test x$MISC_MAN_DIR = x ; then
20846
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20849
if test x$DRIVER_MAN_SUFFIX = x ; then
20851
solaris*) DRIVER_MAN_SUFFIX=7 ;;
20852
*) DRIVER_MAN_SUFFIX=4 ;;
20855
if test x$DRIVER_MAN_DIR = x ; then
20856
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20859
if test x$ADMIN_MAN_SUFFIX = x ; then
20861
solaris*) ADMIN_MAN_SUFFIX=1m ;;
20862
*) ADMIN_MAN_SUFFIX=8 ;;
20865
if test x$ADMIN_MAN_DIR = x ; then
20866
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20885
# Check whether --with-release-version was given.
20886
if test "${with_release_version+set}" = set; then
20887
withval=$with_release_version; RELEASE_VERSION="$withval"
20892
if test "x$RELEASE_VERSION" != "x"; then
20893
PACKAGE="$PACKAGE-$RELEASE_VERSION"
20894
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20895
{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20896
echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20899
cat >>confdefs.h <<_ACEOF
20900
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20903
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
20904
if test "x$PVM" = "x"; then
20908
cat >>confdefs.h <<_ACEOF
20909
#define PACKAGE_VERSION_MINOR $PVM
20912
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
20913
if test "x$PVP" = "x"; then
20917
cat >>confdefs.h <<_ACEOF
20918
#define PACKAGE_VERSION_PATCHLEVEL $PVP
20923
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20925
cat >confcache <<\_ACEOF
20926
# This file is a shell script that caches the results of configure
20927
# tests run on this system so they can be shared between configure
20928
# scripts and configure runs, see configure's option --config-cache.
20929
# It is not useful on other systems. If it contains results you don't
20930
# want to keep, you may remove or edit it.
20932
# config.status only pays attention to the cache file if you give it
20933
# the --recheck option to rerun configure.
20935
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20936
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20937
# following values.
20941
# The following way of writing the cache mishandles newlines in values,
20942
# but we know of no workaround that is simple, portable, and efficient.
20943
# So, we kill variables containing newlines.
20944
# Ultrix sh set writes to stderr and can't be redirected directly,
20945
# and sets the high bit in the cache file unless we assign to the vars.
20947
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20948
eval ac_val=\$$ac_var
20952
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20953
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20956
_ | IFS | as_nl) ;; #(
20957
*) $as_unset $ac_var ;;
20963
case $as_nl`(ac_space=' '; set) 2>&1` in #(
20964
*${as_nl}ac_space=\ *)
20965
# `set' does not quote correctly, so add quotes (double-quote
20966
# substitution turns \\\\ into \\, and sed turns \\ into \).
20969
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20972
# `set' quotes correctly as required by POSIX, so do not add quotes.
20973
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20982
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20984
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20986
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20987
if test -w "$cache_file"; then
20988
test "x$cache_file" != "x/dev/null" &&
20989
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
20990
echo "$as_me: updating cache $cache_file" >&6;}
20991
cat confcache >$cache_file
20993
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20994
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20999
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21000
# Let make expand exec_prefix.
21001
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21003
DEFS=-DHAVE_CONFIG_H
21007
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21008
# 1. Remove the extension, and $U if already installed.
21009
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21010
ac_i=`echo "$ac_i" | sed "$ac_script"`
21011
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21012
# will be set to the directory where LIBOBJS objects are built.
21013
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21014
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21016
LIBOBJS=$ac_libobjs
21018
LTLIBOBJS=$ac_ltlibobjs
21021
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21022
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21023
Usually this means the macro was only invoked conditionally." >&5
21024
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21025
Usually this means the macro was only invoked conditionally." >&2;}
21026
{ (exit 1); exit 1; }; }
21028
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21029
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21030
Usually this means the macro was only invoked conditionally." >&5
21031
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21032
Usually this means the macro was only invoked conditionally." >&2;}
21033
{ (exit 1); exit 1; }; }
21035
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21036
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21037
Usually this means the macro was only invoked conditionally." >&5
21038
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21039
Usually this means the macro was only invoked conditionally." >&2;}
21040
{ (exit 1); exit 1; }; }
21042
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21043
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21044
Usually this means the macro was only invoked conditionally." >&5
21045
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21046
Usually this means the macro was only invoked conditionally." >&2;}
21047
{ (exit 1); exit 1; }; }
21049
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21050
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21051
Usually this means the macro was only invoked conditionally." >&5
21052
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21053
Usually this means the macro was only invoked conditionally." >&2;}
21054
{ (exit 1); exit 1; }; }
21057
: ${CONFIG_STATUS=./config.status}
21058
ac_clean_files_save=$ac_clean_files
21059
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21060
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21061
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21062
cat >$CONFIG_STATUS <<_ACEOF
21064
# Generated by $as_me.
21065
# Run this file to recreate the current configuration.
21066
# Compiler output produced by configure, useful for debugging
21067
# configure, is in config.log if it exists.
21070
ac_cs_recheck=false
21072
SHELL=\${CONFIG_SHELL-$SHELL}
21075
cat >>$CONFIG_STATUS <<\_ACEOF
21076
## --------------------- ##
21077
## M4sh Initialization. ##
21078
## --------------------- ##
21080
# Be more Bourne compatible
21081
DUALCASE=1; export DUALCASE # for MKS sh
21082
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21085
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21086
# is contrary to our usage. Disable this feature.
21087
alias -g '${1+"$@"}'='"$@"'
21088
setopt NO_GLOB_SUBST
21090
case `(set -o) 2>/dev/null` in
21091
*posix*) set -o posix ;;
21100
# Avoid depending upon Character Ranges.
21101
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21102
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21103
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21104
as_cr_digits='0123456789'
21105
as_cr_alnum=$as_cr_Letters$as_cr_digits
21107
# The user is always right.
21108
if test "${PATH_SEPARATOR+set}" != set; then
21109
echo "#! /bin/sh" >conf$$.sh
21110
echo "exit 0" >>conf$$.sh
21112
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21120
# Support unset when possible.
21121
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21129
# We need space, tab and new line, in precisely that order. Quoting is
21130
# there to prevent editors from complaining about space-tab.
21131
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21132
# splitting by setting IFS to empty value.)
21137
# Find who we are. Look in the path if we contain no directory separator.
21139
*[\\/]* ) as_myself=$0 ;;
21140
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21141
for as_dir in $PATH
21144
test -z "$as_dir" && as_dir=.
21145
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21151
# We did not find ourselves, most probably we were run as `sh COMMAND'
21152
# in which case we are not to be found in the path.
21153
if test "x$as_myself" = x; then
21156
if test ! -f "$as_myself"; then
21157
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21158
{ (exit 1); exit 1; }
21161
# Work around bugs in pre-3.0 UWIN ksh.
21162
for as_var in ENV MAIL MAILPATH
21163
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21171
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21172
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21173
LC_TELEPHONE LC_TIME
21175
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21176
eval $as_var=C; export $as_var
21178
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21182
# Required to use basename.
21183
if expr a : '\(a\)' >/dev/null 2>&1 &&
21184
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21190
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21191
as_basename=basename
21197
# Name of the executable.
21198
as_me=`$as_basename -- "$0" ||
21199
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21200
X"$0" : 'X\(//\)$' \| \
21201
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21203
sed '/^.*\/\([^/][^/]*\)\/*$/{
21222
as_lineno_1=$LINENO
21223
as_lineno_2=$LINENO
21224
test "x$as_lineno_1" != "x$as_lineno_2" &&
21225
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21227
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21228
# uniformly replaced by the line number. The first 'sed' inserts a
21229
# line-number line after each line using $LINENO; the second 'sed'
21230
# does the real work. The second script uses 'N' to pair each
21231
# line-number line with the line containing $LINENO, and appends
21232
# trailing '-' during substitution so that $LINENO is not a special
21233
# case at line end.
21234
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21235
# scripts with optimization help from Paolo Bonzini. Blame Lee
21236
# E. McMahon (1931-1989) for sed's syntax. :-)
21248
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21251
' >$as_me.lineno &&
21252
chmod +x "$as_me.lineno" ||
21253
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21254
{ (exit 1); exit 1; }; }
21256
# Don't try to exec as it changes $[0], causing all sort of problems
21257
# (the dirname of $[0] is not the place where we might find the
21258
# original and so on. Autoconf is especially sensitive to this).
21259
. "./$as_me.lineno"
21260
# Exit status is that of the last command.
21265
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21271
ECHO_C= ECHO_N= ECHO_T=
21272
case `echo -n x` in
21274
case `echo 'x\c'` in
21275
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
21282
if expr a : '\(a\)' >/dev/null 2>&1 &&
21283
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21289
rm -f conf$$ conf$$.exe conf$$.file
21290
if test -d conf$$.dir; then
21291
rm -f conf$$.dir/conf$$.file
21297
if ln -s conf$$.file conf$$ 2>/dev/null; then
21299
# ... but there are two gotchas:
21300
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21301
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21302
# In both cases, we have to default to `cp -p'.
21303
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21305
elif ln conf$$.file conf$$ 2>/dev/null; then
21310
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21311
rmdir conf$$.dir 2>/dev/null
21313
if mkdir -p . 2>/dev/null; then
21316
test -d ./-p && rmdir ./-p
21320
if test -x / >/dev/null 2>&1; then
21321
as_test_x='test -x'
21323
if ls -dL / >/dev/null 2>&1; then
21330
if test -d "$1"; then
21336
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21337
???[sx]*):;;*)false;;esac;fi
21341
as_executable_p=$as_test_x
21343
# Sed expression to map a string onto a valid CPP name.
21344
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21346
# Sed expression to map a string onto a valid variable name.
21347
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21352
# Save the log message, to keep $[0] and so on meaningful, and to
21353
# report actual input values of CONFIG_FILES etc. instead of their
21354
# values after options handling.
21356
This file was extended by wizardpen $as_me 1.0.0, which was
21357
generated by GNU Autoconf 2.61. Invocation command line was
21359
CONFIG_FILES = $CONFIG_FILES
21360
CONFIG_HEADERS = $CONFIG_HEADERS
21361
CONFIG_LINKS = $CONFIG_LINKS
21362
CONFIG_COMMANDS = $CONFIG_COMMANDS
21365
on `(hostname || uname -n) 2>/dev/null | sed 1q`
21370
cat >>$CONFIG_STATUS <<_ACEOF
21371
# Files that config.status was made for.
21372
config_files="$ac_config_files"
21373
config_headers="$ac_config_headers"
21374
config_commands="$ac_config_commands"
21378
cat >>$CONFIG_STATUS <<\_ACEOF
21380
\`$as_me' instantiates files from templates according to the
21381
current configuration.
21383
Usage: $0 [OPTIONS] [FILE]...
21385
-h, --help print this help, then exit
21386
-V, --version print version number and configuration settings, then exit
21387
-q, --quiet do not print progress messages
21388
-d, --debug don't remove temporary files
21389
--recheck update $as_me by reconfiguring in the same conditions
21390
--file=FILE[:TEMPLATE]
21391
instantiate the configuration file FILE
21392
--header=FILE[:TEMPLATE]
21393
instantiate the configuration header FILE
21395
Configuration files:
21398
Configuration headers:
21401
Configuration commands:
21404
Report bugs to <bug-autoconf@gnu.org>."
21407
cat >>$CONFIG_STATUS <<_ACEOF
21409
wizardpen config.status 1.0.0
21410
configured by $0, generated by GNU Autoconf 2.61,
21411
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21413
Copyright (C) 2006 Free Software Foundation, Inc.
21414
This config.status script is free software; the Free Software Foundation
21415
gives unlimited permission to copy, distribute and modify it."
21423
cat >>$CONFIG_STATUS <<\_ACEOF
21424
# If no file are specified by the user, then we need to provide default
21425
# value. By we need to know if files were specified by the user.
21431
ac_option=`expr "X$1" : 'X\([^=]*\)='`
21432
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21443
# Handling of the options.
21444
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21446
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21447
echo "$ac_cs_version"; exit ;;
21448
--debug | --debu | --deb | --de | --d | -d )
21450
--file | --fil | --fi | --f )
21452
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21453
ac_need_defaults=false;;
21454
--header | --heade | --head | --hea )
21456
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21457
ac_need_defaults=false;;
21459
# Conflict between --help and --header
21460
{ echo "$as_me: error: ambiguous option: $1
21461
Try \`$0 --help' for more information." >&2
21462
{ (exit 1); exit 1; }; };;
21463
--help | --hel | -h )
21464
echo "$ac_cs_usage"; exit ;;
21465
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21466
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21469
# This is an error.
21470
-*) { echo "$as_me: error: unrecognized option: $1
21471
Try \`$0 --help' for more information." >&2
21472
{ (exit 1); exit 1; }; } ;;
21474
*) ac_config_targets="$ac_config_targets $1"
21475
ac_need_defaults=false ;;
21481
ac_configure_extra_args=
21483
if $ac_cs_silent; then
21485
ac_configure_extra_args="$ac_configure_extra_args --silent"
21489
cat >>$CONFIG_STATUS <<_ACEOF
21490
if \$ac_cs_recheck; then
21491
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21492
CONFIG_SHELL=$SHELL
21493
export CONFIG_SHELL
21494
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21498
cat >>$CONFIG_STATUS <<\_ACEOF
21502
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21503
## Running $as_me. ##
21509
cat >>$CONFIG_STATUS <<_ACEOF
21513
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21517
cat >>$CONFIG_STATUS <<\_ACEOF
21519
# Handling of arguments.
21520
for ac_config_target in $ac_config_targets
21522
case $ac_config_target in
21523
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21524
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21525
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21526
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21527
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21529
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21530
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21531
{ (exit 1); exit 1; }; };;
21536
# If the user did not use the arguments to specify the items to instantiate,
21537
# then the envvar interface is used. Set only those that are not.
21538
# We use the long form for the default assignment because of an extremely
21539
# bizarre bug on SunOS 4.1.3.
21540
if $ac_need_defaults; then
21541
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21542
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21543
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21546
# Have a temporary directory for convenience. Make it in the build tree
21547
# simply because there is no reason against having it here, and in addition,
21548
# creating and moving files from /tmp can sometimes cause problems.
21549
# Hook for its removal unless debugging.
21550
# Note that there is a small window in which the directory will not be cleaned:
21551
# after its creation but before its name has been assigned to `$tmp'.
21555
trap 'exit_status=$?
21556
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21558
trap '{ (exit 1); exit 1; }' 1 2 13 15
21560
# Create a (secure) tmp directory for tmp files.
21563
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21564
test -n "$tmp" && test -d "$tmp"
21567
tmp=./conf$$-$RANDOM
21568
(umask 077 && mkdir "$tmp")
21571
echo "$me: cannot create a temporary directory in ." >&2
21572
{ (exit 1); exit 1; }
21576
# Set up the sed scripts for CONFIG_FILES section.
21579
# No need to generate the scripts if there are no CONFIG_FILES.
21580
# This happens for instance when ./config.status config.h
21581
if test -n "$CONFIG_FILES"; then
21588
for ac_last_try in false false false false false :; do
21589
cat >conf$$subs.sed <<_ACEOF
21590
SHELL!$SHELL$ac_delim
21591
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21592
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21593
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21594
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21595
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21596
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21597
exec_prefix!$exec_prefix$ac_delim
21598
prefix!$prefix$ac_delim
21599
program_transform_name!$program_transform_name$ac_delim
21600
bindir!$bindir$ac_delim
21601
sbindir!$sbindir$ac_delim
21602
libexecdir!$libexecdir$ac_delim
21603
datarootdir!$datarootdir$ac_delim
21604
datadir!$datadir$ac_delim
21605
sysconfdir!$sysconfdir$ac_delim
21606
sharedstatedir!$sharedstatedir$ac_delim
21607
localstatedir!$localstatedir$ac_delim
21608
includedir!$includedir$ac_delim
21609
oldincludedir!$oldincludedir$ac_delim
21610
docdir!$docdir$ac_delim
21611
infodir!$infodir$ac_delim
21612
htmldir!$htmldir$ac_delim
21613
dvidir!$dvidir$ac_delim
21614
pdfdir!$pdfdir$ac_delim
21615
psdir!$psdir$ac_delim
21616
libdir!$libdir$ac_delim
21617
localedir!$localedir$ac_delim
21618
mandir!$mandir$ac_delim
21619
DEFS!$DEFS$ac_delim
21620
ECHO_C!$ECHO_C$ac_delim
21621
ECHO_N!$ECHO_N$ac_delim
21622
ECHO_T!$ECHO_T$ac_delim
21623
LIBS!$LIBS$ac_delim
21624
build_alias!$build_alias$ac_delim
21625
host_alias!$host_alias$ac_delim
21626
target_alias!$target_alias$ac_delim
21627
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21628
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21629
INSTALL_DATA!$INSTALL_DATA$ac_delim
21630
am__isrc!$am__isrc$ac_delim
21631
CYGPATH_W!$CYGPATH_W$ac_delim
21632
PACKAGE!$PACKAGE$ac_delim
21633
VERSION!$VERSION$ac_delim
21634
ACLOCAL!$ACLOCAL$ac_delim
21635
AUTOCONF!$AUTOCONF$ac_delim
21636
AUTOMAKE!$AUTOMAKE$ac_delim
21637
AUTOHEADER!$AUTOHEADER$ac_delim
21638
MAKEINFO!$MAKEINFO$ac_delim
21639
install_sh!$install_sh$ac_delim
21640
STRIP!$STRIP$ac_delim
21641
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21642
mkdir_p!$mkdir_p$ac_delim
21644
SET_MAKE!$SET_MAKE$ac_delim
21645
am__leading_dot!$am__leading_dot$ac_delim
21646
AMTAR!$AMTAR$ac_delim
21647
am__tar!$am__tar$ac_delim
21648
am__untar!$am__untar$ac_delim
21649
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21650
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21651
MAINT!$MAINT$ac_delim
21652
DRIVER_NAME!$DRIVER_NAME$ac_delim
21653
build!$build$ac_delim
21654
build_cpu!$build_cpu$ac_delim
21655
build_vendor!$build_vendor$ac_delim
21656
build_os!$build_os$ac_delim
21657
host!$host$ac_delim
21658
host_cpu!$host_cpu$ac_delim
21659
host_vendor!$host_vendor$ac_delim
21660
host_os!$host_os$ac_delim
21662
CFLAGS!$CFLAGS$ac_delim
21663
LDFLAGS!$LDFLAGS$ac_delim
21664
CPPFLAGS!$CPPFLAGS$ac_delim
21665
ac_ct_CC!$ac_ct_CC$ac_delim
21666
EXEEXT!$EXEEXT$ac_delim
21667
OBJEXT!$OBJEXT$ac_delim
21668
DEPDIR!$DEPDIR$ac_delim
21669
am__include!$am__include$ac_delim
21670
am__quote!$am__quote$ac_delim
21671
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21672
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21673
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21674
CCDEPMODE!$CCDEPMODE$ac_delim
21675
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21676
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21677
GREP!$GREP$ac_delim
21678
EGREP!$EGREP$ac_delim
21679
LN_S!$LN_S$ac_delim
21680
ECHO!$ECHO$ac_delim
21682
RANLIB!$RANLIB$ac_delim
21685
CXXFLAGS!$CXXFLAGS$ac_delim
21686
ac_ct_CXX!$ac_ct_CXX$ac_delim
21689
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21691
elif $ac_last_try; then
21692
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21693
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21694
{ (exit 1); exit 1; }; }
21696
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21700
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21701
if test -n "$ac_eof"; then
21702
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21703
ac_eof=`expr $ac_eof + 1`
21706
cat >>$CONFIG_STATUS <<_ACEOF
21707
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21708
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21711
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21712
s/^/s,@/; s/!/@,|#_!!_#|/
21715
s/'"$ac_delim"'$/,g/; t
21717
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21718
' >>$CONFIG_STATUS <conf$$subs.sed
21719
rm -f conf$$subs.sed
21720
cat >>$CONFIG_STATUS <<_ACEOF
21726
for ac_last_try in false false false false false :; do
21727
cat >conf$$subs.sed <<_ACEOF
21728
CXXDEPMODE!$CXXDEPMODE$ac_delim
21729
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21730
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21731
CXXCPP!$CXXCPP$ac_delim
21733
FFLAGS!$FFLAGS$ac_delim
21734
ac_ct_F77!$ac_ct_F77$ac_delim
21735
LIBTOOL!$LIBTOOL$ac_delim
21736
inputdir!$inputdir$ac_delim
21737
PKG_CONFIG!$PKG_CONFIG$ac_delim
21738
XORG_CFLAGS!$XORG_CFLAGS$ac_delim
21739
XORG_LIBS!$XORG_LIBS$ac_delim
21740
APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21741
LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21742
FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21743
MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21744
DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21745
ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21746
APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21747
LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21748
FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21749
MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21750
DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21751
ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21752
LIBOBJS!$LIBOBJS$ac_delim
21753
LTLIBOBJS!$LTLIBOBJS$ac_delim
21756
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
21758
elif $ac_last_try; then
21759
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21760
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21761
{ (exit 1); exit 1; }; }
21763
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21767
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21768
if test -n "$ac_eof"; then
21769
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21770
ac_eof=`expr $ac_eof + 1`
21773
cat >>$CONFIG_STATUS <<_ACEOF
21774
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21775
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21778
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21779
s/^/s,@/; s/!/@,|#_!!_#|/
21782
s/'"$ac_delim"'$/,g/; t
21784
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21785
' >>$CONFIG_STATUS <conf$$subs.sed
21786
rm -f conf$$subs.sed
21787
cat >>$CONFIG_STATUS <<_ACEOF
21794
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21795
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21796
# trailing colons and then remove the whole line if VPATH becomes empty
21797
# (actually we leave an empty line to preserve line numbers).
21798
if test "x$srcdir" = x.; then
21799
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21800
s/:*\$(srcdir):*/:/
21801
s/:*\${srcdir}:*/:/
21803
s/^\([^=]*=[ ]*\):*/\1/
21809
cat >>$CONFIG_STATUS <<\_ACEOF
21810
fi # test -n "$CONFIG_FILES"
21813
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21816
:[FHLC]) ac_mode=$ac_tag; continue;;
21818
case $ac_mode$ac_tag in
21820
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21821
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21822
{ (exit 1); exit 1; }; };;
21823
:[FH]-) ac_tag=-:-;;
21824
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21841
-) ac_f="$tmp/stdin";;
21842
*) # Look for the file first in the build tree, then in the source tree
21843
# (if the path is not absolute). The absolute path cannot be DOS-style,
21844
# because $ac_f cannot contain `:'.
21848
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21850
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21851
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21852
{ (exit 1); exit 1; }; };;
21854
ac_file_inputs="$ac_file_inputs $ac_f"
21857
# Let's still pretend it is `configure' which instantiates (i.e., don't
21858
# use $as_me), people would be surprised to read:
21859
# /* config.h. Generated by config.status. */
21860
configure_input="Generated from "`IFS=:
21861
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21862
if test x"$ac_file" != x-; then
21863
configure_input="$ac_file. $configure_input"
21864
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21865
echo "$as_me: creating $ac_file" >&6;}
21869
*:-:* | *:-) cat >"$tmp/stdin";;
21874
ac_dir=`$as_dirname -- "$ac_file" ||
21875
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21876
X"$ac_file" : 'X\(//\)[^/]' \| \
21877
X"$ac_file" : 'X\(//\)$' \| \
21878
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21880
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21884
/^X\(\/\/\)[^/].*/{
21899
-*) as_dir=./$as_dir;;
21901
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21905
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21906
*) as_qdir=$as_dir;;
21908
as_dirs="'$as_qdir' $as_dirs"
21909
as_dir=`$as_dirname -- "$as_dir" ||
21910
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21911
X"$as_dir" : 'X\(//\)[^/]' \| \
21912
X"$as_dir" : 'X\(//\)$' \| \
21913
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21915
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21919
/^X\(\/\/\)[^/].*/{
21932
test -d "$as_dir" && break
21934
test -z "$as_dirs" || eval "mkdir $as_dirs"
21935
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21936
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21937
{ (exit 1); exit 1; }; }; }
21941
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21943
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21944
# A ".." for each directory in $ac_dir_suffix.
21945
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21946
case $ac_top_builddir_sub in
21947
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21948
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21951
ac_abs_top_builddir=$ac_pwd
21952
ac_abs_builddir=$ac_pwd$ac_dir_suffix
21953
# for backward compatibility:
21954
ac_top_builddir=$ac_top_build_prefix
21957
.) # We are building in place.
21959
ac_top_srcdir=$ac_top_builddir_sub
21960
ac_abs_top_srcdir=$ac_pwd ;;
21961
[\\/]* | ?:[\\/]* ) # Absolute name.
21962
ac_srcdir=$srcdir$ac_dir_suffix;
21963
ac_top_srcdir=$srcdir
21964
ac_abs_top_srcdir=$srcdir ;;
21965
*) # Relative name.
21966
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21967
ac_top_srcdir=$ac_top_build_prefix$srcdir
21968
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21970
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21980
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21981
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21983
ac_MKDIR_P=$MKDIR_P
21985
[\\/$]* | ?:[\\/]* ) ;;
21986
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21990
cat >>$CONFIG_STATUS <<\_ACEOF
21991
# If the template does not know about datarootdir, expand it.
21992
# FIXME: This hack should be removed a few years after 2.60.
21993
ac_datarootdir_hack=; ac_datarootdir_seen=
21995
case `sed -n '/datarootdir/ {
22004
' $ac_file_inputs` in
22005
*datarootdir*) ac_datarootdir_seen=yes;;
22006
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22007
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22008
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22010
cat >>$CONFIG_STATUS <<_ACEOF
22011
ac_datarootdir_hack='
22012
s&@datadir@&$datadir&g
22013
s&@docdir@&$docdir&g
22014
s&@infodir@&$infodir&g
22015
s&@localedir@&$localedir&g
22016
s&@mandir@&$mandir&g
22017
s&\\\${datarootdir}&$datarootdir&g' ;;
22021
# Neutralize VPATH when `$srcdir' = `.'.
22022
# Shell code in configure.ac might set extrasub.
22023
# FIXME: do we really want to maintain this feature?
22024
cat >>$CONFIG_STATUS <<_ACEOF
22028
cat >>$CONFIG_STATUS <<\_ACEOF
22030
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22031
s&@configure_input@&$configure_input&;t t
22032
s&@top_builddir@&$ac_top_builddir_sub&;t t
22033
s&@srcdir@&$ac_srcdir&;t t
22034
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22035
s&@top_srcdir@&$ac_top_srcdir&;t t
22036
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22037
s&@builddir@&$ac_builddir&;t t
22038
s&@abs_builddir@&$ac_abs_builddir&;t t
22039
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22040
s&@INSTALL@&$ac_INSTALL&;t t
22041
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22042
$ac_datarootdir_hack
22043
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22045
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22046
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22047
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22048
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22049
which seems to be undefined. Please make sure it is defined." >&5
22050
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22051
which seems to be undefined. Please make sure it is defined." >&2;}
22055
-) cat "$tmp/out"; rm -f "$tmp/out";;
22056
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22065
# Transform confdefs.h into a sed script `conftest.defines', that
22066
# substitutes the proper values into config.h.in to produce config.h.
22067
rm -f conftest.defines conftest.tail
22068
# First, append a space to every undef/define line, to ease matching.
22069
echo 's/$/ /' >conftest.defines
22070
# Then, protect against being on the right side of a sed subst, or in
22071
# an unquoted here document, in config.status. If some macros were
22072
# called several times there might be several #defines for the same
22073
# symbol, which is useless. But do not sort them, since the last
22074
# AC_DEFINE must be honored.
22075
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22076
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22077
# NAME is the cpp macro being defined, VALUE is the value it is being given.
22078
# PARAMS is the parameter list in the macro definition--in most cases, it's
22079
# just an empty string.
22080
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22081
ac_dB='\\)[ (].*,\\1define\\2'
22089
s/^[ ]*#[ ]*define[ ][ ]*//
22094
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22095
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22096
' >>conftest.defines
22098
# Remove the space that was appended to ease matching.
22099
# Then replace #undef with comments. This is necessary, for
22100
# example, in the case of _POSIX_SOURCE, which is predefined and required
22101
# on some systems where configure will not decide to define it.
22102
# (The regexp can be short, since the line contains either #define or #undef.)
22104
s,^[ #]*u.*,/* & */,' >>conftest.defines
22106
# Break up conftest.defines:
22107
ac_max_sed_lines=50
22109
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22110
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22111
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22113
ac_in='$ac_file_inputs'
22114
ac_out='"$tmp/out1"'
22115
ac_nxt='"$tmp/out2"'
22119
# Write a here document:
22120
cat >>$CONFIG_STATUS <<_ACEOF
22121
# First, check the format of the line:
22122
cat >"\$tmp/defines.sed" <<\\CEOF
22123
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22124
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22128
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22130
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22131
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22132
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22133
grep . conftest.tail >/dev/null || break
22134
rm -f conftest.defines
22135
mv conftest.tail conftest.defines
22137
rm -f conftest.defines conftest.tail
22139
echo "ac_result=$ac_in" >>$CONFIG_STATUS
22140
cat >>$CONFIG_STATUS <<\_ACEOF
22141
if test x"$ac_file" != x-; then
22142
echo "/* $configure_input */" >"$tmp/config.h"
22143
cat "$ac_result" >>"$tmp/config.h"
22144
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22145
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22146
echo "$as_me: $ac_file is unchanged" >&6;}
22149
mv "$tmp/config.h" $ac_file
22152
echo "/* $configure_input */"
22156
# Compute $ac_file's index in $config_headers.
22158
for _am_header in $config_headers :; do
22159
case $_am_header in
22160
$ac_file | $ac_file:* )
22163
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
22166
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22167
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22168
X$ac_file : 'X\(//\)[^/]' \| \
22169
X$ac_file : 'X\(//\)$' \| \
22170
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22172
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22176
/^X\(\/\/\)[^/].*/{
22188
s/.*/./; q'`/stamp-h$_am_stamp_count
22191
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22192
echo "$as_me: executing $ac_file commands" >&6;}
22197
case $ac_file$ac_mode in
22198
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22199
# Strip MF so we end up with the name of the file.
22200
mf=`echo "$mf" | sed -e 's/:.*$//'`
22201
# Check whether this is an Automake generated Makefile or not.
22202
# We used to match only the files named `Makefile.in', but
22203
# some people rename them; so instead we look at the file content.
22204
# Grep'ing the first line is not enough: some people post-process
22205
# each Makefile.in and add a new line on top of each file to say so.
22206
# Grep'ing the whole file is not good either: AIX grep has a line
22207
# limit of 2048, but all sed's we know have understand at least 4000.
22208
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22209
dirpart=`$as_dirname -- "$mf" ||
22210
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22211
X"$mf" : 'X\(//\)[^/]' \| \
22212
X"$mf" : 'X\(//\)$' \| \
22213
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22215
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22219
/^X\(\/\/\)[^/].*/{
22235
# Extract the definition of DEPDIR, am__include, and am__quote
22236
# from the Makefile without running `make'.
22237
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22238
test -z "$DEPDIR" && continue
22239
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22240
test -z "am__include" && continue
22241
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22242
# When using ansi2knr, U may be empty or an underscore; expand it
22243
U=`sed -n 's/^U = //p' < "$mf"`
22244
# Find all dependency output files, they are included files with
22245
# $(DEPDIR) in their names. We invoke sed twice because it is the
22246
# simplest approach to changing $(DEPDIR) to its actual value in the
22248
for file in `sed -n "
22249
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22250
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22251
# Make sure the directory exists.
22252
test -f "$dirpart/$file" && continue
22253
fdir=`$as_dirname -- "$file" ||
22254
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22255
X"$file" : 'X\(//\)[^/]' \| \
22256
X"$file" : 'X\(//\)$' \| \
22257
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22259
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22263
/^X\(\/\/\)[^/].*/{
22276
{ as_dir=$dirpart/$fdir
22278
-*) as_dir=./$as_dir;;
22280
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22284
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22285
*) as_qdir=$as_dir;;
22287
as_dirs="'$as_qdir' $as_dirs"
22288
as_dir=`$as_dirname -- "$as_dir" ||
22289
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22290
X"$as_dir" : 'X\(//\)[^/]' \| \
22291
X"$as_dir" : 'X\(//\)$' \| \
22292
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22294
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22298
/^X\(\/\/\)[^/].*/{
22311
test -d "$as_dir" && break
22313
test -z "$as_dirs" || eval "mkdir $as_dirs"
22314
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22315
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22316
{ (exit 1); exit 1; }; }; }
22317
# echo "creating $dirpart/$file"
22318
echo '# dummy' > "$dirpart/$file"
22327
{ (exit 0); exit 0; }
22329
chmod +x $CONFIG_STATUS
22330
ac_clean_files=$ac_clean_files_save
22333
# configure is writing to config.log, and then calls config.status.
22334
# config.status does its own redirection, appending to config.log.
22335
# Unfortunately, on DOS this fails, as config.log is still kept open
22336
# by configure, so config.status won't be able to write to it; its
22337
# output is simply discarded. So we exec the FD to /dev/null,
22338
# effectively closing config.log, so it can be properly (re)opened and
22339
# appended to by config.status. When coming back to configure, we
22340
# need to make the FD available again.
22341
if test "$no_create" != yes; then
22343
ac_config_status_args=
22344
test "$silent" = yes &&
22345
ac_config_status_args="$ac_config_status_args --quiet"
22347
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22349
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
22350
# would make configure fail if this is the last instruction.
22351
$ac_cs_success || { (exit 1); exit 1; }