[svn] commit: r403 - in /branches/jinmei-dnsmessageapi: configure.ac src/lib/dns/cpp/buffer.h src/lib/dns/cpp/name.cc src/lib/dns/cpp/name.h

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Dec 23 19:32:48 UTC 2009


Author: jelte
Date: Wed Dec 23 19:32:47 2009
New Revision: 403

Log:
added a few includes to make it work on my system, please check
also added a default path for --with-gtest (which should probably be extended to try from a list of default paths)

Modified:
    branches/jinmei-dnsmessageapi/configure.ac
    branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h
    branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc
    branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h

Modified: branches/jinmei-dnsmessageapi/configure.ac
==============================================================================
--- branches/jinmei-dnsmessageapi/configure.ac (original)
+++ branches/jinmei-dnsmessageapi/configure.ac Wed Dec 23 19:32:47 2009
@@ -43,9 +43,17 @@
     gtest_path="$withval", gtest_path="no")
 if test "$gtest_path" != "no"
 then
-	GTEST_INCLUDES="-I${gtest_path}/include"
-	GTEST_LDFLAGS="-L${gtest_path}/lib"
-	GTEST_LDADD="-lgtest"
+	if test "$gtest_path" != "yes"
+	then
+		GTEST_INCLUDES="-I${gtest_path}/include"
+		GTEST_LDFLAGS="-L${gtest_path}/lib"
+		GTEST_LDADD="-lgtest"
+	else
+		# todo: check for default paths (/usr and /usr/local?)
+		GTEST_INCLUDE="-I/usr/include"
+		GTEST_LDFLAGS="-L/usr/lib"
+		GTEST_LDADD="-lgtest"
+	fi
 else
 	GTEST_INCLUDES=
 	GTEST_LDFLAGS=

Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h Wed Dec 23 19:32:47 2009
@@ -19,6 +19,10 @@
 
 #include <vector>
 
+#include <string.h>
+
+#include <stdint.h>
+
 #include "exceptions.h"
 
 namespace isc {

Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc Wed Dec 23 19:32:47 2009
@@ -18,6 +18,8 @@
 #include <cassert>
 #include <iterator>
 #include <functional>
+
+#include <algorithm>
 
 #include "buffer.h"
 #include "name.h"

Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h Wed Dec 23 19:32:47 2009
@@ -16,6 +16,8 @@
 
 #ifndef __NAME_H
 #define __NAME_H 1
+
+#include <stdint.h>
 
 #include <string>
 #include <vector>




More information about the bind10-changes mailing list