universe@47: # -*- Autoconf -*- universe@47: # Process this file with autoconf to produce a configure script. universe@47: universe@47: AC_PREREQ([2.69]) universe@47: AC_INIT(cline, 1.1, universe@uap-core.de) universe@47: AC_CONFIG_SRCDIR([src/cline.c]) universe@47: AC_CONFIG_HEADERS([config.h]) universe@47: AM_INIT_AUTOMAKE universe@47: universe@47: # Conditionals universe@47: AC_ARG_ENABLE([debug], universe@47: [ --enable-debug Turn on debugging], universe@47: [case "${enableval}" in universe@47: yes) debug=true ;; universe@47: no) debug=false ;; universe@47: *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; universe@47: esac],[debug=false]) universe@47: AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) universe@47: universe@47: # Checks for programs. universe@47: AC_PROG_CC universe@47: universe@47: # Checks for libraries. universe@47: universe@47: # Checks for header files. universe@47: AC_CHECK_HEADERS([stdlib.h string.h]) universe@47: universe@47: # Checks for typedefs, structures, and compiler characteristics. universe@47: AC_CHECK_HEADER_STDBOOL universe@47: AC_TYPE_SIZE_T universe@47: universe@47: # Checks for library functions. universe@47: AC_FUNC_MALLOC universe@47: AC_FUNC_REALLOC universe@47: AC_CHECK_FUNCS([memset regcomp strcasecmp strchr]) universe@47: universe@47: AC_OUTPUT(Makefile src/Makefile)