annotate config.rpath @ 2715:a20d843fe3f7 trunk

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