/
configure.in
executable file
·52 lines (42 loc) · 996 Bytes
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
m4_define([MAJOR], 0)
m4_define([MINOR], 1)
m4_define([MICRO], 13)
dnl Process this file with autoconf to produce a configure script.
AC_INIT([xbmc-addon-vuplus], [MAJOR.MINOR.MICRO], [Joerg Dembski])
AC_CONFIG_AUX_DIR(autotools)
AC_PREFIX_DEFAULT(/usr/lib/xbmc)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
dnl Setup for automake
AM_INIT_AUTOMAKE
dnl Check for tools
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_PROG_MAKE_SET
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
AC_EXEEXT
dnl Check for curl
AC_CHECK_HEADER([curl/curl.h],, AC_MSG_ERROR("Could not find curl library!"))
AC_SUBST(VERSIONEXT)
case $host in
arm*-*-linux-gnu*)
AC_SUBST(ARCH_DEFINES, "-D_ARMEL")
;;
powerpc-*-linux-gnu*)
AC_SUBST(ARCH_DEFINES, "-D_POWERPC")
;;
powerpc64-*-linux-gnu*)
AC_SUBST(ARCH_DEFINES, "-D_POWERPC64")
;;
esac
# Finally create all the generated files
AC_OUTPUT([
Makefile
addons/Makefile
addons/pvr.vuplus/Makefile
addons/pvr.vuplus/addon.xml
src/Makefile
src/vuplus/Makefile
])