Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: third_party/libxml/src/configure.ac

Issue 1193533007: Upgrade to libxml 2.9.2 and libxslt 1.1.28 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no iconv Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libxml/src/configure ('k') | third_party/libxml/src/configure.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl Process this file with autoconf to produce a configure script. 1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(entities.c) 2 AC_PREREQ([2.63])
3 AM_CONFIG_HEADER(config.h) 3 AC_INIT
4 AC_CONFIG_SRCDIR([entities.c])
5 AC_CONFIG_HEADERS([config.h])
4 AC_CONFIG_MACRO_DIR([m4]) 6 AC_CONFIG_MACRO_DIR([m4])
5 AC_CANONICAL_HOST 7 AC_CANONICAL_HOST
6 8
7 LIBXML_MAJOR_VERSION=2 9 LIBXML_MAJOR_VERSION=2
8 LIBXML_MINOR_VERSION=7 10 LIBXML_MINOR_VERSION=9
9 LIBXML_MICRO_VERSION=7 11 LIBXML_MICRO_VERSION=2
10 LIBXML_MICRO_VERSION_SUFFIX= 12 LIBXML_MICRO_VERSION_SUFFIX=
11 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION $LIBXML_MICRO_VERSION_SUFFIX 13 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION $LIBXML_MICRO_VERSION_SUFFIX
12 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML _MICRO_VERSION:$LIBXML_MINOR_VERSION 14 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML _MICRO_VERSION:$LIBXML_MINOR_VERSION
13 15
14 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSI ON \* 100 + $LIBXML_MICRO_VERSION` 16 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSI ON \* 100 + $LIBXML_MICRO_VERSION`
15 17
16 if test -f CVS/Entries ; then 18 if test -f CVS/Entries ; then
17 extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.% % -e s\%/.*$%%` 19 extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.% % -e s\%/.*$%%`
18 echo extra=$extra 20 echo extra=$extra
19 if test "$extra" != "" 21 if test "$extra" != ""
20 then 22 then
21 LIBXML_VERSION_EXTRA="-CVS$extra" 23 LIBXML_VERSION_EXTRA="-CVS$extra"
22 fi 24 fi
23 else if test -d .svn ; then 25 else if test -d .svn ; then
24 extra=`svn info | grep Revision | sed 's+Revision: ++'` 26 extra=`svn info | grep Revision | sed 's+Revision: ++'`
25 echo extra=$extra 27 echo extra=$extra
26 if test "$extra" != "" 28 if test "$extra" != ""
27 then 29 then
28 LIBXML_VERSION_EXTRA="-SVN$extra" 30 LIBXML_VERSION_EXTRA="-SVN$extra"
29 fi 31 fi
30 else if test -d .git ; then 32 else if test -d .git ; then
31 extra=`git describe | sed 's+LIBXML[[0-9.]]*-++'` 33 extra=`git describe 2>/dev/null | sed 's+LIBXML[[0-9.]]*-++'`
32 echo extra=$extra 34 echo extra=$extra
33 if test "$extra" != "" 35 if test "$extra" != ""
34 then 36 then
35 LIBXML_VERSION_EXTRA="-GIT$extra" 37 LIBXML_VERSION_EXTRA="-GIT$extra"
36 fi 38 fi
37 fi 39 fi
38 fi 40 fi
39 fi 41 fi
40 AC_SUBST(LIBXML_MAJOR_VERSION) 42 AC_SUBST(LIBXML_MAJOR_VERSION)
41 AC_SUBST(LIBXML_MINOR_VERSION) 43 AC_SUBST(LIBXML_MINOR_VERSION)
42 AC_SUBST(LIBXML_MICRO_VERSION) 44 AC_SUBST(LIBXML_MICRO_VERSION)
43 AC_SUBST(LIBXML_VERSION) 45 AC_SUBST(LIBXML_VERSION)
44 AC_SUBST(LIBXML_VERSION_INFO) 46 AC_SUBST(LIBXML_VERSION_INFO)
45 AC_SUBST(LIBXML_VERSION_NUMBER) 47 AC_SUBST(LIBXML_VERSION_NUMBER)
46 AC_SUBST(LIBXML_VERSION_EXTRA) 48 AC_SUBST(LIBXML_VERSION_EXTRA)
47 49
48 VERSION=${LIBXML_VERSION} 50 VERSION=${LIBXML_VERSION}
49 51
50 AM_INIT_AUTOMAKE(libxml2, $VERSION) 52 AM_INIT_AUTOMAKE(libxml2, $VERSION)
51 53
54 # Support silent build rules, requires at least automake-1.11. Disable
55 # by either passing --disable-silent-rules to configure or passing V=1
56 # to make
57 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
58
52 dnl Checks for programs. 59 dnl Checks for programs.
53 AC_PROG_CC 60 AC_PROG_CC
54 AC_PROG_INSTALL 61 AC_PROG_INSTALL
62 AC_PROG_LN_S
63 AC_PROG_MKDIR_P
55 AC_PROG_CPP 64 AC_PROG_CPP
56 AC_PATH_PROG(RM, rm, /bin/rm)
57 AC_PATH_PROG(MV, mv, /bin/mv) 65 AC_PATH_PROG(MV, mv, /bin/mv)
58 AC_PATH_PROG(TAR, tar, /bin/tar) 66 AC_PATH_PROG(TAR, tar, /bin/tar)
59 AC_PATH_PROG(PERL, perl, /usr/bin/perl) 67 AC_PATH_PROG(PERL, perl, /usr/bin/perl)
60 AC_PATH_PROG(WGET, wget, /usr/bin/wget) 68 AC_PATH_PROG(WGET, wget, /usr/bin/wget)
61 AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint) 69 AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint)
62 AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc) 70 AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc)
71 PKG_PROG_PKG_CONFIG
63 72
64 dnl Make sure we have an ANSI compiler 73 LT_INIT
65 AM_C_PROTOTYPES
66 test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant)
67
68 AC_LIBTOOL_WIN32_DLL
69 AM_PROG_LIBTOOL
70 74
71 dnl 75 dnl
72 dnl if the system support linker version scripts for symbol versioning 76 dnl if the system support linker version scripts for symbol versioning
73 dnl then add it 77 dnl then add it
74 dnl 78 dnl
75 VERSION_SCRIPT_FLAGS= 79 VERSION_SCRIPT_FLAGS=
76 # lt_cv_prog_gnu_ld is from libtool 2.+ 80 # lt_cv_prog_gnu_ld is from libtool 2.+
77 if test "$lt_cv_prog_gnu_ld" = yes; then 81 if test "$lt_cv_prog_gnu_ld" = yes; then
78 VERSION_SCRIPT_FLAGS=-Wl,--version-script= 82 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
79 else 83 else
80 case $host in 84 case $host in
81 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";; 85 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
82 esac 86 esac
83 fi 87 fi
84 AC_SUBST(VERSION_SCRIPT_FLAGS) 88 AC_SUBST(VERSION_SCRIPT_FLAGS)
85 AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"]) 89 AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])
86 90
87 dnl 91 dnl
88 dnl We process the AC_ARG_WITH first so that later we can modify 92 dnl We process the AC_ARG_WITH first so that later we can modify
89 dnl some of them to try to prevent impossible combinations. This 93 dnl some of them to try to prevent impossible combinations. This
90 dnl also allows up so alphabetize the choices 94 dnl also allows up so alphabetize the choices
91 dnl 95 dnl
92 96
93 dnl 97 dnl
94 dnl zlib option might change flags, so we save them initially 98 dnl zlib option might change flags, so we save them initially
95 dnl 99 dnl
96 _cppflags="${CPPFLAGS}" 100 _cppflags="${CPPFLAGS}"
97 _ldflags="${LDFLAGS}" 101 _libs="${LIBS}"
98 102
99 AC_ARG_WITH(c14n, 103 AC_ARG_WITH(c14n,
100 [ --with-c14n add the Canonicalization support (on)]) 104 [ --with-c14n add the Canonicalization support (on)])
101 AC_ARG_WITH(catalog, 105 AC_ARG_WITH(catalog,
102 [ --with-catalog add the Catalog support (on)]) 106 [ --with-catalog add the Catalog support (on)])
103 AC_ARG_WITH(debug, 107 AC_ARG_WITH(debug,
104 [ --with-debug add the debugging module (on)]) 108 [ --with-debug add the debugging module (on)])
105 AC_ARG_WITH(docbook, 109 AC_ARG_WITH(docbook,
106 [ --with-docbook add Docbook SGML support (on)]) 110 [ --with-docbook add Docbook SGML support (on)])
107 AC_ARG_WITH(fexceptions, 111 AC_ARG_WITH(fexceptions,
108 [ --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)]) 112 [ --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)])
109 AC_ARG_WITH(ftp, 113 AC_ARG_WITH(ftp,
110 [ --with-ftp add the FTP support (on)]) 114 [ --with-ftp add the FTP support (on)])
111 AC_ARG_WITH(history, 115 AC_ARG_WITH(history,
112 [ --with-history add history support to xmllint shell(off)]) 116 [ --with-history add history support to xmllint shell(off)])
113 AC_ARG_WITH(html, 117 AC_ARG_WITH(html,
114 [ --with-html add the HTML support (on)]) 118 [ --with-html add the HTML support (on)])
115 dnl Specific dir for HTML output ? 119 dnl Specific dir for HTML output ?
116 AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path], 120 AC_ARG_WITH(html-dir, AS_HELP_STRING([--with-html-dir=path],
117 [path to base html directory, default $datadir/doc/html]), 121 [path to base html directory, default $datadir/doc/html]),
118 [HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc']) 122 [HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc'])
119 123
120 AC_ARG_WITH(html-subdir, AC_HELP_STRING([--with-html-subdir=path], 124 AC_ARG_WITH(html-subdir, AS_HELP_STRING([--with-html-subdir=path],
121 [directory used under html-dir, default $PACKAGE-$VERSION/html]), 125 [directory used under html-dir, default $PACKAGE-$VERSION/html]),
122 [test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"], 126 [test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"],
123 [HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"]) 127 [HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"])
124 AC_SUBST(HTML_DIR) 128 AC_SUBST(HTML_DIR)
125 AC_ARG_WITH(http, 129 AC_ARG_WITH(http,
126 [ --with-http add the HTTP support (on)]) 130 [ --with-http add the HTTP support (on)])
127 AC_ARG_WITH(iconv, 131 AC_ARG_WITH(iconv,
128 [ --with-iconv[[=DIR]] add ICONV support (on)]) 132 [ --with-iconv[[=DIR]] add ICONV support (on)])
133 AC_ARG_WITH(icu,
134 [ --with-icu add ICU support (off)])
129 AC_ARG_WITH(iso8859x, 135 AC_ARG_WITH(iso8859x,
130 [ --with-iso8859x add ISO8859X support if no iconv (on)]) 136 [ --with-iso8859x add ISO8859X support if no iconv (on)])
131 AC_ARG_WITH(legacy, 137 AC_ARG_WITH(legacy,
132 [ --with-legacy add deprecated APIs for compatibility (on)]) 138 [ --with-legacy add deprecated APIs for compatibility (on)])
133 AC_ARG_WITH(mem_debug, 139 AC_ARG_WITH(mem_debug,
134 [ --with-mem-debug add the memory debugging module (off)]) 140 [ --with-mem-debug add the memory debugging module (off)])
135 AC_ARG_WITH(minimum, 141 AC_ARG_WITH(minimum,
136 [ --with-minimum build a minimally sized library (off)]) 142 [ --with-minimum build a minimally sized library (off)])
137 AC_ARG_WITH(output, 143 AC_ARG_WITH(output,
138 [ --with-output add the serialization support (on)]) 144 [ --with-output add the serialization support (on)])
139 AC_ARG_WITH(pattern, 145 AC_ARG_WITH(pattern,
140 [ --with-pattern add the xmlPattern selection interface (on)]) 146 [ --with-pattern add the xmlPattern selection interface (on)])
141 AC_ARG_WITH(push, 147 AC_ARG_WITH(push,
142 [ --with-push add the PUSH parser interfaces (on)]) 148 [ --with-push add the PUSH parser interfaces (on)])
143 AC_ARG_WITH(python, 149 AC_ARG_WITH(python,
144 [ --with-python[[=DIR]] build Python bindings if found]) 150 [ --with-python[[=DIR]] build Python bindings if found])
151 AC_ARG_WITH(python_install_dir,
152 [ --with-python-install-dir=DIR
153 install Python bindings in DIR])
145 AC_ARG_WITH(reader, 154 AC_ARG_WITH(reader,
146 [ --with-reader add the xmlReader parsing interface (on)]) 155 [ --with-reader add the xmlReader parsing interface (on)])
147 AC_ARG_WITH(readline, 156 AC_ARG_WITH(readline,
148 [ --with-readline=DIR use readline in DIR],[ 157 [ --with-readline=DIR use readline in DIR],[
149 if test "$withval" != "no" -a "$withval" != "yes"; then 158 if test "$withval" != "no" -a "$withval" != "yes"; then
150 RDL_DIR=$withval 159 RDL_DIR=$withval
151 CPPFLAGS="${CPPFLAGS} -I$withval/include" 160 CPPFLAGS="${CPPFLAGS} -I$withval/include"
152 LDFLAGS="${LDFLAGS} -L$withval/lib" 161 LIBS="${LIBS} -L$withval/lib"
153 fi 162 fi
154 ]) 163 ])
155 AC_ARG_WITH(regexps, 164 AC_ARG_WITH(regexps,
156 [ --with-regexps add Regular Expressions support (on)]) 165 [ --with-regexps add Regular Expressions support (on)])
157 AC_ARG_WITH(run_debug, 166 AC_ARG_WITH(run_debug,
158 [ --with-run-debug add the runtime debugging module (off)]) 167 [ --with-run-debug add the runtime debugging module (off)])
159 AC_ARG_WITH(sax1, 168 AC_ARG_WITH(sax1,
160 [ --with-sax1 add the older SAX1 interface (on)]) 169 [ --with-sax1 add the older SAX1 interface (on)])
161 AC_ARG_WITH(schemas, 170 AC_ARG_WITH(schemas,
162 [ --with-schemas add Relax-NG and Schemas support (on)]) 171 [ --with-schemas add Relax-NG and Schemas support (on)])
(...skipping 15 matching lines...) Expand all
178 [ --with-xpath add the XPATH support (on)]) 187 [ --with-xpath add the XPATH support (on)])
179 AC_ARG_WITH(xptr, 188 AC_ARG_WITH(xptr,
180 [ --with-xptr add the XPointer support (on)]) 189 [ --with-xptr add the XPointer support (on)])
181 AC_ARG_WITH(modules, 190 AC_ARG_WITH(modules,
182 [ --with-modules add the dynamic modules support (on)]) 191 [ --with-modules add the dynamic modules support (on)])
183 AC_ARG_WITH(zlib, 192 AC_ARG_WITH(zlib,
184 [ --with-zlib[[=DIR]] use libz in DIR],[ 193 [ --with-zlib[[=DIR]] use libz in DIR],[
185 if test "$withval" != "no" -a "$withval" != "yes"; then 194 if test "$withval" != "no" -a "$withval" != "yes"; then
186 Z_DIR=$withval 195 Z_DIR=$withval
187 CPPFLAGS="${CPPFLAGS} -I$withval/include" 196 CPPFLAGS="${CPPFLAGS} -I$withval/include"
188 LDFLAGS="${LDFLAGS} -L$withval/lib" 197 LIBS="${LIBS} -L$withval/lib"
198 fi
199 ])
200 AC_ARG_WITH(lzma,
201 [ --with-lzma[[=DIR]] use liblzma in DIR],[
202 if test "$withval" != "no" -a "$withval" != "yes"; then
203 LZMA_DIR=$withval
204 CPPFLAGS="${CPPFLAGS} -I$withval/include"
205 LIBS="${LIBS} -L$withval/lib"
189 fi 206 fi
190 ]) 207 ])
191 AC_ARG_WITH(coverage, 208 AC_ARG_WITH(coverage,
192 [ --with-coverage build for code coverage with GCC (off)]) 209 [ --with-coverage build for code coverage with GCC (off)])
193 210
194 AC_ARG_ENABLE(rebuild-docs, 211 AC_ARG_ENABLE(rebuild-docs,
195 [ --enable-rebuild-docs[[=yes/no]] rebuild some generated docs [[default=yes]] ]) 212 [ --enable-rebuild-docs[[=yes/no]] rebuild some generated docs [[default=no]]] )
196 AM_CONDITIONAL([REBUILD_DOCS], [test "$enable_rebuild_docs" = "no"]) 213 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
214 AC_MSG_ERROR([cannot rebuild docs when builddir != srcdir])
215 fi
216 AM_CONDITIONAL([REBUILD_DOCS], [test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"])
197 217
198 dnl 218 dnl
199 dnl hard dependancies on options 219 dnl hard dependancies on options
200 dnl 220 dnl
201 if test "$with_schemas" = "yes" 221 if test "$with_schemas" = "yes"
202 then 222 then
203 with_pattern=yes 223 with_pattern=yes
204 with_regexps=yes 224 with_regexps=yes
205 fi 225 fi
206 if test "$with_schematron" = "yes" 226 if test "$with_schematron" = "yes"
207 then 227 then
208 with_pattern=yes 228 with_pattern=yes
229 with_tree=yes
209 with_xpath=yes 230 with_xpath=yes
210 fi 231 fi
211 if test "$with_reader" = "yes" 232 if test "$with_reader" = "yes"
212 then 233 then
213 with_push=yes 234 with_push=yes
214 fi 235 fi
215 if test "$with_xptr" = "yes" 236 if test "$with_xptr" = "yes"
216 then 237 then
217 with_xpath=yes 238 with_xpath=yes
218 fi 239 fi
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 384
364 echo Checking zlib 385 echo Checking zlib
365 386
366 dnl Checks for zlib library. 387 dnl Checks for zlib library.
367 388
368 WITH_ZLIB=0 389 WITH_ZLIB=0
369 if test "$with_zlib" = "no"; then 390 if test "$with_zlib" = "no"; then
370 echo "Disabling compression support" 391 echo "Disabling compression support"
371 else 392 else
372 AC_CHECK_HEADERS(zlib.h, 393 AC_CHECK_HEADERS(zlib.h,
394 [SAVE_LDFLAGS="${LDFLAGS}"
395 LDFLAGS="-L${Z_DIR}/lib"
373 AC_CHECK_LIB(z, gzread,[ 396 AC_CHECK_LIB(z, gzread,[
374 AC_DEFINE([HAVE_LIBZ], [1], [Have compression library]) 397 AC_DEFINE([HAVE_LIBZ], [1], [Have compression library])
375 WITH_ZLIB=1 398 WITH_ZLIB=1
376 if test "x${Z_DIR}" != "x"; then 399 if test "x${Z_DIR}" != "x"; then
377 Z_CFLAGS="-I${Z_DIR}/include" 400 Z_CFLAGS="-I${Z_DIR}/include"
378 Z_LIBS="-L${Z_DIR}/lib -lz" 401 Z_LIBS="-L${Z_DIR}/lib -lz"
379 [case ${host} in 402 [case ${host} in
380 *-*-solaris*) 403 *-*-solaris*)
381 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" 404 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
382 ;; 405 ;;
383 esac] 406 esac]
384 else 407 else
385 Z_LIBS="-lz" 408 Z_LIBS="-lz"
386 » fi])) 409 » fi])
410 » LDFLAGS="${SAVE_LDFLAGS}"])
387 fi 411 fi
388 412
389 AC_SUBST(Z_CFLAGS) 413 AC_SUBST(Z_CFLAGS)
390 AC_SUBST(Z_LIBS) 414 AC_SUBST(Z_LIBS)
391 AC_SUBST(WITH_ZLIB) 415 AC_SUBST(WITH_ZLIB)
392 416
417 echo Checking lzma
418
419 dnl Checks for lzma library.
420
421 WITH_LZMA=0
422 if test "$with_lzma" = "no"; then
423 echo "Disabling compression support"
424 else
425 # Try pkg-config first so that static linking works.
426 # If this succeeeds, we ignore the WITH_LZMA directory.
427 PKG_CHECK_MODULES([LZMA],[liblzma],
428 [have_liblzma=yes],
429 [have_liblzma=no])
430
431 # If pkg-config failed, fall back to AC_CHECK_LIB. This
432 # will not pick up the necessary LIBS flags for liblzma's
433 # private dependencies, though, so static linking may fail.
434 if test "x$have_liblzma" = "xno"; then
435 AC_CHECK_HEADERS(lzma.h,
436 [SAVE_LDFLAGS="${LDFLAGS}"
437 LDFLAGS="-L${LZMA_DIR}/lib"
438 AC_CHECK_LIB(lzma, lzma_code,[
439 have_liblzma=yes
440 if test "x${LZMA_DIR}" != "x"; then
441 LZMA_CFLAGS="-I${LZMA_DIR}/include"
442 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
443 else
444 LZMA_LIBS="-llzma"
445 fi],
446 [have_liblzma=no])
447 LDFLAGS="${SAVE_LDFLAGS}"])
448 fi
449
450 # Found the library via either method?
451 if test "x$have_liblzma" = "xyes"; then
452 AC_DEFINE([HAVE_LIBLZMA], [1], [Have compression library])
453 WITH_LZMA=1
454 fi
455 fi
456
457 AC_SUBST(LZMA_CFLAGS)
458 AC_SUBST(LZMA_LIBS)
459 AC_SUBST(WITH_LZMA)
460
393 CPPFLAGS=${_cppflags} 461 CPPFLAGS=${_cppflags}
394 LDFLAGS=${_ldflags} 462 LIBS=${_libs}
395 463
396 echo Checking headers 464 echo Checking headers
397 465
398 dnl Checks for header files. 466 dnl Checks for header files.
399 AC_HEADER_DIRENT 467 AC_HEADER_DIRENT
400 AC_HEADER_STDC 468 AC_HEADER_STDC
401 AC_CHECK_HEADERS([fcntl.h]) 469 AC_CHECK_HEADERS([fcntl.h])
402 AC_CHECK_HEADERS([unistd.h]) 470 AC_CHECK_HEADERS([unistd.h])
403 AC_CHECK_HEADERS([ctype.h]) 471 AC_CHECK_HEADERS([ctype.h])
404 AC_CHECK_HEADERS([dirent.h]) 472 AC_CHECK_HEADERS([dirent.h])
405 AC_CHECK_HEADERS([errno.h]) 473 AC_CHECK_HEADERS([errno.h])
406 AC_CHECK_HEADERS([malloc.h]) 474 AC_CHECK_HEADERS([malloc.h])
407 AC_CHECK_HEADERS([stdarg.h]) 475 AC_CHECK_HEADERS([stdarg.h])
408 AC_CHECK_HEADERS([sys/stat.h]) 476 AC_CHECK_HEADERS([sys/stat.h])
409 AC_CHECK_HEADERS([sys/types.h]) 477 AC_CHECK_HEADERS([sys/types.h])
410 AC_CHECK_HEADERS([stdint.h]) 478 AC_CHECK_HEADERS([stdint.h])
411 AC_CHECK_HEADERS([inttypes.h.h]) 479 AC_CHECK_HEADERS([inttypes.h])
412 AC_CHECK_HEADERS([time.h]) 480 AC_CHECK_HEADERS([time.h])
413 AC_CHECK_HEADERS([ansidecl.h]) 481 AC_CHECK_HEADERS([ansidecl.h])
414 AC_CHECK_HEADERS([ieeefp.h]) 482 AC_CHECK_HEADERS([ieeefp.h])
415 AC_CHECK_HEADERS([nan.h]) 483 AC_CHECK_HEADERS([nan.h])
416 AC_CHECK_HEADERS([math.h]) 484 AC_CHECK_HEADERS([math.h])
417 AC_CHECK_HEADERS([limits.h]) 485 AC_CHECK_HEADERS([limits.h])
418 AC_CHECK_HEADERS([fp_class.h]) 486 AC_CHECK_HEADERS([fp_class.h])
419 AC_CHECK_HEADERS([float.h]) 487 AC_CHECK_HEADERS([float.h])
420 AC_CHECK_HEADERS([stdlib.h]) 488 AC_CHECK_HEADERS([stdlib.h])
421 AC_CHECK_HEADERS([sys/socket.h], [], [], 489 AC_CHECK_HEADERS([sys/socket.h], [], [],
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 # include <netinet/in.h> 524 # include <netinet/in.h>
457 # endif 525 # endif
458 #if HAVE_ARPA_NAMESER_H 526 #if HAVE_ARPA_NAMESER_H
459 # include <arpa/nameser.h> 527 # include <arpa/nameser.h>
460 # endif 528 # endif
461 ]) 529 ])
462 AC_CHECK_HEADERS([dl.h]) 530 AC_CHECK_HEADERS([dl.h])
463 AC_CHECK_HEADERS([dlfcn.h]) 531 AC_CHECK_HEADERS([dlfcn.h])
464 532
465 533
534 echo Checking types
535
536 AC_TYPE_UINT32_T
537
538
466 echo Checking libraries 539 echo Checking libraries
467 540
468 dnl Checks for library functions. 541 dnl Checks for library functions.
469 AC_FUNC_STRFTIME 542 AC_FUNC_STRFTIME
470 AC_CHECK_FUNCS(strdup strndup strerror) 543 AC_CHECK_FUNCS(strdup strndup strerror)
471 AC_CHECK_FUNCS(finite isnand fp_class class fpclass) 544 AC_CHECK_FUNCS(finite isnand fp_class class fpclass)
472 AC_CHECK_FUNCS(strftime localtime gettimeofday ftime) 545 AC_CHECK_FUNCS(strftime localtime gettimeofday ftime)
473 AC_CHECK_FUNCS(stat _stat signal) 546 AC_CHECK_FUNCS(stat _stat signal)
547 AC_CHECK_FUNCS(rand rand_r srand time)
548 AC_CHECK_FUNCS(isascii mmap munmap putenv)
474 549
475 dnl Checking the standard string functions availability 550 AH_VERBATIM([HAVE_MUNMAP_AFTER],[/* mmap() is no good without munmap() */
476 AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscan f,, 551 #if defined(HAVE_MMAP) && !defined(HAVE_MUNMAP)
477 NEED_TRIO=1) 552 # undef /**/ HAVE_MMAP
553 #endif])
478 554
479 dnl Checking for va_copy availability 555 dnl Checking for va_copy availability
480 AC_MSG_CHECKING([for va_copy]) 556 AC_MSG_CHECKING([for va_copy])
481 AC_TRY_LINK([#include <stdarg.h> 557 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
482 va_list ap1,ap2;], [va_copy(ap1,ap2);], 558 va_list ap1,ap2;]], [[va_copy(ap1,ap2);]])],
483 have_va_copy=yes, 559 have_va_copy=yes,
484 have_va_copy=no) 560 have_va_copy=no)
485 AC_MSG_RESULT($have_va_copy) 561 AC_MSG_RESULT($have_va_copy)
486 if test x"$have_va_copy" = x"yes"; then 562 if test x"$have_va_copy" = x"yes"; then
487 AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available]) 563 AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available])
488 else 564 else
489 AC_MSG_CHECKING([for __va_copy]) 565 AC_MSG_CHECKING([for __va_copy])
490 AC_TRY_LINK([#include <stdarg.h> 566 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
491 va_list ap1,ap2;], [__va_copy(ap1,ap2);], 567 va_list ap1,ap2;]], [[__va_copy(ap1,ap2);]])],
492 have___va_copy=yes, 568 have___va_copy=yes,
493 have___va_copy=no) 569 have___va_copy=no)
494 AC_MSG_RESULT($have___va_copy) 570 AC_MSG_RESULT($have___va_copy)
495 if test x"$have___va_copy" = x"yes"; then 571 if test x"$have___va_copy" = x"yes"; then
496 AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available]) 572 AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available])
497 fi 573 fi
498 fi 574 fi
499 575
576 dnl Checking whether va_list is an array type
577 AC_MSG_CHECKING([whether va_list is an array type])
578 AC_TRY_COMPILE2([
579 #include <stdarg.h>
580 void a(va_list * ap) {}],[
581 va_list ap1, ap2; a(&ap1); ap2 = (va_list) ap1],[
582 AC_MSG_RESULT(no)],[
583 AC_MSG_RESULT(yes)
584 AC_DEFINE([VA_LIST_IS_ARRAY], [1],[Define if va_list is an array type])])
585
500 dnl Checks for inet libraries: 586 dnl Checks for inet libraries:
501 AC_SEARCH_LIBS(gethostent, [nsl]) 587 AC_SEARCH_LIBS(gethostent, [nsl])
502 AC_SEARCH_LIBS(setsockopt, [socket net network]) 588 AC_SEARCH_LIBS(setsockopt, [socket net network])
503 AC_SEARCH_LIBS(connect, [inet]) 589 AC_SEARCH_LIBS(connect, [inet])
504 590
505 dnl Determine what socket length (socklen_t) data type is 591 dnl Determine what socket length (socklen_t) data type is
506 AC_MSG_CHECKING([for type of socket length (socklen_t)]) 592 AC_MSG_CHECKING([for type of socket length (socklen_t)])
507 AC_TRY_COMPILE2([ 593 AC_TRY_COMPILE2([
508 #include <stddef.h> 594 #include <stddef.h>
509 #include <sys/types.h> 595 #include <sys/types.h>
(...skipping 12 matching lines...) Expand all
522 #include <stddef.h> 608 #include <stddef.h>
523 #include <sys/types.h> 609 #include <sys/types.h>
524 #include <sys/socket.h>],[ 610 #include <sys/socket.h>],[
525 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[ 611 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[
526 AC_MSG_RESULT(int *) 612 AC_MSG_RESULT(int *)
527 XML_SOCKLEN_T=int],[ 613 XML_SOCKLEN_T=int],[
528 AC_MSG_WARN(could not determine) 614 AC_MSG_WARN(could not determine)
529 XML_SOCKLEN_T="int"])])]) 615 XML_SOCKLEN_T="int"])])])
530 AC_DEFINE_UNQUOTED(XML_SOCKLEN_T, $XML_SOCKLEN_T, [Determine what socket length (socklen_t) data type is]) 616 AC_DEFINE_UNQUOTED(XML_SOCKLEN_T, $XML_SOCKLEN_T, [Determine what socket length (socklen_t) data type is])
531 617
618 dnl Checking if gethostbyname() argument is const.
619 AC_MSG_CHECKING([for const gethostbyname() argument])
620 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]],
621 [[(void)gethostbyname((const char *)"");]])],
622 have_gethostbyname_const_arg=yes,
623 have_gethostbyname_const_arg=no)
624 AC_MSG_RESULT($have_gethostbyname_const_arg)
625 if test x"$have_gethostbyname_const_arg" = x"yes"; then
626 AC_DEFINE([GETHOSTBYNAME_ARG_CAST], [],
627 [Type cast for the gethostbyname() argument])
628 else
629 AC_DEFINE([GETHOSTBYNAME_ARG_CAST], [(char *)],
630 [Type cast for the gethostbyname() argument])
631 fi
632
633 dnl Checking if send() second argument is const.
634 AC_MSG_CHECKING([for const send() second argument])
635 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
636 #include <sys/socket.h>]],
637 [[(void)send(1,(const char *)"",1,1);]])],
638 have_send_const_arg2=yes,
639 have_send_const_arg2=no)
640 AC_MSG_RESULT($have_send_const_arg2)
641 if test x"$have_send_const_arg2" = x"yes"; then
642 AC_DEFINE([SEND_ARG2_CAST], [],
643 [Type cast for the send() function 2nd arg])
644 else
645 AC_DEFINE([SEND_ARG2_CAST], [(char *)],
646 [Type cast for the send() function 2nd arg])
647 fi
648
532 dnl ***********************Checking for availability of IPv6******************* 649 dnl ***********************Checking for availability of IPv6*******************
533 650
534 AC_MSG_CHECKING([whether to enable IPv6]) 651 AC_MSG_CHECKING([whether to enable IPv6])
535 AC_ARG_ENABLE(ipv6, [ --enable-ipv6[[=yes/no]] enables compilation of IPv6 cod e [[default=yes]]],, enable_ipv6=yes) 652 AC_ARG_ENABLE(ipv6, [ --enable-ipv6[[=yes/no]] enables compilation of IPv6 cod e [[default=yes]]],, enable_ipv6=yes)
536 if test "$with_minimum" = "yes" 653 if test "$with_minimum" = "yes"
537 then 654 then
538 enable_ipv6=no 655 enable_ipv6=no
539 fi 656 fi
540 if test $enable_ipv6 = yes; then 657 if test $enable_ipv6 = yes; then
541 have_ipv6=no 658 have_ipv6=no
542 AC_TRY_COMPILE([ 659 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
543 #include <sys/types.h> 660 # include <sys/types.h>
544 #include <sys/socket.h> 661 # include <sys/socket.h>
545 ], [ 662 ]], [[
546 struct sockaddr_storage ss; 663 struct sockaddr_storage ss;
547 socket(AF_INET6, SOCK_STREAM, 0) 664 socket(AF_INET6, SOCK_STREAM, 0)
548 ], 665 ]])],
549 have_ipv6=yes, 666 have_ipv6=yes,
550 have_ipv6=no 667 have_ipv6=no
551 ) 668 )
552 AC_MSG_RESULT($have_ipv6) 669 AC_MSG_RESULT($have_ipv6)
553 670
554 if test $have_ipv6 = yes; then 671 if test $have_ipv6 = yes; then
555 AC_DEFINE([SUPPORT_IP6], [], [Support for IPv6]) 672 AC_DEFINE([SUPPORT_IP6], [], [Support for IPv6])
556 have_broken_ss_family=no 673 have_broken_ss_family=no
557 674
558 dnl ********************************************************************* 675 dnl *********************************************************************
559 dnl on some platforms (like AIX 5L), the structure sockaddr doesn't have 676 dnl on some platforms (like AIX 5L), the structure sockaddr doesn't have
560 dnl a ss_family member, but rather __ss_family. Let's detect that 677 dnl a ss_family member, but rather __ss_family. Let's detect that
561 dnl and define the HAVE_BROKEN_SS_FAMILY when we are on one of these 678 dnl and define the HAVE_BROKEN_SS_FAMILY when we are on one of these
562 dnl platforms. However, we should only do this if ss_family is not 679 dnl platforms. However, we should only do this if ss_family is not
563 dnl present. 680 dnl present.
564 dnl ******************************************************************** 681 dnl ********************************************************************
565 AC_MSG_CHECKING([struct sockaddr::ss_family]) 682 AC_MSG_CHECKING([struct sockaddr::ss_family])
566 AC_TRY_COMPILE([ 683 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
567 #include <sys/types.h> 684 # include <sys/types.h>
568 #include <sys/socket.h> 685 # include <sys/socket.h>
569 ], [ 686 ]], [[
570 struct sockaddr_storage ss ; 687 struct sockaddr_storage ss ;
571 ss.ss_family = 0 ; 688 ss.ss_family = 0 ;
572 ], 689 ]])],
573 have_ss_family=yes, 690 have_ss_family=yes,
574 have_ss_family=no 691 have_ss_family=no
575 ) 692 )
576 AC_MSG_RESULT($have_ss_family) 693 AC_MSG_RESULT($have_ss_family)
577 if test x$have_ss_family = xno ; then 694 if test x$have_ss_family = xno ; then
578 AC_MSG_CHECKING([broken struct sockaddr::ss_family]) 695 AC_MSG_CHECKING([broken struct sockaddr::ss_family])
579 AC_TRY_COMPILE([ 696 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
580 #include <sys/types.h> 697 # include <sys/types.h>
581 #include <sys/socket.h> 698 # include <sys/socket.h>
582 ], [ 699 ]], [[
583 struct sockaddr_storage ss ; 700 struct sockaddr_storage ss ;
584 ss.__ss_family = 0 ; 701 ss.__ss_family = 0 ;
585 ], 702 ]])],
586 have_broken_ss_family=yes, 703 have_broken_ss_family=yes,
587 have_broken_ss_family=no 704 have_broken_ss_family=no
588 ) 705 )
589 AC_MSG_RESULT($have_broken_ss_family) 706 AC_MSG_RESULT($have_broken_ss_family)
590 if test x$have_broken_ss_family = xyes ; then 707 if test x$have_broken_ss_family = xyes ; then
591 AC_DEFINE(HAVE_BROKEN_SS_FAMILY, [], 708 AC_DEFINE(HAVE_BROKEN_SS_FAMILY, [],
592 [Whether struct sockaddr::__ss_family exists]) 709 [Whether struct sockaddr::__ss_family exists])
593 AC_DEFINE(ss_family, __ss_family, 710 AC_DEFINE(ss_family, __ss_family,
594 [ss_family is not defined here, use __ss_family instead]) 711 [ss_family is not defined here, use __ss_family instead])
595 else 712 else
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 esac 765 esac
649 else 766 else
650 if test "$with_fexceptions" = "yes" 767 if test "$with_fexceptions" = "yes"
651 then 768 then
652 # 769 #
653 # Not activated by default because this inflates the code size 770 # Not activated by default because this inflates the code size
654 # Used to allow propagation of C++ exceptions through the library 771 # Used to allow propagation of C++ exceptions through the library
655 # 772 #
656 CFLAGS="${CFLAGS} -fexceptions" 773 CFLAGS="${CFLAGS} -fexceptions"
657 fi 774 fi
658 775
659 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -W switch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparent heses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return - Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-de cls" 776 # warnings we'd like to see
777 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -W switch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparent heses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return - Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-de cls"
778 # warnings we'd like to supress
779 CFLAGS="${CFLAGS} -Wno-long-long"
660 case "${host}" in 780 case "${host}" in
661 alpha*-*-linux* ) 781 alpha*-*-linux* )
662 CFLAGS="${CFLAGS} -mieee" 782 CFLAGS="${CFLAGS} -mieee"
663 ;; 783 ;;
664 alpha*-*-osf* ) 784 alpha*-*-osf* )
665 CFLAGS="${CFLAGS} -mieee" 785 CFLAGS="${CFLAGS} -mieee"
666 ;; 786 ;;
667 esac 787 esac
668 fi 788 fi
669 case ${host} in 789 case ${host} in
(...skipping 25 matching lines...) Expand all
695 PYTHON_INCLUDES= 815 PYTHON_INCLUDES=
696 PYTHON_SITE_PACKAGES= 816 PYTHON_SITE_PACKAGES=
697 PYTHON_TESTS= 817 PYTHON_TESTS=
698 pythondir= 818 pythondir=
699 if test "$with_python" != "no" ; then 819 if test "$with_python" != "no" ; then
700 if test -x "$with_python/bin/python" 820 if test -x "$with_python/bin/python"
701 then 821 then
702 echo Found python in $with_python/bin/python 822 echo Found python in $with_python/bin/python
703 PYTHON="$with_python/bin/python" 823 PYTHON="$with_python/bin/python"
704 else 824 else
705 » if test -x "$with_python" 825 if test -x "$with_python/python.exe"
706 » then 826 then
707 » echo Found python in $with_python 827 echo Found python in $with_python/python.exe
708 » PYTHON="$with_python" 828 PYTHON="$with_python/python.exe"
709 » else 829 else
710 » if test -x "$PYTHON" 830 if test -x "$with_python"
711 » then 831 then
712 » echo Found python in environment PYTHON=$PYTHON 832 echo Found python in $with_python
713 » » with_python=`$PYTHON -c "import sys; print sys.exec_prefix"` 833 PYTHON="$with_python"
714 » else 834 else
715 » » AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python 2.3 python2.2 python2.1 python2.0 python1.6 python1.5) 835 if test -x "$PYTHON"
836 then
837 echo Found python in environment PYTHON=$PYTHON
838 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)" `
839 else
840 AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 py thon2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
841 » » fi
716 fi 842 fi
717 fi 843 fi
718 fi 844 fi
719 if test "$PYTHON" != "" 845 if test "$PYTHON" != ""
720 then 846 then
721 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` 847 PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysco nfig.get_python_version())"`
848 » PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysc onfig.get_python_inc())"`
849 # does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
850 #
851 #» PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print (sysconfig.get_python_lib())"`
722 echo Found Python version $PYTHON_VERSION 852 echo Found Python version $PYTHON_VERSION
723 fi 853 fi
724 if test "$PYTHON_VERSION" != "" 854 if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
725 then 855 then
726 » if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ 856 » if test -r $with_python/include/python$PYTHON_VERSION/Python.h
727 » -d $with_python/lib/python$PYTHON_VERSION/site-packages
728 then 857 then
729 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION 858 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
730 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
731 else 859 else
732 if test -r $prefix/include/python$PYTHON_VERSION/Python.h 860 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
733 then 861 then
734 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION 862 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
735 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
736 else 863 else
737 if test -r /usr/include/python$PYTHON_VERSION/Python.h 864 if test -r /usr/include/python$PYTHON_VERSION/Python.h
738 then 865 then
739 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION 866 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
740 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-pack ages
741 else 867 else
742 » » echo could not find python$PYTHON_VERSION/Python.h 868 » if test -r $with_python/include/Python.h
869 » then
870 » PYTHON_INCLUDES=$with_python/include
871 » else
872 » » echo could not find python$PYTHON_VERSION/Python.h or $w ith_python/include/Python.h
873 » » fi
743 fi 874 fi
744 fi 875 fi
745 » if test ! -d "$PYTHON_SITE_PACKAGES" 876 » fi
877 fi
878 if test "$with_python_install_dir" != ""
879 then
880 » PYTHON_SITE_PACKAGES="$with_python_install_dir"
881 fi
882 if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
883 then
884 » if test -d $libdir/python$PYTHON_VERSION/site-packages
885 » then
886 » PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
887 » else
888 » if test -d $with_python/lib/site-packages
746 then 889 then
747 » » PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysc onfig; print sysconfig.get_python_lib()"` 890 » » PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
891 » else
892 » » PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfi g; print(sysconfig.get_python_lib())"`
748 fi 893 fi
749 fi 894 fi
750 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
751 fi 895 fi
752 if test "$with_python" != "" 896 pythondir='$(PYTHON_SITE_PACKAGES)'
753 then 897 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
754 pythondir='$(PYTHON_SITE_PACKAGES)'
755 else
756 pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
757 fi
758 else 898 else
759 PYTHON= 899 PYTHON=
760 fi 900 fi
761 AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "") 901 AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
762 if test "$PYTHON_INCLUDES" != "" 902 if test "$PYTHON_INCLUDES" != ""
763 then 903 then
764 PYTHON_SUBDIR=python 904 PYTHON_SUBDIR=python
765 else 905 else
766 PYTHON_SUBDIR= 906 PYTHON_SUBDIR=
767 fi 907 fi
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 1022
883 dnl 1023 dnl
884 dnl Thread-related stuff 1024 dnl Thread-related stuff
885 dnl 1025 dnl
886 THREAD_LIBS="" 1026 THREAD_LIBS=""
887 BASE_THREAD_LIBS="" 1027 BASE_THREAD_LIBS=""
888 WITH_THREADS=0 1028 WITH_THREADS=0
889 THREAD_CFLAGS="" 1029 THREAD_CFLAGS=""
890 TEST_THREADS="" 1030 TEST_THREADS=""
891 THREADS_W32="" 1031 THREADS_W32=""
1032 WITH_THREAD_ALLOC=0
892 1033
893 if test "$with_threads" = "no" ; then 1034 if test "$with_threads" = "no" ; then
894 echo Disabling multithreaded support 1035 echo Disabling multithreaded support
895 else 1036 else
896 echo Enabling multithreaded support 1037 echo Enabling multithreaded support
897 dnl Use pthread by default 1038
898 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$w ith_threads" = "yes" ; then 1039 dnl Default to native threads on Win32
899 AC_CHECK_HEADER(pthread.h,
900 » AC_CHECK_LIB(pthread, pthread_join,[
901 » THREAD_LIBS="-lpthread"
902 » AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is th ere (-lpthread)])
903 » AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there])
904 » WITH_THREADS="1"]))
905 fi
906 case $host_os in 1040 case $host_os in
907 *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then 1041 *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" ! = "no"; then
908 WITH_THREADS="1" 1042 WITH_THREADS="1"
909 THREADS_W32="Win32" 1043 THREADS_W32="1"
910 » THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS" 1044 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
911 fi 1045 fi
912 ;; 1046 ;;
1047 esac
1048
1049 dnl Use pthread by default in other cases
1050 if test -z "$THREADS_W32"; then
1051 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
1052 AC_CHECK_HEADER(pthread.h,
1053 AC_CHECK_LIB(pthread, pthread_join,[
1054 THREAD_LIBS="-lpthread"
1055 AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is t here (-lpthread)])
1056 AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there] )
1057 WITH_THREADS="1"]))
1058 fi
1059 fi
1060
1061 case $host_os in
913 *cygwin*) THREAD_LIBS="" 1062 *cygwin*) THREAD_LIBS=""
914 ;; 1063 ;;
915 *beos*) WITH_THREADS="1" 1064 *beos*) WITH_THREADS="1"
916 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS" 1065 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
917 ;; 1066 ;;
918 *linux*) 1067 *linux*)
919 if test "${GCC}" = "yes" ; then 1068 if test "${GCC}" = "yes" ; then
920 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'` 1069 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
921 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'` 1070 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
922 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[[0-9]]*\.++' | sed 's+\ ..*++'` 1071 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[[0-9]]*\.++' | sed 's+\ ..*++'`
(...skipping 14 matching lines...) Expand all
937 fi 1086 fi
938 fi 1087 fi
939 ;; 1088 ;;
940 esac 1089 esac
941 if test "$WITH_THREADS" = "1" ; then 1090 if test "$WITH_THREADS" = "1" ; then
942 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" 1091 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
943 TEST_THREADS="Threadtests" 1092 TEST_THREADS="Threadtests"
944 fi 1093 fi
945 fi 1094 fi
946 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then 1095 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
947 THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED" 1096 WITH_THREAD_ALLOC=1
948 fi 1097 fi
949 1098
950 AC_SUBST(THREAD_LIBS) 1099 AC_SUBST(THREAD_LIBS)
951 AC_SUBST(BASE_THREAD_LIBS) 1100 AC_SUBST(BASE_THREAD_LIBS)
952 AC_SUBST(WITH_THREADS) 1101 AC_SUBST(WITH_THREADS)
953 AC_SUBST(THREAD_CFLAGS) 1102 AC_SUBST(THREAD_CFLAGS)
954 AC_SUBST(TEST_THREADS) 1103 AC_SUBST(TEST_THREADS)
955 AC_SUBST(THREADS_W32) 1104 AC_SUBST(WITH_THREAD_ALLOC)
1105 AM_CONDITIONAL([THREADS_W32],[test -n "$THREADS_W32"])
956 1106
957 dnl 1107 dnl
958 dnl xmllint shell history 1108 dnl xmllint shell history
959 dnl 1109 dnl
960 if test "$with_history" = "yes" ; then 1110 if test "$with_history" = "yes" ; then
961 echo Enabling xmllint shell history 1111 echo Enabling xmllint shell history
962 dnl check for terminal library. this is a very cool solution 1112 dnl check for terminal library. this is a very cool solution
963 dnl from octave's configure.in 1113 dnl from octave's configure.in
964 unset tcap 1114 unset tcap
965 for termlib in ncurses curses termcap terminfo termlib; do 1115 for termlib in ncurses curses termcap terminfo termlib; do
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 1219
1070 if test "$with_sax1" = "no" ; then 1220 if test "$with_sax1" = "no" ; then
1071 echo Disabling the older SAX1 interface 1221 echo Disabling the older SAX1 interface
1072 WITH_SAX1=0 1222 WITH_SAX1=0
1073 TEST_SAX= 1223 TEST_SAX=
1074 else 1224 else
1075 WITH_SAX1=1 1225 WITH_SAX1=1
1076 TEST_SAX=SAXtests 1226 TEST_SAX=SAXtests
1077 fi 1227 fi
1078 AC_SUBST(WITH_SAX1) 1228 AC_SUBST(WITH_SAX1)
1229 AM_CONDITIONAL(WITH_SAX1_SOURCES, test "${WITH_TRIO}" = "1")
1079 AC_SUBST(TEST_SAX) 1230 AC_SUBST(TEST_SAX)
1080 1231
1081 if test "$with_push" = "no" ; then 1232 if test "$with_push" = "no" ; then
1082 echo Disabling the PUSH parser interfaces 1233 echo Disabling the PUSH parser interfaces
1083 WITH_PUSH=0 1234 WITH_PUSH=0
1084 TEST_PUSH= 1235 TEST_PUSH=
1085 else 1236 else
1086 WITH_PUSH=1 1237 WITH_PUSH=1
1087 TEST_PUSH="XMLPushtests" 1238 TEST_PUSH="XMLPushtests"
1088 fi 1239 fi
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 TEST_XINCLUDE=XIncludetests 1348 TEST_XINCLUDE=XIncludetests
1198 if test "$with_xpath" = "no" ; then 1349 if test "$with_xpath" = "no" ; then
1199 echo XInclude requires XPath support - enabling it 1350 echo XInclude requires XPath support - enabling it
1200 with_xpath=yes 1351 with_xpath=yes
1201 fi 1352 fi
1202 fi 1353 fi
1203 AC_SUBST(WITH_XINCLUDE) 1354 AC_SUBST(WITH_XINCLUDE)
1204 AC_SUBST(XINCLUDE_OBJ) 1355 AC_SUBST(XINCLUDE_OBJ)
1205 AC_SUBST(TEST_XINCLUDE) 1356 AC_SUBST(TEST_XINCLUDE)
1206 1357
1358 if test "$with_xptr" = "" -a "$with_xpath" = "no" ; then
1359 with_xptr=no
1360 fi
1361
1362 if test "$with_schematron" = "" -a "$with_xpath" = "no" ; then
1363 with_schematron=no
1364 fi
1365
1366 if test "$with_schematron" = "no" ; then
1367 echo "Disabling Schematron support"
1368 WITH_SCHEMATRON=0
1369 TEST_SCHEMATRON=
1370 else
1371 echo "Enabled Schematron support"
1372 WITH_SCHEMATRON=1
1373 TEST_SCHEMATRON="Schematrontests"
1374 with_xpath=yes
1375 with_pattern=yes
1376 with_schematron=yes
1377 fi
1378 AC_SUBST(WITH_SCHEMATRON)
1379 AC_SUBST(TEST_SCHEMATRON)
1380
1207 if test "$with_xpath" = "no" ; then 1381 if test "$with_xpath" = "no" ; then
1208 echo Disabling XPATH support 1382 echo Disabling XPATH support
1209 WITH_XPATH=0 1383 WITH_XPATH=0
1210 XPATH_OBJ= 1384 XPATH_OBJ=
1211 TEST_XPATH= 1385 TEST_XPATH=
1212 else 1386 else
1213 WITH_XPATH=1 1387 WITH_XPATH=1
1214 XPATH_OBJ=xpath.o 1388 XPATH_OBJ=xpath.o
1215 TEST_XPATH=XPathtests 1389 TEST_XPATH=XPathtests
1216 fi 1390 fi
(...skipping 18 matching lines...) Expand all
1235 else 1409 else
1236 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then 1410 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
1237 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" 1411 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
1238 # Export this since our headers include iconv.h 1412 # Export this since our headers include iconv.h
1239 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include" 1413 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
1240 ICONV_LIBS="-L$with_iconv/lib" 1414 ICONV_LIBS="-L$with_iconv/lib"
1241 fi 1415 fi
1242 1416
1243 AC_CHECK_HEADER(iconv.h, 1417 AC_CHECK_HEADER(iconv.h,
1244 AC_MSG_CHECKING(for iconv) 1418 AC_MSG_CHECKING(for iconv)
1245 » AC_TRY_LINK([#include <stdlib.h> 1419 » AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
1246 #include <iconv.h>],[ 1420 #include <iconv.h>]],[[
1247 iconv_t cd = iconv_open ("",""); 1421 iconv_t cd = iconv_open ("","");
1248 iconv (cd, NULL, NULL, NULL, NULL);],[ 1422 iconv (cd, NULL, NULL, NULL, NULL);]])],[
1249 AC_MSG_RESULT(yes) 1423 AC_MSG_RESULT(yes)
1250 WITH_ICONV=1],[ 1424 WITH_ICONV=1],[
1251 AC_MSG_RESULT(no) 1425 AC_MSG_RESULT(no)
1252 AC_MSG_CHECKING(for iconv in -liconv) 1426 AC_MSG_CHECKING(for iconv in -liconv)
1253 1427
1254 _ldflags="${LDFLAGS}" 1428 _ldflags="${LDFLAGS}"
1255 _libs="${LIBS}" 1429 _libs="${LIBS}"
1256 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}" 1430 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
1257 LIBS="${LIBS} -liconv" 1431 LIBS="${LIBS} -liconv"
1258 1432
1259 » AC_TRY_LINK([#include <stdlib.h> 1433 » AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
1260 #include <iconv.h>],[ 1434 #include <iconv.h>]],[[
1261 iconv_t cd = iconv_open ("",""); 1435 iconv_t cd = iconv_open ("","");
1262 iconv (cd, NULL, NULL, NULL, NULL);],[ 1436 iconv (cd, NULL, NULL, NULL, NULL);]])],[
1263 AC_MSG_RESULT(yes) 1437 AC_MSG_RESULT(yes)
1264 WITH_ICONV=1 1438 WITH_ICONV=1
1265 ICONV_LIBS="${ICONV_LIBS} -liconv" 1439 ICONV_LIBS="${ICONV_LIBS} -liconv"
1266 LIBS="${_libs}" 1440 LIBS="${_libs}"
1267 LDFLAGS="${_ldflags}"],[ 1441 LDFLAGS="${_ldflags}"],[
1268 AC_MSG_RESULT(no) 1442 AC_MSG_RESULT(no)
1269 LIBS="${_libs}" 1443 LIBS="${_libs}"
1270 LDFLAGS="${_ldflags}"])])) 1444 LDFLAGS="${_ldflags}"])]))
1271 1445
1272 if test "$WITH_ICONV" = "1" ; then 1446 if test "$WITH_ICONV" = "1" ; then
1273 AC_MSG_CHECKING([for iconv declaration]) 1447 AC_MSG_CHECKING([for iconv declaration])
1274 AC_CACHE_VAL(xml_cv_iconv_arg2, [ 1448 AC_CACHE_VAL(xml_cv_iconv_arg2, [
1275 » » » AC_TRY_COMPILE([#include <stdlib.h> 1449 » » » AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
1276 #include <iconv.h> 1450 #include <iconv.h>
1277 extern 1451 extern
1278 #ifdef __cplusplus 1452 #ifdef __cplusplus
1279 "C" 1453 "C"
1280 #endif 1454 #endif
1281 #if defined(__STDC__) || defined(__cplusplus) 1455 #if defined(__STDC__) || defined(__cplusplus)
1282 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si ze_t *outbytesleft); 1456 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si ze_t *outbytesleft);
1283 #else 1457 #else
1284 size_t iconv(); 1458 size_t iconv();
1285 #endif 1459 #endif
1286 ], [], xml_cv_iconv_arg2="", xml_cv_iconv_arg2="const")]) 1460 ]], [])], xml_cv_iconv_arg2="", xml_cv_iconv_arg2="const")])
1287 1461
1288 xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_icon v_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft) ;" 1462 xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_icon v_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft) ;"
1289 AC_MSG_RESULT([${xml_xxx:- 1463 AC_MSG_RESULT([${xml_xxx:-
1290 }$xml_cv_iconv_decl]) 1464 }$xml_cv_iconv_decl])
1291 AC_DEFINE_UNQUOTED(ICONV_CONST, $xml_cv_iconv_arg2, 1465 AC_DEFINE_UNQUOTED(ICONV_CONST, $xml_cv_iconv_arg2,
1292 [Define as const if the declaration of iconv() needs con st.]) 1466 [Define as const if the declaration of iconv() needs con st.])
1293 fi 1467 fi
1294 fi 1468 fi
1295 case "$host" in 1469 case "$host" in
1296 *mingw*) M_LIBS="" 1470 *mingw*) M_LIBS=""
1297 ;; 1471 ;;
1298 *beos*) M_LIBS="" 1472 *beos*) M_LIBS=""
1299 ;; 1473 ;;
1300 *haiku*) M_LIBS="" 1474 *haiku*) M_LIBS=""
1301 ;; 1475 ;;
1302 *) M_LIBS="-lm" 1476 *) M_LIBS="-lm"
1303 ;; 1477 ;;
1304 esac 1478 esac
1305 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS" 1479 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
1306 XML_LIBTOOLLIBS="libxml2.la" 1480 XML_LIBTOOLLIBS="libxml2.la"
1307 AC_SUBST(WITH_ICONV) 1481 AC_SUBST(WITH_ICONV)
1308 1482
1483 WITH_ICU=0
1484 ICU_LIBS=""
1485 if test "$with_icu" != "yes" ; then
1486 echo Disabling ICU support
1487 else
1488 ICU_CONFIG=icu-config
1489 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
1490 then
1491 ICU_LIBS=`${ICU_CONFIG} --ldflags`
1492 WITH_ICU=1
1493 echo Enabling ICU support
1494 else
1495 AC_MSG_ERROR([libicu config program icu-config not found])
1496 fi
1497 fi
1498 AC_SUBST(WITH_ICU)
1499 AC_SUBST(ICU_LIBS)
1500
1309 WITH_ISO8859X=1 1501 WITH_ISO8859X=1
1310 if test "$WITH_ICONV" != "1" ; then 1502 if test "$WITH_ICONV" != "1" ; then
1311 if test "$with_iso8859x" = "no" ; then 1503 if test "$with_iso8859x" = "no" ; then
1312 echo Disabling ISO8859X support 1504 echo Disabling ISO8859X support
1313 WITH_ISO8859X=0 1505 WITH_ISO8859X=0
1314 fi 1506 fi
1315 fi 1507 fi
1316 AC_SUBST(WITH_ISO8859X) 1508 AC_SUBST(WITH_ISO8859X)
1317 1509
1318 if test "$with_schematron" = "no" ; then
1319 echo "Disabling Schematron support"
1320 WITH_SCHEMATRON=0
1321 TEST_SCHEMATRON=
1322 else
1323 echo "Enabled Schematron support"
1324 WITH_SCHEMATRON=1
1325 TEST_SCHEMATRON="Schematrontests"
1326 with_xpath=yes
1327 with_pattern=yes
1328 fi
1329 AC_SUBST(WITH_SCHEMATRON)
1330 AC_SUBST(TEST_SCHEMATRON)
1331
1332 if test "$with_schemas" = "no" ; then 1510 if test "$with_schemas" = "no" ; then
1333 echo "Disabling Schemas/Relax-NG support" 1511 echo "Disabling Schemas/Relax-NG support"
1334 WITH_SCHEMAS=0 1512 WITH_SCHEMAS=0
1335 TEST_SCHEMAS= 1513 TEST_SCHEMAS=
1336 else 1514 else
1337 echo "Enabled Schemas/Relax-NG support" 1515 echo "Enabled Schemas/Relax-NG support"
1338 WITH_SCHEMAS=1 1516 WITH_SCHEMAS=1
1339 TEST_SCHEMAS="Schemastests Relaxtests" 1517 TEST_SCHEMAS="Schemastests Relaxtests"
1340 if test "$PYTHON_INCLUDES" != "" ; then 1518 if test "$PYTHON_INCLUDES" != "" ; then
1341 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests" 1519 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 WITH_RUN_DEBUG=1 1566 WITH_RUN_DEBUG=1
1389 else 1567 else
1390 WITH_RUN_DEBUG=0 1568 WITH_RUN_DEBUG=0
1391 fi 1569 fi
1392 AC_SUBST(WITH_RUN_DEBUG) 1570 AC_SUBST(WITH_RUN_DEBUG)
1393 1571
1394 WIN32_EXTRA_LIBADD= 1572 WIN32_EXTRA_LIBADD=
1395 WIN32_EXTRA_LDFLAGS= 1573 WIN32_EXTRA_LDFLAGS=
1396 CYGWIN_EXTRA_LDFLAGS= 1574 CYGWIN_EXTRA_LDFLAGS=
1397 CYGWIN_EXTRA_PYTHON_LIBADD= 1575 CYGWIN_EXTRA_PYTHON_LIBADD=
1576 WIN32_EXTRA_PYTHON_LIBADD=
1398 case "$host" in 1577 case "$host" in
1399 *-*-mingw*) 1578 *-*-mingw*)
1400 CPPFLAGS="$CPPFLAGS -DWIN32" 1579 CPPFLAGS="$CPPFLAGS -DWIN32"
1401 WIN32_EXTRA_LIBADD="-lws2_32" 1580 WIN32_EXTRA_LIBADD="-lws2_32"
1402 WIN32_EXTRA_LDFLAGS="-no-undefined" 1581 WIN32_EXTRA_LDFLAGS="-no-undefined"
1403 AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation]) 1582 AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
1404 AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around]) 1583 if test "${PYTHON}" != ""
1405 AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around]) 1584 then
1585 WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_ VERSION} | tr -d .)"
1586 fi
1406 ;; 1587 ;;
1407 *-*-cygwin*) 1588 *-*-cygwin*)
1408 CYGWIN_EXTRA_LDFLAGS="-no-undefined" 1589 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
1409 if test "${PYTHON}" != "" 1590 if test "${PYTHON}" != ""
1410 then 1591 then
1411 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpytho n${PYTHON_VERSION}" 1592 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpytho n${PYTHON_VERSION}"
1412 fi 1593 fi
1413 ;; 1594 ;;
1414 esac 1595 esac
1415 AC_SUBST(WIN32_EXTRA_LIBADD) 1596 AC_SUBST(WIN32_EXTRA_LIBADD)
1416 AC_SUBST(WIN32_EXTRA_LDFLAGS) 1597 AC_SUBST(WIN32_EXTRA_LDFLAGS)
1598 AC_SUBST(WIN32_EXTRA_PYTHON_LIBADD)
1417 AC_SUBST(CYGWIN_EXTRA_LDFLAGS) 1599 AC_SUBST(CYGWIN_EXTRA_LDFLAGS)
1418 AC_SUBST(CYGWIN_EXTRA_PYTHON_LIBADD) 1600 AC_SUBST(CYGWIN_EXTRA_PYTHON_LIBADD)
1419 1601
1602 dnl Checking the standard string functions availability
1603 dnl
1604 dnl Note mingw* has C99 implementation that produce expected xml numbers
1605 dnl if code use {v}snprintf functions.
1606 dnl If you like to activate at run-time C99 compatible number output
1607 dnl see release note for mingw runtime 3.15:
1608 dnl http://sourceforge.net/project/shownotes.php?release_id=24832
1609 dnl
1610 dnl Also *win32*config.h files redefine them for various MSC compilers.
1611 dnl
1612 dnl So do not redefine {v}snprintf to _{v}snprintf like follwing:
1613 dnl AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
1614 dnl AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around])
1615 dnl and do not redefine those functions is C-source files.
1616 dnl
1617 AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscan f,,
1618 NEED_TRIO=1)
1619
1420 if test "$with_coverage" = "yes" -a "${GCC}" = "yes" 1620 if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
1421 then 1621 then
1422 echo Enabling code coverage for GCC 1622 echo Enabling code coverage for GCC
1423 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 1623 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
1424 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage" 1624 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
1425 else 1625 else
1426 echo Disabling code coverage for GCC 1626 echo Disabling code coverage for GCC
1427 fi 1627 fi
1428 1628
1429 AC_SUBST(CPPFLAGS) 1629 AC_SUBST(CPPFLAGS)
(...skipping 16 matching lines...) Expand all
1446 1646
1447 AC_SUBST(M_LIBS) 1647 AC_SUBST(M_LIBS)
1448 AC_SUBST(RDL_LIBS) 1648 AC_SUBST(RDL_LIBS)
1449 1649
1450 dnl for the spec file 1650 dnl for the spec file
1451 RELDATE=`date +'%a %b %e %Y'` 1651 RELDATE=`date +'%a %b %e %Y'`
1452 AC_SUBST(RELDATE) 1652 AC_SUBST(RELDATE)
1453 AC_SUBST(PYTHON_TESTS) 1653 AC_SUBST(PYTHON_TESTS)
1454 1654
1455 rm -f COPYING.LIB COPYING 1655 rm -f COPYING.LIB COPYING
1456 ln -s Copyright COPYING 1656 ln -s $srcdir/Copyright COPYING
1457 1657
1458 # keep on one line for cygwin c.f. #130896 1658 # keep on one line for cygwin c.f. #130896
1459 AC_OUTPUT(libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/M akefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py) 1659 AC_CONFIG_FILES([libxml2.spec:libxml.spec.in Makefile include/Makefile include/l ibxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/M akefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlve rsion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake])
1660 AC_CONFIG_FILES([python/setup.py], [chmod +x python/setup.py])
1661 AC_CONFIG_FILES([xml2-config], [chmod +x xml2-config])
1662 AC_OUTPUT
1460 1663
1461 chmod +x xml2-config python/setup.py
1462 echo Done configuring 1664 echo Done configuring
OLDNEW
« no previous file with comments | « third_party/libxml/src/configure ('k') | third_party/libxml/src/configure.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698