blob: 06ae973a4d3659ae0807907c3759ccbbe55f0bd5 (
plain)
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
|
1234,1237c1234,1235
< if [ ! -f "$rootdir"/isa-l/autogen.sh ]; then
< echo "ISA-L is required but was not found, please init the submodule with:"
< echo " git submodule update --init"
< echo "and then re-run this script."
---
> if [[ ! -d /usr/include/isa-l ]]; then
> echo "ISA-L is required but was not found"
1269,1288c1267
< if [[ "${CONFIG[ISAL]}" = "y" ]]; then
< cd $rootdir/isa-l
< ISAL_LOG=$rootdir/.spdk-isal.log
< if [[ -n "${CONFIG[CROSS_PREFIX]}" ]]; then
< ISAL_OPTS=("--host=${CONFIG[CROSS_PREFIX]}")
< else
< ISAL_OPTS=()
< fi
< if [[ "${CONFIG[SHARED]}" = "y" ]]; then
< ISAL_OPTS+=("--enable-shared=yes")
< else
< ISAL_OPTS+=("--enable-shared=no")
< fi
< ISAL_OPTS+=("--prefix=${CONFIG[PREFIX]}")
< echo -n "Configuring ISA-L (logfile: $ISAL_LOG)..."
< ./autogen.sh &> $ISAL_LOG
< ./configure CFLAGS="-fPIC -g -O2 -fuse-ld=$LD_TYPE -Wno-unused-command-line-argument" "${ISAL_OPTS[@]}" --enable-shared=no >> $ISAL_LOG 2>&1
< echo "done."
< cd $rootdir
< else
---
> if [[ "${CONFIG[ISAL]}" = "n" ]]; then
|