[static=no],
)
AC_MSG_RESULT([$static])
-AS_IF([test "x$static" != "xno"],
- [LDFLAGS="-all-static $LDFLAGS"]
-)
+AS_IF([test "x$static" != "xno"], [
+ LDFLAGS="-all-static $LDFLAGS"
+ AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+ PKG_CONFIG="$PKG_CONFIG --static"
+])
modules="bind gmysql geo random"
AC_ARG_WITH([modules],
if BOTAN110
pdns_server_SOURCES += botan110signers.cc botansigners.cc
-pdns_server_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
+pdns_server_LDADD += $(BOTAN110_LIBS)
endif
if BOTAN18
pdns_server_SOURCES += botan18signers.cc botansigners.cc
-pdns_server_LDADD += $(BOTAN18_LIBS) -lgmp
+pdns_server_LDADD += $(BOTAN18_LIBS)
endif
if CRYPTOPP
if BOTAN110
pdnssec_SOURCES += botan110signers.cc botansigners.cc
-pdnssec_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
+pdnssec_LDADD += $(BOTAN110_LIBS)
endif
if BOTAN18
pdnssec_SOURCES += botan18signers.cc botansigners.cc
-pdnssec_LDADD += $(BOTAN18_LIBS) -lgmp
+pdnssec_LDADD += $(BOTAN18_LIBS)
endif
if CRYPTOPP