forked from Joungkyun/libchardet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
81 lines (67 loc) · 1.7 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
# Process this file with autoconf to produce a configure script.
# Configure template for chardet library
#
#
AC_PREREQ(2.59)
AC_INIT([libchardet], [1.0.6], [https://github.com/Joungkyun/libchardet/issues])
AC_CONFIG_AUX_DIR([tools])
AM_INIT_AUTOMAKE([1.12.0 -Wall -Werror -Wno-override foreign no-dependencies subdir-objects])
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([src/nsUniversalDetector.h])
AC_CONFIG_HEADER([chardet-config.h])
AC_PREFIX_DEFAULT([/usr/local])
AC_SUBST(SONAME_INFO)
AC_SUBST(SONAME_VERSION)
AC_SUBST(SONAME_MAJOR)
AC_SUBST(SONAME_MINOR)
AC_SUBST(SONAME_REVISION)
AC_SUBST(PROG)
PROG=`echo $PACKAGE_NAME | sed 's/^lib//g'`
SONAME_MAJOR=1
SONAME_MINOR=0
SONAME_REVISION=0
SONAME_VERSION=$SONAME_MAJOR.$SONAME_MINOR.$SONAME_REVISION
SONAME_VALUE=$(($SONAME_MAJOR + $SONAME_MINOR))
SONAME_INFO="$SONAME_VALUE:$SONAME_REVISION:$SONAME_MINOR"
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) dnl Workaround for Automake 1.11
AX_GL_VISIBILITY
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_AWK
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_PATH_PROG(PERL, perl)
if test ! -f "$ac_cv_path_PERL"; then
AC_MSG_ERROR(Can't not found perl)
fi
AC_PATH_PROG(DATE, date)
if test ! -f "$ac_cv_path_DATE"; then
AC_MSG_ERROR(Can't not found date)
fi
AC_SUBST(PACKAGE_DATE)
PACKAGE_DATE=$(LANG= $DATE +"%a %b %d %Y")
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_CONFIG_FILES([
Makefile
src/Makefile
man/Makefile
test/Makefile
chardet-config
chardet.pc
libchardet.spec
])
AC_OUTPUT