mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 09:50:29 +01:00
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:
parent
b28dbb5b99
commit
2379bc557c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user