From 74263a25ad53f8f78bec09a0a59742a4bedcaf0d Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Mon, 7 Jan 2002 10:28:29 +0000 Subject: [PATCH] fix for gsm Original commit message from CVS: fix for gsm --- acconfig.h | 2 ++ configure.ac | 6 ++++++ ext/gsm/gstgsmdec.h | 4 ++++ ext/gsm/gstgsmenc.h | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/acconfig.h b/acconfig.h index 0b2f1651e6..49c9678f70 100644 --- a/acconfig.h +++ b/acconfig.h @@ -51,6 +51,8 @@ #undef HAVE_LIBSDL #undef HAVE_LIBOPENQUICKTIME +#undef GSM_HEADER_IN_SUBDIR + #undef HAVE_ATOMIC_H #undef GST_DEBUG_ENABLED diff --git a/configure.ac b/configure.ac index 830727dbf4..3028b419d6 100644 --- a/configure.ac +++ b/configure.ac @@ -447,6 +447,12 @@ dnl *** gsm *** translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true) GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [ GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm") + if test $HAVE_GSM != "yes"; then + GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm") + if test $HAVE_GSM = "yes"; then + AC_DEFINE(GSM_HEADER_IN_SUBDIR) + fi + fi AC_SUBST(GSM_LIBS) ]) diff --git a/ext/gsm/gstgsmdec.h b/ext/gsm/gstgsmdec.h index d46c5cd14b..a08e857eb5 100644 --- a/ext/gsm/gstgsmdec.h +++ b/ext/gsm/gstgsmdec.h @@ -25,7 +25,11 @@ #include #include +#ifdef GSM_HEADER_IN_SUBDIR +#include +#else #include +#endif #ifdef __cplusplus extern "C" { diff --git a/ext/gsm/gstgsmenc.h b/ext/gsm/gstgsmenc.h index dcaa85664a..a56099e189 100644 --- a/ext/gsm/gstgsmenc.h +++ b/ext/gsm/gstgsmenc.h @@ -25,7 +25,11 @@ #include #include +#ifdef GSM_HEADER_IN_SUBDIR +#include +#else #include +#endif #ifdef __cplusplus extern "C" {