---
 .../dynamic_link/src/scripts/compilerDetection.sh    | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh 
b/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh
index 0a22a695555..ead86eb58ac 100755
--- a/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh
+++ b/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh
@@ -18,10 +18,16 @@ if test -x "$(which gcc 2>/dev/null)"; then
 fi

 # Relaunch configure if files are missing
-if test ! -s Makefile.orig -o ! -s libtool; then
+if test ! -s Makefile.orig -o ! -s libtool; then
     echo "Detection of C/C++/Fortran Compilers"
     ./configure --disable-static --disable-dependency-tracking "$@"
-    mv Makefile Makefile.orig
-else
+    configure_exit_status = $?
+    if [ $configure_exit_status -ne 0 ]; then
+        cat config.log
+        exit $configure_exit_status
+    else
+        mv Makefile Makefile.orig
+    fi
+else
     echo "Detection of compilers already done"
 fi
--
2.41.0

_______________________________________________
dev mailing list
[email protected]
https://lists.scilab.org/mailman/listinfo/dev
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

Reply via email to