[Libvirt-cim] [PATCH 3 of 5] libcmpituil: Configure tweaks

Eduardo Lima (Etrunko) eblima at linux.vnet.ibm.com
Fri May 13 18:06:38 UTC 2011


# HG changeset patch
# User Eduardo Lima (Etrunko) <eblima at br.ibm.com>
# Date 1305296777 10800
# Node ID 70fd1aebbcfdd4f45be23f8fc6c4ad0205536780
# Parent  e2e995eb15d1f32f1ed723509461978efad518ee
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

Signed-off-by: Eduardo Lima (Etrunko) <eblima at br.ibm.com>

diff -r e2e995eb15d1 -r 70fd1aebbcfd 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 e2e995eb15d1 -r 70fd1aebbcfd 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




More information about the Libvirt-cim mailing list