From f4277711d7cbe469b08b70e769e5862efae7d8c3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 9 Oct 2010 13:18:24 +0000 Subject: [PATCH] disable gpio cable driver when pread() is not available (i.e. Windows) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1862 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 5 +++++ urjtag/configure.ac | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index fd44e7a0..e2714635 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2010-10-09 Mike Frysinger + + * configure.ac: Check for pread availability and disable gpio cable driver + when not found (for Windows systems). + 2010-09-28 Mike Frysinger * src/flash/amd_flash.c (urj_flash_amd_detect): Move the bus address range diff --git a/urjtag/configure.ac b/urjtag/configure.ac index 1c7075ae..d3f025b1 100644 --- a/urjtag/configure.ac +++ b/urjtag/configure.ac @@ -121,6 +121,7 @@ AC_CHECK_FUNCS(m4_flatten([ geteuid getuid nanosleep + pread swprintf usleep ])) @@ -639,6 +640,9 @@ URJ_DRIVER_SET([cable], [ -e s/vsllink// \ -e s/xpc//` ]) + AS_IF([test "x$ac_cv_func_pread" != "xyes"], [ + drivers=`echo ${drivers} | $SED -e s/gpio//` + ]) ]) dnl the "fake" jim cable driver is special AS_IF([echo "$enabled_cable_drivers" | $GREP -q jim], [