[BACK]Return to locatelib CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari-2.2 / config

File: [local] / OpenXM_contrib / pari-2.2 / config / Attic / locatelib (download)

Revision 1.1.1.1 (vendor branch), Tue Oct 2 11:16:55 2001 UTC (22 years, 8 months ago) by noro
Branch: NORO
CVS Tags: RELEASE_1_2_1, PARI_2_2
Changes since 1.1: +0 -0 lines

Imported pari-2.2.1(alpha).

for dir in $pth; do
  case "$osname" in
    os2)
      try=`ls $dir/$lib.a 2> /dev/null`;;
    *)
      ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`
      if test -n "$ok"; then
        # for .so and .sl
        try=`ls $dir/lib$lib.s? 2> /dev/null` 
        # in case it's missing a .so, but has e.g a .so.5. Take most recent
        if test -z "$try"; then
          try=`(ls $dir/lib$lib.s?.* | tail -1) 2> /dev/null` 
        fi
        if test -z "$try"; then
          try=`ls $dir/lib$lib.a 2> /dev/null`
        else 
          try=$ok
        fi
      else
        try=
      fi;;
  esac
  if test -n "$try"; then
    echo ..."Found lib$lib in $dir";
    eval $lib=$dir;
    break
  fi
done