qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r674493 - /incubator/qpid/trunk/qpid/cpp/configure.ac
Date Mon, 07 Jul 2008 14:01:15 GMT
Author: aconway
Date: Mon Jul  7 07:01:14 2008
New Revision: 674493

URL: http://svn.apache.org/viewvc?rev=674493&view=rev
Log:
configure.ac: check for cpg_local_get to exclude older CPG versions.

Modified:
    incubator/qpid/trunk/qpid/cpp/configure.ac

Modified: incubator/qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/configure.ac?rev=674493&r1=674492&r2=674493&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/configure.ac (original)
+++ incubator/qpid/trunk/qpid/cpp/configure.ac Mon Jul  7 07:01:14 2008
@@ -155,18 +155,16 @@
   [case "${withval}" in
     yes)			# yes - enable
     with_CPG=yes
-    AC_CHECK_LIB([cpg],[cpg_initialize],,[AC_MSG_ERROR([libcpg not found, install openais])])
+    AC_CHECK_LIB([cpg],[cpg_local_get],,[AC_MSG_ERROR([libcpg not found, install openais])])
     AC_CHECK_HEADERS([openais/cpg.h],,[AC_MSG_ERROR([openais/cpg.h not found, install openais-devel])])
     ;;
-    no)				# no -disable
-    with_CPG=no
-    ;; 
+    no) with_CPG=no ;; 
     *) AC_MSG_ERROR([Bad value ${withval} for --with-cpg option]) ;;
    esac],
    [		   # not specified - enable if libs/headers available.
     with_CPG=yes
+    AC_CHECK_LIB([cpg],[cpg_local_get],,[with_CPG=no])
     AC_CHECK_HEADERS([openais/cpg.h],,[with_CPG=no])
-    AC_CHECK_LIB([cpg],[cpg_initialize],,[with_CPG=no])
    ]
 )
 # Remove from LIBS, we will link it explicitly in make files.



Mime
View raw message