Changeset 1789


Ignore:
Timestamp:
09/12/11 15:05:50 (6 months ago)
Author:
Freddie Akeroyd
Message:

Print warning if HDF5 version less that 1.6 Refs #310

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1777 r1789  
    358358# enable compiler warnings if gcc 
    359359if test "$CC" = "gcc"; then 
    360     CFLAGS="$CFLAGS -Wall -Wno-unused-variable -Wno-sign-compare -Wno-comment" 
     360#    CFLAGS="$CFLAGS -Wall -Wno-unused-variable -Wno-sign-compare -Wno-comment" 
     361    CFLAGS="$CFLAGS -Wall" 
    361362fi 
    362363 
    363364if test "$CXX" = "g++"; then 
    364     CXXFLAGS="$CXXFLAGS -Wall -Wno-unused-variable -Wno-sign-compare -Wno-comment" 
     365#    CXXFLAGS="$CXXFLAGS -Wall -Wno-unused-variable -Wno-sign-compare -Wno-comment" 
     366    CXXFLAGS="$CXXFLAGS -Wall" 
    365367fi 
    366368 
     
    607609    H5VERSION=`grep H5_VERS_INFO ${H5ROOT}/include/H5public.h | cut -d '"' -f 2 | cut -d ' ' -f 4` 
    608610    case $H5VERSION in 
    609         1.[[689]]*) 
     611        1.[[89]]*) 
    610612                HDF5_LDFLAGS="" 
    611613                for j in lib lib64; do 
     
    619621                HDF5_CPPFLAGS="-I$H5ROOT/include -DHDF5 -DH5_NO_DEPRECATED_SYMBOLS ${HDF5_API_DEFS}" 
    620622                ;; 
    621         *)      AC_MSG_WARN([The HDF 5 installation has not the right version ($H5VERSION). You need at least 1.6])  
    622                 H5ROOT="";; 
     623        *)       
     624                AC_MSG_WARN([The HDF 5 installation at $H5ROOT is not the right version ($H5VERSION). You need at least 1.8]) 
     625                H5ROOT="" 
     626                ;; 
    623627    esac 
    624628fi 
Note: See TracChangeset for help on using the changeset viewer.