-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
42 lines (37 loc) · 1.09 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
AC_INIT([picopter], [1.0])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CHECK_LIB([pthread], pthread_create, [], [AC_MSG_ERROR([pthread library not found])])
AC_CHECK_LIB([glib-2.0], g_variant_new, [], [AC_MSG_ERROR([glib-2.0 library not found])])
AC_CHECK_LIB([gio-2.0], g_dbus_method_invocation_return_dbus_error, [], [AC_MSG_ERROR([gio-2.0 library not found])])
AC_CHECK_LIB([gobject-2.0], g_object_unref, [], [AC_MSG_ERROR([gobject-2.0 library not found])])
AC_PROG_CXX
AC_PROG_RANLIB
AM_PROG_AR
AX_CXX_COMPILE_STDCXX_17
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GOBJECT_CFLAGS)
if pkg-config --atleast-version=2.00 glib-2.0; then
GLIB_CFLAGS=`pkg-config --cflags glib-2.0`
else
AC_MSG_ERROR(glib-2.0 not found)
fi
if pkg-config --atleast-version=2.00 gio-2.0; then
GIO_CFLAGS=`pkg-config --cflags gio-2.0`
else
AC_MSG_ERROR(gio-2.0 not found)
fi
if pkg-config --atleast-version=2.00 gobject-2.0; then
GOBJECT_CFLAGS=`pkg-config --cflags gobject-2.0`
else
AC_MSG_ERROR(gobject-2.0 not found)
fi
AC_CONFIG_SUBDIRS([
src
ggk
])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT