diff options
| author | Roy Marples <roy@marples.name> | 2016-09-27 10:17:39 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-27 10:17:39 +0000 |
| commit | 6a765a4ffd2229ccca9d5b9972c618a72ead9eaf (patch) | |
| tree | 7d591e6c4387d3bd1d6a58a9147c48a0f13518a2 /configure | |
| parent | 44d5340730cedaa4d1901c2e4ea9669cdedea945 (diff) | |
| download | dhcpcd-6a765a4ffd2229ccca9d5b9972c618a72ead9eaf.tar.xz | |
Allow DHCPv6 support to be compiled out.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 25 |
1 files changed, 17 insertions, 8 deletions
@@ -50,6 +50,8 @@ for x do --enable-ipv4ll) IPV4LL=yes; INET=yes;; --disable-ipv6) INET6=no;; --enable-ipv6) INET6=yes;; + --disable-dhcp6) DHCP6=no;; + --enable-dhcp6) DHCP6=yes;; --disable-embedded) EMBEDDED=no;; --enable-embedded) EMBEDDED=yes;; --disable-auth) AUTH=no;; @@ -440,16 +442,30 @@ sunos*) esac if [ -z "$INET" -o "$INET" = yes ]; then + echo "Enabling INET support" echo "CPPFLAGS+= -DINET" >>$CONFIG_MK echo "DHCPCD_SRCS+= arp.c dhcp.c ipv4.c" >>$CONFIG_MK fi if [ -z "$IPV4LL" -o "$IPV4LL" = yes ]; then + echo "Enabling IPv4LL support" echo "CPPFLAGS+= -DIPV4LL" >>$CONFIG_MK echo "DHCPCD_SRCS+= ipv4ll.c" >>$CONFIG_MK fi if [ -z "$INET6" -o "$INET6" = yes ]; then + echo "Enabling INET6 support" echo "CPPFLAGS+= -DINET6" >>$CONFIG_MK - echo "DHCPCD_SRCS+= ipv6.c ipv6nd.c dhcp6.c" >>$CONFIG_MK + echo "DHCPCD_SRCS+= ipv6.c ipv6nd.c" >>$CONFIG_MK +fi +if [ -z "$DHCP6" -o "$DHCP6" = yes ]; then + echo "Enabling DHCPv6 support" + echo "CPPFLAGS+= -DDHCP6" >>$CONFIG_MK + echo "DHCPCD_SRCS+= dhcp6.c" >>$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 echo "Using compiler .. $CC" @@ -490,13 +506,6 @@ 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 |
