Page MenuHomeHEPForge

configure.ac
No OneTemporary

configure.ac

dnl $Id: configure.ac 317 2010-04-18 00:31:03Z ohl $
dnl configure.ac -- Configuration script for VAMP
dnl =======================================================================
dnl Process this file with autoconf to produce a configure script.
dnl =======================================================================
dnl
dnl Copyright (C) 1999-2016 by
dnl Wolfgang Kilian <kilian@physik.uni-siegen.de>
dnl Thorsten Ohl <ohl@physik.uni-wuerzburg.de>
dnl Juergen Reuter <juergen.reuter@desy.de>
dnl with contributions from
dnl Fabian Bach <fabian.bach@t-online.de>
dnl Bijan Chokoufe <bijan.chokoufe@desy.de>
dnl Christian Speckner <cnspeckn@googlemail.com>
dnl Marco Sekulla <marco.sekulla@kit.edu>
dnl Christian Weiss <christian.weiss@desy.de>
dnl Felix Braam, Sebastian Schmidt,
dnl Hans-Werner Boschmann, Daniel Wiesler
dnl
dnl WHIZARD is free software; you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl
dnl WHIZARD is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl =======================================================================
dnl Environment variables that can be set by the user:
dnl FC Fortran compiler
dnl FCFLAGS Fortran compiler flags
dnl =======================================================================
dnl
dnl Start configuration
AC_INIT([vamp],[2.3.0])
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([1.11 color-tests parallel-tests])
AM_MAKE_INCLUDE
########################################################################
### Package-specific initialization
WO_CONFIGURE_SECTION([Start of package configuration])
### Further version information
PACKAGE_DATE="July 21 2016"
PACKAGE_STATUS="release"
AC_SUBST(PACKAGE_DATE)
AC_SUBST(PACKAGE_STATUS)
AC_MSG_NOTICE([Package name: AC_PACKAGE_NAME()])
AC_MSG_NOTICE([Version: AC_PACKAGE_VERSION()])
AC_MSG_NOTICE([Date: $PACKAGE_DATE])
AC_MSG_NOTICE([Status: $PACKAGE_STATUS])
########################################################################
### Required programs and checks
###---------------------------------------------------------------------
### GNU Tools
WO_CONFIGURE_SECTION([Generic tools])
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_PROG_MKDIR_P
LT_INIT
LT_PREREQ([2.3.0b])
AC_PATH_PROG([M4],[m4])
########################################################################
### Enable the distribution tools
### (default: disabled, to speed up compilation)
AC_ARG_ENABLE([distribution],
[AS_HELP_STRING([--enable-distribution],
[build the distribution incl. all docu (developers only) [[no]]])])
AC_CACHE_CHECK([whether we want to build the distribution],
[wo_cv_distribution],
[dnl
if test "$enable_distribution" = "yes"; then
wo_cv_distribution=yes
else
wo_cv_distribution=no
fi])
AM_CONDITIONAL([DISTRIBUTION],
[test "$enable_distribution" = "yes"])
########################################################################
# VAMP options for the configure script
########################################################################
VAMP_WITH_OPENMP=false
AC_ARG_WITH([openmp],
[ --with-openmp Use OpenMP.
NB: currently the code might run slower and burn
more cycles at the same time.],
[case "$withval" in
yes)
VAMP_WITH_OPENMP=true
if test "$ac_cv_prog_fc_openmp" = "unsupported"; then
VAMP_WITH_OPENMP=false;
AC_MSG_ERROR([--with-openmp requested, but OpenMP unavailable.])
fi
if test "$enable_openmp" = "no"; then
VAMP_WITH_OPENMP=false;
AC_MSG_ERROR([--with-openmp overwritten by --disable-openmp.])
fi
;;
*) VAMP_WITH_OPENMP=false
;;
esac])
AC_SUBST([VAMP_WITH_OPENMP])
AM_CONDITIONAL([VAMP_WITH_OPENMP], [test "$VAMP_WITH_OPENMP" = "true"])
if test "$VAMP_WITH_OPENMP" = "true"; then
AC_MSG_RESULT([OpenMP support activated.])
fi
AC_ARG_ENABLE([fc_mpi],
[ --enable-fc-mpi Build MPI support],
[case "${enableval}" in
yes) fc_mpi=true ;;
no) fc_mpi=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-fc-mpi]) ;;
esac],[fc_mpi=false])
AM_CONDITIONAL([FC_MPI], [test x$fc_mpi = xtrue])
###---------------------------------------------------------------------
### Noweb
WO_CONFIGURE_SECTION([Checks for 'noweb' system])
WO_PROG_NOWEB
###---------------------------------------------------------------------
### LaTeX
WO_CONFIGURE_SECTION([Checks for 'LaTeX' system])
### Determine whether LaTeX is present
AC_PROG_LATEX()
AC_PROG_DVIPS()
AC_PROG_PDFLATEX()
AC_PROG_MAKEINDEX()
AC_PROG_PS2PDF()
AC_PROG_EPSPDF()
AC_PROG_EPSTOPDF()
AC_PROG_SUPP_PDF()
AC_PROG_GZIP()
AC_PATH_PROG(ACROREAD,acroread,false)
AC_PATH_PROG(GHOSTVIEW,gv ghostview,false)
AC_PATH_PROG(DOT,dot,false)
### Determine whether Metapost is present
AC_PROG_MPOST()
########################################################################
### Fortran
WO_CONFIGURE_SECTION([Fortran compiler checks])
user_FCFLAGS="${FCFLAGS}"
AC_PROG_FC()
AC_FC_SRCEXT([f90])
WO_FC_GET_VENDOR_AND_VERSION()
### Veto against gfortran 4.5/4.6
WO_FC_VETO_GFORTRAN_456()
WO_FC_CHECK_FLUSH
WO_FC_CHECK_ISO_FORTRAN_ENV
WO_FC_MODULE_FILE([FC_MODULE_NAME], [FC_MODULE_EXT], [$FC], [f90])
WO_FC_CHECK_PROCEDURE_POINTERS()
WO_FC_CHECK_OO_FEATURES()
WO_FC_CHECK_TR19767()
WO_FC_CONFIGURE_KINDS([src/kinds.f90])
WO_FC_SET_OPENMP()
WO_FC_SET_PROFILING()
########################################################################
### Wrapup
WO_CONFIGURE_SECTION([Finalize configuration])
AC_CONFIG_FILES([
Makefile
src/Makefile
share/Makefile
share/doc/Makefile
tests/Makefile])
AC_OUTPUT

File Metadata

Mime Type
text/x-m4
Expires
Mon, Jan 20, 9:23 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4242465
Default Alt Text
configure.ac (6 KB)

Event Timeline