configure: make graphlcd configurable

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8e5e8b1ba8
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-20 (Sun, 20 Dec 2020)

Origin message was:
------------------
- configure: make graphlcd configurable

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2020-12-20 21:59:31 +01:00
parent 13a9576061
commit 0f10ea3746
2 changed files with 5 additions and 12 deletions

View File

@@ -662,18 +662,6 @@ case "$BOXMODEL" in
AC_DEFINE(ENABLE_CHANGE_OSD_RESOLUTION, 1, [enable to change osd resolution])
;;
esac
# BOXMODELs that needs GraphLCD support
case "$BOXMODEL" in
vusolo4k|vuduo4k|vuduo4kse|vuultimo4k|vuuno4kse)
AC_DEFINE(ENABLE_GRAPHLCD, 1, [include GraphLCD support])
enable_graphlcd=yes
;;
*)
enable_graphlcd=no
;;
esac
AM_CONDITIONAL(ENABLE_GRAPHLCD, test "$enable_graphlcd" = "yes")
])
dnl backward compatiblity

View File

@@ -177,6 +177,11 @@ if test "$BOXTYPE" = "coolstream" ||
AC_DEFINE(SCREENSHOT, 1, [Define to 1 if the platform supports screenshots])
fi
AC_ARG_ENABLE(graphlcd,
AS_HELP_STRING([--enable-graphlcd], [enable GraphLCD support @<:@default=no@:>@]),
AC_DEFINE(ENABLE_GRAPHLCD, 1, [enable GraphLCD support]))
AM_CONDITIONAL(ENABLE_GRAPHLCD, test "$enable_graphlcd" = "yes")
AC_ARG_ENABLE(keyboard-no-rc,
AS_HELP_STRING([--enable-keyboard-no-rc], [enable keyboard control, disable rc control @<:@default=no@:>@]),
AC_DEFINE(KEYBOARD_INSTEAD_OF_REMOTE_CONTROL, 1, [enable keyboard control, disable rc control]))