aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/shell
diff options
context:
space:
mode:
authorRaul Infante-Sainz <infantesainz@gmail.com>2020-09-14 15:49:24 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-09-15 18:49:42 +0100
commit0c882a44e43a95761ffecdeebb57f2709e6f96e5 (patch)
treed75adb96ffda82766f574e007d0f4fb5a3e602d1 /reproduce/software/shell
parent11b11e93fbdb29be69a936950438ed1cbea34a11 (diff)
Checking Xcode installation for macOS systems
Until now, during the configure step it was checked if the host Operative System were GNU/Linux, and if not, we assumed it is macOS. However, it can be any other different OS! With this commit, now we explicity check if the system is GNU/Linux or Darwin (macOS). If it is not any of them, a warning message says to the user that the host system is different from which we have checked so far (and invite to contact us if there is any problem). In addition to this, if the system is macOS, now it checks if Xcode is already installed in the host system. If it is not installed, a warning message informs the user to do that in case a problem/crash in the configure step occurs. We have found that it is convenient to have Xcode installed in order to avoid some problems.
Diffstat (limited to 'reproduce/software/shell')
-rwxr-xr-xreproduce/software/shell/configure.sh61
1 files changed, 60 insertions, 1 deletions
diff --git a/reproduce/software/shell/configure.sh b/reproduce/software/shell/configure.sh
index bc43540..8a30f1a 100755
--- a/reproduce/software/shell/configure.sh
+++ b/reproduce/software/shell/configure.sh
@@ -212,13 +212,31 @@ if [ x$kernelname = xLinux ]; then
# Don't forget to add the respective C++ compiler below (leave 'cc' in
# the end).
c_compiler_list="gcc clang cc"
-else
+elif [ x$kernelname = xDarwin ]; then
host_cc=1
on_mac_os=yes
# Don't forget to add the respective C++ compiler below (leave 'cc' in
# the end).
c_compiler_list="clang gcc cc"
+else
+ on_mac_os=no
+ cat <<EOF
+______________________________________________________
+!!!!!!! WARNING !!!!!!!
+
+Maneage has been tested on GNU/Linux and Darwin (macOS) systems. But, it
+seems that the current system is not GNU/Linux or Darwin (macOS). If you
+notice any problem during the configure phase, please contact us with this
+web-form:
+
+ https://savannah.nongnu.org/support/?func=additem&group=reproduce
+
+The configuration will continue in 10 seconds...
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+EOF
+ sleep 10
fi
@@ -281,6 +299,47 @@ fi
+# Check for Xcode in macOS systems
+# --------------------------------
+#
+# When trying to build Maneage on macOS systems, there are some problems
+# related with the Xcode and Command Line Tools. As a consequnce, in order to
+# avoid these error it is highly recommended to install Xcode in the host
+# system. Here, it is checked that this is the case, and if not, warn the user
+# about not having Xcode already installed.
+if [ x$on_mac_os = xyes ]; then
+ xcode=$(which xcodebuild)
+ if [ x$xcode != x ]; then
+ xcode_version=$(xcodebuild -version | grep Xcode)
+ echo " "
+ echo "$xcode_version already installed in the system"
+ echo " "
+ else
+ cat <<EOF
+______________________________________________________
+!!!!!!! WARNING !!!!!!!
+
+Maneage has been tested Darwin (macOS) systems with host Xcode
+installation. However, Xcode cannot be found in this system. As a
+consequence, the configure step may fail at some point. If this is the
+case, please install Xcode and try to run again the configure step. If the
+problem still persist after installing Xcode, please contact us with this
+web-form:
+
+ https://savannah.nongnu.org/support/?func=additem&group=reproduce
+
+The configuration will continue in 5 seconds ...
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+EOF
+ sleep 5
+ fi
+fi
+
+
+
+
+
# Check for C/C++ compilers
# -------------------------
#