mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 22:20:08 +01:00
add libteamdctl for configure.ac
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
This commit is contained in:
parent
861e5148d8
commit
2ba2390a82
1 changed files with 20 additions and 0 deletions
20
configure.ac
20
configure.ac
|
|
@ -366,6 +366,25 @@ else
|
|||
fi
|
||||
AM_CONDITIONAL(WITH_WIMAX, test "${enable_wimax}" = "yes")
|
||||
|
||||
# Teamd control checks
|
||||
PKG_CHECK_MODULES(LIBTEAMDCTL, [libteamdctl], [have_teamdctl=yes],[have_teamdctl=no])
|
||||
AC_ARG_ENABLE(teamdctl, AS_HELP_STRING([--enable-teamdctl], [enable Teamd control support]),
|
||||
[enable_teamdctl=${enableval}], [enable_teamdctl=${have_teamdctl}])
|
||||
if (test "${enable_teamdctl}" = "yes"); then
|
||||
if test x"$have_teamdctl" = x"no"; then
|
||||
AC_MSG_ERROR(Teamd control is required)
|
||||
fi
|
||||
|
||||
AC_SUBST(LIBTEAMDCTL_CFLAGS)
|
||||
AC_SUBST(LIBTEAMDCTL_LIBS)
|
||||
# temporary bug workaround
|
||||
LIBTEAMDCTL_CFLAGS=`echo $LIBTEAMDCTL_CFLAGS | sed -e 's:/teamdctl.h::'`
|
||||
AC_DEFINE(WITH_TEAMDCTL, 1, [Define if you have Teamd control support])
|
||||
else
|
||||
AC_DEFINE(WITH_TEAMDCTL, 0, [Define if you have Teamd control support])
|
||||
fi
|
||||
AM_CONDITIONAL(WITH_TEAMDCTL, test "${enable_teamdctl}" = "yes")
|
||||
|
||||
PKG_CHECK_MODULES(POLKIT, [polkit-gobject-1 >= 0.97], [have_polkit=yes],[have_polkit=no])
|
||||
AC_ARG_ENABLE(polkit, AS_HELP_STRING([--enable-polkit], [enable PolicyKit support]),
|
||||
[enable_polkit=${enableval}], [enable_polkit=${have_polkit}])
|
||||
|
|
@ -792,6 +811,7 @@ echo " ppp: $enable_ppp"
|
|||
echo " modemmanager-1: $with_modem_manager_1"
|
||||
echo " concheck: $enable_concheck"
|
||||
echo " libndp: $libndp_location"
|
||||
echo " libteamdctl: $enable_teamdctl"
|
||||
echo
|
||||
|
||||
echo "Configuration plugins"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue