X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=configure.in;fp=configure.in;h=a612672811e4a2091f7a499a4e475847c6653a95;hp=0000000000000000000000000000000000000000;hb=52bff07c451d6f5fbb2d9dd4f76f41479ba3c323;hpb=89167fdea55abce98a7d0c05d05e14fdea8a59c6 diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..a612672 --- /dev/null +++ b/configure.in @@ -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 +])