Browse Source

Make Check an optional package

Andrew Young 7 years ago
parent
commit
21c68bedf4
1 changed files with 13 additions and 10 deletions
  1. 13 10
      configure.ac

+ 13 - 10
configure.ac

@@ -1,12 +1,13 @@
 # Process this file with autoconf to produce a configure script.
 AC_INIT([org-merge-driver], [0.1], [youngar17@gmail.com])
-AC_CONFIG_AUX_DIR(config)
-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
-AM_INIT_AUTOMAKE([-Wall -Werror gnu])
+AC_CONFIG_AUX_DIR([config])
+PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],,
+			   AC_MSG_WARN([Check is required to run unit tests http://check.sourceforge.net/]))
+AM_INIT_AUTOMAKE([-Wall -Werror gnu parallel-tests])
 
 AC_CONFIG_MACRO_DIR([m4])
 
-# Check for programs
+## Check for programs
 AC_PROG_CC   # c compiler
 gl_EARLY     # gnu lib
 AM_PROG_CC_C_O
@@ -15,22 +16,24 @@ if test "x$LEX" != xflex; then
   AC_MSG_WARN([To generate the lexer, Flex is required.  Lexer will not be regenerated.])
   AC_SUBST([LEX],[:])
 fi
-
 AC_PROG_YACC # bison
+AC_PROG_AWK # ak
+AC_REQUIRE_AUX_FILE([tap-driver.sh]) # testing driver
 
-# gnulib macros
+## gnulib macros
 gl_INIT
 
-# Check for headers
-# Check for typedefs, structures, and compilers characteristics
-# Check for library functions
+## Check for headers
+## Check for typedefs, structures, and compilers characteristics
+## Check for library functions
 
-# Output files
+## Output files
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([
  Makefile
  src/Makefile
  gnulib/lib/Makefile
  tests/Makefile
+ doc/Makefile
 ])
 AC_OUTPUT