]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - configure
curses: add option to specify VGA font encoding
[thirdparty/qemu.git] / configure
index e1c1ed6c72b3d4bef4f957226e1677607c53ed7c..89752c3e49aa30d57717a712d34f59b07888666a 100755 (executable)
--- a/configure
+++ b/configure
@@ -3496,14 +3496,17 @@ if test "$curses" != "no" ; then
 #include <locale.h>
 #include <curses.h>
 #include <wchar.h>
+#include <langinfo.h>
 int main(void) {
+  const char *codeset;
   wchar_t wch = L'w';
   setlocale(LC_ALL, "");
   resize_term(0, 0);
   addwstr(L"wide chars\n");
   addnwstr(&wch, 1);
   add_wch(WACS_DEGREE);
-  return 0;
+  codeset = nl_langinfo(CODESET);
+  return codeset != 0;
 }
 EOF
   IFS=: