| OLD | NEW |
| 1 dnl Process this file with autoconf to produce a configuration script. | 1 dnl Process this file with autoconf to produce a configuration script. |
| 2 AC_PREREQ(2.59) | 2 AC_PREREQ(2.59) |
| 3 AC_INIT(libxslt/xslt.c) | 3 AC_INIT(libxslt/xslt.c) |
| 4 AC_CONFIG_HEADERS(config.h) | 4 AC_CONFIG_HEADERS(config.h) |
| 5 AC_CANONICAL_HOST | 5 AC_CANONICAL_HOST |
| 6 AC_USE_SYSTEM_EXTENSIONS | 6 AC_USE_SYSTEM_EXTENSIONS |
| 7 | 7 |
| 8 dnl | 8 dnl |
| 9 dnl libxslt is the main part of the package | 9 dnl libxslt is the main part of the package |
| 10 dnl libexslt is an extension | 10 dnl libexslt is an extension |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 typedef locale_t xsltLocale; | 189 typedef locale_t xsltLocale; |
| 190 #endif | 190 #endif |
| 191 #if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ <= 2 | 191 #if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ <= 2 |
| 192 #define newlocale __newlocale | 192 #define newlocale __newlocale |
| 193 #define freelocale __freelocale | 193 #define freelocale __freelocale |
| 194 #define strxfrm_l __strxfrm_l | 194 #define strxfrm_l __strxfrm_l |
| 195 #define LC_COLLATE_MASK (1 << LC_COLLATE) | 195 #define LC_COLLATE_MASK (1 << LC_COLLATE) |
| 196 #endif | 196 #endif |
| 197 ]],[[ | 197 ]],[[ |
| 198 xsltLocale locale; | 198 xsltLocale locale; |
| 199 const char *src[[2]] = { "\xc3\x84rger", "Zeppelin" }; | 199 const char *src[2] = { "\xc3\x84rger", "Zeppelin" }; |
| 200 char *dst[[2]]; | 200 char *dst[2]; |
| 201 size_t len, r; | 201 size_t len, r; |
| 202 int i; | 202 int i; |
| 203 | 203 |
| 204 locale = newlocale(LC_COLLATE_MASK, "en_US.utf8", NULL); | 204 locale = newlocale(LC_COLLATE_MASK, "en_US.utf8", NULL); |
| 205 if (locale == NULL) exit(1); | 205 if (locale == NULL) exit(1); |
| 206 for (i=0; i<2; ++i) { | 206 for (i=0; i<2; ++i) { |
| 207 len = strxfrm_l(NULL, src[[i]], 0, locale) + 1; | 207 len = strxfrm_l(NULL, src[i], 0, locale) + 1; |
| 208 dst[[i]] = malloc(len); | 208 dst[i] = malloc(len); |
| 209 if(dst[[i]] == NULL) exit(1); | 209 if(dst[i] == NULL) exit(1); |
| 210 r = strxfrm_l(dst[[i]], src[[i]], len, locale); | 210 r = strxfrm_l(dst[i], src[i], len, locale); |
| 211 if(r >= len) exit(1); | 211 if(r >= len) exit(1); |
| 212 } | 212 } |
| 213 if (strcmp(dst[[0]], dst[[1]]) >= 0) exit(1); | 213 if (strcmp(dst[0], dst[1]) >= 0) exit(1); |
| 214 | 214 |
| 215 exit(0); | 215 exit(0); |
| 216 return(0); | 216 return(0); |
| 217 ]])], | 217 ]])], |
| 218 [AC_MSG_RESULT(yes); XSLT_LOCALE_XLOCALE=1], | 218 [AC_MSG_RESULT(yes); XSLT_LOCALE_XLOCALE=1], |
| 219 [AC_MSG_RESULT(no)] | 219 [AC_MSG_RESULT(no)] |
| 220 ) | 220 ) |
| 221 else | 221 else |
| 222 case "$host" in | 222 case "$host" in |
| 223 *-*-mingw*) | 223 *-*-mingw*) |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 PYTHON_SUBDIR=python | 371 PYTHON_SUBDIR=python |
| 372 else | 372 else |
| 373 PYTHON_SUBDIR= | 373 PYTHON_SUBDIR= |
| 374 fi | 374 fi |
| 375 AC_SUBST(pythondir) | 375 AC_SUBST(pythondir) |
| 376 AC_SUBST(PYTHON_SUBDIR) | 376 AC_SUBST(PYTHON_SUBDIR) |
| 377 AC_SUBST(PYTHON_LIBS) | 377 AC_SUBST(PYTHON_LIBS) |
| 378 | 378 |
| 379 AC_ARG_WITH(crypto, [ --with-crypto Add crypto support to exslt (on)]
) | 379 AC_ARG_WITH(crypto, [ --with-crypto Add crypto support to exslt (on)]
) |
| 380 WITH_CRYPTO=0 | 380 WITH_CRYPTO=0 |
| 381 CRYPTO_TESTDIR= |
| 381 if test "$with_crypto" = "no" ; then | 382 if test "$with_crypto" = "no" ; then |
| 382 echo Disabling crypto support | 383 echo Disabling crypto support |
| 383 LIBGCRYPT_CFLAGS="" | 384 LIBGCRYPT_CFLAGS="" |
| 384 LIBGCRYPT_LIBS="" | 385 LIBGCRYPT_LIBS="" |
| 385 else | 386 else |
| 386 case $host in | 387 case $host in |
| 387 *-mingw*) | 388 *-mingw*) |
| 388 dnl Use only native crypto-API for mingw* hosts | 389 dnl Use only native crypto-API for mingw* hosts |
| 389 dnl TODO: to implement --with-crypto=foo to allow switch between | 390 dnl TODO: to implement --with-crypto=foo to allow switch between |
| 390 dnl crypto libraries | 391 dnl crypto libraries |
| 391 WITH_CRYPTO=1 | 392 WITH_CRYPTO=1 |
| 393 CRYPTO_TESTDIR=crypto |
| 392 ;; | 394 ;; |
| 393 *) | 395 *) |
| 394 AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no) | 396 AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no) |
| 395 if test "$LIBGCRYPT_CONFIG" != "no" ; then | 397 if test "$LIBGCRYPT_CONFIG" != "no" ; then |
| 396 LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version` | 398 LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version` |
| 397 if test VERSION_TO_NUMBER(echo $LIBGCRYPT_VERSION) -lt VERSION_TO_NUMBER(e
cho "1.1.42") | 399 if test VERSION_TO_NUMBER(echo $LIBGCRYPT_VERSION) -lt VERSION_TO_NUMBER(e
cho "1.1.42") |
| 398 then | 400 then |
| 399 LIBGCRYPT_CFLAGS="" | 401 LIBGCRYPT_CFLAGS="" |
| 400 LIBGCRYPT_LIBS="" | 402 LIBGCRYPT_LIBS="" |
| 401 echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be av
ailable.' | 403 echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be av
ailable.' |
| 402 else | 404 else |
| 403 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags` | 405 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags` |
| 404 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs` | 406 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs` |
| 405 AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is available.]) | 407 AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is available.]) |
| 406 echo 'Crypto extensions will be available.' | 408 echo 'Crypto extensions will be available.' |
| 407 » » WITH_CRYPTO=1 | 409 WITH_CRYPTO=1 |
| 410 CRYPTO_TESTDIR=crypto |
| 408 fi | 411 fi |
| 409 else | 412 else |
| 410 LIBGCRYPT_CFLAGS="" | 413 LIBGCRYPT_CFLAGS="" |
| 411 LIBGCRYPT_LIBS="" | 414 LIBGCRYPT_LIBS="" |
| 412 echo 'Crypto extensions will not be available. Install libgcrypt and recon
figure to make available.' | 415 echo 'Crypto extensions will not be available. Install libgcrypt and recon
figure to make available.' |
| 413 fi | 416 fi |
| 414 esac | 417 esac |
| 415 fi | 418 fi |
| 416 AC_SUBST(WITH_CRYPTO) | 419 AC_SUBST(WITH_CRYPTO) |
| 420 AC_SUBST(CRYPTO_TESTDIR) |
| 417 AC_SUBST(LIBGCRYPT_CFLAGS) | 421 AC_SUBST(LIBGCRYPT_CFLAGS) |
| 418 AC_SUBST(LIBGCRYPT_LIBS) | 422 AC_SUBST(LIBGCRYPT_LIBS) |
| 419 | 423 |
| 420 dnl | 424 dnl |
| 421 dnl Debug for DV (-Wunreachable-code) | 425 dnl Debug for DV (-Wunreachable-code) |
| 422 dnl | 426 dnl |
| 423 if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ]] || \ | 427 if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ]] || \ |
| 424 [[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]] | 428 [[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]] |
| 425 then | 429 then |
| 426 if test "${with_mem_debug}" = "" ; | 430 if test "${with_mem_debug}" = "" ; |
| 427 then | 431 then |
| 428 with_mem_debug="yes" | 432 with_mem_debug="yes" |
| 429 fi | 433 fi |
| 430 CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Ws
witch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparenth
eses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -W
strict-prototypes -Wmissing-prototypes -Wnested-externs -Winline " | 434 CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Ws
witch -Wcomment -Wtrigraphs -Wformat=2 -Wmissing-format-attribute -Wchar-subscri
pts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-
strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-ext
erns -Winline " |
| 431 fi | 435 fi |
| 432 | 436 |
| 433 AC_ARG_WITH(debug, [ --with-debug Add the debugging code (on)]) | 437 AC_ARG_WITH(debug, [ --with-debug Add the debugging code (on)]) |
| 434 if test "$with_debug" = "no" ; then | 438 if test "$with_debug" = "no" ; then |
| 435 echo Disabling debug support | 439 echo Disabling debug support |
| 436 WITH_XSLT_DEBUG=0 | 440 WITH_XSLT_DEBUG=0 |
| 437 else | 441 else |
| 438 WITH_XSLT_DEBUG=1 | 442 WITH_XSLT_DEBUG=1 |
| 439 fi | 443 fi |
| 440 AC_SUBST(WITH_XSLT_DEBUG) | 444 AC_SUBST(WITH_XSLT_DEBUG) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 AC_SUBST(LIBXML_SRC) | 500 AC_SUBST(LIBXML_SRC) |
| 497 | 501 |
| 498 dnl | 502 dnl |
| 499 dnl where is xml2-config | 503 dnl where is xml2-config |
| 500 dnl | 504 dnl |
| 501 | 505 |
| 502 AC_SUBST(LIBXML_REQUIRED_VERSION) | 506 AC_SUBST(LIBXML_REQUIRED_VERSION) |
| 503 AC_MSG_CHECKING(for libxml libraries >= $LIBXML_REQUIRED_VERSION) | 507 AC_MSG_CHECKING(for libxml libraries >= $LIBXML_REQUIRED_VERSION) |
| 504 if test "x$LIBXML_CONFIG_PREFIX" != "x" | 508 if test "x$LIBXML_CONFIG_PREFIX" != "x" |
| 505 then | 509 then |
| 506 » XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config | 510 » AC_PATH_TOOL([XML_CONFIG], [xml2-config], [false], [${LIBXML_CONFIG_PREF
IX}/bin]) |
| 507 else | 511 else |
| 508 » XML_CONFIG=xml2-config | 512 » AC_PATH_TOOL([XML_CONFIG], [xml2-config], [false]) |
| 509 fi | 513 fi |
| 510 | 514 |
| 511 dnl | 515 dnl |
| 512 dnl imported from libxml2, c.f. #77827 | 516 dnl imported from libxml2, c.f. #77827 |
| 513 dnl | 517 dnl |
| 514 if test "${GCC}" != "yes" ; then | 518 if test "${GCC}" != "yes" ; then |
| 515 case "${host}" in | 519 case "${host}" in |
| 516 *-*-hpux* ) | 520 *-*-hpux* ) |
| 517 CFLAGS="${CFLAGS} -Wp,-H30000" | 521 CFLAGS="${CFLAGS} -Wp,-H30000" |
| 518 ;; | 522 ;; |
| 519 *-dec-osf* ) | 523 *-dec-osf* ) |
| 520 CFLAGS="${CFLAGS} -ieee" | 524 CFLAGS="${CFLAGS} -ieee" |
| 521 ;; | 525 ;; |
| 522 esac | 526 esac |
| 523 else | 527 else |
| 524 CFLAGS="${CFLAGS} -Wall" | 528 CFLAGS="${CFLAGS} -Wall -Wformat=2 -Wmissing-format-attribute" |
| 525 case "${host}" in | 529 case "${host}" in |
| 526 alpha*-*-linux* ) | 530 alpha*-*-linux* ) |
| 527 CFLAGS="${CFLAGS} -mieee" | 531 CFLAGS="${CFLAGS} -mieee" |
| 528 ;; | 532 ;; |
| 529 alpha*-*-osf* ) | 533 alpha*-*-osf* ) |
| 530 CFLAGS="${CFLAGS} -mieee" | 534 CFLAGS="${CFLAGS} -mieee" |
| 531 ;; | 535 ;; |
| 532 esac | 536 esac |
| 533 fi | 537 fi |
| 534 | 538 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 else | 611 else |
| 608 WITH_MODULES="0" | 612 WITH_MODULES="0" |
| 609 fi | 613 fi |
| 610 | 614 |
| 611 AC_SUBST(WITH_MODULES) | 615 AC_SUBST(WITH_MODULES) |
| 612 AM_CONDITIONAL(WITH_MODULES, test "$WITH_MODULES" = "1") | 616 AM_CONDITIONAL(WITH_MODULES, test "$WITH_MODULES" = "1") |
| 613 | 617 |
| 614 dnl | 618 dnl |
| 615 dnl setup default module path | 619 dnl setup default module path |
| 616 dnl | 620 dnl |
| 617 module_prefix=$prefix | 621 expanded_libdir=$( |
| 618 test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix | 622 test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 619 LIBXSLT_DEFAULT_PLUGINS_PATH="$module_prefix/lib/libxslt-plugins" | 623 test "x$exec_prefix" = xNONE && exec_prefix="$prefix" |
| 624 while test "$libdir_old" != "$libdir"; do |
| 625 libdir_old="$libdir" |
| 626 eval libdir="$libdir" |
| 627 done |
| 628 echo "$libdir" |
| 629 ) |
| 630 LIBXSLT_DEFAULT_PLUGINS_PATH="$expanded_libdir/libxslt-plugins" |
| 620 AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH) | 631 AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH) |
| 621 | 632 |
| 622 WIN32_EXTRA_LIBADD= | 633 WIN32_EXTRA_LIBADD= |
| 623 WIN32_EXTRA_LDFLAGS= | 634 WIN32_EXTRA_LDFLAGS= |
| 624 case "$host" in | 635 case "$host" in |
| 625 *-*-cygwin*) | 636 *-*-cygwin*) |
| 626 WIN32_EXTRA_LDFLAGS="-no-undefined" | 637 WIN32_EXTRA_LDFLAGS="-no-undefined" |
| 627 ;; | 638 ;; |
| 628 *-*-mingw*) | 639 *-*-mingw*) |
| 629 WIN32_EXTRA_LIBADD="-lwsock32" | 640 WIN32_EXTRA_LIBADD="-lwsock32" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 tests/XSLTMark/Makefile | 713 tests/XSLTMark/Makefile |
| 703 tests/docbook/Makefile | 714 tests/docbook/Makefile |
| 704 tests/exslt/Makefile | 715 tests/exslt/Makefile |
| 705 tests/exslt/common/Makefile | 716 tests/exslt/common/Makefile |
| 706 tests/exslt/functions/Makefile | 717 tests/exslt/functions/Makefile |
| 707 tests/exslt/math/Makefile | 718 tests/exslt/math/Makefile |
| 708 tests/exslt/sets/Makefile | 719 tests/exslt/sets/Makefile |
| 709 tests/exslt/strings/Makefile | 720 tests/exslt/strings/Makefile |
| 710 tests/exslt/date/Makefile | 721 tests/exslt/date/Makefile |
| 711 tests/exslt/dynamic/Makefile | 722 tests/exslt/dynamic/Makefile |
| 723 tests/exslt/crypto/Makefile |
| 712 tests/plugins/Makefile | 724 tests/plugins/Makefile |
| 713 doc/Makefile | 725 doc/Makefile |
| 714 xslt-config | 726 xslt-config |
| 715 libxslt.spec | 727 libxslt.spec |
| 716 ]) | 728 ]) |
| 717 | 729 |
| 718 AC_OUTPUT | 730 AC_OUTPUT |
| OLD | NEW |