[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] work on messages and return vals?



Update of /home/or/cvsroot/tor
In directory moria.mit.edu:/tmp/cvs-serv18709

Modified Files:
	configure.in 
Log Message:
work on messages and return vals?

Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- configure.in	17 May 2005 02:59:40 -0000	1.200
+++ configure.in	17 May 2005 03:10:55 -0000	1.201
@@ -77,6 +77,7 @@
 {
 	if (!event_init())
 	        return -1;
+        return 0;
 }], , [ ac_cv_libevent_local=unlinked ])
     else
        ac_cv_libevent_local=no   
@@ -89,6 +90,7 @@
 {
 	if (!event_init())
 	        return -1;
+        return 0;
 }], [ ac_cv_libevent_local=unlinked_gcc_elf ])
     fi 
 
@@ -106,32 +108,30 @@
   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