source: trunk/texinfo/config.rpath@ 2660

Last change on this file since 2660 was 2617, checked in by bird, 20 years ago

GNU Texinfo 4.8

File size: 14.6 KB
Line 
1#! /bin/sh
2# Output a system dependent set of variables, describing how to set the
3# run time search path of shared libraries in an executable.
4#
5# Copyright 1996-2003 Free Software Foundation, Inc.
6# Taken from GNU libtool, 2001
7# Originally by Gordon Matzigkeit <[email protected]>, 1996
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22#
23# As a special exception to the GNU General Public License, if you
24# distribute this file as part of a program that contains a
25# configuration script generated by Autoconf, you may include it under
26# the same distribution terms that you use for the rest of that program.
27#
28# The first argument passed to this file is the canonical host specification,
29# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
30# or
31# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
32# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
33# should be set by the caller.
34#
35# The set of defined variables is at the end of this script.
36
37# Known limitations:
38# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
39# than 256 bytes, otherwise the compiler driver will dump core. The only
40# known workaround is to choose shorter directory names for the build
41# directory and/or the installation directory.
42
43# All known linkers require a `.a' archive for static linking (except M$VC,
44# which needs '.lib').
45libext=a
46shrext=.so
47
48host="$1"
49host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
50host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
51host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
52
53# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
54
55wl=
56if test "$GCC" = yes; then
57 wl='-Wl,'
58else
59 case "$host_os" in
60 aix*)
61 wl='-Wl,'
62 ;;
63 mingw* | pw32* | os2*)
64 ;;
65 hpux9* | hpux10* | hpux11*)
66 wl='-Wl,'
67 ;;
68 irix5* | irix6* | nonstopux*)
69 wl='-Wl,'
70 ;;
71 newsos6)
72 ;;
73 linux*)
74 case $CC in
75 icc|ecc)
76 wl='-Wl,'
77 ;;
78 ccc)
79 wl='-Wl,'
80 ;;
81 esac
82 ;;
83 osf3* | osf4* | osf5*)
84 wl='-Wl,'
85 ;;
86 sco3.2v5*)
87 ;;
88 solaris*)
89 wl='-Wl,'
90 ;;
91 sunos4*)
92 wl='-Qoption ld '
93 ;;
94 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
95 wl='-Wl,'
96 ;;
97 sysv4*MP*)
98 ;;
99 uts4*)
100 ;;
101 esac
102fi
103
104# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
105
106hardcode_libdir_flag_spec=
107hardcode_libdir_separator=
108hardcode_direct=no
109hardcode_minus_L=no
110
111case "$host_os" in
112 cygwin* | mingw* | pw32*)
113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
114 # When not using gcc, we currently assume that we are using
115 # Microsoft Visual C++.
116 if test "$GCC" != yes; then
117 with_gnu_ld=no
118 fi
119 ;;
120 openbsd*)
121 with_gnu_ld=no