File opal-system-libgsm.patch of Package opal
Index: opal-3.6.8/opal.m4
===================================================================
--- opal-3.6.8.orig/opal.m4
+++ opal-3.6.8/opal.m4
@@ -861,9 +861,11 @@ AC_DEFUN([OPAL_FIND_GSM],
AC_CHECK_LIB(gsm, gsm_create, opal_gsm=yes)
if test "x$opal_gsm" = "xyes"; then
AC_MSG_CHECKING(if system GSM library has WAV49)
+ old_CFLAGS=$CFLAGS
old_LIBS=$LIBS
opal_gsm=no
+ CFLAGS="$CFLAGS -I${prefix}/include/gsm"
LIBS="$LIBS -lgsm"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
@@ -874,10 +876,11 @@ AC_DEFUN([OPAL_FIND_GSM],
return (gsm_option(handle, GSM_OPT_WAV49, &option) == -1) ? 1 : 0;
]])], opal_gsm=yes)
LIBS=$old_LIBS
+ CFLAGS=$old_CFLAGS
AC_MSG_RESULT($opal_gsm)
if test "x${opal_gsm}" = "xyes" ; then
- GSM_CLFAGS=""
+ GSM_CFLAGS="-I${prefix}/include/gsm"
GSM_LIBS="-lgsm"
fi
OPAL_MSG_CHECK([System GSM], [$opal_gsm])
Index: opal-3.6.8/plugins/configure
===================================================================
--- opal-3.6.8.orig/plugins/configure
+++ opal-3.6.8/plugins/configure
@@ -5672,9 +5672,11 @@ fi
if test "x$opal_gsm" = "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system GSM library has WAV49" >&5
$as_echo_n "checking if system GSM library has WAV49... " >&6; }
+ old_CFLAGS=$CFLAGS
old_LIBS=$LIBS
opal_gsm=no
+ CFLAGS="$CFLAGS -I${prefix}/include/gsm"
LIBS="$LIBS -lgsm"
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
@@ -5707,11 +5709,12 @@ rm -f core *.core core.conftest.* gmon.o
fi
LIBS=$old_LIBS
+ CFLAGS=$old_CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_gsm" >&5
$as_echo "$opal_gsm" >&6; }
if test "x${opal_gsm}" = "xyes" ; then
- GSM_CLFAGS=""
+ GSM_CFLAGS="-I${prefix}/include/gsm"
GSM_LIBS="-lgsm"
fi
@@ -5779,9 +5782,11 @@ fi
if test "x$opal_gsm" = "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system GSM library has WAV49" >&5
$as_echo_n "checking if system GSM library has WAV49... " >&6; }
+ old_CFLAGS=$CFLAGS
old_LIBS=$LIBS
opal_gsm=no
+ CFLAGS="$CFLAGS -I${prefix}/include/gsm"
LIBS="$LIBS -lgsm"
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
@@ -5814,11 +5819,12 @@ rm -f core *.core core.conftest.* gmon.o
fi
LIBS=$old_LIBS
+ CFLAGS=$old_CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_gsm" >&5
$as_echo "$opal_gsm" >&6; }
if test "x${opal_gsm}" = "xyes" ; then
- GSM_CLFAGS=""
+ GSM_CFLAGS="-I${prefix}/include/gsm"
GSM_LIBS="-lgsm"
fi