Commit 735e820c9ad52c7cc444ecad161197862c372e88

Thomas de Grivel 2023-10-23T22:26:26

configure: silence include errors

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/config.subr b/config.subr
index 9cf939c..d1b0d80 100644
--- a/config.subr
+++ b/config.subr
@@ -83,7 +83,7 @@ config_include() {
         shift
     done
     echo "int main () { return 0; }" >> "$OUT_C"
-    if ${CC} ${CPPFLAGS} ${CFLAGS} "$OUT_C" -o "$OUT"; then
+    if ${CC} ${CPPFLAGS} ${CFLAGS} "$OUT_C" -o "$OUT" >/dev/null 2>&1; then
         echo "#define $1 1" >> "${CONFIG_H}"
         eval "$1=Yes"
     else