This commit is contained in:
Dave Goodwin 2003-11-17 15:19:11 +00:00
parent 0004e6ca42
commit d0677a7f43
7 changed files with 1818 additions and 861 deletions

View file

@ -1,4 +1,4 @@
/* ../config.h. Generated by configure. */
/* ../config.h. Generated automatically by configure. */
//
// Run the 'configure' script to generate 'config.h' from this input file.
//
@ -47,7 +47,7 @@ typedef int ftnlen; // Fortran hidden string length type
// The configure script defines this if the operatiing system is Mac
// OS X, This used to add some Mac-specific directories to the default
// data file search path.
#define DARWIN 1
/* #undef DARWIN */
//--------- Cantera --------------

View file

@ -44,6 +44,10 @@ typedef int ftnlen; // Fortran hidden string length type
#define LAPACK_NAMES_LOWERCASE
#define LAPACK_FTN_TRAILING_UNDERSCORE
// The configure script defines this if the operatiing system is Mac
// OS X, This used to add some Mac-specific directories to the default
// data file search path.
/* #undef DARWIN */
//--------- Cantera --------------

2497
config/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,19 @@ AC_DEFINE(NDEBUG)
ac_sys_system=`uname -s`
ac_sys_release=`uname -r`
AC_PREFIX_DEFAULT([/usr/local])
SHARED_CTLIB=0
OS_IS_DARWIN=0
OS_IS_WIN=0
mex_ext=mexglx
case $ac_sys_system in
Darwin*) OS_IS_DARWIN=1; mex_ext=mexmac;;
CYGWIN*) OS_IS_WIN=1; mex_ext=dll;;
esac
#AC_PREFIX_DEFAULT([/usr/local])
local_inst=1
if test "x${prefix}" = "xNONE"; then
prefix=${ac_default_prefix}
@ -26,7 +38,7 @@ if test "x${prefix}" = "xNONE"; then
if test ! -d ${prefix}; then
echo
echo "********************************************************************"
echo "Installation directory /usr/local does not exist. Either create it and"
echo "Installation directory ${prefix} does not exist. Either create it and"
echo "re-run configure, or specify another installation directory using the"
echo "prefix option:"
echo " ./configure --prefix=<installation_directory>"
@ -39,8 +51,56 @@ echo "Cantera will be installed in ${prefix}"
AC_SUBST(prefix)
AC_SUBST(local_inst)
CANTERA_LIBDIR=$prefix/lib/cantera
CANTERA_INCDIR=$prefix/include/cantera
ctversion=${CANTERA_VERSION}
if test -z $local_inst; then
ct_libdir=${prefix}/lib/cantera-${ctversion}
ct_incdir=${prefix}/include/cantera
ct_bindir=${prefix}/bin
ct_datadir=${prefix}/share/cantera/${ctversion}/data
ct_demodir=${prefix}/share/cantera/${ctversion}/demos
ct_tutdir=${prefix}/share/cantera/${ctversion}/tutorials
ct_docdir=${prefix}/share/cantera/${ctversion}/doc
ct_dir=${prefix}/share/cantera/${ctversion}
ct_mandir=${prefix}/share/man
else
ct_libdir=${prefix}/lib/cantera-${ctversion}
ct_incdir=${prefix}/include/cantera
ct_bindir=${prefix}/bin
ct_datadir=${prefix}/share/cantera/${ctversion}/data
ct_demodir=${prefix}/share/cantera/${ctversion}/demos
ct_tutdir=${prefix}/share/cantera/${ctversion}/tutorials
ct_docdir=${prefix}/share/cantera/${ctversion}/doc
ct_dir=${prefix}/share/cantera/${ctversion}
ct_mandir=${prefix}/share/man
fi
AC_SUBST(ct_libdir)
AC_SUBST(ct_incdir)
AC_SUBST(ct_bindir)
AC_SUBST(ct_datadir)
AC_SUBST(ct_demodir)
AC_SUBST(ct_mandir)
AC_SUBST(ct_tutdir)
AC_SUBST(ct_docdir)
AC_SUBST(ct_dir)
CANTERA_DATADIR=$datadir/cantera/data
#
# Cantera directory structure
#
if test -z "$CANTERA_ROOT"; then CANTERA_ROOT=$prefix/cantera; fi
AC_SUBST(CANTERA_LIBDIR)
AC_SUBST(CANTERA_INCDIR)
if test -z "$CT_TOOLS_BIN"; then CT_TOOLS_BIN=$CANTERA_ROOT/tools/bin; fi
AC_SUBST(CT_TOOLS_BIN)
AC_SUBST(CANTERA_BINDIR)
if test -z "$CANTERA_EXAMPLES_DIR"; then CANTERA_EXAMPLES_DIR=$CANTERA_ROOT/examples; fi
AC_SUBST(CANTERA_EXAMPLES_DIR)
AC_SUBST(CANTERA_DATADIR)
ctroot=`(cd ..;pwd)`
if test -z "$username"; then username=$USER; fi
@ -54,6 +114,10 @@ AC_CANONICAL_SYSTEM()
buildlib=$ctroot/build/lib/$target
AC_SUBST(buildlib)
if test -n "${OS_IS_DARWIN}"; then
AC_DEFINE(DARWIN)
fi
if test -z "$MAKE"; then MAKE='make'; fi
AC_SUBST(MAKE)
@ -224,25 +288,6 @@ fi
AC_SUBST(LOCAL_LIBS)
#
# Cantera directory structure
#
if test -z "$CANTERA_ROOT"; then CANTERA_ROOT=$prefix/cantera; fi
#AC_SUBST(CANTERA_ROOT)
#if test -z "$CANTERA_LIBDIR"; then CANTERA_LIBDIR=$CANTERA_ROOT/lib; fi
AC_SUBST(CANTERA_LIBDIR)
#if test -z "$CANTERA_INCDIR"; then CANTERA_INCDIR=$CANTERA_ROOT/include; fi
AC_SUBST(CANTERA_INCDIR)
if test -z "$CT_TOOLS_BIN"; then CT_TOOLS_BIN=$CANTERA_ROOT/tools/bin; fi
AC_SUBST(CT_TOOLS_BIN)
if test -z "$CANTERA_BINDIR"; then CANTERA_BINDIR=$CANTERA_ROOT/bin; fi
AC_SUBST(CANTERA_BINDIR)
if test -z "$CANTERA_EXAMPLES_DIR"; then CANTERA_EXAMPLES_DIR=$CANTERA_ROOT/examples; fi
AC_SUBST(CANTERA_EXAMPLES_DIR)
if test -z "$CANTERA_DATA_DIR"; then CANTERA_DATA_DIR=$CANTERA_ROOT/data; fi
AC_SUBST(CANTERA_DATA_DIR)
#-------------------------------------------------
# Language Interfaces
#-------------------------------------------------
@ -283,13 +328,12 @@ AC_SUBST(BUILD_PYTHON)
# Matlab Interface
#
BUILD_MATLAB=0
if test "$BUILD_MATLAB_TOOLBOX" != "n"; then
if test -z "$MATLAB_CMD"; then
AC_PATH_PROG(MATLAB_CMD, matlab, "none")
if test "$MATLAB_CMD" != "none"; then BUILD_MATLAB=1; BUILD_CLIB=1; fi
fi
fi
#if test "$BUILD_MATLAB_TOOLBOX" != "n"; then
# if test -z "$MATLAB_CMD"; then
# AC_PATH_PROG(MATLAB_CMD, matlab, "none")
# if test "$MATLAB_CMD" != "none"; then BUILD_MATLAB=1; BUILD_CLIB=1; fi
# fi
#fi
AC_SUBST(BUILD_MATLAB)
AC_SUBST(BUILD_CLIB)
@ -318,16 +362,10 @@ if test -n "$G77"; then
FFLAGS=$FFLAGS' -fno-second-underscore'
fi
SHARED_CTLIB=0
OS_IS_DARWIN=0
OS_IS_WIN=0
mex_ext=mexglx
dnl Checks for libraries.
AC_F77_LIBRARY_LDFLAGS()
case $ac_sys_system in
Darwin*) FLIBS='-lg2c -lgcc'; SHARED_CTLIB=0; OS_IS_DARWIN=1; mex_ext=mexmac;;
CYGWIN*) OS_IS_WIN=1; mex_ext=dll;;
Darwin*) FLIBS='-lg2c -lgcc'; SHARED_CTLIB=0;;
esac
AC_SUBST(FLIBS)
AC_SUBST(OS_IS_DARWIN)
@ -431,6 +469,7 @@ AC_OUTPUT(../Cantera/Makefile \
../tools/Makefile \
../tools/src/Makefile \
../tools/src/sample.mak \
../tools/src/finish_install.py \
../tools/templates/f77/demo.mak \
../tools/templates/cxx/demo.mak \
../tools/testtools/Makefile \

View file

@ -3,17 +3,25 @@
# $Author$
# $Date$
#
all: kernel
all: apps
install: templates-install apps-install
install: templates-install apps-install man-install
kernel:
apps:
cd src; @MAKE@
cd testtools; @MAKE@
apps-install:
@INSTALL@ -d @prefix@/bin
@INSTALL@ ../bin/ck2cti @prefix@/bin
@INSTALL@ -d @ct_bindir@
@INSTALL@ ../bin/ck2cti @ct_bindir@
man-install:
@INSTALL@ -d @ct_mandir@/man1
@INSTALL@ man/ck2cti.1 @ct_mandir@/man1
uninstall:
rm -r -f @ct_mandir@/man1/ck2cti.1
rm -f @ct_bindir@/ck2cti
clean:
$(RM) *.*~
@ -21,7 +29,7 @@ clean:
cd testtools; @MAKE@ clean
docs:
cd doxygen/Cantera; doxygen Cantera.cfg
cd doc; doxygen Cantera.cfg
depends:
cd src; @MAKE@ depends

View file

@ -1,22 +1,20 @@
import sys, os, string
prefix = sys.argv[1]
pycmd = sys.argv[2]
localinst = 1
if prefix == '-':
prefix = '/usr/local'
if prefix == '/usr/local':
localinst = 0
prefix = '/usr/local'
pycmd = '/usr/bin/python' # sys.argv[2]
localinst = 0
icyg = prefix.find('/cygdrive/')
if icyg == 0:
prefix = prefix[10]+':'+prefix[11:]
bindir = prefix+'/bin'
libdir = prefix+'/lib/cantera'
hdrdir = prefix+'/include/cantera'
bindir = '/usr/local/bin'
libdir = '/usr/local/lib/cantera-1.5.3'
hdrdir = '/usr/local/include/cantera'
demodir = '/usr/local/share/cantera/1.5.3/demos'
datadir = '/usr/local/share/cantera/1.5.3/data'
ctdir = '/usr/local/share/cantera/1.5.3'
f = open(prefix+'/cantera/setup_cantera','w')
f = open(ctdir+'/setup_cantera','w')
f.write('#!/bin/sh\n')
f.write('LD_LIBRARY_PATH='+libdir+':$LD_LIBRARY_PATH\nexport LD_LIBRARY_PATH\n')
f.write('PATH='+bindir+':$PATH\nexport PATH\n')
@ -53,9 +51,9 @@ if localinst:
print 'error'
f.close()
f = open(bindir+'/mixmaster.py','w')
f.write("""from MixMaster import MixMaster
MixMaster()
# write the script to run MixMaster
f = open(bindir+'/mixmaster','w')
f.write('#!/bin/sh\n'+pycmd+"""w -c 'from MixMaster import MixMaster; MixMaster()
""")
f.close()
@ -79,8 +77,8 @@ File locations:
applications """+bindir+"""
library files """+libdir+"""
C++ headers """+hdrdir+"""
demos """+prefix+"""/cantera/demos
data files """+prefix+"""/cantera/data
demos """+demodir+"""
data files """+datadir+"""
Matlab toolbox """+prefix+"""/matlab/toolbox/cantera/cantera
Matlab demos """+prefix+"""/matlab/toolbox/cantera/cantera-demos

View file

@ -370,10 +370,11 @@ INPUT = ../../Cantera/src
# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp
# *.h++ *.idl *.odl *.cs *.php *.php3 *.inc
FILE_PATTERNS = *.h \
*.cpp \
*.c \
*.txt
FILE_PATTERNS = Constituents.h
#*.h \
# *.cpp \
# *.c \
# *.txt
# The RECURSIVE tag can be used to turn specify whether or not subdirectories
# should be searched for input files as well. Possible values are YES and NO.