summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-04-13 16:45:52 +0000
committerRoy Marples <roy@marples.name>2016-04-13 16:45:52 +0000
commitbb808ae016c949ebd8026da584e809563ff21e57 (patch)
treee387b6e124815c15575e32b02abc48af78de4709 /configure
parent63df14b4d9092fe99f122b168c7c82f3a82391d0 (diff)
downloaddhcpcd-bb808ae016c949ebd8026da584e809563ff21e57.tar.xz
Set -DHAVE_CONFIG_H after it's blanked on user config. Fixes [ceb1077c23].
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 60548c2d..955b87b9 100755
--- a/configure
+++ b/configure
@@ -236,7 +236,6 @@ fi
echo "Configuring dhcpcd for ... $OS"
rm -f $CONFIG_H $CONFIG_MK
echo "# $OS" >$CONFIG_MK
-echo "CPPFLAGS+= -DHAVE_CONFIG_H" >>$CONFIG_MK
echo "/* $OS */" >$CONFIG_H
for x in SYSCONFDIR SBINDIR LIBDIR LIBEXECDIR DBDIR RUNDIR; do
@@ -296,6 +295,8 @@ if [ -n "$LDFLAGS" ]; then
echo "LDFLAGS+= $LDFLAGS" >>$CONFIG_MK
fi
+echo "CPPFLAGS+= -DHAVE_CONFIG_H" >>$CONFIG_MK
+
# NetBSD: Even if we build for $PREFIX, the clueless user might move us to /
LDELF=/libexec/ld.elf_so
if [ -e "$LDELF" ]; then