Aleksander Morgado | a43cecb | 2013-06-13 09:48:10 +0200 | [diff] [blame] | 1 | AC_PREREQ([2.63]) |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 2 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 3 | dnl----------------------------------------------------------------------------- |
| 4 | dnl Package and library versioning support |
| 5 | dnl |
| 6 | |
Aleksander Morgado | 5c68a36 | 2013-07-19 10:00:01 +0200 | [diff] [blame] | 7 | m4_define([mm_major_version], [1]) |
Aleksander Morgado | 19e5d5f | 2021-02-23 12:20:53 +0100 | [diff] [blame] | 8 | m4_define([mm_minor_version], [17]) |
Aleksander Morgado | 5f20662 | 2020-06-23 14:06:03 +0200 | [diff] [blame] | 9 | m4_define([mm_micro_version], [0]) |
Aleksander Morgado | a43cecb | 2013-06-13 09:48:10 +0200 | [diff] [blame] | 10 | m4_define([mm_version], |
| 11 | [mm_major_version.mm_minor_version.mm_micro_version]) |
| 12 | |
Aleksander Morgado | 2139e39 | 2013-06-13 10:56:04 +0200 | [diff] [blame] | 13 | dnl libtool versioning for libmm-glib (-version-info c:r:a) |
| 14 | dnl If the interface is unchanged, but the implementation has changed or |
| 15 | dnl been fixed, then increment r. |
| 16 | dnl Otherwise, increment c and zero r. |
| 17 | dnl If the interface has grown (that is, the new library is compatible |
| 18 | dnl with old code), increment a. |
| 19 | dnl If the interface has changed in an incompatible way (that is, |
| 20 | dnl functions have changed or been removed), then zero a. |
Aleksander Morgado | 7a5a49b | 2021-02-23 11:35:50 +0100 | [diff] [blame] | 21 | m4_define([mm_glib_lt_current], [7]) |
Aleksander Morgado | 2139e39 | 2013-06-13 10:56:04 +0200 | [diff] [blame] | 22 | m4_define([mm_glib_lt_revision], [0]) |
Aleksander Morgado | 7a5a49b | 2021-02-23 11:35:50 +0100 | [diff] [blame] | 23 | m4_define([mm_glib_lt_age], [7]) |
Aleksander Morgado | 2139e39 | 2013-06-13 10:56:04 +0200 | [diff] [blame] | 24 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 25 | dnl----------------------------------------------------------------------------- |
| 26 | dnl autoconf, automake, libtool initialization |
| 27 | dnl |
Aleksander Morgado | 6a3b7bd | 2020-09-18 10:31:32 +0200 | [diff] [blame] | 28 | AC_INIT([ModemManager], |
| 29 | [mm_version], |
| 30 | [https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues], |
| 31 | [ModemManager]) |
Sam Spilsbury | a0b95db | 2015-07-21 13:12:44 +0800 | [diff] [blame] | 32 | AM_INIT_AUTOMAKE([1.11.2 subdir-objects tar-ustar no-dist-gzip dist-xz -Wno-portability]) |
Dan Williams | b4d3ab0 | 2010-08-05 22:10:33 -0500 | [diff] [blame] | 33 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 34 | |
Adrian Bunk | f31ab09 | 2013-05-12 17:10:32 +0300 | [diff] [blame] | 35 | AM_MAINTAINER_MODE([enable]) |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 36 | |
Aleksander Morgado | ee41e57 | 2015-02-20 09:39:10 +0100 | [diff] [blame] | 37 | AM_SILENT_RULES([yes]) |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 38 | |
Michael Biebl | 22f6ab4 | 2010-01-27 15:48:10 -0800 | [diff] [blame] | 39 | AC_CONFIG_MACRO_DIR([m4]) |
| 40 | |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 41 | AC_CONFIG_HEADERS(config.h) |
| 42 | |
Aleksander Morgado | e68bf52 | 2011-03-28 11:30:10 +0200 | [diff] [blame] | 43 | dnl Define system extensions for various things like strcasestr() |
| 44 | AC_USE_SYSTEM_EXTENSIONS |
| 45 | |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 46 | dnl Required programs |
| 47 | AC_PROG_CC |
| 48 | AM_PROG_CC_C_O |
| 49 | AC_PROG_INSTALL |
Aleksander Morgado | 40e6fa4 | 2017-02-15 10:10:51 +0100 | [diff] [blame] | 50 | AC_PROG_MKDIR_P |
Aleksander Morgado | 641ec51 | 2011-03-28 18:09:48 +0200 | [diff] [blame] | 51 | |
| 52 | dnl Initialize libtool |
| 53 | LT_PREREQ([2.2]) |
Aleksander Morgado | 9f70066 | 2015-02-20 09:40:09 +0100 | [diff] [blame] | 54 | LT_INIT([disable-static]) |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 55 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 56 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | 1c07853 | 2019-11-19 11:06:43 +0100 | [diff] [blame] | 57 | dnl Compiler warnings |
| 58 | dnl |
| 59 | |
| 60 | dnl Make sure autoconf-archive is available |
| 61 | m4_pattern_forbid([^AX_(COMPILER_FLAGS|COMPILER_FLAGS_(CFLAGS|GIR|LDFLAGS))\b], |
| 62 | [Unexpanded AX_ macro found. Please install GNU autoconf-archive]) |
| 63 | |
| 64 | dnl Detect git or release builds |
| 65 | AX_IS_RELEASE([git-directory]) |
| 66 | |
| 67 | dnl Function type cast disabled: used throughout the code especially to |
| 68 | dnl cast GAsyncReadyCallbacks with the real object type instead of GObject |
| 69 | DISABLED_WARNINGS="${DISABLED_WARNINGS} -Wno-cast-function-type" |
| 70 | |
| 71 | dnl All message protocol structs are packed, never complain about it |
| 72 | DISABLED_WARNINGS="${DISABLED_WARNINGS} -Wno-packed" |
| 73 | |
| 74 | dnl Setup compiler checks |
| 75 | AX_COMPILER_FLAGS() |
| 76 | AX_COMPILER_FLAGS_CFLAGS(,,,[${DISABLED_WARNINGS}]) |
| 77 | |
| 78 | dnl Specify gnu89 mode |
| 79 | if test "$GCC" = "yes"; then |
| 80 | CFLAGS="$CFLAGS -std=gnu89" |
| 81 | fi |
| 82 | |
| 83 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 84 | dnl Version definitions |
| 85 | dnl |
| 86 | |
Aleksander Morgado | a43cecb | 2013-06-13 09:48:10 +0200 | [diff] [blame] | 87 | dnl Version stuff |
| 88 | MM_MAJOR_VERSION=mm_major_version |
| 89 | MM_MINOR_VERSION=mm_minor_version |
| 90 | MM_MICRO_VERSION=mm_micro_version |
| 91 | MM_VERSION=mm_version |
| 92 | AC_SUBST(MM_MAJOR_VERSION) |
| 93 | AC_SUBST(MM_MINOR_VERSION) |
| 94 | AC_SUBST(MM_MICRO_VERSION) |
| 95 | AC_SUBST(MM_VERSION) |
| 96 | |
Aleksander Morgado | 2139e39 | 2013-06-13 10:56:04 +0200 | [diff] [blame] | 97 | dnl libtool version stuff |
| 98 | MM_GLIB_LT_CURRENT=mm_glib_lt_current |
| 99 | MM_GLIB_LT_REVISION=mm_glib_lt_revision |
| 100 | MM_GLIB_LT_AGE=mm_glib_lt_age |
| 101 | AC_SUBST(MM_GLIB_LT_CURRENT) |
| 102 | AC_SUBST(MM_GLIB_LT_REVISION) |
| 103 | AC_SUBST(MM_GLIB_LT_AGE) |
| 104 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 105 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | 09f40c8 | 2011-11-22 11:33:35 +0100 | [diff] [blame] | 106 | dnl Documentation |
| 107 | dnl |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 108 | |
Aleksander Morgado | 09f40c8 | 2011-11-22 11:33:35 +0100 | [diff] [blame] | 109 | GTK_DOC_CHECK(1.0) |
| 110 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 111 | dnl----------------------------------------------------------------------------- |
| 112 | dnl i18n |
Aleksander Morgado | 09f40c8 | 2011-11-22 11:33:35 +0100 | [diff] [blame] | 113 | dnl |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 114 | |
Aleksander Morgado | bb7311f | 2011-10-12 00:15:11 +0200 | [diff] [blame] | 115 | AM_GNU_GETTEXT([external]) |
Aleksander Morgado | 9846251 | 2017-08-25 21:35:18 +0200 | [diff] [blame] | 116 | AM_GNU_GETTEXT_VERSION([0.19.8]) |
Aleksander Morgado | bb7311f | 2011-10-12 00:15:11 +0200 | [diff] [blame] | 117 | |
Dan Williams | 9c958c9 | 2010-02-16 11:03:16 -0800 | [diff] [blame] | 118 | GETTEXT_PACKAGE=ModemManager |
| 119 | AC_SUBST(GETTEXT_PACKAGE) |
| 120 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) |
Dan Williams | 9c958c9 | 2010-02-16 11:03:16 -0800 | [diff] [blame] | 121 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 122 | dnl----------------------------------------------------------------------------- |
| 123 | dnl Build dependencies |
| 124 | dnl |
| 125 | |
Aleksander Morgado | 5e4b559 | 2020-01-21 10:58:55 +0100 | [diff] [blame] | 126 | # NOTE! If using glib < 2.55.1, make sure you have backported the following patch to avoid |
| 127 | # the daemon leaking a lot: https://gitlab.gnome.org/GNOME/glib/commit/37d9b0c6995f97ea0f744650aaf5179081f878ba |
Aleksander Morgado | f775721 | 2020-01-15 18:49:09 +0100 | [diff] [blame] | 128 | GLIB_MIN_VERSION=2.48.0 |
| 129 | GLIB_BUILD_SYMBOLS="-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 -DGLIB_DISABLE_DEPRECATION_WARNINGS" |
Aleksander Morgado | 1bdb1a5 | 2016-01-24 15:26:12 +0100 | [diff] [blame] | 130 | |
Aleksander Morgado | dbb06b6 | 2011-10-10 11:58:28 +0200 | [diff] [blame] | 131 | PKG_CHECK_MODULES(MM, |
Aleksander Morgado | 1bdb1a5 | 2016-01-24 15:26:12 +0100 | [diff] [blame] | 132 | glib-2.0 >= $GLIB_MIN_VERSION |
Aleksander Morgado | dbb06b6 | 2011-10-10 11:58:28 +0200 | [diff] [blame] | 133 | gmodule-2.0 |
| 134 | gobject-2.0 |
| 135 | gio-2.0 |
Aleksander Morgado | 4804c37 | 2012-09-05 19:51:18 +0200 | [diff] [blame] | 136 | gio-unix-2.0) |
Aleksander Morgado | af90506 | 2016-10-13 12:00:26 +0200 | [diff] [blame] | 137 | MM_CFLAGS="$MM_CFLAGS $GLIB_BUILD_SYMBOLS" |
Dan Williams | 4fd6264 | 2012-01-27 15:13:42 -0600 | [diff] [blame] | 138 | AC_SUBST(MM_CFLAGS) |
| 139 | AC_SUBST(MM_LIBS) |
Dan Williams | 924814c | 2009-06-18 14:25:30 -0400 | [diff] [blame] | 140 | |
Aleksander Morgado | dc8d9df | 2012-06-26 13:01:39 +0200 | [diff] [blame] | 141 | PKG_CHECK_MODULES(LIBMM_GLIB, |
Aleksander Morgado | 1bdb1a5 | 2016-01-24 15:26:12 +0100 | [diff] [blame] | 142 | glib-2.0 >= $GLIB_MIN_VERSION |
Aleksander Morgado | ba0e4ca | 2011-10-26 21:08:21 +0200 | [diff] [blame] | 143 | gobject-2.0 |
Aleksander Morgado | b6d628b | 2012-10-02 15:08:46 +0200 | [diff] [blame] | 144 | gio-2.0 |
| 145 | gio-unix-2.0) |
Aleksander Morgado | af90506 | 2016-10-13 12:00:26 +0200 | [diff] [blame] | 146 | LIBMM_GLIB_CFLAGS="$LIBMM_GLIB_CFLAGS $GLIB_BUILD_SYMBOLS" |
Aleksander Morgado | dc8d9df | 2012-06-26 13:01:39 +0200 | [diff] [blame] | 147 | AC_SUBST(LIBMM_GLIB_CFLAGS) |
| 148 | AC_SUBST(LIBMM_GLIB_LIBS) |
Aleksander Morgado | ba0e4ca | 2011-10-26 21:08:21 +0200 | [diff] [blame] | 149 | |
Aleksander Morgado | 8f450d8 | 2011-08-17 18:14:26 +0200 | [diff] [blame] | 150 | PKG_CHECK_MODULES(MMCLI, |
Aleksander Morgado | 1bdb1a5 | 2016-01-24 15:26:12 +0100 | [diff] [blame] | 151 | glib-2.0 >= $GLIB_MIN_VERSION |
Aleksander Morgado | 8f450d8 | 2011-08-17 18:14:26 +0200 | [diff] [blame] | 152 | gobject-2.0 |
| 153 | gio-2.0) |
Aleksander Morgado | af90506 | 2016-10-13 12:00:26 +0200 | [diff] [blame] | 154 | MMCLI_CFLAGS="$MMCLI_CFLAGS $GLIB_BUILD_SYMBOLS" |
Aleksander Morgado | 8f450d8 | 2011-08-17 18:14:26 +0200 | [diff] [blame] | 155 | AC_SUBST(MMCLI_CFLAGS) |
Aleksander Morgado | 6512fde | 2016-03-20 17:38:38 +0100 | [diff] [blame] | 156 | AC_SUBST(MMCLI_LIBS) |
Aleksander Morgado | 8f450d8 | 2011-08-17 18:14:26 +0200 | [diff] [blame] | 157 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 158 | dnl Some required utilities |
Aleksander Morgado | 596c9ea | 2013-02-06 13:55:04 +0100 | [diff] [blame] | 159 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` |
| 160 | AC_SUBST(GLIB_MKENUMS) |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 161 | |
Aleksander Morgado | ff4e457 | 2014-06-13 16:54:06 +0200 | [diff] [blame] | 162 | GDBUS_CODEGEN=`$PKG_CONFIG --variable=gdbus_codegen gio-2.0` |
Aleksander Morgado | 6313f57 | 2014-06-11 17:14:18 +0200 | [diff] [blame] | 163 | AC_SUBST(GDBUS_CODEGEN) |
Tambet Ingo | a93f084 | 2008-08-13 10:05:31 +0300 | [diff] [blame] | 164 | |
Aleksander Morgado | 904adbf | 2020-11-08 08:10:45 +0100 | [diff] [blame] | 165 | dnl xsltproc required in git builds only |
| 166 | AC_CHECK_PROG(XSLTPROC_CHECK,xsltproc,yes) |
| 167 | if test "x$ax_is_release" != "xyes" -a "x$XSLTPROC_CHECK" != "xyes"; then |
| 168 | AC_MSG_ERROR([Please install xsltproc before configuring.]) |
| 169 | fi |
| 170 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 171 | dnl----------------------------------------------------------------------------- |
| 172 | dnl Testing support |
| 173 | dnl |
| 174 | |
| 175 | dnl Code coverage (disabled by default) |
Jakub Sitnicki | 7552030 | 2015-01-11 15:07:22 +0100 | [diff] [blame] | 176 | AX_CODE_COVERAGE |
| 177 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 178 | dnl----------------------------------------------------------------------------- |
| 179 | dnl Introspection and bindings |
| 180 | dnl |
| 181 | |
| 182 | dnl GObject Introspection |
Christian Persch | b8838b8 | 2013-08-04 13:51:27 +0200 | [diff] [blame] | 183 | GOBJECT_INTROSPECTION_CHECK([0.9.6]) |
| 184 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 185 | dnl Vala bindings |
Christian Persch | bfae863 | 2013-08-06 23:12:26 +0200 | [diff] [blame] | 186 | VAPIGEN_CHECK(0.18) |
Christian Persch | 8119433 | 2013-08-14 12:32:17 +0200 | [diff] [blame] | 187 | if test "x$enable_vala" = "xyes" -a ! -f "$VAPIGEN_MAKEFILE"; then |
| 188 | AC_MSG_ERROR([Vala bindings enabled but Makefile.vapigen not found. Install vala-devel, or pass --disable-vala]) |
| 189 | fi |
| 190 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 191 | dnl----------------------------------------------------------------------------- |
| 192 | dnl System paths |
| 193 | dnl |
| 194 | |
| 195 | dnl DBus system directory |
Aleksander Morgado | 596c9ea | 2013-02-06 13:55:04 +0100 | [diff] [blame] | 196 | AC_ARG_WITH(dbus-sys-dir, AS_HELP_STRING([--with-dbus-sys-dir=DIR], [where D-BUS system.d directory is])) |
Tambet Ingo | a93f084 | 2008-08-13 10:05:31 +0300 | [diff] [blame] | 197 | if test -n "$with_dbus_sys_dir" ; then |
| 198 | DBUS_SYS_DIR="$with_dbus_sys_dir" |
| 199 | else |
| 200 | DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d" |
| 201 | fi |
| 202 | AC_SUBST(DBUS_SYS_DIR) |
| 203 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 204 | dnl udev base directory |
Dan Williams | 50105ae | 2009-07-07 10:45:44 -0400 | [diff] [blame] | 205 | AC_ARG_WITH(udev-base-dir, AS_HELP_STRING([--with-udev-base-dir=DIR], [where udev base directory is])) |
Dan Williams | 50105ae | 2009-07-07 10:45:44 -0400 | [diff] [blame] | 206 | if test -n "$with_udev_base_dir" ; then |
| 207 | UDEV_BASE_DIR="$with_udev_base_dir" |
| 208 | else |
| 209 | UDEV_BASE_DIR="/lib/udev" |
| 210 | fi |
| 211 | AC_SUBST(UDEV_BASE_DIR) |
| 212 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 213 | dnl systemd system unit directory |
Aleksander Morgado | 222825d | 2013-02-06 15:40:28 +0100 | [diff] [blame] | 214 | AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [where systemd service files are]), |
| 215 | [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) |
| 216 | if test "x$with_systemdsystemunitdir" != xno; then |
| 217 | AC_SUBST([SYSTEMD_UNIT_DIR], [$with_systemdsystemunitdir]) |
| 218 | fi |
| 219 | AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$SYSTEMD_UNIT_DIR" -a "$SYSTEMD_UNIT_DIR" != xno ]) |
| 220 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 221 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | 58c955f | 2016-09-28 19:46:12 +0200 | [diff] [blame] | 222 | dnl udev support (enabled by default) |
| 223 | dnl |
| 224 | |
| 225 | GUDEV_VERSION=147 |
| 226 | |
| 227 | AC_ARG_WITH(udev, AS_HELP_STRING([--without-udev], [Build without udev support]), [], [with_udev=yes]) |
| 228 | AM_CONDITIONAL(WITH_UDEV, test "x$with_udev" = "xyes") |
| 229 | case $with_udev in |
| 230 | yes) |
| 231 | PKG_CHECK_MODULES(GUDEV, [gudev-1.0 >= $GUDEV_VERSION], [have_gudev=yes],[have_gudev=no]) |
| 232 | if test "x$have_gudev" = "xno"; then |
| 233 | AC_MSG_ERROR([Couldn't find gudev >= $GUDEV_VERSION. Install it, or otherwise configure using --without-udev to disable udev support.]) |
| 234 | else |
| 235 | AC_DEFINE(WITH_UDEV, 1, [Define if you want udev support]) |
| 236 | AC_SUBST(GUDEV_CFLAGS) |
| 237 | AC_SUBST(GUDEV_LIBS) |
| 238 | fi |
| 239 | ;; |
| 240 | *) |
| 241 | with_udev=no |
| 242 | ;; |
| 243 | esac |
| 244 | |
| 245 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 246 | dnl Suspend/resume support |
| 247 | dnl |
| 248 | |
Aleksander Morgado | 1f13909 | 2016-04-01 13:06:55 +0200 | [diff] [blame] | 249 | PKG_CHECK_MODULES(LIBSYSTEMD, [libsystemd >= 209],[have_libsystemd=yes],[have_libsystemd=no]) |
| 250 | PKG_CHECK_MODULES(LIBSYSTEMD_LOGIN, [libsystemd-login >= 183],[have_libsystemd_login=yes],[have_libsystemd_login=no]) |
Dylan Van Assche | 756894b | 2020-11-27 18:07:02 +0100 | [diff] [blame] | 251 | PKG_CHECK_MODULES(LIBELOGIND, [libelogind >= 209], [have_elogind=yes], [have_elogind=no]) |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 252 | AC_ARG_WITH(systemd-suspend-resume, |
| 253 | AS_HELP_STRING([--with-systemd-suspend-resume=no|yes], |
| 254 | [Enable systemd suspend/resume support [[default=auto]]]),, |
| 255 | [with_systemd_suspend_resume=auto]) |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 256 | |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 257 | if test "x$with_systemd_suspend_resume" = "xauto"; then |
Dylan Van Assche | 756894b | 2020-11-27 18:07:02 +0100 | [diff] [blame] | 258 | if test "x$have_libsystemd" = "xyes" || test "x$have_libsystemd_login" = "xyes" || test "x$have_elogind" = "xyes"; then |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 259 | with_systemd_suspend_resume=yes |
Aleksander Morgado | 1f13909 | 2016-04-01 13:06:55 +0200 | [diff] [blame] | 260 | else |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 261 | with_systemd_suspend_resume=no |
Aleksander Morgado | 1f13909 | 2016-04-01 13:06:55 +0200 | [diff] [blame] | 262 | fi |
Aleksander Morgado | a92b6f2 | 2015-01-15 11:53:03 +0100 | [diff] [blame] | 263 | fi |
| 264 | |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 265 | case $with_systemd_suspend_resume in |
| 266 | yes) |
Dylan Van Assche | 756894b | 2020-11-27 18:07:02 +0100 | [diff] [blame] | 267 | if test "x$have_libsystemd" = "xno" && test "x$have_libsystemd_login" = "xno" && test "x$have_elogind" = "xno"; then |
| 268 | AC_MSG_WARN(libsystemd, libsystemd-login or elogind must be available at runtime for suspend/resume support) |
Aleksander Morgado | 1f13909 | 2016-04-01 13:06:55 +0200 | [diff] [blame] | 269 | fi |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 270 | AC_DEFINE(WITH_SYSTEMD_SUSPEND_RESUME, 1, [Define if you have systemd suspend-resume support]) |
Aleksander Morgado | a92b6f2 | 2015-01-15 11:53:03 +0100 | [diff] [blame] | 271 | ;; |
| 272 | *) |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 273 | with_systemd_suspend_resume=no |
Aleksander Morgado | a92b6f2 | 2015-01-15 11:53:03 +0100 | [diff] [blame] | 274 | ;; |
| 275 | esac |
| 276 | |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 277 | AM_CONDITIONAL(WITH_SYSTEMD_SUSPEND_RESUME, test "x$with_systemd_suspend_resume" = "xyes") |
Aleksander Morgado | a92b6f2 | 2015-01-15 11:53:03 +0100 | [diff] [blame] | 278 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 279 | dnl----------------------------------------------------------------------------- |
Torsten Hilbrich | fd0bed1 | 2017-06-21 12:59:35 +0200 | [diff] [blame] | 280 | dnl systemd journal support |
| 281 | dnl |
| 282 | |
| 283 | AC_ARG_WITH(systemd-journal, |
| 284 | AS_HELP_STRING([--with-systemd-journal=no|yes|auto], |
| 285 | [Enable systemd journal support [[default=auto]]]),, |
| 286 | [with_systemd_journal=auto]) |
| 287 | |
| 288 | if test "x$with_systemd_journal" = "xauto"; then |
| 289 | if test "x$have_libsystemd" = "xyes"; then |
| 290 | with_systemd_journal=yes |
| 291 | else |
| 292 | with_systemd_journal=no |
| 293 | fi |
| 294 | fi |
| 295 | |
| 296 | case $with_systemd_journal in |
Torsten Hilbrich | fd0bed1 | 2017-06-21 12:59:35 +0200 | [diff] [blame] | 297 | yes) |
| 298 | if test "x$have_libsystemd" = "xno"; then |
| 299 | AC_MSG_ERROR(libsystemd development headers are required) |
Aleksander Morgado | 3415555 | 2017-06-22 10:30:48 +0200 | [diff] [blame] | 300 | fi |
Torsten Hilbrich | fd0bed1 | 2017-06-21 12:59:35 +0200 | [diff] [blame] | 301 | AC_DEFINE(WITH_SYSTEMD_JOURNAL, 1, [Define if you want systemd journal support]) |
| 302 | ;; |
| 303 | *) |
Aleksander Morgado | 3415555 | 2017-06-22 10:30:48 +0200 | [diff] [blame] | 304 | with_systemd_journal=no |
Torsten Hilbrich | fd0bed1 | 2017-06-21 12:59:35 +0200 | [diff] [blame] | 305 | ;; |
| 306 | esac |
| 307 | |
| 308 | AM_CONDITIONAL(WITH_SYSTEMD_JOURNAL, test "x$with_systemd_journal" = "xyes") |
| 309 | |
| 310 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 311 | dnl PolicyKit |
| 312 | dnl |
| 313 | |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 314 | PKG_CHECK_MODULES(POLKIT, [polkit-gobject-1 >= 0.97], [have_polkit=yes],[have_polkit=no]) |
| 315 | AC_ARG_WITH(polkit, |
Aleksander Morgado | 0e5fdad | 2016-04-01 12:58:55 +0200 | [diff] [blame] | 316 | AS_HELP_STRING([--with-polkit=(strict|permissive|no)], |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 317 | [Enable PolicyKit support [[default=auto]]]),, |
| 318 | [with_polkit=auto]) |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 319 | |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 320 | if test "x$with_polkit" = "xauto"; then |
| 321 | if test "x$have_polkit" = "xno"; then |
Aleksander Morgado | 0e5fdad | 2016-04-01 12:58:55 +0200 | [diff] [blame] | 322 | with_polkit="no" |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 323 | else |
| 324 | with_polkit="strict" |
| 325 | fi |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 326 | elif test "x$with_polkit" = "xyes"; then |
| 327 | with_polkit=strict |
| 328 | fi |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 329 | |
Aleksander Morgado | 55c3f7d | 2019-09-25 13:23:42 +0200 | [diff] [blame] | 330 | MM_POLKIT_SERVICE="" |
Aleksander Morgado | acf36f2 | 2017-06-22 10:26:12 +0200 | [diff] [blame] | 331 | if test "x$with_polkit" != "xno"; then |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 332 | if test "x$have_polkit" = "xno"; then |
| 333 | AC_MSG_ERROR(PolicyKit development headers are required) |
| 334 | fi |
Dan Williams | 67d936e | 2010-09-01 17:20:57 -0500 | [diff] [blame] | 335 | |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 336 | case "x$with_polkit" in |
| 337 | "xpermissive") |
| 338 | MM_DEFAULT_USER_POLICY="yes" |
Aleksander Morgado | 55c3f7d | 2019-09-25 13:23:42 +0200 | [diff] [blame] | 339 | MM_POLKIT_SERVICE="polkit.service" |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 340 | ;; |
| 341 | "xstrict") |
| 342 | MM_DEFAULT_USER_POLICY="auth_self_keep" |
Aleksander Morgado | 55c3f7d | 2019-09-25 13:23:42 +0200 | [diff] [blame] | 343 | MM_POLKIT_SERVICE="polkit.service" |
Aleksander Morgado | 0c7265d | 2013-06-10 18:30:12 +0200 | [diff] [blame] | 344 | ;; |
| 345 | *) |
| 346 | AC_MSG_ERROR([Wrong value for --with-polkit: $with_polkit]) |
| 347 | ;; |
| 348 | esac |
| 349 | |
| 350 | AC_DEFINE(WITH_POLKIT, 1, [Define if you have PolicyKit support]) |
| 351 | AC_SUBST(POLKIT_CFLAGS) |
| 352 | AC_SUBST(POLKIT_LIBS) |
| 353 | AC_SUBST(MM_DEFAULT_USER_POLICY) |
| 354 | fi |
| 355 | |
Aleksander Morgado | 55c3f7d | 2019-09-25 13:23:42 +0200 | [diff] [blame] | 356 | AC_SUBST(MM_POLKIT_SERVICE) |
Aleksander Morgado | 0e5fdad | 2016-04-01 12:58:55 +0200 | [diff] [blame] | 357 | AM_CONDITIONAL(WITH_POLKIT, [test "x$with_polkit" != "xno"]) |
Dan Williams | 438a047 | 2010-02-26 18:01:55 -0800 | [diff] [blame] | 358 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 359 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | c78ba5e | 2019-06-01 10:23:15 +0200 | [diff] [blame] | 360 | dnl AT command via DBus support (disabled by default unless running in --debug) |
| 361 | dnl |
| 362 | dnl It is suggested that this option is only enabled in custom built systems and |
| 363 | dnl only if truly required. |
| 364 | dnl |
| 365 | |
| 366 | AC_ARG_WITH(at_command_via_dbus, |
| 367 | AS_HELP_STRING([--with-at-command-via-dbus], |
| 368 | [Build with Modem.Command() interface enabled always]), |
| 369 | [], |
| 370 | [with_at_command_via_dbus=no]) |
| 371 | |
| 372 | if test "x$with_at_command_via_dbus" = "xyes"; then |
| 373 | AC_DEFINE(WITH_AT_COMMAND_VIA_DBUS, 1, [Define if you want to enable AT commands via DBus]) |
| 374 | fi |
| 375 | |
| 376 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | 5b3392e | 2013-07-14 17:12:55 +0200 | [diff] [blame] | 377 | dnl MBIM support (enabled by default) |
Aleksander Morgado | dd5680d | 2013-04-06 19:23:14 +0200 | [diff] [blame] | 378 | dnl |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 379 | |
Aleksander Morgado | 54de419 | 2020-06-18 10:58:14 +0200 | [diff] [blame] | 380 | LIBMBIM_VERSION=1.24.0 |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 381 | |
Aleksander Morgado | 5b3392e | 2013-07-14 17:12:55 +0200 | [diff] [blame] | 382 | AC_ARG_WITH(mbim, AS_HELP_STRING([--without-mbim], [Build without MBIM support]), [], [with_mbim=yes]) |
| 383 | AM_CONDITIONAL(WITH_MBIM, test "x$with_mbim" = "xyes") |
| 384 | case $with_mbim in |
| 385 | yes) |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 386 | PKG_CHECK_MODULES(MBIM, [mbim-glib >= $LIBMBIM_VERSION], [have_mbim=yes],[have_mbim=no]) |
Aleksander Morgado | 5b3392e | 2013-07-14 17:12:55 +0200 | [diff] [blame] | 387 | if test "x$have_mbim" = "xno"; then |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 388 | AC_MSG_ERROR([Couldn't find libmbim-glib >= $LIBMBIM_VERSION. Install it, or otherwise configure using --without-mbim to disable MBIM support.]) |
Aleksander Morgado | 0e60d96 | 2013-04-17 15:34:23 +0200 | [diff] [blame] | 389 | else |
Aleksander Morgado | 5b3392e | 2013-07-14 17:12:55 +0200 | [diff] [blame] | 390 | AC_DEFINE(WITH_MBIM, 1, [Define if you want MBIM support]) |
| 391 | AC_SUBST(MBIM_CFLAGS) |
| 392 | AC_SUBST(MBIM_LIBS) |
Aleksander Morgado | 0e60d96 | 2013-04-17 15:34:23 +0200 | [diff] [blame] | 393 | fi |
Aleksander Morgado | 5b3392e | 2013-07-14 17:12:55 +0200 | [diff] [blame] | 394 | ;; |
| 395 | *) |
| 396 | with_mbim=no |
| 397 | ;; |
| 398 | esac |
Aleksander Morgado | dd5680d | 2013-04-06 19:23:14 +0200 | [diff] [blame] | 399 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 400 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | 4804c37 | 2012-09-05 19:51:18 +0200 | [diff] [blame] | 401 | dnl QMI support (enabled by default) |
Aleksander Morgado | dd5680d | 2013-04-06 19:23:14 +0200 | [diff] [blame] | 402 | dnl |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 403 | |
Aleksander Morgado | bbd3638 | 2021-02-23 11:22:18 +0100 | [diff] [blame] | 404 | LIBQMI_VERSION=1.28.0 |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 405 | |
Aleksander Morgado | 4804c37 | 2012-09-05 19:51:18 +0200 | [diff] [blame] | 406 | AC_ARG_WITH(qmi, AS_HELP_STRING([--without-qmi], [Build without QMI support]), [], [with_qmi=yes]) |
| 407 | AM_CONDITIONAL(WITH_QMI, test "x$with_qmi" = "xyes") |
| 408 | case $with_qmi in |
| 409 | yes) |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 410 | PKG_CHECK_MODULES(QMI, [qmi-glib >= $LIBQMI_VERSION], [have_qmi=yes],[have_qmi=no]) |
Aleksander Morgado | ac588e9 | 2013-07-14 17:04:26 +0200 | [diff] [blame] | 411 | if test "x$have_qmi" = "xno"; then |
Aleksander Morgado | 30cbf72 | 2015-10-25 15:41:08 +0100 | [diff] [blame] | 412 | AC_MSG_ERROR([Couldn't find libqmi-glib >= $LIBQMI_VERSION. Install it, or otherwise configure using --without-qmi to disable QMI support.]) |
Aleksander Morgado | ac588e9 | 2013-07-14 17:04:26 +0200 | [diff] [blame] | 413 | else |
| 414 | AC_DEFINE(WITH_QMI, 1, [Define if you want QMI support]) |
| 415 | AC_SUBST(QMI_CFLAGS) |
| 416 | AC_SUBST(QMI_LIBS) |
| 417 | fi |
Aleksander Morgado | 4804c37 | 2012-09-05 19:51:18 +0200 | [diff] [blame] | 418 | ;; |
| 419 | *) |
| 420 | with_qmi=no |
| 421 | ;; |
| 422 | esac |
| 423 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 424 | dnl----------------------------------------------------------------------------- |
Dan Williams | afebde4 | 2010-05-21 09:43:47 -0700 | [diff] [blame] | 425 | dnl Distribution version string |
| 426 | dnl |
| 427 | AC_ARG_WITH(dist-version, AS_HELP_STRING([--with-dist-version=<mm-dist-version>], [Define the custom version (like distribution package name and revision)]), ac_distver=$withval, ac_distver="") |
| 428 | if ! test x"$ac_distver" = x""; then |
| 429 | AC_DEFINE_UNQUOTED(MM_DIST_VERSION, "$ac_distver", [Define the distribution version string]) |
| 430 | fi |
| 431 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 432 | dnl----------------------------------------------------------------------------- |
| 433 | dnl Protocol libs |
| 434 | dnl |
| 435 | |
Dan Williams | 4fd6264 | 2012-01-27 15:13:42 -0600 | [diff] [blame] | 436 | AM_CONDITIONAL(QCDM_STANDALONE, test "yes" = "no") |
Dan Williams | 4fd6264 | 2012-01-27 15:13:42 -0600 | [diff] [blame] | 437 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 438 | dnl----------------------------------------------------------------------------- |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 439 | dnl Plugins |
| 440 | dnl |
| 441 | dnl By default all plugins are built and installed. If the user wants to build only |
| 442 | dnl some specific plugins, this can be done by disabling all first and then enabling |
| 443 | dnl only the ones required, e.g.: |
| 444 | dnl $ ./configure \ |
| 445 | dnl --disable-all-plugins \ |
| 446 | dnl --enable-plugin-generic \ |
| 447 | dnl --enable-plugin-zte ... |
| 448 | dnl |
| 449 | dnl If the user wants all plugins except for some specific ones, those can be |
| 450 | dnl explicitly disabled, e.g.: |
| 451 | dnl $ ./configure \ |
| 452 | dnl --disable-plugin-generic \ |
| 453 | dnl --disable-plugin-zte ... |
| 454 | dnl |
| 455 | |
| 456 | MM_ENABLE_ALL_PLUGINS |
| 457 | |
| 458 | MM_ENABLE_PLUGIN([generic]) |
| 459 | MM_ENABLE_PLUGIN([altair-lte]) |
| 460 | MM_ENABLE_PLUGIN([anydata]) |
Aleksander Morgado | 26b589c | 2020-05-10 10:36:47 +0200 | [diff] [blame] | 461 | MM_ENABLE_PLUGIN([broadmobi]) |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 462 | MM_ENABLE_PLUGIN([cinterion]) |
| 463 | MM_ENABLE_PLUGIN([dell], |
| 464 | [with_shared_sierra, |
| 465 | with_shared_novatel, |
| 466 | with_shared_xmm, |
| 467 | with_shared_telit, |
| 468 | with_shared_foxconn]) |
| 469 | MM_ENABLE_PLUGIN([dlink]) |
| 470 | MM_ENABLE_PLUGIN([fibocom], |
| 471 | [with_shared_xmm]) |
| 472 | MM_ENABLE_PLUGIN([foxconn], |
| 473 | [with_shared_foxconn]) |
Aleksander Morgado | 9397ed4 | 2020-09-18 10:52:06 +0200 | [diff] [blame] | 474 | MM_ENABLE_PLUGIN([gosuncn]) |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 475 | MM_ENABLE_PLUGIN([haier]) |
| 476 | MM_ENABLE_PLUGIN([huawei]) |
| 477 | MM_ENABLE_PLUGIN([iridium]) |
| 478 | MM_ENABLE_PLUGIN([linktop]) |
| 479 | MM_ENABLE_PLUGIN([longcheer]) |
| 480 | MM_ENABLE_PLUGIN([mbm]) |
| 481 | MM_ENABLE_PLUGIN([motorola]) |
| 482 | MM_ENABLE_PLUGIN([mtk]) |
| 483 | MM_ENABLE_PLUGIN([nokia]) |
| 484 | MM_ENABLE_PLUGIN([nokia-icera], |
| 485 | [with_shared_icera]) |
| 486 | MM_ENABLE_PLUGIN([novatel], |
| 487 | [with_shared_novatel]) |
| 488 | MM_ENABLE_PLUGIN([novatel-lte]) |
| 489 | MM_ENABLE_PLUGIN([option], |
| 490 | [with_shared_option]) |
| 491 | MM_ENABLE_PLUGIN([option-hso], |
| 492 | [with_shared_option]) |
| 493 | MM_ENABLE_PLUGIN([pantech]) |
Aleksander Morgado | 65560dd | 2020-11-19 12:00:34 +0100 | [diff] [blame] | 494 | MM_ENABLE_PLUGIN_DISABLED([qcom-soc]) |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 495 | MM_ENABLE_PLUGIN([quectel]) |
| 496 | MM_ENABLE_PLUGIN([samsung], |
| 497 | [with_shared_icera]) |
| 498 | MM_ENABLE_PLUGIN([sierra-legacy], |
| 499 | [with_shared_icera, |
| 500 | with_shared_sierra]) |
Aleksander Morgado | 28ad994 | 2020-08-10 19:26:56 +0200 | [diff] [blame] | 501 | MM_ENABLE_PLUGIN([sierra], |
| 502 | [with_shared_xmm]) |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 503 | MM_ENABLE_PLUGIN([simtech]) |
| 504 | MM_ENABLE_PLUGIN([telit], |
| 505 | [with_shared_telit]) |
| 506 | MM_ENABLE_PLUGIN([thuraya]) |
| 507 | MM_ENABLE_PLUGIN([tplink]) |
| 508 | MM_ENABLE_PLUGIN([ublox]) |
| 509 | MM_ENABLE_PLUGIN([via]) |
| 510 | MM_ENABLE_PLUGIN([wavecom]) |
| 511 | MM_ENABLE_PLUGIN([x22x]) |
| 512 | MM_ENABLE_PLUGIN([zte], |
| 513 | [with_shared_icera]) |
| 514 | |
| 515 | MM_BUILD_SHARED([icera]) |
| 516 | MM_BUILD_SHARED([sierra]) |
| 517 | MM_BUILD_SHARED([option]) |
| 518 | MM_BUILD_SHARED([novatel]) |
| 519 | MM_BUILD_SHARED([xmm]) |
| 520 | MM_BUILD_SHARED([telit]) |
| 521 | MM_BUILD_SHARED([foxconn]) |
| 522 | |
| 523 | dnl----------------------------------------------------------------------------- |
| 524 | dnl Output |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 525 | dnl |
| 526 | |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 527 | AC_CONFIG_FILES([ |
| 528 | Makefile |
Aleksander Morgado | 8d97538 | 2011-11-22 13:36:48 +0100 | [diff] [blame] | 529 | data/Makefile |
Aleksander Morgado | 6fa3f0b | 2012-05-24 09:59:00 +0200 | [diff] [blame] | 530 | data/ModemManager.pc |
Aleksander Morgado | 6fa3f0b | 2012-05-24 09:59:00 +0200 | [diff] [blame] | 531 | data/mm-glib.pc |
Aleksander Morgado | 46ff06f | 2013-11-22 10:11:36 +0100 | [diff] [blame] | 532 | data/tests/Makefile |
| 533 | data/tests/org.freedesktop.ModemManager1.service |
Aleksander Morgado | 365b906 | 2011-10-18 19:57:17 +0200 | [diff] [blame] | 534 | include/Makefile |
Aleksander Morgado | a43cecb | 2013-06-13 09:48:10 +0200 | [diff] [blame] | 535 | include/ModemManager-version.h |
Aleksander Morgado | 365b906 | 2011-10-18 19:57:17 +0200 | [diff] [blame] | 536 | build-aux/Makefile |
Dan Williams | 704d6e9 | 2010-02-08 09:13:17 -0800 | [diff] [blame] | 537 | libqcdm/Makefile |
| 538 | libqcdm/src/Makefile |
| 539 | libqcdm/tests/Makefile |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 540 | src/Makefile |
Dan Williams | 216e49f | 2010-01-05 14:29:19 -0600 | [diff] [blame] | 541 | src/tests/Makefile |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 542 | plugins/Makefile |
Tambet Ingo | f0a2dc6 | 2008-07-31 14:03:37 +0300 | [diff] [blame] | 543 | test/Makefile |
Frederic Martinsons | 519df25 | 2020-11-10 16:48:22 +0100 | [diff] [blame] | 544 | tools/Makefile |
Frederic Martinsons | 89cd169 | 2020-11-12 10:48:11 +0100 | [diff] [blame] | 545 | tools/tests/Makefile |
| 546 | tools/tests/services/org.freedesktop.ModemManager1.service |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 547 | introspection/Makefile |
Aleksander Morgado | 1eaa416 | 2013-11-22 09:24:07 +0100 | [diff] [blame] | 548 | introspection/tests/Makefile |
Dan Williams | 9c958c9 | 2010-02-16 11:03:16 -0800 | [diff] [blame] | 549 | po/Makefile.in |
Aleksander Morgado | 09f40c8 | 2011-11-22 11:33:35 +0100 | [diff] [blame] | 550 | docs/Makefile |
Aleksander Morgado | 3b976c4 | 2011-11-22 12:17:12 +0100 | [diff] [blame] | 551 | docs/man/Makefile |
Aleksander Morgado | 09f40c8 | 2011-11-22 11:33:35 +0100 | [diff] [blame] | 552 | docs/reference/Makefile |
| 553 | docs/reference/api/Makefile |
| 554 | docs/reference/api/version.xml |
Aleksander Morgado | ca14de0 | 2012-10-01 14:08:40 +0200 | [diff] [blame] | 555 | docs/reference/libmm-glib/Makefile |
| 556 | docs/reference/libmm-glib/version.xml |
Aleksander Morgado | ba0e4ca | 2011-10-26 21:08:21 +0200 | [diff] [blame] | 557 | libmm-glib/Makefile |
Aleksander Morgado | b6d628b | 2012-10-02 15:08:46 +0200 | [diff] [blame] | 558 | libmm-glib/generated/Makefile |
Aleksander Morgado | 4827e79 | 2013-11-22 09:25:21 +0100 | [diff] [blame] | 559 | libmm-glib/generated/tests/Makefile |
Aleksander Morgado | b6d628b | 2012-10-02 15:08:46 +0200 | [diff] [blame] | 560 | libmm-glib/tests/Makefile |
Christian Persch | bfae863 | 2013-08-06 23:12:26 +0200 | [diff] [blame] | 561 | vapi/Makefile |
Aleksander Morgado | 8f450d8 | 2011-08-17 18:14:26 +0200 | [diff] [blame] | 562 | cli/Makefile |
Aleksander Morgado | ebff76c | 2014-04-10 19:05:13 +0200 | [diff] [blame] | 563 | examples/Makefile |
| 564 | examples/modem-watcher-python/Makefile |
Aleksander Morgado | ae99c45 | 2014-04-11 09:27:51 +0200 | [diff] [blame] | 565 | examples/modem-watcher-javascript/Makefile |
Aleksander Morgado | 24fd3ef | 2016-07-25 10:36:42 +0200 | [diff] [blame] | 566 | examples/sms-python/Makefile |
Aleksander Morgado | 248cd55 | 2019-12-13 15:38:33 +0100 | [diff] [blame] | 567 | examples/network-scan-python/Makefile |
Tambet Ingo | cc31458 | 2008-07-31 09:43:00 +0300 | [diff] [blame] | 568 | ]) |
| 569 | AC_OUTPUT |
Dan Williams | 71cbcb8 | 2009-12-21 11:18:38 -0800 | [diff] [blame] | 570 | |
Aleksander Morgado | 7e0f016 | 2011-10-11 15:13:04 +0200 | [diff] [blame] | 571 | echo " |
| 572 | ModemManager $VERSION |
| 573 | ============================================== |
| 574 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 575 | Build: |
| 576 | compiler: ${CC} |
| 577 | cflags: ${CFLAGS} |
| 578 | ldflags: ${LDFLAGS} |
Aleksander Morgado | 1c07853 | 2019-11-19 11:06:43 +0100 | [diff] [blame] | 579 | warn cflags: ${WARN_CFLAGS} |
| 580 | warn ldflags: ${WARN_LDFLAGS} |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 581 | maintainer mode: ${USE_MAINTAINER_MODE} |
Aleksander Morgado | 1c07853 | 2019-11-19 11:06:43 +0100 | [diff] [blame] | 582 | release: ${ax_is_release} |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 583 | |
| 584 | System paths: |
| 585 | prefix: ${prefix} |
| 586 | D-Bus system directory: ${DBUS_SYS_DIR} |
| 587 | udev base directory: ${UDEV_BASE_DIR} |
| 588 | systemd unit directory: ${with_systemdsystemunitdir} |
| 589 | |
| 590 | Features: |
Aleksander Morgado | 4d6896f | 2017-06-22 10:51:40 +0200 | [diff] [blame] | 591 | udev: ${with_udev} |
| 592 | policykit: ${with_polkit} |
| 593 | mbim: ${with_mbim} |
| 594 | qmi: ${with_qmi} |
| 595 | systemd suspend/resume: ${with_systemd_suspend_resume} |
| 596 | systemd journal: ${with_systemd_journal} |
Aleksander Morgado | c78ba5e | 2019-06-01 10:23:15 +0200 | [diff] [blame] | 597 | at command via dbus: ${with_at_command_via_dbus} |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 598 | |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 599 | Shared utils: |
| 600 | icera: ${with_shared_icera} |
| 601 | sierra: ${with_shared_sierra} |
| 602 | option: ${with_shared_option} |
| 603 | novatel: ${with_shared_novatel} |
| 604 | xmm: ${with_shared_xmm} |
| 605 | telit: ${with_shared_telit} |
| 606 | foxconn: ${with_shared_foxconn} |
| 607 | |
| 608 | Plugins: |
| 609 | generic: ${enable_plugin_generic} |
| 610 | altair lte: ${enable_plugin_altair_lte} |
| 611 | anydata: ${enable_plugin_anydata} |
Aleksander Morgado | 26b589c | 2020-05-10 10:36:47 +0200 | [diff] [blame] | 612 | broadmobi: ${enable_plugin_broadmobi} |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 613 | cinterion: ${enable_plugin_cinterion} |
| 614 | dell: ${enable_plugin_dell} |
| 615 | dlink: ${enable_plugin_dlink} |
| 616 | fibocom: ${enable_plugin_fibocom} |
| 617 | foxconn: ${enable_plugin_foxconn} |
Aleksander Morgado | 9397ed4 | 2020-09-18 10:52:06 +0200 | [diff] [blame] | 618 | gosuncn: ${enable_plugin_gosuncn} |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 619 | haier: ${enable_plugin_haier} |
| 620 | huawei: ${enable_plugin_huawei} |
| 621 | iridium: ${enable_plugin_iridium} |
| 622 | linktop: ${enable_plugin_linktop} |
| 623 | longcheer: ${enable_plugin_longcheer} |
| 624 | mbm: ${enable_plugin_mbm} |
| 625 | motorola: ${enable_plugin_motorola} |
| 626 | mtk: ${enable_plugin_mtk} |
| 627 | nokia: ${enable_plugin_nokia} |
| 628 | nokia icera: ${enable_plugin_nokia_icera} |
| 629 | novatel: ${enable_plugin_novatel} |
| 630 | novatel lte: ${enable_plugin_novatel_lte} |
| 631 | option: ${enable_plugin_option} |
| 632 | option hso: ${enable_plugin_option_hso} |
| 633 | pantech: ${enable_plugin_pantech} |
Aleksander Morgado | 8fc6075 | 2020-10-22 12:48:35 +0200 | [diff] [blame] | 634 | qcom-soc: ${enable_plugin_qcom_soc} |
Aleksander Morgado | 0908007 | 2019-11-21 18:28:51 +0100 | [diff] [blame] | 635 | quectel: ${enable_plugin_quectel} |
| 636 | samsung: ${enable_plugin_samsung} |
| 637 | sierra legacy: ${enable_plugin_sierra_legacy} |
| 638 | sierra: ${enable_plugin_sierra} |
| 639 | simtech: ${enable_plugin_simtech} |
| 640 | telit: ${enable_plugin_telit} |
| 641 | thuraya: ${enable_plugin_thuraya} |
| 642 | tplink: ${enable_plugin_tplink} |
| 643 | ublox: ${enable_plugin_ublox} |
| 644 | via: ${enable_plugin_via} |
| 645 | wavecom: ${enable_plugin_wavecom} |
| 646 | x22x: ${enable_plugin_x22x} |
| 647 | zte: ${enable_plugin_zte} |
| 648 | |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 649 | Miscellaneous: |
| 650 | gobject introspection: ${found_introspection} |
| 651 | vala bindings: ${enable_vala} |
| 652 | documentation: ${enable_gtk_doc} |
| 653 | code coverage: ${CODE_COVERAGE_ENABLED}" |
Jakub Sitnicki | 7552030 | 2015-01-11 15:07:22 +0100 | [diff] [blame] | 654 | if test "x${CODE_COVERAGE_ENABLED}" = "xyes"; then |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 655 | echo " code coverage cflags: ${CODE_COVERAGE_CFLAGS}" |
| 656 | echo " code coverage ldflags: ${CODE_COVERAGE_LDFLAGS}" |
Jakub Sitnicki | 7552030 | 2015-01-11 15:07:22 +0100 | [diff] [blame] | 657 | fi |
Aleksander Morgado | de9446e | 2015-02-20 10:14:58 +0100 | [diff] [blame] | 658 | echo "" |