3 Prevent automagic dependencies as per:
4 http://www.gentoo.org/proj/en/qa/automagic.xml
8 @@ -49,11 +49,14 @@ LIBS="-lz -lm"
9 # If mounting with shared libraries we may have to specify all possible libraries.
10 # First check with simple LIBS list, if it fails, then expand the list.
12 -AC_CHECK_LIB(implode, _implode, ,,$LIBDIR)
13 -AC_CHECK_LIB(jpeg, jpeg_CreateCompress,,,$LIBDIR)
14 -AC_CHECK_LIB(df, DFopen, ,,$LIBDIR)
15 -AC_CHECK_LIB(mfhdf, SDstart, ,,$LIBDIR)
16 -AC_CHECK_LIB(tsdistk, TKopen, ,,$LIBDIR)
17 +AC_ARG_WITH([hdf], AS_HELP_STRING([--without-hdf], [Build without hdf library (default: test)]))
18 +AS_IF([test "x$with_hdf" != "xno"], [
19 + AC_CHECK_LIB(implode, _implode, ,,$LIBDIR)
20 + AC_CHECK_LIB(jpeg, jpeg_CreateCompress,,,$LIBDIR)
21 + AC_CHECK_LIB(df, DFopen, ,,$LIBDIR)
22 + AC_CHECK_LIB(mfhdf, SDstart, ,,$LIBDIR)
23 + AC_CHECK_LIB(tsdistk, TKopen, ,,$LIBDIR)
26 # Because -letor may depend on RSL being installed, just check for
27 # the library libetor.a in a couple of places.