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

Diff for /OpenXM_contrib/pari-2.2/config/Attic/locatelib between version 1.1 and 1.2

version 1.1, 2001/10/02 11:16:55 version 1.2, 2002/09/11 07:26:40
Line 1 
Line 1 
   _pb= # to detect missing .so when .so.x is found
 for dir in $pth; do  for dir in $pth; do
   case "$osname" in    case "$osname" in
     os2)      os2)
Line 5  for dir in $pth; do
Line 6  for dir in $pth; do
     *)      *)
       ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`        ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`
       if test -n "$ok"; then        if test -n "$ok"; then
           _pb="$ok"
         # for .so and .sl          # for .so and .sl
         try=`ls $dir/lib$lib.s? 2> /dev/null`          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          # for .dylib
         if test -z "$try"; then          if test -z "$try"; then
           try=`(ls $dir/lib$lib.s?.* | tail -1) 2> /dev/null`            try=`ls $dir/lib$lib.dylib 2> /dev/null`
         fi          fi
           # for .a
         if test -z "$try"; then          if test -z "$try"; then
           try=`ls $dir/lib$lib.a 2> /dev/null`            try=`ls $dir/lib$lib.a 2> /dev/null`
         else  
           try=$ok  
         fi          fi
       else        else
         try=          try=
Line 26  for dir in $pth; do
Line 27  for dir in $pth; do
     break      break
   fi    fi
 done  done
   # not found? detect missing lib*.so (missing *-devel package)
   if test -z "$try"; then
     if test "$osname" = linux -a  -n "$_pb"; then
       echo "###"
       echo "### lib$lib.so not found. Please install $lib development files."
       echo "### They usually come in $lib-devel (RPM) or lib$lib-dev (Debian) packages"
       echo "###"
     fi
   fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>