diff --git a/configure b/configure index 7cdb13d..93f2e0e 100755 --- a/configure +++ b/configure @@ -8465,7 +8465,30 @@ if test "x$ac_cv_header_turbojpeg_h" = xyes then : else case e in #( - e) Can not find libturbojpeg0 headers file. ;; + e) as_fn_error $? "Can not find libturbojpeg0 headers file." "$LINENO" 5 ;; +esac +fi + + +CFLAGS=`sdl2-config --cflags` + + +ac_fn_c_check_header_compile "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default" +if test "x$ac_cv_header_SDL_h" = xyes +then : + +else case e in #( + e) as_fn_error $? "Can not find SDL headers file." "$LINENO" 5 ;; +esac +fi + + +ac_fn_c_check_header_compile "$LINENO" "SDL_ttf.h" "ac_cv_header_SDL_ttf_h" "$ac_includes_default" +if test "x$ac_cv_header_SDL_ttf_h" = xyes +then : + +else case e in #( + e) as_fn_error $? "Can not find sdl ttf header file." "$LINENO" 5 ;; esac fi diff --git a/configure.ac b/configure.ac index f0848b6..49d2e24 100644 --- a/configure.ac +++ b/configure.ac @@ -182,7 +182,13 @@ AC_CHECK_LIB([SDL2_ttf], [TTF_Init], [], AC_MSG_ERROR([Can not find libsdl ttf.] dnl check headers -AC_CHECK_HEADER([turbojpeg.h], [], [Can not find libturbojpeg0 headers file.], []) +AC_CHECK_HEADER([turbojpeg.h], [], AC_MSG_ERROR([Can not find libturbojpeg0 headers file.]), []) + +AC_SUBST([CFLAGS], [`sdl2-config --cflags`]) + +AC_CHECK_HEADER([SDL.h], [], AC_MSG_ERROR([Can not find SDL headers file.]), []) + +AC_CHECK_HEADER([SDL_ttf.h], [], AC_MSG_ERROR([Can not find sdl ttf header file.]), []) AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])