2 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT([roobuilder], [4.2.0])
7 AC_CONFIG_HEADERS([config.h])
9 AM_INIT_AUTOMAKE([1.11 subdir-objects])
10 AM_MAINTAINER_MODE([enable])
12 AM_SILENT_RULES([yes])
16 AM_PROG_VALAC([0.36.0])
19 AC_CHECK_LIB([m],[cos])
21 dnl we need to check these exist, then it will generate a compile string for them.
23 dnl we add zlib in to pad the listof libraries (as for some reason -L is injected on the final stage without argument
24 dnl and it breaks the build...
26 PKG_CHECK_MODULES(ROOBUILDER, [ zlib
38 dnl --- libvala -- needs to find matching really..
40 dnl - supported version is 0.36 and 0.56
42 PKG_CHECK_MODULES(LIBVALA, [libvala-0.56],
43 [vala_5_6_enabled=yes],
44 [vala_5_6_enabled=no])
45 if test $vala_5_6_enabled = yes; then
46 AC_DEFINE(HAVE_LIBVALA56,1,[libvala 0.56 support])
49 PKG_CHECK_MODULES(LIBVALA, [libvala-0.36],
50 [vala_3_6_enabled=yes],
51 [vala_3_6_enabled=no])
52 if test $vala_3_6_enabled = yes; then
53 AC_DEFINE(HAVE_LIBVALA36,1,[libvala 0.36 support])
58 AM_CONDITIONAL(HAVE_LIBVALA56, test "$vala_5_6_enabled" = "yes")
59 AM_CONDITIONAL(HAVE_LIBVALA36, test "$vala_3_6_enabled" = "yes")
68 PKG_CHECK_MODULES(GDA, [libgda-5.0],
69 [gda_5_0_enabled=yes],
72 if test $gda_5_0_enabled = yes; then
73 AC_DEFINE(HAVE_GDA5,1,[libgda 5.0 support])
75 PKG_CHECK_MODULES(GDA, [libgda-4.0],
76 [gda_4_0_enabled=yes] )
77 AC_DEFINE(HAVE_GDA4,1,[libgda 4.0 support])
79 AM_CONDITIONAL(HAVE_GDA4, test "$gda_4_0_enabled" = "yes")
80 AM_CONDITIONAL(HAVE_GDA5, test "$gda_5_0_enabled" = "yes")
86 PKG_CHECK_MODULES(WEBKIT, [webkit2gtk-4.0],
87 [webkit_4_0_enabled=yes],
88 [webkit_4_0_enabled=no])
90 if test $webkit_4_0_enabled = yes; then
91 AC_DEFINE(HAVE_WEBKIT4,1,[webkit 4.0 support])
93 PKG_CHECK_MODULES(WEBKIT, [webkit2gtk-3.0],
94 [webkit_3_0_enabled=yes] )
95 AC_DEFINE(HAVE_WEBKIT3,1,[webkit 3.0 support])
99 AM_CONDITIONAL(HAVE_WEBKIT3, test "$webkit_3_0_enabled" = "yes")
100 AM_CONDITIONAL(HAVE_WEBKIT4, test "$webkit_4_0_enabled" = "yes")
104 dnl -- javascriptcoregtk-4.0 ** not sure if this is needed....
107 PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-4.0],
108 [javascriptcoregtk_4_0_enabled=yes],
109 [javascriptcoregtk_4_0_enabled=no])
111 if test $javascriptcoregtk_4_0_enabled = yes; then
112 AC_DEFINE(HAVE_JAVASCRIPTCOREGTK4,1,[javascriptcoregtk 4.0 support])
114 PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-3.0],
115 [javascriptcoregtk_3_0_enabled=yes] )
116 AC_DEFINE(HAVE_JAVASCRIPTCOREGTK3,1,[javascriptcoregtk 3.0 support])
120 AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK3, test "$javascriptcoregtk_3_0_enabled" = "yes")
121 AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK4, test "$javascriptcoregtk_4_0_enabled" = "yes")
125 dnl --- vte -- fixme - its not used yet.. not sure if we will use it....
128 PKG_CHECK_MODULES(VTE, [vte-2.91],
129 [vte_2_91_enabled=yes],
130 [vte_2_91_enabled=no])
132 if test $vte_2_91_enabled = yes; then
133 AC_DEFINE(HAVE_VTE_2_91,1,[libvte 2.91 support])
135 PKG_CHECK_MODULES(VTE, [vte-2.90],
136 [vte_2_90_enabled=yes]
138 AC_DEFINE(HAVE_VTE_2_90,1,[libvte 2.90 support])
141 AM_CONDITIONAL(HAVE_VTE_2_90, test "$vte_2_90_enabled" = "yes")
142 AM_CONDITIONAL(HAVE_VTE_2_91, test "$vte_2_91_enabled" = "yes")
151 AC_SUBST(ROOBUILDER_CFLAGS)
152 AC_SUBST(ROOBUILDER_LIBS)