Permalink
Browse files

Link with libxnet on HP-UX

Change-Id: I4c9279613e30d852fa9a82f6b41395eca6d9d027
Reviewed-on: http://review.couchbase.org/24539
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Yury Alioshinov <haster2010@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent 8ce2b18 commit e7ee3a72242a245dfbb96d89978dce935c3e7310 @avsej avsej committed with trondn Feb 12, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 configure.ac
View
@@ -514,6 +514,12 @@ AM_CONDITIONAL(HAVE_GOOGLETEST_SRC, [test "$ac_cv_have_gtest_src" = "yes"])
AM_CONDITIONAL(HAVE_GOOGLETEST, [test "$ac_cv_have_gtest" = "yes" -o \
"$ac_cv_have_gtest_src" = "yes"])
+# On HP-UX we need to link libxnet(3lib)
+AC_CHECK_DECL([__hpux])
+AS_IF([test "x$ac_cv_have_decl___hpux" = "xyes"],
+ [AC_CHECK_LIB(xnet, t_error, ,
+ AC_MSG_ERROR([*** -lxnet needed on HP-UX ***]))])
+
#
# SystemTap and DTrace support
#

0 comments on commit e7ee3a7

Please sign in to comment.