Salome HOME
Search runSalome.py instead of runSalome for KERNEL detection
[modules/yacs.git] / src / wrappergen / src / HXX2SALOME_GENERIC_CLASS_NAME_SRC / adm_local / unix / config_files / check_Kernel.m4
index 2f9af0829d39848312288ee806cbcba681501a0e..f1a015e4775b0055f25be5a9bc04678f4f189016 100644 (file)
@@ -29,8 +29,8 @@ AC_CHECKING(for Kernel)
 Kernel_ok=no
 
 AC_ARG_WITH(kernel,
-           [  --with-kernel=DIR               root directory path of KERNEL build or installation],
-           KERNEL_DIR="$withval",KERNEL_DIR="")
+            [  --with-kernel=DIR               root directory path of KERNEL build or installation],
+            KERNEL_DIR="$withval",KERNEL_DIR="")
 
 if test "x$KERNEL_DIR" = "x" ; then
 
@@ -44,17 +44,17 @@ if test "x$KERNEL_DIR" = "x" ; then
    else
 
     # search Kernel binaries in PATH variable
-      AC_PATH_PROG(TEMP, runSalome)
+      AC_PATH_PROG(TEMP, runSalome.py)
       if test "x$TEMP" != "x" ; then
          KERNEL_BIN_DIR=`dirname $TEMP`
          KERNEL_DIR=`dirname $KERNEL_BIN_DIR`
       fi
-      
+
    fi
-# 
+#
 fi
 
-if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
+if test -f ${KERNEL_DIR}/bin/salome/runSalome.py ; then
    Kernel_ok=yes
    AC_MSG_RESULT(Using Kernel module distribution in ${KERNEL_DIR})
 
@@ -72,6 +72,6 @@ else
 fi
 
 AC_MSG_RESULT(for Kernel: $Kernel_ok)
+
 ])dnl
+