# HG changeset patch
# User Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
# Date 1305296777 10800
# Node ID 41e3fb2222eeeaea0cffe5d65371541c0b34d746
# Parent d3435ce63194d7e65bf005ac69a857284a300094
libcmpituil: Configure tweaks
acinclude.m4
- Better output when checking for CMPI includes
configure.ac
- Use automake silent rules if available
- Check for pkg-config program
diff -r d3435ce63194 -r 41e3fb2222ee acinclude.m4
--- a/acinclude.m4 Fri May 13 11:21:55 2011 -0300
+++ b/acinclude.m4 Fri May 13 11:26:17 2011 -0300
@@ -42,6 +42,7 @@
dnl The standard include paths worked.
AC_MSG_RESULT(yes)
else
+ AC_MSG_RESULT(no)
_DIRS_="/usr/include/cmpi \
/usr/local/include/cmpi \
$PEGASUS_ROOT/src/Pegasus/Provider/CMPI \
@@ -61,13 +62,15 @@
dnl Save the new -I parameter
CMPI_CPP_FLAGS="$CPPFLAGS"
break
- fi
+ else
+ AC_MSG_RESULT(no)
+ fi
CPPFLAGS=$_cppflags
done
fi
CPPFLAGS="$CMPI_CPP_FLAGS"
if test "$have_CMPI" == "no"; then
- AC_MSG_ERROR(no. Sorry cannot find CMPI headers files.)
+ AC_MSG_ERROR(Cannot find CMPI header files.)
fi
]
)
diff -r d3435ce63194 -r 41e3fb2222ee configure.ac
--- a/configure.ac Fri May 13 11:21:55 2011 -0300
+++ b/configure.ac Fri May 13 11:26:17 2011 -0300
@@ -30,7 +30,9 @@
AC_CONFIG_FILES([Makefile tools/Makefile])
+# Use silent-rules if possible
AM_INIT_AUTOMAKE
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC
@@ -51,6 +53,8 @@
AM_CONDITIONAL([build_eoparser],[test x$eoparser = xyes])
+# Check for pkg-config program
+PKG_PROG_PKG_CONFIG
CHECK_LIBXML2
if test x${eoparser} = xyes; then