summaryrefslogtreecommitdiffstats
path: root/m4/esd.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/esd.m4')
-rw-r--r--m4/esd.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/esd.m4 b/m4/esd.m4
index c6286c07..1812fd02 100644
--- a/m4/esd.m4
+++ b/m4/esd.m4
@@ -46,6 +46,8 @@ AC_ARG_ENABLE(esdtest,
if test "$ESD_CONFIG" = "no" ; then
no_esd=yes
else
+ AC_LANG_SAVE
+ AC_LANG_C
ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
@@ -122,6 +124,7 @@ int main ()
],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
+ AC_LANG_RESTORE
fi
fi
if test "x$no_esd" = x ; then
@@ -141,6 +144,8 @@ int main ()
echo "*** Could not run ESD test program, checking why..."
CFLAGS="$CFLAGS $ESD_CFLAGS"
LIBS="$LIBS $ESD_LIBS"
+ AC_LANG_SAVE
+ AC_LANG_C
AC_TRY_LINK([
#include <stdio.h>
#include <esd.h>
@@ -160,6 +165,7 @@ int main ()
echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
+ AC_LANG_RESTORE
fi
fi
ESD_CFLAGS=""