You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configure.ac
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2098,7 +2098,7 @@ dnl check for --with-all (or --without-all, or --with-all=auto) flag
2098
2098
2099
2099
AC_MSG_CHECKING(for--with-all)
2100
2100
AC_ARG_WITH(all,
2101
-
AS_HELP_STRING([--with-all], [enable serial, usb, snmp, neon, ipmi, powerman, modbus, gpio (currently on Linux released after ~2018), linux_i2c (on Linux), macosx-ups (on MacOS), cgi, dev, avahi, nut-scanner, nutconf, pynut]),
2101
+
AS_HELP_STRING([--with-all], [enable serial, usb, snmp, neon, ipmi, powerman, modbus, gpio (currently on Linux released after ~2018), linux_i2c (on Linux), macosx-ups (on MacOS), cgi, dev, avahi, nut-scanner, nutconf, dev-libnutconf, pynut]),
2102
2102
[
2103
2103
if test -n "${withval}"; then
2104
2104
dnl Note: we allow "no" as a positive value, because
@@ -2143,6 +2143,7 @@ AC_ARG_WITH(all,
2143
2143
if test -z "${with_avahi}"; then with_avahi="${withval}"; fi
2144
2144
if test -z "${with_nut_scanner}"; then with_nut_scanner="${withval}"; fi
2145
2145
if test -z "${with_nutconf}"; then with_nutconf="${withval}"; fi
2146
+
if test -z "${with_dev_libnutconf}"; then with_dev_libnutconf="${withval}"; fi
2146
2147
2147
2148
if test -n "${PYTHON}${PYTHON2}${PYTHON3}" -a x"${withval}" = xyes \
2148
2149
|| test x"${withval}" != xyes \
@@ -2172,10 +2173,15 @@ dnl they are listed near the top by "./configure --help"; however,
2172
2173
dnl note that options with further investigation methods are listed
2173
2174
dnl a bit below to be grouped with their additional with/enable help.
2174
2175
2176
+
dnl Depends on C++ support being available and enabled
2175
2177
NUT_ARG_WITH([nutconf], [build and install the nutconf tool (experimental, has compiler/coverage warnings)], [auto])
2176
2178
2177
2179
NUT_ARG_WITH([dev], [build and install the development files], [no])
2178
2180
2181
+
dnl Depends on C++ support being available and enabled
2182
+
dnl Does not depend on nutconf or dev explicitly (but warns about inconsistencies)
2183
+
NUT_ARG_WITH([dev-libnutconf], [deliver the C++ library behind the nutconf tool and its headers (experimental)], [no])
2184
+
2179
2185
dnl Activate WITH_UNMAPPED_DATA_POINTS for troubleshooting and evolution?
2180
2186
dnl Note that production drivers must conform to docs/nut-names.txt
2181
2187
NUT_ARG_WITH([unmapped-data-points],
@@ -4495,6 +4501,39 @@ NUT_REPORT_PROGRAM([build and install the nutconf tool (experimental, may lack s
["yes"], [AS_IF([test x"${have_cxx11}" = xyes], [], [AC_MSG_ERROR([explicit --with-dev-libnutconf=yes can not be satisfied: C++11 support not enabled])])],
4512
+
["no"], [nut_with_dev_libnutconf=no]
4513
+
)
4514
+
AC_MSG_RESULT(${nut_with_dev_libnutconf})
4515
+
4516
+
AM_CONDITIONAL(WITH_DEV_LIBNUTCONF, test "${nut_with_dev_libnutconf}" = "yes")
4517
+
NUT_REPORT_PROGRAM([build and install the deliver the libnutconf library and headers (experimental)],
4518
+
[${nut_with_dev_libnutconf}], [],
4519
+
[WITH_DEV_LIBNUTCONF], [Define to enable delivery of libnutconf developer files])
4520
+
4521
+
AS_IF([test x"$nut_with_dev_libnutconf" = x"yes" -a x"${nut_with_dev}" != x"yes"], [
4522
+
AC_MSG_WARN([You are effectively building --with-dev-libnutconf --without-dev, so would only get this library and headers but maybe not others it might need])
4523
+
])
4524
+
AS_IF([test x"$nut_with_dev_libnutconf" = x"yes" -a x"${nut_with_nutconf}" != x"yes"], [
4525
+
AC_MSG_NOTICE([You are effectively building --with-dev-libnutconf --without-nutconf, so would only get the library and headers but not the tool])
4526
+
])
4527
+
AS_IF([test x"$nut_with_dev_libnutconf" != x"yes" -a x"${nut_with_nutconf}" = x"yes"], [
4528
+
AC_MSG_NOTICE([You are effectively building --without-dev-libnutconf --with-nutconf, so would only get the tool (library and headers are just its internal detail during build)])
4529
+
])
4530
+
4531
+
dnl At least the lib and/or the tool delivery are enabled, generate the
4532
+
dnl automake rules to build the library (privately or publicly, that depends):
0 commit comments