[cantera+autotools]: adding some macros so configure script will run
This commit is contained in:
parent
5812f8675e
commit
157f41624a
2 changed files with 84 additions and 0 deletions
38
m4/common/ax_split_version.m4
Normal file
38
m4/common/ax_split_version.m4
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# ===========================================================================
|
||||
# http://www.gnu.org/software/autoconf-archive/ax_split_version.html
|
||||
# ===========================================================================
|
||||
#
|
||||
# SYNOPSIS
|
||||
#
|
||||
# AX_SPLIT_VERSION
|
||||
#
|
||||
# DESCRIPTION
|
||||
#
|
||||
# Splits a version number in the format MAJOR.MINOR.POINT into its
|
||||
# separate components.
|
||||
#
|
||||
# Sets the variables.
|
||||
#
|
||||
# LICENSE
|
||||
#
|
||||
# Copyright (c) 2008 Tom Howard <tomhoward@users.sf.net>
|
||||
#
|
||||
# Copying and distribution of this file, with or without modification, are
|
||||
# permitted in any medium without royalty provided the copyright notice
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
#serial 9
|
||||
|
||||
AC_DEFUN([AX_SPLIT_VERSION],[
|
||||
AC_REQUIRE([AC_PROG_SED])
|
||||
AX_MAJOR_VERSION=`echo "$VERSION" | $SED 's/\([[^.]][[^.]]*\).*/\1/'`
|
||||
AX_MINOR_VERSION=`echo "$VERSION" | $SED 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'`
|
||||
AX_POINT_VERSION=`echo "$VERSION" | $SED 's/[[^.]][[^.]]*.[[^.]][[^.]]*.\(.*\)/\1/'`
|
||||
AC_MSG_CHECKING([Major version])
|
||||
AC_MSG_RESULT([$AX_MAJOR_VERSION])
|
||||
AC_MSG_CHECKING([Minor version])
|
||||
AC_MSG_RESULT([$AX_MINOR_VERSION])
|
||||
AC_MSG_CHECKING([Point version])
|
||||
AC_MSG_RESULT([$AX_POINT_VERSION])
|
||||
])
|
||||
46
m4/config_summary.m4
Normal file
46
m4/config_summary.m4
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# SYNOPSIS
|
||||
#
|
||||
# Summarizes configuration settings.
|
||||
#
|
||||
# AX_SUMMARIZE_CONFIG([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
#
|
||||
# DESCRIPTION
|
||||
#
|
||||
# Outputs a summary of relevant configuration settings.
|
||||
#
|
||||
# LAST MODIFICATION
|
||||
#
|
||||
# $Id: config_summary.m4 22758 2011-08-05 22:05:54Z nick $
|
||||
#
|
||||
|
||||
AC_DEFUN([AX_SUMMARIZE_CONFIG],
|
||||
[
|
||||
|
||||
echo
|
||||
echo '----------------------------------- SUMMARY -----------------------------------'
|
||||
echo
|
||||
echo Package version................. : $PACKAGE-$VERSION
|
||||
echo
|
||||
echo C++ compiler.................... : $CXX
|
||||
echo C++ compiler flags.............. : $CXXFLAGS
|
||||
echo C compiler...................... : $CC
|
||||
echo C compiler flags................ : $CFLAGS
|
||||
echo Fortran compiler................ : $FC
|
||||
echo Fortran compiler flags.......... : $FCFLAGS
|
||||
echo Install dir..................... : $prefix
|
||||
echo Build user...................... : $USER
|
||||
echo Build host...................... : $BUILD_HOST
|
||||
echo Configure date.................. : $BUILD_DATE
|
||||
echo Build architecture.............. : $BUILD_ARCH
|
||||
echo SVN revision number............. : $BUILD_VERSION
|
||||
echo
|
||||
echo
|
||||
echo '-------------------------------------------------------------------------------'
|
||||
|
||||
echo
|
||||
echo Configure complete, now type \'make\' and then \'make install\'.
|
||||
echo
|
||||
echo To verify your verification library, type \'make check\'
|
||||
echo to run a suite of regression tests.
|
||||
|
||||
])
|
||||
Loading…
Add table
Reference in a new issue