Minor cleanup of last patch: check system before prefix, so we dont believe that libevent is /usr/local/lib when it is in /usr.

svn:r5871
This commit is contained in:
Nick Mathewson 2006-01-27 01:47:43 +00:00
parent b28dbb5b99
commit 2379bc557c

View File

@ -108,18 +108,15 @@ dnl Where do you live, libevent? And how do we call you?
saved_LIBS="$LIBS"
saved_LDFLAGS="$LDFLAGS"
if test "x$prefix" != "xNONE" ; then
trylibeventdir="$trylibeventdir $prefix"
fi
AC_CACHE_CHECK([for libevent location], ac_cv_libevent_dir, [
for ledir in $trylibeventdir "" /usr/local ; do
for ledir in $trylibeventdir "" $prefix /usr/local ; do
LDFLAGS="$saved_LDFLAGS"
LIBS="$saved_LIBS -levent"
# Skip the directory if it isn't there.
if test ! -z "$ledir" -a ! -d "$ledir" ; then
continue;
continue;
fi
if test ! -z "$ledir" ; then
if test -d "$ledir/lib" ; then