#MIN_CONFIG(3.1) # Original Author was Kalle@kde.org # I lifted it in some mater. (Stephan Kulow) # I used much code from Janos Farkas dnl This is so we can use kde-common AC_CONFIG_AUX_DIR(admin) AC_ISC_POSIX dnl Automake doc recommends to do this only here. (Janos) AM_INIT_AUTOMAKE(kover, 2.9.5) dnl searches for some needed programs KDE_SET_PREFIX dnl Checks for programs. AC_CHECK_COMPILERS AC_ENABLE_SHARED(yes) AC_ENABLE_STATIC(no) KDE_PROG_LIBTOOL dnl for NLS support. Call them in this order! dnl WITH_NLS is for the po files ALL_LINGUAS="de fr nb pl it es" AM_KDE_WITH_NLS dnl AM_GNU_GETTEXT AC_PATH_KDE dnl KDE_CHECK_THREADING dnl Image readers/writers KDE_CHECK_KIMGIO dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_TIME AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h stdlib.h paths.h linux/cdrom.h linux/ucdrom.h) AC_CHECK_FUNCS(usleep) dnl KDE_FIND_PATH(iptables, IPTABLES, $PATH, AC_MSG_ERROR([No iptables found.])) KDE_CREATE_SUBDIRSLIST AC_ARG_ENABLE(debug, [ --enable-debug enable debug output. [default=no] ]) if test "$enable_debug" = yes; then AC_DEFINE(ENABLE_DEBUG_OUTPUT,[],[enable debug output]) echo checking if debug output is enabled... yes else echo checking if debug output is enabled... no fi dnl dnl extra cddb path for debian systems dnl AC_ARG_WITH(cddb-path,[ --with-cddb-path=path Location of local CDDB files], cddb_path="$withval", cddb_path="undef") dnl AC_SUBST(cddb_path) if test "$cddb_path" != undef; then AC_DEFINE(CDDB_PATH,"$cddb_path",[Location of local CDDB files]) echo Using $cddb_path as cddb directory. fi echo checking for good CDs in your shelf... yes AC_OUTPUT( kover.1 cddb-id.1 kover.spec )