mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Add --with-default-config=PATH option
This commit is contained in:
parent
645ab42896
commit
a1ccd0adec
15
configure.ac
15
configure.ac
@ -208,6 +208,21 @@ AS_IF([test "x$enable_client_tests" == "xyes"], [
|
|||||||
AM_CONDITIONAL([ENABLE_MODULE_CLIENT_TESTS],
|
AM_CONDITIONAL([ENABLE_MODULE_CLIENT_TESTS],
|
||||||
[test "x$enable_client_tests" = "xyes"])
|
[test "x$enable_client_tests" = "xyes"])
|
||||||
|
|
||||||
|
AC_ARG_WITH([default-config],
|
||||||
|
AS_HELP_STRING([--with-default-config=PATH],
|
||||||
|
[Sets default Icecast configuration file (used when no configuration file is given)])
|
||||||
|
)
|
||||||
|
|
||||||
|
AS_IF([test "$with_default_config" != "no"], [
|
||||||
|
|
||||||
|
AS_IF([test "$with_default_config" = "yes"], [
|
||||||
|
AC_MSG_ERROR([You need to supply a path as value for --with-default-config])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFINE_UNQUOTED([ICECAST_DEFAULT_CONFIG], ["$with_default_config"], [Define to default config file path])
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
dnl Make substitutions
|
dnl Make substitutions
|
||||||
AC_SUBST(XIPH_LIBS)
|
AC_SUBST(XIPH_LIBS)
|
||||||
AC_SUBST(XIPH_CPPFLAGS)
|
AC_SUBST(XIPH_CPPFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user