From 3e38c9b89e13b241eac12846940ec41201a9185c Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Thu, 8 Aug 2024 16:07:50 +0200 Subject: [PATCH] cmake/automake: Prevent builds with unsupported HAVE_PARPORT Prevent builds with unsupported HAVE_PARPORT on MacOS --- CMakeLists.txt | 6 ++++-- src/configure.ac | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a185594b..6b32b324b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,9 +340,11 @@ if(BUILD_DOC) add_subdirectory(src/doc) endif() -if(WIN32) - if(HAVE_PARPORT) +if(HAVE_PARPORT) + if(WIN32) message(FATAL_ERROR "avrdude does not support parallel port on Windows") + elseif(APPLE) + message(FATAL_ERROR "avrdude does not support parallel port on Apple systems") endif() endif() diff --git a/src/configure.ac b/src/configure.ac index abfc08644..91f6a4459 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -454,6 +454,9 @@ AS_IF([test "x$enabled_parport" = xyes], [dnl *-*-mingw32* | *-*-cygwin* | *-*-windows*) AC_MSG_ERROR([avrdude does not support parallel port on Windows]) ;; + *-*-darwin*) + AC_MSG_ERROR([avrdude does not support parallel port on MacOS]) + ;; esac ])