* Now use config file value
[circ.git] / configure.ac
blob19b0378e274ebf8a7b0dc665c3ce65178db8824f
1 dnl Warning: This is an automatically generated file, do not edit!
2 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ([2.54])
4 AC_INIT([Circ], [0.1])
5 AM_INIT_AUTOMAKE([foreign])
7 dnl pkg-config
8 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
9 if test "x$PKG_CONFIG" = "xno"; then
10         AC_MSG_ERROR([You need to install pkg-config])
13 AC_PROG_INSTALL
15 AC_PATH_PROG(GMCS, gmcs, no)
16 if test "x$GMCS" = "xno"; then
17         AC_MSG_ERROR([gmcs Not found])
21 PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
22 PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0])
23 PKG_CHECK_MODULES([NINI_11], [nini-1.1])
24 PKG_CHECK_MODULES([MONO_ADDINS], [mono-addins])
27 AC_ARG_ENABLE(debug,
28         AC_HELP_STRING([--enable-debug],
29                 [Use 'DEBUG' Configuration [default=YES]]),
30                 enable_debug=yes, enable_debug=no)
31 AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
32 if test "x$enable_debug" = "xyes" ; then
33         CONFIG_REQUESTED="yes"
35 AC_ARG_ENABLE(release,
36         AC_HELP_STRING([--enable-release],
37                 [Use 'RELEASE' Configuration [default=NO]]),
38                 enable_release=yes, enable_release=no)
39 AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
40 if test "x$enable_release" = "xyes" ; then
41         CONFIG_REQUESTED="yes"
43 if test -z "$CONFIG_REQUESTED" ; then
44         AM_CONDITIONAL(ENABLE_DEBUG, true)
48 AC_CONFIG_FILES([
49 Circ.Backend.Cil/Makefile
50 Tests/Makefile
51 Circ.Backend.Cil/circ.backend.cil.pc
52 Circ.Lib/circ.lib.pc
53 CirC/Makefile
54 Makefile
55 Circ.Lib/Makefile
56 Tests/tests.pc
57 Circ.Frontend.GtkSharp/Makefile
58 CirC/circ
59 Circ.Frontend.GtkSharp/circ.frontend.gtksharp.pc
63 AC_OUTPUT