[Bug 651] New: [PATCH] dfu-util - configure.ac uses PKG_CHECK_MODULES which is not available here

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Tue Jul 24 11:05:48 CEST 2007


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=651

           Summary: [PATCH] dfu-util - configure.ac uses PKG_CHECK_MODULES
                    which is not available here
           Product: OpenMoko
           Version: current svn head
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: OE bitbake recipes  / build system
        AssignedTo: mickey at vanille-media.de
        ReportedBy: nick at anywi.com
                CC: buglog at lists.openmoko.org


I don't know much about autoconf, so this was just a cut&paste fix (from 
dfu-programmer's configure script), which looks like a more generic script 
(you might not have installed packages on an embedded system)

Index: configure.ac
===================================================================
--- configure.ac        (revision 2384)
+++ configure.ac        (working copy)
@@ -15,14 +15,14 @@

 # Checks for libraries.

-PKG_CHECK_MODULES(USB, libusb >= 0.1.4,,
-                 AC_MSG_ERROR([*** Required libusb >= 0.1.4 not installed 
***]))
+AC_CHECK_LIB([usb], [usb_control_msg],,
+                            [AC_MSG_ERROR([libusb not found])] )
 LIBS="$LIBS $USB_LIBS"
 CFLAGS="$CFLAGS $USB_CFLAGS"

 # Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS([stdlib.h string.h stdio.h])
+AC_CHECK_HEADERS([usb.h stdlib.h string.h stdio.h])

 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST

Please note: I am using dfu-util outside the context of OpenMoko and it works 
fine (with a few minor glitches fixed)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list