1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(blitz, 0.8, blitz-bugs@oonumerics.org)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(blitz/blitz.h)
AC_CONFIG_HEADERS(blitz/config.h)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([foreign 1.8 dist-bzip2 nostdinc])
# Avoid generating makefile rules to rebuild maintainer-only files by
# default. Maintainers may override this default and generate these
# makefile rules using the `--enable-maintainer-mode' configure option.
AM_MAINTAINER_MODE
# Blitz++ configure utility, generated by autoconf.
#
# If you want to modify this file, make sure you are editing
# configure.ac, and not configure.
AC_MSG_NOTICE([
Configuring $PACKAGE_STRING for $target
])
# Fortran compiler
AC_LANG(Fortran 77)
AC_PROG_F77([xlf ifort ifc f77 g77 pgf77 fort77])
AC_LANG(Fortran)
AC_PROG_FC([xlf90 ifort ifc f90 pgf90])
if test x"$FC" != x; then
AC_FC_FREEFORM(,FC=)
fi
if test x"$FC" != x; then
AC_FC_SRCEXT(f90,,FC=)
fi
AC_FORTRAN_FLAGS_PRESET
# C++ compiler
AC_LANG(C++)
AC_PROG_CXX([xlc++ icpc icc xlC cxx aCC CC g++ pgCC KCC FCC])
AC_CXX_FLAGS_PRESET
# Prefix config macros with BZ_ and create compiler-specific bzconfig.h
AC_SET_COMPILER_SPECIFIC_HEADER
# Doxygen documentation
AC_PROG_DOXYGEN
# Check if the script was called with --enable-64bit
# and if so modify the compilation flags.
AC_COMPILERS_ENABLE_64BITS
# Disable shared library building by default (use --enable-shared to enable)
AM_DISABLE_SHARED
AC_PROG_LIBTOOL
AC_CHECK_LIB(m, sin)
AC_LIB_BLAS
# Check if the script was called with --enable-optimize or
# --enable-debug, and if so modify the compilation flags.
AC_CXX_ENABLE_OPTIMIZE
AC_CXX_ENABLE_DEBUG
# autoconf replacement of bzconfig
AC_CHECK_CXX_FEATURES
# Create the lib subdirectory by hand, since it has no Makefile.in
if test ! -d lib ; then
mkdir lib
fi
# Summarize variables
AC_ENV
# Process the Makefile.in's
AC_CONFIG_FILES([
Makefile
bin/Makefile
blitz/Makefile
blitz/array/Makefile
blitz/generate/Makefile
blitz/meta/Makefile
random/Makefile
lib/Makefile
testsuite/Makefile
examples/Makefile
benchmarks/Makefile
benchmarks/plot_benchmarks.m
doc/Makefile
doc/examples/Makefile
doc/stencils/Makefile
doc/doxygen/Makefile
doc/doxygen/Doxyfile
])
# Obsolete makefiles
#
# demos/Makefile
# compiler/Makefile
# manual/Makefile
# manual/examples/Makefile
# manual/stencils/Makefile
# src/Makefile
AX_CREATE_PKGCONFIG_INFO
AC_OUTPUT
# At some point in the future it would be nice to collect
# information about machines, OSes and compilers which
# people are using. Obviously this has to be handled in
# a sensitive way. Current idea: send the output
# of uname -a, $(target) and $(bz_compiler) via an
# anonymous remailer. Prompt the user and give them
# a chance to override this behaviour.
# AC_SEND_CONFIG
AC_INFO
|