blob: 94b0c04a3f6dc923719bbd3e832783fe58271465 (
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
43
44
45
|
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=`echo "00"$[]2 | sed 's/.*(...)$/$[]1/'`
p=$[]3
if test "$p" = ""
then p="0"
fi
p=`echo "00"$p | sed 's/.*(...)$/$[]1/'`
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])
])
|