-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
configure
executable file
·52 lines (46 loc) · 1.1 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
#CMAKE=`which xmake`
#if [ "$CMAKE" = "" || grep -q "no xmake" "$CMAKE" ]
NOCMAKE=0
case $OSTYPE in
darwin*)
CMAKE=`which cmake|awk '{print $1 $2}'`
if [ "$CMAKE" = "nocmake" ]
then
NOCMAKE=1
fi
;;
*)
CMAKE=`which cmake`
if [ "$CMAKE" = "" ]
then
NOCMAKE=1
fi
;;
esac
#echo "CMAKE IS $CMAKE"
if [ "$NOCMAKE" = "1" ]
then
echo "QGIS now requires CMake to configure and build.
You either don't have CMake installed or it is not in your path.
First install CMake (you can download it from http://www.cmake.org) and
then run this script again or see:
http://wiki.qgis.org/qgiswiki/Building_with_CMake for more information."
else
echo "Congratulations -- CMake is already installed on your system.
"
echo "To build QGIS:
mkdir build
cd build
cmake ..
make
make install
"
echo "If you want to install QGIS in a place other than /usr/local use:
cmake -D CMAKE_INSTALL_PREFIX=/you/install/dir ..
"
echo "For full control over all the build options, from your build directory use:
ccmake .."
echo "
See http://wiki.qgis.org/qgiswiki/Building_with_CMake for more information."
fi