check ENABLE_LOWLEVEL_PPDEV rather than HAVE_LINUX_PPDEV_H so that the driver gets disabled according to the configure flag rather than the header check

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1347 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 16 years ago
parent 27655544b1
commit 6c1485d6ae

@ -1,3 +1,9 @@
2008-09-03 Mike Frysinger <vapier@gentoo.org>
* src/tap/parport/ppdev.c, src/tap/cable/wiggler.c,
src/tap/cable/generic_parport.c: Change HAVE_LINUX_PPDEV_H to
ENABLE_LOWLEVEL_PPDEV.
2008-08-27 Arnim Laeuger <arniml@users.sourceforge.net>
* include/Makefile.am, include/bsdl.h, include/bsdl_mode.h,

@ -110,7 +110,7 @@ generic_parport_help( const char *cablename )
{
printf( _(
"Usage: cable %s parallel PORTADDR\n"
#if HAVE_LINUX_PPDEV_H
#if ENABLE_LOWLEVEL_PPDEV
" or: cable %s ppdev PPDEV\n"
#endif
#if HAVE_DEV_PPBUS_PPI_H
@ -118,7 +118,7 @@ generic_parport_help( const char *cablename )
#endif
"\n"
"PORTADDR parallel port address (e.g. 0x378)\n"
#if HAVE_LINUX_PPDEV_H
#if ENABLE_LOWLEVEL_PPDEV
"PPDEF ppdev device (e.g. /dev/parport0)\n"
#endif
#if HAVE_DEV_PPBUS_PPI_H
@ -126,7 +126,7 @@ generic_parport_help( const char *cablename )
#endif
"\n"
),
#if HAVE_LINUX_PPDEV_H
#if ENABLE_LOWLEVEL_PPDEV
cablename,
#endif
#if HAVE_DEV_PPBUS_PPI_H

@ -304,7 +304,7 @@ wiggler_help( const char *cablename )
{
printf( _(
"Usage: cable %s parallel PORTADDR [TDO,TRST,TDI,TCK,TMS,SRESET]\n"
#if HAVE_LINUX_PPDEV_H
#if ENABLE_LOWLEVEL_PPDEV
" or: cable %s ppdev PPDEV [TDO,TRST,TDI,TCK,TMS,SRESET]\n"
#endif
#if HAVE_DEV_PPBUS_PPI_H
@ -312,7 +312,7 @@ wiggler_help( const char *cablename )
#endif
"\n"
"PORTADDR parallel port address (e.g. 0x378)\n"
#if HAVE_LINUX_PPDEV_H
#if ENABLE_LOWLEVEL_PPDEV
"PPDEF ppdev device (e.g. /dev/parport0)\n"
#endif
#if HAVE_DEV_PPBUS_PPI_H
@ -322,7 +322,7 @@ wiggler_help( const char *cablename )
" default is '%s'\n"
"\n"
),
#if HAVE_LINUX_PPDEV_H
#if ENABLE_LOWLEVEL_PPDEV
cablename,
#endif
#if HAVE_DEV_PPBUS_PPI_H

@ -25,7 +25,7 @@
#include "sysdep.h"
#ifdef HAVE_LINUX_PPDEV_H
#ifdef ENABLE_LOWLEVEL_PPDEV
#include <fcntl.h>
#ifdef HAVE_STROPTS_H
@ -235,4 +235,4 @@ parport_driver_t ppdev_parport_driver = {
ppdev_set_control
};
#endif /* HAVE_LINUX_PPDEV_H */
#endif /* ENABLE_LOWLEVEL_PPDEV */

Loading…
Cancel
Save