-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathconfigure.ac
70 lines (57 loc) · 2.07 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
64
65
66
67
68
69
70
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.69)
AC_INIT([PythonMagick],[0.9.19],[],[PythonMagick])
AC_CONFIG_SRCDIR([pythonmagick_src/_PathLinetoAbs.cpp])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_LIBOBJ_DIR([pythonmagick_src])
AC_CONFIG_HEADERS([config/config.h])
AC_CONFIG_FILES([Makefile
helpers_src/Makefile
pythonmagick_src/Makefile])
# Ensure that make can run correctly
AM_SANITY_CHECK
AM_INIT_AUTOMAKE([1.12 color-tests foreign parallel-tests silent-rules subdir-objects dist-bzip2 dist-lzip dist-xz dist-zip])
# Enable support for silent build rules
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
# Add configure option --enable-maintainer-mode which enables dependency
# checking and generation useful to package maintainers. This is made an
# option to avoid confusing end users.
AC_ARG_WITH([python-min-version],
[AS_HELP_STRING([--with-python-min-version=version : python version to use])],
[PYTHON_MIN_VERSION="$withval"],
[PYTHON_MIN_VERSION="2.4"]) AM_MAINTAINER_MODE
AX_COMPARE_VERSION($PYTHON_MIN_VERSION, lt, 2.4,AC_MSG_ERROR([Python version not supported]))
AC_MSG_CHECKING([for python with minimal version])
AC_MSG_RESULT([$PYTHON_MIN_VERSION])
AM_PATH_PYTHON([$PYTHON_MIN_VERSION])
AX_PYTHON_DEVEL([>= '$PYTHON_MIN_VERSION'])
# Checks for libraries.
AX_BOOST_BASE
AX_BOOST_PYTHON
# Checks for libraries.
AX_BOOST_BASE
AX_BOOST_PYTHON
PKG_CHECK_MODULES( MAGICKCORE, [MagickCore >= 6.8.6])
PKG_CHECK_MODULES( MAGICKPP, [Magick++ >= 6.8.6])
AC_SUBST(MAGICKPP_CFLAGS)
AC_SUBST(MAGICKPP_LIBS)
AC_SUBST(MAGICKCORE_CFLAGS)
AC_SUBST(MAGICKCORE_LIBS)
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T
CXXFLAGS="$CXXFLAGS -DBOOST_PYTHON_DYNAMIC_LIB $PYTHON_CPPFLAGS"
# Checks for library functions.
AC_OUTPUT