]> git.cworth.org Git - ttt/blobdiff - configure.in
Add template files
[ttt] / configure.in
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..a612672
--- /dev/null
@@ -0,0 +1,42 @@
+AC_INIT(src/ttt.c)
+
+dnl ===========================================================================
+
+# Package version number
+TTT_VERSION=0.1.0
+
+dnl ===========================================================================
+
+AM_INIT_AUTOMAKE(ttt, $TTT_VERSION)
+AM_CONFIG_HEADER(config.h)
+
+AM_MAINTAINER_MODE
+
+AC_PROG_CC
+AC_STDC_HEADERS
+
+dnl ===========================================================================
+dnl Use lots of warning flags with GCC
+
+WARN_CFLAGS=""
+if test "x$GCC" = "xyes"; then
+       WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
+       -Wmissing-prototypes -Wmissing-declarations \
+       -Wnested-externs -fno-strict-aliasing"
+fi
+AC_SUBST(WARN_CFLAGS)
+
+dnl ===========================================================================
+
+# Use a check like this if ttt depends on some package that
+# provides pkg-config data. The version check is optional. Multiple
+# packages may be listed, separated by spaces.
+#
+#PKG_CHECK_MODULES(TTT, somepackage >= X.Y.Z)
+#AC_SUBST(TTT_CFLAGS)
+#AC_SUBST(TTT_LIBS)
+
+AC_OUTPUT([
+Makefile
+src/Makefile
+])