From 661fcdef874dc6c2bb94419dc4f52d17f788214f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 28 May 2001 20:36:13 +0000 Subject: [PATCH] Added a check for libgsm Original commit message from CVS: Added a check for libgsm --- acconfig.h | 1 + configure.ac | 17 ++++++++++++++++- configure.in | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/acconfig.h b/acconfig.h index acb8115d3c..d72125605f 100644 --- a/acconfig.h +++ b/acconfig.h @@ -34,6 +34,7 @@ #undef HAVE_VORBIS #undef HAVE_LIBMAD #undef HAVE_LIBJPEG +#undef HAVE_LIBGSM #undef HAVE_LIBSDL #undef HAVE_LIBHERMES #undef HAVE_NASM diff --git a/configure.ac b/configure.ac index fef7cf49d0..d9eb0ed5e7 100644 --- a/configure.ac +++ b/configure.ac @@ -499,6 +499,17 @@ AC_CHECK_LIB(Hermes, Hermes_ConverterInstance, ) AC_CHECK_HEADER(Hermes/Hermes.h, :, HAVE_LIBHERMES=no) +dnl Check for libgsm +AC_MSG_CHECKING(GSM library) +AC_CHECK_LIB(gsm, gsm_create, + HAVE_LIBGSM=yes + AC_DEFINE(HAVE_LIBGSM), + AC_MSG_WARN( +***** NOTE: These plugins won't be built: gsmdec, gsmenc +) + HAVE_LIBGSM=no, +) + dnl Check for cdparanoia AC_MSG_CHECKING(CDparanoia library) HAVE_CDPARANOIA=yes @@ -862,6 +873,10 @@ if test "x$HAVE_LIBAUDIOFILE" = xyes; then AC_DEFINE(HAVE_LIBAUDIOFILE) fi +if test "x$HAVE_LIBGSM" = xyes; then + AC_DEFINE(HAVE_LIBGSM) +fi + dnl ############################# dnl # Set automake conditionals # dnl ############################# @@ -915,7 +930,7 @@ AM_CONDITIONAL(HAVE_LIBDV, test "x$HAVE_LIBDV" = "xyes") AM_CONDITIONAL(HAVE_LIBAA, test "x$HAVE_LIBAA" = "xyes") AM_CONDITIONAL(HAVE_GNOME_VFS, test "x$HAVE_GNOME_VFS" = "xyes") AM_CONDITIONAL(HAVE_LIBOPENQUICKTIME, test "x$HAVE_LIBOPENQUICKTIME" = "xyes") - +AM_CONDITIONAL(HAVE_LIBGSM, test "x$HAVE_LIBGSM" = "xyes") dnl ############################ diff --git a/configure.in b/configure.in index 86a57306e4..b47b4a1f20 100644 --- a/configure.in +++ b/configure.in @@ -493,6 +493,17 @@ AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_LIBJPEG=no, ) +dnl Check for libgsm +AC_MSG_CHECKING(libgsm library) +AC_CHECK_LIB(gsm, gsm_create, + HAVE_LIBGSM=yes + AC_DEFINE(HAVE_LIBGSM), + AC_MSG_WARN( +***** NOTE: These plugins won't be built: gsmdec gsmenc +) + HAVE_LIBGSM=no, +) + dnl Check for Hermes AC_MSG_CHECKING(Hermes library) AC_CHECK_LIB(Hermes, Hermes_ConverterInstance, @@ -863,6 +874,10 @@ if test "x$HAVE_LIBAUDIOFILE" = xyes; then AC_DEFINE(HAVE_LIBAUDIOFILE) fi +if test "x$HAVE_LIBGSM" = xyes; then + AC_DEFINE(HAVE_LIBGSM) +fi + dnl ############################# dnl # Set automake conditionals # dnl ############################# @@ -917,6 +932,7 @@ AM_CONDITIONAL(HAVE_LIBAA, test "x$HAVE_LIBAA" = "xyes") AM_CONDITIONAL(HAVE_GNOME_VFS, test "x$HAVE_GNOME_VFS" = "xyes") AM_CONDITIONAL(HAVE_LIBSDL, test "x$HAVE_LIBSDL" = "xyes") AM_CONDITIONAL(HAVE_LIBOPENQUICKTIME, test "x$HAVE_LIBOPENQUICKTIME" = "xyes") +AM_CONDITIONAL(HAVE_LIBGSM, test "x$HAVE_LIBGSM" = "xyes") @@ -1096,6 +1112,7 @@ plugins/xmms/Makefile plugins/arts/Makefile plugins/1394/Makefile plugins/sdlsink/Makefile +plugins/gsm/Makefile plugins/dv/Makefile gstplay/Makefile dnl components/bonobo-gstmediaplay/Makefile