dnl Process this file with autoconf to produce a configure script. AC_PREREQ([2.54]) AC_INIT([Greengrass], [0.3.1]) AM_INIT_AUTOMAKE([foreign]) ASSEMBLY_VERSION=0.3.1 ASSEMBLY_BUILD=0 if test -f ./build-version ; then ASSEMBLY_BUILD="$(expr 1 + $(cat ./build-version))" echo $ASSEMBLY_BUILD > ./build-version fi AC_SUBST(ASSEMBLY_VERSION) AC_SUBST(ASSEMBLY_BUILD) AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test "x$PKG_CONFIG" = "xno"; then AC_MSG_ERROR([You need to install pkg-config]) fi AC_PROG_INSTALL AC_PATH_PROG(GMCS, gmcs, no) if test "x$GMCS" = "xno"; then AC_MSG_ERROR([gmcs Not found]) fi AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Use 'DEBUG' Configuration [default=YES]]), enable_debug=yes, enable_debug=no) AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes) if test "x$enable_debug" = "xyes" ; then CONFIG_REQUESTED="yes" fi AC_ARG_ENABLE(release, AC_HELP_STRING([--enable-release], [Use 'RELEASE' Configuration [default=NO]]), enable_release=yes, enable_release=no) AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes) if test "x$enable_release" = "xyes" ; then CONFIG_REQUESTED="yes" fi if test -z "$CONFIG_REQUESTED" ; then AM_CONDITIONAL(ENABLE_DEBUG, true) enable_debug=yes fi dnl PACKAGE CHECKS PKG_CHECK_MODULES([MONO_ADDINS], [mono-addins]) # PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0]) PKG_CHECK_MODULES([NUNIT], [nunit]) AC_CONFIG_SUBDIRS([external/optnik]) AC_CONFIG_FILES([ Makefile Greengrass/Makefile Greengrass/src/AssemblyInfo.cs Greengrass.Extras/Makefile Greengrass.Extras/src/AssemblyInfo.cs GgTool/Makefile GgTool/src/AssemblyInfo.cs ]) AC_OUTPUT