configure.ac
changeset 12713 8ed803255020
parent 12708 f6193f829c8a
child 12714 9b7633bd0aa0
     1.1 --- a/configure.ac	Tue Apr 23 14:24:58 2019 +0200
     1.2 +++ b/configure.ac	Sun Apr 07 23:01:07 2019 +1000
     1.3 @@ -3919,6 +3919,22 @@
     1.4          ;;
     1.5  esac
     1.6  
     1.7 +# Check whether to install sdl2-config
     1.8 +AC_MSG_CHECKING(whether to install sdl2-config)
     1.9 +AC_ARG_ENABLE([sdl2-config],
    1.10 +    AS_HELP_STRING([--enable-sdl2-config], [Install sdl2-config [default=yes]]),
    1.11 +    [case "${enableval}" in
    1.12 +        yes) enable_sdl2_config="TRUE" ;;
    1.13 +        no) enable_sdl2_config="FALSE" ;;
    1.14 +        *) AC_MSG_ERROR([bad value '${enableval}' for --enable-sdl2-config]) ;;
    1.15 +    esac], [enable_sdl2_config="TRUE"])
    1.16 +if test "$enable_sdl2_config" = "TRUE"; then
    1.17 +    AC_MSG_RESULT(yes)
    1.18 +else
    1.19 +    AC_MSG_RESULT(no)
    1.20 +fi
    1.21 +AC_SUBST([INSTALL_SDL2_CONFIG], [$enable_sdl2_config])
    1.22 +
    1.23  # Verify that we have all the platform specific files we need
    1.24  
    1.25  if test x$have_joystick != xyes; then