diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-04-25 22:44:07 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-04-25 22:44:07 (GMT) |
commit | 8146d97138d678e02e92eb2d644cee2634a75dab (patch) | |
tree | b2a9db5fdd3ab246fb90b7b21f38ee256f18d638 /fortran/configure.in | |
parent | 43d1e71c2bb274d6db13e25ad47227234386b1b7 (diff) | |
download | hdf5-8146d97138d678e02e92eb2d644cee2634a75dab.zip hdf5-8146d97138d678e02e92eb2d644cee2634a75dab.tar.gz hdf5-8146d97138d678e02e92eb2d644cee2634a75dab.tar.bz2 |
[svn-r5267] Purpose:
Update
Description:
Added a conversion of the H5config_fortran.h file to
H5pubconf_fortran.h so as to keep with the HDF5 format of using H5_
as a prefix for HAVE_* macros.
Platforms tested:
Linux
Diffstat (limited to 'fortran/configure.in')
-rw-r--r-- | fortran/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fortran/configure.in b/fortran/configure.in index f8bb515..98045f0 100644 --- a/fortran/configure.in +++ b/fortran/configure.in @@ -24,6 +24,21 @@ AC_CONFIG_HEADER([src/H5config_fortran.h]) AC_CONFIG_AUX_DIR([../bin]) +AC_OUTPUT_COMMANDS([ + echo "creating src/H5pubconf_fortran.h" + sed 's/#define /#define H5_/' < src/H5config_fortran.h |\ + sed 's/#undef /#undef H5_/' > pubconf_fortran + + if test ! -f src/H5pubconf_fortran.h; then + /bin/mv -f pubconf_fortran src/H5pubconf_fortran.h + elif (diff pubconf_fortran src/H5pubconf_fortran.h >/dev/null); then + /bin/rm -f pubconf_fortran + echo "src/H5pubconf_fortran.h is unchanged" + else + /bin/mv -f pubconf_fortran src/H5pubconf_fortran.h + fi +]) + AC_CANONICAL_HOST AC_SUBST(CPPFLAGS) AC_SUBST(FFLAGS) |