Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (64 sloc) 2.479 kb
c729c0f Importing existing code
Diego Dompe authored
1 AC_INIT([ipiped],[1.0],[support@ridgerun.com])
2 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
3 AC_CONFIG_MACRO_DIR([m4])
4 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
5
6 AC_PROG_CC
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_FILES([Makefile src/Makefile])
9 AC_CONFIG_FILES(ipiped-1.0.pc:ipiped-1.0.pc.in)
10 AC_CONFIG_FILES(com.ridgerun.ipiped.service:com.ridgerun.ipiped.service.in)
11
12 AM_PROG_VALAC([0.7.6])
13
14 dnl Check for pkgconfig first
15 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
16 dnl Give error and exit if we don't have pkgconfig
17 if test "x$HAVE_PKGCONFIG" = "xno"; then
18 AC_MSG_ERROR(you need to have pkgconfig installed !)
19 fi
20
21
22 dnl Now we're ready to ask for gthread
23 PKG_CHECK_MODULES(GTHREAD, gthread-2.0, HAVE_GTHREAD=yes, HAVE_GTHREAD=no)
24 dnl Give error and exit if we don't have gthread
25 if test "x$HAVE_GTHREAD" = "xno"; then
26 AC_MSG_ERROR([you need gthread development packages installed!])
27 fi
28 dnl append GTHREAD_ERROR cflags to GTHREAD_CFLAGS
29 GTHREAD_CFLAGS="$GTHREAD_CFLAGS $GTHREAD_ERROR"
30 dnl make GTHREAD_CFLAGS and GTHREAD_LIBS available
31 AC_SUBST(GTHREAD_CFLAGS)
32 AC_SUBST(GTHREAD_LIBS)
33
34
ee807b8 @mmontero Check for dbus in configure
mmontero authored
35 dnl Now we're ready to ask for dbus
36 PKG_CHECK_MODULES(DBUS, dbus-1, HAVE_DBUS=yes, HAVE_DBUS=no)
37 dnl Give error and exit if we don't have dbus
38 if test "x$HAVE_DBUS" = "xno"; then
39 AC_MSG_ERROR([you need dbus development packages installed!])
40 fi
c729c0f Importing existing code
Diego Dompe authored
41 _PKG_CONFIG([DBUS_SYSCONFIG_DIR],[variable=sysconfdir],[dbus-1])
42 DBUS_SYSCONFIG_DIR=$pkg_cv_DBUS_SYSCONFIG_DIR
43 AC_SUBST(DBUS_SYSCONFIG_DIR)
44
45 dnl Now we're ready to ask for gio-2.0
46 PKG_CHECK_MODULES(GIO, gio-2.0, HAVE_GIO=yes, HAVE_GIO=no)
47 #if test "x$HAVE_GIO = "xno"; then
48 # AC_MSG_ERROR([you need gio-2.0 development packages installed !])
49 #fi
50 dnl make GIO_CFLAGS and GIO_LIBS available
51 AC_SUBST(GIO_CFLAGS)
52 AC_SUBST(GIO_LIBS)
53
54
55 dnl Now we're ready to ask for librraew
56 PKG_CHECK_MODULES(LIBRRAEW, librraew >= 1.0, HAVE_LIBRRAEW=yes, HAVE_LIBRRAEW=no)
57 LIBRRAEW_VALAFLAGS=`pkg-config --variable=valaflags librraew`
58
59 dnl make the FLAGS and LIBS available
60 AM_CONDITIONAL([USE_LIBRRAEW], [test x$HAVE_LIBRRAEW = xyes])
61 AC_SUBST(LIBRRAEW_CFLAGS)
62 AC_SUBST(LIBRRAEW_LIBS)
63 AC_SUBST(LIBRRAEW_VALAFLAGS)
64
65 if test -z "$VAPIDIR"; then
66 VAPIDIR=/usr/share/vala/vapi
67 fi
68 AC_ARG_VAR([VAPIDIR], [path for the vala bindings])
69 AC_ARG_WITH(vapidir,
70 [AS_HELP_STRING([--with-vapidir=<path>],
71 [Set the path for the vapidir])],
72 [AC_MSG_NOTICE([Setting the vapidir "$withval"])
73 AC_SUBST([VAPIDIR],[$withval])
74 ]
75 )
76
77 AC_OUTPUT
Something went wrong with that request. Please try again.