-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
63 lines (47 loc) · 1.43 KB
/
configure.ac
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
53
54
55
56
57
58
59
60
61
62
63
dnl --------------------------------
dnl Initialization macros.
dnl --------------------------------
AC_INIT([src/pdfcube.cc], [0.0.5])
AM_INIT_AUTOMAKE([foreign])
dnl -----------------------------------------------
dnl Package name and version number
dnl -----------------------------------------------
AC_CONFIG_MACRO_DIR([m4])
dnl -----------------------------------------------
dnl Checks for programs.
dnl -----------------------------------------------
AC_PROG_CC
AC_PROG_CXX
AM_SANITY_CHECK
dnl -----------------------------------------------
dnl Checks for libraries.
dnl -----------------------------------------------
AC_LANG_CPLUSPLUS
PKG_CHECK_MODULES(glib, glib-2.0 >= 2.0.0)
AC_SUBST(glib_CFLAGS)
AC_SUBST(glib_LIBS)
PKG_CHECK_MODULES(gtk, gtk+-2.0 >= 2.4.0)
AC_SUBST(gtk_CFLAGS)
AC_SUBST(gtk_LIBS)
PKG_CHECK_MODULES(gtkglext, gtkglext-1.0 >= 1.0.0)
AC_SUBST(gtkglext_CFLAGS)
AC_SUBST(gtkglext_LIBS)
PKG_CHECK_MODULES(poppler_glib, poppler-glib >= 0.4.5)
AC_SUBST(poppler_glib_CFLAGS)
AC_SUBST(poppler_glib_LIBS)
PKG_CHECK_MODULES(cairo, cairo >= 0.25)
AC_SUBST(cairo_CFLAGS)
AC_SUBST(cairo_LIBS)
AC_CHECK_HEADERS(GL/gl.h)
AC_CHECK_HEADERS(GL/glu.h)
AC_CHECK_HEADERS(GL/glx.h)
AX_BOOST_BASE([1.33.1])
AX_BOOST_PROGRAM_OPTIONS()
dnl -----------------------------------------------
dnl Generates Makefiles.
dnl -----------------------------------------------
AC_OUTPUT(Makefile \
src/Makefile \
m4/Makefile \
man/Makefile
)