Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/component.git] / build_configure
index d5d1fcd979fcd562e5b5692ac0b4085afdaace7f..eb0152c197a761bac0980c494e8164accaffc1a0 100755 (executable)
@@ -1,18 +1,35 @@
 #!/bin/sh
-
+#  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+#  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+#  This library is free software; you can redistribute it and/or
+#  modify it under the terms of the GNU Lesser General Public
+#  License as published by the Free Software Foundation; either
+#  version 2.1 of the License.
+#
+#  This library is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#  Lesser General Public License for more details.
+#
+#  You should have received a copy of the GNU Lesser General Public
+#  License along with this library; if not, write to the Free Software
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+#  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # Tool for updating list of .in file for the SALOME project 
 # and regenerating configure script
-#
 # Author : Marc Tajchman - CEA
 # Modified by : Alexander BORODIN (OCN) - autotools usage
 # Date : 10/10/2002
 # $Header$
 #
-
 ORIG_DIR=`pwd`
 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
-COMPONENT_WITH_GUI="yes"
+COMPONENT_WITH_GUI="no"
 
 ########################################################################
 # Test if the KERNEL_ROOT_DIR is set correctly
@@ -35,9 +52,15 @@ do
       -with-ihm | --with-ihm)
           COMPONENT_WITH_GUI="yes"
           break;;
+      -with-gui | --with-gui)
+          COMPONENT_WITH_GUI="yes"
+          break;;
       -without-ihm | --without-ihm | -with-ihm=no | --with-ihm=no)
           COMPONENT_WITH_GUI="no"
           break;;
+      -without-gui | --without-gui | -with-gui=no | --with-gui=no)
+          COMPONENT_WITH_GUI="no"
+          break;;
   esac
 done
 
@@ -62,6 +85,11 @@ fi
 cd ${CONF_DIR}
 ABS_CONF_DIR=`pwd`
 
+#######################################################################
+# Update configure.ac script: to set NETGENPLUGIN_WITH_GUI variable
+sed -e s/COMPONENT_WITH_GUI=[a-z]*/COMPONENT_WITH_GUI=${COMPONENT_WITH_GUI}/g configure.ac > configure.tmp
+mv -f configure.tmp configure.ac
+
 mkdir -p salome_adm/unix/config_files
 #cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/* salome_adm/unix/config_files
 #cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/pythonbe.py salome_adm/unix