]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Put DNSDIST or RECURSOR in CPPFLAGS rather than in config.h.
authorMiod Vallat <miod.vallat@powerdns.com>
Mon, 31 Mar 2025 06:33:57 +0000 (08:33 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 31 Mar 2025 06:33:57 +0000 (08:33 +0200)
This matches what the meson build does.

pdns/dnsdistdist/configure.ac
pdns/recursordist/configure.ac

index 6ef1e13668c6923e3ed8c181489a5275c2db12fd..4052a1ef52b6226e35812617532bcd5183f59300 100644 (file)
@@ -9,9 +9,7 @@ AC_PROG_CC
 AC_PROG_CXX
 AC_LANG([C++])
 
-AC_DEFINE([DNSDIST], [1],
-  [This is dnsdist]
-)
+CPPFLAGS="-DDNSDIST $CPPFLAGS"
 
 # Warn when pkg.m4 is missing
 m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config])
index db7d3cfbb20a847b99bc96d819ef54cb80352b6d..983e77d2d89e1931ba059a5db99b3c56a9788b31 100644 (file)
@@ -27,9 +27,7 @@ AC_LANG([C++])
 
 PDNS_CHECK_TIME_T
 
-AC_DEFINE([RECURSOR], [1],
-  [This is the PowerDNS Recursor]
-)
+CPPFLAGS="-DRECURSOR $CPPFLAGS"
 
 # Warn when pkg.m4 is missing
 m4_pattern_forbid([^_?PKG_[A-Z_]+$], [*** pkg.m4 missing, please install pkg-config])