| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. | 
| Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 2 | AC_INIT(entities.c) | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 3 | AM_CONFIG_HEADER(config.h) | 
| Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 4 | AC_CANONICAL_HOST | 
| Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 5 |  | 
| Daniel Veillard | cf46199 | 2000-03-14 18:30:20 +0000 | [diff] [blame] | 6 | LIBXML_MAJOR_VERSION=2 | 
| Daniel Veillard | 4fc5281 | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 7 | LIBXML_MINOR_VERSION=6 | 
| Daniel Veillard | b331fff | 2004-08-22 14:21:57 +0000 | [diff] [blame] | 8 | LIBXML_MICRO_VERSION=12 | 
| Daniel Veillard | 3e35f8e | 2003-10-21 00:05:38 +0000 | [diff] [blame] | 9 | LIBXML_MICRO_VERSION_SUFFIX= | 
| Daniel Veillard | 4fc5281 | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 10 | LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX | 
| Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 11 | LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION | 
|  | 12 |  | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 13 | LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION` | 
|  | 14 |  | 
| William M. Brack | f402549 | 2004-08-18 21:08:46 +0000 | [diff] [blame] | 15 | if test -f CVS/Entries; then | 
| Daniel Veillard | dab93ea | 2004-08-20 16:47:10 +0000 | [diff] [blame] | 16 | extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%` | 
|  | 17 | echo extra=$extra | 
|  | 18 | if test "$extra" != "" | 
|  | 19 | then | 
|  | 20 | LIBXML_VERSION_EXTRA="-CVS$extra" | 
|  | 21 | fi | 
| William M. Brack | f402549 | 2004-08-18 21:08:46 +0000 | [diff] [blame] | 22 | fi | 
| Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 23 | AC_SUBST(LIBXML_MAJOR_VERSION) | 
|  | 24 | AC_SUBST(LIBXML_MINOR_VERSION) | 
|  | 25 | AC_SUBST(LIBXML_MICRO_VERSION) | 
|  | 26 | AC_SUBST(LIBXML_VERSION) | 
|  | 27 | AC_SUBST(LIBXML_VERSION_INFO) | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 28 | AC_SUBST(LIBXML_VERSION_NUMBER) | 
| William M. Brack | f402549 | 2004-08-18 21:08:46 +0000 | [diff] [blame] | 29 | AC_SUBST(LIBXML_VERSION_EXTRA) | 
| Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 30 |  | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 31 | VERSION=${LIBXML_VERSION} | 
| Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 32 |  | 
| Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 33 | AM_INIT_AUTOMAKE(libxml2, $VERSION) | 
| Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 34 |  | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 35 | dnl Checks for programs. | 
|  | 36 | AC_PROG_CC | 
|  | 37 | AC_PROG_INSTALL | 
| Sebastian Wilhelmi | a44c8a4 | 1998-08-07 08:38:58 +0000 | [diff] [blame] | 38 | AC_PROG_CPP | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 39 | AC_PATH_PROG(RM, rm, /bin/rm) | 
|  | 40 | AC_PATH_PROG(MV, mv, /bin/mv) | 
|  | 41 | AC_PATH_PROG(TAR, tar, /bin/tar) | 
| William M. Brack | 1826d0a | 2004-07-21 09:03:57 +0000 | [diff] [blame] | 42 | AC_PATH_PROG(PERL, perl, /usr/bin/perl) | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 43 |  | 
| Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 44 | dnl Make sure we have an ANSI compiler | 
|  | 45 | AM_C_PROTOTYPES | 
|  | 46 | test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant) | 
|  | 47 |  | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 48 | AC_LIBTOOL_WIN32_DLL | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 49 | AM_PROG_LIBTOOL | 
|  | 50 |  | 
| Daniel Veillard | d8cf906 | 2003-11-11 21:12:36 +0000 | [diff] [blame] | 51 | # AM_MAINTAINER_MODE | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 52 |  | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 53 | dnl | 
|  | 54 | dnl option to build a minimal libxml2 library | 
|  | 55 | dnl | 
|  | 56 | AC_ARG_WITH(minimum, [  --with-minimum          build a minimally sized library (off)]) | 
|  | 57 | if test "$with_minimum" = "yes" | 
|  | 58 | then | 
|  | 59 | echo "Configuring for a minimal library" | 
|  | 60 | fi | 
|  | 61 |  | 
| Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 62 | dnl Checks for zlib library. | 
| Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 63 | _cppflags="${CPPFLAGS}" | 
|  | 64 | _ldflags="${LDFLAGS}" | 
| Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 65 |  | 
| Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 66 |  | 
| Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 67 | AC_ARG_WITH(zlib, | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 68 | [  --with-zlib[[=DIR]]       use libz in DIR],[ | 
| Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 69 | if test "$withval" != "no" -a "$withval" != "yes"; then | 
|  | 70 | Z_DIR=$withval | 
|  | 71 | CPPFLAGS="${CPPFLAGS} -I$withval/include" | 
|  | 72 | LDFLAGS="${LDFLAGS} -L$withval/lib" | 
|  | 73 | fi | 
| Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 74 | ]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 75 | if test "$with_minimum" = "yes" -a "$with_zlib" = "" | 
|  | 76 | then | 
|  | 77 | with_zlib=no | 
|  | 78 | fi | 
| Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 79 | if test "$with_zlib" = "no"; then | 
|  | 80 | echo "Disabling compression support" | 
|  | 81 | else | 
| Daniel Veillard | 3fbe8e3 | 2001-10-06 13:30:33 +0000 | [diff] [blame] | 82 | AC_CHECK_HEADERS(zlib.h, | 
|  | 83 | AC_CHECK_LIB(z, gzread,[ | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 84 | AC_DEFINE([HAVE_LIBZ], [], [Have compression library]) | 
| Daniel Veillard | 3fbe8e3 | 2001-10-06 13:30:33 +0000 | [diff] [blame] | 85 | if test "x${Z_DIR}" != "x"; then | 
|  | 86 | Z_CFLAGS="-I${Z_DIR}/include" | 
|  | 87 | Z_LIBS="-L${Z_DIR}/lib -lz" | 
|  | 88 | [case ${host} in | 
|  | 89 | *-*-solaris*) | 
|  | 90 | Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" | 
|  | 91 | ;; | 
|  | 92 | esac] | 
|  | 93 | else | 
|  | 94 | Z_LIBS="-lz" | 
|  | 95 | fi])) | 
| Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 96 | fi | 
| Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 97 |  | 
| Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 98 | AC_SUBST(Z_CFLAGS) | 
|  | 99 | AC_SUBST(Z_LIBS) | 
|  | 100 |  | 
|  | 101 | CPPFLAGS=${_cppflags} | 
|  | 102 | LDFLAGS=${_ldflags} | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 103 |  | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 104 | dnl Checks for header files. | 
|  | 105 | AC_HEADER_DIRENT | 
|  | 106 | AC_HEADER_STDC | 
| Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 107 | AC_CHECK_HEADERS([fcntl.h]) | 
|  | 108 | AC_CHECK_HEADERS([unistd.h]) | 
|  | 109 | AC_CHECK_HEADERS([ctype.h]) | 
|  | 110 | AC_CHECK_HEADERS([dirent.h]) | 
|  | 111 | AC_CHECK_HEADERS([errno.h]) | 
|  | 112 | AC_CHECK_HEADERS([malloc.h]) | 
|  | 113 | AC_CHECK_HEADERS([stdarg.h]) | 
|  | 114 | AC_CHECK_HEADERS([sys/stat.h]) | 
|  | 115 | AC_CHECK_HEADERS([sys/types.h]) | 
|  | 116 | AC_CHECK_HEADERS([time.h]) | 
|  | 117 | AC_CHECK_HEADERS([ansidecl.h]) | 
|  | 118 | AC_CHECK_HEADERS([ieeefp.h]) | 
|  | 119 | AC_CHECK_HEADERS([nan.h]) | 
|  | 120 | AC_CHECK_HEADERS([math.h]) | 
| Daniel Veillard | ebe48c6 | 2003-12-03 12:12:27 +0000 | [diff] [blame] | 121 | AC_CHECK_HEADERS([limits.h]) | 
| Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 122 | AC_CHECK_HEADERS([fp_class.h]) | 
|  | 123 | AC_CHECK_HEADERS([float.h]) | 
|  | 124 | AC_CHECK_HEADERS([stdlib.h]) | 
|  | 125 | AC_CHECK_HEADERS([sys/socket.h], [], [], | 
|  | 126 | [#if HAVE_SYS_TYPES_H | 
|  | 127 | # include <sys/types.h> | 
|  | 128 | # endif | 
|  | 129 | ]) | 
|  | 130 | AC_CHECK_HEADERS([netinet/in.h], [], [], | 
|  | 131 | [#if HAVE_SYS_TYPES_H | 
|  | 132 | # include <sys/types.h> | 
|  | 133 | # endif | 
|  | 134 | ]) | 
|  | 135 | AC_CHECK_HEADERS([arpa/inet.h], [], [], | 
|  | 136 | [#if HAVE_SYS_TYPES_H | 
|  | 137 | # include <sys/types.h> | 
|  | 138 | # endif | 
|  | 139 | #if HAVE_ARPA_INET_H | 
|  | 140 | # include <arpa/inet.h> | 
|  | 141 | # endif | 
|  | 142 | ]) | 
|  | 143 | AC_CHECK_HEADERS([netdb.h]) | 
|  | 144 | AC_CHECK_HEADERS([sys/time.h]) | 
|  | 145 | AC_CHECK_HEADERS([sys/select.h]) | 
|  | 146 | AC_CHECK_HEADERS([sys/mman.h]) | 
|  | 147 | AC_CHECK_HEADERS([sys/timeb.h]) | 
|  | 148 | AC_CHECK_HEADERS([signal.h]) | 
|  | 149 | AC_CHECK_HEADERS([arpa/nameser.h], [], [], | 
|  | 150 | [#if HAVE_SYS_TYPES_H | 
|  | 151 | # include <sys/types.h> | 
|  | 152 | # endif | 
|  | 153 | ]) | 
|  | 154 | AC_CHECK_HEADERS([resolv.h], [], [], | 
|  | 155 | [#if HAVE_SYS_TYPES_H | 
|  | 156 | # include <sys/types.h> | 
|  | 157 | # endif | 
|  | 158 | #if HAVE_NETINET_IN_H | 
|  | 159 | # include <netinet/in.h> | 
|  | 160 | # endif | 
|  | 161 | #if HAVE_ARPA_NAMESER_H | 
|  | 162 | # include <arpa/nameser.h> | 
|  | 163 | # endif | 
|  | 164 | ]) | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 165 |  | 
| Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 166 | dnl Specific dir for HTML output ? | 
| Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 167 | AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path], | 
|  | 168 | [path to base html directory, default $datadir/doc/html]), | 
|  | 169 | [HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc']) | 
|  | 170 |  | 
|  | 171 | AC_ARG_WITH(html-subdir, AC_HELP_STRING([--with-html-subdir=path], | 
|  | 172 | [directory used under html-dir, default $PACKAGE-$VERSION/html]), | 
|  | 173 | [test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"], | 
|  | 174 | [HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"]) | 
| Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 175 |  | 
|  | 176 | AC_SUBST(HTML_DIR) | 
|  | 177 |  | 
| Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 178 | dnl Checks for library functions. | 
|  | 179 | AC_FUNC_STRFTIME | 
| Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 180 | AC_CHECK_FUNCS(strdup strndup strerror) | 
| Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 181 | AC_CHECK_FUNCS(finite isnand fp_class class fpclass) | 
| Daniel Veillard | 90bc371 | 2002-03-07 15:12:58 +0000 | [diff] [blame] | 182 | AC_CHECK_FUNCS(strftime localtime gettimeofday ftime) | 
| Daniel Veillard | 068a965 | 2001-06-07 15:30:26 +0000 | [diff] [blame] | 183 | AC_CHECK_FUNCS(stat _stat signal) | 
| Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 184 |  | 
| Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 185 | dnl Checking the standard string functions availability | 
|  | 186 | AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,, | 
|  | 187 | NEED_TRIO=1) | 
|  | 188 |  | 
| Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 189 | dnl Checks for inet libraries: | 
| Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 190 | AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent)) | 
|  | 191 | AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt)) | 
|  | 192 | AC_CHECK_FUNC(connect, , AC_CHECK_LIB(inet, connect)) | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 193 |  | 
| Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 194 | dnl Determine what socket length (socklen_t) data type is | 
|  | 195 | AC_MSG_CHECKING([for type of socket length (socklen_t)]) | 
|  | 196 | AC_TRY_COMPILE2([ | 
|  | 197 | #include <stddef.h> | 
|  | 198 | #include <sys/types.h> | 
|  | 199 | #include <sys/socket.h>],[ | 
|  | 200 | (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)],[ | 
|  | 201 | AC_MSG_RESULT(socklen_t *) | 
|  | 202 | SOCKLEN_T=socklen_t],[ | 
|  | 203 | AC_TRY_COMPILE2([ | 
|  | 204 | #include <stddef.h> | 
|  | 205 | #include <sys/types.h> | 
|  | 206 | #include <sys/socket.h>],[ | 
|  | 207 | (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)],[ | 
|  | 208 | AC_MSG_RESULT(size_t *) | 
|  | 209 | SOCKLEN_T=size_t],[ | 
|  | 210 | AC_TRY_COMPILE2([ | 
|  | 211 | #include <stddef.h> | 
|  | 212 | #include <sys/types.h> | 
|  | 213 | #include <sys/socket.h>],[ | 
|  | 214 | (void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[ | 
|  | 215 | AC_MSG_RESULT(int *) | 
|  | 216 | SOCKLEN_T=int],[ | 
| William M. Brack | 2e6b143 | 2004-02-09 15:10:28 +0000 | [diff] [blame] | 217 | AC_MSG_WARN(could not determine) | 
|  | 218 | SOCKLEN_T="unsigned int"])])]) | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 219 | AC_DEFINE_UNQUOTED(SOCKLEN_T, $SOCKLEN_T, [Determine what socket length (socklen_t) data type is]) | 
| Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 220 |  | 
| Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 221 | dnl ***********************Checking for availability of IPv6******************* | 
|  | 222 |  | 
|  | 223 | AC_MSG_CHECKING([whether to enable IPv6]) | 
|  | 224 | AC_ARG_ENABLE(ipv6, [ --enable-ipv6=[yes/no] enables compilation of IPv6 code],, enable_ipv6=yes) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 225 | if test "$with_minimum" = "yes" | 
|  | 226 | then | 
|  | 227 | enable_ipv6=no | 
|  | 228 | fi | 
| Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 229 | if test $enable_ipv6 = yes; then | 
|  | 230 | have_ipv6=no | 
|  | 231 | AC_TRY_COMPILE([ | 
|  | 232 | #include <sys/socket.h> | 
|  | 233 | #include <sys/types.h>], [ | 
|  | 234 | struct sockaddr_storage ss; | 
|  | 235 | socket(AF_INET6, SOCK_STREAM, 0) | 
|  | 236 | ], | 
|  | 237 | have_ipv6=yes, | 
|  | 238 | have_ipv6=no | 
|  | 239 | ) | 
|  | 240 | AC_MSG_RESULT($have_ipv6) | 
|  | 241 |  | 
| William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 242 | if test $have_ipv6 = yes; then | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 243 | AC_DEFINE([SUPPORT_IP6], [], [Support for IPv6]) | 
| Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 244 |  | 
|  | 245 | have_getaddrinfo=no | 
|  | 246 | AC_CHECK_FUNC(getaddrinfo, have_getaddrinfo=yes) | 
|  | 247 | if test $have_getaddrinfo != yes; then | 
|  | 248 | for lib in bsd socket inet; do | 
|  | 249 | AC_CHECK_LIB($lib, getaddrinfo, [LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break]) | 
|  | 250 | done | 
|  | 251 | fi | 
|  | 252 |  | 
| William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 253 | if test $have_getaddrinfo = yes; then | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 254 | AC_DEFINE([HAVE_GETADDRINFO], [], [Define if getaddrinfo is there]) | 
| Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 255 | fi | 
|  | 256 | fi | 
|  | 257 | fi | 
|  | 258 |  | 
|  | 259 | dnl ******************************End IPv6 checks****************************** | 
|  | 260 |  | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 261 | dnl Checks for isnan in libm if not in libc | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 262 | AC_CHECK_FUNC(isnan, AC_DEFINE([HAVE_ISNAN],[], [Define if isnan is there]) , AC_CHECK_LIB(m, isnan, | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 263 | [AC_DEFINE([HAVE_ISNAN],[], [Define if isnan is there])])) | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 264 |  | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 265 | AC_CHECK_FUNC(isinf, AC_DEFINE([HAVE_ISINF], [], [Define if isinf is there]) , AC_CHECK_LIB(m, isinf, | 
|  | 266 | [AC_DEFINE([HAVE_ISINF], [], [Define if isinf is there])])) | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 267 |  | 
|  | 268 | XML_LIBDIR='-L${libdir}' | 
| Daniel Veillard | e7dd2b8 | 2002-03-15 18:44:02 +0000 | [diff] [blame] | 269 | XML_INCLUDEDIR='-I${includedir}/libxml2' | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 270 |  | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 271 | dnl | 
| Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 272 | dnl Extra flags | 
|  | 273 | dnl | 
|  | 274 | XML_CFLAGS="" | 
| Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 275 | RDL_LIBS="" | 
| Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 276 |  | 
| Daniel Veillard | d94849b | 2003-07-28 13:02:24 +0000 | [diff] [blame] | 277 | AC_ARG_WITH(fexceptions, | 
|  | 278 | [  --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 279 | if test "$with_minimum" = "yes" -a "$with_fexceptions" = "" | 
|  | 280 | then | 
|  | 281 | with_fexceptions=no | 
|  | 282 | fi | 
| Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 283 | dnl | 
| Daniel Veillard | b45c43b | 2001-04-28 17:02:11 +0000 | [diff] [blame] | 284 | dnl Workaround for native compilers | 
|  | 285 | dnl  HP  : http://bugs.gnome.org/db/31/3163.html | 
|  | 286 | dnl  DEC : Enable NaN/Inf | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 287 | dnl | 
| Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 288 | if test "${GCC}" != "yes" ; then | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 289 | case "${host}" in | 
|  | 290 | *-*-hpux* ) | 
| Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 291 | CFLAGS="${CFLAGS} -Wp,-H30000" | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 292 | ;; | 
| Daniel Veillard | b45c43b | 2001-04-28 17:02:11 +0000 | [diff] [blame] | 293 | *-dec-osf* ) | 
|  | 294 | CFLAGS="${CFLAGS} -ieee" | 
|  | 295 | ;; | 
| William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 296 | alpha*-*-linux* ) | 
|  | 297 | CFLAGS="${CFLAGS} -ieee" | 
|  | 298 | ;; | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 299 | esac | 
| Daniel Veillard | d574f78 | 2001-03-14 19:40:17 +0000 | [diff] [blame] | 300 | else | 
| Daniel Veillard | d94849b | 2003-07-28 13:02:24 +0000 | [diff] [blame] | 301 | if test "$with_fexceptions" = "yes" | 
|  | 302 | then | 
|  | 303 | # | 
|  | 304 | # Not activated by default because this inflates the code size | 
|  | 305 | # Used to allow propagation of C++ exceptions through the library | 
|  | 306 | # | 
|  | 307 | CFLAGS="${CFLAGS} -fexceptions" | 
|  | 308 | fi | 
|  | 309 |  | 
| Daniel Veillard | 4918efe | 2004-08-23 12:35:14 +0000 | [diff] [blame] | 310 | CFLAGS="${CFLAGS} -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls" | 
| Daniel Veillard | 14839d5 | 2001-06-06 16:11:56 +0000 | [diff] [blame] | 311 | case "${host}" in | 
|  | 312 | alpha*-*-linux* ) | 
|  | 313 | CFLAGS="${CFLAGS} -mieee" | 
|  | 314 | ;; | 
| Daniel Veillard | cb5b4d6 | 2002-04-11 08:24:26 +0000 | [diff] [blame] | 315 | alpha*-*-osf* ) | 
|  | 316 | CFLAGS="${CFLAGS} -mieee" | 
|  | 317 | ;; | 
| Daniel Veillard | 14839d5 | 2001-06-06 16:11:56 +0000 | [diff] [blame] | 318 | esac | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 319 | fi | 
| Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 320 | case ${host} in | 
|  | 321 | *-*-solaris*) | 
| Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 322 | XML_LIBDIR="${XML_LIBDIR} -R${libdir}" | 
|  | 323 | ;; | 
| Daniel Veillard | d30be4a | 2002-03-28 18:25:31 +0000 | [diff] [blame] | 324 | hppa*-hp-mpeix) | 
|  | 325 | NEED_TRIO=1 | 
|  | 326 | ;; | 
| Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 327 | esac | 
|  | 328 |  | 
| Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 329 |  | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 330 | dnl | 
|  | 331 | dnl check for python | 
|  | 332 | dnl | 
|  | 333 |  | 
|  | 334 | PYTHON= | 
|  | 335 | PYTHON_VERSION= | 
|  | 336 | PYTHON_INCLUDES= | 
| Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 337 | PYTHON_SITE_PACKAGES= | 
| Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 338 | PYTHON_TESTS= | 
| Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 339 | pythondir= | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 340 | AC_ARG_WITH(python, | 
|  | 341 | [  --with-python[[=DIR]]     build Python bindings if found]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 342 | if test "$with_minimum" = "yes" -a "$with_python" = "" | 
|  | 343 | then | 
|  | 344 | with_python=no | 
|  | 345 | fi | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 346 | if test "$with_python" != "no" ; then | 
|  | 347 | if test -x "$with_python/bin/python" | 
|  | 348 | then | 
|  | 349 | echo Found python in $with_python/bin/python | 
|  | 350 | PYTHON="$with_python/bin/python" | 
| Daniel Veillard | 9b731d7 | 2002-04-14 12:56:08 +0000 | [diff] [blame] | 351 | else | 
| Daniel Veillard | a8a89fe | 2002-04-12 21:03:34 +0000 | [diff] [blame] | 352 | if test -x "$with_python" | 
|  | 353 | then | 
| Daniel Veillard | 4efd3be | 2002-11-18 09:11:13 +0000 | [diff] [blame] | 354 | echo Found python in $with_python | 
|  | 355 | PYTHON="$with_python" | 
| Daniel Veillard | a8a89fe | 2002-04-12 21:03:34 +0000 | [diff] [blame] | 356 | else | 
| Daniel Veillard | 4efd3be | 2002-11-18 09:11:13 +0000 | [diff] [blame] | 357 | AC_PATH_PROG(PYTHON, python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) | 
| Daniel Veillard | a8a89fe | 2002-04-12 21:03:34 +0000 | [diff] [blame] | 358 | fi | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 359 | fi | 
|  | 360 | if test "$PYTHON" != "" | 
|  | 361 | then | 
|  | 362 | PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` | 
|  | 363 | echo Found Python version $PYTHON_VERSION | 
|  | 364 | fi | 
|  | 365 | if test "$PYTHON_VERSION" != "" | 
|  | 366 | then | 
| Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 367 | if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ | 
|  | 368 | -d $with_python/lib/python$PYTHON_VERSION/site-packages | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 369 | then | 
|  | 370 | PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION | 
| Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 371 | PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 372 | else | 
|  | 373 | if test -r $prefix/include/python$PYTHON_VERSION/Python.h | 
|  | 374 | then | 
| Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 375 | PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' | 
| Daniel Veillard | e3b7d9a | 2002-08-14 14:11:30 +0000 | [diff] [blame] | 376 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 377 | else | 
|  | 378 | if test -r /usr/include/python$PYTHON_VERSION/Python.h | 
|  | 379 | then | 
|  | 380 | PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION | 
| Daniel Veillard | e3b7d9a | 2002-08-14 14:11:30 +0000 | [diff] [blame] | 381 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 382 | else | 
|  | 383 | echo could not find python$PYTHON_VERSION/Python.h | 
|  | 384 | fi | 
|  | 385 | fi | 
| William M. Brack | 5d4cba4 | 2004-01-06 15:19:12 +0000 | [diff] [blame] | 386 | if test ! -d "$PYTHON_SITE_PACKAGES" | 
| Daniel Veillard | b6984ef | 2002-08-14 16:55:31 +0000 | [diff] [blame] | 387 | then | 
|  | 388 | PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` | 
|  | 389 | fi | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 390 | fi | 
|  | 391 | fi | 
| Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 392 | if test "$with_python" != "" | 
|  | 393 | then | 
|  | 394 | pythondir='$(PYTHON_SITE_PACKAGES)' | 
|  | 395 | else | 
|  | 396 | pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages' | 
|  | 397 | fi | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 398 | fi | 
|  | 399 | AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "") | 
| Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 400 | if test "$PYTHON_INCLUDES" != "" | 
|  | 401 | then | 
|  | 402 | PYTHON_SUBDIR=python | 
|  | 403 | else | 
|  | 404 | PYTHON_SUBDIR= | 
|  | 405 | fi | 
| Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 406 | AC_SUBST(pythondir) | 
| Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 407 | AC_SUBST(PYTHON_SUBDIR) | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 408 |  | 
| Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 409 | dnl | 
|  | 410 | dnl Tester makes use of readline if present | 
|  | 411 | dnl | 
| Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 412 | _cppflags="${CPPFLAGS}" | 
|  | 413 | _ldflags="${LDFLAGS}" | 
| Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 414 |  | 
| Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 415 | AC_ARG_WITH(readline, | 
|  | 416 | [  --with-readline=DIR     use readline in DIR],[ | 
|  | 417 | if test "$withval" != "no" -a "$withval" != "yes"; then | 
|  | 418 | RDL_DIR=$withval | 
|  | 419 | CPPFLAGS="${CPPFLAGS} -I$withval/include" | 
|  | 420 | LDFLAGS="${LDFLAGS} -L$withval/lib" | 
|  | 421 | fi | 
|  | 422 | ]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 423 | if test "$with_minimum" = "yes" -a "$with_readline" = "" | 
|  | 424 | then | 
|  | 425 | with_readline=no | 
|  | 426 | fi | 
| Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 427 |  | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 428 | dnl | 
| Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 429 | dnl specific tests to setup DV's devel environment with debug etc ... | 
| Daniel Veillard | 81418e3 | 2001-05-22 15:08:55 +0000 | [diff] [blame] | 430 | dnl (-Wunreachable-code) | 
| Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 431 | dnl | 
| William M. Brack | 871611b | 2003-10-18 04:53:14 +0000 | [diff] [blame] | 432 | if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ]] || \ | 
| Daniel Veillard | b7c6ac4 | 2004-06-29 22:01:27 +0000 | [diff] [blame] | 433 | [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ]] || \ | 
| William M. Brack | a2e844a | 2004-01-06 11:52:13 +0000 | [diff] [blame] | 434 | [[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomecvs/xmltest" ]] || \ | 
| William M. Brack | 4119d1c | 2004-06-24 02:24:44 +0000 | [diff] [blame] | 435 | [[ "${LOGNAME}" = "wbrack" -a "`pwd`" = "/Users/wbrack/gnomecvs/xmltest" ]] | 
| William M. Brack | 871611b | 2003-10-18 04:53:14 +0000 | [diff] [blame] | 436 | then | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 437 | if test "$with_minimum" != "yes" | 
|  | 438 | then | 
|  | 439 | if test "${with_mem_debug}" = "" ; then | 
|  | 440 | with_mem_debug="yes" | 
|  | 441 | fi | 
|  | 442 | if test "${with_docbook}" = "" ; then | 
|  | 443 | with_docbook="yes" | 
|  | 444 | fi | 
| Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 445 | fi | 
| Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 446 | CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls " | 
| Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 447 | STATIC_BINARIES="-static" | 
| Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 448 | dnl -Wcast-qual -ansi | 
| Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 449 | else | 
|  | 450 | STATIC_BINARIES= | 
| Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 451 | fi | 
| Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 452 | AC_SUBST(STATIC_BINARIES) | 
| Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 453 |  | 
|  | 454 | dnl | 
|  | 455 | dnl Check for trio string functions | 
|  | 456 | dnl | 
|  | 457 |  | 
|  | 458 | if test "${NEED_TRIO}" = "1" ; then | 
|  | 459 | echo Adding trio library for string functions | 
|  | 460 | WITH_TRIO=1 | 
|  | 461 | else | 
|  | 462 | WITH_TRIO=0 | 
|  | 463 | fi | 
| Daniel Veillard | 01ef738 | 2001-05-08 07:31:43 +0000 | [diff] [blame] | 464 | AM_CONDITIONAL(WITH_TRIO_SOURCES, test "${NEED_TRIO}" = "1") | 
| Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 465 | AC_SUBST(WITH_TRIO) | 
|  | 466 |  | 
| Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 467 | dnl | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 468 | dnl Allow to enable/disable various pieces | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 469 | dnl | 
|  | 470 |  | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 471 | THREAD_LIBS="" | 
|  | 472 | WITH_THREADS=0 | 
|  | 473 | THREAD_CFLAGS="" | 
| Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 474 | TEST_THREADS="" | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 475 | THREADS_W32="" | 
| Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 476 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 477 | AC_ARG_WITH(threads, | 
|  | 478 | [  --with-threads          add multithread support(on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 479 | if test "$with_minimum" = "yes" -a "$with_threads" = "" | 
|  | 480 | then | 
|  | 481 | with_threads=no | 
|  | 482 | fi | 
| Daniel Veillard | 8494271 | 2003-04-18 14:40:05 +0000 | [diff] [blame] | 483 | if test "$with_threads" = "no" ; then | 
|  | 484 | echo Disabling multithreaded support | 
|  | 485 | else | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 486 | echo Enabling multithreaded support | 
|  | 487 |  | 
|  | 488 | AC_CHECK_HEADER(pthread.h, | 
| Daniel Veillard | cbaf399 | 2001-12-31 16:16:02 +0000 | [diff] [blame] | 489 | AC_CHECK_LIB(pthread, pthread_join,[ | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 490 | THREAD_LIBS="-lpthread" | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 491 | AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)]) | 
|  | 492 | AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there]) | 
| Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 493 | WITH_THREADS="1"])) | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 494 | case $host_os in | 
|  | 495 | *mingw32*) WITH_THREADS="1" | 
|  | 496 | THREADS_W32="Win32" | 
|  | 497 | THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS" | 
|  | 498 | ;; | 
|  | 499 | esac | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 500 | if test "$WITH_THREADS" = "1" ; then | 
| Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 501 | THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" | 
|  | 502 | TEST_THREADS="Threadtests" | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 503 | fi | 
|  | 504 | fi | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 505 | AC_ARG_WITH(thread-alloc, | 
|  | 506 | [  --with-thread-alloc     add per-thread memory(off)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 507 | if test "$with_minimum" = "yes" -a "$with_thread_alloc" = "" | 
|  | 508 | then | 
|  | 509 | with_thread_alloc=no | 
|  | 510 | fi | 
| William M. Brack | 306e33c | 2004-06-12 01:01:22 +0000 | [diff] [blame] | 511 | if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then | 
| Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 512 | THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED" | 
| Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 513 | fi | 
|  | 514 |  | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 515 | AC_SUBST(THREAD_LIBS) | 
|  | 516 | AC_SUBST(WITH_THREADS) | 
|  | 517 | AC_SUBST(THREAD_CFLAGS) | 
| Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 518 | AC_SUBST(TEST_THREADS) | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 519 | AC_SUBST(THREADS_W32) | 
| Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 520 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 521 | AC_ARG_WITH(history, | 
|  | 522 | [  --with-history          add history support to xmllint shell(off)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 523 | if test "$with_minimum" = "yes" -a "$with_history" = "" | 
|  | 524 | then | 
|  | 525 | with_history=no | 
|  | 526 | fi | 
| Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 527 | if test "$with_history" = "yes" ; then | 
| Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 528 | echo Enabling xmllint shell history | 
|  | 529 | dnl check for terminal library. this is a very cool solution | 
|  | 530 | dnl from octave's configure.in | 
|  | 531 | unset tcap | 
|  | 532 | for termlib in ncurses curses termcap terminfo termlib; do | 
|  | 533 | AC_CHECK_LIB(${termlib}, tputs, [tcap="-l$termlib"]) | 
|  | 534 | test -n "$tcap" && break | 
|  | 535 | done | 
|  | 536 |  | 
|  | 537 | AC_CHECK_HEADER(readline/history.h, | 
|  | 538 | AC_CHECK_LIB(history, append_history,[ | 
|  | 539 | RDL_LIBS="-lhistory" | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 540 | AC_DEFINE([HAVE_LIBHISTORY], [], [Define if history library is there (-lhistory)])])) | 
| Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 541 | AC_CHECK_HEADER(readline/readline.h, | 
|  | 542 | AC_CHECK_LIB(readline, readline,[ | 
|  | 543 | RDL_LIBS="-lreadline $RDL_LIBS $tcap" | 
| Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 544 | AC_DEFINE([HAVE_LIBREADLINE], [], [Define if readline library is there (-lreadline)])], , $tcap)) | 
| Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 545 | if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then | 
|  | 546 | CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include" | 
|  | 547 | RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS" | 
|  | 548 | else | 
|  | 549 | CPPFLAGS=${_cppflags} | 
|  | 550 | fi | 
|  | 551 | LDFLAGS=${_ldflags} | 
|  | 552 | fi | 
|  | 553 |  | 
| Daniel Veillard | a9cce9c | 2003-09-29 13:20:24 +0000 | [diff] [blame] | 554 | AC_ARG_WITH(output, | 
| Daniel Veillard | 652327a | 2003-09-29 18:02:38 +0000 | [diff] [blame] | 555 | [  --with-output           add the serialization support (on)]) | 
| Daniel Veillard | a9cce9c | 2003-09-29 13:20:24 +0000 | [diff] [blame] | 556 | if test "$with_minimum" = "yes" -a "$with_output" = "" | 
|  | 557 | then | 
|  | 558 | with_output=no | 
|  | 559 | fi | 
|  | 560 | if test "$with_output" = "no" ; then | 
|  | 561 | echo Disabling serialization/saving support | 
|  | 562 | WITH_OUTPUT=0 | 
|  | 563 | else | 
|  | 564 | WITH_OUTPUT=1 | 
|  | 565 | fi | 
|  | 566 | AC_SUBST(WITH_OUTPUT) | 
|  | 567 |  | 
| Daniel Veillard | 652327a | 2003-09-29 18:02:38 +0000 | [diff] [blame] | 568 | AC_ARG_WITH(tree, | 
|  | 569 | [  --with-tree             add the DOM like tree manipulation APIs (on)]) | 
|  | 570 | if test "$with_minimum" = "yes" -a "$with_tree" = "" | 
|  | 571 | then | 
|  | 572 | with_tree=no | 
|  | 573 | fi | 
|  | 574 | if test "$with_tree" = "no" ; then | 
|  | 575 | echo Disabling DOM like tree manipulation APIs | 
|  | 576 | WITH_TREE=0 | 
|  | 577 | else | 
|  | 578 | WITH_TREE=1 | 
|  | 579 | fi | 
|  | 580 | AC_SUBST(WITH_TREE) | 
|  | 581 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 582 | AC_ARG_WITH(ftp, | 
|  | 583 | [  --with-ftp              add the FTP support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 584 | if test "$with_minimum" = "yes" -a "$with_ftp" = "" | 
|  | 585 | then | 
|  | 586 | with_ftp=no | 
|  | 587 | fi | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 588 | if test "$with_ftp" = "no" ; then | 
|  | 589 | echo Disabling FTP support | 
|  | 590 | WITH_FTP=0 | 
|  | 591 | FTP_OBJ= | 
|  | 592 | else | 
|  | 593 | WITH_FTP=1 | 
|  | 594 | FTP_OBJ=nanoftp.o | 
|  | 595 | fi | 
|  | 596 | AC_SUBST(WITH_FTP) | 
|  | 597 | AC_SUBST(FTP_OBJ) | 
|  | 598 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 599 | AC_ARG_WITH(http, | 
|  | 600 | [  --with-http             add the HTTP support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 601 | if test "$with_minimum" = "yes" -a "$with_http" = "" | 
|  | 602 | then | 
|  | 603 | with_http=no | 
|  | 604 | fi | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 605 | if test "$with_http" = "no" ; then | 
|  | 606 | echo Disabling HTTP support | 
|  | 607 | WITH_HTTP=0 | 
|  | 608 | HTTP_OBJ= | 
|  | 609 | else | 
|  | 610 | WITH_HTTP=1 | 
|  | 611 | HTTP_OBJ=nanohttp.o | 
|  | 612 | fi | 
|  | 613 | AC_SUBST(WITH_HTTP) | 
|  | 614 | AC_SUBST(HTTP_OBJ) | 
|  | 615 |  | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 616 | AC_ARG_WITH(legacy, | 
| Daniel Veillard | 652327a | 2003-09-29 18:02:38 +0000 | [diff] [blame] | 617 | [  --with-legacy           add deprecated APIs for compatibility (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 618 | if test "$with_minimum" = "yes" -a "$with_legacy" = "" | 
|  | 619 | then | 
|  | 620 | with_legacy=no | 
|  | 621 | fi | 
|  | 622 | if test "$with_legacy" = "no" ; then | 
|  | 623 | echo Disabling deprecated APIs | 
|  | 624 | WITH_LEGACY=0 | 
|  | 625 | else | 
|  | 626 | WITH_LEGACY=1 | 
|  | 627 | fi | 
|  | 628 | AC_SUBST(WITH_LEGACY) | 
|  | 629 |  | 
| Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 630 | AC_ARG_WITH(reader, | 
|  | 631 | [  --with-reader           add the xmlReader parsing interface (on)]) | 
|  | 632 | if test "$with_minimum" = "yes" -a "$with_reader" = "" | 
|  | 633 | then | 
|  | 634 | with_reader=no | 
|  | 635 | fi | 
|  | 636 | if test "$with_reader" = "no" ; then | 
|  | 637 | echo Disabling the xmlReader parsing interface | 
|  | 638 | WITH_READER=0 | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 639 | READER_TEST= | 
| Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 640 | else | 
|  | 641 | WITH_READER=1 | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 642 | READER_TEST=Readertests | 
| Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 643 | fi | 
|  | 644 | AC_SUBST(WITH_READER) | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 645 | AC_SUBST(READER_TEST) | 
| Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 646 |  | 
| Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 647 | AC_ARG_WITH(pattern, | 
|  | 648 | [  --with-pattern           add the xmlPattern selection interface (on)]) | 
|  | 649 | if test "$with_minimum" = "yes" -a "$with_pattern" = "" | 
|  | 650 | then | 
|  | 651 | with_pattern=no | 
|  | 652 | fi | 
|  | 653 | if test "$with_pattern" = "no" ; then | 
|  | 654 | echo Disabling the xmlPattern parsing interface | 
|  | 655 | WITH_PATTERN=0 | 
|  | 656 | PATTERN_TEST= | 
|  | 657 | else | 
|  | 658 | WITH_PATTERN=1 | 
|  | 659 | PATTERN_TEST=Patterntests | 
|  | 660 | fi | 
|  | 661 | AC_SUBST(WITH_PATTERN) | 
|  | 662 | AC_SUBST(PATTERN_TEST) | 
|  | 663 |  | 
| Daniel Veillard | 1d211e2 | 2003-10-20 22:32:39 +0000 | [diff] [blame] | 664 | AC_ARG_WITH(writer, | 
|  | 665 | [  --with-writer           add the xmlWriter saving interface (on)]) | 
|  | 666 | if test "$with_minimum" = "yes" -a "$with_writer" = "" | 
|  | 667 | then | 
|  | 668 | with_writer=no | 
|  | 669 | fi | 
|  | 670 | if test "$with_writer" = "no" ; then | 
|  | 671 | echo Disabling the xmlWriter saving interface | 
|  | 672 | WITH_WRITER=0 | 
|  | 673 | #    WRITER_TEST= | 
|  | 674 | else | 
|  | 675 | WITH_WRITER=1 | 
|  | 676 | #    WRITER_TEST=Writertests | 
|  | 677 | fi | 
|  | 678 | AC_SUBST(WITH_WRITER) | 
|  | 679 | #AC_SUBST(WRITER_TEST) | 
|  | 680 |  | 
| Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 681 | AC_ARG_WITH(sax1, | 
|  | 682 | [  --with-sax1             add the older SAX1 interface (on)]) | 
|  | 683 | if test "$with_minimum" = "yes" -a "$with_sax1" = "" | 
|  | 684 | then | 
|  | 685 | with_sax1=no | 
|  | 686 | fi | 
|  | 687 | if test "$with_sax1" = "no" ; then | 
|  | 688 | echo Disabling the older SAX1 interface | 
|  | 689 | WITH_SAX1=0 | 
|  | 690 | TEST_SAX= | 
|  | 691 | else | 
|  | 692 | WITH_SAX1=1 | 
|  | 693 | TEST_SAX=SAXtests | 
|  | 694 | fi | 
|  | 695 | AC_SUBST(WITH_SAX1) | 
|  | 696 | AC_SUBST(TEST_SAX) | 
|  | 697 |  | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 698 | AC_ARG_WITH(push, | 
|  | 699 | [  --with-push             add the PUSH parser interfaces (on)]) | 
|  | 700 | if test "$with_minimum" = "yes" -a "$with_push" = "" | 
|  | 701 | then | 
|  | 702 | with_push=no | 
|  | 703 | fi | 
|  | 704 | if test "$with_push" = "no" ; then | 
|  | 705 | echo Disabling the PUSH parser interfaces | 
|  | 706 | WITH_PUSH=0 | 
|  | 707 | TEST_PUSH= | 
|  | 708 | else | 
|  | 709 | WITH_PUSH=1 | 
|  | 710 | TEST_PUSH="XMLPushtests" | 
|  | 711 | fi | 
|  | 712 | AC_SUBST(WITH_PUSH) | 
|  | 713 | AC_SUBST(TEST_PUSH) | 
|  | 714 |  | 
|  | 715 | AC_ARG_WITH(html, | 
|  | 716 | [  --with-html             add the HTML support (on)]) | 
|  | 717 | if test "$with_minimum" = "yes" -a "$with_html" = "" | 
|  | 718 | then | 
|  | 719 | with_html=no | 
|  | 720 | fi | 
|  | 721 | if test "$with_html" = "no" ; then | 
|  | 722 | echo Disabling HTML support | 
|  | 723 | WITH_HTML=0 | 
|  | 724 | HTML_OBJ= | 
|  | 725 | TEST_HTML= | 
|  | 726 | else | 
|  | 727 | WITH_HTML=1 | 
|  | 728 | HTML_OBJ="HTMLparser.o HTMLtree.o" | 
|  | 729 | TEST_HTML=HTMLtests | 
| William M. Brack | 871611b | 2003-10-18 04:53:14 +0000 | [diff] [blame] | 730 | if test "$with_push" != "no" ; then | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 731 | TEST_PHTML=HTMLPushtests | 
|  | 732 | else | 
|  | 733 | TEST_PHTML= | 
|  | 734 | fi | 
|  | 735 | fi | 
|  | 736 | AC_SUBST(WITH_HTML) | 
|  | 737 | AC_SUBST(HTML_OBJ) | 
|  | 738 | AC_SUBST(TEST_HTML) | 
|  | 739 | AC_SUBST(TEST_PHTML) | 
|  | 740 |  | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 741 | AC_ARG_WITH(valid, | 
|  | 742 | [  --with-valid            add the DTD validation support (on)]) | 
|  | 743 | if test "$with_minimum" = "yes" -a "$with_valid" = "" | 
|  | 744 | then | 
|  | 745 | with_valid=no | 
|  | 746 | fi | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 747 | if test "$with_valid" = "no" ; then | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 748 | echo Disabling DTD validation support | 
|  | 749 | WITH_VALID=0 | 
|  | 750 | TEST_VALID= | 
|  | 751 | TEST_VTIME= | 
|  | 752 | else | 
|  | 753 | WITH_VALID=1 | 
|  | 754 | TEST_VALID=Validtests | 
|  | 755 | TEST_VTIME=VTimingtests | 
|  | 756 | fi | 
|  | 757 | AC_SUBST(WITH_VALID) | 
|  | 758 | AC_SUBST(TEST_VALID) | 
|  | 759 | AC_SUBST(TEST_VTIME) | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 760 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 761 | AC_ARG_WITH(catalog, | 
|  | 762 | [  --with-catalog          add the Catalog support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 763 | if test "$with_minimum" = "yes" -a "$with_catalog" = "" | 
|  | 764 | then | 
|  | 765 | with_catalog=no | 
|  | 766 | fi | 
| Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 767 | if test "$with_catalog" = "no" ; then | 
|  | 768 | echo Disabling Catalog support | 
|  | 769 | WITH_CATALOG=0 | 
|  | 770 | CATALOG_OBJ= | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 771 | TEST_CATALOG= | 
| Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 772 | else | 
|  | 773 | WITH_CATALOG=1 | 
|  | 774 | CATALOG_OBJ="catalog.o" | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 775 | TEST_CATALOG=Catatests | 
| Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 776 | fi | 
|  | 777 | AC_SUBST(WITH_CATALOG) | 
|  | 778 | AC_SUBST(CATALOG_OBJ) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 779 | AC_SUBST(TEST_CATALOG) | 
| Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 780 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 781 | AC_ARG_WITH(docbook, | 
|  | 782 | [  --with-docbook          add Docbook SGML support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 783 | if test "$with_minimum" = "yes" -a "$with_docbook" = "" | 
|  | 784 | then | 
|  | 785 | with_docbook=no | 
|  | 786 | fi | 
| Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 787 | if test "$with_docbook" = "no" ; then | 
|  | 788 | echo Disabling Docbook support | 
| Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 789 | WITH_DOCB=0 | 
|  | 790 | DOCB_OBJ= | 
| Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 791 | else | 
|  | 792 | WITH_DOCB=1 | 
|  | 793 | DOCB_OBJ="DOCBparser.o" | 
| Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 794 | fi | 
|  | 795 | AC_SUBST(WITH_DOCB) | 
|  | 796 | AC_SUBST(DOCB_OBJ) | 
|  | 797 |  | 
|  | 798 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 799 | AC_ARG_WITH(xpath, | 
|  | 800 | [  --with-xpath            add the XPATH support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 801 | if test "$with_minimum" = "yes" -a "$with_xpath" = "" | 
|  | 802 | then | 
|  | 803 | with_xpath=no | 
|  | 804 | fi | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 805 | if test "$with_xpath" = "no" ; then | 
|  | 806 | echo Disabling XPATH support | 
| Daniel Veillard | 52afe80 | 2000-10-22 16:56:02 +0000 | [diff] [blame] | 807 | with_xptr="no" | 
| Daniel Veillard | 34de97f | 2002-04-30 14:29:22 +0000 | [diff] [blame] | 808 | with_c14n="no" | 
| Daniel Veillard | 070803b | 2002-05-03 07:29:38 +0000 | [diff] [blame] | 809 | with_xinclude="no" | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 810 | WITH_XPATH=0 | 
|  | 811 | XPATH_OBJ= | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 812 | TEST_XPATH= | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 813 | else | 
|  | 814 | WITH_XPATH=1 | 
|  | 815 | XPATH_OBJ=xpath.o | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 816 | TEST_XPATH=XPathtests | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 817 | fi | 
|  | 818 | AC_SUBST(WITH_XPATH) | 
|  | 819 | AC_SUBST(XPATH_OBJ) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 820 | AC_SUBST(TEST_XPATH) | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 821 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 822 | AC_ARG_WITH(xptr, | 
|  | 823 | [  --with-xptr             add the XPointer support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 824 | if test "$with_minimum" = "yes" -a "$with_xptr" = "" | 
|  | 825 | then | 
|  | 826 | with_xptr=no | 
|  | 827 | fi | 
| Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 828 | if test "$with_xptr" = "no" ; then | 
|  | 829 | echo Disabling XPointer support | 
|  | 830 | WITH_XPTR=0 | 
|  | 831 | XPTR_OBJ= | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 832 | TEST_XPTR= | 
| Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 833 | else | 
|  | 834 | WITH_XPTR=1 | 
|  | 835 | XPTR_OBJ=xpointer.o | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 836 | TEST_XPTR=XPtrtests | 
| Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 837 | fi | 
|  | 838 | AC_SUBST(WITH_XPTR) | 
|  | 839 | AC_SUBST(XPTR_OBJ) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 840 | AC_SUBST(TEST_XPTR) | 
| Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 841 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 842 | AC_ARG_WITH(c14n, | 
|  | 843 | [  --with-c14n             add the Canonicalization support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 844 | if test "$with_minimum" = "yes" -a "$with_c14n" = "" | 
|  | 845 | then | 
|  | 846 | with_c14n=no | 
|  | 847 | fi | 
| Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 848 | if test "$with_c14n" = "no" ; then | 
|  | 849 | echo Disabling C14N support | 
|  | 850 | WITH_C14N=0 | 
|  | 851 | C14N_OBJ= | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 852 | TEST_C14N= | 
| Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 853 | else | 
|  | 854 | WITH_C14N=1 | 
|  | 855 | C14N_OBJ="c14n.c" | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 856 | TEST_C14N=C14Ntests | 
| Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 857 | fi | 
|  | 858 | AC_SUBST(WITH_C14N) | 
|  | 859 | AC_SUBST(C14N_OBJ) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 860 | AC_SUBST(TEST_C14N) | 
| Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 861 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 862 | AC_ARG_WITH(xinclude, | 
|  | 863 | [  --with-xinclude         add the XInclude support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 864 | if test "$with_minimum" = "yes" -a "$with_xinclude" = "" | 
|  | 865 | then | 
|  | 866 | with_xinclude=no | 
|  | 867 | fi | 
| Daniel Veillard | 9e8bfae | 2000-11-06 16:43:11 +0000 | [diff] [blame] | 868 | if test "$with_xinclude" = "no" ; then | 
|  | 869 | echo Disabling XInclude support | 
|  | 870 | WITH_XINCLUDE=0 | 
|  | 871 | XINCLUDE_OBJ= | 
|  | 872 | with_xinclude="no" | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 873 | TEST_XINCLUDE= | 
| Daniel Veillard | 9e8bfae | 2000-11-06 16:43:11 +0000 | [diff] [blame] | 874 | else | 
|  | 875 | WITH_XINCLUDE=1 | 
|  | 876 | XINCLUDE_OBJ=xinclude.o | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 877 | TEST_XINCLUDE=XIncludetests | 
| Daniel Veillard | 9e8bfae | 2000-11-06 16:43:11 +0000 | [diff] [blame] | 878 | fi | 
|  | 879 | AC_SUBST(WITH_XINCLUDE) | 
|  | 880 | AC_SUBST(XINCLUDE_OBJ) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 881 | AC_SUBST(TEST_XINCLUDE) | 
| Daniel Veillard | 9e8bfae | 2000-11-06 16:43:11 +0000 | [diff] [blame] | 882 |  | 
| Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 883 | WITH_ICONV=0 | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 884 | AC_ARG_WITH(iconv, | 
|  | 885 | [  --with-iconv[[=DIR]]      add ICONV support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 886 | if test "$with_minimum" = "yes" -a "$with_iconv" = "" | 
|  | 887 | then | 
|  | 888 | with_iconv=no | 
|  | 889 | fi | 
| Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 890 | if test "$with_iconv" = "no" ; then | 
|  | 891 | echo Disabling ICONV support | 
| Daniel Veillard | d574f78 | 2001-03-14 19:40:17 +0000 | [diff] [blame] | 892 | else | 
| Daniel Veillard | 220346d | 2001-12-07 11:33:54 +0000 | [diff] [blame] | 893 | if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then | 
| Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 894 | CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" | 
| Daniel Veillard | f5b44e4 | 2001-09-17 17:19:54 +0000 | [diff] [blame] | 895 | # Export this since our headers include iconv.h | 
|  | 896 | XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include" | 
| Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 897 | ICONV_LIBS="-L$with_iconv/lib" | 
| Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 898 | fi | 
| Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 899 |  | 
|  | 900 | AC_CHECK_HEADER(iconv.h, | 
|  | 901 | AC_MSG_CHECKING(for iconv) | 
|  | 902 | AC_TRY_LINK([#include <stdlib.h> | 
|  | 903 | #include <iconv.h>],[ | 
|  | 904 | iconv_t cd = iconv_open ("",""); | 
|  | 905 | iconv (cd, NULL, NULL, NULL, NULL);],[ | 
|  | 906 | AC_MSG_RESULT(yes) | 
|  | 907 | WITH_ICONV=1],[ | 
|  | 908 | AC_MSG_RESULT(no) | 
|  | 909 | AC_MSG_CHECKING(for iconv in -liconv) | 
|  | 910 |  | 
|  | 911 | _ldflags="${LDFLAGS}" | 
|  | 912 | _libs="${LIBS}" | 
|  | 913 | LDFLAGS="${LDFLAGS} ${ICONV_LIBS}" | 
|  | 914 | LIBS="${LIBS} -liconv" | 
|  | 915 |  | 
|  | 916 | AC_TRY_LINK([#include <stdlib.h> | 
|  | 917 | #include <iconv.h>],[ | 
|  | 918 | iconv_t cd = iconv_open ("",""); | 
|  | 919 | iconv (cd, NULL, NULL, NULL, NULL);],[ | 
|  | 920 | AC_MSG_RESULT(yes) | 
|  | 921 | WITH_ICONV=1 | 
|  | 922 | ICONV_LIBS="${ICONV_LIBS} -liconv" | 
|  | 923 | LIBS="${_libs}" | 
|  | 924 | LDFLAGS="${_ldflags}"],[ | 
|  | 925 | AC_MSG_RESULT(no) | 
|  | 926 | LIBS="${_libs}" | 
|  | 927 | LDFLAGS="${_ldflags}"])])) | 
|  | 928 | fi | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 929 | case "$host" in | 
|  | 930 | *mingw*) M_LIBS="" | 
|  | 931 | ;; | 
|  | 932 | *) M_LIBS="-lm" | 
|  | 933 | ;; | 
|  | 934 | esac | 
| Daniel Veillard | b82c166 | 2001-12-09 14:00:54 +0000 | [diff] [blame] | 935 | XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS" | 
| Daniel Veillard | 90d165b | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 936 | XML_LIBTOOLLIBS="libxml2.la" | 
| Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 937 | AC_SUBST(WITH_ICONV) | 
|  | 938 |  | 
| Daniel Veillard | 01fc1a9 | 2003-07-30 15:12:01 +0000 | [diff] [blame] | 939 | WITH_ISO8859X=1 | 
|  | 940 | AC_ARG_WITH(iso8859x, | 
|  | 941 | [  --with-iso8859x         add ISO8859X support if no iconv (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 942 | if test "$with_minimum" = "yes" -a "$with_iso8859x" = "" | 
|  | 943 | then | 
|  | 944 | with_iso8859x=no | 
|  | 945 | fi | 
| Daniel Veillard | 01fc1a9 | 2003-07-30 15:12:01 +0000 | [diff] [blame] | 946 | if test "$WITH_ICONV" != "1" ; then | 
|  | 947 | if test "$with_iso8859x" = "no" ; then | 
|  | 948 | echo Disabling ISO8859X support | 
|  | 949 | WITH_ISO8859X=0 | 
|  | 950 | fi | 
|  | 951 | fi | 
|  | 952 | AC_SUBST(WITH_ISO8859X) | 
|  | 953 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 954 | AC_ARG_WITH(schemas, | 
| Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 955 | [  --with-schemas          add Relax-NG and experimental Schemas support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 956 | if test "$with_minimum" = "yes" -a "$with_schemas" = "" | 
|  | 957 | then | 
|  | 958 | with_schemas=no | 
|  | 959 | fi | 
| Daniel Veillard | ef4d3bc | 2003-02-07 12:38:22 +0000 | [diff] [blame] | 960 | if test "$with_schemas" = "no" ; then | 
|  | 961 | echo "Disabled Schemas/Relax-NG support" | 
|  | 962 | WITH_SCHEMAS=0 | 
|  | 963 | TEST_SCHEMAS= | 
|  | 964 | else | 
| Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 965 | echo "Enabled Schemas/Relax-NG support" | 
| Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 966 | WITH_SCHEMAS=1 | 
| Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 967 | TEST_SCHEMAS="Schemastests Relaxtests" | 
| Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 968 | if test "$PYTHON_INCLUDES" != "" ; then | 
|  | 969 | PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests" | 
|  | 970 | fi | 
| Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 971 | with_regexps=yes | 
| Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 972 | fi | 
|  | 973 | AC_SUBST(WITH_SCHEMAS) | 
|  | 974 | AC_SUBST(TEST_SCHEMAS) | 
|  | 975 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 976 | AC_ARG_WITH(regexps, | 
|  | 977 | [  --with-regexps          add Regular Expressions support (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 978 | if test "$with_minimum" = "yes" -a "$with_regexps" = "" | 
|  | 979 | then | 
|  | 980 | with_regexps=no | 
|  | 981 | fi | 
| Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 982 | if test "$with_regexps" = "no" ; then | 
|  | 983 | echo Disabling Regexps support | 
|  | 984 | WITH_REGEXPS=0 | 
|  | 985 | TEST_REGEXPS= | 
|  | 986 | else | 
|  | 987 | WITH_REGEXPS=1 | 
|  | 988 | TEST_REGEXPS="Regexptests Automatatests" | 
|  | 989 | fi | 
|  | 990 | AC_SUBST(WITH_REGEXPS) | 
|  | 991 | AC_SUBST(TEST_REGEXPS) | 
|  | 992 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 993 | AC_ARG_WITH(debug, | 
|  | 994 | [  --with-debug            add the debugging module (on)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 995 | if test "$with_minimum" = "yes" -a "$with_debug" = "" | 
|  | 996 | then | 
|  | 997 | with_debug=no | 
|  | 998 | fi | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 999 | if test "$with_debug" = "no" ; then | 
|  | 1000 | echo Disabling DEBUG support | 
|  | 1001 | WITH_DEBUG=0 | 
|  | 1002 | DEBUG_OBJ= | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1003 | TEST_DEBUG= | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1004 | else | 
|  | 1005 | WITH_DEBUG=1 | 
|  | 1006 | DEBUG_OBJ=debugXML.o | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1007 | TEST_DEBUG=Scripttests | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1008 | fi | 
|  | 1009 | AC_SUBST(WITH_DEBUG) | 
|  | 1010 | AC_SUBST(DEBUG_OBJ) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1011 | AC_SUBST(TEST_DEBUG) | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1012 |  | 
| William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 1013 | AC_ARG_WITH(mem_debug, | 
|  | 1014 | [  --with-mem-debug        add the memory debugging module (off)]) | 
| Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1015 | if test "$with_minimum" = "yes" -a "$with_mem_debug" = "" | 
|  | 1016 | then | 
|  | 1017 | with_mem_debug=no | 
|  | 1018 | fi | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1019 | if test "$with_mem_debug" = "yes" ; then | 
| William M. Brack | 306e33c | 2004-06-12 01:01:22 +0000 | [diff] [blame] | 1020 | if test "$with_thread_alloc" = "yes" ; then | 
|  | 1021 | echo Disabling memory debug - cannot use mem-debug with thread-alloc! | 
|  | 1022 | WITH_MEM_DEBUG=0 | 
|  | 1023 | else | 
|  | 1024 | echo Enabling memory debug support | 
|  | 1025 | WITH_MEM_DEBUG=1 | 
|  | 1026 | fi | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1027 | else | 
|  | 1028 | WITH_MEM_DEBUG=0 | 
|  | 1029 | fi | 
|  | 1030 | AC_SUBST(WITH_MEM_DEBUG) | 
|  | 1031 |  | 
| Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1032 |  | 
|  | 1033 | WIN32_EXTRA_LIBADD= | 
|  | 1034 | WIN32_EXTRA_LDFLAGS= | 
|  | 1035 | case "$host" in | 
|  | 1036 | *-*-mingw*) | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 1037 | CPPFLAGS="$CPPFLAGS -DWIN32" | 
|  | 1038 | WIN32_EXTRA_LIBADD="-lws2_32" | 
| Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1039 | WIN32_EXTRA_LDFLAGS="-no-undefined" | 
|  | 1040 | AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation]) | 
|  | 1041 | AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around]) | 
|  | 1042 | AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around]) | 
|  | 1043 | ;; | 
| Daniel Veillard | d392ba7 | 2004-08-04 14:56:45 +0000 | [diff] [blame] | 1044 | *-*-cygwin*) | 
|  | 1045 | CYGWIN_EXTRA_LDFLAGS="-no-undefined" | 
|  | 1046 | CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python2.3/config -lpython2.3" | 
|  | 1047 | ;; | 
| Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1048 | esac | 
|  | 1049 | AC_SUBST(WIN32_EXTRA_LIBADD) | 
|  | 1050 | AC_SUBST(WIN32_EXTRA_LDFLAGS) | 
| Daniel Veillard | d392ba7 | 2004-08-04 14:56:45 +0000 | [diff] [blame] | 1051 | AC_SUBST(CYGWIN_EXTRA_LDFLAGS) | 
|  | 1052 | AC_SUBST(CYGWIN_EXTRA_PYTHON_LIBADD) | 
| Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1053 |  | 
| Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 1054 | AC_SUBST(CPPFLAGS) | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 1055 | AC_SUBST(CFLAGS) | 
| Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 1056 | AC_SUBST(XML_CFLAGS) | 
| Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 1057 |  | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1058 | AC_SUBST(XML_LIBDIR) | 
|  | 1059 | AC_SUBST(XML_LIBS) | 
| Daniel Veillard | 90d165b | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 1060 | AC_SUBST(XML_LIBTOOLLIBS) | 
| Daniel Veillard | 81418e3 | 2001-05-22 15:08:55 +0000 | [diff] [blame] | 1061 | AC_SUBST(ICONV_LIBS) | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1062 | AC_SUBST(XML_INCLUDEDIR) | 
|  | 1063 | AC_SUBST(HTML_DIR) | 
|  | 1064 | AC_SUBST(HAVE_ISNAN) | 
|  | 1065 | AC_SUBST(HAVE_ISINF) | 
| Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 1066 | AC_SUBST(PYTHON) | 
|  | 1067 | AC_SUBST(PYTHON_VERSION) | 
|  | 1068 | AC_SUBST(PYTHON_INCLUDES) | 
| Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 1069 | AC_SUBST(PYTHON_SITE_PACKAGES) | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1070 |  | 
| Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1071 | AC_SUBST(M_LIBS) | 
| Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 1072 | AC_SUBST(RDL_LIBS) | 
| Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1073 |  | 
| Daniel Veillard | 9715c17 | 2002-11-25 16:33:40 +0000 | [diff] [blame] | 1074 | dnl for the spec file | 
|  | 1075 | RELDATE=`date +'%a %b %e %Y'` | 
|  | 1076 | AC_SUBST(RELDATE) | 
| Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 1077 | AC_SUBST(PYTHON_TESTS) | 
| Daniel Veillard | 9715c17 | 2002-11-25 16:33:40 +0000 | [diff] [blame] | 1078 |  | 
| Daniel Veillard | c6e997c | 2003-01-27 12:35:42 +0000 | [diff] [blame] | 1079 | rm -f COPYING.LIB COPYING | 
| Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 1080 | ln -s Copyright COPYING | 
|  | 1081 |  | 
| Daniel Veillard | e4177a5 | 2004-01-08 16:43:57 +0000 | [diff] [blame] | 1082 | # keep on one line for cygwin c.f. #130896 | 
| Daniel Veillard | 06d2524 | 2004-02-25 13:01:42 +0000 | [diff] [blame] | 1083 | AC_OUTPUT(libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py) | 
| Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 1084 |  | 
| Daniel Veillard | 06d2524 | 2004-02-25 13:01:42 +0000 | [diff] [blame] | 1085 | chmod +x xml2-config python/setup.py |