]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: only set confopt if package dir is present
authorUwe Köcher <koecher@hsu-hamburg.de>
Mon, 2 Nov 2015 19:02:50 +0000 (20:02 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Mon, 2 Nov 2015 19:02:50 +0000 (20:02 +0100)
deal.II-toolchain/packages/dealii.package

index 72af3af3682291a398df395fe7bf15b604569a5a..cdf0d52dd36406bb5379f0a7f4dc558e4dae7e91 100644 (file)
@@ -11,37 +11,54 @@ CONFOPTS=" \
 ${DEAL_CONFOPTS} \
 "
 
-CONFOPTS="${CONFOPTS} \
--D ARPACK_DIR=${ARPACK_DIR}\
-"
+#########################################################################
+if [ ! -z "${ARPACK_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D ARPACK_DIR=${ARPACK_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D METIS_DIR=${METIS_DIR} \
-"
+if [ ! -z "${METIS_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D METIS_DIR=${METIS_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D MUMPS_DIR=${MUMPS_DIR} \
-"
+if [ ! -z "${MUMPS_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D MUMPS_DIR=${MUMPS_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D P4EST_DIR=${P4EST_DIR} \
-"
+if [ ! -z "${P4EST_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D P4EST_DIR=${P4EST_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D HDF5_DIR=${HDF5_DIR} \
-"
+if [ ! -z "${HDF5_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D HDF5_DIR=${HDF5_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D TRILINOS_DIR=${TRILINOS_DIR} \
-"
+if [ ! -z "${TRILINOS_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D TRILINOS_DIR=${TRILINOS_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D PETSC_DIR=${PETSC_DIR} \
-"
+if [ ! -z "${PETSC_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D PETSC_DIR=${PETSC_DIR}"
+fi
 
-CONFOPTS="${CONFOPTS} \
--D SLEPC_DIR=${SLEPC_DIR} \
-"
+if [ ! -z "${SLEPC_DIR}" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D SLEPC_DIR=${SLEPC_DIR}"
+fi
 
 # **********************************************************************************
 package_specific_conf() {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.