diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2001-03-09 23:53:53 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2001-03-09 23:53:53 (GMT) |
commit | 6fd91a1f403ab912dae15e40b03bb99312472fb2 (patch) | |
tree | 713a1c0698429a00a433bb760ddf3efaaae78eb5 /configure.in | |
parent | 7d7b28e602317db136135017e7ff52e8a22ca35a (diff) | |
download | hdf5-6fd91a1f403ab912dae15e40b03bb99312472fb2.zip hdf5-6fd91a1f403ab912dae15e40b03bb99312472fb2.tar.gz hdf5-6fd91a1f403ab912dae15e40b03bb99312472fb2.tar.bz2 |
[svn-r3599]
Purpose:
arrange configure.in to include compiling h4toh5test
Description:
Solution:
Adding a macro H4TOH5TEST
Platforms tested:
linux, solaris 2.7
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/configure.in b/configure.in index ff5717c..4cb9f59 100644 --- a/configure.in +++ b/configure.in @@ -520,21 +520,22 @@ AC_SUBST(H5TOH4) H5TOH4=h5toh4 AC_SUBST(TESTH5TOH4) TESTH5TOH4='$(srcdir)/testh5toh4.sh' AC_SUBST(H4TOH5) H4TOH5=h4toh5 +AC_SUBST(H4TOH5TEST) H4TOH5TEST=h4toh5test AC_SUBST(TESTH4TOH5) TESTH4TOH5='$(srcdir)/testh4toh5.sh' AC_ARG_WITH(hdf4,[ --with-hdf4=INC,LIB Use the HDF4 library],,withval=no) case "$withval" in yes) - AC_CHECK_HEADERS(mfhdf.h,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(z,compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(jpeg,jpeg_start_compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(df,Hstartaccess,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(mfhdf,SDstart,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) + AC_CHECK_HEADERS(mfhdf.h,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(z,compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(jpeg,jpeg_start_compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(df,Hstartaccess,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(mfhdf,SDstart,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) ;; no) AC_MSG_CHECKING(for HDF4) AC_MSG_RESULT(suppressed) - unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5 + unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5 ;; *) hdf4_inc="`echo $withval |cut -f1 -d,`" @@ -543,7 +544,7 @@ case "$withval" in CPPFLAGS="$CPPFLAGS -I$hdf4_inc" AC_CHECK_HEADERS(mfhdf.h,, CPPFLAGS="$saved_CPPFLAGS" - unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) + unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) else AC_CHECK_HEADERS(mfhdf.h) fi @@ -552,13 +553,13 @@ case "$withval" in if test -n "$hdf4_lib"; then saved_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -L$hdf4_lib" - AC_CHECK_LIB(z,compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(jpeg,jpeg_start_compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(df,Hstartaccess,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(mfhdf,SDstart,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) + AC_CHECK_LIB(z,compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(jpeg,jpeg_start_compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(df,Hstartaccess,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(mfhdf,SDstart,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) else - AC_CHECK_LIB(z,compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) - AC_CHECK_LIB(jpeg,jpeg_start_compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 TESTH4TOH5) + AC_CHECK_LIB(z,compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) + AC_CHECK_LIB(jpeg,jpeg_start_compress,,unset H5TOH4 TESTH5TOH4 H4TOH5 H4TOH5TEST TESTH4TOH5) AC_CHECK_LIB(df,Hstartaccess) AC_CHECK_LIB(mfhdf,SDstart) fi |