forked from HOST-Oman/libraqm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
94 lines (76 loc) · 2.26 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
dnl# configure.ac -*- Autoconf -*-
dnl# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([Raqm],
[0.5.1],
[https://github.com/HOST-Oman/libraqm/issues],
[raqm],
[https://github.com/HOST-Oman/libraqm/])dnl
AC_CONFIG_AUX_DIR([build-aux])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([foreign color-tests -Wall -Wno-portability])
AM_MAINTAINER_MODE
AM_SILENT_RULES([yes])dnl
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])dnl
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_CPP
AC_PROG_CXX
# Enable compiler warnings
AS_IF([test "x${IGNORE_WERROR}" = "x1"],[
export enable_Werror="no"
])
AX_COMPILER_FLAGS
LT_INIT
# Libtool version
m4_define([_triplet], m4_split(AC_PACKAGE_VERSION, [[.]]))
m4_define([_major], m4_argn(1, _triplet))
m4_define([_minor], m4_argn(2, _triplet))
m4_define([_micro], m4_argn(3, _triplet))
m4_define([_age], m4_eval(_major*10000 + _minor*100))
m4_define([_current], m4_eval(_major + _age))
RAQM_LIBTOOL_VERSION=_current:_micro:_age
AC_SUBST([RAQM_LIBTOOL_VERSION])dnl
PKG_PROG_PKG_CONFIG([0.20])
AX_PKG_CHECK_MODULES([FREETYPE],[freetype2 >= 12.0.6],[])
AX_PKG_CHECK_MODULES([HARFBUZZ],[],[harfbuzz])
AX_PKG_CHECK_MODULES([FRIBIDI],[],[fribidi])dnl
_save_libs="${LIBS}"
_save_cflags="${CFLAGS}"
LIBS="${LIBS} ${HARFBUZZ_LIBS} ${FRIBIDI_LIBS}"
CFLAGS="${CFLAGS} ${HARFBUZZ_CFLAGS} ${FRIBIDI_CFLAGS}"
AC_CHECK_FUNCS([hb_ft_font_create_referenced hb_ft_font_set_load_flags \
hb_buffer_set_invisible_glyph])
AC_CHECK_DECLS([HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES],[],[],[[
#include <hb.h>
]])dnl
LIBS="${_save_libs}"
CFLAGS="${_save_cflags}"
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
case ${build_os} in
mingw*)
AX_APPEND_FLAG([-D__USE_MINGW_ANSI_STDIO=1])
;;
esac
# Checks for header files.
AC_HEADER_STDBOOL dnl# also "_CHECK"s it
AC_CHECK_HEADERS([locale.h])dnl
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset setlocale strtol])dnl
# Output.
AC_CONFIG_FILES([
Makefile
raqm.pc
src/Makefile
tests/Makefile
docs/Makefile
docs/version.xml
])dnl
AC_OUTPUT