]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Issue 0020692: Duplicate check_*.m4 between modules.
authorouv <ouv@opencascade.com>
Thu, 11 Feb 2010 10:10:14 +0000 (10:10 +0000)
committerouv <ouv@opencascade.com>
Thu, 11 Feb 2010 10:10:14 +0000 (10:10 +0000)
salome_adm/unix/config_files/check_libxml.m4

index a9bba03a335b12465e806e34e928b570028838a2..a791b80172dc07d0cc59b1f1bae5db720a5f304c 100644 (file)
@@ -23,12 +23,23 @@ AC_DEFUN([CHECK_LIBXML],[
 
 AC_CHECKING(for libxml library)
 
+AC_LANG_SAVE
+AC_LANG_C
+
 AC_SUBST(LIBXML_INCLUDES)
 AC_SUBST(LIBXML_LIBS)
 
 LIBXML_INCLUDES=""
 LIBXML_LIBS=""
 
+AC_CHECKING(for libxml location)
+AC_ARG_WITH(libxml,
+            [  --with-libxml=DIR      root directory path to LIBXML library installation ],
+            [LIBXML_DIR="$withval"
+             AC_MSG_RESULT("select $withval as path to LIBXML library")])
+
+AC_MSG_RESULT(\$LIBXML_DIR = ${LIBXML_DIR})
+
 libxml_ok=no
 
 LOCAL_INCLUDES=""
@@ -77,6 +88,8 @@ fi
 
 AC_MSG_RESULT(for libxml: $libxml_ok)
 
+AC_LANG_RESTORE
+
 ])dnl
 dnl