Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. |
| 2 | AC_PREREQ(2.2) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 3 | AC_INIT(entities.c) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 4 | AM_CONFIG_HEADER(config.h) |
Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 5 | AC_CANONICAL_HOST |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 6 | |
Daniel Veillard | cf46199 | 2000-03-14 18:30:20 +0000 | [diff] [blame] | 7 | LIBXML_MAJOR_VERSION=2 |
Daniel Veillard | 09ab7e1 | 2001-07-10 15:49:44 +0000 | [diff] [blame] | 8 | LIBXML_MINOR_VERSION=4 |
Daniel Veillard | e16b574 | 2002-09-26 17:50:03 +0000 | [diff] [blame^] | 9 | LIBXML_MICRO_VERSION=25 |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 10 | LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION |
| 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 | |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 15 | AC_SUBST(LIBXML_MAJOR_VERSION) |
| 16 | AC_SUBST(LIBXML_MINOR_VERSION) |
| 17 | AC_SUBST(LIBXML_MICRO_VERSION) |
| 18 | AC_SUBST(LIBXML_VERSION) |
| 19 | AC_SUBST(LIBXML_VERSION_INFO) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 20 | AC_SUBST(LIBXML_VERSION_NUMBER) |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 21 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 22 | VERSION=${LIBXML_VERSION} |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 23 | |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 24 | AM_INIT_AUTOMAKE(libxml2, $VERSION) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 25 | |
| 26 | AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ]) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 27 | |
| 28 | dnl Checks for programs. |
| 29 | AC_PROG_CC |
| 30 | AC_PROG_INSTALL |
Sebastian Wilhelmi | a44c8a4 | 1998-08-07 08:38:58 +0000 | [diff] [blame] | 31 | AC_PROG_CPP |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 32 | AC_PATH_PROG(RM, rm, /bin/rm) |
| 33 | AC_PATH_PROG(MV, mv, /bin/mv) |
| 34 | AC_PATH_PROG(TAR, tar, /bin/tar) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 35 | |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 36 | dnl Make sure we have an ANSI compiler |
| 37 | AM_C_PROTOTYPES |
| 38 | test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant) |
| 39 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 40 | AM_PROG_LIBTOOL |
| 41 | |
| 42 | AM_MAINTAINER_MODE |
| 43 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 44 | dnl Checks for zlib library. |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 45 | _cppflags="${CPPFLAGS}" |
| 46 | _ldflags="${LDFLAGS}" |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 47 | |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 48 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 49 | AC_ARG_WITH(zlib, |
| 50 | [ --with-zlib[=DIR] use libz in DIR],[ |
| 51 | if test "$withval" != "no" -a "$withval" != "yes"; then |
| 52 | Z_DIR=$withval |
| 53 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
| 54 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
| 55 | fi |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 56 | ]) |
| 57 | if test "$with_zlib" = "no"; then |
| 58 | echo "Disabling compression support" |
| 59 | else |
Daniel Veillard | 3fbe8e3 | 2001-10-06 13:30:33 +0000 | [diff] [blame] | 60 | AC_CHECK_HEADERS(zlib.h, |
| 61 | AC_CHECK_LIB(z, gzread,[ |
| 62 | AC_DEFINE(HAVE_LIBZ) |
| 63 | if test "x${Z_DIR}" != "x"; then |
| 64 | Z_CFLAGS="-I${Z_DIR}/include" |
| 65 | Z_LIBS="-L${Z_DIR}/lib -lz" |
| 66 | [case ${host} in |
| 67 | *-*-solaris*) |
| 68 | Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" |
| 69 | ;; |
| 70 | esac] |
| 71 | else |
| 72 | Z_LIBS="-lz" |
| 73 | fi])) |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 74 | fi |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 75 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 76 | AC_SUBST(Z_CFLAGS) |
| 77 | AC_SUBST(Z_LIBS) |
| 78 | |
| 79 | CPPFLAGS=${_cppflags} |
| 80 | LDFLAGS=${_ldflags} |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 81 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 82 | dnl Checks for header files. |
| 83 | AC_HEADER_DIRENT |
| 84 | AC_HEADER_STDC |
| 85 | AC_CHECK_HEADERS(fcntl.h unistd.h ctype.h dirent.h errno.h malloc.h) |
Daniel Veillard | 27b5528 | 2001-04-11 12:22:25 +0000 | [diff] [blame] | 86 | AC_CHECK_HEADERS(stdarg.h sys/stat.h sys/types.h time.h ansidecl.h) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 87 | AC_CHECK_HEADERS(ieeefp.h nan.h math.h fp_class.h float.h) |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 88 | AC_CHECK_HEADERS(stdlib.h sys/socket.h netinet/in.h arpa/inet.h) |
Daniel Veillard | 46e370e | 2000-07-21 20:32:03 +0000 | [diff] [blame] | 89 | AC_CHECK_HEADERS(netdb.h sys/time.h sys/select.h sys/mman.h) |
Daniel Veillard | dd4b912 | 2002-03-26 07:58:43 +0000 | [diff] [blame] | 90 | AC_CHECK_HEADERS(sys/timeb.h signal.h arpa/nameser.h resolv.h) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 91 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 92 | dnl Specific dir for HTML output ? |
| 93 | if test "x$with_html_dir" = "x" ; then |
Daniel Veillard | 0a6c358 | 2001-03-14 19:15:37 +0000 | [diff] [blame] | 94 | HTML_DIR='$(prefix)/doc' |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 95 | else |
| 96 | HTML_DIR=$with_html_dir |
| 97 | fi |
| 98 | |
| 99 | AC_SUBST(HTML_DIR) |
| 100 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 101 | dnl Checks for library functions. |
| 102 | AC_FUNC_STRFTIME |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 103 | AC_CHECK_FUNCS(strdup strndup strerror) |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 104 | AC_CHECK_FUNCS(finite isnand fp_class class fpclass) |
Daniel Veillard | 90bc371 | 2002-03-07 15:12:58 +0000 | [diff] [blame] | 105 | AC_CHECK_FUNCS(strftime localtime gettimeofday ftime) |
Daniel Veillard | 068a965 | 2001-06-07 15:30:26 +0000 | [diff] [blame] | 106 | AC_CHECK_FUNCS(stat _stat signal) |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 107 | |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 108 | dnl Checking the standard string functions availability |
| 109 | AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,, |
| 110 | NEED_TRIO=1) |
| 111 | |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 112 | dnl Checks for inet libraries: |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 113 | AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent)) |
| 114 | AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt)) |
| 115 | AC_CHECK_FUNC(connect, , AC_CHECK_LIB(inet, connect)) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 116 | |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 117 | dnl Determine what socket length (socklen_t) data type is |
| 118 | AC_MSG_CHECKING([for type of socket length (socklen_t)]) |
| 119 | AC_TRY_COMPILE2([ |
| 120 | #include <stddef.h> |
| 121 | #include <sys/types.h> |
| 122 | #include <sys/socket.h>],[ |
| 123 | (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)],[ |
| 124 | AC_MSG_RESULT(socklen_t *) |
| 125 | SOCKLEN_T=socklen_t],[ |
| 126 | AC_TRY_COMPILE2([ |
| 127 | #include <stddef.h> |
| 128 | #include <sys/types.h> |
| 129 | #include <sys/socket.h>],[ |
| 130 | (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)],[ |
| 131 | AC_MSG_RESULT(size_t *) |
| 132 | SOCKLEN_T=size_t],[ |
| 133 | AC_TRY_COMPILE2([ |
| 134 | #include <stddef.h> |
| 135 | #include <sys/types.h> |
| 136 | #include <sys/socket.h>],[ |
| 137 | (void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[ |
| 138 | AC_MSG_RESULT(int *) |
| 139 | SOCKLEN_T=int],[ |
| 140 | AC_MSG_WARN(could not determine)])])]) |
| 141 | AC_DEFINE_UNQUOTED(SOCKLEN_T, $SOCKLEN_T) |
| 142 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 143 | dnl Checks for isnan in libm if not in libc |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 144 | AC_CHECK_FUNC(isnan, , AC_CHECK_LIB(m, isnan, |
Bjorn Reese | e1dc011 | 2001-03-03 12:09:03 +0000 | [diff] [blame] | 145 | [AC_DEFINE(HAVE_ISNAN)])) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 146 | |
Daniel Veillard | 760f442 | 2001-02-15 14:59:48 +0000 | [diff] [blame] | 147 | AC_CHECK_FUNC(isinf, AC_DEFINE(HAVE_ISINF) , AC_CHECK_LIB(m, isinf, |
Bjorn Reese | e1dc011 | 2001-03-03 12:09:03 +0000 | [diff] [blame] | 148 | [AC_DEFINE(HAVE_ISINF)])) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 149 | |
| 150 | XML_LIBDIR='-L${libdir}' |
Daniel Veillard | e7dd2b8 | 2002-03-15 18:44:02 +0000 | [diff] [blame] | 151 | XML_INCLUDEDIR='-I${includedir}/libxml2' |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 152 | |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 153 | dnl |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 154 | dnl Extra flags |
| 155 | dnl |
| 156 | XML_CFLAGS="" |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 157 | RDL_LIBS="" |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 158 | |
| 159 | dnl |
Daniel Veillard | b45c43b | 2001-04-28 17:02:11 +0000 | [diff] [blame] | 160 | dnl Workaround for native compilers |
| 161 | dnl HP : http://bugs.gnome.org/db/31/3163.html |
| 162 | dnl DEC : Enable NaN/Inf |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 163 | dnl |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 164 | if test "${GCC}" != "yes" ; then |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 165 | case "${host}" in |
| 166 | *-*-hpux* ) |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 167 | CFLAGS="${CFLAGS} -Wp,-H30000" |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 168 | ;; |
Daniel Veillard | b45c43b | 2001-04-28 17:02:11 +0000 | [diff] [blame] | 169 | *-dec-osf* ) |
| 170 | CFLAGS="${CFLAGS} -ieee" |
| 171 | ;; |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 172 | esac |
Daniel Veillard | d574f78 | 2001-03-14 19:40:17 +0000 | [diff] [blame] | 173 | else |
| 174 | CFLAGS="${CFLAGS} -Wall" |
Daniel Veillard | 14839d5 | 2001-06-06 16:11:56 +0000 | [diff] [blame] | 175 | case "${host}" in |
| 176 | alpha*-*-linux* ) |
| 177 | CFLAGS="${CFLAGS} -mieee" |
| 178 | ;; |
Daniel Veillard | cb5b4d6 | 2002-04-11 08:24:26 +0000 | [diff] [blame] | 179 | alpha*-*-osf* ) |
| 180 | CFLAGS="${CFLAGS} -mieee" |
| 181 | ;; |
Daniel Veillard | 14839d5 | 2001-06-06 16:11:56 +0000 | [diff] [blame] | 182 | esac |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 183 | fi |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 184 | case ${host} in |
| 185 | *-*-solaris*) |
Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 186 | XML_LIBDIR="${XML_LIBDIR} -R${libdir}" |
| 187 | ;; |
Daniel Veillard | d30be4a | 2002-03-28 18:25:31 +0000 | [diff] [blame] | 188 | hppa*-hp-mpeix) |
| 189 | NEED_TRIO=1 |
| 190 | ;; |
Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 191 | esac |
| 192 | |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 193 | |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 194 | dnl |
| 195 | dnl check for python |
| 196 | dnl |
| 197 | |
| 198 | PYTHON= |
| 199 | PYTHON_VERSION= |
| 200 | PYTHON_INCLUDES= |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 201 | PYTHON_SITE_PACKAGES= |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 202 | AC_ARG_WITH(python, [ --with-python[=DIR] Build Python bindings if found]) |
| 203 | if test "$with_python" != "no" ; then |
| 204 | if test -x "$with_python/bin/python" |
| 205 | then |
| 206 | echo Found python in $with_python/bin/python |
| 207 | PYTHON="$with_python/bin/python" |
Daniel Veillard | 9b731d7 | 2002-04-14 12:56:08 +0000 | [diff] [blame] | 208 | else |
Daniel Veillard | a8a89fe | 2002-04-12 21:03:34 +0000 | [diff] [blame] | 209 | if test -x "$with_python" |
| 210 | then |
| 211 | echo Found python in $with_python/bin/python |
| 212 | PYTHON="$with_python/bin/python" |
| 213 | else |
| 214 | AC_PATH_PROG(PYTHON, python python2.2 python2.1 python2.0 python1.6 python1.5) |
| 215 | fi |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 216 | fi |
| 217 | if test "$PYTHON" != "" |
| 218 | then |
| 219 | PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` |
| 220 | echo Found Python version $PYTHON_VERSION |
| 221 | fi |
| 222 | if test "$PYTHON_VERSION" != "" |
| 223 | then |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 224 | if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ |
| 225 | -d $with_python/lib/python$PYTHON_VERSION/site-packages |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 226 | then |
| 227 | PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 228 | PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 229 | else |
| 230 | if test -r $prefix/include/python$PYTHON_VERSION/Python.h |
| 231 | then |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 232 | PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' |
Daniel Veillard | e3b7d9a | 2002-08-14 14:11:30 +0000 | [diff] [blame] | 233 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 234 | else |
| 235 | if test -r /usr/include/python$PYTHON_VERSION/Python.h |
| 236 | then |
| 237 | PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION |
Daniel Veillard | e3b7d9a | 2002-08-14 14:11:30 +0000 | [diff] [blame] | 238 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 239 | else |
| 240 | echo could not find python$PYTHON_VERSION/Python.h |
| 241 | fi |
| 242 | fi |
Daniel Veillard | b6984ef | 2002-08-14 16:55:31 +0000 | [diff] [blame] | 243 | if ! test -d "$PYTHON_SITE_PACKAGES" |
| 244 | then |
| 245 | PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` |
| 246 | fi |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 247 | fi |
| 248 | fi |
| 249 | fi |
| 250 | AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "") |
Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 251 | if test "$PYTHON_INCLUDES" != "" |
| 252 | then |
| 253 | PYTHON_SUBDIR=python |
| 254 | else |
| 255 | PYTHON_SUBDIR= |
| 256 | fi |
| 257 | AC_SUBST(PYTHON_SUBDIR) |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 258 | |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 259 | dnl |
| 260 | dnl Tester makes use of readline if present |
| 261 | dnl |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 262 | _cppflags="${CPPFLAGS}" |
| 263 | _ldflags="${LDFLAGS}" |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 264 | |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 265 | AC_ARG_WITH(readline, |
| 266 | [ --with-readline=DIR use readline in DIR],[ |
| 267 | if test "$withval" != "no" -a "$withval" != "yes"; then |
| 268 | RDL_DIR=$withval |
| 269 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
| 270 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
| 271 | fi |
| 272 | ]) |
| 273 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 274 | dnl |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 275 | dnl specific tests to setup DV's devel environment with debug etc ... |
Daniel Veillard | 81418e3 | 2001-05-22 15:08:55 +0000 | [diff] [blame] | 276 | dnl (-Wunreachable-code) |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 277 | dnl |
| 278 | if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then |
| 279 | if test "${with_mem_debug}" = "" ; then |
| 280 | with_mem_debug="yes" |
| 281 | fi |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 282 | if test "${with_docbook}" = "" ; then |
| 283 | with_docbook="yes" |
| 284 | fi |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 285 | if test "${with_xptr}" = "" ; then |
| 286 | with_xptr="yes" |
| 287 | fi |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 288 | if test "${with_schemas}" = "" ; then |
| 289 | with_schemas="yes" |
| 290 | fi |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 291 | 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 | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 292 | dnl -Wcast-qual -ansi |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 293 | fi |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 294 | |
| 295 | dnl |
| 296 | dnl Check for trio string functions |
| 297 | dnl |
| 298 | |
| 299 | if test "${NEED_TRIO}" = "1" ; then |
| 300 | echo Adding trio library for string functions |
| 301 | WITH_TRIO=1 |
| 302 | else |
| 303 | WITH_TRIO=0 |
| 304 | fi |
Daniel Veillard | 01ef738 | 2001-05-08 07:31:43 +0000 | [diff] [blame] | 305 | AM_CONDITIONAL(WITH_TRIO_SOURCES, test "${NEED_TRIO}" = "1") |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 306 | AC_SUBST(WITH_TRIO) |
| 307 | |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 308 | dnl |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 309 | dnl Aloow to enable/disable various pieces |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 310 | dnl |
| 311 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 312 | THREAD_LIBS="" |
| 313 | WITH_THREADS=0 |
| 314 | THREAD_CFLAGS="" |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 315 | TEST_THREADS="" |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 316 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 317 | AC_ARG_WITH(threads, [ --with-threads Add multithread support(off)]) |
| 318 | if test "$with_threads" = "yes" ; then |
| 319 | echo Enabling multithreaded support |
| 320 | |
| 321 | AC_CHECK_HEADER(pthread.h, |
Daniel Veillard | cbaf399 | 2001-12-31 16:16:02 +0000 | [diff] [blame] | 322 | AC_CHECK_LIB(pthread, pthread_join,[ |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 323 | THREAD_LIBS="-lpthread" |
| 324 | AC_DEFINE(HAVE_LIBPTHREAD) |
| 325 | AC_DEFINE(HAVE_PTHREAD_H) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 326 | WITH_THREADS="1"])) |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 327 | |
| 328 | if test "$WITH_THREADS" = "1" ; then |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 329 | THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" |
| 330 | TEST_THREADS="Threadtests" |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 331 | fi |
| 332 | fi |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 333 | AC_ARG_WITH(thread-alloc, [ --with-thread-alloc Add per-thread memory(off)]) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 334 | if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then |
| 335 | THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED" |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 336 | fi |
| 337 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 338 | AC_SUBST(THREAD_LIBS) |
| 339 | AC_SUBST(WITH_THREADS) |
| 340 | AC_SUBST(THREAD_CFLAGS) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 341 | AC_SUBST(TEST_THREADS) |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 342 | |
| 343 | AC_ARG_WITH(history, [ --with-history Add history support to xmllint shell(off)]) |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 344 | if test "$with_history" = "yes" ; then |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 345 | echo Enabling xmllint shell history |
| 346 | dnl check for terminal library. this is a very cool solution |
| 347 | dnl from octave's configure.in |
| 348 | unset tcap |
| 349 | for termlib in ncurses curses termcap terminfo termlib; do |
| 350 | AC_CHECK_LIB(${termlib}, tputs, [tcap="-l$termlib"]) |
| 351 | test -n "$tcap" && break |
| 352 | done |
| 353 | |
| 354 | AC_CHECK_HEADER(readline/history.h, |
| 355 | AC_CHECK_LIB(history, append_history,[ |
| 356 | RDL_LIBS="-lhistory" |
| 357 | AC_DEFINE(HAVE_LIBHISTORY)])) |
| 358 | AC_CHECK_HEADER(readline/readline.h, |
| 359 | AC_CHECK_LIB(readline, readline,[ |
| 360 | RDL_LIBS="-lreadline $RDL_LIBS $tcap" |
| 361 | AC_DEFINE(HAVE_LIBREADLINE)], , $tcap)) |
| 362 | if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then |
| 363 | CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include" |
| 364 | RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS" |
| 365 | else |
| 366 | CPPFLAGS=${_cppflags} |
| 367 | fi |
| 368 | LDFLAGS=${_ldflags} |
| 369 | fi |
| 370 | |
| 371 | AC_SUBST(WITH_FTP) |
| 372 | AC_SUBST(FTP_OBJ) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 373 | AC_ARG_WITH(ftp, [ --with-ftp Add the FTP support (on)]) |
| 374 | if test "$with_ftp" = "no" ; then |
| 375 | echo Disabling FTP support |
| 376 | WITH_FTP=0 |
| 377 | FTP_OBJ= |
| 378 | else |
| 379 | WITH_FTP=1 |
| 380 | FTP_OBJ=nanoftp.o |
| 381 | fi |
| 382 | AC_SUBST(WITH_FTP) |
| 383 | AC_SUBST(FTP_OBJ) |
| 384 | |
| 385 | AC_ARG_WITH(http, [ --with-http Add the HTTP support (on)]) |
| 386 | if test "$with_http" = "no" ; then |
| 387 | echo Disabling HTTP support |
| 388 | WITH_HTTP=0 |
| 389 | HTTP_OBJ= |
| 390 | else |
| 391 | WITH_HTTP=1 |
| 392 | HTTP_OBJ=nanohttp.o |
| 393 | fi |
| 394 | AC_SUBST(WITH_HTTP) |
| 395 | AC_SUBST(HTTP_OBJ) |
| 396 | |
| 397 | AC_ARG_WITH(html, [ --with-html Add the HTML support (on)]) |
| 398 | if test "$with_html" = "no" ; then |
| 399 | echo Disabling HTML support |
| 400 | WITH_HTML=0 |
| 401 | HTML_OBJ= |
| 402 | else |
| 403 | WITH_HTML=1 |
| 404 | HTML_OBJ="HTMLparser.o HTMLtree.o" |
| 405 | fi |
| 406 | AC_SUBST(WITH_HTML) |
| 407 | AC_SUBST(HTML_OBJ) |
| 408 | |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 409 | AC_ARG_WITH(catalog, [ --with-catalog Add the Catalog support (on)]) |
| 410 | if test "$with_catalog" = "no" ; then |
| 411 | echo Disabling Catalog support |
| 412 | WITH_CATALOG=0 |
| 413 | CATALOG_OBJ= |
| 414 | else |
| 415 | WITH_CATALOG=1 |
| 416 | CATALOG_OBJ="catalog.o" |
| 417 | fi |
| 418 | AC_SUBST(WITH_CATALOG) |
| 419 | AC_SUBST(CATALOG_OBJ) |
| 420 | |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 421 | AC_ARG_WITH(docbook, [ --with-docbook Add Docbook SGML support (on)]) |
Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 422 | if test "$with_docbook" = "no" ; then |
| 423 | echo Disabling Docbook support |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 424 | WITH_DOCB=0 |
| 425 | DOCB_OBJ= |
Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 426 | else |
| 427 | WITH_DOCB=1 |
| 428 | DOCB_OBJ="DOCBparser.o" |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 429 | fi |
| 430 | AC_SUBST(WITH_DOCB) |
| 431 | AC_SUBST(DOCB_OBJ) |
| 432 | |
| 433 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 434 | AC_ARG_WITH(xpath, [ --with-xpath Add the XPATH support (on)]) |
| 435 | if test "$with_xpath" = "no" ; then |
| 436 | echo Disabling XPATH support |
Daniel Veillard | 52afe80 | 2000-10-22 16:56:02 +0000 | [diff] [blame] | 437 | with_xptr="no" |
Daniel Veillard | 34de97f | 2002-04-30 14:29:22 +0000 | [diff] [blame] | 438 | with_c14n="no" |
Daniel Veillard | 070803b | 2002-05-03 07:29:38 +0000 | [diff] [blame] | 439 | with_xinclude="no" |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 440 | WITH_XPATH=0 |
| 441 | XPATH_OBJ= |
| 442 | else |
| 443 | WITH_XPATH=1 |
| 444 | XPATH_OBJ=xpath.o |
| 445 | fi |
| 446 | AC_SUBST(WITH_XPATH) |
| 447 | AC_SUBST(XPATH_OBJ) |
| 448 | |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 449 | AC_ARG_WITH(xptr, [ --with-xptr Add the XPointer support (on)]) |
| 450 | if test "$with_xptr" = "no" ; then |
| 451 | echo Disabling XPointer support |
| 452 | WITH_XPTR=0 |
| 453 | XPTR_OBJ= |
| 454 | else |
| 455 | WITH_XPTR=1 |
| 456 | XPTR_OBJ=xpointer.o |
| 457 | fi |
| 458 | AC_SUBST(WITH_XPTR) |
| 459 | AC_SUBST(XPTR_OBJ) |
| 460 | |
Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 461 | AC_ARG_WITH(c14n, [ --with-c14n Add the Canonicalization support (on)]) |
| 462 | if test "$with_c14n" = "no" ; then |
| 463 | echo Disabling C14N support |
| 464 | WITH_C14N=0 |
| 465 | C14N_OBJ= |
| 466 | else |
| 467 | WITH_C14N=1 |
| 468 | C14N_OBJ="c14n.c" |
| 469 | fi |
| 470 | AC_SUBST(WITH_C14N) |
| 471 | AC_SUBST(C14N_OBJ) |
| 472 | |
Daniel Veillard | 9e8bfae | 2000-11-06 16:43:11 +0000 | [diff] [blame] | 473 | AC_ARG_WITH(xinclude, [ --with-xinclude Add the XInclude support (on)]) |
| 474 | if test "$with_xinclude" = "no" ; then |
| 475 | echo Disabling XInclude support |
| 476 | WITH_XINCLUDE=0 |
| 477 | XINCLUDE_OBJ= |
| 478 | with_xinclude="no" |
| 479 | else |
| 480 | WITH_XINCLUDE=1 |
| 481 | XINCLUDE_OBJ=xinclude.o |
| 482 | fi |
| 483 | AC_SUBST(WITH_XINCLUDE) |
| 484 | AC_SUBST(XINCLUDE_OBJ) |
| 485 | |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 486 | WITH_ICONV=0 |
| 487 | AC_ARG_WITH(iconv, [ --with-iconv[=DIR] Add ICONV support (on)]) |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 488 | if test "$with_iconv" = "no" ; then |
| 489 | echo Disabling ICONV support |
Daniel Veillard | d574f78 | 2001-03-14 19:40:17 +0000 | [diff] [blame] | 490 | else |
Daniel Veillard | 220346d | 2001-12-07 11:33:54 +0000 | [diff] [blame] | 491 | if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 492 | CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" |
Daniel Veillard | f5b44e4 | 2001-09-17 17:19:54 +0000 | [diff] [blame] | 493 | # Export this since our headers include iconv.h |
| 494 | XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include" |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 495 | ICONV_LIBS="-L$with_iconv/lib" |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 496 | fi |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 497 | |
| 498 | AC_CHECK_HEADER(iconv.h, |
| 499 | AC_MSG_CHECKING(for iconv) |
| 500 | AC_TRY_LINK([#include <stdlib.h> |
| 501 | #include <iconv.h>],[ |
| 502 | iconv_t cd = iconv_open ("",""); |
| 503 | iconv (cd, NULL, NULL, NULL, NULL);],[ |
| 504 | AC_MSG_RESULT(yes) |
| 505 | WITH_ICONV=1],[ |
| 506 | AC_MSG_RESULT(no) |
| 507 | AC_MSG_CHECKING(for iconv in -liconv) |
| 508 | |
| 509 | _ldflags="${LDFLAGS}" |
| 510 | _libs="${LIBS}" |
| 511 | LDFLAGS="${LDFLAGS} ${ICONV_LIBS}" |
| 512 | LIBS="${LIBS} -liconv" |
| 513 | |
| 514 | AC_TRY_LINK([#include <stdlib.h> |
| 515 | #include <iconv.h>],[ |
| 516 | iconv_t cd = iconv_open ("",""); |
| 517 | iconv (cd, NULL, NULL, NULL, NULL);],[ |
| 518 | AC_MSG_RESULT(yes) |
| 519 | WITH_ICONV=1 |
| 520 | ICONV_LIBS="${ICONV_LIBS} -liconv" |
| 521 | LIBS="${_libs}" |
| 522 | LDFLAGS="${_ldflags}"],[ |
| 523 | AC_MSG_RESULT(no) |
| 524 | LIBS="${_libs}" |
| 525 | LDFLAGS="${_ldflags}"])])) |
| 526 | fi |
Daniel Veillard | b82c166 | 2001-12-09 14:00:54 +0000 | [diff] [blame] | 527 | M_LIBS="-lm" |
| 528 | XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS" |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 529 | AC_SUBST(WITH_ICONV) |
| 530 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 531 | AC_ARG_WITH(schemas, [ --with-schemas Add experimental Schemas support (off)]) |
| 532 | if test "$with_schemas" = "yes" ; then |
| 533 | echo Enabling Schemas support |
| 534 | WITH_SCHEMAS=1 |
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 535 | TEST_SCHEMAS="Schemastests" |
| 536 | with_regexps=yes |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 537 | else |
| 538 | WITH_SCHEMAS=0 |
| 539 | TEST_SCHEMAS= |
| 540 | fi |
| 541 | AC_SUBST(WITH_SCHEMAS) |
| 542 | AC_SUBST(TEST_SCHEMAS) |
| 543 | |
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 544 | AC_ARG_WITH(regexps, [ --with-regexps Add Regular Expressions support (on)]) |
| 545 | if test "$with_regexps" = "no" ; then |
| 546 | echo Disabling Regexps support |
| 547 | WITH_REGEXPS=0 |
| 548 | TEST_REGEXPS= |
| 549 | else |
| 550 | WITH_REGEXPS=1 |
| 551 | TEST_REGEXPS="Regexptests Automatatests" |
| 552 | fi |
| 553 | AC_SUBST(WITH_REGEXPS) |
| 554 | AC_SUBST(TEST_REGEXPS) |
| 555 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 556 | AC_ARG_WITH(debug, [ --with-debug Add the debugging module (on)]) |
| 557 | if test "$with_debug" = "no" ; then |
| 558 | echo Disabling DEBUG support |
| 559 | WITH_DEBUG=0 |
| 560 | DEBUG_OBJ= |
| 561 | else |
| 562 | WITH_DEBUG=1 |
| 563 | DEBUG_OBJ=debugXML.o |
| 564 | fi |
| 565 | AC_SUBST(WITH_DEBUG) |
| 566 | AC_SUBST(DEBUG_OBJ) |
| 567 | |
| 568 | AC_ARG_WITH(mem_debug, [ --with-mem-debug Add the memory debugging module (off)]) |
| 569 | if test "$with_mem_debug" = "yes" ; then |
| 570 | echo Enabling memory debug support |
| 571 | WITH_MEM_DEBUG=1 |
| 572 | else |
| 573 | WITH_MEM_DEBUG=0 |
| 574 | fi |
| 575 | AC_SUBST(WITH_MEM_DEBUG) |
| 576 | |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 577 | AC_SUBST(CFLAGS) |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 578 | AC_SUBST(XML_CFLAGS) |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 579 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 580 | AC_SUBST(XML_LIBDIR) |
| 581 | AC_SUBST(XML_LIBS) |
Daniel Veillard | 81418e3 | 2001-05-22 15:08:55 +0000 | [diff] [blame] | 582 | AC_SUBST(ICONV_LIBS) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 583 | AC_SUBST(XML_INCLUDEDIR) |
| 584 | AC_SUBST(HTML_DIR) |
| 585 | AC_SUBST(HAVE_ISNAN) |
| 586 | AC_SUBST(HAVE_ISINF) |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 587 | AC_SUBST(PYTHON) |
| 588 | AC_SUBST(PYTHON_VERSION) |
| 589 | AC_SUBST(PYTHON_INCLUDES) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 590 | AC_SUBST(PYTHON_SITE_PACKAGES) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 591 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 592 | AC_SUBST(M_LIBS) |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 593 | AC_SUBST(RDL_LIBS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 594 | |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 595 | rm -f rm COPYING.LIB COPYING |
| 596 | ln -s Copyright COPYING |
| 597 | |
Daniel Veillard | fa49d87 | 2002-03-09 10:20:00 +0000 | [diff] [blame] | 598 | AC_OUTPUT(libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 599 | |
Daniel Veillard | 9b731d7 | 2002-04-14 12:56:08 +0000 | [diff] [blame] | 600 | chmod +x xml2-config xml2Conf.sh python/setup.py |