Skip to content

Commit 988229b

Browse files
committed
remove usage of '[[' bashism
1 parent 3fb6917 commit 988229b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Makevars

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ ifeq ($(USE_TBB), SunOS)
6262
endif
6363
endif
6464

65+
COMPILER = $(shell basename $(CC))
66+
6567
.PHONY: all tbb
6668

6769
# Order is important in Windows' case. See PKG_LIBS above
@@ -70,9 +72,9 @@ all: tbb $(SHLIB)
7072
tbb:
7173
mkdir -p ../inst/lib/$(ARCH_DIR); \
7274
cd tbb/src; \
73-
if [[ "$(CC)" == clang* ]]; then \
75+
if [ "$(COMPILER:0:5)" = "clang" ]; then \
7476
$(MAKE_CMD) cpp0x=1 compiler=clang $(MAKE_ARGS); \
75-
elif [[ "$(CC)" == *gcc* ]]; then \
77+
elif [ "$(COMPILER:0:3)" = "gcc" ]; then \
7678
$(MAKE_CMD) cpp0x=1 compiler=gcc $(MAKE_ARGS); \
7779
else \
7880
$(MAKE_CMD) cpp0x=1 $(MAKE_ARGS); \

0 commit comments

Comments
 (0)