From 6938ae45af8c1ea8932aa7245b4f3adfcf3fb510 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Mon, 14 Apr 2025 22:46:21 +0200 Subject: Add autotools build system Signed-off-by: Johnny Richard --- configure.ac | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e8cd96f --- /dev/null +++ b/configure.ac @@ -0,0 +1,28 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.72]) +AC_INIT([sm], [1.0], [johnny@johnnyrichard.com]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) + +AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC + +# Checks for libraries. + +# Checks for header files. +AC_CHECK_HEADERS([stdint.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_CHECK_HEADER_STDBOOL +AC_TYPE_SIZE_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_FUNC_REALLOC + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT -- cgit v1.2.3