jpayne@68: #! /bin/sh jpayne@68: # Output a system dependent set of variables, describing how to set the jpayne@68: # run time search path of shared libraries in an executable. jpayne@68: # jpayne@68: # Copyright 1996-2024 Free Software Foundation, Inc. jpayne@68: # Taken from GNU libtool, 2001 jpayne@68: # Originally by Gordon Matzigkeit , 1996 jpayne@68: # jpayne@68: # This file is free software; the Free Software Foundation gives jpayne@68: # unlimited permission to copy and/or distribute it, with or without jpayne@68: # modifications, as long as this notice is preserved. jpayne@68: # jpayne@68: # The first argument passed to this file is the canonical host specification, jpayne@68: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM jpayne@68: # or jpayne@68: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM jpayne@68: # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld jpayne@68: # should be set by the caller. jpayne@68: # jpayne@68: # The set of defined variables is at the end of this script. jpayne@68: jpayne@68: # Known limitations: jpayne@68: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer jpayne@68: # than 256 bytes, otherwise the compiler driver will dump core. The only jpayne@68: # known workaround is to choose shorter directory names for the build jpayne@68: # directory and/or the installation directory. jpayne@68: jpayne@68: # All known linkers require a '.a' archive for static linking (except MSVC, jpayne@68: # which needs '.lib'). jpayne@68: libext=a jpayne@68: shrext=.so jpayne@68: jpayne@68: host="$1" jpayne@68: host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` jpayne@68: host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` jpayne@68: host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` jpayne@68: jpayne@68: # Code taken from libtool.m4's _LT_CC_BASENAME. jpayne@68: jpayne@68: for cc_temp in $CC""; do jpayne@68: case $cc_temp in jpayne@68: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; jpayne@68: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; jpayne@68: \-*) ;; jpayne@68: *) break;; jpayne@68: esac jpayne@68: done jpayne@68: cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` jpayne@68: jpayne@68: # Code taken from libtool.m4's _LT_COMPILER_PIC. jpayne@68: jpayne@68: wl= jpayne@68: if test "$GCC" = yes; then jpayne@68: wl='-Wl,' jpayne@68: else jpayne@68: case "$host_os" in jpayne@68: aix*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: mingw* | cygwin* | pw32* | os2* | cegcc*) jpayne@68: ;; jpayne@68: hpux9* | hpux10* | hpux11*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: irix5* | irix6* | nonstopux*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: linux* | k*bsd*-gnu | kopensolaris*-gnu) jpayne@68: case $cc_basename in jpayne@68: ecc*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: icc* | ifort*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: lf95*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: nagfor*) jpayne@68: wl='-Wl,-Wl,,' jpayne@68: ;; jpayne@68: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: ccc*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: xl* | bgxl* | bgf* | mpixl*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: como) jpayne@68: wl='-lopt=' jpayne@68: ;; jpayne@68: *) jpayne@68: case `$CC -V 2>&1 | sed 5q` in jpayne@68: *Sun\ F* | *Sun*Fortran*) jpayne@68: wl= jpayne@68: ;; jpayne@68: *Sun\ C*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: newsos6) jpayne@68: ;; jpayne@68: *nto* | *qnx*) jpayne@68: ;; jpayne@68: osf3* | osf4* | osf5*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: rdos*) jpayne@68: ;; jpayne@68: solaris*) jpayne@68: case $cc_basename in jpayne@68: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) jpayne@68: wl='-Qoption ld ' jpayne@68: ;; jpayne@68: *) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: sunos4*) jpayne@68: wl='-Qoption ld ' jpayne@68: ;; jpayne@68: sysv4 | sysv4.2uw2* | sysv4.3*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: sysv4*MP*) jpayne@68: ;; jpayne@68: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: unicos*) jpayne@68: wl='-Wl,' jpayne@68: ;; jpayne@68: uts4*) jpayne@68: ;; jpayne@68: esac jpayne@68: fi jpayne@68: jpayne@68: # Code taken from libtool.m4's _LT_LINKER_SHLIBS. jpayne@68: jpayne@68: hardcode_libdir_flag_spec= jpayne@68: hardcode_libdir_separator= jpayne@68: hardcode_direct=no jpayne@68: hardcode_minus_L=no jpayne@68: jpayne@68: case "$host_os" in jpayne@68: cygwin* | mingw* | pw32* | cegcc*) jpayne@68: # FIXME: the MSVC++ port hasn't been tested in a loooong time jpayne@68: # When not using gcc, we currently assume that we are using jpayne@68: # Microsoft Visual C++. jpayne@68: if test "$GCC" != yes; then jpayne@68: with_gnu_ld=no jpayne@68: fi jpayne@68: ;; jpayne@68: interix*) jpayne@68: # we just hope/assume this is gcc and not c89 (= MSVC++) jpayne@68: with_gnu_ld=yes jpayne@68: ;; jpayne@68: openbsd*) jpayne@68: with_gnu_ld=no jpayne@68: ;; jpayne@68: esac jpayne@68: jpayne@68: ld_shlibs=yes jpayne@68: if test "$with_gnu_ld" = yes; then jpayne@68: # Set some defaults for GNU ld with shared library support. These jpayne@68: # are reset later if shared libraries are not supported. Putting them jpayne@68: # here allows them to be overridden if necessary. jpayne@68: # Unlike libtool, we use -rpath here, not --rpath, since the documented jpayne@68: # option of GNU ld is called -rpath, not --rpath. jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' jpayne@68: case "$host_os" in jpayne@68: aix[3-9]*) jpayne@68: # On AIX/PPC, the GNU linker is very broken jpayne@68: if test "$host_cpu" != ia64; then jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: amigaos*) jpayne@68: case "$host_cpu" in jpayne@68: powerpc) jpayne@68: ;; jpayne@68: m68k) jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: beos*) jpayne@68: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then jpayne@68: : jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: cygwin* | mingw* | pw32* | cegcc*) jpayne@68: # hardcode_libdir_flag_spec is actually meaningless, as there is jpayne@68: # no search path for DLLs. jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then jpayne@68: : jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: haiku*) jpayne@68: ;; jpayne@68: interix[3-9]*) jpayne@68: hardcode_direct=no jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' jpayne@68: ;; jpayne@68: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) jpayne@68: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then jpayne@68: : jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: netbsd*) jpayne@68: ;; jpayne@68: solaris*) jpayne@68: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then jpayne@68: ld_shlibs=no jpayne@68: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then jpayne@68: : jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) jpayne@68: case `$LD -v 2>&1` in jpayne@68: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) jpayne@68: ld_shlibs=no jpayne@68: ;; jpayne@68: *) jpayne@68: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then jpayne@68: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: sunos4*) jpayne@68: hardcode_direct=yes jpayne@68: ;; jpayne@68: *) jpayne@68: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then jpayne@68: : jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: esac jpayne@68: if test "$ld_shlibs" = no; then jpayne@68: hardcode_libdir_flag_spec= jpayne@68: fi jpayne@68: else jpayne@68: case "$host_os" in jpayne@68: aix3*) jpayne@68: # Note: this linker hardcodes the directories in LIBPATH if there jpayne@68: # are no directories specified by -L. jpayne@68: hardcode_minus_L=yes jpayne@68: if test "$GCC" = yes; then jpayne@68: # Neither direct hardcoding nor static linking is supported with a jpayne@68: # broken collect2. jpayne@68: hardcode_direct=unsupported jpayne@68: fi jpayne@68: ;; jpayne@68: aix[4-9]*) jpayne@68: if test "$host_cpu" = ia64; then jpayne@68: # On IA64, the linker does run time linking by default, so we don't jpayne@68: # have to do anything special. jpayne@68: aix_use_runtimelinking=no jpayne@68: else jpayne@68: aix_use_runtimelinking=no jpayne@68: # Test if we are trying to use run time linking or normal jpayne@68: # AIX style linking. If -brtl is somewhere in LDFLAGS, we jpayne@68: # need to do runtime linking. jpayne@68: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) jpayne@68: for ld_flag in $LDFLAGS; do jpayne@68: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then jpayne@68: aix_use_runtimelinking=yes jpayne@68: break jpayne@68: fi jpayne@68: done jpayne@68: ;; jpayne@68: esac jpayne@68: fi jpayne@68: hardcode_direct=yes jpayne@68: hardcode_libdir_separator=':' jpayne@68: if test "$GCC" = yes; then jpayne@68: case $host_os in aix4.[012]|aix4.[012].*) jpayne@68: collect2name=`${CC} -print-prog-name=collect2` jpayne@68: if test -f "$collect2name" && \ jpayne@68: strings "$collect2name" | grep resolve_lib_name >/dev/null jpayne@68: then jpayne@68: # We have reworked collect2 jpayne@68: : jpayne@68: else jpayne@68: # We have old collect2 jpayne@68: hardcode_direct=unsupported jpayne@68: hardcode_minus_L=yes jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: hardcode_libdir_separator= jpayne@68: fi jpayne@68: ;; jpayne@68: esac jpayne@68: fi jpayne@68: # Begin _LT_AC_SYS_LIBPATH_AIX. jpayne@68: echo 'int main () { return 0; }' > conftest.c jpayne@68: ${CC} ${LDFLAGS} conftest.c -o conftest jpayne@68: aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } jpayne@68: }'` jpayne@68: if test -z "$aix_libpath"; then jpayne@68: aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } jpayne@68: }'` jpayne@68: fi jpayne@68: if test -z "$aix_libpath"; then jpayne@68: aix_libpath="/usr/lib:/lib" jpayne@68: fi jpayne@68: rm -f conftest.c conftest jpayne@68: # End _LT_AC_SYS_LIBPATH_AIX. jpayne@68: if test "$aix_use_runtimelinking" = yes; then jpayne@68: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" jpayne@68: else jpayne@68: if test "$host_cpu" = ia64; then jpayne@68: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' jpayne@68: else jpayne@68: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" jpayne@68: fi jpayne@68: fi jpayne@68: ;; jpayne@68: amigaos*) jpayne@68: case "$host_cpu" in jpayne@68: powerpc) jpayne@68: ;; jpayne@68: m68k) jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: bsdi[45]*) jpayne@68: ;; jpayne@68: cygwin* | mingw* | pw32* | cegcc*) jpayne@68: # When not using gcc, we currently assume that we are using jpayne@68: # Microsoft Visual C++. jpayne@68: # hardcode_libdir_flag_spec is actually meaningless, as there is jpayne@68: # no search path for DLLs. jpayne@68: hardcode_libdir_flag_spec=' ' jpayne@68: libext=lib jpayne@68: ;; jpayne@68: darwin* | rhapsody*) jpayne@68: hardcode_direct=no jpayne@68: if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then jpayne@68: : jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: dgux*) jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: ;; jpayne@68: freebsd2.[01]*) jpayne@68: hardcode_direct=yes jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: freebsd* | dragonfly* | midnightbsd*) jpayne@68: hardcode_libdir_flag_spec='-R$libdir' jpayne@68: hardcode_direct=yes jpayne@68: ;; jpayne@68: hpux9*) jpayne@68: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' jpayne@68: hardcode_libdir_separator=: jpayne@68: hardcode_direct=yes jpayne@68: # hardcode_minus_L: Not really in the search PATH, jpayne@68: # but as the default location of the library. jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: hpux10*) jpayne@68: if test "$with_gnu_ld" = no; then jpayne@68: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' jpayne@68: hardcode_libdir_separator=: jpayne@68: hardcode_direct=yes jpayne@68: # hardcode_minus_L: Not really in the search PATH, jpayne@68: # but as the default location of the library. jpayne@68: hardcode_minus_L=yes jpayne@68: fi jpayne@68: ;; jpayne@68: hpux11*) jpayne@68: if test "$with_gnu_ld" = no; then jpayne@68: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' jpayne@68: hardcode_libdir_separator=: jpayne@68: case $host_cpu in jpayne@68: hppa*64*|ia64*) jpayne@68: hardcode_direct=no jpayne@68: ;; jpayne@68: *) jpayne@68: hardcode_direct=yes jpayne@68: # hardcode_minus_L: Not really in the search PATH, jpayne@68: # but as the default location of the library. jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: esac jpayne@68: fi jpayne@68: ;; jpayne@68: irix5* | irix6* | nonstopux*) jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' jpayne@68: hardcode_libdir_separator=: jpayne@68: ;; jpayne@68: netbsd*) jpayne@68: hardcode_libdir_flag_spec='-R$libdir' jpayne@68: hardcode_direct=yes jpayne@68: ;; jpayne@68: newsos6) jpayne@68: hardcode_direct=yes jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' jpayne@68: hardcode_libdir_separator=: jpayne@68: ;; jpayne@68: *nto* | *qnx*) jpayne@68: ;; jpayne@68: openbsd*) jpayne@68: if test -f /usr/libexec/ld.so; then jpayne@68: hardcode_direct=yes jpayne@68: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' jpayne@68: else jpayne@68: case "$host_os" in jpayne@68: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) jpayne@68: hardcode_libdir_flag_spec='-R$libdir' jpayne@68: ;; jpayne@68: *) jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' jpayne@68: ;; jpayne@68: esac jpayne@68: fi jpayne@68: else jpayne@68: ld_shlibs=no jpayne@68: fi jpayne@68: ;; jpayne@68: os2*) jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: osf3*) jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' jpayne@68: hardcode_libdir_separator=: jpayne@68: ;; jpayne@68: osf4* | osf5*) jpayne@68: if test "$GCC" = yes; then jpayne@68: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' jpayne@68: else jpayne@68: # Both cc and cxx compiler support -rpath directly jpayne@68: hardcode_libdir_flag_spec='-rpath $libdir' jpayne@68: fi jpayne@68: hardcode_libdir_separator=: jpayne@68: ;; jpayne@68: solaris*) jpayne@68: hardcode_libdir_flag_spec='-R$libdir' jpayne@68: ;; jpayne@68: sunos4*) jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: hardcode_direct=yes jpayne@68: hardcode_minus_L=yes jpayne@68: ;; jpayne@68: sysv4) jpayne@68: case $host_vendor in jpayne@68: sni) jpayne@68: hardcode_direct=yes # is this really true??? jpayne@68: ;; jpayne@68: siemens) jpayne@68: hardcode_direct=no jpayne@68: ;; jpayne@68: motorola) jpayne@68: hardcode_direct=no #Motorola manual says yes, but my tests say they lie jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: sysv4.3*) jpayne@68: ;; jpayne@68: sysv4*MP*) jpayne@68: if test -d /usr/nec; then jpayne@68: ld_shlibs=yes jpayne@68: fi jpayne@68: ;; jpayne@68: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) jpayne@68: ;; jpayne@68: sysv5* | sco3.2v5* | sco5v6*) jpayne@68: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' jpayne@68: hardcode_libdir_separator=':' jpayne@68: ;; jpayne@68: uts4*) jpayne@68: hardcode_libdir_flag_spec='-L$libdir' jpayne@68: ;; jpayne@68: *) jpayne@68: ld_shlibs=no jpayne@68: ;; jpayne@68: esac jpayne@68: fi jpayne@68: jpayne@68: # Check dynamic linker characteristics jpayne@68: # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. jpayne@68: # Unlike libtool.m4, here we don't care about _all_ names of the library, but jpayne@68: # only about the one the linker finds when passed -lNAME. This is the last jpayne@68: # element of library_names_spec in libtool.m4, or possibly two of them if the jpayne@68: # linker has special search rules. jpayne@68: library_names_spec= # the last element of library_names_spec in libtool.m4 jpayne@68: libname_spec='lib$name' jpayne@68: case "$host_os" in jpayne@68: aix3*) jpayne@68: library_names_spec='$libname.a' jpayne@68: ;; jpayne@68: aix[4-9]*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: amigaos*) jpayne@68: case "$host_cpu" in jpayne@68: powerpc*) jpayne@68: library_names_spec='$libname$shrext' ;; jpayne@68: m68k) jpayne@68: library_names_spec='$libname.a' ;; jpayne@68: esac jpayne@68: ;; jpayne@68: beos*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: bsdi[45]*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: cygwin* | mingw* | pw32* | cegcc*) jpayne@68: shrext=.dll jpayne@68: library_names_spec='$libname.dll.a $libname.lib' jpayne@68: ;; jpayne@68: darwin* | rhapsody*) jpayne@68: shrext=.dylib jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: dgux*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: freebsd[23].*) jpayne@68: library_names_spec='$libname$shrext$versuffix' jpayne@68: ;; jpayne@68: freebsd* | dragonfly* | midnightbsd*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: gnu*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: haiku*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: hpux9* | hpux10* | hpux11*) jpayne@68: case $host_cpu in jpayne@68: ia64*) jpayne@68: shrext=.so jpayne@68: ;; jpayne@68: hppa*64*) jpayne@68: shrext=.sl jpayne@68: ;; jpayne@68: *) jpayne@68: shrext=.sl jpayne@68: ;; jpayne@68: esac jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: interix[3-9]*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: irix5* | irix6* | nonstopux*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: case "$host_os" in jpayne@68: irix5* | nonstopux*) jpayne@68: libsuff= shlibsuff= jpayne@68: ;; jpayne@68: *) jpayne@68: case $LD in jpayne@68: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; jpayne@68: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; jpayne@68: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; jpayne@68: *) libsuff= shlibsuff= ;; jpayne@68: esac jpayne@68: ;; jpayne@68: esac jpayne@68: ;; jpayne@68: linux*oldld* | linux*aout* | linux*coff*) jpayne@68: ;; jpayne@68: linux* | k*bsd*-gnu | kopensolaris*-gnu) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: knetbsd*-gnu) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: netbsd*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: newsos6) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: *nto* | *qnx*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: openbsd*) jpayne@68: library_names_spec='$libname$shrext$versuffix' jpayne@68: ;; jpayne@68: os2*) jpayne@68: libname_spec='$name' jpayne@68: shrext=.dll jpayne@68: library_names_spec='$libname.a' jpayne@68: ;; jpayne@68: osf3* | osf4* | osf5*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: rdos*) jpayne@68: ;; jpayne@68: solaris*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: sunos4*) jpayne@68: library_names_spec='$libname$shrext$versuffix' jpayne@68: ;; jpayne@68: sysv4 | sysv4.3*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: sysv4*MP*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: tpf*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: uts4*) jpayne@68: library_names_spec='$libname$shrext' jpayne@68: ;; jpayne@68: esac jpayne@68: jpayne@68: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' jpayne@68: escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` jpayne@68: shlibext=`echo "$shrext" | sed -e 's,^\.,,'` jpayne@68: escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` jpayne@68: escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` jpayne@68: escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` jpayne@68: jpayne@68: LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <