AC_INIT(tickypip, 0.1.0, chipx86@chipx86.com) AC_PREREQ(2.50) AC_CONFIG_SRCDIR(config.h.in) AC_COPYRIGHT([Copyright 2005 Christian Hammond]) AM_INIT_AUTOMAKE(tickypip, 0.1.0) AM_CONFIG_HEADER(config.h) AC_PROG_MAKE_SET AC_PROG_LN_S AC_PROG_INSTALL dnl ################################################################ dnl # Look for Mono or .NET dnl ################################################################ MONO_REQUIRED_VERSION=0.96 PKG_CHECK_MODULES(MONO, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) if test "x$has_mono" = "xtrue"; then AC_PATH_PROG(RUNTIME, mono, no) AC_PATH_PROG(CSC, mcs, no) else AC_PATH_PROG(CSC, csc.exe, no) if test "x$CSC" = "xno"; then AC_MSG_ERROR([You need to install either Mono or .NET]) fi fi CS="C#" if test "x$CSC" = "xno"; then AC_MSG_ERROR([No $CS compiler found]) fi AC_SUBST(RUNTIME) AC_SUBST(CSC) GTK_SHARP_MIN_VERSION="1.0" AC_SUBST(GTK_SHARP_MIN_VERSION) PKG_CHECK_MODULES(TICKYPIP, gnome-sharp rsvg-sharp gtk-sharp >= $GTK_SHARP_MIN_VERSION) AC_SUBST(TICKYPIP_LIBS) AC_CONFIG_FILES([ Makefile graphics/Makefile src/Makefile ]) AC_OUTPUT echo echo $PACKAGE v$VERSION echo echo "Now type make to compile" echo "Then su to root and type: make install" echo