No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / build-aux / config.libpath
blob1d9df859069c115cf3a6ff151c5f64a9ced539ce
1 #! /bin/sh
2 # Output a system dependent set of variables, describing how to set the
3 # run time search path of shared libraries in an executable at run time.
5 # Copyright 1996-2005 Free Software Foundation, Inc.
6 # Taken from GNU libtool, 2003
7 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
28 # The first argument passed to this file is the canonical host specification,
29 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
30 # or
31 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
32 # The environment variable LD should be set by the caller.
34 # The set of defined variables is at the end of this script.
36 host="$1"
37 host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
38 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
39 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
41 shlibpath_var=
42 case $host_os in
43 aix3*)
44 shlibpath_var=LIBPATH
46 aix4* | aix5*)
47 if test "$host_cpu" = ia64; then
48 # AIX 5 supports IA64
49 shlibpath_var=LD_LIBRARY_PATH
50 else
51 shlibpath_var=LIBPATH
54 beos*)
55 shlibpath_var=LIBRARY_PATH
57 bsdi4*)
58 shlibpath_var=LD_LIBRARY_PATH
60 cygwin* | mingw* | pw32*)
61 # FIXME: first we should search . and the directory the executable is in
62 shlibpath_var=PATH
64 darwin* | rhapsody*)
65 shlibpath_var=DYLD_LIBRARY_PATH
67 freebsd1*)
69 kfreebsd*-gnu)
70 shlibpath_var=LD_LIBRARY_PATH
72 freebsd*)
73 shlibpath_var=LD_LIBRARY_PATH
75 gnu*)
76 shlibpath_var=LD_LIBRARY_PATH
78 hpux9* | hpux10* | hpux11*)
79 shlibpath_var=SHLIB_PATH
81 irix5* | irix6* | nonstopux*)
82 case $host_os in
83 irix5* | nonstopux*)
84 shlibsuff=
87 case $LD in # libtool.m4 will add one of these switches to LD
88 *-32|*"-32 ") shlibsuff= ;;
89 *-n32|*"-n32 ") shlibsuff=N32 ;;
90 *-64|*"-64 ") shlibsuff=64 ;;
91 *) shlibsuff= ;;
92 esac
94 esac
95 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
97 linux-gnu*)
98 shlibpath_var=LD_LIBRARY_PATH
100 knetbsd*-gnu)
101 shlibpath_var=LD_LIBRARY_PATH
103 netbsd*)
104 shlibpath_var=LD_LIBRARY_PATH
106 newsos6)
107 shlibpath_var=LD_LIBRARY_PATH
109 openbsd*)
110 shlibpath_var=LD_LIBRARY_PATH
112 os2*)
113 shlibpath_var=LIBPATH
115 osf3* | osf4* | osf5*)
116 shlibpath_var=LD_LIBRARY_PATH
118 sco3.2v5*)
119 shlibpath_var=LD_LIBRARY_PATH
121 solaris*)
122 shlibpath_var=LD_LIBRARY_PATH
124 sunos4*)
125 shlibpath_var=LD_LIBRARY_PATH
127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
128 shlibpath_var=LD_LIBRARY_PATH
130 uts4*)
131 shlibpath_var=LD_LIBRARY_PATH
133 dgux*)
134 shlibpath_var=LD_LIBRARY_PATH
136 sysv4*MP*)
137 if test -d /usr/nec ;then
138 shlibpath_var=LD_LIBRARY_PATH
141 esac
143 LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
145 # This is the shared library path variable.
146 shlibpath_var=$shlibpath_var