--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure.ac Wed May 31 11:40:07 2017 +0200 @@ -0,0 +1,37 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT(cline, 1.1, universe@uap-core.de) +AC_CONFIG_SRCDIR([src/cline.c]) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE + +# Conditionals +AC_ARG_ENABLE([debug], +[ --enable-debug Turn on debugging], +[case "${enableval}" in + yes) debug=true ;; + no) debug=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; +esac],[debug=false]) +AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. + +# Checks for header files. +AC_CHECK_HEADERS([stdlib.h string.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_CHECK_FUNCS([memset regcomp strcasecmp strchr]) + +AC_OUTPUT(Makefile src/Makefile)