📄 configure.ac
字号:
# Process this file with autoconf to produce a configure script.AC_PREREQ(2.59)AC_INIT(blitz, 0.9, blitz-bugs@oonumerics.org)AC_CONFIG_AUX_DIR(config)AC_CONFIG_SRCDIR(blitz/blitz.h)AC_CONFIG_HEADERS(blitz/config.h)AC_CANONICAL_TARGETAM_INIT_AUTOMAKE([foreign 1.9 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])# C++ compilerAC_PROG_CXX([xlc++ xlC icpc icc pathCC cxx aCC c++ CC g++ pgCC KCC FCC])AC_LANG(C++)AC_CXX_FLAGS_PRESET# Option to disable Fortran (benchmarks will not compile)AC_MSG_CHECKING([whether to enable Fortran compilation for benchmark codes])AC_ARG_ENABLE(fortran, AS_HELP_STRING([--enable-fortran],[Enable Fortran compilation]),,[ enable_fortran="yes"])AC_MSG_RESULT([$enable_fortran])AM_CONDITIONAL(FORTRAN_ENABLED, [test $enable_fortran = yes])# Fortran compilerif test $enable_fortran = yes; then AC_PROG_F77([xlf ifort ifc pathf90 f77 g77 g95 gfortran pgf77 fort77]) AC_PROG_FC([xlf90 ifort ifc pathf90 f90 g95 gfortran pgf90]) AC_FORTRAN_FLAGS_PRESET AC_LANG_PUSH(Fortran 77) AC_F77_LIBRARY_LDFLAGS AC_LANG_POP(Fortran 77) AC_LANG_PUSH(Fortran) AC_FC_LIBRARY_LDFLAGS if test -n "$FC"; then AC_FC_FREEFORM(,FC=) fi if test -n "$FC"; then AC_FC_SRCEXT(f90,,FC=) fi AC_LANG_POP(Fortran)fiAM_CONDITIONAL(F90_COMPILER, [test -n "$FC"])# Prefix config macros with BZ_ and create compiler-specific bzconfig.hAC_SET_COMPILER_SPECIFIC_HEADER# Doxygen documentationAC_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_SHAREDAC_PROG_LIBTOOLAC_CHECK_FUNC([sin],,[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_OPTIMIZEAC_CXX_ENABLE_DEBUG# autoconf replacement of bzconfigAC_CHECK_CXX_FEATURES# Summarize variablesAC_ENV# Process the Makefile.in'sAC_CONFIG_FILES([ Makefile bin/Makefile blitz/Makefile blitz/array/Makefile blitz/generate/Makefile blitz/meta/Makefile random/Makefile lib/Makefile testsuite/Makefile examples/Makefile doc/Makefile doc/examples/Makefile doc/stencils/Makefile doc/doxygen/Makefile doc/doxygen/Doxyfile ])# Benchmarks require Fortran compilerif test $enable_fortran = yes; thenAC_CONFIG_FILES([ benchmarks/Makefile benchmarks/plot_benchmarks.m ])fi# Obsolete makefiles## demos/Makefile# compiler/Makefile# manual/Makefile# manual/examples/Makefile# manual/stencils/Makefile# src/Makefile AX_CREATE_PKGCONFIG_INFOAC_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_CONFIGAC_INFO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -