2 AC_INIT( [fastq-tools], [0.1], [dcjones@cs.washington.ed] )
3 AM_INIT_AUTOMAKE( [foreign -Wall -Werror] )
4 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
6 AC_CONFIG_MACRO_DIR([m4])
14 AC_ARG_ENABLE([debug],
15 [AS_HELP_STRING([--enable-debug],
16 [enable debugging info (default is no)])],
17 [], [enable_debug=no])
19 AS_IF([test "x$enable_debug" = xyes],
20 [CFLAGS="$dbg_CFLAGS"],
21 [CFLAGS="$opt_CFLAGS"])
23 AC_DEFINE(_FILE_OFFSET_BITS, 64)
30 AC_CHECK_PROG(HAVE_PCRE, pcre-config, yes, no)
31 if test "x$HAVE_PCRE" = "xno"
33 AC_MSG_ERROR([The PCRE library is needed. See http://www.pcre.org.])
35 CFLAGS="$CFLAGS $(pcre-config --cflags)"
36 PCRE_LIBS=$(pcre-config --libs)
39 AC_CHECK_HEADER(getopt.h, ,
40 AC_MSG_ERROR([The posix getopt.h header is needed.]))
45 AC_CONFIG_FILES( [Makefile