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