Annotation of OpenXM_contrib/pari/config/locatelib, Revision 1.1.1.1
1.1 maekawa 1: for dir in $pth; do
2: case "$osname" in
3: os2)
4: try=`ls $dir/$lib.a 2> /dev/null`;;
5: *)
6: ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`
7: if test -n "$ok"; then
8: # for .so and .sl
9: try=`ls $dir/lib$lib.s? 2> /dev/null`
10: if test -z "$try"; then
11: try=`ls $dir/lib$lib.a 2> /dev/null`
12: else
13: try=$ok
14: fi
15: else
16: try=
17: fi;;
18: esac
19: if test -n "$try"; then
20: echo ..."Found lib$lib in $dir";
21: eval $lib=$dir;
22: break
23: fi
24: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>