2011-05-20 13:50:52 +03:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ([2.65])
|
|
|
|
AC_INIT([runner], [0.01], [markus.kauppila@gmail.com])
|
|
|
|
AC_CONFIG_SRCDIR([runner.c])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2011-05-25 18:53:48 +03:00
|
|
|
AC_CONFIG_MACRO_DIR(acinclude)
|
|
|
|
AC_CONFIG_AUX_DIR(build-scripts)
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
#libdir="$(pwd)/tests"
|
|
|
|
#AC_SUBST([libdir])
|
2011-05-20 13:50:52 +03:00
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
2011-05-25 18:53:48 +03:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AM_PROG_CC_C_O
|
2011-05-20 13:50:52 +03:00
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_CHECK_HEADERS([stdlib.h unistd.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
|
2011-05-26 18:38:56 +03:00
|
|
|
# without this debugging information will be stripped (at least on OS X)
|
|
|
|
CFLAGS="-g"
|
|
|
|
|
2011-05-20 13:50:52 +03:00
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_FORK
|
|
|
|
|
2011-05-25 18:53:48 +03:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
tests/Makefile])
|
2011-05-20 13:50:52 +03:00
|
|
|
AC_OUTPUT
|
2011-05-25 18:53:48 +03:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "========================================"
|
|
|
|
echo ""
|
|
|
|
echo "./configure ready!"
|
|
|
|
echo "you're ready to run: 'make && make install'"
|