annotate config.rpath @ 485:1aed5dfaa9ae

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