File: hdf4-alt-libs.patch

package info (click to toggle)
coda 2.25.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 10,168 kB
  • sloc: ansic: 121,489; javascript: 6,788; java: 2,369; python: 1,695; yacc: 1,007; makefile: 598; lex: 204; sh: 105; fortran: 60; xml: 5
file content (39 lines) | stat: -rw-r--r-- 1,529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Use hdf4 alt library in Debian
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2018-01-27
Forwarded: not-needed

--- a/m4/hdf4.m4
+++ b/m4/hdf4.m4
@@ -15,26 +15,20 @@
 if test "$HDF4_INCLUDE" != "" ; then
   CPPFLAGS="-I$HDF4_INCLUDE $CPPFLAGS"
 fi
+HDF4DFLIB=-ldfalt
 AC_CHECK_HEADERS(hdf.h)
 AC_CHECK_HEADERS(netcdf.h)
 AC_CHECK_HEADERS(mfhdf.h)
-HDF4DFLIB=-ldf
-AC_CHECK_LIB(df, Hopen, ac_cv_lib_df=yes, ac_cv_lib_df=no, [ $ZLIB $JPEGLIB $SZLIB])
-if test $ac_cv_lib_df = no ; then
-  AC_CHECK_LIB(hdf, Hopen, ac_cv_lib_hdf=yes, ac_cv_lib_hdf=no, [ $ZLIB $JPEGLIB $SZLIB])
-  if test $ac_cv_lib_hdf = yes ; then
-    HDF4DFLIB=-lhdf
-  fi
-fi
-AC_CHECK_LIB(mfhdf, SDstart, ac_cv_lib_mfhdf=yes, ac_cv_lib_mfhdf=no, [ $HDF4DFLIB $ZLIB $JPEGLIB $SZLIB])
+AC_CHECK_LIB(dfalt, Hopen, ac_cv_lib_df=yes, ac_cv_lib_df=no, [ $ZLIB $JPEGLIB $SZLIB])
+AC_CHECK_LIB(mfhdfalt, SDstart, ac_cv_lib_mfhdf=yes, ac_cv_lib_mfhdf=no, [ -ldfalt $ZLIB $JPEGLIB $SZLIB])
 if test $ac_cv_header_hdf_h = no || test $ac_cv_header_mfhdf_h = no ||
-   (test $ac_cv_lib_df = no && test $ac_cv_lib_hdf = no) || test $ac_cv_lib_mfhdf = no ; then
+  (test $ac_cv_lib_df = no && test $ac_cv_lib_hdf = no) || test $ac_cv_lib_mfhdf = no ; then
   st_cv_have_hdf4=no
   CPPFLAGS=$old_CPPFLAGS
   LDFLAGS=$old_LDFLAGS
 else
   st_cv_have_hdf4=yes
-  HDF4LIBS="-lmfhdf $HDF4DFLIB $ZLIB $JPEGLIB $SZLIB"
+  HDF4LIBS="-lmfhdfalt -ldfalt $ZLIB $JPEGLIB $SZLIB"
 fi
 AC_MSG_CHECKING(for HDF4 installation)
 AC_MSG_RESULT($st_cv_have_hdf4)