Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid potential division by 0... But not sure 0 is right as an answer here
[simgrid.git] / src / smpi / smpicc.in
index 6fb550c..a9765ac 100755 (executable)
@@ -18,10 +18,10 @@ CMAKE_LINKARGS="-L@libdir@"
 
 list_set CFLAGS
 list_set LINKARGS
-if [ "@WIN32@" == "1" ]; then
+if [ "x@WIN32@" = "x1" ]; then
     list_add CFLAGS "-include" "@includedir@/smpi/smpi_main.h"
     list_add LINKARGS "@libdir@\libsimgrid.dll"
-elif [ "@APPLE@" == 1 ]; then
+elif [ "x@APPLE@" = "x1" ]; then
     list_add CFLAGS "-fpic"
     list_add LINKARGS "-shared" "-lsimgrid" "-Wl,-undefined,error"
 else