4 AM_INIT_AUTOMAKE(connman-core, 0.0)
5 AM_CONFIG_HEADER(config.h)
9 AC_PREFIX_DEFAULT(/usr/local)
11 if (test "${CFLAGS}" = ""); then
12 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
21 m4_define([_LT_AC_TAGCONFIG], [])
22 m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
27 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
28 [enable compiling with debugging information]), [
29 if (test "${enableval}" = "yes" &&
30 test "${ac_cv_prog_cc_g}" = "yes"); then
35 AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
36 [enable position independent executables flag]), [
37 if (test "${enableval}" = "yes" &&
38 test "${ac_cv_prog_cc_pie}" = "yes"); then
39 CFLAGS="$CFLAGS -fPIE"
40 LDFLAGS="$LDFLAGS -pie"
44 PKG_CHECK_MODULES(GMODULE, gmodule-2.0, dummy=yes,
45 AC_MSG_ERROR(gmodule is required))
46 AC_SUBST(GMODULE_CFLAGS)
47 AC_SUBST(GMODULE_LIBS)
49 PKG_CHECK_MODULES(GDBUS, gdbus, dummy=yes,
50 AC_MSG_ERROR(libgdbus is required))
51 AC_SUBST(GDBUS_CFLAGS)
54 PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes,
55 AC_MSG_ERROR(libdbus is required))
59 PKG_CHECK_MODULES(HAL, hal >= 0.5.8, dummy=yes,
60 AC_MSG_ERROR(libhal is required))
64 AC_OUTPUT(Makefile include/Makefile src/Makefile doc/Makefile test/Makefile
65 plugins/Makefile scripts/Makefile)