case "$sizeof_long" in
  4) addlib64="/usr/local/lib32 /lib32 /usr/lib32";;
  8) addlib64="/usr/local/lib64 /lib64 /usr/lib64";;
esac

libpth="`echo $LIBRARY_PATH | sed -e \"s%\([^$dir_sep]*\)$dir_sep*%\1 %g\"`"
case "$osname" in
  cygwin*)
    cygtop=/cygdrive/c
    if test ! -d $cygtop; then
      ver=`uname -r | cut -d. -f1`
      cygtop=/Cygnus/cygwin/B$ver
      if test ! -d $cygtop; then
        cygtop=/Cygnus/cygwin-B$ver
        if test ! -d $cygtop; then
          cygtop=/usr/${arch}-pc-cygwin
          if test ! -d $cygtop; then
            echo ..."I could not find Cygwin top directory" >&2
          fi
        fi
      fi
    fi
    if test "$cygtop" = /cygdrive/c; then
# cygnus for version 1.*
      libpth="$libpth\
          /usr/local/lib\
          /lib\
      "
      cygtop=
    else
# cygnus for version 0.*
      libpth="$libpth\
          $cygtop/H-${arch}-cygwin32/lib\
          $cygtop/H-${arch}-cygwin32/${arch}-cygwin32/lib\
      "
    fi;;
  os2) libpth=`echo $libpth | sed 's,\\\\,/,g'`;;
  *) libpth="$libpth $addlib64 /usr/lib/$multiarch\
      /usr/local/lib\
      /lib\
      /usr/lib\
      /opt/lib\
      /opt/local/lib\
      /opt/gnu/lib\
      /lib/pa1.1\
      /usr/lib/large\
      /lib/large\
      /usr/lib/small\
      /lib/small\
      /usr/ccs/lib\
      /usc/ucblib\
      /usr/shlib\
      .\
   ";;
esac
