#!/bin/sh ### ### find LDAP libraries ### a quick hack, muquit, Jul-22-1999 ## exits with 1 if the lib is found , 0 otherwise # first check /usr/local/lib dir=/usr/local/lib lookfor=$1 if test -f $dir/$lookfor ; then echo "$dir/$1" exit 1 fi # then check /usr/lib dir=/usr/lib if test -f $dir/$lookfor ; then echo "$dir/$1" exit 1 fi # lastly check /usr/local/open-ldap/lib, that's where I install dir=/usr/local/open-ldap/lib if test -f $dir/$lookfor ; then echo "$dir/$1" exit 1 fi exit 1