[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


           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])] )

 # Checks for header files.
-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.

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