- acinclude/configure: some more minor format changes

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-12-09 13:01:37 +01:00
committed by Thilo Graf
parent 28450dcca0
commit c091bd6fc9
2 changed files with 36 additions and 31 deletions

View File

@@ -90,7 +90,8 @@ check_path() {
]) ])
dnl expand nested ${foo}/bar 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 for __CNT in false false false false true; do dnl max 5 levels of indirection
$1=`eval echo "$__$1"` $1=`eval echo "$__$1"`
echo ${$1} | grep -q '\$' || break # 'grep -q' is POSIX, exit if no $ in variable echo ${$1} | grep -q '\$' || break # 'grep -q' is POSIX, exit if no $ in variable
@@ -314,7 +315,8 @@ AC_ARG_WITH(boxtype,
BOXTYPE="$withval" BOXTYPE="$withval"
;; ;;
*) *)
AC_MSG_ERROR([bad value $withval for --with-boxtype]) ;; AC_MSG_ERROR([bad value $withval for --with-boxtype])
;;
esac], esac],
[BOXTYPE="coolstream"]) [BOXTYPE="coolstream"])

View File

@@ -81,7 +81,7 @@ if test -z "$OGG_CFLAGS" ; then
TUXBOX_APPS_LIB_PKGCONFIG(OGG,ogg) TUXBOX_APPS_LIB_PKGCONFIG(OGG,ogg)
fi fi
fi fi # test "$enable_ffmpegdec"
TUXBOX_APPS_LIB_PKGCONFIG(SWRESAMPLE,libswresample) TUXBOX_APPS_LIB_PKGCONFIG(SWRESAMPLE,libswresample)
@@ -96,12 +96,10 @@ TUXBOX_APPS_LIB_PKGCONFIG(CURL,libcurl)
## For the check you must use the corresponding libtool number as version number, ## For the check you must use the corresponding libtool number as version number,
## see freetype source code docs/VERSIONS.TXT ## see freetype source code docs/VERSIONS.TXT
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.2.10], PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.2.10], [
[echo "freetype2 >= 2.5.0 found"], [ 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"
[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]) #AC_MSG_ERROR([freetype2 >= 2.5.0 not found])
]) ])
@@ -121,9 +119,10 @@ if test -z "$FREETYPE_LIBS" -a -z "$FREETYPE_CFLAGS"; then
#if FREETYPE_MAJOR < 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 5) #if FREETYPE_MAJOR < 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 5)
#error Freetype version too low. #error Freetype version too low.
#endif #endif
], ], [
[AC_MSG_RESULT(yes)], AC_MSG_RESULT(yes)
[AC_MSG_ERROR([Need FreeType library version 2.5.0 or higher]) ], [
AC_MSG_ERROR([Need FreeType library version 2.5.0 or higher])
]) ])
fi fi
@@ -206,9 +205,13 @@ AC_ARG_ENABLE(lua,
if test "$enable_lua" = "yes"; then if test "$enable_lua" = "yes"; then
AC_DEFINE(ENABLE_LUA, 1, [include Lua support]) AC_DEFINE(ENABLE_LUA, 1, [include Lua support])
PKG_CHECK_MODULES([LUA], [lua >= 5.2], echo "lua >= 5.2 found", [ PKG_CHECK_MODULES([LUA], [lua >= 5.2], [
PKG_CHECK_MODULES([LUA], [lua5.2 >= 5.2], echo "lua5.2 found", [ echo "lua >= 5.2 found"
echo "=> lualib not found, assuming static lua in linker path..." ], [
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" 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.])
]) ])