Commits

Pierre Joye committed d11c61b

detect vpx library

Comments (0)

Files changed (1)

   ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
 fi
 
+
+
+dnl check for libvpx by default
+AC_ARG_WITH(vpx,dnl
+[  --with-vpx=DIR         where to find the vpx library],
+  [if test -d "$withval"; then
+     LDFLAGS="$LDFLAGS -L$withval/lib"
+     CPPFLAGS="$CPPFLAGS -I$withval/include"
+   fi],
+  withval=yes)
+
+if test "$withval" != no; then
+  AC_CHECK_LIB(vpx,vpx_codec_destroy,
+    [LIBS="-lvpx $LIBS" 
+     FEATURES="GD_VPX $FEATURES"
+     AC_DEFINE(HAVE_LIBVPX, 1, [ Define if you have the vpx library. ])])
+else
+  ac_cv_lib_vpx_vpx_codec_destroy=no
+fi
+
 ACX_PTHREAD()
 
 dnl report configuration
 
    Support for PNG library:          $ac_cv_lib_png_png_create_read_struct
    Support for JPEG library:         $ac_cv_lib_jpeg_jpeg_set_defaults
+   Support for VPX library:          $ac_cv_lib_vpx_vpx_codec_destroy
    Support for Freetype 2.x library: $ac_cv_lib_freetype_FT_Init_FreeType
    Support for Fontconfig library:   $ac_cv_lib_fontconfig_FcInit
    Support for Xpm library:          $ac_cv_lib_Xpm_XpmReadFileToXpmImage