/[pcre]/code/trunk/configure.in
ViewVC logotype

Diff of /code/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by nigel, Sat Feb 24 21:39:17 2007 UTC revision 45 by nigel, Sat Feb 24 21:39:25 2007 UTC
# Line 5  dnl it should be seeing, to verify it is Line 5  dnl it should be seeing, to verify it is
5    
6  AC_INIT(dftables.c)  AC_INIT(dftables.c)
7    
8    dnl Arrange to build config.h from config.in. Note that pcre.h is
9    dnl built differently, as it is just a "substitution" file.
10    dnl Manual says this macro should come right after AC_INIT.
11    AC_CONFIG_HEADER(config.h:config.in)
12    
13    dnl Provide the current PCRE version information. Do not use numbers
14    dnl with leading zeros for the minor version, as they end up in a C
15    dnl macro, and may be treated as octal constants. Stick to single
16    dnl digits for minor numbers less than 10. There are unlikely to be
17    dnl that many releases anyway.
18    
19    PCRE_MAJOR=3
20    PCRE_MINOR=1
21    PCRE_DATE=09-Feb-2000
22    PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
23    
24    dnl Provide versioning information for libtool shared libraries that
25    dnl are built by default on Unix systems.
26    
27    PCRE_LIB_VERSION=0:0:0
28    PCRE_POSIXLIB_VERSION=0:0:0
29    
30  dnl Checks for programs.  dnl Checks for programs.
31    
32  AC_PROG_CC  AC_PROG_CC
33  AC_PROG_RANLIB  AC_PROG_RANLIB
34    
35  dnl Checks for header files.  dnl Checks for header files.
36    
37  AC_HEADER_STDC  AC_HEADER_STDC
38  AC_CHECK_HEADERS(limits.h)  AC_CHECK_HEADERS(limits.h)
39    
40  dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics.
41    
42  AC_C_CONST  AC_C_CONST
43  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
44    
45  dnl Checks for library functions.  dnl Checks for library functions.
 AC_CHECK_FUNCS(memmove strerror)  
46    
47  dnl Arrange to build config.h from config.in  AC_CHECK_FUNCS(memmove strerror)
 AC_CONFIG_HEADER(config.h:config.in)  
48    
49  dnl Handle --enable-shared-libraries  dnl Handle --enable-shared-libraries
50  LIBTOOL=  
51  LIBSUFFIX=a  LIBTOOL=libtool
52    LIBSUFFIX=la
53  AC_ARG_ENABLE(shared,  AC_ARG_ENABLE(shared,
54  [  --enable-shared         build PCRE as a shared library (using libtool)],  [  --disable-shared        build PCRE as a static library],
55  if test "$enableval" = "yes"; then  if test "$enableval" = "no"; then
56    LIBTOOL=libtool    LIBTOOL=
57    LIBSUFFIX=la    LIBSUFFIX=a
58  fi  fi
59  )  )
60    
61    dnl "Export" these variables
62    
63    AC_SUBST(HAVE_MEMMOVE)
64    AC_SUBST(HAVE_STRERROR)
65  AC_SUBST(LIBTOOL)  AC_SUBST(LIBTOOL)
66  AC_SUBST(LIBSUFFIX)  AC_SUBST(LIBSUFFIX)
67    AC_SUBST(PCRE_MAJOR)
68    AC_SUBST(PCRE_MINOR)
69    AC_SUBST(PCRE_DATE)
70    AC_SUBST(PCRE_VERSION)
71    AC_SUBST(PCRE_LIB_VERSION)
72    AC_SUBST(PCRE_POSIXLIB_VERSION)
73    
74  dnl This must be last; it determines what files are written  dnl This must be last; it determines what files are written
75  AC_OUTPUT(Makefile)  AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config,[chmod a+x pcre-config])

Legend:
Removed from v.41  
changed lines
  Added in v.45

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12