Skip to content

Commit eb6737e

Browse files
committed
Move messages for linuxspi
1 parent 6d1006e commit eb6737e

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ else()
484484
endif()
485485

486486
if(HAVE_LINUXSPI)
487-
message(STATUS "ENABLED linuxspi")
487+
buildinfo_item("linuxspi" "ENABLED")
488488
else()
489-
message(STATUS "DISABLED linuxspi")
489+
buildinfo_item("linuxspi" "DISABLED")
490490
endif()
491491

492492
if(HAVE_SWIG)

src/configure.ac

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ else
645645
confsubst="$confsubst -e /^@HAVE_LINUXSPI_BEGIN@/,/^@HAVE_LINUXSPI_END@/d"
646646
fi
647647

648+
AS_VAR_IF([enabled_linuxspi], [yes], [dnl
649+
BUILDINFO_ITEM([linuxspi], [ENABLED])
650+
], [dnl
651+
BUILDINFO_ITEM([linuxspi], [DISABLED])
652+
])
653+
648654

649655
# If we are compiling with gcc, enable all warnings and make warnings errors.
650656
ENABLE_WARNINGS=""
@@ -828,10 +834,3 @@ if test "x$enabled_linuxgpio" = xyes; then
828834
else
829835
echo "DISABLED linuxgpio"
830836
fi
831-
832-
if test "x$enabled_linuxspi" = xyes; then
833-
echo "ENABLED linuxspi"
834-
else
835-
echo "DISABLED linuxspi"
836-
fi
837-

0 commit comments

Comments
 (0)