summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-15 22:04:37 +0100
committerRoy Marples <roy@marples.name>2020-06-15 22:04:37 +0100
commite28fb1bab09b0cfb230f6645d3f790793fb8b5f3 (patch)
tree900bd39c60ce126ca229b92bccf7b63d42359d7c /configure
parent7e72376a6ff59617344e13a0547171ec4175dd16 (diff)
downloaddhcpcd-e28fb1bab09b0cfb230f6645d3f790793fb8b5f3.tar.xz
configure: Fix fallout with disabling embedded config
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 10 insertions, 9 deletions
diff --git a/configure b/configure
index 8398ad69..a3701726 100755
--- a/configure
+++ b/configure
@@ -545,15 +545,6 @@ if [ -z "$AUTH" -o "$AUTH" = yes ]; then
echo "SRCS+= auth.c" >>$CONFIG_MK
fi
-if [ -z "$EMBEDDED" -o "$EMBEDDED" = yes ]; then
- echo "$DHCPCD_DEFS will be embedded in dhcpcd itself"
- echo "DHCPCD_SRCS+= dhcpcd-embedded.c" >>$CONFIG_MK
-else
- echo "$DHCPCD_DEFS will be installed to $LIBEXECDIR"
- echo "CPPFLAGS+= -DEMBEDDED_CONFIG=\\\"$LIBEXECDIR/dhcpcd-definitions.conf\\\"" >>$CONFIG_MK
- echo "EMBEDDEDINSTALL= _embeddedinstall" >>$CONFIG_MK
-fi
-
if [ -z "$PRIVSEP" ]; then
# privilege separation works fine .... except on Solaris
case "$OS" in
@@ -665,6 +656,16 @@ EOF
rm -f _pledge.c _pledge
fi
+# This block needs to be after the compiler test due to embedded quotes.
+if [ -z "$EMBEDDED" -o "$EMBEDDED" = yes ]; then
+ echo "$DHCPCD_DEFS will be embedded in dhcpcd itself"
+ echo "DHCPCD_SRCS+= dhcpcd-embedded.c" >>$CONFIG_MK
+else
+ echo "$DHCPCD_DEFS will be installed to $LIBEXECDIR"
+ echo "CPPFLAGS+= -DEMBEDDED_CONFIG=\\\"$LIBEXECDIR/dhcpcd-definitions.conf\\\"" >>$CONFIG_MK
+ echo "EMBEDDEDINSTALL= _embeddedinstall" >>$CONFIG_MK
+fi
+
if [ "$OS" = linux ]; then
printf "Testing for nl80211 ... "
cat <<EOF >_nl80211.c