]> git.sesse.net Git - vlc/blobdiff - configure.ac
GME: new plugin based on the official C API
[vlc] / configure.ac
index 42cd808beb8d80f66f74a0b3f8787d6fd17850a4..13dcbc9b1a62d11e08de63a47329adbb4306afea 100644 (file)
@@ -2318,6 +2318,23 @@ AC_CHECK_FUNCS(inet_ntop,[
   AC_DEFINE(HAVE_INET_NTOP, 1, [Define to 1 if you have inet_ntop().])])
 
 
+dnl
+dnl  GME demux plugin
+dnl
+AC_ARG_ENABLE(gme,
+  [  --enable-gme            Game Music Emu support (default auto)])
+AS_IF([test "${enable_gme}" != "no"], [
+  AC_CHECK_HEADER([gme/gme.h], [
+    VLC_ADD_LIBS([gme], [-lgme])
+    VLC_ADD_PLUGIN([gme])
+  ], [
+    AS_IF([test "x${enable_gme}" != "x"], [
+      AC_MSG_ERROR([GME cannot be found. Please install the development files.])
+    ])
+  ])
+])
+
+
 dnl
 dnl  ogg demux plugin
 dnl