[PATCH] Add check for Perl::Text::CSV



---
 configure.ac |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure.ac b/configure.ac
index 99891e3..0d5ae35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -444,6 +444,16 @@ if test "x$enable_introspection" = "xyes" ; then
 fi
 AM_CONDITIONAL([WITH_VALA], [test "x$enable_vala" = "xyes"])
 
+if test ! -e "$srcdir/gtk/vncdisplaykeymap_osx2xtkbd.c"; then
+  AC_MSG_CHECKING([for Text::CSV Perl module])
+  perl -MText::CSV -e "" >/dev/null 2>&1
+  if test $? -ne 0 ; then
+    AC_MSG_RESULT([not found])
+    AC_MSG_ERROR([Text::CSV Perl module is required to compile this package])
+  fi
+  AC_MSG_RESULT([found])
+fi
+
 AC_CONFIG_FILES(
   Makefile
   src/Makefile
-- 
1.7.9.3



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