2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([C library],[0.1.0],[mir@datanom.net])
6 AC_COPYRIGHT([Copyright (c) 2024 Michael Rasmussen.])
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_AUX_DIR(auxdir)
11 AC_CONFIG_SRCDIR([src/stack.c])
12 AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2 1.10])
17 if test "x$USE_MAINTAINER_MODE" = "xyes"; then
18 CFLAGS="${CFLAGS} -g -DDEBUG"
19 AC_DEFINE_UNQUOTED(DEBUG, [1], [Enable debug mode.])
21 CFLAGS="${CFLAGS} -O -O2"
26 AC_SUBST(GLIB_REQUIRED)
28 AC_CONFIG_HEADERS(config.h)
30 # Checks for programs.
37 if test -n "$lt_prog_compiler_pic"; then
38 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
46 # Checks for libraries.
47 PKG_CHECK_MODULES([GLIB],
48 [glib-2.0 >= $GLIB_REQUIRED
49 gobject-2.0 >= $GOBJECT_REQUIRED
55 # Checks for header files.
56 AC_CHECK_HEADER([assert.h],
57 AC_DEFINE([HAVE_ASSERT_H], [1], [Define to 1 if you have the <assert.h> header file.]))
59 # Checks for typedefs, structures, and compiler characteristics.
61 # Checks for library functions.
70 echo "$PACKAGE $VERSION"
74 Source code: ${ac_pwd}
75 Compiler: ${CC} $($CC -dumpversion)
79 echo "The binary will be installed in $prefix/bin"
81 echo "Configure finished, type 'make' to build."