mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r27794] Reintegration merge of features/autotools_rework branch with trunk
NOTES: - Developers will have to run autogen.sh before building with the autotools. - autogen.sh takes the -p option to mimic the old bin/reconfigure behavior. - The generated error, overflow and version headers have been left in place. - The generated H5LT parser code has also been left in place. - There are no changes for CMake users at this time. Tested on: h5committest
This commit is contained in:
commit
9af344117c
15
BRANCH.txt
Normal file
15
BRANCH.txt
Normal file
@ -0,0 +1,15 @@
|
||||
autotools_rework
|
||||
|
||||
The purpose of this branch is to make changes to the autotools files,
|
||||
particularly configure.ac. This will remove a lot of old cruft and update
|
||||
the input files. This effort was started in January 2015 and should be
|
||||
completed within the year.
|
||||
|
||||
This branch tracks the trunk.
|
||||
|
||||
Dana Robinson and Allen Byrne are the owners of this branch.
|
||||
|
||||
This branch should be closed when the bulk of the autotools work is
|
||||
complete and has been merged into the trunk and 1.8 branch. This
|
||||
work should be completed by mid-2015.
|
||||
|
93
MANIFEST
93
MANIFEST
@ -27,22 +27,16 @@
|
||||
./MANIFEST
|
||||
./Makefile.dist
|
||||
./Makefile.am
|
||||
./Makefile.in
|
||||
./m4/ltsugar.m4 _DO_NOT_DISTRIBUTE_
|
||||
./m4/libtool.m4 _DO_NOT_DISTRIBUTE_
|
||||
./m4/ltversion.m4 _DO_NOT_DISTRIBUTE_
|
||||
./m4/lt~obsolete.m4 _DO_NOT_DISTRIBUTE_
|
||||
./m4/ltoptions.m4 _DO_NOT_DISTRIBUTE_
|
||||
./m4/aclocal_cxx.m4
|
||||
./m4/aclocal_fc.m4
|
||||
./m4/aclocal_cxx.m4
|
||||
./README.txt
|
||||
./aclocal.m4
|
||||
./BRANCH.txt
|
||||
./acsite.m4
|
||||
./configure
|
||||
./autogen.sh _DO_NOT_DISTRIBUTE_
|
||||
./configure.ac
|
||||
|
||||
./bin/COPYING
|
||||
./bin/bbrelease _DO_NOT_DISTRIBUTE_
|
||||
./bin/bbrelease _DO_NOT_DISTRIBUTE_
|
||||
./bin/buildhdf5
|
||||
./bin/checkapi _DO_NOT_DISTRIBUTE_
|
||||
./bin/checkposix _DO_NOT_DISTRIBUTE_
|
||||
@ -50,38 +44,27 @@
|
||||
./bin/chkcopyright _DO_NOT_DISTRIBUTE_
|
||||
./bin/chkmanifest
|
||||
./bin/cmakehdf5
|
||||
./bin/compile
|
||||
./bin/config.guess
|
||||
./bin/config.sub
|
||||
./bin/debug-ohdr _DO_NOT_DISTRIBUTE_
|
||||
./bin/dependencies
|
||||
./bin/depcomp
|
||||
./bin/deploy
|
||||
./bin/distdep
|
||||
./bin/errors _DO_NOT_DISTRIBUTE_
|
||||
./bin/genltanalyze _DO_NOT_DISTRIBUTE_
|
||||
./bin/gcov_script _DO_NOT_DISTRIBUTE_
|
||||
./bin/h5vers
|
||||
./bin/install-sh
|
||||
./bin/iostats
|
||||
./bin/locate_sw
|
||||
./bin/ltmain.sh
|
||||
./bin/make_err
|
||||
./bin/make_overflow
|
||||
./bin/make_vers
|
||||
./bin/makehelp
|
||||
./bin/missing
|
||||
./bin/mkdirs
|
||||
./bin/mkinstalldirs
|
||||
./bin/newer
|
||||
./bin/reconfigure _DO_NOT_DISTRIBUTE_
|
||||
./bin/output_filter.sh
|
||||
./bin/README _DO_NOT_DISTRIBUTE_
|
||||
./bin/release
|
||||
./bin/runtest _DO_NOT_DISTRIBUTE_
|
||||
./bin/snapshot
|
||||
./bin/snapshot_version _DO_NOT_DISTRIBUTE_
|
||||
./bin/test-driver
|
||||
./bin/timekeeper _DO_NOT_DISTRIBUTE_
|
||||
./bin/trace
|
||||
./bin/yodconfigure
|
||||
@ -119,7 +102,6 @@
|
||||
|
||||
./examples/Attributes.txt
|
||||
./examples/Makefile.am
|
||||
./examples/Makefile.in
|
||||
./examples/h5_chunk_read.c
|
||||
./examples/h5_compound.c
|
||||
./examples/h5_crtgrpd.c
|
||||
@ -159,12 +141,9 @@
|
||||
|
||||
./fortran/COPYING
|
||||
./fortran/Makefile.am
|
||||
./fortran/Makefile.in
|
||||
|
||||
./fortran/robodoc.rc
|
||||
|
||||
./fortran/examples/Makefile.am
|
||||
./fortran/examples/Makefile.in
|
||||
./fortran/examples/compound.f90
|
||||
./fortran/examples/compound_fortran2003.f90
|
||||
./fortran/examples/compound_complex_fortran2003.f90
|
||||
@ -174,7 +153,9 @@
|
||||
./fortran/examples/h5_crtgrp.f90
|
||||
./fortran/examples/h5_crtgrpar.f90
|
||||
./fortran/examples/h5_crtgrpd.f90
|
||||
./hl/fortran/examples/exlite.f90
|
||||
./fortran/examples/h5_extend.f90
|
||||
./hl/fortran/examples/ex_ds1.f90
|
||||
./fortran/examples/h5_rdwt.f90
|
||||
./fortran/examples/h5_subset.f90
|
||||
./fortran/examples/hyperslab.f90
|
||||
@ -188,6 +169,7 @@
|
||||
./fortran/examples/nested_derived_type.f90
|
||||
./fortran/examples/rwdset_fortran2003.f90
|
||||
|
||||
./fortran/src/H5_buildiface.F90
|
||||
./fortran/src/H5_f.c
|
||||
./fortran/src/H5_ff.F90
|
||||
./fortran/src/H5Af.c
|
||||
@ -216,32 +198,29 @@
|
||||
./fortran/src/H5Tff.F90
|
||||
./fortran/src/H5Zf.c
|
||||
./fortran/src/H5Zff.F90
|
||||
./fortran/src/H5config_f.inc.cmake
|
||||
./fortran/src/H5config_f.inc.in
|
||||
./fortran/src/H5fort_type_defines.h.in
|
||||
./fortran/src/H5f90.h
|
||||
./fortran/src/H5f90global.F90
|
||||
./fortran/src/H5f90i.h
|
||||
./fortran/src/H5f90kit.c
|
||||
./fortran/src/H5f90proto.h
|
||||
./fortran/src/H5_buildiface.F90
|
||||
./fortran/src/H5match_types.c
|
||||
./fortran/src/HDF5.F90
|
||||
./fortran/src/H5config_f.inc.in
|
||||
./fortran/src/H5config_f.inc.cmake
|
||||
./fortran/src/H5fort_type_defines.h.in
|
||||
./fortran/src/Makefile.am
|
||||
./fortran/src/Makefile.in
|
||||
./fortran/src/README
|
||||
./fortran/src/README_DEVELOPEMENT _DO_NOT_DISTRIBUTE_
|
||||
./fortran/src/h5fc.in
|
||||
./fortran/src/hdf5_fortrandll.def.in
|
||||
|
||||
|
||||
./fortran/test/Makefile.am
|
||||
./fortran/test/Makefile.in
|
||||
./fortran/test/fflush1.F90
|
||||
./fortran/test/fflush2.F90
|
||||
./fortran/test/fortranlib_test.F90
|
||||
./fortran/test/fortranlib_test_1_8.F90
|
||||
./fortran/test/fortranlib_test_F03.F90
|
||||
./fortran/test/H5_test_buildiface.F90
|
||||
./fortran/test/t.c
|
||||
./fortran/test/t.h
|
||||
./fortran/test/tf.F90
|
||||
@ -271,9 +250,9 @@
|
||||
./fortran/test/tHDF5_1_8.F90
|
||||
./fortran/test/tHDF5_F03.F90
|
||||
./fortran/test/tHDF5.F90
|
||||
./fortran/test/H5_test_buildiface.F90
|
||||
|
||||
./fortran/testpar/Makefile.am
|
||||
./fortran/testpar/Makefile.in
|
||||
./fortran/testpar/ptest.f90
|
||||
./fortran/testpar/hyper.f90
|
||||
./fortran/testpar/mdset.f90
|
||||
@ -292,7 +271,6 @@
|
||||
|
||||
./c++/COPYING
|
||||
./c++/Makefile.am
|
||||
./c++/Makefile.in
|
||||
|
||||
./c++/examples/chunks.cpp
|
||||
./c++/examples/compound.cpp
|
||||
@ -313,7 +291,6 @@
|
||||
./c++/examples/testh5c++.sh.in
|
||||
./c++/examples/writedata.cpp
|
||||
./c++/examples/Makefile.am
|
||||
./c++/examples/Makefile.in
|
||||
./c++/examples/run-c++-ex.sh.in
|
||||
|
||||
./c++/src/H5AbstractDs.cpp
|
||||
@ -376,11 +353,10 @@
|
||||
./c++/src/H5VarLenType.cpp
|
||||
./c++/src/H5VarLenType.h
|
||||
./c++/src/Makefile.am
|
||||
./c++/src/Makefile.in
|
||||
./c++/src/RM_stylesheet.css
|
||||
./c++/src/cpp_doc_config
|
||||
./c++/src/footer.html
|
||||
./c++/src/h5c++.in
|
||||
./c++/src/footer.html
|
||||
./c++/src/header.html
|
||||
./c++/src/header_files/filelist.xml
|
||||
./c++/src/header_files/hdf_logo.jpg
|
||||
@ -390,7 +366,6 @@
|
||||
|
||||
./c++/test/H5srcdir_str.h.in
|
||||
./c++/test/Makefile.am
|
||||
./c++/test/Makefile.in
|
||||
./c++/test/dsets.cpp
|
||||
./c++/test/h5cpputil.cpp
|
||||
./c++/test/h5cpputil.h
|
||||
@ -436,18 +411,17 @@
|
||||
./src/H5dbg.c
|
||||
./src/H5api_adpt.h
|
||||
./src/H5err.txt
|
||||
./src/H5config.h.in
|
||||
./src/H5detect.c
|
||||
./src/H5make_libsettings.c
|
||||
./src/H5overflow.txt
|
||||
./src/H5overflow.h
|
||||
./src/H5overflow.txt
|
||||
./src/H5private.h
|
||||
./src/H5public.h
|
||||
./src/H5system.c
|
||||
./src/H5timer.c
|
||||
./src/H5trace.c
|
||||
./src/H5vers.txt
|
||||
./src/H5version.h
|
||||
./src/H5vers.txt
|
||||
./src/H5A.c
|
||||
./src/H5Abtree2.c
|
||||
./src/H5Adense.c
|
||||
@ -844,7 +818,6 @@
|
||||
./src/H5Zszip.c
|
||||
./src/H5Ztrans.c
|
||||
./src/Makefile.am
|
||||
./src/Makefile.in
|
||||
./src/hdf5.h
|
||||
./src/libhdf5.settings.in
|
||||
./src/H5win32defs.h
|
||||
@ -853,7 +826,6 @@
|
||||
./test/H5srcdir.h
|
||||
./test/H5srcdir_str.h.in
|
||||
./test/Makefile.am
|
||||
./test/Makefile.in
|
||||
./test/accum.c
|
||||
./test/app_ref.c
|
||||
./test/bad_compound.h5
|
||||
@ -1049,7 +1021,6 @@
|
||||
|
||||
./testpar/COPYING
|
||||
./testpar/Makefile.am
|
||||
./testpar/Makefile.in
|
||||
./testpar/t_cache.c
|
||||
./testpar/t_chunk_alloc.c
|
||||
./testpar/t_coll_chunk.c
|
||||
@ -1074,10 +1045,8 @@
|
||||
|
||||
./tools/COPYING
|
||||
./tools/Makefile.am
|
||||
./tools/Makefile.in
|
||||
|
||||
./tools/h5dump/Makefile.am
|
||||
./tools/h5dump/Makefile.in
|
||||
./tools/h5dump/h5dump.c
|
||||
./tools/h5dump/h5dump.h
|
||||
./tools/h5dump/h5dump_defines.h
|
||||
@ -1093,7 +1062,6 @@
|
||||
./tools/h5dump/binread.c
|
||||
|
||||
./tools/h5import/Makefile.am
|
||||
./tools/h5import/Makefile.in
|
||||
./tools/h5import/h5import.h
|
||||
./tools/h5import/h5import.c
|
||||
./tools/h5import/h5importtest.c
|
||||
@ -1152,7 +1120,6 @@
|
||||
|
||||
# h5diff sources
|
||||
./tools/h5diff/Makefile.am
|
||||
./tools/h5diff/Makefile.in
|
||||
./tools/h5diff/h5diff_common.c
|
||||
./tools/h5diff/h5diff_common.h
|
||||
./tools/h5diff/h5diff_main.c
|
||||
@ -1163,7 +1130,6 @@
|
||||
|
||||
# h5repack sources
|
||||
./tools/h5repack/Makefile.am
|
||||
./tools/h5repack/Makefile.in
|
||||
./tools/h5repack/dynlib_rpk.c
|
||||
./tools/h5repack/h5repack.sh.in
|
||||
./tools/h5repack/h5repack_plugin.sh.in
|
||||
@ -1181,20 +1147,17 @@
|
||||
|
||||
# h5ls sources
|
||||
./tools/h5ls/Makefile.am
|
||||
./tools/h5ls/Makefile.in
|
||||
./tools/h5ls/h5ls.c
|
||||
./tools/h5ls/testh5ls.sh.in
|
||||
|
||||
# h5copy sources
|
||||
./tools/h5copy/testh5copy.sh.in
|
||||
./tools/h5copy/Makefile.in
|
||||
./tools/h5copy/h5copy.c
|
||||
./tools/h5copy/h5copygentest.c
|
||||
./tools/h5copy/Makefile.am
|
||||
|
||||
|
||||
./tools/lib/Makefile.am
|
||||
./tools/lib/Makefile.in
|
||||
./tools/lib/h5diff.c
|
||||
./tools/lib/h5diff.h
|
||||
./tools/lib/h5diff_array.c
|
||||
@ -1221,7 +1184,6 @@
|
||||
./tools/lib/io_timer.h
|
||||
|
||||
./tools/misc/Makefile.am
|
||||
./tools/misc/Makefile.in
|
||||
./tools/misc/h5cc.in
|
||||
./tools/misc/h5debug.c
|
||||
./tools/misc/h5mkgrp.c
|
||||
@ -1238,7 +1200,6 @@
|
||||
|
||||
# h5stat sources
|
||||
./tools/h5stat/Makefile.am
|
||||
./tools/h5stat/Makefile.in
|
||||
./tools/h5stat/h5stat.c
|
||||
|
||||
# h5stat test files
|
||||
@ -2088,7 +2049,6 @@
|
||||
./tools/h5jam/h5jam.c
|
||||
./tools/h5jam/h5unjam.c
|
||||
./tools/h5jam/Makefile.am
|
||||
./tools/h5jam/Makefile.in
|
||||
./tools/h5jam/h5jamgentest.c
|
||||
./tools/h5jam/testh5jam.sh.in
|
||||
./tools/h5jam/tellub.c
|
||||
@ -2132,7 +2092,6 @@
|
||||
|
||||
./tools/perform/COPYING
|
||||
./tools/perform/Makefile.am
|
||||
./tools/perform/Makefile.in
|
||||
./tools/perform/build_h5perf_alone.sh
|
||||
./tools/perform/build_h5perf_serial_alone.sh
|
||||
./tools/perform/chunk.c
|
||||
@ -2157,9 +2116,7 @@
|
||||
# high level libraries
|
||||
./hl/COPYING
|
||||
./hl/Makefile.am
|
||||
./hl/Makefile.in
|
||||
./hl/examples/Makefile.am
|
||||
./hl/examples/Makefile.in
|
||||
./hl/examples/ex_ds1.c
|
||||
./hl/examples/ex_lite1.c
|
||||
./hl/examples/ex_lite2.c
|
||||
@ -2186,7 +2143,6 @@
|
||||
./hl/examples/run-hlc-ex.sh.in
|
||||
./hl/src/COPYING
|
||||
./hl/src/Makefile.am
|
||||
./hl/src/Makefile.in
|
||||
./hl/src/H5DO.c
|
||||
./hl/src/H5DOpublic.h
|
||||
./hl/src/H5DS.c
|
||||
@ -2197,11 +2153,11 @@
|
||||
./hl/src/H5IMprivate.h
|
||||
./hl/src/H5IMpublic.h
|
||||
./hl/src/H5LT.c
|
||||
./hl/src/H5LTanalyze.l
|
||||
./hl/src/H5LTanalyze.c
|
||||
./hl/src/H5LTparse.y
|
||||
./hl/src/H5LTanalyze.l
|
||||
./hl/src/H5LTparse.c
|
||||
./hl/src/H5LTparse.h
|
||||
./hl/src/H5LTparse.y
|
||||
./hl/src/H5LTprivate.h
|
||||
./hl/src/H5LTpublic.h
|
||||
./hl/src/H5PT.c
|
||||
@ -2214,7 +2170,6 @@
|
||||
./hl/test/COPYING
|
||||
./hl/test/H5srcdir_str.h.in
|
||||
./hl/test/Makefile.am
|
||||
./hl/test/Makefile.in
|
||||
./hl/test/dsdata.txt
|
||||
./hl/test/dslat.txt
|
||||
./hl/test/dslon.txt
|
||||
@ -2246,9 +2201,7 @@
|
||||
# tools
|
||||
./hl/tools/COPYING
|
||||
./hl/tools/Makefile.am
|
||||
./hl/tools/Makefile.in
|
||||
./hl/tools/gif2h5/Makefile.am
|
||||
./hl/tools/gif2h5/Makefile.in
|
||||
./hl/tools/gif2h5/decompress.c
|
||||
./hl/tools/gif2h5/gif.h
|
||||
./hl/tools/gif2h5/gif2hdf.c
|
||||
@ -2267,29 +2220,23 @@
|
||||
# hl fortran
|
||||
./hl/fortran/COPYING
|
||||
./hl/fortran/Makefile.am
|
||||
./hl/fortran/Makefile.in
|
||||
./hl/fortran/examples/Makefile.am
|
||||
./hl/fortran/examples/Makefile.in
|
||||
./hl/fortran/examples/ex_ds1.f90
|
||||
./hl/fortran/examples/exlite.f90
|
||||
./hl/fortran/examples/run-hlfortran-ex.sh.in
|
||||
./hl/fortran/src/hdf5_hl_fortrandll.def.in
|
||||
./hl/fortran/src/H5DSfc.c
|
||||
./hl/fortran/src/H5DSff.F90
|
||||
./hl/fortran/src/H5HL_buildiface.F90
|
||||
./hl/fortran/src/H5IMcc.c
|
||||
./hl/fortran/src/H5IMcc.h
|
||||
./hl/fortran/src/H5IMfc.c
|
||||
./hl/fortran/src/H5IMff.F90
|
||||
./hl/fortran/src/H5HL_buildiface.F90
|
||||
./hl/fortran/src/H5LTf90proto.h
|
||||
./hl/fortran/src/H5LTfc.c
|
||||
./hl/fortran/src/H5LTff.F90
|
||||
./hl/fortran/src/H5TBfc.c
|
||||
./hl/fortran/src/H5TBff.F90
|
||||
./hl/fortran/src/Makefile.am
|
||||
./hl/fortran/src/Makefile.in
|
||||
./hl/fortran/test/Makefile.am
|
||||
./hl/fortran/test/Makefile.in
|
||||
./hl/fortran/test/tstds.F90
|
||||
./hl/fortran/test/tstimage.F90
|
||||
./hl/fortran/test/tstlite.F90
|
||||
@ -2298,19 +2245,15 @@
|
||||
# hl c++
|
||||
./hl/c++/COPYING
|
||||
./hl/c++/Makefile.am
|
||||
./hl/c++/Makefile.in
|
||||
./hl/c++/examples/Makefile.am
|
||||
./hl/c++/examples/Makefile.in
|
||||
./hl/c++/examples/ptExampleFL.cpp
|
||||
./hl/c++/examples/run-hlc++-ex.sh.in
|
||||
./hl/c++/src/H5PacketTable.h
|
||||
./hl/c++/src/H5PacketTable.cpp
|
||||
./hl/c++/src/Makefile.am
|
||||
./hl/c++/src/Makefile.in
|
||||
./hl/c++/test/ptableTest.h
|
||||
./hl/c++/test/ptableTest.cpp
|
||||
./hl/c++/test/Makefile.am
|
||||
./hl/c++/test/Makefile.in
|
||||
|
||||
# CMake-specific Files
|
||||
./config/cmake/cacheinit.cmake
|
||||
|
1133
Makefile.in
1133
Makefile.in
File diff suppressed because it is too large
Load Diff
9774
aclocal.m4
vendored
9774
aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
84
acsite.m4
84
acsite.m4
@ -53,87 +53,3 @@ esac
|
||||
rm -rf conftest*[]dnl
|
||||
])# _AC_SYS_LARGEFILE_MACRO_VALUE
|
||||
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl AC_F9X_MODS()
|
||||
dnl
|
||||
dnl Check how F9X handles modules. This macro also checks which
|
||||
dnl command-line option to use to include the module once it's built.
|
||||
dnl
|
||||
AC_DEFUN(AC_F9X_MODS,
|
||||
[AC_MSG_CHECKING(what $FC does with modules)
|
||||
AC_LANG_PUSH(Fortran)
|
||||
|
||||
test -d conftestdir || mkdir conftestdir
|
||||
cd conftestdir
|
||||
rm -rf *
|
||||
|
||||
cat >conftest.$ac_ext <<EOF
|
||||
module module
|
||||
integer foo
|
||||
end module module
|
||||
EOF
|
||||
|
||||
eval $ac_compile
|
||||
modfiles=""
|
||||
F9XMODEXT=""
|
||||
|
||||
for f in conftest.o module.mod MODULE.mod module.M MODULE.M; do
|
||||
if test -f "$f" ; then
|
||||
modfiles="$f"
|
||||
|
||||
case "$f" in
|
||||
*.o) F9XMODEXT="o" ;;
|
||||
*.mod) F9XMODEXT="mod" ;;
|
||||
*.M) F9XMODEXT="M" ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
echo $modfiles 6>&1
|
||||
if test "$modfiles" = file.o; then
|
||||
echo $ac_n "checking whether $FC -em is saner""... $ac_c" 1>&6
|
||||
OLD_FCFLAGS=$FCFLAGS
|
||||
FCFLAGS="$FCFLAGS -em"
|
||||
eval $ac_compile
|
||||
modfiles=""
|
||||
for f in file.o module.mod MODULE.mod module.M MODULE.M; do
|
||||
test -f $f && modfiles="$f"
|
||||
done
|
||||
if test "$modfiles" = "file.o"; then
|
||||
FCFLAGS=$OLD_FCFLAGS
|
||||
echo no 6>&1
|
||||
else
|
||||
echo yes 6>&1
|
||||
fi
|
||||
fi
|
||||
cd ..
|
||||
|
||||
AC_MSG_CHECKING(how $FC finds modules)
|
||||
|
||||
for flag in "-I" "-M" "-p"; do
|
||||
cat >conftest.$ac_ext <<EOF
|
||||
program conftest
|
||||
use module
|
||||
end program conftest
|
||||
EOF
|
||||
|
||||
ac_compile='${FC-f90} $FCFLAGS ${flag}conftestdir -c conftest.$ac_ext 1>&AS_MESSAGE_LOG_FD'
|
||||
|
||||
if AC_TRY_EVAL(ac_compile); then
|
||||
F9XMODFLAG=$flag
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if test -n "$F9XMODFLAG"; then
|
||||
echo $F9XMODFLAG 1>&6
|
||||
FCFLAGS="$F9XMODFLAG. $FCFLAGS"
|
||||
else
|
||||
echo unknown 1>&6
|
||||
fi
|
||||
AC_SUBST(F9XMODFLAG)
|
||||
AC_SUBST(F9XMODEXT)
|
||||
rm -rf conftest*
|
||||
AC_LANG_POP(Fortran)
|
||||
])
|
||||
|
||||
|
458
autogen.sh
Executable file
458
autogen.sh
Executable file
@ -0,0 +1,458 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright by The HDF Group.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of HDF5. The full HDF5 copyright notice, including
|
||||
# terms governing use, modification, and redistribution, is contained in
|
||||
# the files COPYING and Copyright.html. COPYING can be found at the root
|
||||
# of the source code distribution tree; Copyright.html can be found at the
|
||||
# root level of an installed copy of the electronic document set and is
|
||||
# linked from the top-level documents page. It can also be found at
|
||||
# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have access
|
||||
# to either file, you may request a copy from help@hdfgroup.org.
|
||||
#
|
||||
|
||||
# A script to reconfigure autotools for HDF5, and to recreate other
|
||||
# generated files specifc to HDF5.
|
||||
#
|
||||
# IMPORTANT OS X NOTE
|
||||
#
|
||||
# If you are using OS X, you will probably not have the autotools
|
||||
# installed, even if you have the Xcode command-line tools. The
|
||||
# bison version you have installed may also have a bug that makes
|
||||
# it unable to process our input files.
|
||||
#
|
||||
# The easiest way to fix this is to install everything via Homebrew:
|
||||
#
|
||||
# http://brew.sh/
|
||||
#
|
||||
# After you install the base packages, install autoconf, automake,
|
||||
# libtool, and flex/bison.
|
||||
#
|
||||
# brew install autoconf
|
||||
# brew install automake
|
||||
# brew install libtool
|
||||
# brew install flex
|
||||
# brew install bison
|
||||
#
|
||||
# This only takes a few minutes. Note that libtool and libtoolize will
|
||||
# be glibtool and glibtoolize so as not to conflict with Apple's non-gnu
|
||||
# tools. This autogen.sh script handles this for you.
|
||||
#
|
||||
# END IMPORTANT OS X NOTE
|
||||
#
|
||||
# If you want to use a particular version of the autotools, the paths
|
||||
# to each tool can be overridden using the following environment
|
||||
# variables:
|
||||
#
|
||||
# HDF5_ACLOCAL
|
||||
# HDF5_AUTOHEADER
|
||||
# HDF5_AUTOMAKE
|
||||
# HDF5_AUTOCONF
|
||||
# HDF5_LIBTOOL
|
||||
# HDF5_M4
|
||||
# HDF5_FLEX
|
||||
# HDF5_BISON
|
||||
#
|
||||
# Note that aclocal will attempt to include libtool's share/aclocal
|
||||
# directory.
|
||||
#
|
||||
# This script takes two potential options:
|
||||
#
|
||||
# -p, --production
|
||||
#
|
||||
# When this is selected, the autotools versions are set to the paths
|
||||
# and versions used by The HDF Group to produce the released versions
|
||||
# of the library.
|
||||
#
|
||||
# NOTE: This is probably temporary. Once we update our dev machines
|
||||
# to have recent versions of the autotools this option will probably
|
||||
# be removed.
|
||||
#
|
||||
# -v, --verbose
|
||||
#
|
||||
# This emits some extra information, mainly tool versions.
|
||||
|
||||
echo
|
||||
echo "**************************"
|
||||
echo "* HDF5 autogen.sh script *"
|
||||
echo "**************************"
|
||||
echo
|
||||
|
||||
# Default is not production
|
||||
production=false
|
||||
|
||||
# Default is not verbose output
|
||||
verbose=false
|
||||
|
||||
optspec=":hpv-"
|
||||
while getopts "$optspec" optchar; do
|
||||
case "${optchar}" in
|
||||
-)
|
||||
case "${OPTARG}" in
|
||||
production)
|
||||
echo "Setting production mode..."
|
||||
echo
|
||||
production=true
|
||||
;;
|
||||
verbose)
|
||||
echo "Setting verbosity: high"
|
||||
echo
|
||||
verbose=true
|
||||
;;
|
||||
*)
|
||||
if [ "$OPTERR" = 1 ] && [ "${optspec:0:1}" != ":" ]; then
|
||||
echo "Unknown option --${OPTARG}" >&2
|
||||
fi
|
||||
;;
|
||||
esac;;
|
||||
h)
|
||||
echo "usage: $0 [-p|--production]"
|
||||
echo
|
||||
echo " -p Used by THG to ensure that particular versions"
|
||||
echo " of the autotools are used and hard-codes"
|
||||
echo " autotools paths to THG machines. Not for"
|
||||
echo " non-HDF-Group users!"
|
||||
echo
|
||||
echo " NOTE: Each autotool can be set via an environment variable."
|
||||
echo " These are documented inside this autogen.sh script."
|
||||
echo
|
||||
exit 0
|
||||
;;
|
||||
p)
|
||||
echo "Setting production mode..."
|
||||
echo
|
||||
production=true
|
||||
;;
|
||||
v)
|
||||
echo "Setting verbosity: high"
|
||||
echo
|
||||
verbose=true
|
||||
;;
|
||||
*)
|
||||
if [ "$OPTERR" != 1 ] || [ "${optspec:0:1}" = ":" ]; then
|
||||
echo "Non-option argument: '-${OPTARG}'" >&2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "$production" = true ] ; then
|
||||
|
||||
# Production mode
|
||||
#
|
||||
# Hard-code canonical HDF Group tool locations and ensure
|
||||
# version numbers are correct.
|
||||
|
||||
# Production versions of the tools
|
||||
AUTOCONF_VERSION="autoconf (GNU Autoconf) 2.69"
|
||||
AUTOMAKE_VERSION="automake (GNU automake) 1.14.1"
|
||||
AUTOHEADER_VERSION="autoheader (GNU Autoconf) 2.69"
|
||||
ACLOCAL_VERSION="aclocal (GNU automake) 1.14.1"
|
||||
LIBTOOL_VERSION="(GNU libtool) 2.4.2"
|
||||
M4_VERSION="m4 (GNU M4) 1.4.17"
|
||||
BISON_VERSION="bison (GNU Bison) 2.7"
|
||||
FLEX_VERSION="flex 2.5.37"
|
||||
|
||||
# If paths to tools are not specified, assume they are
|
||||
# located in /mnt/hdf/packages and set paths accordingly.
|
||||
if test -z ${HDF5_AUTOCONF}; then
|
||||
HDF5_AUTOCONF=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoconf
|
||||
fi
|
||||
if test -z ${HDF5_AUTOMAKE}; then
|
||||
HDF5_AUTOMAKE=/mnt/hdf/packages/automake/automake-1.14.1/bin/automake-1.14
|
||||
fi
|
||||
if test -z ${HDF5_AUTOHEADER}; then
|
||||
HDF5_AUTOHEADER=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoheader
|
||||
fi
|
||||
if test -z ${HDF5_ACLOCAL}; then
|
||||
HDF5_ACLOCAL=/mnt/hdf/packages/automake/automake-1.14.1/bin/aclocal-1.14
|
||||
fi
|
||||
if test -z ${HDF5_LIBTOOL}; then
|
||||
HDF5_LIBTOOL=/mnt/hdf/packages/libtool/libtool-2.4.2/bin/libtool
|
||||
fi
|
||||
if test -z ${HDF5_M4}; then
|
||||
HDF5_M4=/mnt/hdf/packages/m4/m4-1.4.17/bin/m4
|
||||
fi
|
||||
if test -z ${HDF5_BISON}; then
|
||||
HDF5_BISON=/usr/hdf/bin/bison
|
||||
fi
|
||||
if test -z ${HDF5_FLEX}; then
|
||||
HDF5_FLEX=/usr/hdf/bin/flex
|
||||
fi
|
||||
|
||||
# Check version numbers of all autotools against the "correct" versions
|
||||
AC_VERS=`${HDF5_AUTOCONF} --version 2>&1 | grep "^${AUTOCONF_VERSION}"`
|
||||
if test -z "${AC_VERS}"; then
|
||||
echo "${HDF5_AUTOCONF} version is not ${AUTOCONF_VERSION}"
|
||||
${HDF5_AUTOCONF} --version
|
||||
exit 1
|
||||
fi
|
||||
AM_VERS=`${HDF5_AUTOMAKE} --version 2>&1 | grep "^${AUTOMAKE_VERSION}"`
|
||||
if test -z "${AM_VERS}"; then
|
||||
echo "${HDF5_AUTOMAKE} version is not ${AUTOMAKE_VERSION}"
|
||||
${HDF5_AUTOMAKE} --version
|
||||
exit 1
|
||||
fi
|
||||
AH_VERS=`${HDF5_AUTOHEADER} --version 2>&1 | grep "^${AUTOHEADER_VERSION}"`
|
||||
if test -z "${AH_VERS}"; then
|
||||
echo "${HDF5_AUTOHEADER} version is not ${AUTOHEADER_VERSION}"
|
||||
${HDF5_AUTOHEADER} --version
|
||||
exit 1
|
||||
fi
|
||||
AL_VERS=`${HDF5_ACLOCAL} --version 2>&1 | grep "^${ACLOCAL_VERSION}"`
|
||||
if test -z "${AL_VERS}"; then
|
||||
echo "${HDF5_ACLOCAL} version is not ${ACLOCAL_VERSION}"
|
||||
${HDF5_ACLOCAL} --version
|
||||
exit 1
|
||||
fi
|
||||
LT_VERS=`${HDF5_LIBTOOL} --version 2>&1 | grep "${LIBTOOL_VERSION}"`
|
||||
if test -z "${LT_VERS}"; then
|
||||
echo "${HDF5_LIBTOOL} version is not ${LIBTOOL_VERSION}"
|
||||
${HDF5_LIBTOOL} --version
|
||||
exit 1
|
||||
fi
|
||||
M4_VERS=`${HDF5_M4} --version 2>&1 | grep "${M4_VERSION}"`
|
||||
if test -z "${M4_VERS}"; then
|
||||
echo "${HDF5_M4} version is not ${M4_VERSION}"
|
||||
${HDF5_M4} --version
|
||||
exit 1
|
||||
fi
|
||||
BI_VERS=`${HDF5_BISON} --version 2>&1 | grep "^${BISON_VERSION}"`
|
||||
if test -z "${BI_VERS}"; then
|
||||
echo "${HDF5_BISON} version is not ${BISON_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
FL_VERS=`${HDF5_FLEX} --version 2>&1 | grep "^${FLEX_VERSION}"`
|
||||
if test -z "${FL_VERS}"; then
|
||||
echo "${HDF5_FLEX} version is not ${FLEX_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
# Not in production mode
|
||||
#
|
||||
# If paths to autotools are not specified, use whatever the system
|
||||
# has installed as the default. We use 'which <tool>' to
|
||||
# show exactly what's being used.
|
||||
if test -z ${HDF5_AUTOCONF}; then
|
||||
HDF5_AUTOCONF=$(which autoconf)
|
||||
fi
|
||||
if test -z ${HDF5_AUTOMAKE}; then
|
||||
HDF5_AUTOMAKE=$(which automake)
|
||||
fi
|
||||
if test -z ${HDF5_AUTOHEADER}; then
|
||||
HDF5_AUTOHEADER=$(which autoheader)
|
||||
fi
|
||||
if test -z ${HDF5_ACLOCAL}; then
|
||||
HDF5_ACLOCAL=$(which aclocal)
|
||||
fi
|
||||
if test -z ${HDF5_LIBTOOL}; then
|
||||
case "`uname`" in
|
||||
Darwin*)
|
||||
# libtool on OS-X is non-gnu
|
||||
HDF5_LIBTOOL=$(which glibtool)
|
||||
;;
|
||||
*)
|
||||
HDF5_LIBTOOL=$(which libtool)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if test -z ${HDF5_M4}; then
|
||||
HDF5_M4=$(which m4)
|
||||
fi
|
||||
if test -z ${HDF5_BISON}; then
|
||||
HDF5_BISON=$(which bison)
|
||||
fi
|
||||
if test -z ${HDF5_FLEX}; then
|
||||
HDF5_FLEX=$(which flex)
|
||||
fi
|
||||
|
||||
fi # production
|
||||
|
||||
|
||||
# Make sure that these versions of the autotools are in the path
|
||||
AUTOCONF_DIR=`dirname ${HDF5_AUTOCONF}`
|
||||
LIBTOOL_DIR=`dirname ${HDF5_LIBTOOL}`
|
||||
M4_DIR=`dirname ${HDF5_M4}`
|
||||
BISON_DIR=`dirname ${HDF5_BISON}`
|
||||
FLEX_DIR=`dirname ${HDF5_FLEX}`
|
||||
PATH=${AUTOCONF_DIR}:${LIBTOOL_DIR}:${M4_DIR}:${FLEX_DIR}:${BISON_DIR}:$PATH
|
||||
|
||||
# Make libtoolize match the specified libtool
|
||||
case "`uname`" in
|
||||
Darwin*)
|
||||
# On OS X, libtoolize could be named glibtoolize or
|
||||
# libtoolize. Try the former first, then fall back
|
||||
# to the latter if it's not found.
|
||||
HDF5_LIBTOOLIZE="${LIBTOOL_DIR}/glibtoolize"
|
||||
if [ ! -f $HDF5_LIBTOOLIZE ] ; then
|
||||
HDF5_LIBTOOLIZE="${LIBTOOL_DIR}/libtoolize"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
HDF5_LIBTOOLIZE="${LIBTOOL_DIR}/libtoolize"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Run autotools in order
|
||||
#
|
||||
# When available, we use the --force option to ensure all files are
|
||||
# updated. This prevents the autotools from re-running to fix dependencies
|
||||
# during the 'make' step, which can be a problem if environment variables
|
||||
# were set on the command line during autogen invocation.
|
||||
|
||||
# Some versions of libtoolize will suggest that we add ACLOCAL_AMFLAGS
|
||||
# = '-I m4'. This is already done in commence.am, which is included
|
||||
# in Makefile.am. You can ignore this suggestion.
|
||||
|
||||
# LIBTOOLIZE
|
||||
libtoolize_cmd="${HDF5_LIBTOOLIZE} --copy --force"
|
||||
echo ${libtoolize_cmd}
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_LIBTOOLIZE} --version
|
||||
fi
|
||||
${libtoolize_cmd} || exit 1
|
||||
echo
|
||||
echo "NOTE: You can ignore the warning about adding -I m4."
|
||||
echo " We already do this in an included file."
|
||||
echo
|
||||
|
||||
# ACLOCAL
|
||||
if test -e "${LIBTOOL_DIR}/../share/aclocal" ; then
|
||||
aclocal_include="-I ${LIBTOOL_DIR}/../share/aclocal"
|
||||
fi
|
||||
aclocal_cmd="${HDF5_ACLOCAL} --force ${aclocal_include}"
|
||||
echo ${aclocal_cmd}
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_ACLOCAL} --version
|
||||
fi
|
||||
${aclocal_cmd} || exit 1
|
||||
echo
|
||||
|
||||
# AUTOHEADER
|
||||
autoheader_cmd="${HDF5_AUTOHEADER} --force"
|
||||
echo ${autoheader_cmd}
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_AUTOHEADER} --version
|
||||
fi
|
||||
${autoheader_cmd} || exit 1
|
||||
echo
|
||||
|
||||
# AUTOMAKE
|
||||
automake_cmd="${HDF5_AUTOMAKE} --add-missing --force-missing"
|
||||
echo ${automake_cmd}
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_AUTOMAKE} --version
|
||||
fi
|
||||
${automake_cmd} || exit 1
|
||||
echo
|
||||
|
||||
# AUTOCONF
|
||||
autoconf_cmd="${HDF5_AUTOCONF} --force"
|
||||
echo ${autoconf_cmd}
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_AUTOCONF} --version
|
||||
fi
|
||||
${autoconf_cmd} || exit 1
|
||||
echo
|
||||
|
||||
# Run scripts that process source.
|
||||
|
||||
# Run trace script
|
||||
# The trace script adds H5TRACE macros to library source files. It should
|
||||
# have no effect on files that don't have HDF5 API macros in them.
|
||||
echo
|
||||
echo "Running trace script:"
|
||||
bin/trace src/H5*.c || exit 1
|
||||
|
||||
# Run make_err
|
||||
# make_err automatically generates the H5E headers that create error message
|
||||
# types for HDF5.
|
||||
echo
|
||||
echo "Running error generation script:"
|
||||
bin/make_err src/H5err.txt || exit 1
|
||||
|
||||
# Run make_vers
|
||||
# make_vers automatically generates the public headers that define the API version
|
||||
# macros for HDF5.
|
||||
echo
|
||||
echo "Running API version generation script:"
|
||||
bin/make_vers src/H5vers.txt || exit 1
|
||||
|
||||
# Run make_overflow
|
||||
# make_overflow automatically generates macros for detecting overflows for type
|
||||
# conversion.
|
||||
echo
|
||||
echo "Running overflow macro generation script:"
|
||||
bin/make_overflow src/H5overflow.txt || exit 1
|
||||
|
||||
# Run flex and bison
|
||||
# automatically generates hl/src/H5LTanalyze.c and hl/src/H5LTparse.c
|
||||
# Note that, as of Xcode 6.1 (2015), the default bison version on OS X
|
||||
# is old enough to have the circular dependency bug. You'll have
|
||||
# to install a later version of bison. See the OS X note at the top
|
||||
# of this script.
|
||||
echo
|
||||
echo "Running flex/bison:"
|
||||
cd hl/src
|
||||
echo "Generate hl/src/H5LTparse.c from hl/src/H5LTparse.y"
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_BISON} --version
|
||||
fi
|
||||
${HDF5_BISON} -pH5LTyy -o H5LTparse.c -d H5LTparse.y
|
||||
|
||||
echo "Generate hl/src/H5LTanalyze.c from hl/src/H5LTanalyze.l"
|
||||
if [ "$verbose" = true ] ; then
|
||||
${HDF5_FLEX} --version
|
||||
fi
|
||||
${HDF5_FLEX} --nounistd -PH5LTyy -o H5LTanalyze.c H5LTanalyze.l
|
||||
|
||||
# fix H5LTparse.c to declare H5LTyyparse return type as an hid_t
|
||||
# instead of int. Currently the generated function H5LTyyparse is
|
||||
# generated with a return value of type int, which is a mapping to the
|
||||
# flex yyparse function. The return value in the HL library should be
|
||||
# an hid_t.
|
||||
# I propose to not use flex to generate this function, but for now I am
|
||||
# adding a perl command to find and replace this function declaration in
|
||||
# H5LTparse.c.
|
||||
perl -0777 -pi -e 's/int\nyyparse/hid_t\nyyparse/igs' H5LTparse.c
|
||||
perl -0777 -pi -e 's/int H5LTyyparse/hid_t H5LTyyparse/igs' H5LTparse.c
|
||||
|
||||
# Add code that disables warnings in the flex/bison-generated code.
|
||||
#
|
||||
# Note that the GCC pragmas did not exist until gcc 4.2. Earlier versions
|
||||
# will simply ignore them, but we want to avoid those warnings.
|
||||
for f in H5LTparse.c H5LTanalyze.c
|
||||
do
|
||||
echo '#if __GNUC__ >= 4 && __GNUC_MINOR__ >=2 ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wconversion" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wimplicit-function-declaration" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wlarger-than=" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wmissing-prototypes" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wnested-externs" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wold-style-definition" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wsign-compare" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wsign-conversion" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wstrict-prototypes" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wswitch-default" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wunused-function" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wunused-macros" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wunused-parameter" ' >> tmp.out
|
||||
echo '#elif defined __SUNPRO_CC ' >> tmp.out
|
||||
echo '#pragma disable_warn ' >> tmp.out
|
||||
echo '#elif defined _MSC_VER ' >> tmp.out
|
||||
echo '#pragma warning(push, 1) ' >> tmp.out
|
||||
echo '#endif ' >> tmp.out
|
||||
|
||||
cat $f >> tmp.out
|
||||
mv tmp.out $f
|
||||
done
|
||||
|
||||
cd ../..
|
||||
|
||||
echo
|
||||
exit 0
|
||||
|
113
bin/compile
113
bin/compile
@ -1,113 +0,0 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright by The HDF Group.
|
||||
# Copyright by the Board of Trustees of the University of Illinois.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of HDF5. The full HDF5 copyright notice, including
|
||||
# terms governing use, modification, and redistribution, is contained in
|
||||
# the files COPYING and Copyright.html. COPYING can be found at the root
|
||||
# of the source code distribution tree; Copyright.html can be found at the
|
||||
# root level of an installed copy of the electronic HDF5 document set and
|
||||
# is linked from the top-level documents page. It can also be found at
|
||||
# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
|
||||
# access to either file, you may request a copy from help@hdfgroup.org.
|
||||
#
|
||||
|
||||
# Wrapper for compilers which do not understand `-c -o'.
|
||||
|
||||
# Copyright 1999, 2000 Free Software Foundation, Inc.
|
||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Usage:
|
||||
# compile PROGRAM [ARGS]...
|
||||
# `-o FOO.o' is removed from the args passed to the actual compile.
|
||||
|
||||
prog=$1
|
||||
shift
|
||||
|
||||
ofile=
|
||||
cfile=
|
||||
args=
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-o)
|
||||
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
||||
# So we do something ugly here.
|
||||
ofile=$2
|
||||
shift
|
||||
case "$ofile" in
|
||||
*.o | *.obj)
|
||||
;;
|
||||
*)
|
||||
args="$args -o $ofile"
|
||||
ofile=
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*.c)
|
||||
cfile=$1
|
||||
args="$args $1"
|
||||
;;
|
||||
*)
|
||||
args="$args $1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if test -z "$ofile" || test -z "$cfile"; then
|
||||
# If no `-o' option was seen then we might have been invoked from a
|
||||
# pattern rule where we don't need one. That is ok -- this is a
|
||||
# normal compilation that the losing compiler can handle. If no
|
||||
# `.c' file was seen then we are probably linking. That is also
|
||||
# ok.
|
||||
exec "$prog" $args
|
||||
fi
|
||||
|
||||
# Name of file we expect compiler to create.
|
||||
cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
||||
|
||||
# Create the lock directory.
|
||||
# Note: use `[/.-]' here to ensure that we don't use the same name
|
||||
# that we are using for the .o file. Also, base the name on the expected
|
||||
# object file name, since that is what matters with a parallel build.
|
||||
lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
|
||||
while true; do
|
||||
if mkdir $lockdir > /dev/null 2>&1; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
# FIXME: race condition here if user kills between mkdir and trap.
|
||||
trap "rmdir $lockdir; exit 1" 1 2 15
|
||||
|
||||
# Run the compile.
|
||||
"$prog" $args
|
||||
status=$?
|
||||
|
||||
if test -f "$cofile"; then
|
||||
mv "$cofile" "$ofile"
|
||||
fi
|
||||
|
||||
rmdir $lockdir
|
||||
exit $status
|
1526
bin/config.guess
vendored
1526
bin/config.guess
vendored
File diff suppressed because it is too large
Load Diff
1658
bin/config.sub
vendored
1658
bin/config.sub
vendored
File diff suppressed because it is too large
Load Diff
529
bin/depcomp
529
bin/depcomp
@ -1,529 +0,0 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2005-02-09.22
|
||||
|
||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by `PROGRAMS ARGS'.
|
||||
object Object file output by `PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputing dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say).
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
## The second -e expression handles DOS-style file names with drive letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the `deleted header file' problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" |
|
||||
## Some versions of gcc put a space before the `:'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||
tr '
|
||||
' ' ' >> $depfile
|
||||
echo >> $depfile
|
||||
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> $depfile
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||
tmpdepfile="$stripped.u"
|
||||
if test "$libtool" = yes; then
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
|
||||
if test -f "$tmpdepfile"; then :
|
||||
else
|
||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||
tmpdepfile="$stripped.u"
|
||||
fi
|
||||
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
if test -f "$tmpdepfile"; then
|
||||
outname="$stripped.o"
|
||||
# Each line is of the form `foo.o: dependent.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
icc)
|
||||
# Intel's C compiler understands `-MD -MF file'. However on
|
||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||
# ICC 7.0 will fill foo.d with something like
|
||||
# foo.o: sub/foo.c
|
||||
# foo.o: sub/foo.h
|
||||
# which is wrong. We want:
|
||||
# sub/foo.o: sub/foo.c
|
||||
# sub/foo.o: sub/foo.h
|
||||
# sub/foo.c:
|
||||
# sub/foo.h:
|
||||
# ICC 7.1 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using \ :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||
sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in `foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# With Tru64 cc, shared objects can also be used to make a
|
||||
# static library. This mecanism is used in libtool 1.4 series to
|
||||
# handle both shared and static libraries in a single compilation.
|
||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||
#
|
||||
# With libtool 1.5 this exception was removed, and libtool now
|
||||
# generates 2 separate objects for the 2 libraries. These two
|
||||
# compilations output dependencies in in $dir.libs/$base.o.d and
|
||||
# in $dir$base.o.d. We have to check for both files, because
|
||||
# one of the two compilations can be disabled. We should prefer
|
||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||
# the former would cause a distcleancheck panic.
|
||||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.o.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
tmpdepfile4=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
# That's a tab and a space in the [].
|
||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for `:'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no
|
||||
for arg in "$@"; do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||
' | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E |
|
||||
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||
sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o,
|
||||
# because we must use -o when running libtool.
|
||||
"$@" || exit $?
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||
echo " " >> "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
0
bin/distdep
Normal file → Executable file
0
bin/distdep
Normal file → Executable file
@ -1,96 +0,0 @@
|
||||
#!/bin/sh
|
||||
##
|
||||
## Copyright by the Board of Trustees of the University of Illinois.
|
||||
## All rights reserved.
|
||||
##
|
||||
## This file is part of HDF5. The full HDF5 copyright notice, including
|
||||
## terms governing use, modification, and redistribution, is contained in
|
||||
## the files COPYING and Copyright.html. COPYING can be found at the root
|
||||
## of the source code distribution tree; Copyright.html can be found at the
|
||||
## root level of an installed copy of the electronic HDF5 document set and
|
||||
## is linked from the top-level documents page. It can also be found at
|
||||
## http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have
|
||||
## access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
|
||||
##
|
||||
# regenerate hl/src/H5LTanalyze.c
|
||||
|
||||
# HDF5 currently uses the following versions of the bison flex:
|
||||
BISON_VERSION="bison (GNU Bison) 2.7"
|
||||
FLEX_VERSION="flex 2.5.37"
|
||||
|
||||
# If paths to bison flex are not specified by the user, assume tools are
|
||||
# running on jam in /mnt/hdf/packages and set paths accordingly.
|
||||
if test -z ${BISON}; then
|
||||
BISON=/usr/hdf/bin/bison
|
||||
fi
|
||||
if test -z ${FLEX}; then
|
||||
FLEX=/usr/hdf/bin/flex
|
||||
fi
|
||||
|
||||
# Check version numbers of all bison flex against the "correct" versions
|
||||
BI_VERS=`${BISON} --version 2>&1 | grep "^${BISON_VERSION}"`
|
||||
if test -z "${BI_VERS}"; then
|
||||
echo "${BISON} version is not ${BISON_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
FL_VERS=`${FLEX} --version 2>&1 | grep "^${FLEX_VERSION}"`
|
||||
if test -z "${FL_VERS}"; then
|
||||
echo "${FLEX} version is not ${FLEX_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Make sure that the tools are in the path.
|
||||
BISON_DIR=`dirname ${BISON}`
|
||||
FLEX_DIR=`dirname ${FLEX}`
|
||||
|
||||
# Main body
|
||||
cd hl/src
|
||||
echo "Generate hl/src/H5LTparse.c from hl/src/H5LTparse.y"
|
||||
bison -pH5LTyy -o H5LTparse.c -d H5LTparse.y
|
||||
echo "Generate hl/src/H5LTanalyze.c from hl/src/H5LTanalyze.l"
|
||||
flex --nounistd -PH5LTyy -oH5LTanalyze.c H5LTanalyze.l
|
||||
|
||||
# fix H5LTparse.c to declare H5LTyyparse return type as an hid_t
|
||||
# instead of int. Currently the generated function H5LTyyparse is
|
||||
# generated with a return value of type int, which is a mapping to the
|
||||
# flex yyparse function. The return value in the HL library should be
|
||||
# an hid_t.
|
||||
# I propose to not use flex to generate this function, but for now I am
|
||||
# adding a perl command to find and replace this function declaration in
|
||||
# H5LTparse.c.
|
||||
perl -0777 -pi -e 's/int\nyyparse/hid_t\nyyparse/igs' H5LTparse.c
|
||||
perl -0777 -pi -e 's/int H5LTyyparse/hid_t H5LTyyparse/igs' H5LTparse.c
|
||||
|
||||
# Add code that disables warnings in the flex/bison-generated code.
|
||||
#
|
||||
# Note that the GCC pragmas did not exist until gcc 4.2. Earlier versions
|
||||
# will simply ignore them, but we want to avoid those warnings.
|
||||
for f in H5LTparse.c H5LTanalyze.c
|
||||
do
|
||||
echo '#if __GNUC__ >= 4 && __GNUC_MINOR__ >=2 ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wconversion" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wimplicit-function-declaration" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wlarger-than=" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wmissing-prototypes" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wnested-externs" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wold-style-definition" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wsign-compare" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wsign-conversion" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wstrict-prototypes" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wswitch-default" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wunused-function" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wunused-macros" ' >> tmp.out
|
||||
echo '#pragma GCC diagnostic ignored "-Wunused-parameter" ' >> tmp.out
|
||||
echo '#elif defined __SUNPRO_CC ' >> tmp.out
|
||||
echo '#pragma disable_warn ' >> tmp.out
|
||||
echo '#elif defined _MSC_VER ' >> tmp.out
|
||||
echo '#pragma warning(push, 1) ' >> tmp.out
|
||||
echo '#endif ' >> tmp.out
|
||||
|
||||
cat $f >> tmp.out
|
||||
mv tmp.out $f
|
||||
done
|
||||
|
||||
cd ../..
|
||||
|
||||
exit 0
|
520
bin/install-sh
520
bin/install-sh
@ -1,520 +0,0 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2009-04-28.21; # UTC
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
|
||||
nl='
|
||||
'
|
||||
IFS=" "" $nl"
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit=${DOITPROG-}
|
||||
if test -z "$doit"; then
|
||||
doit_exec=exec
|
||||
else
|
||||
doit_exec=$doit
|
||||
fi
|
||||
|
||||
# Put in absolute file names if you don't have them in your path;
|
||||
# or use environment vars.
|
||||
|
||||
chgrpprog=${CHGRPPROG-chgrp}
|
||||
chmodprog=${CHMODPROG-chmod}
|
||||
chownprog=${CHOWNPROG-chown}
|
||||
cmpprog=${CMPPROG-cmp}
|
||||
cpprog=${CPPROG-cp}
|
||||
mkdirprog=${MKDIRPROG-mkdir}
|
||||
mvprog=${MVPROG-mv}
|
||||
rmprog=${RMPROG-rm}
|
||||
stripprog=${STRIPPROG-strip}
|
||||
|
||||
posix_glob='?'
|
||||
initialize_posix_glob='
|
||||
test "$posix_glob" != "?" || {
|
||||
if (set -f) 2>/dev/null; then
|
||||
posix_glob=
|
||||
else
|
||||
posix_glob=:
|
||||
fi
|
||||
}
|
||||
'
|
||||
|
||||
posix_mkdir=
|
||||
|
||||
# Desired mode of installed file.
|
||||
mode=0755
|
||||
|
||||
chgrpcmd=
|
||||
chmodcmd=$chmodprog
|
||||
chowncmd=
|
||||
mvcmd=$mvprog
|
||||
rmcmd="$rmprog -f"
|
||||
stripcmd=
|
||||
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dst_arg=
|
||||
|
||||
copy_on_change=false
|
||||
no_target_directory=
|
||||
|
||||
usage="\
|
||||
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
-c (ignored)
|
||||
-C install only if different (preserve the last data modification time)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-s $stripprog installed files.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||
RMPROG STRIPPROG
|
||||
"
|
||||
|
||||
while test $# -ne 0; do
|
||||
case $1 in
|
||||
-c) ;;
|
||||
|
||||
-C) copy_on_change=true;;
|
||||
|
||||
-d) dir_arg=true;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) mode=$2
|
||||
case $mode in
|
||||
*' '* | *' '* | *'
|
||||
'* | *'*'* | *'?'* | *'['*)
|
||||
echo "$0: invalid mode: $mode" >&2
|
||||
exit 1;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift;;
|
||||
|
||||
-s) stripcmd=$stripprog;;
|
||||
|
||||
-t) dst_arg=$2
|
||||
shift;;
|
||||
|
||||
-T) no_target_directory=true;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
--) shift
|
||||
break;;
|
||||
|
||||
-*) echo "$0: invalid option: $1" >&2
|
||||
exit 1;;
|
||||
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||
# When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dst_arg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dst_arg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dst_arg=$arg
|
||||
done
|
||||
fi
|
||||
|
||||
if test $# -eq 0; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call `install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
# Set umask so as not to create temps with too-generous modes.
|
||||
# However, 'strip' requires both read and write access to temps.
|
||||
case $mode in
|
||||
# Optimize common cases.
|
||||
*644) cp_umask=133;;
|
||||
*755) cp_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw='% 200'
|
||||
fi
|
||||
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||
*)
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw=,u+rw
|
||||
fi
|
||||
cp_umask=$mode$u_plus_rw;;
|
||||
esac
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names starting with `-'.
|
||||
case $src in
|
||||
-*) src=./$src;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
dstdir=$dst
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dst_arg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dst=$dst_arg
|
||||
# Protect names starting with `-'.
|
||||
case $dst in
|
||||
-*) dst=./$dst;;
|
||||
esac
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
if test -d "$dst"; then
|
||||
if test -n "$no_target_directory"; then
|
||||
echo "$0: $dst_arg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dstdir=$dst
|
||||
dst=$dstdir/`basename "$src"`
|
||||
dstdir_status=0
|
||||
else
|
||||
# Prefer dirname, but fall back on a substitute if dirname fails.
|
||||
dstdir=`
|
||||
(dirname "$dst") 2>/dev/null ||
|
||||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||
X"$dst" : 'X\(//\)[^/]' \| \
|
||||
X"$dst" : 'X\(//\)$' \| \
|
||||
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
|
||||
echo X"$dst" |
|
||||
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
/^X\(\/\/\)[^/].*/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
/^X\(\/\/\)$/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
/^X\(\/\).*/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
s/.*/./; q'
|
||||
`
|
||||
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
fi
|
||||
fi
|
||||
|
||||
obsolete_mkdir_used=false
|
||||
|
||||
if test $dstdir_status != 0; then
|
||||
case $posix_mkdir in
|
||||
'')
|
||||
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||
umask=`umask`
|
||||
case $stripcmd.$umask in
|
||||
# Optimize common cases.
|
||||
*[2367][2367]) mkdir_umask=$umask;;
|
||||
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
mkdir_umask=`expr $umask + 22 \
|
||||
- $umask % 100 % 40 + $umask % 20 \
|
||||
- $umask % 10 % 4 + $umask % 2
|
||||
`;;
|
||||
*) mkdir_umask=$umask,go-w;;
|
||||
esac
|
||||
|
||||
# With -d, create the new directory with the user-specified mode.
|
||||
# Otherwise, rely on $mkdir_umask.
|
||||
if test -n "$dir_arg"; then
|
||||
mkdir_mode=-m$mode
|
||||
else
|
||||
mkdir_mode=
|
||||
fi
|
||||
|
||||
posix_mkdir=false
|
||||
case $umask in
|
||||
*[123567][0-7][0-7])
|
||||
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||
;;
|
||||
*)
|
||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||
|
||||
if (umask $mkdir_umask &&
|
||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||
then
|
||||
if test -z "$dir_arg" || {
|
||||
# Check for POSIX incompatibilities with -m.
|
||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||
# other-writeable bit of parent directory when it shouldn't.
|
||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||
case $ls_ld_tmpdir in
|
||||
d????-?r-*) different_mode=700;;
|
||||
d????-?--*) different_mode=755;;
|
||||
*) false;;
|
||||
esac &&
|
||||
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||
}
|
||||
}
|
||||
then posix_mkdir=:
|
||||
fi
|
||||
rmdir "$tmpdir/d" "$tmpdir"
|
||||
else
|
||||
# Remove any dirs left behind by ancient mkdir implementations.
|
||||
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||
fi
|
||||
trap '' 0;;
|
||||
esac;;
|
||||
esac
|
||||
|
||||
if
|
||||
$posix_mkdir && (
|
||||
umask $mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||
)
|
||||
then :
|
||||
else
|
||||
|
||||
# The umask is ridiculous, or mkdir does not conform to POSIX,
|
||||
# or it failed possibly due to a race condition. Create the
|
||||
# directory the slow way, step by step, checking for races as we go.
|
||||
|
||||
case $dstdir in
|
||||
/*) prefix='/';;
|
||||
-*) prefix='./';;
|
||||
*) prefix='';;
|
||||
esac
|
||||
|
||||
eval "$initialize_posix_glob"
|
||||
|
||||
oIFS=$IFS
|
||||
IFS=/
|
||||
$posix_glob set -f
|
||||
set fnord $dstdir
|
||||
shift
|
||||
$posix_glob set +f
|
||||
IFS=$oIFS
|
||||
|
||||
prefixes=
|
||||
|
||||
for d
|
||||
do
|
||||
test -z "$d" && continue
|
||||
|
||||
prefix=$prefix$d
|
||||
if test -d "$prefix"; then
|
||||
prefixes=
|
||||
else
|
||||
if $posix_mkdir; then
|
||||
(umask=$mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||
# Don't fail if two instances are running concurrently.
|
||||
test -d "$prefix" || exit 1
|
||||
else
|
||||
case $prefix in
|
||||
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||
*) qprefix=$prefix;;
|
||||
esac
|
||||
prefixes="$prefixes '$qprefix'"
|
||||
fi
|
||||
fi
|
||||
prefix=$prefix/
|
||||
done
|
||||
|
||||
if test -n "$prefixes"; then
|
||||
# Don't fail if two instances are running concurrently.
|
||||
(umask $mkdir_umask &&
|
||||
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||
test -d "$dstdir" || exit 1
|
||||
obsolete_mkdir_used=true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
|
||||
else
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||
|
||||
# If -C, don't bother to copy if it wouldn't change the file.
|
||||
if $copy_on_change &&
|
||||
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||
|
||||
eval "$initialize_posix_glob" &&
|
||||
$posix_glob set -f &&
|
||||
set X $old && old=:$2:$4:$5:$6 &&
|
||||
set X $new && new=:$2:$4:$5:$6 &&
|
||||
$posix_glob set +f &&
|
||||
|
||||
test "$old" = "$new" &&
|
||||
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||
then
|
||||
rm -f "$dsttmp"
|
||||
else
|
||||
# Rename the file to the real destination.
|
||||
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
{
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
test ! -f "$dst" ||
|
||||
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||
} ||
|
||||
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dst"
|
||||
}
|
||||
fi || exit 1
|
||||
|
||||
trap '' 0
|
||||
fi
|
||||
done
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
9655
bin/ltmain.sh
9655
bin/ltmain.sh
File diff suppressed because it is too large
Load Diff
215
bin/missing
215
bin/missing
@ -1,215 +0,0 @@
|
||||
#! /bin/sh
|
||||
# Common wrapper for a few potentially missing GNU programs.
|
||||
|
||||
scriptversion=2013-10-28.13; # UTC
|
||||
|
||||
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
||||
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try '$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
|
||||
--is-lightweight)
|
||||
# Used by our autoconf macros to check whether the available missing
|
||||
# script is modern enough.
|
||||
exit 0
|
||||
;;
|
||||
|
||||
--run)
|
||||
# Back-compat with the calling convention used by older automake.
|
||||
shift
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
|
||||
to PROGRAM being missing or too old.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal autoconf autoheader autom4te automake makeinfo
|
||||
bison yacc flex lex help2man
|
||||
|
||||
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
|
||||
'g' are ignored when checking the name.
|
||||
|
||||
Send bug reports to <bug-automake@gnu.org>."
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing $scriptversion (GNU Automake)"
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: unknown '$1' option"
|
||||
echo 1>&2 "Try '$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Run the given program, remember its exit status.
|
||||
"$@"; st=$?
|
||||
|
||||
# If it succeeded, we are done.
|
||||
test $st -eq 0 && exit 0
|
||||
|
||||
# Also exit now if we it failed (or wasn't found), and '--version' was
|
||||
# passed; such an option is passed most likely to detect whether the
|
||||
# program is present and works.
|
||||
case $2 in --version|--help) exit $st;; esac
|
||||
|
||||
# Exit code 63 means version mismatch. This often happens when the user
|
||||
# tries to use an ancient version of a tool on a file that requires a
|
||||
# minimum version.
|
||||
if test $st -eq 63; then
|
||||
msg="probably too old"
|
||||
elif test $st -eq 127; then
|
||||
# Program was missing.
|
||||
msg="missing on your system"
|
||||
else
|
||||
# Program was found and executed, but failed. Give up.
|
||||
exit $st
|
||||
fi
|
||||
|
||||
perl_URL=http://www.perl.org/
|
||||
flex_URL=http://flex.sourceforge.net/
|
||||
gnu_software_URL=http://www.gnu.org/software
|
||||
|
||||
program_details ()
|
||||
{
|
||||
case $1 in
|
||||
aclocal|automake)
|
||||
echo "The '$1' program is part of the GNU Automake package:"
|
||||
echo "<$gnu_software_URL/automake>"
|
||||
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
|
||||
echo "<$gnu_software_URL/autoconf>"
|
||||
echo "<$gnu_software_URL/m4/>"
|
||||
echo "<$perl_URL>"
|
||||
;;
|
||||
autoconf|autom4te|autoheader)
|
||||
echo "The '$1' program is part of the GNU Autoconf package:"
|
||||
echo "<$gnu_software_URL/autoconf/>"
|
||||
echo "It also requires GNU m4 and Perl in order to run:"
|
||||
echo "<$gnu_software_URL/m4/>"
|
||||
echo "<$perl_URL>"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
give_advice ()
|
||||
{
|
||||
# Normalize program name to check for.
|
||||
normalized_program=`echo "$1" | sed '
|
||||
s/^gnu-//; t
|
||||
s/^gnu//; t
|
||||
s/^g//; t'`
|
||||
|
||||
printf '%s\n' "'$1' is $msg."
|
||||
|
||||
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
|
||||
case $normalized_program in
|
||||
autoconf*)
|
||||
echo "You should only need it if you modified 'configure.ac',"
|
||||
echo "or m4 files included by it."
|
||||
program_details 'autoconf'
|
||||
;;
|
||||
autoheader*)
|
||||
echo "You should only need it if you modified 'acconfig.h' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'autoheader'
|
||||
;;
|
||||
automake*)
|
||||
echo "You should only need it if you modified 'Makefile.am' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'automake'
|
||||
;;
|
||||
aclocal*)
|
||||
echo "You should only need it if you modified 'acinclude.m4' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'aclocal'
|
||||
;;
|
||||
autom4te*)
|
||||
echo "You might have modified some maintainer files that require"
|
||||
echo "the 'autom4te' program to be rebuilt."
|
||||
program_details 'autom4te'
|
||||
;;
|
||||
bison*|yacc*)
|
||||
echo "You should only need it if you modified a '.y' file."
|
||||
echo "You may want to install the GNU Bison package:"
|
||||
echo "<$gnu_software_URL/bison/>"
|
||||
;;
|
||||
lex*|flex*)
|
||||
echo "You should only need it if you modified a '.l' file."
|
||||
echo "You may want to install the Fast Lexical Analyzer package:"
|
||||
echo "<$flex_URL>"
|
||||
;;
|
||||
help2man*)
|
||||
echo "You should only need it if you modified a dependency" \
|
||||
"of a man page."
|
||||
echo "You may want to install the GNU Help2man package:"
|
||||
echo "<$gnu_software_URL/help2man/>"
|
||||
;;
|
||||
makeinfo*)
|
||||
echo "You should only need it if you modified a '.texi' file, or"
|
||||
echo "any other file indirectly affecting the aspect of the manual."
|
||||
echo "You might want to install the Texinfo package:"
|
||||
echo "<$gnu_software_URL/texinfo/>"
|
||||
echo "The spurious makeinfo call might also be the consequence of"
|
||||
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
|
||||
echo "want to install GNU make:"
|
||||
echo "<$gnu_software_URL/make/>"
|
||||
;;
|
||||
*)
|
||||
echo "You might have modified some files without having the proper"
|
||||
echo "tools for further handling them. Check the 'README' file, it"
|
||||
echo "often tells you about the needed prerequisites for installing"
|
||||
echo "this package. You may also peek at any GNU archive site, in"
|
||||
echo "case some other package contains this missing '$1' program."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
||||
-e '2,$s/^/ /' >&2
|
||||
|
||||
# Propagate the correct exit status (expected to be 127 for a program
|
||||
# not found, 63 for a program that failed due to version mismatch).
|
||||
exit $st
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
@ -1,101 +0,0 @@
|
||||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Public domain
|
||||
|
||||
# $Id$
|
||||
|
||||
errstatus=0
|
||||
dirmode=""
|
||||
|
||||
usage="\
|
||||
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
|
||||
|
||||
# process command line arguments
|
||||
while test $# -gt 0 ; do
|
||||
case "${1}" in
|
||||
-h | --help | --h* ) # -h for help
|
||||
echo "${usage}" 1>&2; exit 0 ;;
|
||||
-m ) # -m PERM arg
|
||||
shift
|
||||
test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
||||
dirmode="${1}"
|
||||
shift ;;
|
||||
-- ) shift; break ;; # stop option processing
|
||||
-* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
|
||||
* ) break ;; # first non-opt arg
|
||||
esac
|
||||
done
|
||||
|
||||
for file
|
||||
do
|
||||
if test -d "$file"; then
|
||||
shift
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
case $# in
|
||||
0) exit 0 ;;
|
||||
esac
|
||||
|
||||
case $dirmode in
|
||||
'')
|
||||
if mkdir -p -- . 2>/dev/null; then
|
||||
echo "mkdir -p -- $*"
|
||||
exec mkdir -p -- "$@"
|
||||
fi ;;
|
||||
*)
|
||||
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
|
||||
echo "mkdir -m $dirmode -p -- $*"
|
||||
exec mkdir -m "$dirmode" -p -- "$@"
|
||||
fi ;;
|
||||
esac
|
||||
|
||||
for file
|
||||
do
|
||||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
shift
|
||||
|
||||
pathcomp=
|
||||
for d
|
||||
do
|
||||
pathcomp="$pathcomp$d"
|
||||
case "$pathcomp" in
|
||||
-* ) pathcomp=./$pathcomp ;;
|
||||
esac
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
echo "mkdir $pathcomp"
|
||||
|
||||
mkdir "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
else
|
||||
if test ! -z "$dirmode"; then
|
||||
echo "chmod $dirmode $pathcomp"
|
||||
|
||||
lasterr=""
|
||||
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -z "$lasterr"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
pathcomp="$pathcomp/"
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 3
|
||||
# End:
|
||||
# mkinstalldirs ends here
|
152
bin/reconfigure
152
bin/reconfigure
@ -1,152 +0,0 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright by the Board of Trustees of the University of Illinois.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of HDF5. The full HDF5 copyright notice, including
|
||||
# terms governing use, modification, and redistribution, is contained in
|
||||
# the files COPYING and Copyright.html. COPYING can be found at the root
|
||||
# of the source code distribution tree; Copyright.html can be found at the
|
||||
# root level of an installed copy of the electronic HDF5 document set and
|
||||
# is linked from the top-level documents page. It can also be found at
|
||||
# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
|
||||
# access to either file, you may request a copy from help@hdfgroup.org.
|
||||
#
|
||||
|
||||
# A script to reconfigure autotools for HDF5, and to recreate other
|
||||
# generated files specifc to HDF5.
|
||||
# If the paths of the autotools are not specified by the user, they
|
||||
# are hardcoded to point to their locations on HDF5 Linux machines.
|
||||
# Users can specify the locations of the autotools with the following
|
||||
# variables:
|
||||
# AUTOCONF, AUTOMAKE, ACLOCAL, AUTOHEADER should be the path to the
|
||||
# corresponding tools.
|
||||
# LIBTOOL_DIR should be the path to the base libtool directory;
|
||||
# $LIBTOOL_DIR/bin/libtool should invoke libtool, while
|
||||
# $LIBTOOL_DIR/share/aclocal needs to be included by aclocal.
|
||||
# Be very careful when specifying these tools manually! There are a lot
|
||||
# of versions that can get confused (not even counting the m4 utility)!
|
||||
|
||||
# HDF5 currently uses the following versions of the autotools:
|
||||
AUTOCONF_VERSION="autoconf (GNU Autoconf) 2.69"
|
||||
AUTOMAKE_VERSION="automake (GNU automake) 1.14.1"
|
||||
AUTOHEADER_VERSION="autoheader (GNU Autoconf) 2.69"
|
||||
ACLOCAL_VERSION="aclocal (GNU automake) 1.14.1"
|
||||
LIBTOOL_VERSION="(GNU libtool) 2.4.2"
|
||||
M4_VERSION="m4 (GNU M4) 1.4.17"
|
||||
|
||||
#
|
||||
# When upgrading automake's version, don't forget to also update its
|
||||
# helper utilities, especially depcomp.
|
||||
|
||||
|
||||
# If paths to autotools are not specified by the user, assume tools are
|
||||
# running on jam in /mnt/hdf/packages and set paths accordingly.
|
||||
if test -z ${AUTORECONF}; then
|
||||
AUTORECONF=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoreconf
|
||||
fi
|
||||
if test -z ${AUTOCONF}; then
|
||||
AUTOCONF=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoconf
|
||||
fi
|
||||
if test -z ${AUTOMAKE}; then
|
||||
AUTOMAKE=/mnt/hdf/packages/automake/automake-1.14.1/bin/automake-1.14
|
||||
fi
|
||||
if test -z ${AUTOHEADER}; then
|
||||
AUTOHEADER=/mnt/hdf/packages/autoconf/autoconf-2.69/bin/autoheader
|
||||
fi
|
||||
if test -z ${ACLOCAL}; then
|
||||
ACLOCAL=/mnt/hdf/packages/automake/automake-1.14.1/bin/aclocal-1.14
|
||||
fi
|
||||
if test -z ${LIBTOOL}; then
|
||||
LIBTOOL=/mnt/hdf/packages/libtool/libtool-2.4.2/bin/libtool
|
||||
fi
|
||||
if test -z ${M4}; then
|
||||
M4=/mnt/hdf/packages/m4/m4-1.4.17/bin/m4
|
||||
fi
|
||||
|
||||
# Check version numbers of all autotools against the "correct" versions
|
||||
AC_VERS=`${AUTOCONF} --version 2>&1 | grep "^${AUTOCONF_VERSION}"`
|
||||
if test -z "${AC_VERS}"; then
|
||||
echo "${AUTOCONF} version is not ${AUTOCONF_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
AM_VERS=`${AUTOMAKE} --version 2>&1 | grep "^${AUTOMAKE_VERSION}"`
|
||||
if test -z "${AM_VERS}"; then
|
||||
echo "${AUTOMAKE} version is not ${AUTOMAKE_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
AH_VERS=`${AUTOHEADER} --version 2>&1 | grep "^${AUTOHEADER_VERSION}"`
|
||||
if test -z "${AH_VERS}"; then
|
||||
echo "${AUTOHEADER} version is not ${AUTOHEADER_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
AL_VERS=`${ACLOCAL} --version 2>&1 | grep "^${ACLOCAL_VERSION}"`
|
||||
if test -z "${AL_VERS}"; then
|
||||
echo "${ACLOCAL} version is not ${ACLOCAL_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
LT_VERS=`${LIBTOOL} --version 2>&1 | grep "${LIBTOOL_VERSION}"`
|
||||
if test -z "${LT_VERS}"; then
|
||||
echo "${LIBTOOL} version is not ${LIBTOOL_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
M4_VERS=`${M4} --version 2>&1 | grep "${M4_VERSION}"`
|
||||
if test -z "${M4_VERS}"; then
|
||||
echo "${M4} version is not ${M4_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Make sure that the tools are in the path.
|
||||
AUTOCONF_DIR=`dirname ${AUTOCONF}`
|
||||
LIBTOOL_DIR=`dirname ${LIBTOOL}`
|
||||
M4_DIR=`dirname ${M4}`
|
||||
PATH=${AUTOCONF_DIR}:${M4_DIR}:$PATH
|
||||
|
||||
# Run autoconf/automake commands in order
|
||||
echo ${ACLOCAL} -I ${LIBTOOL_DIR}/../share/aclocal
|
||||
${ACLOCAL} -I ${LIBTOOL_DIR}/../share/aclocal || exit 1
|
||||
|
||||
echo ${AUTOHEADER}
|
||||
${AUTOHEADER} || exit 1
|
||||
|
||||
echo ${AUTOMAKE} --add-missing
|
||||
${AUTOMAKE} --add-missing || exit 1
|
||||
|
||||
echo ${AUTOCONF}
|
||||
${AUTOCONF} || exit 1
|
||||
|
||||
# Clean up top-level Makefile.in
|
||||
# pmake wants an argument to be the first non-comment line it encounters
|
||||
# in the Makefile. Automake wants to reorganize the Makefile.
|
||||
# To work around this, we post-process the top-level Makefile.in.
|
||||
sed "s/^#xxx//" Makefile.in > Makefile.in.new
|
||||
mv Makefile.in.new Makefile.in
|
||||
|
||||
# Run trace script
|
||||
# The trace script adds H5TRACE macros to library source files. It should
|
||||
# have no effect on files that don't have HDF5 API macros in them.
|
||||
echo
|
||||
echo " Running trace script:"
|
||||
bin/trace src/H5*.c || exit 1
|
||||
|
||||
# Run make_err
|
||||
# make_err automatically generates the H5E headers that create error message
|
||||
# types for HDF5.
|
||||
echo
|
||||
echo " Running error generation script:"
|
||||
bin/make_err src/H5err.txt || exit 1
|
||||
|
||||
# Run make_vers
|
||||
# make_vers automatically generates the public headers that define the API version
|
||||
# macros for HDF5.
|
||||
echo
|
||||
echo " Running API version generation script:"
|
||||
bin/make_vers src/H5vers.txt || exit 1
|
||||
|
||||
# Run flex
|
||||
# automatically generates the lexical file for hl/src/H5LTanalyze.c
|
||||
echo
|
||||
echo " Running flex generation script:"
|
||||
bin/genltanalyze || exit 1
|
||||
|
||||
exit 0
|
139
bin/test-driver
139
bin/test-driver
@ -1,139 +0,0 @@
|
||||
#! /bin/sh
|
||||
# test-driver - basic testsuite driver script.
|
||||
|
||||
scriptversion=2013-07-13.22; # UTC
|
||||
|
||||
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
# Make unconditional expansion of undefined variables an error. This
|
||||
# helps a lot in preventing typo-related bugs.
|
||||
set -u
|
||||
|
||||
usage_error ()
|
||||
{
|
||||
echo "$0: $*" >&2
|
||||
print_usage >&2
|
||||
exit 2
|
||||
}
|
||||
|
||||
print_usage ()
|
||||
{
|
||||
cat <<END
|
||||
Usage:
|
||||
test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
|
||||
[--expect-failure={yes|no}] [--color-tests={yes|no}]
|
||||
[--enable-hard-errors={yes|no}] [--]
|
||||
TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
|
||||
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
|
||||
END
|
||||
}
|
||||
|
||||
test_name= # Used for reporting.
|
||||
log_file= # Where to save the output of the test script.
|
||||
trs_file= # Where to save the metadata of the test run.
|
||||
expect_failure=no
|
||||
color_tests=no
|
||||
enable_hard_errors=yes
|
||||
while test $# -gt 0; do
|
||||
case $1 in
|
||||
--help) print_usage; exit $?;;
|
||||
--version) echo "test-driver $scriptversion"; exit $?;;
|
||||
--test-name) test_name=$2; shift;;
|
||||
--log-file) log_file=$2; shift;;
|
||||
--trs-file) trs_file=$2; shift;;
|
||||
--color-tests) color_tests=$2; shift;;
|
||||
--expect-failure) expect_failure=$2; shift;;
|
||||
--enable-hard-errors) enable_hard_errors=$2; shift;;
|
||||
--) shift; break;;
|
||||
-*) usage_error "invalid option: '$1'";;
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
missing_opts=
|
||||
test x"$test_name" = x && missing_opts="$missing_opts --test-name"
|
||||
test x"$log_file" = x && missing_opts="$missing_opts --log-file"
|
||||
test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
|
||||
if test x"$missing_opts" != x; then
|
||||
usage_error "the following mandatory options are missing:$missing_opts"
|
||||
fi
|
||||
|
||||
if test $# -eq 0; then
|
||||
usage_error "missing argument"
|
||||
fi
|
||||
|
||||
if test $color_tests = yes; then
|
||||
# Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
|
||||
red='[0;31m' # Red.
|
||||
grn='[0;32m' # Green.
|
||||
lgn='[1;32m' # Light green.
|
||||
blu='[1;34m' # Blue.
|
||||
mgn='[0;35m' # Magenta.
|
||||
std='[m' # No color.
|
||||
else
|
||||
red= grn= lgn= blu= mgn= std=
|
||||
fi
|
||||
|
||||
do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
|
||||
trap "st=129; $do_exit" 1
|
||||
trap "st=130; $do_exit" 2
|
||||
trap "st=141; $do_exit" 13
|
||||
trap "st=143; $do_exit" 15
|
||||
|
||||
# Test script is run here.
|
||||
"$@" >$log_file 2>&1
|
||||
estatus=$?
|
||||
if test $enable_hard_errors = no && test $estatus -eq 99; then
|
||||
estatus=1
|
||||
fi
|
||||
|
||||
case $estatus:$expect_failure in
|
||||
0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
|
||||
0:*) col=$grn res=PASS recheck=no gcopy=no;;
|
||||
77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
|
||||
99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
|
||||
*:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
|
||||
*:*) col=$red res=FAIL recheck=yes gcopy=yes;;
|
||||
esac
|
||||
|
||||
# Report outcome to console.
|
||||
echo "${col}${res}${std}: $test_name"
|
||||
|
||||
# Register the test result, and other relevant metadata.
|
||||
echo ":test-result: $res" > $trs_file
|
||||
echo ":global-test-result: $res" >> $trs_file
|
||||
echo ":recheck: $recheck" >> $trs_file
|
||||
echo ":copy-in-global-log: $gcopy" >> $trs_file
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
1385
c++/Makefile.in
1385
c++/Makefile.in
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -100,9 +100,9 @@ host_triplet = @host@
|
||||
DIST_COMMON = $(top_srcdir)/config/commence.am \
|
||||
$(top_srcdir)/config/lt_vers.am \
|
||||
$(top_srcdir)/config/conclude.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/mkinstalldirs \
|
||||
$(srcdir)/h5c++.in $(top_srcdir)/bin/depcomp \
|
||||
$(include_HEADERS) $(top_srcdir)/bin/test-driver
|
||||
$(srcdir)/Makefile.am $(srcdir)/h5c++.in \
|
||||
$(top_srcdir)/bin/depcomp $(include_HEADERS) \
|
||||
$(top_srcdir)/bin/test-driver
|
||||
TESTS =
|
||||
subdir = c++/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
@ -110,7 +110,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/H5config.h \
|
||||
$(top_builddir)/fortran/src/H5config_f.inc
|
||||
CONFIG_CLEAN_FILES = h5c++
|
||||
@ -415,7 +415,6 @@ AM_CXXFLAGS = @AM_CXXFLAGS@ @H5_CXXFLAGS@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_FCFLAGS = @AM_FCFLAGS@ @H5_FCFLAGS@
|
||||
AM_LDFLAGS = @AM_LDFLAGS@ @H5_LDFLAGS@
|
||||
AM_MAKEFLAGS = @AM_MAKEFLAGS@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
1390
c++/test/Makefile.in
1390
c++/test/Makefile.in
File diff suppressed because it is too large
Load Diff
@ -41,3 +41,73 @@ macro (H5_SET_LIB_OPTIONS libtarget libname libtype)
|
||||
endif (APPLE)
|
||||
|
||||
endmacro (H5_SET_LIB_OPTIONS)
|
||||
|
||||
macro (H5_GEN_PERL_FILES)
|
||||
find_package (Perl)
|
||||
if (PERL_FOUND)
|
||||
add_custom_command (
|
||||
OUTPUT ${HDF5_BINARY_DIR}/H5Edefin.h
|
||||
PRE_BUILD
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_err ${HDF5_SOURCE_DIR}/src/H5err.txt
|
||||
DEPENDS ${HDF5_SOURCE_DIR}/src/H5err.txt
|
||||
COMMENT " Creating err header"
|
||||
)
|
||||
|
||||
add_custom_command (
|
||||
OUTPUT ${HDF5_BINARY_DIR}/H5version.h
|
||||
PRE_BUILD
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_vers ${HDF5_SOURCE_DIR}/src/H5vers.txt
|
||||
DEPENDS ${HDF5_SOURCE_DIR}/src/H5vers.txt
|
||||
COMMENT " Creating API version macro"
|
||||
)
|
||||
|
||||
add_custom_command (
|
||||
OUTPUT ${HDF5_BINARY_DIR}/H5overflow.h
|
||||
PRE_BUILD
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_overflow ${HDF5_SOURCE_DIR}/src/H5overflow.txt
|
||||
DEPENDS ${HDF5_SOURCE_DIR}/src/H5overflow.txt
|
||||
COMMENT " Creating Assignment overflow macro"
|
||||
)
|
||||
|
||||
add_custom_target(run_perl_scripts ALL
|
||||
DEPENDS ${HDF5_BINARY_DIR}/H5Edefin.h ${HDF5_BINARY_DIR}/H5version.h ${HDF5_BINARY_DIR}/H5overflow.h
|
||||
)
|
||||
else (PERL_FOUND)
|
||||
message (STATUS "Cannot generate headers - perl not found")
|
||||
endif (PERL_FOUND)
|
||||
endmacro (H5_GEN_PERL_FILES)
|
||||
|
||||
macro (H5_GEN_FLEX_FILES)
|
||||
find_package (BISON)
|
||||
if (BISON_FOUND)
|
||||
find_package (FLEX)
|
||||
if (FLEX_FOUND)
|
||||
BISON_TARGET (H5LT_PARSER H5LTparse.y ${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.c COMPILE_FLAGS -d)
|
||||
if (WIN32)
|
||||
FLEX_TARGET (H5LT_SCANNER H5LTanalyze.l ${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c COMPILE_FLAGS --wincompat)
|
||||
else (WIN32)
|
||||
FLEX_TARGET (H5LT_SCANNER H5LTanalyze.l ${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c)
|
||||
endif (WIN32)
|
||||
ADD_FLEX_BISON_DEPENDENCY(H5LT_SCANNER H5LT_PARSER)
|
||||
|
||||
if (BISON_H5LT_PARSER_DEFINED AND FLEX_H5LT_SCANNER_DEFINED)
|
||||
set_source_files_properties (${FLEX_H5LT_SCANNER_OUTPUTS}
|
||||
PROPERTIES OBJECT_DEPENDS ${BISON_H5LT_PARSER_OUTPUTS})
|
||||
set (HL_SRCS
|
||||
${BISON_H5LT_PARSER_OUTPUTS}
|
||||
${FLEX_H5LT_SCANNER_OUTPUTS}
|
||||
)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
else (BISON_H5LT_PARSER_DEFINED AND FLEX_H5LT_SCANNER_DEFINED)
|
||||
message (STATUS "Error during generate of files")
|
||||
endif (BISON_H5LT_PARSER_DEFINED AND FLEX_H5LT_SCANNER_DEFINED)
|
||||
else (FLEX_FOUND)
|
||||
message (STATUS "Cannot generate files - flex not found")
|
||||
endif (FLEX_FOUND)
|
||||
else (BISON_FOUND)
|
||||
message (STATUS "Cannot generate files - bison not found")
|
||||
endif (BISON_FOUND)
|
||||
endmacro (H5_GEN_FLEX_FILES)
|
||||
|
@ -8,6 +8,8 @@ set (CMAKE_INSTALL_FRAMEWORK_PREFIX "Library/Frameworks" CACHE STRING "Framework
|
||||
|
||||
set (HDF_PACKAGE_EXT "" CACHE STRING "Name of HDF package extension" FORCE)
|
||||
|
||||
set (HDF5_GENERATE_HEADERS ON CACHE BOOL "Rebuild Generated Files" FORCE)
|
||||
|
||||
set (HDF5_BUILD_FORTRAN ON CACHE BOOL "Build FORTRAN support" FORCE)
|
||||
|
||||
set (HDF5_BUILD_GENERATORS OFF CACHE BOOL "Build Test Generators" FORCE)
|
||||
|
56
configure
vendored
56
configure
vendored
@ -678,7 +678,6 @@ BUILD_SHARED_SZIP_CONDITIONAL_TRUE
|
||||
LL_PATH
|
||||
USE_FILTER_SZIP
|
||||
USE_FILTER_DEFLATE
|
||||
AM_MAKEFLAGS
|
||||
LT_STATIC_EXEC
|
||||
USE_PLUGINS_CONDITIONAL_FALSE
|
||||
USE_PLUGINS_CONDITIONAL_TRUE
|
||||
@ -1560,8 +1559,8 @@ Optional Features:
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--enable-silent-rules less verbose build output (undo: "make V=1")
|
||||
--disable-silent-rules verbose build output (undo: "make V=0")
|
||||
--enable-maintainer-mode
|
||||
enable make rules and dependencies not useful (and
|
||||
--disable-maintainer-mode
|
||||
disable make rules and dependencies not useful (and
|
||||
sometimes confusing) to the casual installer
|
||||
--enable-dependency-tracking
|
||||
do not reject slow dependency extractors
|
||||
@ -3658,15 +3657,16 @@ AM_BACKSLASH='\'
|
||||
|
||||
|
||||
## AM_MAINTAINER_MODE turns off "rebuild rules" that contain dependencies
|
||||
## for Makefiles, configure, src/H5config.h, etc. If AM_MAINTAINER_MODE
|
||||
## is *not* included here, these files will be rebuilt if out of date.
|
||||
## This is a problem because if users try to build on a machine with
|
||||
## for Makefiles, configure, src/H5config.h, etc. If AM_MAINTAINER_MODE
|
||||
## is enabled, these files will be rebuilt if out of date. This is a
|
||||
## problem because if users try to build on a machine with
|
||||
## the wrong versions of autoconf and automake, these files will be
|
||||
## rebuilt with the wrong versions and bad things can happen.
|
||||
## Also, CVS doesn't preserve dependencies between timestamps, so
|
||||
## Makefiles will often think rebuilding needs to occur when it doesn't.
|
||||
## Developers should './configure --enable-maintainer-mode' to turn on
|
||||
## rebuild rules.
|
||||
##
|
||||
## By default, it is enabled. Users can configure with
|
||||
## --disable-maintainer-mode to prevent running the autotools.
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
||||
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
||||
@ -3674,7 +3674,7 @@ $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles
|
||||
if test "${enable_maintainer_mode+set}" = set; then :
|
||||
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
||||
else
|
||||
USE_MAINTAINER_MODE=no
|
||||
USE_MAINTAINER_MODE=yes
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
||||
@ -22768,8 +22768,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Check if we should install only statically linked executables.
|
||||
## This check needs to occur after libtool is initialized because
|
||||
@ -22848,35 +22846,6 @@ $as_echo "error" >&6; }
|
||||
;;
|
||||
esac
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## pmake will throw an error if variables are undefined in a Makefile.
|
||||
## These errors can be changed to warnings using the -V flag.
|
||||
##
|
||||
AM_MAKEFLAGS=""
|
||||
|
||||
## Don't run test if MAKE is defined but is the empty string
|
||||
if test -n "${MAKE-make}"; then
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make will build with undefined variables" >&5
|
||||
$as_echo_n "checking whether make will build with undefined variables... " >&6; }
|
||||
|
||||
cat >maketest <<EOF
|
||||
foo: \$(UNDEFINED) \$(UNDEFINED2)
|
||||
@echo \$(UNDEFINED3) works
|
||||
EOF
|
||||
|
||||
if (${MAKE-make} -f maketest foo) >/dev/null 2>&1; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, setting -V flag" >&5
|
||||
$as_echo "no, setting -V flag" >&6; }
|
||||
AM_MAKEFLAGS="\-V"
|
||||
fi
|
||||
|
||||
rm maketest
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Production flags? Save the value in $CONFIG_MODE so we have it for
|
||||
## the record.
|
||||
@ -27853,10 +27822,9 @@ fi
|
||||
## ----------------------------------------------------------------------
|
||||
## Check if Direct I/O driver is enabled by --enable-direct-vfd
|
||||
##
|
||||
|
||||
## Check these regardless. If the checks are moved inside the main
|
||||
## direct VFD block, the output is nested.
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Check if Direct I/O driver is enabled by --enable-direct-vfd
|
||||
##
|
||||
if ${hdf5_cv_direct_io+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
|
48
configure.ac
48
configure.ac
@ -40,16 +40,17 @@ AM_INIT_AUTOMAKE([foreign])
|
||||
AM_SILENT_RULES([yes])
|
||||
|
||||
## AM_MAINTAINER_MODE turns off "rebuild rules" that contain dependencies
|
||||
## for Makefiles, configure, src/H5config.h, etc. If AM_MAINTAINER_MODE
|
||||
## is *not* included here, these files will be rebuilt if out of date.
|
||||
## This is a problem because if users try to build on a machine with
|
||||
## for Makefiles, configure, src/H5config.h, etc. If AM_MAINTAINER_MODE
|
||||
## is enabled, these files will be rebuilt if out of date. This is a
|
||||
## problem because if users try to build on a machine with
|
||||
## the wrong versions of autoconf and automake, these files will be
|
||||
## rebuilt with the wrong versions and bad things can happen.
|
||||
## Also, CVS doesn't preserve dependencies between timestamps, so
|
||||
## Makefiles will often think rebuilding needs to occur when it doesn't.
|
||||
## Developers should './configure --enable-maintainer-mode' to turn on
|
||||
## rebuild rules.
|
||||
AM_MAINTAINER_MODE
|
||||
##
|
||||
## By default, it is enabled. Users can configure with
|
||||
## --disable-maintainer-mode to prevent running the autotools.
|
||||
AM_MAINTAINER_MODE([enable])
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set prefix default (install directory) to a directory in the build area.
|
||||
@ -823,8 +824,6 @@ LT_PREREQ([2.2])
|
||||
## win32-dll - This will build clean dlls on win32 platforms.
|
||||
LT_INIT([dlopen,win32-dll])
|
||||
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Check if we should install only statically linked executables.
|
||||
## This check needs to occur after libtool is initialized because
|
||||
@ -890,32 +889,6 @@ case "X-$RPATH" in
|
||||
;;
|
||||
esac
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## pmake will throw an error if variables are undefined in a Makefile.
|
||||
## These errors can be changed to warnings using the -V flag.
|
||||
##
|
||||
AC_SUBST([AM_MAKEFLAGS]) AM_MAKEFLAGS=""
|
||||
|
||||
## Don't run test if MAKE is defined but is the empty string
|
||||
if test -n "${MAKE-make}"; then
|
||||
|
||||
AC_MSG_CHECKING([whether make will build with undefined variables])
|
||||
|
||||
cat >maketest <<EOF
|
||||
foo: \$(UNDEFINED) \$(UNDEFINED2)
|
||||
@echo \$(UNDEFINED3) works
|
||||
EOF
|
||||
|
||||
if (${MAKE-make} -f maketest foo) >/dev/null 2>&1; then
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no, setting -V flag])
|
||||
AM_MAKEFLAGS="\-V"
|
||||
fi
|
||||
|
||||
rm maketest
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Production flags? Save the value in $CONFIG_MODE so we have it for
|
||||
## the record.
|
||||
@ -2257,10 +2230,9 @@ fi
|
||||
## ----------------------------------------------------------------------
|
||||
## Check if Direct I/O driver is enabled by --enable-direct-vfd
|
||||
##
|
||||
|
||||
## Check these regardless. If the checks are moved inside the main
|
||||
## direct VFD block, the output is nested.
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Check if Direct I/O driver is enabled by --enable-direct-vfd
|
||||
##
|
||||
AC_CACHE_VAL([hdf5_cv_direct_io],
|
||||
AC_CHECK_DECL([O_DIRECT], [hdf5_cv_direct_io=yes], [hdf5_cv_direct_io=no], [[#include <fcntl.h>]]))
|
||||
AC_CACHE_VAL([hdf5_cv_posix_memalign],
|
||||
|
1369
examples/Makefile.in
1369
examples/Makefile.in
File diff suppressed because it is too large
Load Diff
1394
fortran/Makefile.in
1394
fortran/Makefile.in
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -76,6 +76,11 @@ if (WIN32)
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
endif (WIN32)
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
endif (WIN32)
|
||||
|
||||
INCLUDE_DIRECTORIES (${HDF5_F90_BINARY_DIR} ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
|
||||
|
@ -105,9 +105,8 @@ DIST_COMMON = $(top_srcdir)/config/commence.am \
|
||||
$(top_srcdir)/config/conclude_fc.am \
|
||||
$(top_srcdir)/config/conclude.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(srcdir)/H5config_f.inc.in \
|
||||
$(top_srcdir)/bin/mkinstalldirs $(srcdir)/h5fc.in \
|
||||
$(srcdir)/H5fort_type_defines.h.in $(top_srcdir)/bin/depcomp \
|
||||
$(top_srcdir)/bin/test-driver README
|
||||
$(srcdir)/h5fc.in $(srcdir)/H5fort_type_defines.h.in \
|
||||
$(top_srcdir)/bin/depcomp $(top_srcdir)/bin/test-driver README
|
||||
|
||||
# Some Fortran compilers can't build shared libraries, so sometimes we
|
||||
# want to build a shared C library and a static Fortran library. If so,
|
||||
@ -121,7 +120,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/H5config.h H5config_f.inc
|
||||
CONFIG_CLEAN_FILES = h5fc H5fort_type_defines.h
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
@ -452,7 +451,6 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_FCFLAGS = @AM_FCFLAGS@ @H5_FCFLAGS@ -I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/fortran/src
|
||||
AM_LDFLAGS = @AM_LDFLAGS@ @H5_LDFLAGS@ $(am__append_1)
|
||||
AM_MAKEFLAGS = @AM_MAKEFLAGS@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1395
hl/Makefile.in
1395
hl/Makefile.in
File diff suppressed because it is too large
Load Diff
1385
hl/c++/Makefile.in
1385
hl/c++/Makefile.in
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -99,9 +99,8 @@ host_triplet = @host@
|
||||
DIST_COMMON = $(top_srcdir)/config/commence.am \
|
||||
$(top_srcdir)/config/lt_vers.am \
|
||||
$(top_srcdir)/config/conclude.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/mkinstalldirs \
|
||||
$(top_srcdir)/bin/depcomp $(include_HEADERS) \
|
||||
$(top_srcdir)/bin/test-driver
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/depcomp \
|
||||
$(include_HEADERS) $(top_srcdir)/bin/test-driver
|
||||
TESTS =
|
||||
subdir = hl/c++/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
@ -109,7 +108,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/H5config.h \
|
||||
$(top_builddir)/fortran/src/H5config_f.inc
|
||||
CONFIG_CLEAN_FILES =
|
||||
@ -407,7 +406,6 @@ AM_CXXFLAGS = @AM_CXXFLAGS@ @H5_CXXFLAGS@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_FCFLAGS = @AM_FCFLAGS@ @H5_FCFLAGS@
|
||||
AM_LDFLAGS = @AM_LDFLAGS@ @H5_LDFLAGS@
|
||||
AM_MAKEFLAGS = @AM_MAKEFLAGS@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -48,6 +48,11 @@ if (WIN32)
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
endif (WIN32)
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
endif (WIN32)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup include Directories
|
||||
|
@ -104,8 +104,8 @@ DIST_COMMON = $(top_srcdir)/config/commence.am \
|
||||
$(top_srcdir)/config/lt_vers.am \
|
||||
$(top_srcdir)/config/conclude_fc.am \
|
||||
$(top_srcdir)/config/conclude.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/mkinstalldirs \
|
||||
$(top_srcdir)/bin/depcomp $(top_srcdir)/bin/test-driver
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/depcomp \
|
||||
$(top_srcdir)/bin/test-driver
|
||||
|
||||
# Some Fortran compilers can't build shared libraries, so sometimes we
|
||||
# want to build a shared C library and a static Fortran library. If so,
|
||||
@ -119,7 +119,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/H5config.h \
|
||||
$(top_builddir)/fortran/src/H5config_f.inc
|
||||
CONFIG_CLEAN_FILES =
|
||||
@ -435,7 +435,6 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_FCFLAGS = @AM_FCFLAGS@ @H5_FCFLAGS@ -I$(top_builddir)/fortran/src \
|
||||
$(F9XMODFLAG)$(top_builddir)/fortran/src
|
||||
AM_LDFLAGS = @AM_LDFLAGS@ @H5_LDFLAGS@ $(am__append_1)
|
||||
AM_MAKEFLAGS = @AM_MAKEFLAGS@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,26 +1,71 @@
|
||||
cmake_minimum_required (VERSION 3.1.0)
|
||||
PROJECT (HDF5_HL_SRC)
|
||||
|
||||
if (HDF5_GENERATE_HEADERS)
|
||||
find_package (BISON)
|
||||
if (BISON_FOUND)
|
||||
find_package (FLEX)
|
||||
if (FLEX_FOUND)
|
||||
BISON_TARGET (H5LT_PARSER H5LTparse.y ${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.c COMPILE_FLAGS "-d -pH5LTyy")
|
||||
if (WIN32)
|
||||
FLEX_TARGET (H5LT_SCANNER H5LTanalyze.l ${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c COMPILE_FLAGS "--wincompat --nounistd -PH5LTyy")
|
||||
else (WIN32)
|
||||
FLEX_TARGET (H5LT_SCANNER H5LTanalyze.l ${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c COMPILE_FLAGS "--nounistd -PH5LTyy")
|
||||
endif (WIN32)
|
||||
ADD_FLEX_BISON_DEPENDENCY(H5LT_SCANNER H5LT_PARSER)
|
||||
|
||||
if (BISON_H5LT_PARSER_DEFINED AND FLEX_H5LT_SCANNER_DEFINED)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
set (HL_SRCS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.c
|
||||
)
|
||||
set (HL_HEADERS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.h
|
||||
)
|
||||
set_source_files_properties (${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c GENERATED)
|
||||
set_source_files_properties (${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.c GENERATED)
|
||||
set_source_files_properties (${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.h GENERATED)
|
||||
else (BISON_H5LT_PARSER_DEFINED AND FLEX_H5LT_SCANNER_DEFINED)
|
||||
message (STATUS "Error during generate of files")
|
||||
endif (BISON_H5LT_PARSER_DEFINED AND FLEX_H5LT_SCANNER_DEFINED)
|
||||
else (FLEX_FOUND)
|
||||
message (STATUS "Cannot generate files - flex not found")
|
||||
endif (FLEX_FOUND)
|
||||
else (BISON_FOUND)
|
||||
message (STATUS "Cannot generate files - bison not found")
|
||||
endif (BISON_FOUND)
|
||||
else (HDF5_GENERATE_HEADERS)
|
||||
set (HL_SRCS
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTanalyze.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTparse.c
|
||||
)
|
||||
set (HL_HEADERS
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTparse.h
|
||||
)
|
||||
endif (HDF5_GENERATE_HEADERS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# List Source files
|
||||
#-----------------------------------------------------------------------------
|
||||
set (HL_SRCS
|
||||
${HL_SRCS}
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5DO.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5DS.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5IM.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LT.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTanalyze.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTparse.c
|
||||
#${HDF5_HL_SRC_SOURCE_DIR}/H5LTanalyze.c
|
||||
#${HDF5_HL_SRC_SOURCE_DIR}/H5LTparse.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5PT.c
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5TB.c
|
||||
)
|
||||
|
||||
set (HL_HEADERS
|
||||
${HL_HEADERS}
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5DOpublic.h
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5DSpublic.h
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5IMpublic.h
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTparse.h
|
||||
#${HDF5_HL_SRC_SOURCE_DIR}/H5LTparse.h
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5LTpublic.h
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5PTpublic.h
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/H5TBpublic.h
|
||||
@ -54,7 +99,7 @@ if (BUILD_SHARED_LIBS)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
# Add file(s) to CMake Install
|
||||
#-----------------------------------------------------------------------------
|
||||
install (
|
||||
FILES
|
||||
@ -72,7 +117,7 @@ if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} hllibraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${install_targets}
|
||||
|
@ -99,9 +99,8 @@ host_triplet = @host@
|
||||
DIST_COMMON = $(top_srcdir)/config/commence.am \
|
||||
$(top_srcdir)/config/lt_vers.am \
|
||||
$(top_srcdir)/config/conclude.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/mkinstalldirs \
|
||||
$(top_srcdir)/bin/depcomp $(include_HEADERS) \
|
||||
$(top_srcdir)/bin/test-driver COPYING
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/bin/depcomp \
|
||||
$(include_HEADERS) $(top_srcdir)/bin/test-driver COPYING
|
||||
TESTS =
|
||||
subdir = hl/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
@ -109,7 +108,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/H5config.h \
|
||||
$(top_builddir)/fortran/src/H5config_f.inc
|
||||
CONFIG_CLEAN_FILES =
|
||||
@ -406,7 +405,6 @@ AM_CXXFLAGS = @AM_CXXFLAGS@ @H5_CXXFLAGS@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_FCFLAGS = @AM_FCFLAGS@ @H5_FCFLAGS@
|
||||
AM_LDFLAGS = @AM_LDFLAGS@ @H5_LDFLAGS@
|
||||
AM_MAKEFLAGS = @AM_MAKEFLAGS@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
1496
hl/test/Makefile.in
1496
hl/test/Makefile.in
File diff suppressed because it is too large
Load Diff
1371
hl/tools/Makefile.in
1371
hl/tools/Makefile.in
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
7982
m4/libtool.m4
vendored
7982
m4/libtool.m4
vendored
File diff suppressed because it is too large
Load Diff
384
m4/ltoptions.m4
vendored
384
m4/ltoptions.m4
vendored
@ -1,384 +0,0 @@
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
|
||||
# Inc.
|
||||
# Written by Gary V. Vaughan, 2004
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 7 ltoptions.m4
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
||||
|
||||
|
||||
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
||||
# ------------------------------------------
|
||||
m4_define([_LT_MANGLE_OPTION],
|
||||
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
|
||||
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
||||
# ---------------------------------------
|
||||
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
||||
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
||||
# saved as a flag.
|
||||
m4_define([_LT_SET_OPTION],
|
||||
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
||||
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
||||
_LT_MANGLE_DEFUN([$1], [$2]),
|
||||
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
||||
# ------------------------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
m4_define([_LT_IF_OPTION],
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
||||
|
||||
|
||||
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
||||
# -------------------------------------------------------
|
||||
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
||||
# are set.
|
||||
m4_define([_LT_UNLESS_OPTIONS],
|
||||
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
||||
[m4_define([$0_found])])])[]dnl
|
||||
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
||||
])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
||||
# ----------------------------------------
|
||||
# OPTION-LIST is a space-separated list of Libtool options associated
|
||||
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
||||
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
||||
# the unknown option and exit.
|
||||
m4_defun([_LT_SET_OPTIONS],
|
||||
[# Set options
|
||||
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||
[_LT_SET_OPTION([$1], _LT_Option)])
|
||||
|
||||
m4_if([$1],[LT_INIT],[
|
||||
dnl
|
||||
dnl Simply set some default values (i.e off) if boolean options were not
|
||||
dnl specified:
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
||||
])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
||||
])
|
||||
dnl
|
||||
dnl If no reference was made to various pairs of opposing options, then
|
||||
dnl we run the default mode handler for the pair. For example, if neither
|
||||
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
||||
dnl archives by default:
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
||||
[_LT_ENABLE_FAST_INSTALL])
|
||||
])
|
||||
])# _LT_SET_OPTIONS
|
||||
|
||||
|
||||
## --------------------------------- ##
|
||||
## Macros to handle LT_INIT options. ##
|
||||
## --------------------------------- ##
|
||||
|
||||
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
||||
# -----------------------------------------
|
||||
m4_define([_LT_MANGLE_DEFUN],
|
||||
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
||||
|
||||
|
||||
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
||||
# -----------------------------------------------
|
||||
m4_define([LT_OPTION_DEFINE],
|
||||
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
||||
])# LT_OPTION_DEFINE
|
||||
|
||||
|
||||
# dlopen
|
||||
# ------
|
||||
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
||||
])
|
||||
|
||||
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
||||
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the `dlopen' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
||||
|
||||
|
||||
# win32-dll
|
||||
# ---------
|
||||
# Declare package support for building win32 dll's.
|
||||
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
||||
[enable_win32_dll=yes
|
||||
|
||||
case $host in
|
||||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
||||
AC_CHECK_TOOL(AS, as, false)
|
||||
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
||||
;;
|
||||
esac
|
||||
|
||||
test -z "$AS" && AS=as
|
||||
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
||||
|
||||
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
||||
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
||||
|
||||
test -z "$OBJDUMP" && OBJDUMP=objdump
|
||||
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
||||
])# win32-dll
|
||||
|
||||
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
||||
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the `win32-dll' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
||||
|
||||
|
||||
# _LT_ENABLE_SHARED([DEFAULT])
|
||||
# ----------------------------
|
||||
# implement the --enable-shared flag, and supports the `shared' and
|
||||
# `disable-shared' LT_INIT options.
|
||||
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||
m4_define([_LT_ENABLE_SHARED],
|
||||
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||
AC_ARG_ENABLE([shared],
|
||||
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
||||
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
||||
[p=${PACKAGE-default}
|
||||
case $enableval in
|
||||
yes) enable_shared=yes ;;
|
||||
no) enable_shared=no ;;
|
||||
*)
|
||||
enable_shared=no
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||
for pkg in $enableval; do
|
||||
IFS="$lt_save_ifs"
|
||||
if test "X$pkg" = "X$p"; then
|
||||
enable_shared=yes
|
||||
fi
|
||||
done
|
||||
IFS="$lt_save_ifs"
|
||||
;;
|
||||
esac],
|
||||
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
||||
|
||||
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
||||
[Whether or not to build shared libraries])
|
||||
])# _LT_ENABLE_SHARED
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
||||
|
||||
# Old names:
|
||||
AC_DEFUN([AC_ENABLE_SHARED],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_DISABLE_SHARED],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
||||
])
|
||||
|
||||
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
||||
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
||||
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
||||
|
||||
|
||||
|
||||
# _LT_ENABLE_STATIC([DEFAULT])
|
||||
# ----------------------------
|
||||
# implement the --enable-static flag, and support the `static' and
|
||||
# `disable-static' LT_INIT options.
|
||||
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||
m4_define([_LT_ENABLE_STATIC],
|
||||
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||
AC_ARG_ENABLE([static],
|
||||
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
||||
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
||||
[p=${PACKAGE-default}
|
||||
case $enableval in
|
||||
yes) enable_static=yes ;;
|
||||
no) enable_static=no ;;
|
||||
*)
|
||||
enable_static=no
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||
for pkg in $enableval; do
|
||||
IFS="$lt_save_ifs"
|
||||
if test "X$pkg" = "X$p"; then
|
||||
enable_static=yes
|
||||
fi
|
||||
done
|
||||
IFS="$lt_save_ifs"
|
||||
;;
|
||||
esac],
|
||||
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
||||
|
||||
_LT_DECL([build_old_libs], [enable_static], [0],
|
||||
[Whether or not to build static libraries])
|
||||
])# _LT_ENABLE_STATIC
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
||||
|
||||
# Old names:
|
||||
AC_DEFUN([AC_ENABLE_STATIC],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_DISABLE_STATIC],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
||||
])
|
||||
|
||||
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
||||
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
||||
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
||||
|
||||
|
||||
|
||||
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
||||
# ----------------------------------
|
||||
# implement the --enable-fast-install flag, and support the `fast-install'
|
||||
# and `disable-fast-install' LT_INIT options.
|
||||
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||
m4_define([_LT_ENABLE_FAST_INSTALL],
|
||||
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||
AC_ARG_ENABLE([fast-install],
|
||||
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
||||
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
||||
[p=${PACKAGE-default}
|
||||
case $enableval in
|
||||
yes) enable_fast_install=yes ;;
|
||||
no) enable_fast_install=no ;;
|
||||
*)
|
||||
enable_fast_install=no
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||
for pkg in $enableval; do
|
||||
IFS="$lt_save_ifs"
|
||||
if test "X$pkg" = "X$p"; then
|
||||
enable_fast_install=yes
|
||||
fi
|
||||
done
|
||||
IFS="$lt_save_ifs"
|
||||
;;
|
||||
esac],
|
||||
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
||||
|
||||
_LT_DECL([fast_install], [enable_fast_install], [0],
|
||||
[Whether or not to optimize for fast installation])dnl
|
||||
])# _LT_ENABLE_FAST_INSTALL
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
||||
|
||||
# Old names:
|
||||
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||
the `fast-install' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||
the `disable-fast-install' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
||||
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
||||
|
||||
|
||||
# _LT_WITH_PIC([MODE])
|
||||
# --------------------
|
||||
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
||||
# LT_INIT options.
|
||||
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
||||
m4_define([_LT_WITH_PIC],
|
||||
[AC_ARG_WITH([pic],
|
||||
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
||||
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
||||
[lt_p=${PACKAGE-default}
|
||||
case $withval in
|
||||
yes|no) pic_mode=$withval ;;
|
||||
*)
|
||||
pic_mode=default
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||
for lt_pkg in $withval; do
|
||||
IFS="$lt_save_ifs"
|
||||
if test "X$lt_pkg" = "X$lt_p"; then
|
||||
pic_mode=yes
|
||||
fi
|
||||
done
|
||||
IFS="$lt_save_ifs"
|
||||
;;
|
||||
esac],
|
||||
[pic_mode=default])
|
||||
|
||||
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
||||
|
||||
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
||||
])# _LT_WITH_PIC
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
||||
|
||||
# Old name:
|
||||
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
||||
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the `pic-only' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
||||
|
||||
## ----------------- ##
|
||||
## LTDL_INIT Options ##
|
||||
## ----------------- ##
|
||||
|
||||
m4_define([_LTDL_MODE], [])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
||||
[m4_define([_LTDL_MODE], [nonrecursive])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
||||
[m4_define([_LTDL_MODE], [recursive])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
||||
[m4_define([_LTDL_MODE], [subproject])])
|
||||
|
||||
m4_define([_LTDL_TYPE], [])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
||||
[m4_define([_LTDL_TYPE], [installable])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
||||
[m4_define([_LTDL_TYPE], [convenience])])
|
123
m4/ltsugar.m4
vendored
123
m4/ltsugar.m4
vendored
@ -1,123 +0,0 @@
|
||||
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
||||
# Written by Gary V. Vaughan, 2004
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 6 ltsugar.m4
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
||||
|
||||
|
||||
# lt_join(SEP, ARG1, [ARG2...])
|
||||
# -----------------------------
|
||||
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
||||
# associated separator.
|
||||
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
||||
# versions in m4sugar had bugs.
|
||||
m4_define([lt_join],
|
||||
[m4_if([$#], [1], [],
|
||||
[$#], [2], [[$2]],
|
||||
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
||||
m4_define([_lt_join],
|
||||
[m4_if([$#$2], [2], [],
|
||||
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
||||
|
||||
|
||||
# lt_car(LIST)
|
||||
# lt_cdr(LIST)
|
||||
# ------------
|
||||
# Manipulate m4 lists.
|
||||
# These macros are necessary as long as will still need to support
|
||||
# Autoconf-2.59 which quotes differently.
|
||||
m4_define([lt_car], [[$1]])
|
||||
m4_define([lt_cdr],
|
||||
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
||||
[$#], 1, [],
|
||||
[m4_dquote(m4_shift($@))])])
|
||||
m4_define([lt_unquote], $1)
|
||||
|
||||
|
||||
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
||||
# ------------------------------------------
|
||||
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
||||
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
||||
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
||||
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
||||
# than defined and empty).
|
||||
#
|
||||
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
||||
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
||||
m4_define([lt_append],
|
||||
[m4_define([$1],
|
||||
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
||||
|
||||
|
||||
|
||||
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
||||
# ----------------------------------------------------------
|
||||
# Produce a SEP delimited list of all paired combinations of elements of
|
||||
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
||||
# has the form PREFIXmINFIXSUFFIXn.
|
||||
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
||||
m4_define([lt_combine],
|
||||
[m4_if(m4_eval([$# > 3]), [1],
|
||||
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
||||
[[m4_foreach([_Lt_prefix], [$2],
|
||||
[m4_foreach([_Lt_suffix],
|
||||
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
||||
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
||||
|
||||
|
||||
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
||||
# -----------------------------------------------------------------------
|
||||
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
||||
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
||||
m4_define([lt_if_append_uniq],
|
||||
[m4_ifdef([$1],
|
||||
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
||||
[lt_append([$1], [$2], [$3])$4],
|
||||
[$5])],
|
||||
[lt_append([$1], [$2], [$3])$4])])
|
||||
|
||||
|
||||
# lt_dict_add(DICT, KEY, VALUE)
|
||||
# -----------------------------
|
||||
m4_define([lt_dict_add],
|
||||
[m4_define([$1($2)], [$3])])
|
||||
|
||||
|
||||
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
||||
# --------------------------------------------
|
||||
m4_define([lt_dict_add_subkey],
|
||||
[m4_define([$1($2:$3)], [$4])])
|
||||
|
||||
|
||||
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
||||
# ----------------------------------
|
||||
m4_define([lt_dict_fetch],
|
||||
[m4_ifval([$3],
|
||||
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
||||
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
||||
|
||||
|
||||
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
||||
# -----------------------------------------------------------------
|
||||
m4_define([lt_if_dict_fetch],
|
||||
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
||||
[$5],
|
||||
[$6])])
|
||||
|
||||
|
||||
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
||||
# --------------------------------------------------------------
|
||||
m4_define([lt_dict_filter],
|
||||
[m4_if([$5], [], [],
|
||||
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
||||
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
||||
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
||||
])
|
23
m4/ltversion.m4
vendored
23
m4/ltversion.m4
vendored
@ -1,23 +0,0 @@
|
||||
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant, 2004
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# @configure_input@
|
||||
|
||||
# serial 3337 ltversion.m4
|
||||
# This file is part of GNU Libtool
|
||||
|
||||
m4_define([LT_PACKAGE_VERSION], [2.4.2])
|
||||
m4_define([LT_PACKAGE_REVISION], [1.3337])
|
||||
|
||||
AC_DEFUN([LTVERSION_VERSION],
|
||||
[macro_version='2.4.2'
|
||||
macro_revision='1.3337'
|
||||
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
||||
_LT_DECL(, macro_revision, 0)
|
||||
])
|
98
m4/lt~obsolete.m4
vendored
98
m4/lt~obsolete.m4
vendored
@ -1,98 +0,0 @@
|
||||
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant, 2004.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 5 lt~obsolete.m4
|
||||
|
||||
# These exist entirely to fool aclocal when bootstrapping libtool.
|
||||
#
|
||||
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
||||
# which have later been changed to m4_define as they aren't part of the
|
||||
# exported API, or moved to Autoconf or Automake where they belong.
|
||||
#
|
||||
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
||||
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
||||
# using a macro with the same name in our local m4/libtool.m4 it'll
|
||||
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
||||
# and doesn't know about Autoconf macros at all.)
|
||||
#
|
||||
# So we provide this file, which has a silly filename so it's always
|
||||
# included after everything else. This provides aclocal with the
|
||||
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
||||
# because those macros already exist, or will be overwritten later.
|
||||
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
||||
#
|
||||
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
||||
# Yes, that means every name once taken will need to remain here until
|
||||
# we give up compatibility with versions before 1.7, at which point
|
||||
# we need to keep only those names which we still refer to.
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
||||
|
||||
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
||||
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
||||
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
||||
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
||||
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
||||
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
||||
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
||||
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
||||
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
||||
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
||||
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
||||
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
||||
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
||||
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
||||
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
||||
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
||||
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
||||
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
||||
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
||||
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
||||
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
||||
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
||||
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
||||
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
||||
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
||||
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
||||
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
||||
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
||||
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
||||
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
||||
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
||||
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
||||
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
||||
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
||||
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
||||
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
||||
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
||||
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
||||
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
||||
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
@ -22,8 +22,8 @@ set (H5_HDRS
|
||||
${HDF5_SRC_DIR}/hdf5.h
|
||||
${HDF5_SRC_DIR}/H5api_adpt.h
|
||||
${HDF5_SRC_DIR}/H5public.h
|
||||
${HDF5_SRC_DIR}/H5version.h
|
||||
${HDF5_SRC_DIR}/H5overflow.h
|
||||
#${HDF5_SRC_DIR}/H5version.h
|
||||
#${HDF5_SRC_DIR}/H5overflow.h
|
||||
)
|
||||
IDE_GENERATED_PROPERTIES ("H5" "${H5_HDRS}" "${H5_SRCS}" )
|
||||
|
||||
@ -133,12 +133,12 @@ set (H5E_SRCS
|
||||
)
|
||||
|
||||
set (H5E_HDRS
|
||||
${HDF5_SRC_DIR}/H5Edefin.h
|
||||
${HDF5_SRC_DIR}/H5Einit.h
|
||||
#${HDF5_SRC_DIR}/H5Edefin.h
|
||||
#${HDF5_SRC_DIR}/H5Einit.h
|
||||
${HDF5_SRC_DIR}/H5Epkg.h
|
||||
${HDF5_SRC_DIR}/H5Epubgen.h
|
||||
#${HDF5_SRC_DIR}/H5Epubgen.h
|
||||
${HDF5_SRC_DIR}/H5Epublic.h
|
||||
${HDF5_SRC_DIR}/H5Eterm.h
|
||||
#${HDF5_SRC_DIR}/H5Eterm.h
|
||||
)
|
||||
IDE_GENERATED_PROPERTIES ("H5E" "${H5E_HDRS}" "${H5E_SRCS}" )
|
||||
|
||||
@ -801,57 +801,66 @@ add_custom_command (
|
||||
WORKING_DIRECTORY ${HDF5_BINARY_DIR}
|
||||
)
|
||||
|
||||
if (GENERATE_ERROR_HEADERS)
|
||||
if (HDF5_GENERATE_HEADERS)
|
||||
find_package (Perl)
|
||||
if (PERL_FOUND)
|
||||
add_custom_command (
|
||||
OUTPUT ${HDF5_BINARY_DIR}/H5Edefin.h
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/H5Edefin.h ${CMAKE_CURRENT_BINARY_DIR}/H5Einit.h ${CMAKE_CURRENT_BINARY_DIR}/H5Epubgen.h ${CMAKE_CURRENT_BINARY_DIR}/H5Eterm.h
|
||||
PRE_BUILD
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_err ${HDF5_SOURCE_DIR}/src/H5err.txt
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_err ${HDF5_SOURCE_DIR}/src/H5err.txt ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${HDF5_SOURCE_DIR}/src/H5err.txt
|
||||
COMMENT " Creating err header"
|
||||
)
|
||||
|
||||
add_custom_command (
|
||||
OUTPUT ${HDF5_BINARY_DIR}/H5version.h
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/H5version.h
|
||||
PRE_BUILD
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_vers ${HDF5_SOURCE_DIR}/src/H5vers.txt
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_vers ${HDF5_SOURCE_DIR}/src/H5vers.txt ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${HDF5_SOURCE_DIR}/src/H5vers.txt
|
||||
COMMENT " Creating API version macro"
|
||||
)
|
||||
|
||||
add_custom_command (
|
||||
OUTPUT ${HDF5_BINARY_DIR}/H5overflow.h
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/H5overflow.h
|
||||
PRE_BUILD
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_overflow ${HDF5_SOURCE_DIR}/src/H5overflow.txt
|
||||
ARGS ${HDF5_SOURCE_DIR}/bin/make_overflow ${HDF5_SOURCE_DIR}/src/H5overflow.txt ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${HDF5_SOURCE_DIR}/src/H5overflow.txt
|
||||
COMMENT " Creating Assignment overflow macro"
|
||||
)
|
||||
|
||||
add_custom_target(run_perl_scripts ALL
|
||||
DEPENDS ${HDF5_BINARY_DIR}/H5Edefin.h ${HDF5_BINARY_DIR}/H5version.h ${HDF5_BINARY_DIR}/H5overflow.h
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/H5Edefin.h ${CMAKE_CURRENT_BINARY_DIR}/H5version.h ${CMAKE_CURRENT_BINARY_DIR}/H5overflow.h
|
||||
)
|
||||
else (PERL_FOUND)
|
||||
message (STATUS "Cannot generate headers - perl not found")
|
||||
endif (PERL_FOUND)
|
||||
endif (GENERATE_ERROR_HEADERS)
|
||||
endif (HDF5_GENERATE_HEADERS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add H5Tinit source to build - generated by H5Detect/CMake at configure time
|
||||
#-----------------------------------------------------------------------------
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_BINARY_DIR}/H5Tinit.c)
|
||||
set_source_files_properties (${HDF5_BINARY_DIR}/H5Tinit.c GENERATED)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_BINARY_DIR}/H5lib_settings.c)
|
||||
set_source_files_properties (${HDF5_BINARY_DIR}/H5lib_settings.c GENERATED)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_BINARY_DIR}/H5Edefin.h)
|
||||
set_source_files_properties (${HDF5_BINARY_DIR}/H5Edefin.h GENERATED)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_BINARY_DIR}/H5version.h)
|
||||
set_source_files_properties (${HDF5_BINARY_DIR}/H5version.h GENERATED)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_BINARY_DIR}/H5overflow.h)
|
||||
set_source_files_properties (${HDF5_BINARY_DIR}/H5overflow.h GENERATED)
|
||||
|
||||
if (HDF5_GENERATE_HEADERS)
|
||||
set (common_SRCS ${common_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/H5Edefin.h)
|
||||
set (common_SRCS ${common_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/H5Einit.h)
|
||||
set (common_SRCS ${common_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/H5Epubgen.h)
|
||||
set (common_SRCS ${common_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/H5Eterm.h)
|
||||
set (common_SRCS ${common_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/H5version.h)
|
||||
set (common_SRCS ${common_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/H5overflow.h)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
else (HDF5_GENERATE_HEADERS)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_SRC_DIR}/H5Edefin.h)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_SRC_DIR}/H5Einit.h)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_SRC_DIR}/H5Epubgen.h)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_SRC_DIR}/H5Eterm.h)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_SRC_DIR}/H5version.h)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_SRC_DIR}/H5overflow.h)
|
||||
endif (HDF5_GENERATE_HEADERS)
|
||||
|
||||
add_library (${HDF5_LIB_TARGET} STATIC ${common_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_LIB_TARGET} STATIC " " " ")
|
||||
|
@ -1214,6 +1214,7 @@ H5T__init_package(void)
|
||||
status |= H5T_register(H5T_PERS_HARD, "dbl_uint", native_double, native_uint, H5T__conv_double_uint, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "ldbl_uint", native_ldouble, native_uint, H5T__conv_ldouble_uint, H5AC_ind_dxpl_id, FALSE);
|
||||
|
||||
/* From floats to long */
|
||||
status |= H5T_register(H5T_PERS_HARD, "flt_long", native_float, native_long, H5T__conv_float_long, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "dbl_long", native_double, native_long, H5T__conv_double_long, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "ldbl_long", native_ldouble, native_long, H5T__conv_ldouble_long, H5AC_ind_dxpl_id, FALSE);
|
||||
|
@ -1,641 +0,0 @@
|
||||
/* src/H5config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
/* Define if the memory buffers being written to disk should be cleared before
|
||||
writing. */
|
||||
#undef CLEAR_MEMORY
|
||||
|
||||
/* Define if C++ compiler recognizes offsetof */
|
||||
#undef CXX_HAVE_OFFSETOF
|
||||
|
||||
/* Define the default plugins path to compile */
|
||||
#undef DEFAULT_PLUGINDIR
|
||||
|
||||
/* Define if `dev_t' is a scalar */
|
||||
#undef DEV_T_IS_SCALAR
|
||||
|
||||
/* Define to dummy `main' function (if any) required to link to the Fortran
|
||||
libraries. */
|
||||
#undef FC_DUMMY_MAIN
|
||||
|
||||
/* Define if F77 and FC dummy `main' functions are identical. */
|
||||
#undef FC_DUMMY_MAIN_EQ_F77
|
||||
|
||||
/* Define to a macro mangling the given C identifier (in lower and upper
|
||||
case), which must not contain underscores, for linking with Fortran. */
|
||||
#undef FC_FUNC
|
||||
|
||||
/* As FC_FUNC, but for C identifiers containing underscores. */
|
||||
#undef FC_FUNC_
|
||||
|
||||
/* Define if Fortran C_LONG_DOUBLE is different from C_DOUBLE */
|
||||
#undef FORTRAN_C_LONG_DOUBLE_IS_UNIQUE
|
||||
|
||||
/* Define if we have Fortran C_LONG_DOUBLE */
|
||||
#undef FORTRAN_HAVE_C_LONG_DOUBLE
|
||||
|
||||
/* Define if we have Fortran intrinsic C_SIZEOF */
|
||||
#undef FORTRAN_HAVE_C_SIZEOF
|
||||
|
||||
/* Define if we have Fortran intrinsic SIZEOF */
|
||||
#undef FORTRAN_HAVE_SIZEOF
|
||||
|
||||
/* Define if we have Fortran intrinsic STORAGE_SIZE */
|
||||
#undef FORTRAN_HAVE_STORAGE_SIZE
|
||||
|
||||
/* Determine the size of C long double */
|
||||
#undef FORTRAN_SIZEOF_LONG_DOUBLE
|
||||
|
||||
/* Define Fortran compiler ID */
|
||||
#undef Fortran_COMPILER_ID
|
||||
|
||||
/* Define valid Fortran INTEGER KINDs */
|
||||
#undef H5CONFIG_F_IKIND
|
||||
|
||||
/* Define number of valid Fortran INTEGER KINDs */
|
||||
#undef H5CONFIG_F_NUM_IKIND
|
||||
|
||||
/* Define number of valid Fortran REAL KINDs */
|
||||
#undef H5CONFIG_F_NUM_RKIND
|
||||
|
||||
/* Define valid Fortran REAL KINDs */
|
||||
#undef H5CONFIG_F_RKIND
|
||||
|
||||
/* Define valid Fortran REAL KINDs Sizeof */
|
||||
#undef H5CONFIG_F_RKIND_SIZEOF
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#undef HAVE_ALARM
|
||||
|
||||
/* Define to 1 if you have the `asprintf' function. */
|
||||
#undef HAVE_ASPRINTF
|
||||
|
||||
/* Define if the __attribute__(()) extension is present */
|
||||
#undef HAVE_ATTRIBUTE
|
||||
|
||||
/* Define if the compiler understands C99 designated initialization of structs
|
||||
and unions */
|
||||
#undef HAVE_C99_DESIGNATED_INITIALIZER
|
||||
|
||||
/* Define if the compiler understands the __func__ keyword */
|
||||
#undef HAVE_C99_FUNC
|
||||
|
||||
/* Define to 1 if you have the `clock_gettime' function. */
|
||||
#undef HAVE_CLOCK_GETTIME
|
||||
|
||||
/* Define if the function stack tracing code is to be compiled in */
|
||||
#undef HAVE_CODESTACK
|
||||
|
||||
/* Define if Darwin or Mac OS X */
|
||||
#undef HAVE_DARWIN
|
||||
|
||||
/* Define to 1 if you have the `difftime' function. */
|
||||
#undef HAVE_DIFFTIME
|
||||
|
||||
/* Define if the direct I/O virtual file driver (VFD) should be compiled */
|
||||
#undef HAVE_DIRECT
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file. */
|
||||
#undef HAVE_DIRENT_H
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the <dmalloc.h> header file. */
|
||||
#undef HAVE_DMALLOC_H
|
||||
|
||||
/* Define if library information should be embedded in the executables */
|
||||
#undef HAVE_EMBEDDED_LIBINFO
|
||||
|
||||
/* Define to 1 if you have the <features.h> header file. */
|
||||
#undef HAVE_FEATURES_H
|
||||
|
||||
/* Define if support for deflate (zlib) filter is enabled */
|
||||
#undef HAVE_FILTER_DEFLATE
|
||||
|
||||
/* Define if support for szip filter is enabled */
|
||||
#undef HAVE_FILTER_SZIP
|
||||
|
||||
/* Determine if __float128 is available */
|
||||
#undef HAVE_FLOAT128
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#undef HAVE_FORK
|
||||
|
||||
/* Define to 1 if you have the `frexpf' function. */
|
||||
#undef HAVE_FREXPF
|
||||
|
||||
/* Define to 1 if you have the `frexpl' function. */
|
||||
#undef HAVE_FREXPL
|
||||
|
||||
/* Define to 1 if you have the `fseeko' function. */
|
||||
#undef HAVE_FSEEKO
|
||||
|
||||
/* Define to 1 if you have the `fseeko64' function. */
|
||||
#undef HAVE_FSEEKO64
|
||||
|
||||
/* Define to 1 if you have the `fstat64' function. */
|
||||
#undef HAVE_FSTAT64
|
||||
|
||||
/* Define to 1 if you have the `ftello' function. */
|
||||
#undef HAVE_FTELLO
|
||||
|
||||
/* Define to 1 if you have the `ftello64' function. */
|
||||
#undef HAVE_FTELLO64
|
||||
|
||||
/* Define to 1 if you have the `ftruncate64' function. */
|
||||
#undef HAVE_FTRUNCATE64
|
||||
|
||||
/* Define if the compiler understands the __FUNCTION__ keyword */
|
||||
#undef HAVE_FUNCTION
|
||||
|
||||
/* Determine if INTEGER*16 is available */
|
||||
#undef HAVE_Fortran_INTEGER_SIZEOF_16
|
||||
|
||||
/* Define to 1 if you have the `GetConsoleScreenBufferInfo' function. */
|
||||
#undef HAVE_GETCONSOLESCREENBUFFERINFO
|
||||
|
||||
/* Define to 1 if you have the `gethostname' function. */
|
||||
#undef HAVE_GETHOSTNAME
|
||||
|
||||
/* Define to 1 if you have the `getpwuid' function. */
|
||||
#undef HAVE_GETPWUID
|
||||
|
||||
/* Define to 1 if you have the `getrusage' function. */
|
||||
#undef HAVE_GETRUSAGE
|
||||
|
||||
/* Define to 1 if you have the `gettextinfo' function. */
|
||||
#undef HAVE_GETTEXTINFO
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
#undef HAVE_GETTIMEOFDAY
|
||||
|
||||
/* Define if the compiler understands inline */
|
||||
#undef HAVE_INLINE
|
||||
|
||||
/* Define if library will contain instrumentation to detect correct
|
||||
optimization operation */
|
||||
#undef HAVE_INSTRUMENTED_LIBRARY
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the `ioctl' function. */
|
||||
#undef HAVE_IOCTL
|
||||
|
||||
/* Define to 1 if you have the <io.h> header file. */
|
||||
#undef HAVE_IO_H
|
||||
|
||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
||||
#undef HAVE_LIBDL
|
||||
|
||||
/* Define to 1 if you have the `dmalloc' library (-ldmalloc). */
|
||||
#undef HAVE_LIBDMALLOC
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
/* Define to 1 if you have the `mpe' library (-lmpe). */
|
||||
#undef HAVE_LIBMPE
|
||||
|
||||
/* Define to 1 if you have the `pthread' library (-lpthread). */
|
||||
#undef HAVE_LIBPTHREAD
|
||||
|
||||
/* Define to 1 if you have the `sz' library (-lsz). */
|
||||
#undef HAVE_LIBSZ
|
||||
|
||||
/* Define to 1 if you have the `ws2_32' library (-lws2_32). */
|
||||
#undef HAVE_LIBWS2_32
|
||||
|
||||
/* Define to 1 if you have the `z' library (-lz). */
|
||||
#undef HAVE_LIBZ
|
||||
|
||||
/* Define to 1 if you have the `longjmp' function. */
|
||||
#undef HAVE_LONGJMP
|
||||
|
||||
/* Define to 1 if you have the `lseek64' function. */
|
||||
#undef HAVE_LSEEK64
|
||||
|
||||
/* Define to 1 if you have the `lstat' function. */
|
||||
#undef HAVE_LSTAT
|
||||
|
||||
/* Define to 1 if you have the <mach/mach_time.h> header file. */
|
||||
#undef HAVE_MACH_MACH_TIME_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define if we have MPE support */
|
||||
#undef HAVE_MPE
|
||||
|
||||
/* Define to 1 if you have the <mpe.h> header file. */
|
||||
#undef HAVE_MPE_H
|
||||
|
||||
/* Define if `MPI_Comm_c2f' and `MPI_Comm_f2c' exists */
|
||||
#undef HAVE_MPI_MULTI_LANG_Comm
|
||||
|
||||
/* Define if `MPI_Info_c2f' and `MPI_Info_f2c' exists */
|
||||
#undef HAVE_MPI_MULTI_LANG_Info
|
||||
|
||||
/* Define if we have parallel support */
|
||||
#undef HAVE_PARALLEL
|
||||
|
||||
/* Define to 1 if you have the <pthread.h> header file. */
|
||||
#undef HAVE_PTHREAD_H
|
||||
|
||||
/* Define to 1 if you have the <quadmath.h> header file. */
|
||||
#undef HAVE_QUADMATH_H
|
||||
|
||||
/* Define to 1 if you have the `random' function. */
|
||||
#undef HAVE_RANDOM
|
||||
|
||||
/* Define to 1 if you have the `rand_r' function. */
|
||||
#undef HAVE_RAND_R
|
||||
|
||||
/* Define to 1 if you have the `setjmp' function. */
|
||||
#undef HAVE_SETJMP
|
||||
|
||||
/* Define to 1 if you have the <setjmp.h> header file. */
|
||||
#undef HAVE_SETJMP_H
|
||||
|
||||
/* Define to 1 if you have the `setsysinfo' function. */
|
||||
#undef HAVE_SETSYSINFO
|
||||
|
||||
/* Define to 1 if you have the `siglongjmp' function. */
|
||||
#undef HAVE_SIGLONGJMP
|
||||
|
||||
/* Define to 1 if you have the `signal' function. */
|
||||
#undef HAVE_SIGNAL
|
||||
|
||||
/* Define to 1 if you have the `sigprocmask' function. */
|
||||
#undef HAVE_SIGPROCMASK
|
||||
|
||||
/* Define to 1 if you have the `sigsetjmp' function. */
|
||||
#undef HAVE_SIGSETJMP
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#undef HAVE_SNPRINTF
|
||||
|
||||
/* Define to 1 if you have the `srandom' function. */
|
||||
#undef HAVE_SRANDOM
|
||||
|
||||
/* Define to 1 if you have the `stat64' function. */
|
||||
#undef HAVE_STAT64
|
||||
|
||||
/* Define if `struct stat' has the `st_blocks' field */
|
||||
#undef HAVE_STAT_ST_BLOCKS
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#undef HAVE_STDDEF_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
#undef HAVE_STRDUP
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define if `struct text_info' is defined */
|
||||
#undef HAVE_STRUCT_TEXT_INFO
|
||||
|
||||
/* Define if `struct videoconfig' is defined */
|
||||
#undef HAVE_STRUCT_VIDEOCONFIG
|
||||
|
||||
/* Define to 1 if you have the `symlink' function. */
|
||||
#undef HAVE_SYMLINK
|
||||
|
||||
/* Define to 1 if you have the `system' function. */
|
||||
#undef HAVE_SYSTEM
|
||||
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||
#undef HAVE_SYS_IOCTL_H
|
||||
|
||||
/* Define to 1 if you have the <sys/resource.h> header file. */
|
||||
#undef HAVE_SYS_RESOURCE_H
|
||||
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#undef HAVE_SYS_SOCKET_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/timeb.h> header file. */
|
||||
#undef HAVE_SYS_TIMEB_H
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#undef HAVE_SYS_TIME_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <szlib.h> header file. */
|
||||
#undef HAVE_SZLIB_H
|
||||
|
||||
/* Define if we have thread safe support */
|
||||
#undef HAVE_THREADSAFE
|
||||
|
||||
/* Define if `timezone' is a global variable */
|
||||
#undef HAVE_TIMEZONE
|
||||
|
||||
/* Define if the ioctl TIOCGETD is defined */
|
||||
#undef HAVE_TIOCGETD
|
||||
|
||||
/* Define if the ioctl TIOGWINSZ is defined */
|
||||
#undef HAVE_TIOCGWINSZ
|
||||
|
||||
/* Define to 1 if you have the `tmpfile' function. */
|
||||
#undef HAVE_TMPFILE
|
||||
|
||||
/* Define if `tm_gmtoff' is a member of `struct tm' */
|
||||
#undef HAVE_TM_GMTOFF
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the `vasprintf' function. */
|
||||
#undef HAVE_VASPRINTF
|
||||
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
#undef HAVE_VSNPRINTF
|
||||
|
||||
/* Define to 1 if you have the `waitpid' function. */
|
||||
#undef HAVE_WAITPID
|
||||
|
||||
/* Define if your system has window style path name. */
|
||||
#undef HAVE_WINDOW_PATH
|
||||
|
||||
/* Define to 1 if you have the <winsock2.h> header file. */
|
||||
#undef HAVE_WINSOCK2_H
|
||||
|
||||
/* Define to 1 if you have the <zlib.h> header file. */
|
||||
#undef HAVE_ZLIB_H
|
||||
|
||||
/* Define to 1 if you have the `_getvideoconfig' function. */
|
||||
#undef HAVE__GETVIDEOCONFIG
|
||||
|
||||
/* Define to 1 if you have the `_scrsize' function. */
|
||||
#undef HAVE__SCRSIZE
|
||||
|
||||
/* Define if the compiler understands __inline */
|
||||
#undef HAVE___INLINE
|
||||
|
||||
/* Define if the compiler understands __inline__ */
|
||||
#undef HAVE___INLINE__
|
||||
|
||||
/* Define if HDF5's high-level library headers should be included in hdf5.h */
|
||||
#undef INCLUDE_HL
|
||||
|
||||
/* Define if your system can convert long double to (unsigned) long long
|
||||
values correctly. */
|
||||
#undef LDOUBLE_TO_LLONG_ACCURATE
|
||||
|
||||
/* Define if your system converts long double to (unsigned) long values with
|
||||
special algorithm. */
|
||||
#undef LDOUBLE_TO_LONG_SPECIAL
|
||||
|
||||
/* Define if your system can convert (unsigned) long long to long double
|
||||
values correctly. */
|
||||
#undef LLONG_TO_LDOUBLE_CORRECT
|
||||
|
||||
/* Define if your system can convert (unsigned) long to long double values
|
||||
with special algorithm. */
|
||||
#undef LONG_TO_LDOUBLE_SPECIAL
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#undef LT_OBJDIR
|
||||
|
||||
/* Define if the metadata trace file code is to be compiled in */
|
||||
#undef METADATA_TRACE_FILE
|
||||
|
||||
/* Define if we can violate pointer alignment restrictions */
|
||||
#undef NO_ALIGNMENT_RESTRICTIONS
|
||||
|
||||
/* Define if deprecated public API symbols are disabled */
|
||||
#undef NO_DEPRECATED_SYMBOLS
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Determine the maximum decimal precision in C */
|
||||
#undef PAC_C_MAX_REAL_PRECISION
|
||||
|
||||
/* Define Fortran Maximum Real Decimal Precision */
|
||||
#undef PAC_FC_MAX_REAL_PRECISION
|
||||
|
||||
/* Width for printf() for type `long long' or `__int64', use `ll' */
|
||||
#undef PRINTF_LL_WIDTH
|
||||
|
||||
/* The size of `char', as computed by sizeof. */
|
||||
#undef SIZEOF_CHAR
|
||||
|
||||
/* The size of `double', as computed by sizeof. */
|
||||
#undef SIZEOF_DOUBLE
|
||||
|
||||
/* The size of `float', as computed by sizeof. */
|
||||
#undef SIZEOF_FLOAT
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
#undef SIZEOF_INT
|
||||
|
||||
/* The size of `int16_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT16_T
|
||||
|
||||
/* The size of `int32_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT32_T
|
||||
|
||||
/* The size of `int64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT64_T
|
||||
|
||||
/* The size of `int8_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT8_T
|
||||
|
||||
/* The size of `int_fast16_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_FAST16_T
|
||||
|
||||
/* The size of `int_fast32_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_FAST32_T
|
||||
|
||||
/* The size of `int_fast64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_FAST64_T
|
||||
|
||||
/* The size of `int_fast8_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_FAST8_T
|
||||
|
||||
/* The size of `int_least16_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_LEAST16_T
|
||||
|
||||
/* The size of `int_least32_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_LEAST32_T
|
||||
|
||||
/* The size of `int_least64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_LEAST64_T
|
||||
|
||||
/* The size of `int_least8_t', as computed by sizeof. */
|
||||
#undef SIZEOF_INT_LEAST8_T
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#undef SIZEOF_LONG
|
||||
|
||||
/* The size of `long double', as computed by sizeof. */
|
||||
#undef SIZEOF_LONG_DOUBLE
|
||||
|
||||
/* The size of `long long', as computed by sizeof. */
|
||||
#undef SIZEOF_LONG_LONG
|
||||
|
||||
/* The size of `off64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_OFF64_T
|
||||
|
||||
/* The size of `off_t', as computed by sizeof. */
|
||||
#undef SIZEOF_OFF_T
|
||||
|
||||
/* The size of `ptrdiff_t', as computed by sizeof. */
|
||||
#undef SIZEOF_PTRDIFF_T
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#undef SIZEOF_SHORT
|
||||
|
||||
/* The size of `size_t', as computed by sizeof. */
|
||||
#undef SIZEOF_SIZE_T
|
||||
|
||||
/* The size of `ssize_t', as computed by sizeof. */
|
||||
#undef SIZEOF_SSIZE_T
|
||||
|
||||
/* The size of `uint16_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT16_T
|
||||
|
||||
/* The size of `uint32_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT32_T
|
||||
|
||||
/* The size of `uint64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT64_T
|
||||
|
||||
/* The size of `uint8_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT8_T
|
||||
|
||||
/* The size of `uint_fast16_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_FAST16_T
|
||||
|
||||
/* The size of `uint_fast32_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_FAST32_T
|
||||
|
||||
/* The size of `uint_fast64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_FAST64_T
|
||||
|
||||
/* The size of `uint_fast8_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_FAST8_T
|
||||
|
||||
/* The size of `uint_least16_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_LEAST16_T
|
||||
|
||||
/* The size of `uint_least32_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_LEAST32_T
|
||||
|
||||
/* The size of `uint_least64_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_LEAST64_T
|
||||
|
||||
/* The size of `uint_least8_t', as computed by sizeof. */
|
||||
#undef SIZEOF_UINT_LEAST8_T
|
||||
|
||||
/* The size of `unsigned', as computed by sizeof. */
|
||||
#undef SIZEOF_UNSIGNED
|
||||
|
||||
/* The size of `_Quad', as computed by sizeof. */
|
||||
#undef SIZEOF__QUAD
|
||||
|
||||
/* The size of `__float128', as computed by sizeof. */
|
||||
#undef SIZEOF___FLOAT128
|
||||
|
||||
/* The size of `__int64', as computed by sizeof. */
|
||||
#undef SIZEOF___INT64
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define if strict file format checks are enabled */
|
||||
#undef STRICT_FORMAT_CHECKS
|
||||
|
||||
/* Define if your system supports pthread_attr_setscope(&attribute,
|
||||
PTHREAD_SCOPE_SYSTEM) call. */
|
||||
#undef SYSTEM_SCOPE_THREADS
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define using v1.6 public API symbols by default */
|
||||
#undef USE_16_API_DEFAULT
|
||||
|
||||
/* Define if a memory checking tool will be used on the library, to cause
|
||||
library to be very picky about memory operations and also disable the
|
||||
internal free list manager code. */
|
||||
#undef USING_MEMCHECKER
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Data accuracy is prefered to speed during data conversions */
|
||||
#undef WANT_DATA_ACCURACY
|
||||
|
||||
/* Check exception handling functions during data conversions */
|
||||
#undef WANT_DCONV_EXCEPTION
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
# undef WORDS_BIGENDIAN
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#undef _FILE_OFFSET_BITS
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
#undef _LARGE_FILES
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#undef const
|
||||
|
||||
/* Define to `long int' if <sys/types.h> does not define. */
|
||||
#undef off_t
|
||||
|
||||
/* Define to `long' if <sys/types.h> does not define. */
|
||||
#undef ptrdiff_t
|
||||
|
||||
/* Define to `unsigned long' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
||||
|
||||
/* Define to `long' if <sys/types.h> does not define. */
|
||||
#undef ssize_t
|
157
src/H5trace.c
157
src/H5trace.c
@ -15,11 +15,11 @@
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* Created: H5trace.c
|
||||
* Aug 21 2006
|
||||
* Quincey Koziol <koziol@hdfgroup.org>
|
||||
* Created: H5trace.c
|
||||
* Aug 21 2006
|
||||
* Quincey Koziol <koziol@hdfgroup.org>
|
||||
*
|
||||
* Purpose: Internal code for tracing API calls
|
||||
* Purpose: Internal code for tracing API calls
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -29,16 +29,15 @@
|
||||
/****************/
|
||||
#define H5I_FRIEND /*suppress error about including H5Ipkg */
|
||||
|
||||
|
||||
/***********/
|
||||
/* Headers */
|
||||
/***********/
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Dprivate.h" /* Datasets */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FDprivate.h" /* File drivers */
|
||||
#include "H5Ipkg.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Dprivate.h" /* Datasets */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FDprivate.h" /* File drivers */
|
||||
#include "H5Ipkg.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
/* datatypes of predefined drivers needed by H5_trace() */
|
||||
@ -83,36 +82,36 @@
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5_trace
|
||||
* Function: H5_trace
|
||||
*
|
||||
* Purpose: This function is called whenever an API function is called
|
||||
* and tracing is turned on. If RETURNING is non-zero then
|
||||
* the caller is about to return and RETURNING points to the
|
||||
* Purpose: This function is called whenever an API function is called
|
||||
* and tracing is turned on. If RETURNING is non-zero then
|
||||
* the caller is about to return and RETURNING points to the
|
||||
* time for the corresponding function call event. Otherwise
|
||||
* we print the function name and the arguments.
|
||||
*
|
||||
* The TYPE argument is a string which gives the type of each of
|
||||
* the following argument pairs. Each type is zero or more
|
||||
* asterisks (one for each level of indirection, although some
|
||||
* types have one level of indirection already implied) followed
|
||||
* by either one letter (lower case) or two letters (first one
|
||||
* uppercase).
|
||||
* The TYPE argument is a string which gives the type of each of
|
||||
* the following argument pairs. Each type is zero or more
|
||||
* asterisks (one for each level of indirection, although some
|
||||
* types have one level of indirection already implied) followed
|
||||
* by either one letter (lower case) or two letters (first one
|
||||
* uppercase).
|
||||
*
|
||||
* The variable argument list consists of pairs of values. Each
|
||||
* pair is a string which is the formal argument name in the
|
||||
* calling function, followed by the argument value. The type
|
||||
* of the argument value is given by the TYPE string.
|
||||
* The variable argument list consists of pairs of values. Each
|
||||
* pair is a string which is the formal argument name in the
|
||||
* calling function, followed by the argument value. The type
|
||||
* of the argument value is given by the TYPE string.
|
||||
*
|
||||
* Note: The TYPE string is meant to be terse and is generated by a
|
||||
* separate perl script.
|
||||
* Note: The TYPE string is meant to be terse and is generated by a
|
||||
* separate perl script.
|
||||
*
|
||||
* WARNING: DO NOT CALL ANY HDF5 FUNCTION THAT CALLS FUNC_ENTER(). DOING
|
||||
* SO MAY CAUSE H5_trace() TO BE INVOKED RECURSIVELY OR MAY
|
||||
* CAUSE LIBRARY INITIALIZATIONS THAT ARE NOT DESIRED.
|
||||
* WARNING: DO NOT CALL ANY HDF5 FUNCTION THAT CALLS FUNC_ENTER(). DOING
|
||||
* SO MAY CAUSE H5_trace() TO BE INVOKED RECURSIVELY OR MAY
|
||||
* CAUSE LIBRARY INITIALIZATIONS THAT ARE NOT DESIRED.
|
||||
*
|
||||
* Return: Execution time for an API call
|
||||
* Return: Execution time for an API call
|
||||
*
|
||||
* Programmer: Robb Matzke
|
||||
* Programmer: Robb Matzke
|
||||
* Tuesday, June 16, 1998
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
@ -120,14 +119,14 @@
|
||||
double
|
||||
H5_trace(const double *returning, const char *func, const char *type, ...)
|
||||
{
|
||||
va_list ap;
|
||||
char buf[64], *rest;
|
||||
const char *argname;
|
||||
int argno = 0, ptr, asize_idx;
|
||||
hssize_t asize[16];
|
||||
hssize_t i;
|
||||
void *vp = NULL;
|
||||
FILE *out = H5_debug_g.trace;
|
||||
va_list ap;
|
||||
char buf[64], *rest;
|
||||
const char *argname;
|
||||
int argno = 0, ptr, asize_idx;
|
||||
hssize_t asize[16];
|
||||
hssize_t i;
|
||||
void *vp = NULL;
|
||||
FILE *out = H5_debug_g.trace;
|
||||
H5_timer_t event_time;
|
||||
static H5_timer_t first_time = {0.0F, 0.0F, 0.0F};
|
||||
static int current_depth = 0;
|
||||
@ -206,48 +205,48 @@ H5_trace(const double *returning, const char *func, const char *type, ...)
|
||||
|
||||
/* Parse the argument types */
|
||||
for(argno = 0; *type; argno++, type += (HDisupper(*type) ? 2 : 1)) {
|
||||
/* Count levels of indirection */
|
||||
for(ptr = 0; '*' == *type; type++)
|
||||
/* Count levels of indirection */
|
||||
for(ptr = 0; '*' == *type; type++)
|
||||
ptr++;
|
||||
if('[' == *type) {
|
||||
if('a' == type[1]) {
|
||||
asize_idx = (int)HDstrtol(type + 2, &rest, 10);
|
||||
if('[' == *type) {
|
||||
if('a' == type[1]) {
|
||||
asize_idx = (int)HDstrtol(type + 2, &rest, 10);
|
||||
HDassert(0 <= asize_idx && asize_idx < (int) NELMTS(asize));
|
||||
HDassert(']'==*rest);
|
||||
type = rest + 1;
|
||||
} else {
|
||||
rest = (char *)HDstrchr(type, ']');
|
||||
HDassert(rest);
|
||||
type = rest + 1;
|
||||
asize_idx = -1;
|
||||
}
|
||||
} /* end if */
|
||||
HDassert(']'==*rest);
|
||||
type = rest + 1;
|
||||
} else {
|
||||
rest = (char *)HDstrchr(type, ']');
|
||||
HDassert(rest);
|
||||
type = rest + 1;
|
||||
asize_idx = -1;
|
||||
}
|
||||
} /* end if */
|
||||
else
|
||||
asize_idx = -1;
|
||||
asize_idx = -1;
|
||||
|
||||
/*
|
||||
* The argument name. Leave off the `_id' part. If the argument
|
||||
* name is the null pointer then don't print the argument or the
|
||||
* following `='. This is used for return values.
|
||||
*/
|
||||
argname = va_arg(ap, char *); /*lint !e64 Type mismatch not really occuring */
|
||||
if(argname) {
|
||||
unsigned n = (unsigned)MAX (0, (int)HDstrlen(argname) - 3); /*lint !e666 Allow expression with side effects */
|
||||
/*
|
||||
* The argument name. Leave off the `_id' part. If the argument
|
||||
* name is the null pointer then don't print the argument or the
|
||||
* following `='. This is used for return values.
|
||||
*/
|
||||
argname = va_arg(ap, char *); /*lint !e64 Type mismatch not really occuring */
|
||||
if(argname) {
|
||||
unsigned n = (unsigned)MAX (0, (int)HDstrlen(argname) - 3); /*lint !e666 Allow expression with side effects */
|
||||
|
||||
if(!HDstrcmp(argname + n, "_id")) {
|
||||
HDstrncpy(buf, argname, (size_t)MIN((int)sizeof(buf) - 1, n));
|
||||
buf[MIN((int)sizeof(buf) - 1, n)] = '\0';
|
||||
argname = buf;
|
||||
} /* end if */
|
||||
fprintf(out, "%s%s=", argno?", ":"", argname);
|
||||
} /* end if */
|
||||
if(!HDstrcmp(argname + n, "_id")) {
|
||||
HDstrncpy(buf, argname, (size_t)MIN((int)sizeof(buf) - 1, n));
|
||||
buf[MIN((int)sizeof(buf) - 1, n)] = '\0';
|
||||
argname = buf;
|
||||
} /* end if */
|
||||
fprintf(out, "%s%s=", argno?", ":"", argname);
|
||||
} /* end if */
|
||||
else
|
||||
argname = "";
|
||||
argname = "";
|
||||
|
||||
/* The value */
|
||||
if(ptr)
|
||||
/* The value */
|
||||
if(ptr)
|
||||
vp = va_arg(ap, void *); /*lint !e64 Type mismatch not really occuring */
|
||||
switch(type[0]) {
|
||||
switch(type[0]) {
|
||||
case 'a':
|
||||
if(ptr) {
|
||||
if(vp)
|
||||
@ -268,7 +267,7 @@ H5_trace(const double *returning, const char *func, const char *type, ...)
|
||||
fprintf(out, "0x%lx", (unsigned long)vp);
|
||||
else
|
||||
fprintf(out, "NULL");
|
||||
} /* end if */
|
||||
} /* end if */
|
||||
else {
|
||||
hbool_t bool_var = va_arg(ap, hbool_t); /*lint !e732 Loss of sign not really occuring */
|
||||
|
||||
@ -2554,7 +2553,7 @@ H5_trace(const double *returning, const char *func, const char *type, ...)
|
||||
else
|
||||
fprintf(out, "BADTYPE(%c)", type[0]);
|
||||
goto error;
|
||||
} /* end switch */
|
||||
} /* end switch */
|
||||
} /* end for */
|
||||
|
||||
/* Display event time for return */
|
||||
@ -2565,10 +2564,10 @@ H5_trace(const double *returning, const char *func, const char *type, ...)
|
||||
error:
|
||||
va_end(ap);
|
||||
if(returning)
|
||||
fprintf(out, ";\n");
|
||||
fprintf(out, ";\n");
|
||||
else {
|
||||
last_call_depth = current_depth++;
|
||||
fprintf (out, ")");
|
||||
last_call_depth = current_depth++;
|
||||
fprintf (out, ")");
|
||||
} /* end else */
|
||||
HDfflush(out);
|
||||
|
||||
|
@ -102,9 +102,8 @@ DIST_COMMON = $(top_srcdir)/config/commence.am \
|
||||
$(top_srcdir)/config/lt_vers.am \
|
||||
$(top_srcdir)/config/conclude.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(srcdir)/H5config.h.in \
|
||||
$(top_srcdir)/bin/mkinstalldirs $(srcdir)/libhdf5.settings.in \
|
||||
$(top_srcdir)/bin/depcomp $(include_HEADERS) \
|
||||
$(top_srcdir)/bin/test-driver COPYING
|
||||
$(srcdir)/libhdf5.settings.in $(top_srcdir)/bin/depcomp \
|
||||
$(include_HEADERS) $(top_srcdir)/bin/test-driver COPYING
|
||||
noinst_PROGRAMS = H5detect$(EXEEXT) H5make_libsettings$(EXEEXT)
|
||||
TESTS =
|
||||
subdir = src
|
||||
@ -113,7 +112,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = H5config.h $(top_builddir)/fortran/src/H5config_f.inc
|
||||
CONFIG_CLEAN_FILES = libhdf5.settings
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
@ -200,7 +199,7 @@ am_libhdf5_la_OBJECTS = H5.lo H5checksum.lo H5dbg.lo H5system.lo \
|
||||
H5Topaque.lo H5Torder.lo H5Tpad.lo H5Tprecis.lo H5Tstrpad.lo \
|
||||
H5Tvisit.lo H5Tvlen.lo H5TS.lo H5VM.lo H5WB.lo H5Z.lo \
|
||||
H5Zdeflate.lo H5Zfletcher32.lo H5Znbit.lo H5Zshuffle.lo \
|
||||
H5Zszip.lo H5Zscaleoffset.lo H5Ztrans.lo
|
||||
H5Zscaleoffset.lo H5Zszip.lo H5Ztrans.lo
|
||||
libhdf5_la_OBJECTS = $(am_libhdf5_la_OBJECTS)
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
@ -468,7 +467,6 @@ AM_CXXFLAGS = @AM_CXXFLAGS@ @H5_CXXFLAGS@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_FCFLAGS = @AM_FCFLAGS@ @H5_FCFLAGS@
|
||||
AM_LDFLAGS = @AM_LDFLAGS@ @H5_LDFLAGS@
|
||||
AM_MAKEFLAGS = @AM_MAKEFLAGS@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
@ -824,8 +822,8 @@ libhdf5_la_SOURCES = H5.c H5checksum.c H5dbg.c H5system.c H5timer.c H5trace.c \
|
||||
H5Topaque.c \
|
||||
H5Torder.c \
|
||||
H5Tpad.c H5Tprecis.c H5Tstrpad.c H5Tvisit.c H5Tvlen.c H5TS.c H5VM.c H5WB.c H5Z.c \
|
||||
H5Zdeflate.c H5Zfletcher32.c H5Znbit.c H5Zshuffle.c H5Zszip.c \
|
||||
H5Zscaleoffset.c H5Ztrans.c
|
||||
H5Zdeflate.c H5Zfletcher32.c H5Znbit.c H5Zshuffle.c \
|
||||
H5Zscaleoffset.c H5Zszip.c H5Ztrans.c
|
||||
|
||||
|
||||
# Public headers
|
||||
|
2720
test/Makefile.in
2720
test/Makefile.in
File diff suppressed because it is too large
Load Diff
1444
testpar/Makefile.in
1444
testpar/Makefile.in
File diff suppressed because it is too large
Load Diff
1374
tools/Makefile.in
1374
tools/Makefile.in
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user