Skip to content

Commit afe33f0

Browse files
committed
configure.ac: refine reporting of GPIO_VERSION when there is none
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 660776b commit afe33f0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configure.ac

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3122,8 +3122,14 @@ if test "${nut_with_gpio}" != "no"; then
31223122
fi
31233123

31243124
dnl NOTE: m4 scriptlet also defines WITH_LIBGPIO_VERSION like 0x00020000 in config.h
3125-
NUT_REPORT_DRIVER([build GPIO driver (library v${GPIO_VERSION})], [${nut_with_gpio}], [${nut_gpio_lib}],
3125+
AS_IF([test x"${GPIO_VERSION}" = xnone], [
3126+
REPORT_GPIO_VERSION="library version not detected"
3127+
],[
3128+
REPORT_GPIO_VERSION="library v${GPIO_VERSION}"
3129+
])
3130+
NUT_REPORT_DRIVER([build GPIO driver (${REPORT_GPIO_VERSION})], [${nut_with_gpio}], [${nut_gpio_lib}],
31263131
[WITH_GPIO], [Define to enable GPIO support])
3132+
unset REPORT_GPIO_VERSION
31273133

31283134
dnl ----------------------------------------------------------------------
31293135
dnl The Mac OS X meta-driver looks at IOKit Power Sources keys managed by

0 commit comments

Comments
 (0)