Index: /issm/trunk/externalpackages/gdal/install.sh
===================================================================
--- /issm/trunk/externalpackages/gdal/install.sh	(revision 1511)
+++ /issm/trunk/externalpackages/gdal/install.sh	(revision 1512)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-#Get number of cpus on current platform
-NUMCPUS=`grep -c processor /proc/cpuinfo`;
+#Get number of cpus
+NUMCPUS=$1;
 
 #version of gdal
@@ -29,7 +29,11 @@
 patch -R GDALmake.opt ../GDALmake.opt.patch
 
-#Compile gdal
-make  -j $NUMCPUS
-
-#Install gdal
-make  install
+#Compile and install gdal
+if [ -z $NUMCPUS ];
+then
+	make
+	make install
+else
+	make  -j $NUMCPUS
+	make  -j $NUMCPUS install
+fi
