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