From 810416dab92eeb54a9b01221ee9ff262305b13b5 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 1 May 2010 22:05:41 +0000 Subject: Fixed #1064: - Removed orphaned third_party/gsm/inc/gsm.h.orig file - Added support for external GSM header in /usr/include/gsm.h (rather than ) Thanks Christopher Zimmermann for the fixes git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3158 74dad513-b988-da41-8d7b-12977e46ad98 --- aconfigure.ac | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 76d73fb3..185ee0de 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -408,17 +408,30 @@ AC_ARG_WITH(external-gsm, [Use external GSM codec library, not the one in "third_party" directory. When this option is set, make sure that the GSM include/lib files are accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), [ if test "x$with_external_gsm" != "xno"; then - # Test GSM library installation - AC_MSG_CHECKING([if external GSM devkit is installed]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include - ]], - [gsm_create(); ]) - ], - [AC_MSG_RESULT(yes!!) - AC_DEFINE(PJMEDIA_EXTERNAL_GSM_CODEC, 1) - ac_external_gsm="1" - ], - [AC_MSG_ERROR([Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths])]) + # Test GSM library installation + AC_MSG_CHECKING([if external GSM devkit is installed as gsm/gsm.h]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], [gsm_create(); ]) ], + [AC_MSG_RESULT(yes!!) + AC_DEFINE(PJMEDIA_EXTERNAL_GSM_CODEC, 1) + AC_DEFINE(PJMEDIA_EXTERNAL_GSM_GSM_H, 1) + ac_external_gsm="1" + ], + [ + AC_MSG_RESULT(no) + AC_MSG_CHECKING([if external GSM devkit is installed as gsm.h]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], [gsm_create(); ]) ], + [AC_MSG_RESULT(yes!!) + AC_DEFINE(PJMEDIA_EXTERNAL_GSM_CODEC, 1) + AC_DEFINE(PJMEDIA_EXTERNAL_GSM_H, 1) + ac_external_gsm="1" + ], + [AC_MSG_ERROR([Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths]) + ] + ) + ] + ) fi ] ) -- cgit v1.2.3