/[pcre]/code/tags/pcre-3.9/configure.in
ViewVC logotype

Diff of /code/tags/pcre-3.9/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 57 by nigel, Sat Feb 24 21:39:50 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=7
21    PCRE_DATE=29-Oct-2001
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:1: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_INSTALL
34  AC_PROG_RANLIB  AC_PROG_RANLIB
35    
36  dnl Checks for header files.  dnl Checks for header files.
37    
38  AC_HEADER_STDC  AC_HEADER_STDC
39  AC_CHECK_HEADERS(limits.h)  AC_CHECK_HEADERS(limits.h)
40    
41  dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics.
42    
43  AC_C_CONST  AC_C_CONST
44  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
45    
46  dnl Checks for library functions.  dnl Checks for library functions.
 AC_CHECK_FUNCS(memmove strerror)  
47    
48  dnl Arrange to build config.h from config.in  AC_CHECK_FUNCS(bcopy memmove strerror)
49  AC_CONFIG_HEADER(config.h:config.in)  
50    dnl Handle --enable-utf8
51    
52    AC_ARG_ENABLE(utf8,
53    [  --enable-utf8           enable UTF8 support (incomplete)],
54    if test "$enableval" = "yes"; then
55      UTF8=-DSUPPORT_UTF8
56    fi
57    )
58    
59    dnl Handle --enable-newline-is-cr
60    
61    AC_ARG_ENABLE(newline-is-cr,
62    [  --enable-newline-is-cr  use CR as the newline character],
63    if test "$enableval" = "yes"; then
64      NEWLINE=-DNEWLINE=13
65    fi
66    )
67    
68    dnl Handle --enable-newline-is-lf
69    
70  dnl Handle --enable-shared-libraries  AC_ARG_ENABLE(newline-is-lf,
71  LIBTOOL=  [  --enable-newline-is-lf  use LF as the newline character],
 LIBSUFFIX=a  
 AC_ARG_ENABLE(shared,  
 [  --enable-shared         build PCRE as a shared library (using libtool)],  
72  if test "$enableval" = "yes"; then  if test "$enableval" = "yes"; then
73    LIBTOOL=libtool    NEWLINE=-DNEWLINE=10
   LIBSUFFIX=la  
74  fi  fi
75  )  )
 AC_SUBST(LIBTOOL)  
 AC_SUBST(LIBSUFFIX)  
76    
77  dnl This must be last; it determines what files are written  dnl Now arrange to build libtool
78  AC_OUTPUT(Makefile)  
79    AC_PROG_LIBTOOL
80    
81    dnl "Export" these variables
82    
83    AC_SUBST(HAVE_MEMMOVE)
84    AC_SUBST(HAVE_STRERROR)
85    AC_SUBST(NEWLINE)
86    AC_SUBST(UTF8)
87    AC_SUBST(PCRE_MAJOR)
88    AC_SUBST(PCRE_MINOR)
89    AC_SUBST(PCRE_DATE)
90    AC_SUBST(PCRE_VERSION)
91    AC_SUBST(PCRE_LIB_VERSION)
92    AC_SUBST(PCRE_POSIXLIB_VERSION)
93    
94    dnl This must be last; it determines what files are written as well as config.h
95    AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])

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

  ViewVC Help
Powered by ViewVC 1.1.5