mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 06:10:29 +01:00
* Added autoconf macros to check for the existance and version of pppd
* Test that headers exist for the version found and explain what is
missing if they cannot be found.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1928 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
5bf591af74
commit
26885bb340
1 changed files with 18 additions and 0 deletions
|
|
@ -14,6 +14,23 @@ AC_PROG_CC
|
|||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LIBTOOL
|
||||
AC_CHECK_PROG(PPPD,pppd,pppd)
|
||||
if test "z$PPPD" = "z"; then
|
||||
AC_MSG_ERROR(Cannot compile without pppd)
|
||||
fi
|
||||
##### Find out the version of PPPD we're using
|
||||
PPPD_VERSION=`$PPPD --version 2>&1 | awk '{print $3}'`
|
||||
if test "z$PPPD_VERSION" = "z"; then
|
||||
AC_MSG_ERROR(Couldn't determine the version of your pppd package.)
|
||||
fi
|
||||
if test -d "src/pppd/$PPPD_VERSION"; then
|
||||
AC_MSG_RESULT(Found pppd version $PPPD_VERSION)
|
||||
else
|
||||
AC_MSG_ERROR(pppd version $PPPD_VERSION is not supported by the build tools:
|
||||
the headers need to be added in src/pppd/$PPPD_VERSION and the version added to this test in configure.in)
|
||||
fi
|
||||
AC_SUBST(PPPD_VERSION)
|
||||
|
||||
|
||||
dnl
|
||||
dnl Required headers
|
||||
|
|
@ -81,6 +98,7 @@ PKG_CHECK_MODULES(GNOMEKEYRING, gnome-keyring-1)
|
|||
AC_SUBST(GNOMEKEYRING_CFLAGS)
|
||||
AC_SUBST(GNOMEKEYRING_LIBS)
|
||||
|
||||
|
||||
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
|
||||
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
|
||||
AS_AC_EXPAND(DATADIR, $datadir)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue