From 154ebdfc444578fb4afafe39d2b3cb0e722310bf Mon Sep 17 00:00:00 2001 From: gdd Date: Fri, 13 May 2011 12:48:51 +0000 Subject: [PATCH] Check if GHS3D_VERSION is already defined --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 78ddc3b..b648590 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.39.2