Add check for pppd binary and header files
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 31 Dec 2008 18:30:32 +0000 (19:30 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 31 Dec 2008 18:30:32 +0000 (19:30 +0100)
configure.ac

index 42789a7..a22b82a 100644 (file)
@@ -47,6 +47,10 @@ AC_PATH_PROG(UDHCPC, [udhcpc], ,$PATH:/sbin:/usr/sbin)
 AC_PATH_PROG(DHCLIENT, [dhclient], ,$PATH:/sbin:/usr/sbin)
 AC_PATH_PROG(RESOLVCONF, [resolvconf], ,$PATH:/sbin:/usr/sbin)
 AC_PATH_PROG(WPASUPPLICANT, [wpa_supplicant], ,$PATH:/sbin:/usr/sbin)
+AC_PATH_PROG(PPPD, [pppd], ,$PATH:/sbin:/usr/sbin)
+
+AC_CHECK_HEADERS(pppd/pppd.h, pppd_found=no, pppd_found=yes)
+AM_CONDITIONAL(PPPD, test "${pppd_found}" = "yes")
 
 AC_CHECK_LIB(dl, dlopen, dummy=yes,
                        AC_MSG_ERROR(dynamic linking loader is required))