Salome HOME
- Ajout de la phase de calcul
[modules/adao.git] / configure.ac
index fdfb80fea6ddbef3982907ef515dec65be840ce6..5f48ce902274f3caf9e24374917a3999d32927e1 100644 (file)
-#  Copyright (C) 2010  CEA/DEN, EDF R&D
-#
-#  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([DATASSIM module], [0.1], [andre.ribes@edf.fr], [SalomeDATASSIM])
-AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE([-Wno-portability])
+AC_INIT(datassim, 1.0)
+AC_CONFIG_AUX_DIR(adm_local)
+AM_INIT_AUTOMAKE
+AM_CONFIG_HEADER(datassim_config.h)
 
-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=datassim
-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)
+dnl Check Salome Install
+CHECK_KERNEL
+if test "x$Kernel_ok" = "xno"; then
+  AC_MSG_ERROR([You must define a correct KERNEL_ROOT_DIR or use the --with-kernel= configure option !])
 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 + for shared libraries
 
 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
+AC_PROG_CC
+AC_PROG_CXX
+CHECK_F77
+CHECK_BOOST
+CHECK_OMNIORB
+CHECK_PACO
+CHECK_MPI
 
-dnl Fix up the INSTALL macro if it s a relative path. We want the
-dnl full-path to the binary instead.
-case "$INSTALL" in
-   *install-sh*)
-      INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
-      ;;
-esac
-
-echo
-echo ---------------------------------------------
-echo testing python
-echo ---------------------------------------------
-echo
-
-CHECK_PYTHON
+MODULE_NAME=datassim
+AC_SUBST(MODULE_NAME)
 
-AM_PATH_PYTHON(2.4)
+AC_CHECK_ASTER
 
 echo
-echo ---------------------------------------------
-echo testing QT
-echo ---------------------------------------------
-echo
-
-CHECK_QT
-
 echo
-echo ---------------------------------------------
-echo Testing html generators
-echo ---------------------------------------------
 echo
-
-CHECK_HTML_GENERATORS
-
+echo "------------------------------------------------------------------------"
+echo "$PACKAGE $VERSION"
+echo "------------------------------------------------------------------------"
 echo
-echo ---------------------------------------------
-echo Testing Kernel
-echo ---------------------------------------------
+echo "Configuration Options Summary:"
 echo
-
-CHECK_KERNEL
-
+echo "Mandatory products:"
+echo "  Threads ................ : $threads_ok"
+echo "  OmniOrb (CORBA) ........ : $omniORB_ok"
+echo "  OmniOrbpy (CORBA) ...... : $omniORBpy_ok"
+echo "  Python ................. : $python_ok"
+echo "  Boost  ................. : $boost_ok"
+echo "  SALOME KERNEL .......... : $Kernel_ok"
+echo "  PaCO++ ................. : $PaCO_ok"
+echo "  MPI .................... : $mpi_ok"
+echo "  Code Aster ............. : $Aster_ok"
 echo
-echo ---------------------------------------------
-echo Testing GUI
-echo ---------------------------------------------
+echo "------------------------------------------------------------------------"
 echo
 
-CHECK_SALOME_GUI
-
-echo
-echo ---------------------------------------------
-echo Summary
-echo ---------------------------------------------
-echo
-
-echo Configure
-variables="python_ok qt_ok doxygen_ok Kernel_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 becuase make does it for us.
-if test "X$GMAKE" = "Xyes"; then
-   AC_SUBST(SETX) SETX=":"
-else
-   AC_SUBST(SETX) SETX="set -x"
+if test "x$threads_ok" = "xno"; then
+  AC_MSG_ERROR([Thread is required],1)
+fi
+if test "x$python_ok" = "xno"; then
+  AC_MSG_ERROR([Python is required],1)
+fi
+if test "x$omniORB_ok" = "xno"; then
+  AC_MSG_ERROR([OmniOrb is required],1)
+fi
+if test "x$omniORBpy_ok" = "xno"; then
+  AC_MSG_ERROR([OmniOrbpy is required],1)
+fi
+if test "x$Kernel_ok" = "xno"; then
+  AC_MSG_ERROR([SALOME KERNEL is required],1)
 fi
-echo
-echo ---------------------------------------------
-echo generating Makefiles and configure files
-echo ---------------------------------------------
-echo
 
-AC_OUTPUT_COMMANDS([ \
-      chmod +x ./bin/*; \
-])
 
-# 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 \
-  src/Makefile \
-  src/DATASSIM/Makefile \
-  src/DATASSIMGUI/Makefile \
-  resources/Makefile \
-  Makefile \
-])
+AC_CONFIG_FILES([
+        Makefile
+        idl/Makefile
+        resources/Makefile
+        src/Makefile
+        src/daComposant/Makefile
+        src/daSalome/Makefile
+        bin/Makefile
+        ])
+AC_OUTPUT