Update of /cvsroot/gtkpod/libgpod
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8821

Modified Files:
        ChangeLog configure.ac 
Log Message:
        * configure.ac: enable/disable switches for gdk and hal. Thanks to
          Olivier Crête



Index: ChangeLog
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/ChangeLog,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- ChangeLog   4 Mar 2006 13:22:44 -0000       1.101
+++ ChangeLog   8 Mar 2006 13:13:14 -0000       1.102
@@ -1,5 +1,10 @@
 2005-02-04  Jorg Schuler <jcsjcs at users.sourceforge.net>
 
+       * configure.ac: enable/disable switches for gdk and hal. Thanks to
+         Olivier Crête
+
+2005-02-04  Jorg Schuler <jcsjcs at users.sourceforge.net>
+
        * configure.ac: bumped version to 0.3.3 for new CVS version.
 
        * RELEASED libgpod 0.3.2

Index: configure.ac
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/configure.ac,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- configure.ac        4 Mar 2006 13:22:44 -0000       1.29
+++ configure.ac        8 Mar 2006 13:13:14 -0000       1.30
@@ -56,25 +56,40 @@
 dnl **************************************************
 dnl * GDKPIXBUF is optional
 dnl **************************************************
+
+AC_ARG_ENABLE(gdk-pixbuf, [AC_HELP_STRING([--disable-gdk-pixbuf],[ArtworkDB 
will be disabled without gdk-pixbuf])], 
+[case "${enableval}" in
+  no) have_gdkpixbuf=no ;;
+  *) have_gdkpixbuf=yes;;
+esac], have_gdkpixbuf=yes)
 AH_TEMPLATE([HAVE_GDKPIXBUF], [Whether gdk-pixbuf is installed, ArtworkDB 
writing support will be disabled if it can't be found])
-PKG_CHECK_MODULES(GDKPIXBUF, gdk-pixbuf-2.0, have_gdkpixbuf=yes, 
have_gdkpibux=no)
-AM_CONDITIONAL(HAVE_GDKPIXBUF, test x"$have_gdkpixbuf" = xyes)
-if test x"$have_gdkpixbuf" = xyes; then
-   AC_DEFINE_UNQUOTED(HAVE_GDKPIXBUF, 1)
+if test x$have_gdkpixbuf = xyes; then
+   PKG_CHECK_MODULES(GDKPIXBUF, gdk-pixbuf-2.0, have_gdkpixbuf=yes, 
have_gdkpixbuf=no)
+   if test x"$have_gdkpixbuf" = xyes; then
+      AC_DEFINE_UNQUOTED(HAVE_GDKPIXBUF, 1)
+   fi
+   LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS $GDKPIXBUF_CFLAGS"
+   LIBGPOD_LIBS="$LIBGPOD_LIBS $GDKPIXBUF_LIBS"
 fi
-LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS $GDKPIXBUF_CFLAGS"
-LIBGPOD_LIBS="$LIBGPOD_LIBS $GDKPIXBUF_LIBS"
+AM_CONDITIONAL(HAVE_GDKPIXBUF, test x"$have_gdkpixbuf" = xyes)
 
 dnl **************************************************
 dnl * hal is optional
 dnl **************************************************
 
-PKG_CHECK_MODULES(HAL, dbus-1 dbus-glib-1 hal >= 0.5.2 hal < 0.6, 
enable_hal05=yes, enable_hal05=no)
-if test x$enable_hal05 == xyes; then
-   AC_DEFINE_UNQUOTED(HAVE_LIBHAL, 1, [Whether HAL is available or not])
+AC_ARG_ENABLE(hal, [AC_HELP_STRING([--enable-hal],[support hal])], 
+[case "${enableval}" in
+  no) enable_hal05=no ;;
+  *) enable_hal05=yes;;
+esac], enable_hal05=no)
+if test x$enable_hal05 = xyes; then
+   PKG_CHECK_MODULES(HAL, dbus-1 dbus-glib-1 hal >= 0.5.2 hal < 0.6, 
enable_hal05=yes, enable_hal05=no)
+   if test x$enable_hal05 = xyes; then
+      AC_DEFINE_UNQUOTED(HAVE_LIBHAL, 1, [Whether HAL is available or not])
+   fi
+   LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS $HAL_CFLAGS"
+   LIBGPOD_LIBS="$LIBGPOD_LIBS $HAL_LIBS"
 fi
-LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS $HAL_CFLAGS"
-LIBGPOD_LIBS="$LIBGPOD_LIBS $HAL_LIBS"
 
 dnl **************************************************
 dnl * necessary for the HAL libipoddevice code



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to