163
163
 
164
164
 
# If the user hasn't already, first build HDF5
165
165
 
if [ "$build_hdf5" = true ]; then
166
166
 
    echo "*****************"
167
167
 
    echo "* Building HDF5 *"
168
168
 
    echo "*****************"
169
169
 
    echo
170
170
 
171
171
 
    cd ${SCRIPT_DIR}/${HDF5_DIR}
172
172
 
173
 
-
    ./autogen.sh
 
173
+
    ./autogen.sh || exit 1
174
174
 
175
175
 
    # If we are building the tools with REST VOL support, link in the already built
176
176
 
    # REST VOL library, along with cURL and YAJL.
177
177
 
    if [ "${build_tools}" = true ]; then
178
178
 
        ./configure --prefix=${HDF5_INSTALL_DIR} CFLAGS="${COMP_OPTS} -L${INSTALL_DIR}/lib ${REST_VOL_LINK} ${CURL_LINK} ${YAJL_LINK}" || exit 1
179
179
 
    else
180
180
 
        ./configure --prefix=${HDF5_INSTALL_DIR} CFLAGS="${COMP_OPTS}" || exit 1
181
181
 
    fi
182
182
 
183
183
 
    make -j${NPROCS} && make install || exit 1
Show more
190
190
 
191
191
 
192
192
 
# Once HDF5 has been built, build the REST VOL plugin against HDF5.
193
193
 
echo "*******************************************"
194
194
 
echo "* Building REST VOL plugin and test suite *"
195
195
 
echo "*******************************************"
196
196
 
echo
197
197
 
198
198
 
cd ${SCRIPT_DIR}
199
199
 
200
 
-
./autogen.sh
 
200
+
./autogen.sh || exit 1
201
201
 
202
 
-
./configure --prefix=${INSTALL_DIR} ${RV_OPTS} CFLAGS="${COMP_OPTS}"
 
202
+
./configure --prefix=${INSTALL_DIR} ${RV_OPTS} CFLAGS="${COMP_OPTS}" || exit 1
203
203
 
204
204
 
make -j${NPROCS} && make install || exit 1
205
205
 
206
 
-
exit 0
 
206
+
exit 0