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