libpcap-0002-configure.in-uclinux-is-also-linux.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From a904d1e35be72d0821a6680a75060815bce86642 Mon Sep 17 00:00:00 2001
  2. Message-Id: <a904d1e35be72d0821a6680a75060815bce86642.1406266983.git.baruch@tkos.co.il>
  3. From: Baruch Siach <baruch@tkos.co.il>
  4. Date: Fri, 25 Jul 2014 07:28:47 +0300
  5. Subject: [PATCH] configure.in: uclinux is also linux
  6. Also we need -lpthread for the test to build for noMMU targets.
  7. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  8. ---
  9. configure.in | 5 +++--
  10. 1 file changed, 3 insertions(+), 2 deletions(-)
  11. diff --git a/configure.in b/configure.in
  12. index 4530aed3a7d0..63f708b9b855 100644
  13. --- a/configure.in
  14. +++ b/configure.in
  15. @@ -1539,7 +1539,7 @@ AC_ARG_ENABLE([canusb],
  16. if test "x$enable_canusb" != "xno" ; then
  17. dnl check for canusb support
  18. case "$host_os" in
  19. - linux*)
  20. + linux*|uclinux*)
  21. AC_CHECK_HEADER(libusb-1.0/libusb.h,
  22. [
  23. AC_CHECK_LIB(usb-1.0, libusb_init,
  24. @@ -1549,7 +1549,8 @@ if test "x$enable_canusb" != "xno" ; then
  25. LIBS="-lusb-1.0 -lpthread $LIBS"
  26. ac_lbl_has_libusb=yes
  27. ],
  28. - ac_lbl_has_libusb=no
  29. + ac_lbl_has_libusb=no,
  30. + -lpthread
  31. )
  32. ],
  33. ac_lbl_has_libusb=no
  34. --
  35. 2.0.1