configure.ac 826 Bytes
Newer Older
1 2 3 4 5 6
m4_define([VLCPP_MAJOR], [0])
m4_define([VLCPP_MINOR], [1])
m4_define([VLCPP_MICRO], [0])

AC_COPYRIGHT([Copyright 2014-2016 VideoLAN - VideoLabs])

Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
7
AC_INIT([libvlcpp], [VLCPP_MAJOR.VLCPP_MINOR.VLCPP_MICRO])
8 9 10 11 12 13 14 15 16 17

AM_INIT_AUTOMAKE([foreign subdir-objects])
m4_ifdef([AM_SILENT_RULES], [
  AM_SILENT_RULES([yes])
])

AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11([noext])

18 19 20
AC_ARG_ENABLE(examples, AC_HELP_STRING([--enable-examples], [build examples programs]))
AM_CONDITIONAL([HAVE_EXAMPLES], [test "${enable_examples}" = "yes"])
AS_IF([test "${enable_examples}" = "yes"], [PKG_CHECK_MODULES(vlc, libvlc)])
21

22 23 24
AC_ARG_ENABLE(werror, AC_HELP_STRING([--enable-werror], [build examples with -Werror]))
AM_CONDITIONAL([HAVE_WERROR], [test "${enable_werror}" = "yes"])

25 26 27 28 29 30
AC_CONFIG_FILES([
Makefile
libvlcpp.pc
])

AC_OUTPUT