# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
+#
+# This file is part of skeinsum.
+#
+# skeinsum is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# skeinsum is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with skeinsum. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ([2.69])
-AC_INIT([skeinsum], [1.0], [j@jxself.org])
+AC_INIT([skeinsum], m4_esyscmd_s([./version.sh]), [j@jxself.org], [], [https://jxself.org/skein.shtml])
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
# Checks for library functions.
AC_FUNC_MALLOC
-AC_CHECK_FUNCS([memset])
+AC_CHECK_FUNCS([memset strerror])
AC_SYS_LARGEFILE