Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 27 Nov 2013 06:50:28 +0000 (06:50 +0000)
committermpa <mpa@opencascade.com>
Wed, 27 Nov 2013 06:50:28 +0000 (06:50 +0000)
- update documentation considering new CMake build system

ATOMICGUI.cxx [deleted file]
ATOMICGUI.h [deleted file]
FindGd.cmake [new file with mode: 0644]
Makefile.am [deleted file]
SALOME_Tutorial.doc
build_configure [deleted file]
check_gd.m4 [deleted file]
configure.ac [deleted file]

diff --git a/ATOMICGUI.cxx b/ATOMICGUI.cxx
deleted file mode 100644 (file)
index fcf47d2..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// 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
-//
-
-using namespace std;
-
-#include "ATOMICGUI.h"
-
-#include "ATOMICGUI_DataModel.h"
-#include "ATOMICGUI_DataObject.h"
-#include "ATOMICGUI_AddAtomDlg.h"
-
-#include <LightApp_Application.h>
-#include <LightApp_DataOwner.h>
-#include <LightApp_SelectionMgr.h>
-
-#include <SUIT_ResourceMgr.h>
-#include <SUIT_Session.h>
-#include <SUIT_Desktop.h>
-
-#include <qaction.h>
-#include <qmenu.h>
-
-/*! Constructor */
-ATOMICGUI::ATOMICGUI()
-: LightApp_Module( "ATOMICGUI" )
-{
-}
-
-/*! Initialization funciton.  Called only once on first activation of GUI module.  */
-void ATOMICGUI::initialize ( CAM_Application* app )
-{
-  LightApp_Module::initialize( app );// call parent's implementation
-
-  SUIT_Desktop* parent = application()->desktop();
-  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
-
-  // create actions
-  createAction( agCreateMol, tr("TOP_CREATE_MOL"), resMgr->loadPixmap("ATOMIC", tr("ICON_MOLECULE")),
-                tr("MEN_CREATE_MOL"), tr("STB_CREATE_MOL"), 0, parent, false, this, SLOT(onOperation()) );
-  createAction( agAddAtom,   tr("TOP_ADD_ATOM"),   resMgr->loadPixmap("ATOMIC", tr("ICON_ATOM")),
-                tr("MEN_ADD_ATOM"),   tr("STB_ADD_ATOM"),   0, parent, false, this, SLOT(onOperation()) );
-
-  // init popup menus
-  int aAtomicMnu = createMenu( tr( "MEN_ATOMIC" ), -1, -1, 50 );
-  createMenu( agCreateMol, aAtomicMnu, 10 );
-  createMenu( separator(), aAtomicMnu, -1, 10 );
-  createMenu( agAddAtom,   aAtomicMnu, 10 );
-
-  // create toolbar
-  int tbId = createTool( tr( "MEN_ATOMIC" ) );
-  createTool( agCreateMol, tbId );
-  createTool( agAddAtom,   tbId );
-}
-
-/*! Returns default icon of a component. */
-QString ATOMICGUI::iconName() const
-{
-  return QObject::tr( "ICON_ATOMIC" );
-}
-
-/*! Returns list of windows required for this GUI module. */
-void ATOMICGUI::windows ( QMap<int, int>& aMap ) const
-{
-  aMap.insert( LightApp_Application::WT_ObjectBrowser, Qt::LeftDockWidgetArea );
-}
-
-/*! Returns list of entities of selected objects. */
-void ATOMICGUI::selected( QStringList& entries, const bool multiple )
-{
-  LightApp_SelectionMgr* mgr = getApp()->selectionMgr();
-  if( !mgr )
-    return;
-
-  SUIT_DataOwnerPtrList anOwnersList;
-  mgr->selected( anOwnersList );
-
-  for ( int i = 0; i < anOwnersList.size(); i++ )
-  {
-    const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*>( anOwnersList[ i ].get() );
-    QStringList es = owner->entry().split( "_" );
-    if ( es.count() > 1 && es[ 0 ] == "ATOMICGUI" && es[ 1 ] != "root" )
-    {
-      entries.append( owner->entry() );
-      if( !multiple )
-        break;
-    }
-  }
-}
-
-/*! Instantiation of a custom Data Model. */
-CAM_DataModel* ATOMICGUI::createDataModel()
-{
-  return new ATOMICGUI_DataModel( this );
-}
-
-/*! Activation function. Called on every activation of a GUI module. */
-bool ATOMICGUI::activateModule ( SUIT_Study* study )
-{
-  bool isDone = LightApp_Module::activateModule( study );
-  if ( !isDone ) return false;
-
-  setMenuShown( true );
-  setToolShown( true );
-
-  return isDone;
-}
-
-/*! Deactivation function. Called on every deactivation of a GUI module. */
-bool ATOMICGUI::deactivateModule ( SUIT_Study* study )
-{
-  setMenuShown( false );
-  setToolShown( false );
-
-  return LightApp_Module::deactivateModule( study );
-}
-
-/*! slot connected to all functions of the component (create molecule, add atom, etc.) */
-void ATOMICGUI::onOperation()
-{
-  if( sender() && sender()->inherits( "QAction" ) )
-  {
-    int id = actionId( ( QAction* )sender() );
-    if ( id == agCreateMol ) {
-      ATOMICGUI_DataModel* dm = dynamic_cast<ATOMICGUI_DataModel*>( dataModel() );
-      if ( dm ) {
-        dm->createMolecule();
-        getApp()->updateObjectBrowser();
-      }
-    }
-    else if ( id == agAddAtom ) {
-      QStringList entries;
-      selected( entries, false );
-      ATOMICGUI_AddAtomDlg dlg ( getApp()->desktop() );
-      int res = dlg.exec();
-      ATOMICGUI_DataModel* dm = dynamic_cast<ATOMICGUI_DataModel*>( dataModel() );
-      if( dm && res == QDialog::Accepted && dlg.acceptData( entries ) ) {
-        QString name;
-        double x, y, z;
-        dlg.data( name, x, y, z );
-        dm->addAtom( entries.first(), name, x, y, z );
-        getApp()->updateObjectBrowser();
-      }
-    }
-  }
-}
-
-/*! Called on popup menu request by LightApp_Application. */
-void ATOMICGUI::contextMenuPopup( const QString& client, QMenu* menu, QString& /*title*/ )
-{
-  if ( client == "ObjectBrowser" ) {
-    QStringList entries;
-    selected( entries, false );
-    if ( entries.size() ) {
-      QStringList es = entries.first().split( "_" );
-      if ( es.count() == 2 && es[ 0 ] == "ATOMICGUI" ) { // selected object belongs to ATOMICGUI
-                                                         // and it is a molecule object
-        menu->addAction(action( agAddAtom ));
-      }
-    }
-  }
-}
-
-
-#if defined(WNT)
-#define ATOMICGUI_EXPORT __declspec(dllexport)
-#else   // WNT
-#define ATOMICGUI_EXPORT
-#endif  // WNT
-
-/*! GUI module instantiation function */
-extern "C" {
-  ATOMICGUI_EXPORT CAM_Module* createModule() {
-    return new ATOMICGUI();
-  }
-}
diff --git a/ATOMICGUI.h b/ATOMICGUI.h
deleted file mode 100644 (file)
index 4effbf4..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// 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
-//
-
-#if !defined(ATOMICGUI_H)
-#define ATOMICGUI_H
-
-#include <LightApp_Module.h>
-
-/*!
- * Class       : ATOMICGUI
- * Description : GUI module class for ATOMIC component
- */
-class ATOMICGUI: public LightApp_Module
-{
-  Q_OBJECT
-  enum { agCreateMol,  agAddAtom };
-
-public:
-  ATOMICGUI();
-
-  virtual void           initialize ( CAM_Application* );
-  virtual QString        iconName () const;
-
-  virtual void           windows ( QMap<int, int>& ) const;
-
-  void                   selected( QStringList&, const bool );
-
-  void                   contextMenuPopup( const QString& client, QMenu* menu, QString& title );
-
-protected:
-  virtual CAM_DataModel* createDataModel();
-
-public slots:
-  virtual bool           activateModule   ( SUIT_Study* );
-  virtual bool           deactivateModule ( SUIT_Study* );
-
-private slots:
-  void                   onOperation();
-};
-
-#endif // ATOMICGUI_H
diff --git a/FindGd.cmake b/FindGd.cmake
new file mode 100644 (file)
index 0000000..5f83590
--- /dev/null
@@ -0,0 +1,52 @@
+# - Find gd library
+# Sets the following variables:
+#   GD_FOUND        - TRUE if gd library is detected
+#   GD_INCLUDE_DIRS - path to the gd include directories
+#   GD_LIBRARIES    - path to the gd libraries to be linked against
+#
+
+#########################################################################
+# Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# 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
+#
+
+# ------
+
+IF(NOT Gd_FIND_QUIETLY)
+  MESSAGE(STATUS "Check for gd ...")
+ENDIF()
+
+# ------
+
+SET(GD_ROOT_DIR $ENV{GD_ROOT_DIR})
+
+IF(GD_ROOT_DIR)
+ LIST(APPEND CMAKE_PREFIX_PATH "${GD_ROOT_DIR}")
+ENDIF()
+
+FIND_PATH(GD_INCLUDE_DIRS gd.h)
+FIND_LIBRARY(GD_LIBRARIES NAMES gd)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(GD REQUIRED_VARS GD_INCLUDE_DIRS GD_LIBRARIES)
+
+IF(GD_FOUND)
+  IF(NOT Gd_FIND_QUIETLY)
+    MESSAGE(STATUS "gd library: ${GD_LIBRARIES}")
+  ENDIF()
+ENDIF()
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644 (file)
index 34e1575..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# 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
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-# Library target
-lib_LTLIBRARIES = libATOMIC.la
-
-# Library sources
-dist_libATOMIC_la_SOURCES =    \
-       ATOMICGUI.h             \
-       ATOMICGUI.cxx
-
-# MOC pre-processing
-MOC_FILES = \
-       ATOMICGUI_moc.cxx
-
-nodist_libATOMIC_la_SOURCES = $(MOC_FILES)
-
-# additionnal compilation flags
-libATOMIC_la_CPPFLAGS = \
-       $(QT_INCLUDES) \
-       $(VTK_INCLUDES) \
-       $(CAS_CPPFLAGS) \
-       $(PYTHON_INCLUDES) \
-       $(GUI_CXXFLAGS)
-
-# additionnal linkage flags
-libATOMIC_la_LDFLAGS = $(GUI_LDFLAGS) -lLightApp $(GD_LIBS)
-
-# resources files
-nodist_salomeres_DATA = \
-        ATOMIC_images.qm \
-        ATOMIC_msg_en.qm
index 2760dab5a40cbcde8dd0c31b7c8b5d3f8400d117..f57ef110b56033ac7b0982e049b9e425db23dfa5 100644 (file)
Binary files a/SALOME_Tutorial.doc and b/SALOME_Tutorial.doc differ
diff --git a/build_configure b/build_configure
deleted file mode 100644 (file)
index 4d5f16d..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/bash
-
-# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# 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
-#
-
-ORIG_DIR=`pwd`
-CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
-
-# ____________________________________________________________________
-# Test if the KERNEL_ROOT_DIR is set correctly
-
-if test ! -d "${KERNEL_ROOT_DIR}"; then
-    echo "failed : KERNEL_ROOT_DIR variable is not correct !"
-    exit
-fi
-
-# ____________________________________________________________________
-# Test if the GUI_ROOT_DIR is set correctly
-
-if test ! -d "${GUI_ROOT_DIR}"; then
-    echo "failed : GUI_ROOT_DIR variable is not correct !"
-    exit
-fi
-
-cd ${CONF_DIR}
-ABS_CONF_DIR=`pwd`
-
-# ____________________________________________________________________
-# aclocal creates the aclocal.m4 file from the standard macro and the
-# custom macro embedded in the directory adm_local/unix/config_files
-# and KERNEL config_files directory.
-# output:
-#   aclocal.m4
-#   autom4te.cache (directory)
-echo "======================================================= aclocal"
-
-aclocal -I adm_local/unix/config_files \
-        -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
-        -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
-        -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files || exit 1
-
-# ____________________________________________________________________
-# libtoolize creates some configuration files (ltmain.sh,
-# config.guess and config.sub). It only depends on the libtool
-# version. The files are created in the directory specified with the
-# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
-# output:
-#   adm_local/unix/config_files/config.guess
-#   adm_local/unix/config_files/config.sub
-#   adm_local/unix/config_files/ltmain.sh
-echo "==================================================== libtoolize"
-
-libtoolize --force --copy --automake || exit 1
-
-# ____________________________________________________________________
-# autoconf creates the configure script from the file configure.ac (or
-# configure.in if configure.ac doesn't exist)
-# output:
-#   configure
-echo "====================================================== autoconf"
-
-autoconf
-
-# ____________________________________________________________________
-# automake creates some scripts used in building process
-# (install-sh, missing, ...). It only depends on the automake
-# version. The files are created in the directory specified with the
-# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac). This step also
-# creates the Makefile.in files from the Makefile.am files.
-# output:
-#   adm_local/unix/config_files/compile
-#   adm_local/unix/config_files/depcomp
-#   adm_local/unix/config_files/install-sh
-#   adm_local/unix/config_files/missing
-#   adm_local/unix/config_files/py-compile
-#   Makefile.in (from Makefile.am)
-echo "====================================================== automake"
-
-automake --copy --gnu --add-missing
diff --git a/check_gd.m4 b/check_gd.m4
deleted file mode 100644 (file)
index 2a4eeef..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# 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
-#
-
-AC_DEFUN([CHECK_GDLIB],[
-AC_REQUIRE([AC_PROG_CC])
-AC_REQUIRE([AC_PROG_CPP])
-AC_REQUIRE([AC_LINKER_OPTIONS])
-
-AC_LANG_SAVE
-AC_LANG_CPLUSPLUS
-
-AC_CHECKING(for gd library)
-
-gd_ok=no
-
-# check gd.h header
-AC_CHECK_HEADER(gd.h, gd_ok=yes, gd_ok=no)
-
-if test "x$gd_ok" = "xyes"; then
-  # check gd library
-  AC_MSG_CHECKING(linking with libgd.so)
-  LIBS_old=$LIBS
-  LIBS="$LIBS -lgd"
-  AC_TRY_LINK([#include <gd.h>],
-              [gdImagePtr image = gdImageCreate(10,10);],
-              gd_ok=yes,
-              gd_ok=no)
-  LIBS=$LIBS_old
-  AC_MSG_RESULT(done)
-fi
-
-if test "x$gd_ok" = "xno"; then
-  AC_MSG_WARN(gd library is not installed!)
-else
-  GD_LIBS="-lgd"
-fi
-
-AC_SUBST(GD_LIBS)
-
-AC_MSG_RESULT(for gd: $gd_ok)
-
-AC_LANG_RESTORE
-])
diff --git a/configure.ac b/configure.ac
deleted file mode 100644 (file)
index 1257fcd..0000000
+++ /dev/null
@@ -1,294 +0,0 @@
-# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# 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
-#
-
-AC_INIT([Salome2 Project ATOMIC module], [0.3.0], [webmaster.salome@opencascade.com], [SalomeATOMIC])
-AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE([-Wno-portability])
-
-XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
-AC_SUBST(XVERSION)
-
-# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
-MODULE_NAME=atomic
-AC_SUBST(MODULE_NAME)
-
-dnl
-dnl Initialize source and build root directories
-dnl
-
-ROOT_BUILDDIR=`pwd`
-ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
-cd $ROOT_SRCDIR
-ROOT_SRCDIR=`pwd`
-cd $ROOT_BUILDDIR
-
-AC_SUBST(ROOT_SRCDIR)
-AC_SUBST(ROOT_BUILDDIR)
-
-echo
-echo Source root directory : $ROOT_SRCDIR
-echo Build  root directory : $ROOT_BUILDDIR
-echo
-echo
-
-AC_CHECK_PROG(SHELL,sh)
-AC_SUBST(SHELL)
-
-if test -z "$AR"; then
-   AC_CHECK_PROGS(AR,ar xar,:,$PATH)
-fi
-AC_SUBST(AR)
-
-dnl Export the AR macro so that it will be placed in the libtool file
-dnl correctly.
-export AR
-
-echo
-echo ---------------------------------------------
-echo testing make
-echo ---------------------------------------------
-echo
-
-AC_PROG_MAKE_SET
-AC_PROG_INSTALL
-AC_LOCAL_INSTALL
-dnl
-dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
-
-AC_ENABLE_DEBUG(yes)
-AC_DISABLE_PRODUCTION
-
-echo ---------------------------------------------
-echo testing libtool
-echo ---------------------------------------------
-
-dnl first, we set static to no!
-dnl if we want it, use --enable-static
-AC_ENABLE_STATIC(no)
-
-AC_LIBTOOL_DLOPEN
-AC_PROG_LIBTOOL
-
-echo
-echo ---------------------------------------------
-echo testing C/C++
-echo ---------------------------------------------
-echo
-
-cc_ok=no
-dnl inutil car libtool
-dnl AC_PROG_CC
-AC_PROG_CXX
-AC_CXX_WARNINGS
-AC_CXX_TEMPLATE_OPTIONS
-AC_DEPEND_FLAG
-# AC_CC_WARNINGS([ansi])
-cc_ok=yes
-
-dnl Library libdl :
-AC_CHECK_LIB(dl,dlopen)
-
-dnl add library libm :
-AC_CHECK_LIB(m,ceil)
-
-dnl Library librt : for alpha/osf
-AC_CHECK_LIB(rt,nanosleep)
-
-dnl
-dnl Check if we use std iostream by default or if we must add
-dnl a compiler directive for that
-dnl
-
-AC_CXX_USE_STD_IOSTREAM
-
-dnl
-dnl Well we use sstream which is not in gcc pre-2.95.3
-dnl We must test if it exists. If not, add it in include !
-dnl
-
-AC_CXX_HAVE_SSTREAM
-
-dnl
-dnl ---------------------------------------------
-dnl testing linker
-dnl ---------------------------------------------
-dnl
-
-AC_LINKER_OPTIONS
-
-dnl
-dnl ---------------------------------------------
-dnl testing WITHIHM
-dnl ---------------------------------------------
-dnl
-
-CHECK_WITHIHM
-
-echo
-echo ---------------------------------------------
-echo testing LEX \& YACC
-echo ---------------------------------------------
-echo
-
-lex_yacc_ok=no
-AC_PROG_YACC
-AC_PROG_LEX
-lex_yacc_ok=yes
-
-echo
-echo ---------------------------------------------
-echo testing python
-echo ---------------------------------------------
-echo
-
-CHECK_PYTHON
-
-AM_PATH_PYTHON(2.3)
-
-echo
-echo ---------------------------------------------
-echo testing threads
-echo ---------------------------------------------
-echo
-
-ENABLE_PTHREADS
-
-echo
-echo ---------------------------------------------
-echo testing openGL
-echo ---------------------------------------------
-echo
-
-CHECK_OPENGL
-
-echo
-echo ---------------------------------------------
-echo testing QT
-echo ---------------------------------------------
-echo
-
-CHECK_QT
-
-echo
-echo ---------------------------------------------
-echo testing VTK
-echo ---------------------------------------------
-echo
-
-CHECK_VTK
-
-echo
-echo ---------------------------------------------
-echo testing HDF5
-echo ---------------------------------------------
-echo
-
-CHECK_HDF5
-
-echo
-echo ---------------------------------------------
-echo Testing OpenCascade
-echo ---------------------------------------------
-echo
-
-CHECK_CAS
-
-echo
-echo ---------------------------------------------
-echo Testing html generators
-echo ---------------------------------------------
-echo
-
-CHECK_HTML_GENERATORS
-
-echo
-echo ---------------------------------------------
-echo Testing gd library
-echo ---------------------------------------------
-echo
-
-CHECK_GDLIB
-
-echo
-echo ---------------------------------------------
-echo Testing Kernel
-echo ---------------------------------------------
-echo
-
-CHECK_KERNEL
-
-echo
-echo ---------------------------------------------
-echo Testing GUI
-echo ---------------------------------------------
-echo
-
-CHECK_SALOME_GUI
-
-echo
-echo ---------------------------------------------
-echo Summary
-echo ---------------------------------------------
-echo
-
-echo Configure
-variables="cc_ok lex_yacc_ok python_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok SalomeGUI_ok"
-
-for var in $variables
-do
-   printf "   %10s : " `echo \$var | sed -e "s,_ok,,"`
-   eval echo \$$var
-done
-
-dnl We don't need to say when we re entering directories if we re using
-dnl GNU make because make does it for us.
-if test "X$GMAKE" = "Xyes"; then
-   AC_SUBST(SETX) SETX=":"
-else
-   AC_SUBST(SETX) SETX="set -x"
-fi
-
-AC_OUTPUT_COMMANDS([ \
-        chmod +x ./bin/* \
-])
-
-echo
-echo ---------------------------------------------
-echo generating Makefiles and configure files
-echo ---------------------------------------------
-echo
-
-# This list is initiated using autoscan and must be updated manually
-# when adding a new file <filename>.in to manage. When you execute
-# autoscan, the Makefile list is generated in the output file configure.scan.
-# This could be helpfull to update de configuration.
-AC_OUTPUT([ \
-  adm_local/Makefile \
-  adm_local/unix/Makefile \
-  adm_local/unix/config_files/Makefile \
-  bin/VERSION \
-  bin/Makefile \
-  resources/Makefile \
-  src/Makefile \
-  src/ATOMICGUI/Makefile \
-  ATOMIC_version.h \
-  Makefile \
-])