1 ########################################################################
3 # This software is part of the ast package #
4 # Copyright (c) 1985-2010 AT&T Intellectual Property #
5 # and is licensed under the #
6 # Common Public License, Version 1.0 #
7 # by AT&T Intellectual Property #
9 # A copy of the License is available at #
10 # http://www.opensource.org/licenses/cpl1.0.txt #
11 # (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) #
13 # Information and Software Systems Research #
17 # Glenn Fowler <gsf@research.att.com> #
18 # David Korn <dgk@research.att.com> #
19 # Phong Vo <kpv@research.att.com> #
21 ########################################################################
24 -x /lib
/ld.so
/lib
/ld-
*.so
/usr
/lib
/ld.so
/lib
/rld \
25 -f /usr
/shlib
/libc.so
/shlib
/libc.so
/usr
/lib
/libc.so \
26 -r /usr
/shlib
/libc.so
/shlib
/libc.so
28 -*) op
=$i; continue ;;
41 then libpath
=lib
:LD_LIBRARY_PATH
43 sgi.
*) if test -d /lib32
44 then libpath
="lib32:LD_LIBRARYN32_PATH:sgi.mips3|sgi.*-n32,$libpath"
47 then libpath
="lib64:LD_LIBRARY64_PATH:sgi.mips[4-9]|sgi.*-64,$libpath"
50 sol
*.
*) if test -d /lib
/32
51 then libpath
="lib/32:LD_LIBRARY_PATH_32,$libpath"
54 then libpath
="lib/64:LD_LIBRARY_PATH_64:sol.*64*,$libpath"
58 elif test -x /lib
/dld.sl
59 then libpath
=lib
:SHLIB_PATH
60 elif test -x /usr
/lib
/dyld
61 then libpath
=lib
:DYLD_LIBRARY_PATH
62 else case `package` in
73 echo "#define CONF_LIBPATH \"$libpath\""