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