Compute the version number dynamically
[skeinsum.git] / configure.ac
index 72b45ce39c67eb3fc51b47300f24c32f3043f08b..d55b03c0f6753bd791ea7ec063ab9dd72638d21c 100644 (file)
@@ -2,10 +2,10 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.69])
-AC_INIT([skeinsum], [1.0], [j@jxself.org])
+AC_INIT([skeinsum], m4_esyscmd_s([./version.sh]), [j@jxself.org])
 AC_CONFIG_SRCDIR([skein.h])
 AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 # Checks for programs.
 AC_PROG_CC
@@ -20,7 +20,7 @@ AC_TYPE_SIZE_T
 
 # Checks for library functions.
 AC_FUNC_MALLOC
-AC_CHECK_FUNCS([memset])
+AC_CHECK_FUNCS([memset strerror])
 
 AC_SYS_LARGEFILE