linking XMLCCWRAP with gcc might fail, so switch language
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 22 Sep 2008 12:39:44 +0000 (12:39 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 22 Sep 2008 12:39:44 +0000 (12:39 +0000)
configure.ac

index 6a71b114713bb78f491acf965eef847b8aa9def6..fd3dc63c0fa3a898f9d61b0026afbd8a0e2cdbdc 100644 (file)
@@ -52,7 +52,10 @@ TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
 
 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
 
 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
+AC_LANG_RESTORE
 
 if test "$withsdl" = "yes" ; then
        _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)
 
 if test "$withsdl" = "yes" ; then
        _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)