summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/configure.ac8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac
index a7a53c3c6f..85c6aed024 100644
--- a/cpp/configure.ac
+++ b/cpp/configure.ac
@@ -155,18 +155,16 @@ AC_ARG_WITH([cpg],
[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.