error out if liboauth is not present
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 17:10:35 +0000 (10:10 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 17:10:35 +0000 (10:10 -0700)
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
configure.ac

index 7f6f1b1..afeba02 100644 (file)
@@ -18,7 +18,10 @@ AC_CHECK_LIB([nsl], [main])
 
 AC_CHECK_LIB([pcre], [main])
 
-AC_CHECK_LIB([oauth], [main])
+AC_CHECK_LIB(oauth, main, [], [
+       echo "Error, you need liboauth to build properly."
+       exit -1
+       ])
 
 # CURL
 LIBCURL_CHECK_CONFIG([yes], [], [have_libcurl="yes"], [have_libcurl="no"])