| 53 $1 -o "$TEMP_DIR/checkcc" $CFLAGS $LDFLAGS "$TEMP_DIR/test.c" 2> /dev/null |
54 $1 -o "$TEMP_DIR/checkcc" $CFLAGS $LDFLAGS "$TEMP_DIR/test.c" 2> /dev/null |
| 54 } |
55 } |
| 55 |
56 |
| 56 check_cpp_compiler() |
57 check_cpp_compiler() |
| 57 { |
58 { |
| 58 if ! command -v "$1" >/dev/null 2>&1 ; then |
59 command -v "$1" >/dev/null 2>&1 |
| |
60 if [ $? -ne 0 ] ; then |
| 59 return 1 |
61 return 1 |
| 60 fi |
62 fi |
| 61 cat > "$TEMP_DIR/test.cpp" << __EOF__ |
63 cat > "$TEMP_DIR/test.cpp" << __EOF__ |
| 62 /* test file */ |
64 /* test file */ |
| 63 #include <iostream> |
65 #include <iostream> |