dnl Process this file with autoconf to produce a configure script. AC_INIT(Kimwitu++, 2.3.8, piefel@informatik.hu-berlin.de, kimwitu++) AC_PREREQ(2.50) AC_COPYRIGHT([Copyright 2000, 2001, 2002, 2003 Humboldt-University Berlin]) AC_REVISION([$Id: configure.ac,v 1.22 2003/10/27 15:17:42 piefel Exp $]) AC_CONFIG_SRCDIR(src/gen.k) AC_CONFIG_HEADERS(src/config.h) AC_LANG([C++]) dnl Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_LEX AC_PROG_YACC AC_PROG_MAKE_SET AC_PROG_INSTALL dnl Checks for libraries. dnl Checks for header files. AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(string.h) AC_CHECK_HEADERS([hash_set ext/hash_set], [AC_SUBST(hashset, [-DUSE_HASHSET])]) dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_FUNC_VPRINTF # Check for command line arguments AC_ARG_WITH(python, [ --with-python link with Python for debugging support], [case $withval in no) PYTHON=/usr/bin/false ;; yes) AC_PATH_PROG(PYTHON, python, /usr/bin/false) ;; *) PYTHON=$withval ;; esac ],[ PYTHON=/usr/bin/false ]) if test $PYTHON = "/usr/bin/false"; then PYLIBS= PYOBJS= PYCFLAGS= else # The double [[]] are necessary for m4 quoting eval `python - <