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