1
0
Fork 0

- added checks for sdl2 libs and headers.

This commit is contained in:
cage 2024-09-29 19:37:09 +02:00
parent 712aa55755
commit 35c66d4679
2 changed files with 31 additions and 2 deletions

25
configure vendored
View File

@ -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

View File

@ -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])