forked from cooperative-computing-lab/cctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.afs
executable file
·48 lines (35 loc) · 1.08 KB
/
configure.afs
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
#!/bin/sh
EXTERNAL="/afs/crc.nd.edu/group/ccl/software/cctools-dependencies"
# Our external packages are installed in $EXTERNAL/$SYS/$SUBTYPE/packagename
# Where $SYS is the output of `uname -m` usually something like x86_64 or i686,
# and $SUBTYPE is something like redhat5 or redhat6.
SYS=`uname -m`
detect_packages()
{
unset GLOBUS_LOCATION
export GLOBUS_LOCATION
echo "platform is ${SYS}"
if [ -f /etc/redhat-release ]
then
major=`cat /etc/redhat-release | awk '{print $7'} | awk -F. '{print $1}'`
subtype=redhat$major
echo "subtype is $subtype"
fi
echo "$0: Detecting packages ..."
PACKAGES_CONFIG=""
for package in fuse irods mysql python perl globus swig xrootd cvmfs uuid
do
packagepath=$EXTERNAL/${SYS}/$subtype/$package
if [ -d $packagepath ]
then
echo "$package -> $packagepath"
PACKAGES_CONFIG="$PACKAGES_CONFIG --with-$package-path $packagepath"
else
echo "$package -> NOTFOUND"
fi
done
echo ""
}
detect_packages
./configure --strict --tcp-low-port 9000 --sge-parameter '-pe smp $cores' $PACKAGES_CONFIG "$@"
# vim: set sts=4 sw=4 ts=8 expandtab ft=sh: