| 1 |
dnl Process this file with autoconf to produce a configure script.
|
| 2 |
|
| 3 |
dnl This is required at the start; the name is the name of a file
|
| 4 |
dnl it should be seeing, to verify it is in the same directory.
|
| 5 |
|
| 6 |
AC_INIT(dftables.c)
|
| 7 |
|
| 8 |
dnl Checks for programs.
|
| 9 |
AC_PROG_CC
|
| 10 |
AC_PROG_RANLIB
|
| 11 |
|
| 12 |
dnl Checks for header files.
|
| 13 |
AC_HEADER_STDC
|
| 14 |
AC_CHECK_HEADERS(limits.h)
|
| 15 |
|
| 16 |
dnl Checks for typedefs, structures, and compiler characteristics.
|
| 17 |
AC_C_CONST
|
| 18 |
AC_TYPE_SIZE_T
|
| 19 |
|
| 20 |
dnl Checks for library functions.
|
| 21 |
AC_CHECK_FUNCS(memmove strerror)
|
| 22 |
|
| 23 |
dnl Arrange to build config.h from config.in
|
| 24 |
AC_CONFIG_HEADER(config.h:config.in)
|
| 25 |
|
| 26 |
dnl Handle --enable-shared-libraries
|
| 27 |
LIBTOOL=
|
| 28 |
LIBSUFFIX=a
|
| 29 |
AC_ARG_ENABLE(shared,
|
| 30 |
[ --enable-shared build PCRE as a shared library (using libtool)],
|
| 31 |
if test "$enableval" = "yes"; then
|
| 32 |
LIBTOOL=libtool
|
| 33 |
LIBSUFFIX=la
|
| 34 |
fi
|
| 35 |
)
|
| 36 |
AC_SUBST(LIBTOOL)
|
| 37 |
AC_SUBST(LIBSUFFIX)
|
| 38 |
|
| 39 |
dnl This must be last; it determines what files are written
|
| 40 |
AC_OUTPUT(Makefile)
|