1*2e9d4914SAndroid Build Coastguard Worker#! /bin/sh 2*2e9d4914SAndroid Build Coastguard Worker# Output a system dependent set of variables, describing how to set the 3*2e9d4914SAndroid Build Coastguard Worker# run time search path of shared libraries in an executable. 4*2e9d4914SAndroid Build Coastguard Worker# 5*2e9d4914SAndroid Build Coastguard Worker# Copyright 1996-2007 Free Software Foundation, Inc. 6*2e9d4914SAndroid Build Coastguard Worker# Taken from GNU libtool, 2001 7*2e9d4914SAndroid Build Coastguard Worker# Originally by Gordon Matzigkeit <[email protected]>, 1996 8*2e9d4914SAndroid Build Coastguard Worker# 9*2e9d4914SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation gives 10*2e9d4914SAndroid Build Coastguard Worker# unlimited permission to copy and/or distribute it, with or without 11*2e9d4914SAndroid Build Coastguard Worker# modifications, as long as this notice is preserved. 12*2e9d4914SAndroid Build Coastguard Worker# 13*2e9d4914SAndroid Build Coastguard Worker# The first argument passed to this file is the canonical host specification, 14*2e9d4914SAndroid Build Coastguard Worker# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 15*2e9d4914SAndroid Build Coastguard Worker# or 16*2e9d4914SAndroid Build Coastguard Worker# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 17*2e9d4914SAndroid Build Coastguard Worker# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld 18*2e9d4914SAndroid Build Coastguard Worker# should be set by the caller. 19*2e9d4914SAndroid Build Coastguard Worker# 20*2e9d4914SAndroid Build Coastguard Worker# The set of defined variables is at the end of this script. 21*2e9d4914SAndroid Build Coastguard Worker 22*2e9d4914SAndroid Build Coastguard Worker# Known limitations: 23*2e9d4914SAndroid Build Coastguard Worker# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer 24*2e9d4914SAndroid Build Coastguard Worker# than 256 bytes, otherwise the compiler driver will dump core. The only 25*2e9d4914SAndroid Build Coastguard Worker# known workaround is to choose shorter directory names for the build 26*2e9d4914SAndroid Build Coastguard Worker# directory and/or the installation directory. 27*2e9d4914SAndroid Build Coastguard Worker 28*2e9d4914SAndroid Build Coastguard Worker# All known linkers require a `.a' archive for static linking (except MSVC, 29*2e9d4914SAndroid Build Coastguard Worker# which needs '.lib'). 30*2e9d4914SAndroid Build Coastguard Workerlibext=a 31*2e9d4914SAndroid Build Coastguard Workershrext=.so 32*2e9d4914SAndroid Build Coastguard Worker 33*2e9d4914SAndroid Build Coastguard Workerhost="$1" 34*2e9d4914SAndroid Build Coastguard Workerhost_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 35*2e9d4914SAndroid Build Coastguard Workerhost_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 36*2e9d4914SAndroid Build Coastguard Workerhost_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 37*2e9d4914SAndroid Build Coastguard Worker 38*2e9d4914SAndroid Build Coastguard Worker# Code taken from libtool.m4's _LT_CC_BASENAME. 39*2e9d4914SAndroid Build Coastguard Worker 40*2e9d4914SAndroid Build Coastguard Workerfor cc_temp in $CC""; do 41*2e9d4914SAndroid Build Coastguard Worker case $cc_temp in 42*2e9d4914SAndroid Build Coastguard Worker compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 43*2e9d4914SAndroid Build Coastguard Worker distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 44*2e9d4914SAndroid Build Coastguard Worker \-*) ;; 45*2e9d4914SAndroid Build Coastguard Worker *) break;; 46*2e9d4914SAndroid Build Coastguard Worker esac 47*2e9d4914SAndroid Build Coastguard Workerdone 48*2e9d4914SAndroid Build Coastguard Workercc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` 49*2e9d4914SAndroid Build Coastguard Worker 50*2e9d4914SAndroid Build Coastguard Worker# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. 51*2e9d4914SAndroid Build Coastguard Worker 52*2e9d4914SAndroid Build Coastguard Workerwl= 53*2e9d4914SAndroid Build Coastguard Workerif test "$GCC" = yes; then 54*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 55*2e9d4914SAndroid Build Coastguard Workerelse 56*2e9d4914SAndroid Build Coastguard Worker case "$host_os" in 57*2e9d4914SAndroid Build Coastguard Worker aix*) 58*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 59*2e9d4914SAndroid Build Coastguard Worker ;; 60*2e9d4914SAndroid Build Coastguard Worker darwin*) 61*2e9d4914SAndroid Build Coastguard Worker case $cc_basename in 62*2e9d4914SAndroid Build Coastguard Worker xlc*) 63*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 64*2e9d4914SAndroid Build Coastguard Worker ;; 65*2e9d4914SAndroid Build Coastguard Worker esac 66*2e9d4914SAndroid Build Coastguard Worker ;; 67*2e9d4914SAndroid Build Coastguard Worker mingw* | cygwin* | pw32* | os2*) 68*2e9d4914SAndroid Build Coastguard Worker ;; 69*2e9d4914SAndroid Build Coastguard Worker hpux9* | hpux10* | hpux11*) 70*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 71*2e9d4914SAndroid Build Coastguard Worker ;; 72*2e9d4914SAndroid Build Coastguard Worker irix5* | irix6* | nonstopux*) 73*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 74*2e9d4914SAndroid Build Coastguard Worker ;; 75*2e9d4914SAndroid Build Coastguard Worker newsos6) 76*2e9d4914SAndroid Build Coastguard Worker ;; 77*2e9d4914SAndroid Build Coastguard Worker linux* | k*bsd*-gnu) 78*2e9d4914SAndroid Build Coastguard Worker case $cc_basename in 79*2e9d4914SAndroid Build Coastguard Worker icc* | ecc*) 80*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 81*2e9d4914SAndroid Build Coastguard Worker ;; 82*2e9d4914SAndroid Build Coastguard Worker pgcc | pgf77 | pgf90) 83*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 84*2e9d4914SAndroid Build Coastguard Worker ;; 85*2e9d4914SAndroid Build Coastguard Worker ccc*) 86*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 87*2e9d4914SAndroid Build Coastguard Worker ;; 88*2e9d4914SAndroid Build Coastguard Worker como) 89*2e9d4914SAndroid Build Coastguard Worker wl='-lopt=' 90*2e9d4914SAndroid Build Coastguard Worker ;; 91*2e9d4914SAndroid Build Coastguard Worker *) 92*2e9d4914SAndroid Build Coastguard Worker case `$CC -V 2>&1 | sed 5q` in 93*2e9d4914SAndroid Build Coastguard Worker *Sun\ C*) 94*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 95*2e9d4914SAndroid Build Coastguard Worker ;; 96*2e9d4914SAndroid Build Coastguard Worker esac 97*2e9d4914SAndroid Build Coastguard Worker ;; 98*2e9d4914SAndroid Build Coastguard Worker esac 99*2e9d4914SAndroid Build Coastguard Worker ;; 100*2e9d4914SAndroid Build Coastguard Worker osf3* | osf4* | osf5*) 101*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 102*2e9d4914SAndroid Build Coastguard Worker ;; 103*2e9d4914SAndroid Build Coastguard Worker rdos*) 104*2e9d4914SAndroid Build Coastguard Worker ;; 105*2e9d4914SAndroid Build Coastguard Worker solaris*) 106*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 107*2e9d4914SAndroid Build Coastguard Worker ;; 108*2e9d4914SAndroid Build Coastguard Worker sunos4*) 109*2e9d4914SAndroid Build Coastguard Worker wl='-Qoption ld ' 110*2e9d4914SAndroid Build Coastguard Worker ;; 111*2e9d4914SAndroid Build Coastguard Worker sysv4 | sysv4.2uw2* | sysv4.3*) 112*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 113*2e9d4914SAndroid Build Coastguard Worker ;; 114*2e9d4914SAndroid Build Coastguard Worker sysv4*MP*) 115*2e9d4914SAndroid Build Coastguard Worker ;; 116*2e9d4914SAndroid Build Coastguard Worker sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 117*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 118*2e9d4914SAndroid Build Coastguard Worker ;; 119*2e9d4914SAndroid Build Coastguard Worker unicos*) 120*2e9d4914SAndroid Build Coastguard Worker wl='-Wl,' 121*2e9d4914SAndroid Build Coastguard Worker ;; 122*2e9d4914SAndroid Build Coastguard Worker uts4*) 123*2e9d4914SAndroid Build Coastguard Worker ;; 124*2e9d4914SAndroid Build Coastguard Worker esac 125*2e9d4914SAndroid Build Coastguard Workerfi 126*2e9d4914SAndroid Build Coastguard Worker 127*2e9d4914SAndroid Build Coastguard Worker# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. 128*2e9d4914SAndroid Build Coastguard Worker 129*2e9d4914SAndroid Build Coastguard Workerhardcode_libdir_flag_spec= 130*2e9d4914SAndroid Build Coastguard Workerhardcode_libdir_separator= 131*2e9d4914SAndroid Build Coastguard Workerhardcode_direct=no 132*2e9d4914SAndroid Build Coastguard Workerhardcode_minus_L=no 133*2e9d4914SAndroid Build Coastguard Worker 134*2e9d4914SAndroid Build Coastguard Workercase "$host_os" in 135*2e9d4914SAndroid Build Coastguard Worker cygwin* | mingw* | pw32*) 136*2e9d4914SAndroid Build Coastguard Worker # FIXME: the MSVC++ port hasn't been tested in a loooong time 137*2e9d4914SAndroid Build Coastguard Worker # When not using gcc, we currently assume that we are using 138*2e9d4914SAndroid Build Coastguard Worker # Microsoft Visual C++. 139*2e9d4914SAndroid Build Coastguard Worker if test "$GCC" != yes; then 140*2e9d4914SAndroid Build Coastguard Worker with_gnu_ld=no 141*2e9d4914SAndroid Build Coastguard Worker fi 142*2e9d4914SAndroid Build Coastguard Worker ;; 143*2e9d4914SAndroid Build Coastguard Worker interix*) 144*2e9d4914SAndroid Build Coastguard Worker # we just hope/assume this is gcc and not c89 (= MSVC++) 145*2e9d4914SAndroid Build Coastguard Worker with_gnu_ld=yes 146*2e9d4914SAndroid Build Coastguard Worker ;; 147*2e9d4914SAndroid Build Coastguard Worker openbsd*) 148*2e9d4914SAndroid Build Coastguard Worker with_gnu_ld=no 149*2e9d4914SAndroid Build Coastguard Worker ;; 150*2e9d4914SAndroid Build Coastguard Workeresac 151*2e9d4914SAndroid Build Coastguard Worker 152*2e9d4914SAndroid Build Coastguard Workerld_shlibs=yes 153*2e9d4914SAndroid Build Coastguard Workerif test "$with_gnu_ld" = yes; then 154*2e9d4914SAndroid Build Coastguard Worker # Set some defaults for GNU ld with shared library support. These 155*2e9d4914SAndroid Build Coastguard Worker # are reset later if shared libraries are not supported. Putting them 156*2e9d4914SAndroid Build Coastguard Worker # here allows them to be overridden if necessary. 157*2e9d4914SAndroid Build Coastguard Worker # Unlike libtool, we use -rpath here, not --rpath, since the documented 158*2e9d4914SAndroid Build Coastguard Worker # option of GNU ld is called -rpath, not --rpath. 159*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 160*2e9d4914SAndroid Build Coastguard Worker case "$host_os" in 161*2e9d4914SAndroid Build Coastguard Worker aix3* | aix4* | aix5*) 162*2e9d4914SAndroid Build Coastguard Worker # On AIX/PPC, the GNU linker is very broken 163*2e9d4914SAndroid Build Coastguard Worker if test "$host_cpu" != ia64; then 164*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 165*2e9d4914SAndroid Build Coastguard Worker fi 166*2e9d4914SAndroid Build Coastguard Worker ;; 167*2e9d4914SAndroid Build Coastguard Worker amigaos*) 168*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 169*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 170*2e9d4914SAndroid Build Coastguard Worker # Samuel A. Falvo II <[email protected]> reports 171*2e9d4914SAndroid Build Coastguard Worker # that the semantics of dynamic libraries on AmigaOS, at least up 172*2e9d4914SAndroid Build Coastguard Worker # to version 4, is to share data among multiple programs linked 173*2e9d4914SAndroid Build Coastguard Worker # with the same dynamic library. Since this doesn't match the 174*2e9d4914SAndroid Build Coastguard Worker # behavior of shared libraries on other platforms, we cannot use 175*2e9d4914SAndroid Build Coastguard Worker # them. 176*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 177*2e9d4914SAndroid Build Coastguard Worker ;; 178*2e9d4914SAndroid Build Coastguard Worker beos*) 179*2e9d4914SAndroid Build Coastguard Worker if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 180*2e9d4914SAndroid Build Coastguard Worker : 181*2e9d4914SAndroid Build Coastguard Worker else 182*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 183*2e9d4914SAndroid Build Coastguard Worker fi 184*2e9d4914SAndroid Build Coastguard Worker ;; 185*2e9d4914SAndroid Build Coastguard Worker cygwin* | mingw* | pw32*) 186*2e9d4914SAndroid Build Coastguard Worker # hardcode_libdir_flag_spec is actually meaningless, as there is 187*2e9d4914SAndroid Build Coastguard Worker # no search path for DLLs. 188*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 189*2e9d4914SAndroid Build Coastguard Worker if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 190*2e9d4914SAndroid Build Coastguard Worker : 191*2e9d4914SAndroid Build Coastguard Worker else 192*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 193*2e9d4914SAndroid Build Coastguard Worker fi 194*2e9d4914SAndroid Build Coastguard Worker ;; 195*2e9d4914SAndroid Build Coastguard Worker interix[3-9]*) 196*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=no 197*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 198*2e9d4914SAndroid Build Coastguard Worker ;; 199*2e9d4914SAndroid Build Coastguard Worker gnu* | linux* | k*bsd*-gnu) 200*2e9d4914SAndroid Build Coastguard Worker if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 201*2e9d4914SAndroid Build Coastguard Worker : 202*2e9d4914SAndroid Build Coastguard Worker else 203*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 204*2e9d4914SAndroid Build Coastguard Worker fi 205*2e9d4914SAndroid Build Coastguard Worker ;; 206*2e9d4914SAndroid Build Coastguard Worker netbsd*) 207*2e9d4914SAndroid Build Coastguard Worker ;; 208*2e9d4914SAndroid Build Coastguard Worker solaris*) 209*2e9d4914SAndroid Build Coastguard Worker if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 210*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 211*2e9d4914SAndroid Build Coastguard Worker elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 212*2e9d4914SAndroid Build Coastguard Worker : 213*2e9d4914SAndroid Build Coastguard Worker else 214*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 215*2e9d4914SAndroid Build Coastguard Worker fi 216*2e9d4914SAndroid Build Coastguard Worker ;; 217*2e9d4914SAndroid Build Coastguard Worker sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 218*2e9d4914SAndroid Build Coastguard Worker case `$LD -v 2>&1` in 219*2e9d4914SAndroid Build Coastguard Worker *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 220*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 221*2e9d4914SAndroid Build Coastguard Worker ;; 222*2e9d4914SAndroid Build Coastguard Worker *) 223*2e9d4914SAndroid Build Coastguard Worker if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 224*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 225*2e9d4914SAndroid Build Coastguard Worker else 226*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 227*2e9d4914SAndroid Build Coastguard Worker fi 228*2e9d4914SAndroid Build Coastguard Worker ;; 229*2e9d4914SAndroid Build Coastguard Worker esac 230*2e9d4914SAndroid Build Coastguard Worker ;; 231*2e9d4914SAndroid Build Coastguard Worker sunos4*) 232*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 233*2e9d4914SAndroid Build Coastguard Worker ;; 234*2e9d4914SAndroid Build Coastguard Worker *) 235*2e9d4914SAndroid Build Coastguard Worker if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 236*2e9d4914SAndroid Build Coastguard Worker : 237*2e9d4914SAndroid Build Coastguard Worker else 238*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 239*2e9d4914SAndroid Build Coastguard Worker fi 240*2e9d4914SAndroid Build Coastguard Worker ;; 241*2e9d4914SAndroid Build Coastguard Worker esac 242*2e9d4914SAndroid Build Coastguard Worker if test "$ld_shlibs" = no; then 243*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec= 244*2e9d4914SAndroid Build Coastguard Worker fi 245*2e9d4914SAndroid Build Coastguard Workerelse 246*2e9d4914SAndroid Build Coastguard Worker case "$host_os" in 247*2e9d4914SAndroid Build Coastguard Worker aix3*) 248*2e9d4914SAndroid Build Coastguard Worker # Note: this linker hardcodes the directories in LIBPATH if there 249*2e9d4914SAndroid Build Coastguard Worker # are no directories specified by -L. 250*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 251*2e9d4914SAndroid Build Coastguard Worker if test "$GCC" = yes; then 252*2e9d4914SAndroid Build Coastguard Worker # Neither direct hardcoding nor static linking is supported with a 253*2e9d4914SAndroid Build Coastguard Worker # broken collect2. 254*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=unsupported 255*2e9d4914SAndroid Build Coastguard Worker fi 256*2e9d4914SAndroid Build Coastguard Worker ;; 257*2e9d4914SAndroid Build Coastguard Worker aix4* | aix5*) 258*2e9d4914SAndroid Build Coastguard Worker if test "$host_cpu" = ia64; then 259*2e9d4914SAndroid Build Coastguard Worker # On IA64, the linker does run time linking by default, so we don't 260*2e9d4914SAndroid Build Coastguard Worker # have to do anything special. 261*2e9d4914SAndroid Build Coastguard Worker aix_use_runtimelinking=no 262*2e9d4914SAndroid Build Coastguard Worker else 263*2e9d4914SAndroid Build Coastguard Worker aix_use_runtimelinking=no 264*2e9d4914SAndroid Build Coastguard Worker # Test if we are trying to use run time linking or normal 265*2e9d4914SAndroid Build Coastguard Worker # AIX style linking. If -brtl is somewhere in LDFLAGS, we 266*2e9d4914SAndroid Build Coastguard Worker # need to do runtime linking. 267*2e9d4914SAndroid Build Coastguard Worker case $host_os in aix4.[23]|aix4.[23].*|aix5*) 268*2e9d4914SAndroid Build Coastguard Worker for ld_flag in $LDFLAGS; do 269*2e9d4914SAndroid Build Coastguard Worker if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 270*2e9d4914SAndroid Build Coastguard Worker aix_use_runtimelinking=yes 271*2e9d4914SAndroid Build Coastguard Worker break 272*2e9d4914SAndroid Build Coastguard Worker fi 273*2e9d4914SAndroid Build Coastguard Worker done 274*2e9d4914SAndroid Build Coastguard Worker ;; 275*2e9d4914SAndroid Build Coastguard Worker esac 276*2e9d4914SAndroid Build Coastguard Worker fi 277*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 278*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=':' 279*2e9d4914SAndroid Build Coastguard Worker if test "$GCC" = yes; then 280*2e9d4914SAndroid Build Coastguard Worker case $host_os in aix4.[012]|aix4.[012].*) 281*2e9d4914SAndroid Build Coastguard Worker collect2name=`${CC} -print-prog-name=collect2` 282*2e9d4914SAndroid Build Coastguard Worker if test -f "$collect2name" && \ 283*2e9d4914SAndroid Build Coastguard Worker strings "$collect2name" | grep resolve_lib_name >/dev/null 284*2e9d4914SAndroid Build Coastguard Worker then 285*2e9d4914SAndroid Build Coastguard Worker # We have reworked collect2 286*2e9d4914SAndroid Build Coastguard Worker : 287*2e9d4914SAndroid Build Coastguard Worker else 288*2e9d4914SAndroid Build Coastguard Worker # We have old collect2 289*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=unsupported 290*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 291*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 292*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator= 293*2e9d4914SAndroid Build Coastguard Worker fi 294*2e9d4914SAndroid Build Coastguard Worker ;; 295*2e9d4914SAndroid Build Coastguard Worker esac 296*2e9d4914SAndroid Build Coastguard Worker fi 297*2e9d4914SAndroid Build Coastguard Worker # Begin _LT_AC_SYS_LIBPATH_AIX. 298*2e9d4914SAndroid Build Coastguard Worker echo 'int main () { return 0; }' > conftest.c 299*2e9d4914SAndroid Build Coastguard Worker ${CC} ${LDFLAGS} conftest.c -o conftest 300*2e9d4914SAndroid Build Coastguard Worker aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 301*2e9d4914SAndroid Build Coastguard Worker}'` 302*2e9d4914SAndroid Build Coastguard Worker if test -z "$aix_libpath"; then 303*2e9d4914SAndroid Build Coastguard Worker aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 304*2e9d4914SAndroid Build Coastguard Worker}'` 305*2e9d4914SAndroid Build Coastguard Worker fi 306*2e9d4914SAndroid Build Coastguard Worker if test -z "$aix_libpath"; then 307*2e9d4914SAndroid Build Coastguard Worker aix_libpath="/usr/lib:/lib" 308*2e9d4914SAndroid Build Coastguard Worker fi 309*2e9d4914SAndroid Build Coastguard Worker rm -f conftest.c conftest 310*2e9d4914SAndroid Build Coastguard Worker # End _LT_AC_SYS_LIBPATH_AIX. 311*2e9d4914SAndroid Build Coastguard Worker if test "$aix_use_runtimelinking" = yes; then 312*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 313*2e9d4914SAndroid Build Coastguard Worker else 314*2e9d4914SAndroid Build Coastguard Worker if test "$host_cpu" = ia64; then 315*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 316*2e9d4914SAndroid Build Coastguard Worker else 317*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 318*2e9d4914SAndroid Build Coastguard Worker fi 319*2e9d4914SAndroid Build Coastguard Worker fi 320*2e9d4914SAndroid Build Coastguard Worker ;; 321*2e9d4914SAndroid Build Coastguard Worker amigaos*) 322*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 323*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 324*2e9d4914SAndroid Build Coastguard Worker # see comment about different semantics on the GNU ld section 325*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 326*2e9d4914SAndroid Build Coastguard Worker ;; 327*2e9d4914SAndroid Build Coastguard Worker bsdi[45]*) 328*2e9d4914SAndroid Build Coastguard Worker ;; 329*2e9d4914SAndroid Build Coastguard Worker cygwin* | mingw* | pw32*) 330*2e9d4914SAndroid Build Coastguard Worker # When not using gcc, we currently assume that we are using 331*2e9d4914SAndroid Build Coastguard Worker # Microsoft Visual C++. 332*2e9d4914SAndroid Build Coastguard Worker # hardcode_libdir_flag_spec is actually meaningless, as there is 333*2e9d4914SAndroid Build Coastguard Worker # no search path for DLLs. 334*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec=' ' 335*2e9d4914SAndroid Build Coastguard Worker libext=lib 336*2e9d4914SAndroid Build Coastguard Worker ;; 337*2e9d4914SAndroid Build Coastguard Worker darwin* | rhapsody*) 338*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=no 339*2e9d4914SAndroid Build Coastguard Worker if test "$GCC" = yes ; then 340*2e9d4914SAndroid Build Coastguard Worker : 341*2e9d4914SAndroid Build Coastguard Worker else 342*2e9d4914SAndroid Build Coastguard Worker case $cc_basename in 343*2e9d4914SAndroid Build Coastguard Worker xlc*) 344*2e9d4914SAndroid Build Coastguard Worker ;; 345*2e9d4914SAndroid Build Coastguard Worker *) 346*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 347*2e9d4914SAndroid Build Coastguard Worker ;; 348*2e9d4914SAndroid Build Coastguard Worker esac 349*2e9d4914SAndroid Build Coastguard Worker fi 350*2e9d4914SAndroid Build Coastguard Worker ;; 351*2e9d4914SAndroid Build Coastguard Worker dgux*) 352*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 353*2e9d4914SAndroid Build Coastguard Worker ;; 354*2e9d4914SAndroid Build Coastguard Worker freebsd1*) 355*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 356*2e9d4914SAndroid Build Coastguard Worker ;; 357*2e9d4914SAndroid Build Coastguard Worker freebsd2.2*) 358*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-R$libdir' 359*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 360*2e9d4914SAndroid Build Coastguard Worker ;; 361*2e9d4914SAndroid Build Coastguard Worker freebsd2*) 362*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 363*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 364*2e9d4914SAndroid Build Coastguard Worker ;; 365*2e9d4914SAndroid Build Coastguard Worker freebsd* | dragonfly*) 366*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-R$libdir' 367*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 368*2e9d4914SAndroid Build Coastguard Worker ;; 369*2e9d4914SAndroid Build Coastguard Worker hpux9*) 370*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 371*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 372*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 373*2e9d4914SAndroid Build Coastguard Worker # hardcode_minus_L: Not really in the search PATH, 374*2e9d4914SAndroid Build Coastguard Worker # but as the default location of the library. 375*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 376*2e9d4914SAndroid Build Coastguard Worker ;; 377*2e9d4914SAndroid Build Coastguard Worker hpux10*) 378*2e9d4914SAndroid Build Coastguard Worker if test "$with_gnu_ld" = no; then 379*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 380*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 381*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 382*2e9d4914SAndroid Build Coastguard Worker # hardcode_minus_L: Not really in the search PATH, 383*2e9d4914SAndroid Build Coastguard Worker # but as the default location of the library. 384*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 385*2e9d4914SAndroid Build Coastguard Worker fi 386*2e9d4914SAndroid Build Coastguard Worker ;; 387*2e9d4914SAndroid Build Coastguard Worker hpux11*) 388*2e9d4914SAndroid Build Coastguard Worker if test "$with_gnu_ld" = no; then 389*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 390*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 391*2e9d4914SAndroid Build Coastguard Worker case $host_cpu in 392*2e9d4914SAndroid Build Coastguard Worker hppa*64*|ia64*) 393*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=no 394*2e9d4914SAndroid Build Coastguard Worker ;; 395*2e9d4914SAndroid Build Coastguard Worker *) 396*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 397*2e9d4914SAndroid Build Coastguard Worker # hardcode_minus_L: Not really in the search PATH, 398*2e9d4914SAndroid Build Coastguard Worker # but as the default location of the library. 399*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 400*2e9d4914SAndroid Build Coastguard Worker ;; 401*2e9d4914SAndroid Build Coastguard Worker esac 402*2e9d4914SAndroid Build Coastguard Worker fi 403*2e9d4914SAndroid Build Coastguard Worker ;; 404*2e9d4914SAndroid Build Coastguard Worker irix5* | irix6* | nonstopux*) 405*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 406*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 407*2e9d4914SAndroid Build Coastguard Worker ;; 408*2e9d4914SAndroid Build Coastguard Worker netbsd*) 409*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-R$libdir' 410*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 411*2e9d4914SAndroid Build Coastguard Worker ;; 412*2e9d4914SAndroid Build Coastguard Worker newsos6) 413*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 414*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 415*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 416*2e9d4914SAndroid Build Coastguard Worker ;; 417*2e9d4914SAndroid Build Coastguard Worker openbsd*) 418*2e9d4914SAndroid Build Coastguard Worker if test -f /usr/libexec/ld.so; then 419*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 420*2e9d4914SAndroid Build Coastguard Worker if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 421*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 422*2e9d4914SAndroid Build Coastguard Worker else 423*2e9d4914SAndroid Build Coastguard Worker case "$host_os" in 424*2e9d4914SAndroid Build Coastguard Worker openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 425*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-R$libdir' 426*2e9d4914SAndroid Build Coastguard Worker ;; 427*2e9d4914SAndroid Build Coastguard Worker *) 428*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 429*2e9d4914SAndroid Build Coastguard Worker ;; 430*2e9d4914SAndroid Build Coastguard Worker esac 431*2e9d4914SAndroid Build Coastguard Worker fi 432*2e9d4914SAndroid Build Coastguard Worker else 433*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 434*2e9d4914SAndroid Build Coastguard Worker fi 435*2e9d4914SAndroid Build Coastguard Worker ;; 436*2e9d4914SAndroid Build Coastguard Worker os2*) 437*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 438*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 439*2e9d4914SAndroid Build Coastguard Worker ;; 440*2e9d4914SAndroid Build Coastguard Worker osf3*) 441*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 442*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 443*2e9d4914SAndroid Build Coastguard Worker ;; 444*2e9d4914SAndroid Build Coastguard Worker osf4* | osf5*) 445*2e9d4914SAndroid Build Coastguard Worker if test "$GCC" = yes; then 446*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 447*2e9d4914SAndroid Build Coastguard Worker else 448*2e9d4914SAndroid Build Coastguard Worker # Both cc and cxx compiler support -rpath directly 449*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-rpath $libdir' 450*2e9d4914SAndroid Build Coastguard Worker fi 451*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=: 452*2e9d4914SAndroid Build Coastguard Worker ;; 453*2e9d4914SAndroid Build Coastguard Worker solaris*) 454*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-R$libdir' 455*2e9d4914SAndroid Build Coastguard Worker ;; 456*2e9d4914SAndroid Build Coastguard Worker sunos4*) 457*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 458*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes 459*2e9d4914SAndroid Build Coastguard Worker hardcode_minus_L=yes 460*2e9d4914SAndroid Build Coastguard Worker ;; 461*2e9d4914SAndroid Build Coastguard Worker sysv4) 462*2e9d4914SAndroid Build Coastguard Worker case $host_vendor in 463*2e9d4914SAndroid Build Coastguard Worker sni) 464*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=yes # is this really true??? 465*2e9d4914SAndroid Build Coastguard Worker ;; 466*2e9d4914SAndroid Build Coastguard Worker siemens) 467*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=no 468*2e9d4914SAndroid Build Coastguard Worker ;; 469*2e9d4914SAndroid Build Coastguard Worker motorola) 470*2e9d4914SAndroid Build Coastguard Worker hardcode_direct=no #Motorola manual says yes, but my tests say they lie 471*2e9d4914SAndroid Build Coastguard Worker ;; 472*2e9d4914SAndroid Build Coastguard Worker esac 473*2e9d4914SAndroid Build Coastguard Worker ;; 474*2e9d4914SAndroid Build Coastguard Worker sysv4.3*) 475*2e9d4914SAndroid Build Coastguard Worker ;; 476*2e9d4914SAndroid Build Coastguard Worker sysv4*MP*) 477*2e9d4914SAndroid Build Coastguard Worker if test -d /usr/nec; then 478*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=yes 479*2e9d4914SAndroid Build Coastguard Worker fi 480*2e9d4914SAndroid Build Coastguard Worker ;; 481*2e9d4914SAndroid Build Coastguard Worker sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 482*2e9d4914SAndroid Build Coastguard Worker ;; 483*2e9d4914SAndroid Build Coastguard Worker sysv5* | sco3.2v5* | sco5v6*) 484*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 485*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_separator=':' 486*2e9d4914SAndroid Build Coastguard Worker ;; 487*2e9d4914SAndroid Build Coastguard Worker uts4*) 488*2e9d4914SAndroid Build Coastguard Worker hardcode_libdir_flag_spec='-L$libdir' 489*2e9d4914SAndroid Build Coastguard Worker ;; 490*2e9d4914SAndroid Build Coastguard Worker *) 491*2e9d4914SAndroid Build Coastguard Worker ld_shlibs=no 492*2e9d4914SAndroid Build Coastguard Worker ;; 493*2e9d4914SAndroid Build Coastguard Worker esac 494*2e9d4914SAndroid Build Coastguard Workerfi 495*2e9d4914SAndroid Build Coastguard Worker 496*2e9d4914SAndroid Build Coastguard Worker# Check dynamic linker characteristics 497*2e9d4914SAndroid Build Coastguard Worker# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. 498*2e9d4914SAndroid Build Coastguard Worker# Unlike libtool.m4, here we don't care about _all_ names of the library, but 499*2e9d4914SAndroid Build Coastguard Worker# only about the one the linker finds when passed -lNAME. This is the last 500*2e9d4914SAndroid Build Coastguard Worker# element of library_names_spec in libtool.m4, or possibly two of them if the 501*2e9d4914SAndroid Build Coastguard Worker# linker has special search rules. 502*2e9d4914SAndroid Build Coastguard Workerlibrary_names_spec= # the last element of library_names_spec in libtool.m4 503*2e9d4914SAndroid Build Coastguard Workerlibname_spec='lib$name' 504*2e9d4914SAndroid Build Coastguard Workercase "$host_os" in 505*2e9d4914SAndroid Build Coastguard Worker aix3*) 506*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname.a' 507*2e9d4914SAndroid Build Coastguard Worker ;; 508*2e9d4914SAndroid Build Coastguard Worker aix4* | aix5*) 509*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 510*2e9d4914SAndroid Build Coastguard Worker ;; 511*2e9d4914SAndroid Build Coastguard Worker amigaos*) 512*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname.a' 513*2e9d4914SAndroid Build Coastguard Worker ;; 514*2e9d4914SAndroid Build Coastguard Worker beos*) 515*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 516*2e9d4914SAndroid Build Coastguard Worker ;; 517*2e9d4914SAndroid Build Coastguard Worker bsdi[45]*) 518*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 519*2e9d4914SAndroid Build Coastguard Worker ;; 520*2e9d4914SAndroid Build Coastguard Worker cygwin* | mingw* | pw32*) 521*2e9d4914SAndroid Build Coastguard Worker shrext=.dll 522*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname.dll.a $libname.lib' 523*2e9d4914SAndroid Build Coastguard Worker ;; 524*2e9d4914SAndroid Build Coastguard Worker darwin* | rhapsody*) 525*2e9d4914SAndroid Build Coastguard Worker shrext=.dylib 526*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 527*2e9d4914SAndroid Build Coastguard Worker ;; 528*2e9d4914SAndroid Build Coastguard Worker dgux*) 529*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 530*2e9d4914SAndroid Build Coastguard Worker ;; 531*2e9d4914SAndroid Build Coastguard Worker freebsd1*) 532*2e9d4914SAndroid Build Coastguard Worker ;; 533*2e9d4914SAndroid Build Coastguard Worker freebsd* | dragonfly*) 534*2e9d4914SAndroid Build Coastguard Worker case "$host_os" in 535*2e9d4914SAndroid Build Coastguard Worker freebsd[123]*) 536*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext$versuffix' ;; 537*2e9d4914SAndroid Build Coastguard Worker *) 538*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' ;; 539*2e9d4914SAndroid Build Coastguard Worker esac 540*2e9d4914SAndroid Build Coastguard Worker ;; 541*2e9d4914SAndroid Build Coastguard Worker gnu*) 542*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 543*2e9d4914SAndroid Build Coastguard Worker ;; 544*2e9d4914SAndroid Build Coastguard Worker hpux9* | hpux10* | hpux11*) 545*2e9d4914SAndroid Build Coastguard Worker case $host_cpu in 546*2e9d4914SAndroid Build Coastguard Worker ia64*) 547*2e9d4914SAndroid Build Coastguard Worker shrext=.so 548*2e9d4914SAndroid Build Coastguard Worker ;; 549*2e9d4914SAndroid Build Coastguard Worker hppa*64*) 550*2e9d4914SAndroid Build Coastguard Worker shrext=.sl 551*2e9d4914SAndroid Build Coastguard Worker ;; 552*2e9d4914SAndroid Build Coastguard Worker *) 553*2e9d4914SAndroid Build Coastguard Worker shrext=.sl 554*2e9d4914SAndroid Build Coastguard Worker ;; 555*2e9d4914SAndroid Build Coastguard Worker esac 556*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 557*2e9d4914SAndroid Build Coastguard Worker ;; 558*2e9d4914SAndroid Build Coastguard Worker interix[3-9]*) 559*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 560*2e9d4914SAndroid Build Coastguard Worker ;; 561*2e9d4914SAndroid Build Coastguard Worker irix5* | irix6* | nonstopux*) 562*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 563*2e9d4914SAndroid Build Coastguard Worker case "$host_os" in 564*2e9d4914SAndroid Build Coastguard Worker irix5* | nonstopux*) 565*2e9d4914SAndroid Build Coastguard Worker libsuff= shlibsuff= 566*2e9d4914SAndroid Build Coastguard Worker ;; 567*2e9d4914SAndroid Build Coastguard Worker *) 568*2e9d4914SAndroid Build Coastguard Worker case $LD in 569*2e9d4914SAndroid Build Coastguard Worker *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; 570*2e9d4914SAndroid Build Coastguard Worker *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; 571*2e9d4914SAndroid Build Coastguard Worker *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; 572*2e9d4914SAndroid Build Coastguard Worker *) libsuff= shlibsuff= ;; 573*2e9d4914SAndroid Build Coastguard Worker esac 574*2e9d4914SAndroid Build Coastguard Worker ;; 575*2e9d4914SAndroid Build Coastguard Worker esac 576*2e9d4914SAndroid Build Coastguard Worker ;; 577*2e9d4914SAndroid Build Coastguard Worker linux*oldld* | linux*aout* | linux*coff*) 578*2e9d4914SAndroid Build Coastguard Worker ;; 579*2e9d4914SAndroid Build Coastguard Worker linux* | k*bsd*-gnu) 580*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 581*2e9d4914SAndroid Build Coastguard Worker ;; 582*2e9d4914SAndroid Build Coastguard Worker knetbsd*-gnu) 583*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 584*2e9d4914SAndroid Build Coastguard Worker ;; 585*2e9d4914SAndroid Build Coastguard Worker netbsd*) 586*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 587*2e9d4914SAndroid Build Coastguard Worker ;; 588*2e9d4914SAndroid Build Coastguard Worker newsos6) 589*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 590*2e9d4914SAndroid Build Coastguard Worker ;; 591*2e9d4914SAndroid Build Coastguard Worker nto-qnx*) 592*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 593*2e9d4914SAndroid Build Coastguard Worker ;; 594*2e9d4914SAndroid Build Coastguard Worker openbsd*) 595*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext$versuffix' 596*2e9d4914SAndroid Build Coastguard Worker ;; 597*2e9d4914SAndroid Build Coastguard Worker os2*) 598*2e9d4914SAndroid Build Coastguard Worker libname_spec='$name' 599*2e9d4914SAndroid Build Coastguard Worker shrext=.dll 600*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname.a' 601*2e9d4914SAndroid Build Coastguard Worker ;; 602*2e9d4914SAndroid Build Coastguard Worker osf3* | osf4* | osf5*) 603*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 604*2e9d4914SAndroid Build Coastguard Worker ;; 605*2e9d4914SAndroid Build Coastguard Worker rdos*) 606*2e9d4914SAndroid Build Coastguard Worker ;; 607*2e9d4914SAndroid Build Coastguard Worker solaris*) 608*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 609*2e9d4914SAndroid Build Coastguard Worker ;; 610*2e9d4914SAndroid Build Coastguard Worker sunos4*) 611*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext$versuffix' 612*2e9d4914SAndroid Build Coastguard Worker ;; 613*2e9d4914SAndroid Build Coastguard Worker sysv4 | sysv4.3*) 614*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 615*2e9d4914SAndroid Build Coastguard Worker ;; 616*2e9d4914SAndroid Build Coastguard Worker sysv4*MP*) 617*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 618*2e9d4914SAndroid Build Coastguard Worker ;; 619*2e9d4914SAndroid Build Coastguard Worker sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 620*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 621*2e9d4914SAndroid Build Coastguard Worker ;; 622*2e9d4914SAndroid Build Coastguard Worker uts4*) 623*2e9d4914SAndroid Build Coastguard Worker library_names_spec='$libname$shrext' 624*2e9d4914SAndroid Build Coastguard Worker ;; 625*2e9d4914SAndroid Build Coastguard Workeresac 626*2e9d4914SAndroid Build Coastguard Worker 627*2e9d4914SAndroid Build Coastguard Workersed_quote_subst='s/\(["`$\\]\)/\\\1/g' 628*2e9d4914SAndroid Build Coastguard Workerescaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` 629*2e9d4914SAndroid Build Coastguard Workershlibext=`echo "$shrext" | sed -e 's,^\.,,'` 630*2e9d4914SAndroid Build Coastguard Workerescaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 631*2e9d4914SAndroid Build Coastguard Workerescaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 632*2e9d4914SAndroid Build Coastguard Workerescaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 633*2e9d4914SAndroid Build Coastguard Worker 634*2e9d4914SAndroid Build Coastguard WorkerLC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF 635*2e9d4914SAndroid Build Coastguard Worker 636*2e9d4914SAndroid Build Coastguard Worker# How to pass a linker flag through the compiler. 637*2e9d4914SAndroid Build Coastguard Workerwl="$escaped_wl" 638*2e9d4914SAndroid Build Coastguard Worker 639*2e9d4914SAndroid Build Coastguard Worker# Static library suffix (normally "a"). 640*2e9d4914SAndroid Build Coastguard Workerlibext="$libext" 641*2e9d4914SAndroid Build Coastguard Worker 642*2e9d4914SAndroid Build Coastguard Worker# Shared library suffix (normally "so"). 643*2e9d4914SAndroid Build Coastguard Workershlibext="$shlibext" 644*2e9d4914SAndroid Build Coastguard Worker 645*2e9d4914SAndroid Build Coastguard Worker# Format of library name prefix. 646*2e9d4914SAndroid Build Coastguard Workerlibname_spec="$escaped_libname_spec" 647*2e9d4914SAndroid Build Coastguard Worker 648*2e9d4914SAndroid Build Coastguard Worker# Library names that the linker finds when passed -lNAME. 649*2e9d4914SAndroid Build Coastguard Workerlibrary_names_spec="$escaped_library_names_spec" 650*2e9d4914SAndroid Build Coastguard Worker 651*2e9d4914SAndroid Build Coastguard Worker# Flag to hardcode \$libdir into a binary during linking. 652*2e9d4914SAndroid Build Coastguard Worker# This must work even if \$libdir does not exist. 653*2e9d4914SAndroid Build Coastguard Workerhardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" 654*2e9d4914SAndroid Build Coastguard Worker 655*2e9d4914SAndroid Build Coastguard Worker# Whether we need a single -rpath flag with a separated argument. 656*2e9d4914SAndroid Build Coastguard Workerhardcode_libdir_separator="$hardcode_libdir_separator" 657*2e9d4914SAndroid Build Coastguard Worker 658*2e9d4914SAndroid Build Coastguard Worker# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 659*2e9d4914SAndroid Build Coastguard Worker# resulting binary. 660*2e9d4914SAndroid Build Coastguard Workerhardcode_direct="$hardcode_direct" 661*2e9d4914SAndroid Build Coastguard Worker 662*2e9d4914SAndroid Build Coastguard Worker# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 663*2e9d4914SAndroid Build Coastguard Worker# resulting binary. 664*2e9d4914SAndroid Build Coastguard Workerhardcode_minus_L="$hardcode_minus_L" 665*2e9d4914SAndroid Build Coastguard Worker 666*2e9d4914SAndroid Build Coastguard WorkerEOF 667