move the OSX source selection support changes to configure, thanks Justin Clift
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 8 Oct 2012 06:07:12 +0000 (06:07 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 8 Oct 2012 06:07:12 +0000 (06:07 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2781 d19b8d6e-7fed-0310-83ef-9ca221ded41b

configure.ac
pdns/nameserver.cc

index 99fba7bcdc3033f4829d09e7ee8bcdae76e6b5b7..f4cb16c88e3604023600adda82c8823d30d14477 100644 (file)
@@ -146,6 +146,12 @@ linux*)
        THREADFLAGS="-pthread"
        CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS"
        ;;
+darwin11* | darwin12*)
+       AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6])
+       DYNLINKFLAGS="-rdynamic"
+       LDFLAGS="-pthread $LDFLAGS"
+       CXXFLAGS="-pthread $CXXFLAGS -D__APPLE_USE_RFC_3542"
+       ;;
 *)
        AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6])
        DYNLINKFLAGS="-rdynamic"
index 5d2ab0315d004934a777652ef96a3565a9d02a57..60195b3f48b93d828e92b7e7d7ea552e1aeb5de6 100644 (file)
@@ -14,7 +14,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
-#define __APPLE_USE_RFC_3542  // makes OSX do source selection / destination querying
+
 #include "utility.hh"
 #include <cstdio>
 #include <cstring>