Changeset 798


Ignore:
Timestamp:
21/07/06 16:03:57 (6 years ago)
Author:
faa59
Message:

Sort out HDF4 directory location on Ubuntu/Debian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r794 r798  
    290290dnl 
    291291H4ROOT="" 
    292 H4SUBROOT="" 
     292H4INCSUBROOT="" 
     293H4LIBSUBROOT="" 
    293294H5ROOT="" 
    294295MXMLROOT="" 
     
    322323        if test -r /usr/$i/hdf/libdf.$HDF_EXT; then 
    323324            H4ROOT=/usr 
    324             H4SUBROOT=hdf 
     325            H4LIBSUBROOT=hdf 
    325326        fi 
    326327    done 
     328    if test -r $H4ROOT/include/hdf; then 
     329        H4INCSUBROOT=hdf 
     330    fi 
    327331    if test -z "$H4ROOT"; then  
    328332        AC_MSG_RESULT(unknown) 
     
    332336fi 
    333337if test "$H4ROOT"; then 
    334     H4VERSION=`grep LIBVER_STRING ${H4ROOT}/include/${H4SUBROOT}/hfile.h | cut -d '"' -f 2 | cut -d ' ' -f4,6 | tr ' ,' '. '` 
     338    H4VERSION=`grep LIBVER_STRING ${H4ROOT}/include/${H4INCSUBROOT}/hfile.h | cut -d '"' -f 2 | cut -d ' ' -f4,6 | tr ' ,' '. '` 
    335339    case $H4VERSION in 
    336340        4.[[12]]*)  
    337341                HDF4_LDFLAGS="-lmfhdf -ldf"; 
    338342                for j in lib lib64; do 
    339                     if test -d $H4ROOT/$j/$H4SUBROOT; then LDFLAGS="-L$H4ROOT/$j/$H4SUBROOT $LDFLAGS"; fi 
     343                    if test -d $H4ROOT/$j/$H4LIBSUBROOT; then LDFLAGS="-L$H4ROOT/$j/$H4LIBSUBROOT $LDFLAGS"; fi 
    340344                done 
    341                 if test -z "$H4SUBROOT"; then 
     345                if test -z "$H4INCSUBROOT"; then 
    342346                    HDF4_CPPFLAGS="-I$H4ROOT/include -DHDF4" 
    343347                else 
    344                     HDF4_CPPFLAGS="-I$H4ROOT/include/$H4SUBROOT -DHDF4" 
     348                    HDF4_CPPFLAGS="-I$H4ROOT/include/$H4INCSUBROOT -DHDF4" 
    345349                fi 
    346350                ;; 
Note: See TracChangeset for help on using the changeset viewer.