Allow the C# library to be excluded from the build.
authorDavid Reiss <dreiss@apache.org>
Sun, 2 Mar 2008 07:00:26 +0000 (07:00 +0000)
committerDavid Reiss <dreiss@apache.org>
Sun, 2 Mar 2008 07:00:26 +0000 (07:00 +0000)
Use AX_THRIFT_LIB to make configure support --without-csharp.
Don't bother testing for the C# requirements if this is set.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665546 13f79535-47bb-0310-9956-ffa450edef68

configure.ac

index 5c4859c..704719d 100644 (file)
@@ -36,7 +36,10 @@ AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
 AX_LIB_ZLIB([1.2.3])
 AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
 
-PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
+AX_THRIFT_LIB(csharp, [C#], yes)
+if test "$with_csharp" = "yes";  then
+  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
+fi
 AM_CONDITIONAL(ENABLE_MONO, [test "$have_mono" = "yes"])
 
 AX_THRIFT_LIB(java, [Java], yes)