]> granicus.if.org Git - pdns/commitdiff
Check for inet_aton in libresolv
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 2 Jan 2015 18:53:46 +0000 (19:53 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 2 Jan 2015 18:53:46 +0000 (19:53 +0100)
configure.ac

index daad9ad65ba68423cbf0b9d712ee8be6b80a109c..8234cf30fe550b8a88341ed0e6d80d7860520c13 100644 (file)
@@ -47,6 +47,10 @@ AC_CHECK_FUNC([gethostent], [], [
  AC_CHECK_LIB([nsl], [gethostent], [LIBS="-lnsl $LIBS"])
 ])
 
+AC_CHECK_FUNC([inet_aton], [], [
+ AC_CHECK_LIB([resolv], [inet_aton], [LIBS="-lresolv $LIBS"])
+])
+
 m4_ifndef([LT_INIT],[
 AC_PROG_LIBTOOL([disable-static])
 ],[