Sorry I forgot the error message: bin/bash ../../../libtool --tag=CC --mode=link suncc -O3 -UPASSIVE -DFFTW - mt -o cyto.run cyto_main.o cyto_allocation.o cyto_initialisation.o cyto_boundary_conditions.o cyto_initial_condition.o cyto_output.o cyto_equation.o cyto_laplace.o cyto_parallel_derivates.o ../../../common/libutils.a -lpthread -L/usr/lib -lmfhdf -ldf -ljpeg -lz - L/usr/lib -lmpi -L/usr/lib -lfftw3 libtool: link: suncc -O3 -UPASSIVE -DFFTW -mt -o cyto.run cyto_main.o cyto_allocation.o cyto_initialisation.o cyto_boundary_conditions.o cyto_initial_condition.o cyto_output.o cyto_equation.o cyto_laplace.o cyto_parallel_derivates.o ../../../common/libutils.a -lpthread -L/usr/lib - lmfhdf -ldf /usr/lib/libjpeg.so -lz -lmpi /usr/lib/libfftw3.so -pthread -mt cc: Cannot find /home/mathias/install/sun/sunstudio12.1/prod/lib/amd64/mcrt1x.o make[2]: *** [cyto.run] Error 1 make[2]: Leaving directory `/home/mathias/uni/PhD/computational/simu/tyr/cyto/mathias/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mathias/uni/PhD/computational/simu/tyr' make: *** [all] Error 2
On Tuesday 16 February 2010 18:27:46 spam...@gmx.info wrote: > Hello! > > I wrote a configure.ac (below), use autoreconf --install > > Everything runs fine if I use > CC=gcc CFLAGS="" LDFLAGS="" ./configure > > But if I use > CC=suncc CFLAGS="" LDFLAGS="" ./configure > > I get a linking problem. > > /bin/bash ../../../libtool --tag=CC --mode=link suncc -O3 -UPASSIVE > -DFFTW -mt -o cyto.run cyto_main.o cyto_allocation.o > cyto_initialisation.o cyto_boundary_conditions.o cyto_initial_condition.o > cyto_output.o > cyto_equation.o cyto_laplace.o cyto_parallel_derivates.o > ../../../common/libutils.a -lpthread -L/usr/lib -lmfhdf -ldf -ljpeg -lz - > L/usr/lib -lmpi -L/usr/lib -lfftw3 > libtool: link: suncc -O3 -UPASSIVE -DFFTW -mt -o cyto.run cyto_main.o > cyto_allocation.o cyto_initialisation.o cyto_boundary_conditions.o > cyto_initial_condition.o cyto_output.o cyto_equation.o cyto_laplace.o > cyto_parallel_derivates.o ../../../common/libutils.a -L/usr/lib -lmfhdf > -ldf /usr/lib/libjpeg.so -lz -lmpi /usr/lib/libfftw3.so -pthread -mt > > > I can't figure out where the pthread is come from. > > > > > > > > > > > > > # -*- Autoconf -*- > # Process this file with autoconf to produce a configure script. > > AC_PREREQ([2.5]) > #AC_INIT( private ;)) > AC_CONFIG_SRCDIR([check/main.c]) > AC_CONFIG_HEADERS([config.h]) > > AC_CONFIG_AUX_DIR([build-aux]) > AC_CONFIG_MACRO_DIR([m4]) > > AM_INIT_AUTOMAKE([1.7 foreign]) > > AC_CANONICAL_HOST > AC_SYS_LARGEFILE > > # Checks for programs. > AC_PROG_CC > AC_PROG_F77 > > # use the C compiler for the following checks > AC_LANG([C]) > > # > AC_LIBTOOL_WIN32_DLL > AC_PROG_LIBTOOL > > # Make sure flags are set to something > CFLAGS="${CFLAGS}" > CPPFLAGS="${CPPFLAGS}" > CXXFLAGS="${CXXFLAGS}" > FCFLAGS="${FCFLAGS}" > > AC_SUBST([VONA_CFLAGS]) > AC_SUBST([VONA_CPPFLAGS]) > AC_SUBST([VONA_FCFLAGS]) > AC_SUBST([VONA_CXXFLAGS]) > > AC_SUBST([AM_CFLAGS]) > AC_SUBST([AM_CPPFLAGS]) > AC_SUBST([AM_FCFLAGS]) > AC_SUBST([AM_CXXFLAGS]) > > > # > ====================================================================== > # ARGUMENT CHECKING > # > ====================================================================== > AC_MSG_CHECKING([Disable compiling common?]) > > COMMON_COMPILING="yes" > AC_ARG_ENABLE([common], > [AC_HELP_STRING([--disable-common], > [Disable compiling common [default=no]])], > [COMMON_COMPILING=$enableval]) > > if test "X$COMMON_COMPILING" = "Xyes"; then > AC_MSG_RESULT(no) > else > AC_MSG_RESULT(yes) > COMMON_COMPILING="no" > fi > > > AC_MSG_CHECKING([Compile check code?]) > AC_ARG_ENABLE([check], > [AC_HELP_STRING([--enable-check], > [Compile the check code [default=no]])], > [CHECK_COMPILING=$enableval]) > if test "X$CHECK_COMPILING" = "Xyes"; then > AC_MSG_RESULT(yes) > else > AC_MSG_RESULT(no) > CHECK_COMPILING="no" > fi > > AC_MSG_CHECKING([Compile TYR code?]) > AC_ARG_ENABLE([tyr], > [AC_HELP_STRING([--enable-tyr], > [Compile the tyr code [default=no]])], > [TYR_COMPILING=$enableval]) > if test "X$TYR_COMPILING" = "Xyes"; then > AC_MSG_RESULT(yes) > else > AC_MSG_RESULT(no) > TYR_COMPILING="no" > fi > > AC_MSG_CHECKING([Compile CYTO code?]) > AC_ARG_ENABLE([cyto], > [AC_HELP_STRING([--enable-cyto], > [Compile the cyto code [default=no]])], > [CYTO_COMPILING=$enableval]) > if test "X$CYTO_COMPILING" = "Xyes"; then > AC_MSG_RESULT(yes) > else > AC_MSG_RESULT(no) > CYTO_COMPILING="no" > fi > > AC_MSG_CHECKING([Compile Mathias CYTO code?]) > AC_ARG_ENABLE([mathias_cyto], > [AC_HELP_STRING([--enable-mathias_cyto], > [Compile the cyto code from Mathias > [default=no]])], > [MATHIAS_CYTO_COMPILING=$enableval]) > if test "X$MATHIAS_CYTO_COMPILING" = "Xyes"; then > AC_MSG_RESULT(yes) > else > AC_MSG_RESULT(no) > MATHIAS_CYTO_COMPILING="no" > fi > > AC_MSG_CHECKING([Compile hw2d code?]) > AC_ARG_ENABLE([hw2d], > [AC_HELP_STRING([--enable-hw2d], > [Compile the hw2d code [default=no]])], > [HW2D_COMPILING=$enableval]) > if test "X$HW2D_COMPILING" = "Xyes"; then > AC_MSG_RESULT(yes) > else > AC_MSG_RESULT(no) > HW2D_COMPILING="no" > fi > > > > AC_MSG_CHECKING(for production mode) > AC_ARG_ENABLE(production, > [AC_HELP_STRING([--enable-production], > [Determines how to run the compiler (-O3; -g; > - pg)])]) > > case "X-$enable_production" in > X-|X-yes) > enable_production="yes" > AC_MSG_RESULT([production]) > > dnl Remove the "-g" flag from CFLAGS if it's in there. > dnl > CFLAGS_temp="" > if test -n "$CFLAGS"; then > for d in $CFLAGS ; do > if test "X$d" != "X-g"; then > CFLAGS_temp="$CFLAGS_temp $d" > fi > done > CFLAGS=$CFLAGS_temp > fi > CXXFLAGS_temp="" > if test -n "$CXXFLAGS"; then > for d in $CXXFLAGS ; do > if test "X$d" != "X-g"; then > CXXFLAGS_temp="$CXXFLAGS_temp $d" > fi > done > CXXFLAGS=$CXXFLAGS_temp > fi > > FCFLAGS_temp="" > if test -n "$FCFLAGS"; then > for d in $FCFLAGS ; do > if test "X$d" != "X-g"; then > FCFLAGS_temp="$FCFLAGS_temp $d" > fi > done > FCFLAGS=$FCFLAGS_temp > fi > > CONFIG_MODE=production > AM_CFLAGS="$AM_CFLAGS $PROD_CFLAGS -O3" > AM_CPPFLAGS="$AM_CPPFLAGS $PROD_CPPFLAGS -O3" > AM_CXXFLAGS="$AM_CXXFLAGS $PROD_CXXFLAGS -O3" > AM_FCFLAGS="$AM_FCFLAGS $PROD_FCFLAGS -O3" > ;; > X-g|X-debug) > enable_production="debug" > AC_MSG_RESULT([development]) > CONFIG_MODE=development > AM_CFLAGS="$AM_CFLAGS $DEBUG_CFLAGS -g " > AM_CPPFLAGS="$AM_CPPFLAGS $DEBUG_CPPFLAGS -g " > AM_CXXFLAGS="$AM_CXXFLAGS $DEBUG_CXXFLAGS -g " > AM_FCFLAGS="$AM_FCFLAGS $DEBUG_FCFLAGS -g " > ;; > X-pg|X-profile) > enable_production="profile" > AC_MSG_RESULT([profile]) > CONFIG_MODE=profile > AM_CFLAGS="$AM_CFLAGS $PROFILE_CFLAGS -pg" > AM_CPPFLAGS="$AM_CPPFLAGS $PROFILE_CPPFLAGS -pg" > AM_CXXFLAGS="$AM_CXXFLAGS $PROFILE_CXXFLAGS -pg" > AM_FCFLAGS="$AM_FCFLAGS $PROFILE_FCFLAGS -pg" > ;; > *) > enable_production="user-defined" > AC_MSG_RESULT([user-defined]) > CONFIG_MODE="$X-enableval" > ;; > esac > > > > > > > > > > # > ====================================================================== > # Need to force largefile settings on MINGW > # > ====================================================================== > case "`uname`" in > MINGW*) > mingw=yes > AC_DEFINE([_FILE_OFFSET_BITS], [64], [Force manually on Windows]) > AC_DEFINE([fopen], [fopen64], [Need to replace fopen?]) > AC_DEFINE([fseeko], [fseeko64], [Need to replace fseeko?]) > AC_DEFINE([ftello], [ftello64], [Need to replace ftello?]) > ;; > *) > mingw=no > ;; > esac > > AM_CONDITIONAL([MINGW], [test "$mingw" == "yes"]) > > > # ********************************************************************** > # > ====================================================================== > # DETECT_SUNCC ([ACTION-IF-YES], [ACTION-IF-NO]) > # > # check if this is the Sun Studio compiler, and if so run the ACTION-IF-YES > # sets the $SUNCC variable to "yes" or "no" > # > ====================================================================== > AC_DEFUN([DETECT_SUNCC], > [ > SUNCC="no" > AC_MSG_CHECKING([for Sun cc in use]) > AC_RUN_IFELSE( > [AC_LANG_PROGRAM([], [# > #ifdef __SUNPRO_C > return 0; > #else > return 1; > #endif > ]) > ],[ > AC_MSG_RESULT([yes]) > [$1] > SUNCC="yes" > ], [ > AC_MSG_RESULT([no]) > [$2] > ]) > ]) > > DETECT_SUNCC([CFLAGS="-mt $CFLAGS"], []) > > > # > ====================================================================== > # Check for -lpthread > # > ====================================================================== > AC_CHECK_LIB(pthread, pthread_create,, > AC_CHECK_LIB(pthread, __pthread_create,, > AC_CHECK_LIB(pthread, __pthread_create_system,, > AC_CHECK_LIB(c_r, pthread_create,, > AC_CHECK_LIB(c, pthread_create,, > AC_MSG_ERROR("could not find thread > libraries")))))) > > > > # > ====================================================================== > # Check for HDF > # > ====================================================================== > AC_MSG_CHECKING([HDF installation]) > AC_ARG_VAR([HDF_PREFIX], [HDF prefix]) > > HDF_FINE="yes" > if test -z "$HDF_PREFIX"; then > if test -f "/usr/local/include/hdf.h"; then > HDF_PREFIX="/usr/local" > hdfinc="-I$HDF_PREFIX/include" > > elif test -f "/usr/include/hdf/hdf.h"; then # Debian based systems > HDF_PREFIX="/usr" > hdfinc="-I/usr/include/hdf/" > > else > # echo "FATAL ERROR: HDF not found" > # echo "Can't compile the codes without HDF" > HDF_FINE="no" > # exit 1 > fi > else > hdfinc="-I$HDF_PREFIX/include" > fi > > > hdflnk="-L$HDF_PREFIX/lib -lmfhdf -ldf -ljpeg -lz" > AC_SUBST(hdfinc) > AC_SUBST(hdflnk) > #echo > #echo " include: $hdfinc" > #echo " libs: $hdflnk" > echo $HDF_FINE > > > # > ====================================================================== > # Check for TCL > # > ====================================================================== > AC_MSG_CHECKING([TCL installation]) > AC_ARG_VAR([TCL_PREFIX], [TCL prefix]) > AC_ARG_VAR([TCL_VERSION], [TCL version]) > > test -z "$TCL_PREFIX" && TCL_PREFIX="$HOME/apps /usr/local /usr" > test -z "$TCL_VERSION" && TCL_VERSION="8.5 8.4 8.3" > > TCL_FINE="yes" > tclinc="" > for pre in $TCL_PREFIX > do > for vers in $TCL_VERSION > do > if test -n "`test -d $pre/lib && ls $pre/lib | grep tcl$vers`"; then > if test -f "$pre/include/tcl$vers/tcl.h"; then > TCL_PREFIX=$pre > TCL_VERSION=$vers > tclinc="-I$pre/include/tcl$vers" > break > elif test -f "$pre/include/tcl.h"; then > TCL_PREFIX=$pre > TCL_VERSION=$vers > tclinc="-I$pre/include" > break > fi > fi > done > if test -n "$tclinc"; then break; fi > done > if test -z "$tclinc"; then > # echo "FATAL ERROR: TCL not found" > # echo "WARNING: TCL not found" > # echo "WARNING: check code need TCL" > TCL_FINE="no" > # exit 1 > fi > tcllnk="-L$TCL_PREFIX/lib -ltcl$TCL_VERSION -ltk$TCL_VERSION" > AC_SUBST(tclinc) > AC_SUBST(tcllnk) > #echo > #echo " include: $tclinc" > #echo " libs: $tcllnk" > echo $TCL_FINE > > > # > ====================================================================== > # Check for plplot > # > ====================================================================== > AC_MSG_CHECKING([plplot installation]) > AC_ARG_VAR([PLPLOT_PREFIX], [plplot prefix]) > > PLPLOT_FINE="yes" > if test -z "$PLPLOT_PREFIX"; then > plrender="`which plrender`" > PLPLOT_PREFIX="`dirname $plrender`/.." > fi > if test -f "$PLPLOT_PREFIX/bin/plplot-config"; then > plplot_config="env PATH=$PLPLOT_PREFIX/bin:$PATH plplot-config" > else > plplot_config="pkg-config plplot" > fi > plplotinc="`$plplot_config --cflags`" > plplotlnk="`$plplot_config --libs`" > AC_SUBST(plplotinc) > AC_SUBST(plplotlnk) > #echo > #echo " include: $plplotinc" > #echo " libs: $plplotlnk" > echo $PLPLOT_FINE > > > # > ====================================================================== > # Check for Xaw - stub > # > ====================================================================== > XAW_FINE="yes" > Xawinc="" > Xawlnk="-lXaw" > AC_SUBST(Xawinc) > AC_SUBST(Xawlnk) > echo $XAW_FINE > > > # > ====================================================================== > # Check for MKL > # > ====================================================================== > AC_MSG_CHECKING([MKL installation]) > > MKL_FINE="yes" > if test -f "/c/Intel/MKL/10.2.3.029/include/mkl_dfti.h"; then > mkl=/c/Intel/MKL/10.2.3.029 > mkllib=$mkl/ia32/lib > mkllnk="$mkllib/mkl_intel_c.dll.a $mkllib/mkl_sequential.dll.a > $mkllib/mkl_core.dll.a -lm" > elif test -f "/opt/intel/mkl/10.2.3.029/include/mkl_dfti.h"; then > mkl=/opt/intel/mkl/10.2.3.029 > mkllib=$mkl/lib/em64t > # SUN Compiler doesn't like -lpthread > # mkllnk="-L$mkllib -R$mkllib -Wl,--start-group -lmkl_intel_lp64 - > lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm" > mkllnk="-L$mkllib -R$mkllib -Wl,--start-group -lmkl_intel_lp64 - > lmkl_sequential -lmkl_core -Wl,--end-group -lm" > elif test -f "/opt/intel/mkl/9.0/include/mkl_dfti.h"; then > mkl=/opt/intel/mkl/9.0 > mkllib=$mkl/lib/em64t > # SUN Compiler doesn't like -lpthread > # mkllnk="-L$mkllib -R$mkllib -lmkl -lpthread -lm" > mkllnk="-L$mkllib -R$mkllib -lmkl -lm" > else > # echo "MKL not found" > MKL_FINE="no" > #echo "FATAL ERROR: MKL not found" > #exit 1 > fi > AC_SUBST(mkl) > AC_SUBST(mkllib) > AC_SUBST(mkllnk) > echo $MKL_FINE > > > # > ====================================================================== > # Check for MPI > # > ====================================================================== > AC_MSG_CHECKING([MPI installation]) > AC_ARG_VAR([MPI_PREFIX], [MPI prefix]) > > MPI_FINE="yes" > if test -z "$MPI_PREFIX"; then > if test -f "/usr/include/mpi.h"; then > MPI_PREFIX="/usr" > mpiinc="-I$MPI_PREFIX/include" > > elif test -f "/usr/include/mpich2/mpi.h"; then # Debian based systems > MPI_PREFIX="/usr" > mpiinc="-I/usr/include/mpich2" > > elif test -f "/usr/lib/openmpi/include/mpi.h"; then # OPENMP > MPI_PREFIX="/usr" > mpiinc="-I/usr/lib/openmpi/include" > > else > echo "FATAL ERROR: MPI not found" > echo "Can't compile the codes without MPI" > > MPI_FINE="no" > # exit 1 > fi > else > mpiinc="-I$MPI_PREFIX/include" > fi > > mpilnk="-L$MPI_PREFIX/lib -lmpi" > AC_SUBST(mpiinc) > AC_SUBST(mpilnk) > echo $MPI_FINE > > > # > ====================================================================== > # Check for FFTW > # > ====================================================================== > AC_MSG_CHECKING([FFTW installation]) > AC_ARG_VAR([FFTW_PREFIX], [FFTW prefix]) > > FFTW_FINE="yes" > if test -z "$FFTW_PREFIX"; then > if test -f "/usr/include/fftw3.h"; then > FFTW_PREFIX="/usr" > > else > echo "WARNING: FFTW not found" > echo "Can't compile the codes without FFTW" > > FFTW_FINE="no" > # exit 1 > fi > fi > > fftwinc="-I$FFTW_PREFIX/include" > fftwlnk="-L$FFTW_PREFIX/lib -lfftw3" > AC_SUBST(fftwinc) > AC_SUBST(fftwlnk) > echo $FFTW_FINE > > > # > ====================================================================== > # Check if standalone enabled > # > ====================================================================== > AC_MSG_CHECKING([whether to build standalone libraries]) > AC_ARG_ENABLE([standalone], > [AC_HELP_STRING([--enable-standalone], > [Enable standalone libraries [default=no]])], > [STANDALONE=$enableval], > [STANDALONE=no]) > > if test "X$STANDALONE" = "Xyes"; then > echo "yes" > AC_CONFIG_COMMANDS([patch_libtool], [build-aux/patch_libtool.sh]) > dota=".a" > else > echo "no" > dota=".la" > fi > AC_SUBST(dota) > > # Define _GNU_SOURCE > AC_DEFINE([_GNU_SOURCE], [], [Find 'round' on Linux]) > > # Checks for header files. > AC_HEADER_STDC > AC_CHECK_HEADERS([stdlib.h string.h]) > > # Checks for typedefs, structures, and compiler characteristics. > AC_TYPE_MODE_T > AC_TYPE_SIZE_T > > # Checks for library functions. > AC_FUNC_ERROR_AT_LINE > AC_FUNC_FSEEKO > AC_FUNC_MALLOC > AC_CHECK_FUNCS([floor memmove sqrt strrchr]) > > > > > > > # > ====================================================================== > # OUTPUT STUFF > # > ====================================================================== > PRINT() { > echo "$1" > echo "$1" 1>>all.settings > } > > PRINT_PLAIN() { > echo $ECHO_N "$1$ECHO_C" > echo $ECHO_N "$1$ECHO_C" 1>>all.settings > } > > PRINT_N() { > echo $ECHO_N "$1 : $ECHO_C" > echo $ECHO_N "$1 : $ECHO_C" 1>>all.settings > } > PRINT_NN() { > echo $ECHO_N "$1 $ECHO_C" > echo $ECHO_N "$1 $ECHO_C" 1>>all.settings > } > IF_YES_NO() { > if test $# -lt 1; then > PRINT "No" > return > else > while test $# -gt 0; do > if test "$1" != "yes"; then > PRINT "No" > # PRINT $2 > return > fi > shift > done > fi > PRINT "Yes" > } > IF_LIB_FOUND_YES_NO() { > #IF_YES_NO $1 > if test "X$1" == "Xyes"; then > # PRINT_N "Found in" > PRINT_NN $2 > PRINT_NN $3 > PRINT_NN $4 > PRINT "" > else > PRINT "Not found" > fi > > } > > > # > ====================================================================== > PRINT "" > PRINT " Configure Summary" > PRINT " =================" > PRINT "" > PRINT "Compiling Options:" > PRINT "------------------" > > #PRINT_N " Debug Modus" > #IF_YES_NO "$ENABLE_DEBUG" > #IF_YES_NO "$ENABLE_PROFILING" > #IF_YES_NO "$ENABLE_PROFILING" > > PRINT_N " Compilation Mode " > case "X-$enable_production" in > X-yes) PRINT "Production" ;; > X-no) PRINT "Development" ;; > X-profile) PRINT "Profile" ;; > *) PRINT "$enable_production" ;; > esac > > PRINT_N " CFLAGS / AM CFLAGS " > PRINT "$CFLAGS / $AM_CFLAGS" > > PRINT_N " CPPFLAGS / AM CPPFLAGS " > PRINT "$CPPFLAGS / $AM_CPPFLAGS" > > PRINT_N " FCFLAGS / AM FCFLAGS " > PRINT "$FCFLAGS / $AM_FCFLAGS" > > PRINT_N " LDFLAGS " > PRINT "$LDFLAGS" > > # > ====================================================================== > PRINT "" > PRINT "Used Libraries:" > PRINT "----------------" > > PRINT_N " HDF5" > #IF_YES_NO "$HDF_FINE" > IF_LIB_FOUND_YES_NO $HDF_FINE $hdfinc $hdflnk > > PRINT_N " TCL" > #IF_YES_NO "$TCL_FINE" > IF_LIB_FOUND_YES_NO $TCL_FINE $tclinc $tcllnk > > PRINT_N " MKL" > #IF_YES_NO "$MKL_FINE" > IF_LIB_FOUND_YES_NO $MKL_FINE $mkl $mkllib $mkllnk > > PRINT_N " PLPLOT" > #IF_YES_NO "$PLPLOT_FINE" > IF_LIB_FOUND_YES_NO $PLPLOT_FINE $plplotinc $plplotlnk > > PRINT_N " Xaw" > #IF_YES_NO "$XAW_FINE" > IF_LIB_FOUND_YES_NO $XAW_FINE $Xawlinc $Xawlnk > > PRINT_N " MPI" > #IF_YES_NO "$MPI_FINE" > IF_LIB_FOUND_YES_NO $MPI_FINE $mpiinc $mpilnk > > PRINT_N " FFTW" > #IF_YES_NO "$FFTW_FINE" > IF_LIB_FOUND_YES_NO $FFTW_FINE $fftwinc $fftwlnk > > > # > ====================================================================== > PRINT "" > PRINT "Compiling Codes:" > PRINT "----------------" > > # ---> COMMON <--- > if test "X$HDF_FINE" == "Xno" || test "X$MPI_FINE" == "Xno" || test > "X$FFTW_FINE" == "Xno"; then > COMMON_COMPILING="no" > fi > PRINT_N " common" > PRINT_NN "$COMMON_COMPILING " > PRINT_N "use" > PRINT_NN "HDF, MPI, FFTW " > PRINT_N "missing" > if test "X$HDF_FINE" == "Xno"; then > PRINT_NN "HDF" > fi > if test "X$MPI_FINE" == "Xno"; then > PRINT_NN "MPI" > fi > if test "X$FFTW_FINE" == "Xno"; then > PRINT_NN "FFTW" > fi > PRINT "" > > # ---> CHECK <--- > if test "X$HDF_FINE" == "Xno" || test "X$TCL_FINE" == "Xno" || test > "X$PLPLOT_FINE" == "Xno" || test "X$Xaw_FINE" == "Xno"; then > CHECK_COMPILING="no" > fi > PRINT_N " check" > PRINT_NN "$CHECK_COMPILING " > PRINT_N "use" > PRINT_NN "HDF, TCL, PLPLOT, Xaw " > PRINT_N "missing" > if test "X$HDF_FINE" == "Xno"; then > PRINT_NN "HDF" > fi > if test "X$TCL_FINE" == "Xno"; then > PRINT_NN "TCL" > fi > if test "X$PLPLOT_FINE" == "Xno"; then > PRINT_NN "PLPLOT" > fi > if test "X$Xaw_FINE" == "Xno"; then > PRINT_NN "Xaw" > fi > > PRINT "" > > # ---> TYR <--- > if test "X$HDF_FINE" == "Xno" || test "X$MPI_FINE" == "Xno" || test > "X$FFTW_FINE" == "Xno"; then > TYR_COMPILING="no" > fi > PRINT_N " TYR" > PRINT_NN "$TYR_COMPILING " > PRINT_N "use" > PRINT_NN "HDF, MPI, FFTW " > PRINT_N "missing" > if test "X$HDF_FINE" == "Xno"; then > PRINT_NN "HDF" > fi > if test "X$MPI_FINE" == "Xno"; then > PRINT_NN "MPI" > fi > if test "X$FFTW_FINE" == "Xno"; then > PRINT_NN "FFTW" > fi > PRINT "" > > # ---> CYTO <--- > if test "X$HDF_FINE" == "Xno" || test "X$MPI_FINE" == "Xno" || test > "X$FFTW_FINE" == "Xno"; then > CYTO_COMPILING="no" > fi > PRINT_N " cyto" > PRINT_NN "$CYTO_COMPILING " > PRINT_N "use" > PRINT_NN "HDF, MPI, FFTW " > PRINT_N "missing" > if test "X$HDF_FINE" == "Xno"; then > PRINT_NN "HDF" > fi > if test "X$MPI_FINE" == "Xno"; then > PRINT_NN "MPI" > fi > if test "X$FFTW_FINE" == "Xno"; then > PRINT_NN "FFTW" > fi > PRINT "" > > > # ---> HW2D <--- > if test "X$HDF_FINE" == "Xno" || test "X$MPI_FINE" == "Xno" || test > "X$FFTW_FINE" == "Xno"; then > HW2D_COMPILING="no" > fi > PRINT_N " hw2d" > PRINT_NN "$HW2D_COMPILING " > PRINT_N "use" > PRINT_NN "HDF, MPI, FFTW " > PRINT_N "missing" > if test "X$HDF_FINE" == "Xno"; then > PRINT_NN "HDF" > fi > if test "X$MPI_FINE" == "Xno"; then > PRINT_NN "MPI" > fi > if test "X$FFTW_FINE" == "Xno"; then > PRINT_NN "FFTW" > fi > PRINT "" > PRINT "" > > > PRINT "" > # > ====================================================================== > # Create automake conditionals to tell automake makefiles which directories > # need to be compiled > # > ====================================================================== > > AM_CONDITIONAL([BUILD_COMMON], [test "X$COMMON_COMPILING" = "Xyes"]) > AM_CONDITIONAL([BUILD_CHECK], [test "X$CHECK_COMPILING" = "Xyes"]) > AM_CONDITIONAL([BUILD_TYR], [test "X$TYR_COMPILING" = "Xyes"]) > AM_CONDITIONAL([BUILD_CYTO], [test "X$CYTO_COMPILING" = "Xyes"]) > AM_CONDITIONAL([BUILD_MATHIAS_CYTO], [test "X$MATHIAS_CYTO_COMPILING" = > "Xyes"]) > AM_CONDITIONAL([BUILD_HW2D], [test "X$HW2D_COMPILING" = "Xyes"]) > > > > AC_CONFIG_FILES([Makefile]) > > if test "X$COMMON_COMPILING" == "Xyes"; then > AC_CONFIG_FILES([common/Makefile]) > else > echo "Makefile for common is not written" > fi > > if test "X$CHECK_COMPILING" == "Xyes"; then > AC_CONFIG_FILES([check/Makefile]) > else > echo "Makefile for check is not written" > fi > > if test "X$TYR_COMPILING" == "Xyes"; then > AC_CONFIG_FILES([TYR/Makefile]) > else > echo "Makefile for TYR is not written" > fi > > if test "X$CYTO_COMPILING" == "Xyes"; then > AC_CONFIG_FILES([cyto/src/Makefile]) > else > echo "Makefile for cyto is not written" > fi > > if test "X$MATHIAS_CYTO_COMPILING" == "Xyes"; then > AC_CONFIG_FILES([cyto/mathias/src/Makefile]) > else > echo "Makefile for cyto-Mathias is not written" > fi > > if test "X$HW2D_COMPILING" == "Xyes"; then > AC_CONFIG_FILES([hw2d/Makefile]) > else > echo "Makefile for hw2d is not written" > fi > > AC_OUTPUT > -- "Man muß noch Chaos in sich haben, um einen tanzenden Stern gebären zu können." - F. Nietzsche (Also sprach Zarathustra) ************************************************************************ PhD Mathias Hoffmann Risø DTU - Plasma Physics and Technology Programme Tel. (+45) 4677 4531 http://www.mathias-hoffmann.info ************************************************************************