AC_PREFIX_DEFAULT(/usr/local)
-if (test "${CFLAGS}" = ""); then
- CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
-fi
+COMPILER_FLAGS
AC_LANG_C
[enable compiling with debugging information]), [
if (test "${enableval}" = "yes" &&
test "${ac_cv_prog_cc_g}" = "yes"); then
- CFLAGS="$CFLAGS -g -O0 -Werror"
+ CFLAGS="$CFLAGS -g -O0"
fi
])
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))