aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-01-27 01:47:43 +0000
committerNick Mathewson <nickm@torproject.org>2006-01-27 01:47:43 +0000
commit2379bc557c8a8111865df6b600f3c7c72607da92 (patch)
treec20961034e30feb28b665d7f2e695017476d8a3d /configure.in
parentb28dbb5b9990d0a5ee0ccd8a819c11bb17de817a (diff)
downloadtor-2379bc557c8a8111865df6b600f3c7c72607da92.tar
tor-2379bc557c8a8111865df6b600f3c7c72607da92.tar.gz
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
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 65ce6b74c..80c8bf558 100644
--- a/configure.in
+++ b/configure.in
@@ -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