summaryrefslogtreecommitdiffstats
path: root/unicode/courier-unicode-version.m4.in
blob: d40b5b7959886115e0d948940b4915949496bfdf (plain)
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
dnl Checks for the correct version of the courier-unicode library.

AC_DEFUN([AX_COURIER_UNICODE_VERSION],[

AC_MSG_CHECKING(courier-unicode library and version)

vers="$1"

if test "$vers" = ""
then
	vers=@VERSION@
fi

set -- `echo "$vers" | tr '.' ' '`

v=$[]1
r=$[]2
p=$[]3

if test "$p" = ""
   then p="0"
fi

AC_TRY_COMPILE([
#include <courier-unicode.h>
#ifndef COURIER_UNICODE_VERSION
#define COURIER_UNICODE_VERSION 0
#endif

#if COURIER_UNICODE_VERSION < ]$v$r$p[
#error "courier-unicode ]$vers[ library is required"
#endif

],[],[],
AC_MSG_ERROR([
ERROR: The Courier Unicode Library ]$vers[ header files appear not to be installed.
You may need to upgrade the library or install a separate development
subpackage in addition to the main package.])
)

AC_MSG_RESULT([ok])
])