Add --disable-parallel configure option

https://github.com/Hamlib/Hamlib/issues/1181
pull/1191/head
Mike Black W9MDB 2022-12-09 23:32:51 -06:00
rodzic 6ef7009f6c
commit 6331709fd6
3 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -694,6 +694,15 @@ AC_ARG_ENABLE([winradio],
[cf_with_winradio="yes" AC_DEFINE([HAVE_WINRADIO],[1],[Define if winradio backend is built])])
AC_MSG_RESULT([$cf_with_winradio])
dnl Parallel port device disable
AC_MSG_CHECKING([whether to build parallel port devices])
AC_ARG_ENABLE([parallel],
[AS_HELP_STRING([--disable-parallel],
[do not build parallel devices @<:@default=yes@:>@])],
[cf_with_parallel="no"],
[cf_with_parallel="yes" AC_DEFINE([HAVE_PARALLEL],[1],[Define if parallel devices are to be built])])
AC_MSG_RESULT([$cf_with_parallel])
DL_LIBS=""
AS_IF([test x"${cf_with_winradio}" = "xyes"],
@ -914,6 +923,7 @@ echo \
Enable HTML rig feature matrix ${cf_enable_html_matrix}
Enable WinRadio ${cf_with_winradio}
Enable Parallel ${cf_with_parallel}
Enable USRP ${cf_with_usrp}
Enable USB backends ${cf_with_libusb}
Enable shared libs ${enable_shared}

Wyświetl plik

@ -26,9 +26,11 @@
#include <sys/ioctl.h>
#endif
#ifdef HAVE_PARALLEL
#ifdef HAVE_LINUX_PARPORT_H
#include <linux/parport.h>
#endif
#endif
#include "hamlib/rotator.h"
#include "parallel.h"

Wyświetl plik

@ -26,9 +26,11 @@
#include <hamlib/rig.h>
#include "iofunc.h"
#ifdef HAVE_PARALLEL
#ifdef HAVE_LINUX_PARPORT_H
# include <linux/parport.h>
#endif
#endif
#ifndef PARPORT_CONTROL_STROBE
# define PARPORT_CONTROL_STROBE 0x1