config.rpath (flex-2.6.3) | : | config.rpath (flex-2.6.4) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Output a system dependent set of variables, describing how to set the | # Output a system dependent set of variables, describing how to set the | |||
# run time search path of shared libraries in an executable. | # run time search path of shared libraries in an executable. | |||
# | # | |||
# Copyright 1996-2014 Free Software Foundation, Inc. | # Copyright 1996-2010 Free Software Foundation, Inc. | |||
# Taken from GNU libtool, 2001 | # Taken from GNU libtool, 2001 | |||
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |||
# | # | |||
# This file is free software; the Free Software Foundation gives | # This file is free software; the Free Software Foundation gives | |||
# unlimited permission to copy and/or distribute it, with or without | # unlimited permission to copy and/or distribute it, with or without | |||
# modifications, as long as this notice is preserved. | # modifications, as long as this notice is preserved. | |||
# | # | |||
# The first argument passed to this file is the canonical host specification, | # The first argument passed to this file is the canonical host specification, | |||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |||
# or | # or | |||
skipping to change at line 28 | skipping to change at line 28 | |||
# should be set by the caller. | # should be set by the caller. | |||
# | # | |||
# The set of defined variables is at the end of this script. | # The set of defined variables is at the end of this script. | |||
# Known limitations: | # Known limitations: | |||
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer | # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer | |||
# than 256 bytes, otherwise the compiler driver will dump core. The only | # than 256 bytes, otherwise the compiler driver will dump core. The only | |||
# known workaround is to choose shorter directory names for the build | # known workaround is to choose shorter directory names for the build | |||
# directory and/or the installation directory. | # directory and/or the installation directory. | |||
# All known linkers require a '.a' archive for static linking (except MSVC, | # All known linkers require a `.a' archive for static linking (except MSVC, | |||
# which needs '.lib'). | # which needs '.lib'). | |||
libext=a | libext=a | |||
shrext=.so | shrext=.so | |||
host="$1" | host="$1" | |||
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |||
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |||
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |||
# Code taken from libtool.m4's _LT_CC_BASENAME. | # Code taken from libtool.m4's _LT_CC_BASENAME. | |||
skipping to change at line 60 | skipping to change at line 60 | |||
# Code taken from libtool.m4's _LT_COMPILER_PIC. | # Code taken from libtool.m4's _LT_COMPILER_PIC. | |||
wl= | wl= | |||
if test "$GCC" = yes; then | if test "$GCC" = yes; then | |||
wl='-Wl,' | wl='-Wl,' | |||
else | else | |||
case "$host_os" in | case "$host_os" in | |||
aix*) | aix*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
darwin*) | ||||
case $cc_basename in | ||||
xlc*) | ||||
wl='-Wl,' | ||||
;; | ||||
esac | ||||
;; | ||||
mingw* | cygwin* | pw32* | os2* | cegcc*) | mingw* | cygwin* | pw32* | os2* | cegcc*) | |||
;; | ;; | |||
hpux9* | hpux10* | hpux11*) | hpux9* | hpux10* | hpux11*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
linux* | k*bsd*-gnu | kopensolaris*-gnu) | newsos6) | |||
;; | ||||
linux* | k*bsd*-gnu) | ||||
case $cc_basename in | case $cc_basename in | |||
ecc*) | ecc*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
icc* | ifort*) | icc* | ifort*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
lf95*) | lf95*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
nagfor*) | pgcc | pgf77 | pgf90) | |||
wl='-Wl,-Wl,,' | ||||
;; | ||||
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
ccc*) | ccc*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
xl* | bgxl* | bgf* | mpixl*) | ||||
wl='-Wl,' | ||||
;; | ||||
como) | como) | |||
wl='-lopt=' | wl='-lopt=' | |||
;; | ;; | |||
*) | *) | |||
case `$CC -V 2>&1 | sed 5q` in | case `$CC -V 2>&1 | sed 5q` in | |||
*Sun\ F* | *Sun*Fortran*) | ||||
wl= | ||||
;; | ||||
*Sun\ C*) | *Sun\ C*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
newsos6) | ||||
;; | ||||
*nto* | *qnx*) | ||||
;; | ||||
osf3* | osf4* | osf5*) | osf3* | osf4* | osf5*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
rdos*) | rdos*) | |||
;; | ;; | |||
solaris*) | solaris*) | |||
case $cc_basename in | wl='-Wl,' | |||
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||||
wl='-Qoption ld ' | ||||
;; | ||||
*) | ||||
wl='-Wl,' | ||||
;; | ||||
esac | ||||
;; | ;; | |||
sunos4*) | sunos4*) | |||
wl='-Qoption ld ' | wl='-Qoption ld ' | |||
;; | ;; | |||
sysv4 | sysv4.2uw2* | sysv4.3*) | sysv4 | sysv4.2uw2* | sysv4.3*) | |||
wl='-Wl,' | wl='-Wl,' | |||
;; | ;; | |||
sysv4*MP*) | sysv4*MP*) | |||
;; | ;; | |||
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |||
skipping to change at line 185 | skipping to change at line 174 | |||
# option of GNU ld is called -rpath, not --rpath. | # option of GNU ld is called -rpath, not --rpath. | |||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |||
case "$host_os" in | case "$host_os" in | |||
aix[3-9]*) | aix[3-9]*) | |||
# On AIX/PPC, the GNU linker is very broken | # On AIX/PPC, the GNU linker is very broken | |||
if test "$host_cpu" != ia64; then | if test "$host_cpu" != ia64; then | |||
ld_shlibs=no | ld_shlibs=no | |||
fi | fi | |||
;; | ;; | |||
amigaos*) | amigaos*) | |||
case "$host_cpu" in | hardcode_libdir_flag_spec='-L$libdir' | |||
powerpc) | hardcode_minus_L=yes | |||
;; | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |||
m68k) | # that the semantics of dynamic libraries on AmigaOS, at least up | |||
hardcode_libdir_flag_spec='-L$libdir' | # to version 4, is to share data among multiple programs linked | |||
hardcode_minus_L=yes | # with the same dynamic library. Since this doesn't match the | |||
;; | # behavior of shared libraries on other platforms, we cannot use | |||
esac | # them. | |||
ld_shlibs=no | ||||
;; | ;; | |||
beos*) | beos*) | |||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |||
: | : | |||
else | else | |||
ld_shlibs=no | ld_shlibs=no | |||
fi | fi | |||
;; | ;; | |||
cygwin* | mingw* | pw32* | cegcc*) | cygwin* | mingw* | pw32* | cegcc*) | |||
# hardcode_libdir_flag_spec is actually meaningless, as there is | # hardcode_libdir_flag_spec is actually meaningless, as there is | |||
# no search path for DLLs. | # no search path for DLLs. | |||
hardcode_libdir_flag_spec='-L$libdir' | hardcode_libdir_flag_spec='-L$libdir' | |||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |||
: | : | |||
else | else | |||
ld_shlibs=no | ld_shlibs=no | |||
fi | fi | |||
;; | ;; | |||
haiku*) | ||||
;; | ||||
interix[3-9]*) | interix[3-9]*) | |||
hardcode_direct=no | hardcode_direct=no | |||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |||
;; | ;; | |||
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | gnu* | linux* | k*bsd*-gnu) | |||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |||
: | : | |||
else | else | |||
ld_shlibs=no | ld_shlibs=no | |||
fi | fi | |||
;; | ;; | |||
netbsd*) | netbsd*) | |||
;; | ;; | |||
solaris*) | solaris*) | |||
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |||
skipping to change at line 340 | skipping to change at line 328 | |||
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |||
else | else | |||
if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then | |||
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |||
else | else | |||
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |||
fi | fi | |||
fi | fi | |||
;; | ;; | |||
amigaos*) | amigaos*) | |||
case "$host_cpu" in | hardcode_libdir_flag_spec='-L$libdir' | |||
powerpc) | hardcode_minus_L=yes | |||
;; | # see comment about different semantics on the GNU ld section | |||
m68k) | ld_shlibs=no | |||
hardcode_libdir_flag_spec='-L$libdir' | ||||
hardcode_minus_L=yes | ||||
;; | ||||
esac | ||||
;; | ;; | |||
bsdi[45]*) | bsdi[45]*) | |||
;; | ;; | |||
cygwin* | mingw* | pw32* | cegcc*) | cygwin* | mingw* | pw32* | cegcc*) | |||
# When not using gcc, we currently assume that we are using | # When not using gcc, we currently assume that we are using | |||
# Microsoft Visual C++. | # Microsoft Visual C++. | |||
# hardcode_libdir_flag_spec is actually meaningless, as there is | # hardcode_libdir_flag_spec is actually meaningless, as there is | |||
# no search path for DLLs. | # no search path for DLLs. | |||
hardcode_libdir_flag_spec=' ' | hardcode_libdir_flag_spec=' ' | |||
libext=lib | libext=lib | |||
;; | ;; | |||
darwin* | rhapsody*) | darwin* | rhapsody*) | |||
hardcode_direct=no | hardcode_direct=no | |||
if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; t hen | if test "$GCC" = yes ; then | |||
: | : | |||
else | else | |||
ld_shlibs=no | case $cc_basename in | |||
xlc*) | ||||
;; | ||||
*) | ||||
ld_shlibs=no | ||||
;; | ||||
esac | ||||
fi | fi | |||
;; | ;; | |||
dgux*) | dgux*) | |||
hardcode_libdir_flag_spec='-L$libdir' | hardcode_libdir_flag_spec='-L$libdir' | |||
;; | ;; | |||
freebsd1*) | ||||
ld_shlibs=no | ||||
;; | ||||
freebsd2.2*) | freebsd2.2*) | |||
hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' | |||
hardcode_direct=yes | hardcode_direct=yes | |||
;; | ;; | |||
freebsd2*) | freebsd2*) | |||
hardcode_direct=yes | hardcode_direct=yes | |||
hardcode_minus_L=yes | hardcode_minus_L=yes | |||
;; | ;; | |||
freebsd* | dragonfly*) | freebsd* | dragonfly*) | |||
hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' | |||
skipping to change at line 430 | skipping to change at line 423 | |||
;; | ;; | |||
netbsd*) | netbsd*) | |||
hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' | |||
hardcode_direct=yes | hardcode_direct=yes | |||
;; | ;; | |||
newsos6) | newsos6) | |||
hardcode_direct=yes | hardcode_direct=yes | |||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |||
hardcode_libdir_separator=: | hardcode_libdir_separator=: | |||
;; | ;; | |||
*nto* | *qnx*) | ||||
;; | ||||
openbsd*) | openbsd*) | |||
if test -f /usr/libexec/ld.so; then | if test -f /usr/libexec/ld.so; then | |||
hardcode_direct=yes | hardcode_direct=yes | |||
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os- $host_cpu" = "openbsd2.8-powerpc"; then | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os- $host_cpu" = "openbsd2.8-powerpc"; then | |||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |||
else | else | |||
case "$host_os" in | case "$host_os" in | |||
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |||
hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' | |||
;; | ;; | |||
skipping to change at line 527 | skipping to change at line 518 | |||
library_names_spec= # the last element of library_names_spec in libtool.m4 | library_names_spec= # the last element of library_names_spec in libtool.m4 | |||
libname_spec='lib$name' | libname_spec='lib$name' | |||
case "$host_os" in | case "$host_os" in | |||
aix3*) | aix3*) | |||
library_names_spec='$libname.a' | library_names_spec='$libname.a' | |||
;; | ;; | |||
aix[4-9]*) | aix[4-9]*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
amigaos*) | amigaos*) | |||
case "$host_cpu" in | library_names_spec='$libname.a' | |||
powerpc*) | ||||
library_names_spec='$libname$shrext' ;; | ||||
m68k) | ||||
library_names_spec='$libname.a' ;; | ||||
esac | ||||
;; | ;; | |||
beos*) | beos*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
bsdi[45]*) | bsdi[45]*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
cygwin* | mingw* | pw32* | cegcc*) | cygwin* | mingw* | pw32* | cegcc*) | |||
shrext=.dll | shrext=.dll | |||
library_names_spec='$libname.dll.a $libname.lib' | library_names_spec='$libname.dll.a $libname.lib' | |||
;; | ;; | |||
darwin* | rhapsody*) | darwin* | rhapsody*) | |||
shrext=.dylib | shrext=.dylib | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
dgux*) | dgux*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
freebsd1*) | ||||
;; | ||||
freebsd* | dragonfly*) | freebsd* | dragonfly*) | |||
case "$host_os" in | case "$host_os" in | |||
freebsd[123]*) | freebsd[123]*) | |||
library_names_spec='$libname$shrext$versuffix' ;; | library_names_spec='$libname$shrext$versuffix' ;; | |||
*) | *) | |||
library_names_spec='$libname$shrext' ;; | library_names_spec='$libname$shrext' ;; | |||
esac | esac | |||
;; | ;; | |||
gnu*) | gnu*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
haiku*) | ||||
library_names_spec='$libname$shrext' | ||||
;; | ||||
hpux9* | hpux10* | hpux11*) | hpux9* | hpux10* | hpux11*) | |||
case $host_cpu in | case $host_cpu in | |||
ia64*) | ia64*) | |||
shrext=.so | shrext=.so | |||
;; | ;; | |||
hppa*64*) | hppa*64*) | |||
shrext=.sl | shrext=.sl | |||
;; | ;; | |||
*) | *) | |||
shrext=.sl | shrext=.sl | |||
skipping to change at line 600 | skipping to change at line 585 | |||
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; | |||
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuf f=N32 ;; | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuf f=N32 ;; | |||
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; | |||
*) libsuff= shlibsuff= ;; | *) libsuff= shlibsuff= ;; | |||
esac | esac | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
linux*oldld* | linux*aout* | linux*coff*) | linux*oldld* | linux*aout* | linux*coff*) | |||
;; | ;; | |||
linux* | k*bsd*-gnu | kopensolaris*-gnu) | linux* | k*bsd*-gnu) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
knetbsd*-gnu) | knetbsd*-gnu) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
netbsd*) | netbsd*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
newsos6) | newsos6) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
*nto* | *qnx*) | nto-qnx*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
openbsd*) | openbsd*) | |||
library_names_spec='$libname$shrext$versuffix' | library_names_spec='$libname$shrext$versuffix' | |||
;; | ;; | |||
os2*) | os2*) | |||
libname_spec='$name' | libname_spec='$name' | |||
shrext=.dll | shrext=.dll | |||
library_names_spec='$libname.a' | library_names_spec='$libname.a' | |||
;; | ;; | |||
skipping to change at line 643 | skipping to change at line 628 | |||
;; | ;; | |||
sysv4 | sysv4.3*) | sysv4 | sysv4.3*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
sysv4*MP*) | sysv4*MP*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
tpf*) | ||||
library_names_spec='$libname$shrext' | ||||
;; | ||||
uts4*) | uts4*) | |||
library_names_spec='$libname$shrext' | library_names_spec='$libname$shrext' | |||
;; | ;; | |||
esac | esac | |||
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |||
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | |||
shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | |||
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_sub st"` | escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_sub st"` | |||
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$s ed_quote_subst"` | escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$s ed_quote_subst"` | |||
End of changes. 23 change blocks. | ||||
62 lines changed or deleted | 44 lines changed or added |