mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
configure: Tweak some outputs; minor cleanup.
This commit is contained in:
parent
a8e7a4890f
commit
90c18287da
1 changed files with 17 additions and 14 deletions
29
configure.ac
29
configure.ac
|
@ -2281,21 +2281,23 @@ PKG_CHECK_MODULES(MesaOpenCL, [MesaOpenCL],
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_MSG_CHECKING(whether to enable use of any found OpenCL)
|
AC_MSG_CHECKING(whether to disable use of any found OpenCL)
|
||||||
AC_ARG_ENABLE(opencl, RB_HELP_STRING([--disable-opencl], [Disable OpenCL support]),
|
AC_ARG_ENABLE(opencl, RB_HELP_STRING([--disable-opencl], [Disable OpenCL support]),
|
||||||
[
|
[
|
||||||
AC_MSG_RESULT([$enableval])
|
AC_MSG_RESULT([$enableval])
|
||||||
enable_opencl=$enableval
|
enable_opencl=$enableval
|
||||||
], [
|
], [
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([no])
|
||||||
enable_opencl="yes"
|
enable_opencl="yes"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(whether to enable use of any found OpenCL)
|
||||||
AM_CONDITIONAL([OPENCL], [test "x$have_opencl" = "xyes" && test "x$enable_opencl" = "xyes" ])
|
AM_CONDITIONAL([OPENCL], [test "x$have_opencl" = "xyes" && test "x$enable_opencl" = "xyes" ])
|
||||||
AM_CONDITIONAL([MESA_OPENCL], [test "x$have_mesa_opencl" = "xyes"])
|
AM_CONDITIONAL([MESA_OPENCL], [test "x$have_mesa_opencl" = "xyes"])
|
||||||
|
|
||||||
AM_COND_IF([OPENCL],
|
AM_COND_IF([OPENCL],
|
||||||
[
|
[
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
IRCD_DEFINE(USE_OPENCL, [1], [OpenCL support is available and enabled])
|
IRCD_DEFINE(USE_OPENCL, [1], [OpenCL support is available and enabled])
|
||||||
OPENCL_LIBS+="-lOpenCL"
|
OPENCL_LIBS+="-lOpenCL"
|
||||||
|
|
||||||
|
@ -2672,7 +2674,7 @@ AC_ARG_WITH(mxid-maxlen,
|
||||||
RB_HELP_STRING([--with-mxid-maxlen=LENGTH],[Set the upper-bound mxid length to LENGTH (default 255, max 511)]),
|
RB_HELP_STRING([--with-mxid-maxlen=LENGTH],[Set the upper-bound mxid length to LENGTH (default 255, max 511)]),
|
||||||
[
|
[
|
||||||
if ! expr "$withval" + 0 >/dev/null 2>&1; then
|
if ! expr "$withval" + 0 >/dev/null 2>&1; then
|
||||||
AC_ERROR([MXID_MAXLEN must be a numeric value])
|
AC_MSG_ERROR(MXID_MAXLEN must be a numeric value)
|
||||||
fi
|
fi
|
||||||
if test $withval -gt 511; then
|
if test $withval -gt 511; then
|
||||||
MXID_MAXLEN=511
|
MXID_MAXLEN=511
|
||||||
|
@ -2811,18 +2813,19 @@ echo
|
||||||
echo "Using bundled Boost ............... $with_included_boost"
|
echo "Using bundled Boost ............... $with_included_boost"
|
||||||
echo "Using bundled RocksDB ............. $with_included_rocksdb"
|
echo "Using bundled RocksDB ............. $with_included_rocksdb"
|
||||||
echo
|
echo
|
||||||
echo "Install Prefix .................... $prefix"
|
echo "Install prefix .................... $prefix"
|
||||||
echo "Binary directory .................. $bindir"
|
echo "Binary prefix .................... $bindir"
|
||||||
echo "Config directory .................. $sysconfdir"
|
echo "Config prefix ..................... $sysconfdir"
|
||||||
echo "Include directory ................. $includedir"
|
echo "Include prefix .................... $includedir"
|
||||||
echo "Library directory ................. $libdir"
|
echo "Library prefix .................... $libdir"
|
||||||
echo "Modules directory ................. $moduledir"
|
echo "Shared prefix ..................... $datarootdir"
|
||||||
echo "Shared dataroot directory ......... $datarootdir"
|
echo
|
||||||
echo "Shared data directory ............. $datadir"
|
echo "Runstate directory ................ $runstatedir"
|
||||||
echo "Webapp directory .................. $webappdir"
|
|
||||||
echo "Runtime state directory ........... $runstatedir"
|
|
||||||
echo "Database directory ................ $dbdir"
|
echo "Database directory ................ $dbdir"
|
||||||
echo "Logging directory ................. $logdir"
|
echo "Logging directory ................. $logdir"
|
||||||
|
echo "Modules directory ................. $moduledir"
|
||||||
|
echo "Shared directory .................. $datadir"
|
||||||
|
echo "Webapp directory .................. $webappdir"
|
||||||
echo
|
echo
|
||||||
echo "Matrix ID (mxid) length ........... $MXID_MAXLEN"
|
echo "Matrix ID (mxid) length ........... $MXID_MAXLEN"
|
||||||
echo "Logging level ..................... $LOG_LEVEL"
|
echo "Logging level ..................... $LOG_LEVEL"
|
||||||
|
|
Loading…
Reference in a new issue