]> Pileus Git - ~andy/sunrise/blob - sci-libs/rsl/files/rsl-with_hdf.patch
sci-libs/rsl: Update to RSL 1.43
[~andy/sunrise] / sci-libs / rsl / files / rsl-with_hdf.patch
1 Add --without-hdf flag
2
3 Prevent automagic dependencies as per:
4   http://www.gentoo.org/proj/en/qa/automagic.xml
5
6 --- a/configure.in
7 +++ b/configure.in
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.
11  
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)
24 +])
25  
26  # Because -letor may depend on RSL being installed, just check for
27  # the library libetor.a in a couple of places.