cSvn-UI for SVN Repositories

cGit-UI – is a web interface for Subversion (SVN) Repositories. cSvn CGI script is writen in C and therefore it's fast enough

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