Salome HOME
spns #32926: backport KERNEL & CONFIGURATION fixes on more recent platforms to ensure...
[tools/sat_salome.git] / products / compil_scripts / hdf5_cxx.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "hdf5" $VERSION
5 echo "##########################################################################"
6
7
8
9 #if [[ $BITS == "64" ]]
10 #then
11 #   CONFIGURE_FLAGS="-m64 CXXFLAGS=-m64"
12 #fi
13
14 CONFIGURE_FLAGS=''
15
16 if [ -n "$SAT_HPC" ]
17 then
18     CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --enable-parallel --enable-shared"
19 else
20     CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --enable-threadsafe"
21 fi
22
23 echo "*** configure"
24 $SOURCE_DIR/configure --prefix=${PRODUCT_INSTALL} --disable-debug \
25     --enable-production --enable-cxx --enable-unsupported \
26     --with-pthread=/usr/include,/usr/lib \
27     --with-default-api-version=v16 ${CONFIGURE_FLAGS}
28 if [ $? -ne 0 ]
29 then
30     echo "ERROR on configure"
31     exit 1
32 fi
33
34 echo
35 echo "*** make" $MAKE_OPTIONS
36 make $MAKE_OPTIONS
37 if [ $? -ne 0 ]
38 then
39     echo "ERROR on make"
40     exit 2
41 fi
42
43 echo
44 echo "*** make install"
45 make install
46 if [ $? -ne 0 ]
47 then
48     echo "ERROR on make install"
49     exit 3
50 fi
51
52 echo
53 echo "########## END"