Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
0a4284d3
Commit
0a4284d3
authored
19 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Hey rocky, watch me pull a link pass out of a hat!
svn:r4243
parent
6e6816e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.in
+18
-12
18 additions, 12 deletions
configure.in
with
18 additions
and
12 deletions
configure.in
+
18
−
12
View file @
0a4284d3
...
...
@@ -65,20 +65,18 @@ AC_SEARCH_LIBS(event_loop, [event], event_found=yes, event_found=no)
if test "$event_found" = no; then
saved_LIBS="$LIBS"
saved_LDFLAGS="$LDFLAGS"
saved_CPPFLAGS="$CPPFLAGS"
AC_CACHE_CHECK([for libevent in /usr/local/lib], ac_cv_libevent_local, [
LIBS="$LIBS -levent"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
AC_TRY_LINK([#include <event.h>], [ event_init(); return 0; ], [
libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
AC_TRY_LINK([], [ void *event_init(void); event_init(); ],
[ libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
if test libevent_is_in_local = yes; then
AC_TRY_RUN([
#include <event.h>
void *event_init(void);
int main(void)
{
event_init()
;
return
0
;
if (!
event_init()
)
return
-1
;
}], , [ ac_cv_libevent_local=unlinked ])
else
ac_cv_libevent_local=no
...
...
@@ -86,11 +84,11 @@ int main(void)
if test "$GCC" = yes -a $ac_cv_libevent_local = unlinked ; then
LDFLAGS="$LDFLAGS -Wl,-R/usr/local/lib"
AC_TRY_RUN([
#include <event.h>
void *event_init(void);
int main(void)
{
event_init()
;
return
0
;
if (!
event_init()
)
return
-1
;
}], [ ac_cv_libevent_local=unlinked_gcc_elf ])
fi
...
...
@@ -101,13 +99,13 @@ int main(void)
if test $ac_cv_libevent_local != no; then
LIBS="$LIBS -levent"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
C
PP
FLAGS="$C
PP
FLAGS -I/usr/local/include"
fi
if test $ac_cv_libevent_local = unlinked_gcc_elf; then
LDFLAGS="$LDFLAGS -Wl,-R/usr/local/lib"
fi
if test $ac_cv_libevent_local = unlinked; then
if test $ac_cv_libevent_local = unlinked
; then
echo <<EOF
=====================================================
HEY!!!!
...
...
@@ -126,8 +124,16 @@ EOF
echo <<EOF
=====================================================
EOF
fi
if test $ac_cv_libevent_local = no ; then
echo <<EOF
Tor requires libevent to build. You can download the latest
version of libevent from http://monkey.org/~provos/libevent/
EOF
fi
fi
dnl ------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment