mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
- acinclude/configure: some more minor format changes
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
18
acinclude.m4
18
acinclude.m4
@@ -90,7 +90,8 @@ check_path() {
|
||||
])
|
||||
|
||||
dnl expand nested ${foo}/bar
|
||||
AC_DEFUN([TUXBOX_EXPAND_VARIABLE], [__$1="$2"
|
||||
AC_DEFUN([TUXBOX_EXPAND_VARIABLE], [
|
||||
__$1="$2"
|
||||
for __CNT in false false false false true; do dnl max 5 levels of indirection
|
||||
$1=`eval echo "$__$1"`
|
||||
echo ${$1} | grep -q '\$' || break # 'grep -q' is POSIX, exit if no $ in variable
|
||||
@@ -312,9 +313,10 @@ AC_ARG_WITH(boxtype,
|
||||
[case "${withval}" in
|
||||
tripledragon|coolstream|spark|azbox|generic|armbox)
|
||||
BOXTYPE="$withval"
|
||||
;;
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([bad value $withval for --with-boxtype]) ;;
|
||||
AC_MSG_ERROR([bad value $withval for --with-boxtype])
|
||||
;;
|
||||
esac],
|
||||
[BOXTYPE="coolstream"])
|
||||
|
||||
@@ -329,7 +331,7 @@ AS_HELP_STRING([], [valid for generic: raspi]),
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
;;
|
||||
nevis|apollo)
|
||||
if test "$BOXTYPE" = "coolstream"; then
|
||||
if test "$withval" = "nevis"; then
|
||||
@@ -341,24 +343,24 @@ AS_HELP_STRING([], [valid for generic: raspi]),
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
;;
|
||||
hd51)
|
||||
if test "$BOXTYPE" = "armbox"; then
|
||||
BOXMODEL="$withval"
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
;;
|
||||
raspi)
|
||||
if test "$BOXTYPE" = "generic"; then
|
||||
BOXMODEL="$withval"
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
|
||||
;;
|
||||
;;
|
||||
esac],
|
||||
[test "$BOXTYPE" = "coolstream" && BOXMODEL="hd1" || true])
|
||||
|
||||
|
49
configure.ac
49
configure.ac
@@ -81,7 +81,7 @@ if test -z "$OGG_CFLAGS" ; then
|
||||
TUXBOX_APPS_LIB_PKGCONFIG(OGG,ogg)
|
||||
fi
|
||||
|
||||
fi
|
||||
fi # test "$enable_ffmpegdec"
|
||||
|
||||
TUXBOX_APPS_LIB_PKGCONFIG(SWRESAMPLE,libswresample)
|
||||
|
||||
@@ -96,14 +96,12 @@ TUXBOX_APPS_LIB_PKGCONFIG(CURL,libcurl)
|
||||
|
||||
## For the check you must use the corresponding libtool number as version number,
|
||||
## see freetype source code docs/VERSIONS.TXT
|
||||
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.2.10],
|
||||
[echo "freetype2 >= 2.5.0 found"], [
|
||||
## If freetype is not found:
|
||||
## Activate this line if you want to search with freetype-config instead
|
||||
[echo "freetype2 >= 2.5.0 not found, use alternative search method with freetype-config"]
|
||||
## Activate this line if you want to abort
|
||||
# AC_MSG_ERROR([freetype2 >= 2.5.0 not found])
|
||||
])
|
||||
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.2.10], [
|
||||
echo "freetype2 >= 2.5.0 found"
|
||||
], [
|
||||
echo "freetype2 >= 2.5.0 not found, use alternative search method with freetype-config"
|
||||
#AC_MSG_ERROR([freetype2 >= 2.5.0 not found])
|
||||
])
|
||||
|
||||
# fallback to curl-config (which is ugly for cross-compilation)
|
||||
if test -z "$CURL_LIBS" -a -z "$CURL_CFLAGS"; then
|
||||
@@ -115,16 +113,17 @@ if test -z "$FREETYPE_LIBS" -a -z "$FREETYPE_CFLAGS"; then
|
||||
TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
|
||||
CPPFLAGS+=" $FREETYPE_CFLAGS"
|
||||
AC_MSG_CHECKING([whether FreeType version is 2.5.0 or higher])
|
||||
AC_TRY_CPP([
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
#if FREETYPE_MAJOR < 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 5)
|
||||
#error Freetype version too low.
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_ERROR([Need FreeType library version 2.5.0 or higher])
|
||||
])
|
||||
AC_TRY_CPP([
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
#if FREETYPE_MAJOR < 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 5)
|
||||
#error Freetype version too low.
|
||||
#endif
|
||||
], [
|
||||
AC_MSG_RESULT(yes)
|
||||
], [
|
||||
AC_MSG_ERROR([Need FreeType library version 2.5.0 or higher])
|
||||
])
|
||||
fi
|
||||
|
||||
TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
|
||||
@@ -206,11 +205,15 @@ AC_ARG_ENABLE(lua,
|
||||
|
||||
if test "$enable_lua" = "yes"; then
|
||||
AC_DEFINE(ENABLE_LUA, 1, [include Lua support])
|
||||
PKG_CHECK_MODULES([LUA], [lua >= 5.2], echo "lua >= 5.2 found", [
|
||||
PKG_CHECK_MODULES([LUA], [lua5.2 >= 5.2], echo "lua5.2 found", [
|
||||
echo "=> lualib not found, assuming static lua in linker path..."
|
||||
PKG_CHECK_MODULES([LUA], [lua >= 5.2], [
|
||||
echo "lua >= 5.2 found"
|
||||
], [
|
||||
PKG_CHECK_MODULES([LUA], [lua5.2 >= 5.2], [
|
||||
echo "lua5.2 found"
|
||||
], [
|
||||
echo "lualib not found, assuming static lua in linker path..."
|
||||
LUA_LIBS="-llua -ldl"
|
||||
AC_DEFINE(STATIC_LUAPOSIX,1,[Define to 1 for static lua build.])
|
||||
AC_DEFINE(STATIC_LUAPOSIX, 1, [Define to 1 for static lua build.])
|
||||
])
|
||||
])
|
||||
# hack...
|
||||
|
Reference in New Issue
Block a user