* There might not be a static library (Fedora)
* When cross compiling it will certainly not be in /usr/include
* The code should use AC_CHECK_HEADERS... but that is for another day
GSM_SOURCE += gsm_audio.c gsm.cpp
-GSM_LIB += /usr/lib/libgsm.a
+GSM_LIB += -lgsm
#gsm_audio.po: gsm_audio.c gsm_audio.h
# $(CC) -D_GNU_SOURCE -fPIC -c gsm_audio.c -o gsm_audio.po
AM_CONDITIONAL(ENABLE_GSM, test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes")
AS_IF([test "x$with_gsm_bs" == xyes -o "x$with_gsm_ms" == xyes],
- [AC_MSG_CHECKING(/usr/include/gsm/gsm.h)
- if test -e /usr/include/gsm/gsm.h; then
- AC_MSG_RESULT(yes)
- else
- AC_MSG_FAILURE([You have enabled GSM, but /usr/include/gsm/gsm.h not found! Please install the lossy GSM codec. Be sure to install it in /usr/ and not in /usr/local/. You will also find a copy on http://www.linux-call-router.de.])
- fi
+ AC_MSG_RESULT(yes...why not use ac_check_headers...)
])
# check for ss5
\*****************************************************************************/
extern "C" {
-#include "/usr/include/gsm/gsm.h"
+#include <gsm/gsm.h>
/* create gsm instance */