From: prascle Date: Tue, 14 Feb 2006 19:12:20 +0000 (+0000) Subject: PR: improve tests and --help option of configure X-Git-Tag: BR_auto_V310__v_0_3~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abbb1f2207075533f6bf2f6150d984cebd0c25e5;p=modules%2Fkernel.git PR: improve tests and --help option of configure --- diff --git a/salome_adm/unix/config_files/Makefile.am b/salome_adm/unix/config_files/Makefile.am index ce1510536..0876e34d1 100644 --- a/salome_adm/unix/config_files/Makefile.am +++ b/salome_adm/unix/config_files/Makefile.am @@ -17,7 +17,7 @@ DEPRECATED_FILES=\ DEPRECATED/ac_cxx_typename.m4 \ DEPRECATED/ac_cc_warnings.m4 -salomem4_DATA=\ +dist_salomem4_DATA=\ ac_cxx_depend_flag.m4 \ ac_cxx_have_sstream.m4 \ ac_cxx_namespaces.m4 \ diff --git a/salome_adm/unix/config_files/check_cppunit.m4 b/salome_adm/unix/config_files/check_cppunit.m4 index 0d4837c69..1691c1b12 100644 --- a/salome_adm/unix/config_files/check_cppunit.m4 +++ b/salome_adm/unix/config_files/check_cppunit.m4 @@ -8,13 +8,13 @@ cppunit_ok=yes dnl were is cppunit ? AC_ARG_WITH(cppunit, - [ --with-cppunit=DIR directory path to CPPUNIT installation ], + [AC_HELP_STRING([--with-cppunit=DIR],[directory path to CPPUNIT installation])], [CPPUNITHOME="$withval" AC_MSG_RESULT("select $withval as path to CPPUNIT") ]) AC_ARG_WITH(cppunit_inc, - [ --with-cppunit_inc=DIR directory path to CPPUNIT includes ], + [AC_HELP_STRING([--with-cppunit_inc=DIR],[directory path to CPPUNIT includes])], [CPPUNIT_INCLUDES="$withval" AC_MSG_RESULT("select $withval as path to CPPUNIT includes") ]) diff --git a/salome_adm/unix/config_files/check_hdf5.m4 b/salome_adm/unix/config_files/check_hdf5.m4 index b20db13ac..4d200e8f3 100644 --- a/salome_adm/unix/config_files/check_hdf5.m4 +++ b/salome_adm/unix/config_files/check_hdf5.m4 @@ -25,7 +25,7 @@ AC_REQUIRE([AC_PROG_CPP])dnl AC_CHECKING(for HDF5) AC_ARG_WITH(hdf5, - [ --with-hdf5=DIR root directory path to hdf5 installation ], + [AC_HELP_STRING([--with-hdf5=DIR],[root directory path to hdf5 installation])], [HDF5HOME="$withval" AC_MSG_RESULT("select $withval as path to hdf5") ]) diff --git a/salome_adm/unix/config_files/check_lam.m4 b/salome_adm/unix/config_files/check_lam.m4 index d15fdde31..fd84777d9 100644 --- a/salome_adm/unix/config_files/check_lam.m4 +++ b/salome_adm/unix/config_files/check_lam.m4 @@ -25,13 +25,14 @@ AC_DEFUN([CHECK_LAM],[ AC_REQUIRE([AC_PROG_CC])dnl AC_ARG_WITH(lam, - --with-lam=DIR root directory path of LAM installation, - WITHLAM="yes",WITHLAM="no") + [AC_HELP_STRING([--with-lam=DIR],[root directory path of LAM installation])], + WITHLAM="yes",WITHLAM="no") MPI_INCLUDES="" MPI_LIBS="" if test "$WITHLAM" = yes; then + MPIREQUESTED="yes" echo echo --------------------------------------------- echo testing lam diff --git a/salome_adm/unix/config_files/check_mpi.m4 b/salome_adm/unix/config_files/check_mpi.m4 index a9c97c9b8..57b796b72 100644 --- a/salome_adm/unix/config_files/check_mpi.m4 +++ b/salome_adm/unix/config_files/check_mpi.m4 @@ -25,13 +25,14 @@ AC_DEFUN([CHECK_MPI],[ AC_REQUIRE([AC_PROG_CC])dnl AC_ARG_WITH(mpi, - --with-mpi=DIR root directory path of MPICH installation, - WITHMPI="yes",WITHMPI="no") + [AC_HELP_STRING([--with-mpi=DIR],[root directory path of MPICH installation])], + MPIREQUESTED="yes",MPIREQUESTED="no") MPI_INCLUDES="" MPI_LIBS="" +WITHMPI=no mpi_ok=no -if test "$WITHMPI" = yes; then +if test x"$MPIREQUESTED" = xyes; then echo echo --------------------------------------------- @@ -97,7 +98,7 @@ dnl fi -if test "$WITHMPI2" = "yes";then +if test x$WITHMPI2 = xyes; then CPPFLAGS="-DHAVE_MPI2 $CPPFLAGS" CORBA_IDLCXXFLAGS="-DHAVE_MPI2 $CORBA_IDLCXXFLAGS" CORBA_IDLPYFLAGS="-DHAVE_MPI2 $CORBA_IDLPYFLAGS" diff --git a/salome_adm/unix/config_files/check_mpich.m4 b/salome_adm/unix/config_files/check_mpich.m4 index c5971aa35..732ff94bc 100644 --- a/salome_adm/unix/config_files/check_mpich.m4 +++ b/salome_adm/unix/config_files/check_mpich.m4 @@ -25,13 +25,14 @@ AC_DEFUN([CHECK_MPICH],[ AC_REQUIRE([AC_PROG_CC])dnl AC_ARG_WITH(mpich, - --with-mpich=DIR root directory path of MPICH installation, - WITHMPICH="yes",WITHMPICH="no") + [AC_HELP_STRING([--with-mpich=DIR],[root directory path of MPICH installation])], + WITHMPICH="yes",WITHMPICH="no") MPI_INCLUDES="" MPI_LIBS="" if test "$WITHMPICH" = yes; then + MPIREQUESTED="yes" echo echo --------------------------------------------- echo testing mpich diff --git a/salome_adm/unix/config_files/check_opengl.m4 b/salome_adm/unix/config_files/check_opengl.m4 index dd43d25a0..bb549fac2 100644 --- a/salome_adm/unix/config_files/check_opengl.m4 +++ b/salome_adm/unix/config_files/check_opengl.m4 @@ -23,12 +23,12 @@ AC_DEFUN([CHECK_OPENGL],[ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_CPP])dnl AC_ARG_WITH(opengl, - [ --with-opengl=DIR root directory path of OpenGL installation ], - [ - opengl_dir="$withval" - local_opengl=yes - ], [ - dirs="/usr/lib /usr/local/lib /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/X11R6/lib" + [AC_HELP_STRING([--with-opengl=DIR],[root directory path of OpenGL installation])], + [ + opengl_dir="$withval" + local_opengl=yes + ], [ + dirs="/usr/lib /usr/local/lib /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/X11R6/lib" ])dnl AC_CHECKING(for OpenGL) diff --git a/salome_adm/unix/config_files/check_swig.m4 b/salome_adm/unix/config_files/check_swig.m4 index 10408c009..db9d234e9 100644 --- a/salome_adm/unix/config_files/check_swig.m4 +++ b/salome_adm/unix/config_files/check_swig.m4 @@ -26,7 +26,7 @@ AC_REQUIRE([CHECK_PYTHON])dnl swig_ok=yes AC_ARG_WITH(swig, - [ --with-swig=EXEC swig executable ], + [AC_HELP_STRING([--with-swig=EXEC],[swig executable])], [SWIG="$withval" AC_MSG_RESULT("select $withval as swig executable") ], [ diff --git a/salome_adm/unix/config_files/enable_pthreads.m4 b/salome_adm/unix/config_files/enable_pthreads.m4 index 45652fbb5..2844fbaee 100644 --- a/salome_adm/unix/config_files/enable_pthreads.m4 +++ b/salome_adm/unix/config_files/enable_pthreads.m4 @@ -25,16 +25,19 @@ dnl modify CFLAGS, CXXFLAGS and LIBS for compiling pthread-based programs. dnl dnl@author (C) Ruslan Shevchenko , 1998, 2000 dnl@id $Id$ +dnl Modified to use acx_pthread.m4 from GNU Autoconf Macro Archive dnl -dnl + AC_DEFUN([ENABLE_PTHREADS],[ -AC_REQUIRE([CHECK_PTHREADS]) +AC_REQUIRE([ACX_PTHREAD]) -if test -z "$enable_pthreads_done" -then - CFLAGS="$CFLAGS $CFLAGS_PTHREADS" - CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS" - LIBS="$LIBS $LIBS_PTHREADS" +if test x"$acx_pthread_ok" = xyes; then + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" + LIBS="$LIBS $PTHREAD_LIBS" + threads_ok=yes +else + threads_ok=no fi enable_pthreads_done=yes ])dnl diff --git a/salome_adm/unix/config_files/python.m4 b/salome_adm/unix/config_files/python.m4 index a8013e290..240f6ec0d 100644 --- a/salome_adm/unix/config_files/python.m4 +++ b/salome_adm/unix/config_files/python.m4 @@ -37,7 +37,7 @@ dnl a `module'. AC_DEFUN([CHECK_PYTHON], [ AC_ARG_WITH(python, - [ --with-python=DIR root directory path of python installation ], + [AC_HELP_STRING([--with-python=DIR],[root directory path of python installation])], [PYTHON="$withval/bin/python" AC_MSG_RESULT("select python distribution in $withval") ], [ @@ -79,20 +79,20 @@ AC_DEFUN([CHECK_PYTHON], AC_SUBST(PYTHON_SITE) AC_ARG_WITH(python-site, -[ --with-python-site=DIR Use DIR for installing platform independent - Python site-packages], + [AC_HELP_STRING([--with-python-site=DIR], + [Use DIR for installing platform independent Python site-packages])], dnl modification : by default, we install python script in salome root tree dnl [PYTHON_SITE="$withval" dnl python_site_given=yes], dnl [PYTHON_SITE=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages -dnl python_site_given=no]) +dnl python_site_given=no] -[PYTHON_SITE="$withval" -python_site_given=yes], -[PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages -python_site_given=no]) + [PYTHON_SITE="$withval" + python_site_given=yes], + [PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages + python_site_given=no]) AC_SUBST(PYTHON_SITE_PACKAGE) PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE @@ -103,14 +103,14 @@ python_site_given=no]) AC_SUBST(PYTHON_SITE_EXEC) AC_ARG_WITH(python-site-exec, -[ --with-python-site-exec=DIR Use DIR for installing platform dependent - Python site-packages], -[PYTHON_SITE_EXEC="$withval"], -[if test "$python_site_given" = yes; then - PYTHON_SITE_EXEC=$PYTHON_SITE -else - PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages -fi]) + [AC_HELP_STRING([--with-python-site-exec=DIR], + [Use DIR for installing platform dependent Python site-packages])], + [PYTHON_SITE_EXEC="$withval"], + [if test "$python_site_given" = yes; then + PYTHON_SITE_EXEC=$PYTHON_SITE + else + PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages + fi]) dnl Set up the install directory ifelse($1, classes,