diff --git a/config.subr b/config.subr
index f01736f..d1db345 100644
--- a/config.subr
+++ b/config.subr
@@ -235,6 +235,11 @@ config_lib() {
"$OUT_C" ${LDFLAGS} ${LIBS} $@ -o "$OUT" \
>/dev/null 2>&1; then
LIBS="$LIBS $@"
+ eval "HAVE_$NAME=true"
+ echo "HAVE_$NAME = true" >> ${CONFIG_MK}
+ else
+ eval "HAVE_$NAME=false"
+ echo "HAVE_$NAME = false" >> ${CONFIG_MK}
fi
rm -f "$OUT" "$OUT_C"
}
diff --git a/libc3_window/sdl2/demo/configure b/libc3_window/sdl2/demo/configure
index a9cd9bc..04fd7c3 100755
--- a/libc3_window/sdl2/demo/configure
+++ b/libc3_window/sdl2/demo/configure
@@ -44,10 +44,10 @@ OBJECTS_DEBUG="$(c2ext .debug.lo "$SOURCES")"
echo "OBJECTS_DEBUG = $OBJECTS_DEBUG" >> ${CONFIG_MK}
# Common config for all targets
-CPPFLAGS="-fopenmp -I../../.. $CPPFLAGS"
+CPPFLAGS="-I../../.. $CPPFLAGS"
#CPPFLAGS="$CPPFLAGS -DGL_SILENCE_DEPRECATION=1"
CFLAGS="$CFLAGS -W -Wall -Werror -std=c11 -pedantic -pipe"
-LIBS="$LIBS -lm -fopenmp"
+LIBS="$LIBS -lm"
config_asan
config_gnu
pkg_config libbsd-overlay
@@ -61,6 +61,8 @@ pkg_config libffi
pkg_config libpng
config_lib OPENGL -framework OpenGL
config_lib OPENGL -lopengl32 -lglu32
+config_lib OPENMP -fopenmp
+config_define HAVE_OPENMP "${HAVE_OPENMP}"
pkg_config sdl2
# Asan config