Oups. Forgot to repercute the folder change of the controls
[circ.git] / configure.ac
blob21660940220eb9c7ecb9b1607ed026ffb045d67b
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([NUNIT_22], [nunit-2.2])
23 PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0])
24 PKG_CHECK_MODULES([NINI_11], [nini-1.1])
25 PKG_CHECK_MODULES([GLADE_SHARP_20], [glade-sharp-2.0])
28 AC_ARG_ENABLE(debug,
29         AC_HELP_STRING([--enable-debug],
30                 [Use 'Debug' Configuration [default=NO]]),
31                 enable_debug=yes, enable_debug=no)
32 AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
33 if test "x$enable_debug" = "xyes" ; then
34         CIRCTESTS_DEBUG_LIB='CircTests.dll'
35         AC_SUBST(CIRCTESTS_DEBUG_LIB)
36         CIRC_BACKEND_CIL_DEBUG_LIB='Circ.Backend.Cil.dll'
37         AC_SUBST(CIRC_BACKEND_CIL_DEBUG_LIB)
38         CIRC_FRONTEND_GTKSHARP_DEBUG_LIB='Circ.Frontend.GtkSharp.dll'
39         AC_SUBST(CIRC_FRONTEND_GTKSHARP_DEBUG_LIB)
40         CIRC_LIB_DEBUG_LIB='Circ.Lib.dll'
41         AC_SUBST(CIRC_LIB_DEBUG_LIB)
42         DEBUG_CONFIG_LIBRARIES=' ${pkglibdir}/CircTests.dll ${pkglibdir}/Circ.Backend.Cil.dll ${pkglibdir}/Circ.Frontend.GtkSharp.dll ${pkglibdir}/Circ.Lib.dll ${pkglibdir}/NDesk.DBus.dll ${pkglibdir}/Mono.Addins.dll'
43         DEBUG_CONFIG_LIBS=' -r:${pkglibdir}/CircTests.dll -r:${pkglibdir}/Circ.Backend.Cil.dll -r:${pkglibdir}/Circ.Frontend.GtkSharp.dll -r:${pkglibdir}/Circ.Lib.dll -r:${pkglibdir}/NDesk.DBus.dll -r:${pkglibdir}/Mono.Addins.dll'
44         AC_SUBST(DEBUG_CONFIG_LIBRARIES)
45         AC_SUBST(DEBUG_CONFIG_LIBS)
46         CONFIG_REQUESTED="yes"
48 AC_ARG_ENABLE(release,
49         AC_HELP_STRING([--enable-release],
50                 [Use 'Release' Configuration [default=YES]]),
51                 enable_release=yes, enable_release=no)
52 AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
53 if test "x$enable_release" = "xyes" ; then
54         CIRCTESTS_RELEASE_LIB='CircTests.dll'
55         AC_SUBST(CIRCTESTS_RELEASE_LIB)
56         CIRC_BACKEND_CIL_RELEASE_LIB='Circ.Backend.Cil.dll'
57         AC_SUBST(CIRC_BACKEND_CIL_RELEASE_LIB)
58         CIRC_FRONTEND_GTKSHARP_RELEASE_LIB='Circ.Frontend.GtkSharp.dll'
59         AC_SUBST(CIRC_FRONTEND_GTKSHARP_RELEASE_LIB)
60         CIRC_LIB_RELEASE_LIB='Circ.Lib.dll'
61         AC_SUBST(CIRC_LIB_RELEASE_LIB)
62         RELEASE_CONFIG_LIBRARIES=' ${pkglibdir}/CircTests.dll ${pkglibdir}/Circ.Backend.Cil.dll ${pkglibdir}/Circ.Frontend.GtkSharp.dll ${pkglibdir}/Circ.Lib.dll ${pkglibdir}/NDesk.DBus.dll ${pkglibdir}/Mono.Addins.dll'
63         RELEASE_CONFIG_LIBS=' -r:${pkglibdir}/CircTests.dll -r:${pkglibdir}/Circ.Backend.Cil.dll -r:${pkglibdir}/Circ.Frontend.GtkSharp.dll -r:${pkglibdir}/Circ.Lib.dll -r:${pkglibdir}/NDesk.DBus.dll -r:${pkglibdir}/Mono.Addins.dll'
64         AC_SUBST(RELEASE_CONFIG_LIBRARIES)
65         AC_SUBST(RELEASE_CONFIG_LIBS)
66         CONFIG_REQUESTED="yes"
68 if test -z "$CONFIG_REQUESTED" ; then
69         CIRCTESTS_RELEASE_LIB='CircTests.dll'
70         AC_SUBST(CIRCTESTS_RELEASE_LIB)
71         CIRC_BACKEND_CIL_RELEASE_LIB='Circ.Backend.Cil.dll'
72         AC_SUBST(CIRC_BACKEND_CIL_RELEASE_LIB)
73         CIRC_FRONTEND_GTKSHARP_RELEASE_LIB='Circ.Frontend.GtkSharp.dll'
74         AC_SUBST(CIRC_FRONTEND_GTKSHARP_RELEASE_LIB)
75         CIRC_LIB_RELEASE_LIB='Circ.Lib.dll'
76         AC_SUBST(CIRC_LIB_RELEASE_LIB)
77         RELEASE_CONFIG_LIBRARIES=' ${pkglibdir}/CircTests.dll ${pkglibdir}/Circ.Backend.Cil.dll ${pkglibdir}/Circ.Frontend.GtkSharp.dll ${pkglibdir}/Circ.Lib.dll ${pkglibdir}/NDesk.DBus.dll ${pkglibdir}/Mono.Addins.dll'
78         RELEASE_CONFIG_LIBS=' -r:${pkglibdir}/CircTests.dll -r:${pkglibdir}/Circ.Backend.Cil.dll -r:${pkglibdir}/Circ.Frontend.GtkSharp.dll -r:${pkglibdir}/Circ.Lib.dll -r:${pkglibdir}/NDesk.DBus.dll -r:${pkglibdir}/Mono.Addins.dll'
79         AC_SUBST(RELEASE_CONFIG_LIBRARIES)
80         AC_SUBST(RELEASE_CONFIG_LIBS)
81         AM_CONDITIONAL(ENABLE_RELEASE, true)
85 AC_CONFIG_FILES([
86 ./Makefile
87 ./Circ.Backend.Cil/Makefile
88 ./CirC/Circ.Circ.pc
89 ./CircTests/Circ.CircTests.pc
90 ./Circ.Backend.Cil/Circ.Circ.Backend.Cil.pc
91 ./CirC/Makefile
92 ./CircTests/Makefile
93 ./Circ.Lib/Circ.Circ.Lib.pc
94 ./Circ.Lib/Makefile
95 ./Circ.Frontend.GtkSharp/Makefile
96 ./Circ.Frontend.GtkSharp/Circ.Circ.Frontend.GtkSharp.pc
97 ./CirC/circ
101 AC_OUTPUT