diff options
| author | Roy Marples <roy@marples.name> | 2016-09-19 09:08:11 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-19 09:08:11 +0000 |
| commit | e5fc8ac453a34770a7b37c2c3d965aa6dc6c9eb3 (patch) | |
| tree | da2db2fbf2564c833686e8a7f008b9b833b92f72 /configure | |
| parent | a8c0412dbefb1913ca3c12c3fc9b6e145e6a3ae3 (diff) | |
| download | dhcpcd-e5fc8ac453a34770a7b37c2c3d965aa6dc6c9eb3.tar.xz | |
Allow dhcpcd to be built without Authentiction support for system media with
extreme size constraints.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |
