summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-19 09:08:11 +0000
committerRoy Marples <roy@marples.name>2016-09-19 09:08:11 +0000
commite5fc8ac453a34770a7b37c2c3d965aa6dc6c9eb3 (patch)
treeda2db2fbf2564c833686e8a7f008b9b833b92f72 /configure
parenta8c0412dbefb1913ca3c12c3fc9b6e145e6a3ae3 (diff)
downloaddhcpcd-e5fc8ac453a34770a7b37c2c3d965aa6dc6c9eb3.tar.xz
Allow dhcpcd to be built without Authentiction support for system media with
extreme size constraints.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index c5b8a218..4b43f3c5 100755
--- a/configure
+++ b/configure
@@ -23,6 +23,7 @@ FORK=
STATIC=
DEVS=
EMBEDDED=
+AUTH=
POLL=
SMALL=
STATUSARG=
@@ -48,6 +49,8 @@ for x do
--enable-ipv6) INET6=yes;;
--disable-embedded) EMBEDDED=no;;
--enable-embedded) EMBEDDED=yes;;
+ --disable-auth) AUTH=no;;
+ --enable-auth) AUTH=yes;;
--prefix) PREFIX=$var;;
--sysconfdir) SYSCONFDIR=$var;;
--bindir|--sbindir) SBINDIR=$var;;
@@ -480,6 +483,13 @@ else
echo "EMBEDDEDINSTALL= _embeddedinstall" >>$CONFIG_MK
fi
+if [ -z "$AUTH" -o "$AUTH" = yes ]; then
+ echo "Enabling Authentiaction"
+ echo "CPPFLAGS+= -DAUTH" >>$CONFIG_MK
+ echo "AUTH_SRCS= auth.c crypt/hmac_md5.c" >>$CONFIG_MK
+ echo "AUTH_SRCS+= \${MD5_SRC} \${SHA256_SRC}" >>$CONFIG_MK
+fi
+
if [ "$OS" = linux ]; then
printf "Testing for nl80211 ... "
cat <<EOF >_nl80211.c