]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Check if GHS3D_VERSION is already defined
authorgdd <gdd>
Fri, 13 May 2011 12:48:51 +0000 (12:48 +0000)
committergdd <gdd>
Fri, 13 May 2011 12:48:51 +0000 (12:48 +0000)
configure.ac

index 78ddc3bbabb2b544642d879ea60c5beb6b80c801..b648590c6fe92e2a4cccad793186e849ee5195a8 100644 (file)
@@ -353,8 +353,11 @@ echo
 
 CHECK_GHS3D
 if test "${GHS3D_ok}" = "yes"; then
-        GHS3D_VERSION=`ghs3d -u |grep "TETMESH-GHS3D SOFTWARE"|awk '{print $3}'|awk -F- '{print $1}'|awk -F. '{print $1$2}'`
-        AC_DEFINE_UNQUOTED(GHS3D_VERSION,${GHS3D_VERSION})
+  if test "x$GHS3D_VERSION" = "x"
+  then
+    GHS3D_VERSION=`ghs3d -u |grep "TETMESH-GHS3D SOFTWARE"|awk '{print $3}'|awk -F- '{print $1}'|awk -F. '{print $1$2}'`
+  fi
+  AC_DEFINE_UNQUOTED(GHS3D_VERSION,${GHS3D_VERSION})
 fi
 
 echo