forked from mia/Aegisub
Add BUILD_CREDIT support using --with-build-credit which shows up in the
titlebar (I didn't want to add this but it keeps coming up.) I also hope it is not abused by setting usernames during package builds for distributions. It should only be used for personal builds only or shared builds by individuals. Originally committed to SVN as r2614.
This commit is contained in:
parent
0c7e784d71
commit
478b3b6996
1 changed files with 15 additions and 0 deletions
15
configure.in
15
configure.in
|
@ -89,6 +89,21 @@ AC_SUBST(aegisubdatadir)
|
|||
# Install prefix used by wxStandardPaths::SetInstallPrefix.
|
||||
AC_DEFINE_UNQUOTED([INSTALL_PREFIX], ["$prefix"], [Default install prefix, or --prefix.])
|
||||
|
||||
AC_ARG_WITH(build-credit, [--with-build-credit=NAME Build credit shown in the program title.], [use_build_credit="yes"])
|
||||
|
||||
AC_MSG_CHECKING([whether BUILD_CREDIT has been set])
|
||||
if test "$use_build_credit" = "yes"; then
|
||||
if test "$with_build_credit" = "yes" || test -z "$with_build_credit"; then
|
||||
AC_MSG_FAILURE([You must set a value eg --with-build-credit=<username>])
|
||||
else
|
||||
AC_MSG_RESULT([yes ($with_build_credit)])
|
||||
AC_DEFINE_UNQUOTED([BUILD_CREDIT], ["$with_build_credit"], [Build credit supplied in application title using --with-build-credit=])
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
|
||||
####################
|
||||
# Check for programs
|
||||
####################
|
||||
|
|
Loading…
Reference in a new issue