63 changed files with 60516 additions and 7872 deletions
-
1327ABOUT-NLS
-
1237Makefile.in
-
270autotools/ar-lib
-
577autotools/config.guess
-
672autotools/config.rpath
-
391autotools/config.sub
-
791autotools/depcomp
-
527autotools/install-sh
-
9661autotools/ltmain.sh
-
215autotools/missing
-
127autotools/test-driver
-
28922configure
-
1configure.ac
-
656help/Makefile.in
-
799images/Makefile.in
-
251install-sh
-
1463lib-src/Makefile.in
-
444locale/Makefile.in.in
-
47locale/Rules-quot
-
10locale/boldquot.sed
-
25locale/en@boldquot.header
-
22locale/en@quot.header
-
23locale/insert-header.sin
-
6locale/quot.sed
-
19locale/remove-potcdate.sin
-
21m4/codeset.m4
-
81m4/fcntl-o.m4
-
383m4/gettext.m4
-
30m4/glibc2.m4
-
30m4/glibc21.m4
-
199m4/iconv.m4
-
84m4/intdiv0.m4
-
294m4/intl.m4
-
19m4/intldir.m4
-
51m4/intlmacosx.m4
-
33m4/intmax.m4
-
36m4/inttypes-pri.m4
-
26m4/inttypes_h.m4
-
31m4/lcmessage.m4
-
110m4/lib-ld.m4
-
774m4/lib-link.m4
-
224m4/lib-prefix.m4
-
7991m4/libtool.m4
-
37m4/lock.m4
-
106m4/longlong.m4
-
384m4/ltoptions.m4
-
123m4/ltsugar.m4
-
23m4/ltversion.m4
-
98m4/lt~obsolete.m4
-
32m4/nls.m4
-
449m4/po.m4
-
45m4/printf-posix.m4
-
92m4/progtest.m4
-
75m4/size_max.m4
-
26m4/stdint_h.m4
-
347m4/threadlib.m4
-
30m4/uintmax_t.m4
-
34m4/visibility.m4
-
20m4/wchar_t.m4
-
28m4/wint_t.m4
-
13m4/xsize.m4
-
6385src/Makefile.in
-
1141tests/Makefile.in
1327
ABOUT-NLS
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1237
Makefile.in
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,270 @@ |
|||
#! /bin/sh |
|||
# Wrapper for Microsoft lib.exe |
|||
|
|||
me=ar-lib |
|||
scriptversion=2012-03-01.08; # UTC |
|||
|
|||
# Copyright (C) 2010-2013 Free Software Foundation, Inc. |
|||
# Written by Peter Rosin <peda@lysator.liu.se>. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# This file is maintained in Automake, please report |
|||
# bugs to <bug-automake@gnu.org> or send patches to |
|||
# <automake-patches@gnu.org>. |
|||
|
|||
|
|||
# func_error message |
|||
func_error () |
|||
{ |
|||
echo "$me: $1" 1>&2 |
|||
exit 1 |
|||
} |
|||
|
|||
file_conv= |
|||
|
|||
# func_file_conv build_file |
|||
# Convert a $build file to $host form and store it in $file |
|||
# Currently only supports Windows hosts. |
|||
func_file_conv () |
|||
{ |
|||
file=$1 |
|||
case $file in |
|||
/ | /[!/]*) # absolute file, and not a UNC file |
|||
if test -z "$file_conv"; then |
|||
# lazily determine how to convert abs files |
|||
case `uname -s` in |
|||
MINGW*) |
|||
file_conv=mingw |
|||
;; |
|||
CYGWIN*) |
|||
file_conv=cygwin |
|||
;; |
|||
*) |
|||
file_conv=wine |
|||
;; |
|||
esac |
|||
fi |
|||
case $file_conv in |
|||
mingw) |
|||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
|||
;; |
|||
cygwin) |
|||
file=`cygpath -m "$file" || echo "$file"` |
|||
;; |
|||
wine) |
|||
file=`winepath -w "$file" || echo "$file"` |
|||
;; |
|||
esac |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
# func_at_file at_file operation archive |
|||
# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE |
|||
# for each of them. |
|||
# When interpreting the content of the @FILE, do NOT use func_file_conv, |
|||
# since the user would need to supply preconverted file names to |
|||
# binutils ar, at least for MinGW. |
|||
func_at_file () |
|||
{ |
|||
operation=$2 |
|||
archive=$3 |
|||
at_file_contents=`cat "$1"` |
|||
eval set x "$at_file_contents" |
|||
shift |
|||
|
|||
for member |
|||
do |
|||
$AR -NOLOGO $operation:"$member" "$archive" || exit $? |
|||
done |
|||
} |
|||
|
|||
case $1 in |
|||
'') |
|||
func_error "no command. Try '$0 --help' for more information." |
|||
;; |
|||
-h | --h*) |
|||
cat <<EOF |
|||
Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...] |
|||
|
|||
Members may be specified in a file named with @FILE. |
|||
EOF |
|||
exit $? |
|||
;; |
|||
-v | --v*) |
|||
echo "$me, version $scriptversion" |
|||
exit $? |
|||
;; |
|||
esac |
|||
|
|||
if test $# -lt 3; then |
|||
func_error "you must specify a program, an action and an archive" |
|||
fi |
|||
|
|||
AR=$1 |
|||
shift |
|||
while : |
|||
do |
|||
if test $# -lt 2; then |
|||
func_error "you must specify a program, an action and an archive" |
|||
fi |
|||
case $1 in |
|||
-lib | -LIB \ |
|||
| -ltcg | -LTCG \ |
|||
| -machine* | -MACHINE* \ |
|||
| -subsystem* | -SUBSYSTEM* \ |
|||
| -verbose | -VERBOSE \ |
|||
| -wx* | -WX* ) |
|||
AR="$AR $1" |
|||
shift |
|||
;; |
|||
*) |
|||
action=$1 |
|||
shift |
|||
break |
|||
;; |
|||
esac |
|||
done |
|||
orig_archive=$1 |
|||
shift |
|||
func_file_conv "$orig_archive" |
|||
archive=$file |
|||
|
|||
# strip leading dash in $action |
|||
action=${action#-} |
|||
|
|||
delete= |
|||
extract= |
|||
list= |
|||
quick= |
|||
replace= |
|||
index= |
|||
create= |
|||
|
|||
while test -n "$action" |
|||
do |
|||
case $action in |
|||
d*) delete=yes ;; |
|||
x*) extract=yes ;; |
|||
t*) list=yes ;; |
|||
q*) quick=yes ;; |
|||
r*) replace=yes ;; |
|||
s*) index=yes ;; |
|||
S*) ;; # the index is always updated implicitly |
|||
c*) create=yes ;; |
|||
u*) ;; # TODO: don't ignore the update modifier |
|||
v*) ;; # TODO: don't ignore the verbose modifier |
|||
*) |
|||
func_error "unknown action specified" |
|||
;; |
|||
esac |
|||
action=${action#?} |
|||
done |
|||
|
|||
case $delete$extract$list$quick$replace,$index in |
|||
yes,* | ,yes) |
|||
;; |
|||
yesyes*) |
|||
func_error "more than one action specified" |
|||
;; |
|||
*) |
|||
func_error "no action specified" |
|||
;; |
|||
esac |
|||
|
|||
if test -n "$delete"; then |
|||
if test ! -f "$orig_archive"; then |
|||
func_error "archive not found" |
|||
fi |
|||
for member |
|||
do |
|||
case $1 in |
|||
@*) |
|||
func_at_file "${1#@}" -REMOVE "$archive" |
|||
;; |
|||
*) |
|||
func_file_conv "$1" |
|||
$AR -NOLOGO -REMOVE:"$file" "$archive" || exit $? |
|||
;; |
|||
esac |
|||
done |
|||
|
|||
elif test -n "$extract"; then |
|||
if test ! -f "$orig_archive"; then |
|||
func_error "archive not found" |
|||
fi |
|||
if test $# -gt 0; then |
|||
for member |
|||
do |
|||
case $1 in |
|||
@*) |
|||
func_at_file "${1#@}" -EXTRACT "$archive" |
|||
;; |
|||
*) |
|||
func_file_conv "$1" |
|||
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $? |
|||
;; |
|||
esac |
|||
done |
|||
else |
|||
$AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member |
|||
do |
|||
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? |
|||
done |
|||
fi |
|||
|
|||
elif test -n "$quick$replace"; then |
|||
if test ! -f "$orig_archive"; then |
|||
if test -z "$create"; then |
|||
echo "$me: creating $orig_archive" |
|||
fi |
|||
orig_archive= |
|||
else |
|||
orig_archive=$archive |
|||
fi |
|||
|
|||
for member |
|||
do |
|||
case $1 in |
|||
@*) |
|||
func_file_conv "${1#@}" |
|||
set x "$@" "@$file" |
|||
;; |
|||
*) |
|||
func_file_conv "$1" |
|||
set x "$@" "$file" |
|||
;; |
|||
esac |
|||
shift |
|||
shift |
|||
done |
|||
|
|||
if test -n "$orig_archive"; then |
|||
$AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $? |
|||
else |
|||
$AR -NOLOGO -OUT:"$archive" "$@" || exit $? |
|||
fi |
|||
|
|||
elif test -n "$list"; then |
|||
if test ! -f "$orig_archive"; then |
|||
func_error "archive not found" |
|||
fi |
|||
$AR -NOLOGO -LIST "$archive" || exit $? |
|||
fi |
@ -0,0 +1,672 @@ |
|||
#! /bin/sh |
|||
# Output a system dependent set of variables, describing how to set the |
|||
# run time search path of shared libraries in an executable. |
|||
# |
|||
# Copyright 1996-2010 Free Software Foundation, Inc. |
|||
# Taken from GNU libtool, 2001 |
|||
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|||
# |
|||
# This file is free software; the Free Software Foundation gives |
|||
# unlimited permission to copy and/or distribute it, with or without |
|||
# modifications, as long as this notice is preserved. |
|||
# |
|||
# The first argument passed to this file is the canonical host specification, |
|||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
|||
# or |
|||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
|||
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld |
|||
# should be set by the caller. |
|||
# |
|||
# The set of defined variables is at the end of this script. |
|||
|
|||
# Known limitations: |
|||
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer |
|||
# than 256 bytes, otherwise the compiler driver will dump core. The only |
|||
# known workaround is to choose shorter directory names for the build |
|||
# directory and/or the installation directory. |
|||
|
|||
# All known linkers require a `.a' archive for static linking (except MSVC, |
|||
# which needs '.lib'). |
|||
libext=a |
|||
shrext=.so |
|||
|
|||
host="$1" |
|||
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|||
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|||
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|||
|
|||
# Code taken from libtool.m4's _LT_CC_BASENAME. |
|||
|
|||
for cc_temp in $CC""; do |
|||
case $cc_temp in |
|||
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|||
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|||
\-*) ;; |
|||
*) break;; |
|||
esac |
|||
done |
|||
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` |
|||
|
|||
# Code taken from libtool.m4's _LT_COMPILER_PIC. |
|||
|
|||
wl= |
|||
if test "$GCC" = yes; then |
|||
wl='-Wl,' |
|||
else |
|||
case "$host_os" in |
|||
aix*) |
|||
wl='-Wl,' |
|||
;; |
|||
darwin*) |
|||
case $cc_basename in |
|||
xlc*) |
|||
wl='-Wl,' |
|||
;; |
|||
esac |
|||
;; |
|||
mingw* | cygwin* | pw32* | os2* | cegcc*) |
|||
;; |
|||
hpux9* | hpux10* | hpux11*) |
|||
wl='-Wl,' |
|||
;; |
|||
irix5* | irix6* | nonstopux*) |
|||
wl='-Wl,' |
|||
;; |
|||
newsos6) |
|||
;; |
|||
linux* | k*bsd*-gnu) |
|||
case $cc_basename in |
|||
ecc*) |
|||
wl='-Wl,' |
|||
;; |
|||
icc* | ifort*) |
|||
wl='-Wl,' |
|||
;; |
|||
lf95*) |
|||
wl='-Wl,' |
|||
;; |
|||
pgcc | pgf77 | pgf90) |
|||
wl='-Wl,' |
|||
;; |
|||
ccc*) |
|||
wl='-Wl,' |
|||
;; |
|||
como) |
|||
wl='-lopt=' |
|||
;; |
|||
*) |
|||
case `$CC -V 2>&1 | sed 5q` in |
|||
*Sun\ C*) |
|||
wl='-Wl,' |
|||
;; |
|||
esac |
|||
;; |
|||
esac |
|||
;; |
|||
osf3* | osf4* | osf5*) |
|||
wl='-Wl,' |
|||
;; |
|||
rdos*) |
|||
;; |
|||
solaris*) |
|||
wl='-Wl,' |
|||
;; |
|||
sunos4*) |
|||
wl='-Qoption ld ' |
|||
;; |
|||
sysv4 | sysv4.2uw2* | sysv4.3*) |
|||
wl='-Wl,' |
|||
;; |
|||
sysv4*MP*) |
|||
;; |
|||
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|||
wl='-Wl,' |
|||
;; |
|||
unicos*) |
|||
wl='-Wl,' |
|||
;; |
|||
uts4*) |
|||
;; |
|||
esac |
|||
fi |
|||
|
|||
# Code taken from libtool.m4's _LT_LINKER_SHLIBS. |
|||
|
|||
hardcode_libdir_flag_spec= |
|||
hardcode_libdir_separator= |
|||
hardcode_direct=no |
|||
hardcode_minus_L=no |
|||
|
|||
case "$host_os" in |
|||
cygwin* | mingw* | pw32* | cegcc*) |
|||
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|||
# When not using gcc, we currently assume that we are using |
|||
# Microsoft Visual C++. |
|||
if test "$GCC" != yes; then |
|||
with_gnu_ld=no |
|||
fi |
|||
;; |
|||
interix*) |
|||
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|||
with_gnu_ld=yes |
|||
;; |
|||
openbsd*) |
|||
with_gnu_ld=no |
|||
;; |
|||
esac |
|||
|
|||
ld_shlibs=yes |
|||
if test "$with_gnu_ld" = yes; then |
|||
# Set some defaults for GNU ld with shared library support. These |
|||
# are reset later if shared libraries are not supported. Putting them |
|||
# here allows them to be overridden if necessary. |
|||
# Unlike libtool, we use -rpath here, not --rpath, since the documented |
|||
# option of GNU ld is called -rpath, not --rpath. |
|||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|||
case "$host_os" in |
|||
aix[3-9]*) |
|||
# On AIX/PPC, the GNU linker is very broken |
|||
if test "$host_cpu" != ia64; then |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
amigaos*) |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
hardcode_minus_L=yes |
|||
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|||
# that the semantics of dynamic libraries on AmigaOS, at least up |
|||
# to version 4, is to share data among multiple programs linked |
|||
# with the same dynamic library. Since this doesn't match the |
|||
# behavior of shared libraries on other platforms, we cannot use |
|||
# them. |
|||
ld_shlibs=no |
|||
;; |
|||
beos*) |
|||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|||
: |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
cygwin* | mingw* | pw32* | cegcc*) |
|||
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|||
# no search path for DLLs. |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|||
: |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
interix[3-9]*) |
|||
hardcode_direct=no |
|||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|||
;; |
|||
gnu* | linux* | k*bsd*-gnu) |
|||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|||
: |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
netbsd*) |
|||
;; |
|||
solaris*) |
|||
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|||
ld_shlibs=no |
|||
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|||
: |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|||
case `$LD -v 2>&1` in |
|||
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|||
ld_shlibs=no |
|||
;; |
|||
*) |
|||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|||
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
esac |
|||
;; |
|||
sunos4*) |
|||
hardcode_direct=yes |
|||
;; |
|||
*) |
|||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|||
: |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
esac |
|||
if test "$ld_shlibs" = no; then |
|||
hardcode_libdir_flag_spec= |
|||
fi |
|||
else |
|||
case "$host_os" in |
|||
aix3*) |
|||
# Note: this linker hardcodes the directories in LIBPATH if there |
|||
# are no directories specified by -L. |
|||
hardcode_minus_L=yes |
|||
if test "$GCC" = yes; then |
|||
# Neither direct hardcoding nor static linking is supported with a |
|||
# broken collect2. |
|||
hardcode_direct=unsupported |
|||
fi |
|||
;; |
|||
aix[4-9]*) |
|||
if test "$host_cpu" = ia64; then |
|||
# On IA64, the linker does run time linking by default, so we don't |
|||
# have to do anything special. |
|||
aix_use_runtimelinking=no |
|||
else |
|||
aix_use_runtimelinking=no |
|||
# Test if we are trying to use run time linking or normal |
|||
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|||
# need to do runtime linking. |
|||
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|||
for ld_flag in $LDFLAGS; do |
|||
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|||
aix_use_runtimelinking=yes |
|||
break |
|||
fi |
|||
done |
|||
;; |
|||
esac |
|||
fi |
|||
hardcode_direct=yes |
|||
hardcode_libdir_separator=':' |
|||
if test "$GCC" = yes; then |
|||
case $host_os in aix4.[012]|aix4.[012].*) |
|||
collect2name=`${CC} -print-prog-name=collect2` |
|||
if test -f "$collect2name" && \ |
|||
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|||
then |
|||
# We have reworked collect2 |
|||
: |
|||
else |
|||
# We have old collect2 |
|||
hardcode_direct=unsupported |
|||
hardcode_minus_L=yes |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
hardcode_libdir_separator= |
|||
fi |
|||
;; |
|||
esac |
|||
fi |
|||
# Begin _LT_AC_SYS_LIBPATH_AIX. |
|||
echo 'int main () { return 0; }' > conftest.c |
|||
${CC} ${LDFLAGS} conftest.c -o conftest |
|||
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|||
}'` |
|||
if test -z "$aix_libpath"; then |
|||
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|||
}'` |
|||
fi |
|||
if test -z "$aix_libpath"; then |
|||
aix_libpath="/usr/lib:/lib" |
|||
fi |
|||
rm -f conftest.c conftest |
|||
# End _LT_AC_SYS_LIBPATH_AIX. |
|||
if test "$aix_use_runtimelinking" = yes; then |
|||
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|||
else |
|||
if test "$host_cpu" = ia64; then |
|||
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|||
else |
|||
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|||
fi |
|||
fi |
|||
;; |
|||
amigaos*) |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
hardcode_minus_L=yes |
|||
# see comment about different semantics on the GNU ld section |
|||
ld_shlibs=no |
|||
;; |
|||
bsdi[45]*) |
|||
;; |
|||
cygwin* | mingw* | pw32* | cegcc*) |
|||
# When not using gcc, we currently assume that we are using |
|||
# Microsoft Visual C++. |
|||
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|||
# no search path for DLLs. |
|||
hardcode_libdir_flag_spec=' ' |
|||
libext=lib |
|||
;; |
|||
darwin* | rhapsody*) |
|||
hardcode_direct=no |
|||
if test "$GCC" = yes ; then |
|||
: |
|||
else |
|||
case $cc_basename in |
|||
xlc*) |
|||
;; |
|||
*) |
|||
ld_shlibs=no |
|||
;; |
|||
esac |
|||
fi |
|||
;; |
|||
dgux*) |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
;; |
|||
freebsd1*) |
|||
ld_shlibs=no |
|||
;; |
|||
freebsd2.2*) |
|||
hardcode_libdir_flag_spec='-R$libdir' |
|||
hardcode_direct=yes |
|||
;; |
|||
freebsd2*) |
|||
hardcode_direct=yes |
|||
hardcode_minus_L=yes |
|||
;; |
|||
freebsd* | dragonfly*) |
|||
hardcode_libdir_flag_spec='-R$libdir' |
|||
hardcode_direct=yes |
|||
;; |
|||
hpux9*) |
|||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|||
hardcode_libdir_separator=: |
|||
hardcode_direct=yes |
|||
# hardcode_minus_L: Not really in the search PATH, |
|||
# but as the default location of the library. |
|||
hardcode_minus_L=yes |
|||
;; |
|||
hpux10*) |
|||
if test "$with_gnu_ld" = no; then |
|||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|||
hardcode_libdir_separator=: |
|||
hardcode_direct=yes |
|||
# hardcode_minus_L: Not really in the search PATH, |
|||
# but as the default location of the library. |
|||
hardcode_minus_L=yes |
|||
fi |
|||
;; |
|||
hpux11*) |
|||
if test "$with_gnu_ld" = no; then |
|||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|||
hardcode_libdir_separator=: |
|||
case $host_cpu in |
|||
hppa*64*|ia64*) |
|||
hardcode_direct=no |
|||
;; |
|||
*) |
|||
hardcode_direct=yes |
|||
# hardcode_minus_L: Not really in the search PATH, |
|||
# but as the default location of the library. |
|||
hardcode_minus_L=yes |
|||
;; |
|||
esac |
|||
fi |
|||
;; |
|||
irix5* | irix6* | nonstopux*) |
|||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|||
hardcode_libdir_separator=: |
|||
;; |
|||
netbsd*) |
|||
hardcode_libdir_flag_spec='-R$libdir' |
|||
hardcode_direct=yes |
|||
;; |
|||
newsos6) |
|||
hardcode_direct=yes |
|||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|||
hardcode_libdir_separator=: |
|||
;; |
|||
openbsd*) |
|||
if test -f /usr/libexec/ld.so; then |
|||
hardcode_direct=yes |
|||
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|||
else |
|||
case "$host_os" in |
|||
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|||
hardcode_libdir_flag_spec='-R$libdir' |
|||
;; |
|||
*) |
|||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|||
;; |
|||
esac |
|||
fi |
|||
else |
|||
ld_shlibs=no |
|||
fi |
|||
;; |
|||
os2*) |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
hardcode_minus_L=yes |
|||
;; |
|||
osf3*) |
|||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|||
hardcode_libdir_separator=: |
|||
;; |
|||
osf4* | osf5*) |
|||
if test "$GCC" = yes; then |
|||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|||
else |
|||
# Both cc and cxx compiler support -rpath directly |
|||
hardcode_libdir_flag_spec='-rpath $libdir' |
|||
fi |
|||
hardcode_libdir_separator=: |
|||
;; |
|||
solaris*) |
|||
hardcode_libdir_flag_spec='-R$libdir' |
|||
;; |
|||
sunos4*) |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
hardcode_direct=yes |
|||
hardcode_minus_L=yes |
|||
;; |
|||
sysv4) |
|||
case $host_vendor in |
|||
sni) |
|||
hardcode_direct=yes # is this really true??? |
|||
;; |
|||
siemens) |
|||
hardcode_direct=no |
|||
;; |
|||
motorola) |
|||
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|||
;; |
|||
esac |
|||
;; |
|||
sysv4.3*) |
|||
;; |
|||
sysv4*MP*) |
|||
if test -d /usr/nec; then |
|||
ld_shlibs=yes |
|||
fi |
|||
;; |
|||
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|||
;; |
|||
sysv5* | sco3.2v5* | sco5v6*) |
|||
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|||
hardcode_libdir_separator=':' |
|||
;; |
|||
uts4*) |
|||
hardcode_libdir_flag_spec='-L$libdir' |
|||
;; |
|||
*) |
|||
ld_shlibs=no |
|||
;; |
|||
esac |
|||
fi |
|||
|
|||
# Check dynamic linker characteristics |
|||
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. |
|||
# Unlike libtool.m4, here we don't care about _all_ names of the library, but |
|||
# only about the one the linker finds when passed -lNAME. This is the last |
|||
# element of library_names_spec in libtool.m4, or possibly two of them if the |
|||
# linker has special search rules. |
|||
library_names_spec= # the last element of library_names_spec in libtool.m4 |
|||
libname_spec='lib$name' |
|||
case "$host_os" in |
|||
aix3*) |
|||
library_names_spec='$libname.a' |
|||
;; |
|||
aix[4-9]*) |
|||
library_names_spec='$libname$shrext' |
|||
;; |
|||
amigaos*) |
|||
library_names_spec='$libname.a' |
|||
;; |
|||
beos*) |
|||
library_names_spec='$libname$shrext' |
|||
;; |
|||
bsdi[45]*) |
|||
library_names_spec='$libname$shrext' |
|||
;; |
|||
cygwin* | mingw* | pw32* | cegcc*) |
|||
shrext=.dll |
|||
library_names_spec='$libname.dll.a $libname.lib' |
|||