-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure
executable file
·48 lines (42 loc) · 1.08 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
#!/bin/sh
# Parse command-line arguments
for i in "$@"
do
case $i in
# Option with value
# =================
#-e=*|--extension=*)
#EXTENSION="${i#*=}"
#shift # past argument=value
#;;
# Option without a value
# ======================
--novendor)
NO_VENDOR_XTENSOR=YES
shift # pass argument with no value
;;
# Unknown option
# ==============
*)
# unknown option
;;
esac
done
# Call vendor script to fetch dependencies
if [ "${NO_VENDOR_XTENSOR}" = "YES" ]
then
echo "Vendoring of xtensor headers is disabled."
# Delete vendored xtl xsimd xtensor xtensor-r
# if it is included in the built package.
rm -rf ./inst/include/xtl
rm -rf ./inst/include/xsimd
rm -rf ./inst/include/xtensor
rm -rf ./inst/include/xtensor-r
else
echo "Vendoring of xtensor headers is enabled."
# Fetch xtl xsimd xtensor xtensor-r
# if it is not included in the build package.
sh ./tools/vendor
fi
# Run Rcpp compiler Attributes
${R_HOME}/bin${R_ARCH_BIN}/R -q -e "library('Rcpp');Rcpp::compileAttributes();"