File: configure.ac

package info (click to toggle)
sdcv 0.3.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,644 kB
  • ctags: 1,207
  • sloc: sh: 9,235; ansic: 7,803; cpp: 2,613; makefile: 485; yacc: 316; sed: 16
file content (59 lines) | stat: -rw-r--r-- 1,387 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)

AC_INIT(sdcv, 0.3.4, dushistov@mail.ru)
AC_CONFIG_SRCDIR(src/sdcv.cpp)
AM_INIT_AUTOMAKE(sdcv, 0.3.4)

AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_LANG([C++])
AC_PROG_CXXCPP
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

dnl ================================================================
dnl Gettext stuff.
dnl ================================================================
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION(0.12.1)
GETTEXT_PACKAGE=sdcv
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])

AC_FUNC_MMAP
AC_CHECK_FUNCS([isascii])
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([mkdir])
AC_CHECK_FUNCS([nl_langinfo])
AC_CHECK_FUNCS([strchr])
AC_CHECK_FUNCS([strcspn])
AC_CHECK_FUNCS([strstr])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([langinfo.h])
AC_CHECK_HEADERS([libintl.h])
AC_CHECK_HEADERS([stdio_ext.h])
AC_C_VOLATILE
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STAT
AC_HEADER_STDBOOL
AC_PROG_YACC


PKG_CHECK_MODULES(SDCV, glib-2.0 >= 2.4.5)
AC_CHECK_LIB(z,zlibVersion,SDCV_LIBS="$SDCV_LIBS -lz",[AC_MSG_ERROR([zlib not found])])

PKG_CHECK_MODULES(LIB_STARDICT, glib-2.0 >= 2.4.5)
AC_SUBST(LIB_STARDICT_CFLAGS)


AC_OUTPUT([Makefile doc/Makefile lib/Makefile src/Makefile po/Makefile.in intl/Makefile ])

echo "

Type \"make\" to compile.

"