diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-05-17 03:10:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-05-17 03:10:55 +0000 |
commit | 22f427fe70277156bca724a1cd76124dfaf5aaf3 (patch) | |
tree | b561d869fc1d78f287616b798576643dd2d99b76 /configure.in | |
parent | 53c5c78ef59955bb1d454874e56af42a0edce9de (diff) | |
download | tor-22f427fe70277156bca724a1cd76124dfaf5aaf3.tar.gz tor-22f427fe70277156bca724a1cd76124dfaf5aaf3.zip |
work on messages and return vals?
svn:r4246
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/configure.in b/configure.in index d1c201ddf7..6fa837fd7b 100644 --- a/configure.in +++ b/configure.in @@ -77,6 +77,7 @@ int main(void) { if (!event_init()) return -1; + return 0; }], , [ ac_cv_libevent_local=unlinked ]) else ac_cv_libevent_local=no @@ -89,6 +90,7 @@ int main(void) { if (!event_init()) return -1; + return 0; }], [ ac_cv_libevent_local=unlinked_gcc_elf ]) fi @@ -106,32 +108,30 @@ int main(void) fi if test $ac_cv_libevent_local = unlinked ; then - echo <<EOF -===================================================== -HEY!!!! - + if test -f /etc/ld.conf ; then + AC_MSG_NOTICE([ +================================================= Your libevent library is installed in /usr/local/lib, but your dynamic linker isn't configured to look for it there. -EOF - if test -f /etc/ld.so.conf; then - echo <<EOF Maybe you need to add /usr/local/lib to /etc/ld.so.conf, and then run ldconfig -v ? -EOF - fi - echo <<EOF - -===================================================== -EOF -fi +=================================================]) + else + AC_MSG_NOTICE([ +================================================= +Your libevent library is installed in /usr/local/lib, +but your dynamic linker isn't configured to look for +it there. +=================================================]) + fi + fi if test $ac_cv_libevent_local = no ; then - echo <<EOF + AC_MSG_ERROR([ Tor requires libevent to build. You can download the latest -version of libevent from http://monkey.org/~provos/libevent/ -EOF +version of libevent from http://monkey.org/~provos/libevent/]) fi fi |