Skip to content

Commit

Permalink
BUILD: Group the library checks more usefully
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Dec 14, 2013
1 parent 9bc8c91 commit 38bc3d6
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,22 @@ AC_CHECK_FUNCS([fabsf])
AC_CHECK_FUNCS([fminf])
AC_CHECK_FUNCS([fmaxf])

dnl SDL2
AX_CHECK_SDL2(2000, , AC_MSG_ERROR([SDL2 (>= 2.0.0) is required and could not be found!]))

dnl faad
AX_CHECK_FAAD(, AC_MSG_ERROR([libfaad is required and could not be found!]))

dnl MAD
AX_CHECK_MAD(0, 15, 1, , AC_MSG_ERROR([libMAD (>= 0.15.1) is required and could not be found!]))

#dnl Ogg
AX_CHECK_OGG(, AC_MSG_ERROR([libOgg is required and could not be found!]))

#dnl VorbisFile
AX_CHECK_VORBIS(, AC_MSG_ERROR([libVorbisFile is required and could not be found!]))

dnl Xvid
AX_CHECK_XVID(1, 2, 2, , AC_MSG_ERROR([libxvidcore (>= 1.2.2) is required and could not be found!]))

dnl zlib
dnl General purpose libraries
AX_CHECK_ICONV( , AC_MSG_ERROR([No useable iconv() function found!]))
AX_CHECK_ZLIB(1, 2, 3, 4, , AC_MSG_ERROR([zlib(>= 1.2.3.4) is required and could not be found!]))

dnl iconv
AX_CHECK_ICONV( , AC_MSG_ERROR([No useable iconv() function found]))
dnl Graphic libraries
AX_CHECK_SDL2(2000, , AC_MSG_ERROR([SDL2 (>= 2.0.0) is required and could not be found!]))
AX_CHECK_GL( , AC_MSG_ERROR([OpenGL is required and could not be found!]))
AX_CHECK_FT2([11.0.5], , AC_MSG_ERROR([FreeType2 (>= 11.0.5) is required and could not be found!]))
AX_CHECK_XVID(1, 2, 2, , AC_MSG_ERROR([libxvidcore (>= 1.2.2) is required and could not be found!]))

dnl FreeType2
AX_CHECK_FT2([11.0.5], , AC_MSG_ERROR([FreeType2 is required to compile xoreos]))
dnl Sound libraries
AX_CHECK_AL( , AC_MSG_ERROR([OpenAL Soft (>= 1.12) is required and could not be found!]))
AX_CHECK_FAAD(, AC_MSG_ERROR([libfaad (>= 2.7) is required and could not be found!]))
AX_CHECK_MAD(0, 15, 1, , AC_MSG_ERROR([libMAD (>= 0.15.1) is required and could not be found!]))
AX_CHECK_OGG(, AC_MSG_ERROR([libOgg (>= 1.2.0) is required and could not be found!]))
AX_CHECK_VORBIS(, AC_MSG_ERROR([libVorbisFile (>= 1.3.1) is required and could not be found!]))

dnl Boost
BOOST_REQUIRE(1.42.0)
Expand All @@ -95,12 +85,6 @@ BOOST_BIND
BOOST_UUID
BOOST_SMART_PTR

# OpenGL
AX_CHECK_GL( , AC_MSG_ERROR([OpenGL is required and could not be found!]))

# OpenAL
AX_CHECK_AL( , AC_MSG_ERROR([OpenAL Soft is required and could not be found!]))

dnl Extra flags
case "$target" in
*darwin*)
Expand Down

0 comments on commit 38bc3d6

Please sign in to comment.