From: Viktor M. <mih...@us...> - 2005-04-20 06:21:24
|
Update of /cvsroot/sblim/cmpi-samples/autotools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31578 Modified Files: acinclude.m4 Log Message: Corrected test for cimserver. Index: acinclude.m4 =================================================================== RCS file: /cvsroot/sblim/cmpi-samples/autotools/acinclude.m4,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- acinclude.m4 20 Apr 2005 06:18:26 -0000 1.3 +++ acinclude.m4 20 Apr 2005 06:21:15 -0000 1.4 @@ -27,9 +27,11 @@ AC_DEFUN([CHECK_PEGASUS_2_3_2], [ AC_MSG_CHECKING(for Pegasus 2.3.2) - test_CIMSERVER=`cimserver -v` - if which cimserver > /dev/null 2>&1 && - test "$test_CIMSERVER" == "2.3.2"; then + if which cimserver > /dev/null 2>&1 + then + test_CIMSERVER=`cimserver -v` + fi + if test "$test_CIMSERVER" == "2.3.2"; then AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_PEGASUS_2_3_2,1,[Defined to 1 if Pegasus 2.3.2 is used]) else @@ -46,9 +48,11 @@ AC_DEFUN([CHECK_PEGASUS_2_4], [ AC_MSG_CHECKING(for Pegasus 2.4) - test_CIMSERVER=`cimserver -v` - if which cimserver > /dev/null 2>&1 && - test "$test_CIMSERVER" == "2.4"; then + if which cimserver > /dev/null 2>&1 + then + test_CIMSERVER=`cimserver -v` + fi + if test "$test_CIMSERVER" == "2.4"; then AC_MSG_RESULT(yes) CPPFLAGS="$CPPFLAGS -DPEGASUS_USE_EXPERIMENTAL_INTERFACES" AC_DEFINE_UNQUOTED(HAVE_PEGASUS_2_4,1,[Defined to 1 if Pegasus 2.4 is used]) |