xref: /PHP-7.2/ext/mbstring/libmbfl/configure.ac (revision 2fe9208e)
1# Process this file with autoconf to produce a configure script.
2AC_INIT(mbfl/mbfilter.c)
3AM_INIT_AUTOMAKE(libmbfl, 1.1.0)
4AC_CONFIG_SRCDIR(mbfl/mbfilter.c)
5AM_CONFIG_HEADER(config.h)
6
7# SHLIB isn't a version number but the API reference
8# Read http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
9SHLIB_VERSION="1:1:0"
10AC_SUBST(SHLIB_VERSION)
11
12# Checks for programs.
13AC_PROG_CC
14AC_PROG_CXX
15AC_PROG_LIBTOOL
16AC_PROG_RANLIB
17
18# Checks for libraries.
19
20# Checks for header files.
21AC_HEADER_STDC
22AC_CHECK_HEADERS([stdlib.h stddef.h assert.h])
23
24# Checks for typedefs, structures, and compiler characteristics.
25AC_C_CONST
26AC_TYPE_SIZE_T
27
28# Checks for library functions.
29AC_FUNC_MALLOC
30AC_FUNC_REALLOC
31AC_CHECK_FUNCS([strcasecmp strchr])
32
33AC_CHECK_PROGS([FETCH_VIA_FTP], [wget curl ncftpget])
34
35if test "$FETCH_VIA_FTP" = "curl"; then
36  FETCH_VIA_FTP="curl -O"
37fi
38
39AC_CONFIG_FILES([
40  Makefile
41  mbfl/Makefile
42  filters/Makefile
43  nls/Makefile
44  tests/Makefile
45  tests/conv_encoding.tests/Makefile
46  tests/conv_kana.tests/Makefile
47  tests/strwidth.tests/Makefile
48  tests/strcut.tests/Makefile])
49AC_OUTPUT
50