From 4a7627f07b8382ebc7da5dc0f55420b9013835ae Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 9 Jul 2008 19:34:26 +0000 Subject: * configure.ac: properly detect newer libsgutils (the so name was changed) * tools/ipod-scsi-inquiry.c: add missing include Based on a patch from Dan Horák (dan@danny.cz) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2045 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 7 +++++++ configure.ac | 11 ++++++++--- tools/ipod-scsi-inquiry.c | 1 + 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33e1e32..d43e276 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-09 Christophe Fergeau + + * configure.ac: properly detect newer libsgutils (the so name was + changed) + * tools/ipod-scsi-inquiry.c: add missing include + Based on a patch from Dan Horák (dan@danny.cz) + 2008-07-06 Christophe Fergeau * src/itdb_device.c: fix model number information grabbed from diff --git a/configure.ac b/configure.ac index 03e3b6c..2120a96 100644 --- a/configure.ac +++ b/configure.ac @@ -98,9 +98,14 @@ AM_CONDITIONAL(WITH_INTERNAL_GCHECKSUM, test "x$with_internal_gchecksum" = "xyes dnl ************************************************** dnl * sgutils is necessary to get the xml device file from the ipod dnl ************************************************** -AC_CHECK_LIB(sgutils, sg_ll_inquiry, - [SGUTILS_LIBS="-lsgutils"; have_sgutils=yes], - have_sgutils=no) +AC_CHECK_LIB(sgutils2, sg_ll_inquiry, + [SGUTILS_LIBS="-lsgutils2"; have_sgutils=yes], + have_sgutils=no) +if test "x$have_sgutils" != xyes; then + AC_CHECK_LIB(sgutils, sg_ll_inquiry, + [SGUTILS_LIBS="-lsgutils"; have_sgutils=yes], + have_sgutils=no) +fi AC_SUBST(SGUTILS_LIBS) AM_CONDITIONAL(HAVE_SGUTILS, test x"$have_sgutils" = xyes) diff --git a/tools/ipod-scsi-inquiry.c b/tools/ipod-scsi-inquiry.c index 3bc88f2..d4bee4a 100644 --- a/tools/ipod-scsi-inquiry.c +++ b/tools/ipod-scsi-inquiry.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include -- cgit