forked from CESARBR/knot-hal-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (34 loc) · 1.03 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
43
44
45
46
47
48
49
50
AC_PREREQ(2.60)
AC_INIT(knot-hal, 0.01)
AM_INIT_AUTOMAKE([silent-rules subdir-objects])
AC_CONFIG_HEADERS(config.h)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
AC_PREFIX_DEFAULT(/usr/local)
PKG_PROG_PKG_CONFIG
COMPILER_WARNING_CFLAGS
COMPILER_BUILD_CFLAGS
AC_LANG_C
AC_PROG_CC
AC_PROG_CC_PIE
m4_define([_LT_AC_TAGCONFIG], [])
m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.52, dummy=no,
AC_MSG_ERROR(required glib >= 2.52))
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES(GIO_UNIX, gio-2.0 >= 2.48)
AC_SUBST(GIO_UNIX_CFLAGS)
AC_SUBST(GIO_UNIX_LIBS)
PKG_CHECK_MODULES(JSON, json-c,
[AC_DEFINE([HAVE_JSON],[1],[Use JSON])],
[AC_MSG_ERROR("json-c missing")])
AC_SUBST(JSON_CFLAGS)
AC_SUBST(JSON_LIBS)
AC_CONFIG_FILES([Makefile src/spi/Makefile src/nrf24l01/Makefile \
src/hal/storage/Makefile src/hal/time/Makefile \
src/hal/log/Makefile src/hal/comm/Makefile src/drivers/Makefile
src/hal/gpio/Makefile])
AC_OUTPUT