Remove gschem-plugin
[oscopy/ivan.git] / configure.ac
blob69c86607254b55b2e4f0ff1689d8021a8f3312e2
1 dnl                                                      -*-Autoconf-*-
2 dnl Process this file with autoconf to generate configure.
3 dnl
4 dnl The AX_* macros are defined in files in the top-level m4
5 dnl directory.
7 #####################################################################
8 # Set up configuration system
9 #####################################################################
11 AC_INIT([oscopy], [0.32], [agardelein@yahoo.fr])
12 AC_PROG_CC
13 AC_PROG_LN_S
14 AC_CONFIG_MACRO_DIR([m4])
15 AC_CONFIG_AUX_DIR([build-tools])
16 AC_CONFIG_HEADERS([config.h])
17 AC_CONFIG_FILES([
18         Makefile
19         oscopy/Makefile
20         oscopy/graphs/Makefile
21         oscopy/readers/Makefile
22         oscopy/writers/Makefile
23         oscopy_gui/Makefile
24         gschem-plugin/Makefile
25         gschem-plugin/src/Makefile
27 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
29 #####################################################################
30 # Check for compiling & linking tools
31 #####################################################################
33 AC_PROG_CC
35 AC_DISABLE_STATIC
36 AC_PROG_LIBTOOL
38 AM_PROG_CC_C_O
39 #AX_GCC_FLAGS([-Wall])
41 AM_PROG_LEX
42 AX_PROG_AWK
43 AX_PROG_GROFF
44 AC_PATH_PROGS([M4], [gm4 m4], [m4])
45 AM_PATH_PYTHON([2.5])
47 #####################################################################
48 # Check for libraries that use pkg-config
49 #####################################################################
50 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0], ,
51   AC_MSG_ERROR([GLib 2.12.0 or later is required.]))
53 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], ,
54   AC_MSG_ERROR([GTK+ 2.10.0 or later is required.]))
56 #PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= 0.74], [AC_SUBST(DBUS_LIBS)],
57 #  AC_MSG_ERROR([dbus-glib-1 0.74 or later is required]))
58 # (from pidgin-2.6.5 configure.ac)
59 AC_ARG_ENABLE(dbus, [AC_HELP_STRING([--disable-dbus], [disable D-Bus support])], , enable_dbus=yes)
61 if test "x$enable_dbus" = "xyes" ; then
62         AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no)
65 if test "x$enable_dbus" = "xyes" ; then
66         PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.74 dbus-glib-1 >= 0.74], [
67                 AC_SUBST(DBUS_CFLAGS)
68                 AC_SUBST(DBUS_LIBS)
69                 enable_dbus=yes
70         ], [
71         enable_dbus=no
72         if test "x$force_deps" = "xyes" ; then
73                 AC_MSG_ERROR([
74 D-Bus development headers not found.
75 Use --disable-dbus if you do not need D-Bus support.
77         fi])
82 AC_OUTPUT