Mercurial > emacs
comparison configure @ 110302:fd8902911ce3
Add support for the libxml2 library.
This adds the html-parse-string and xml-parse-string functions in the
new file src/xml.c, as well as autoconf detection of the library.
author | Lars Magne Ingebrigtsen <larsi@gnus.org> |
---|---|
date | Fri, 10 Sep 2010 18:44:35 +0200 |
parents | 16358be4a799 |
children | 50478146a2e1 |
comparison
equal
deleted
inserted
replaced
110301:e59d99dc1c71 | 110302:fd8902911ce3 |
---|---|
658 LIBOBJS | 658 LIBOBJS |
659 BLESSMAIL_TARGET | 659 BLESSMAIL_TARGET |
660 LIBS_MAIL | 660 LIBS_MAIL |
661 liblockfile | 661 liblockfile |
662 ALLOCA | 662 ALLOCA |
663 LIBXML2_LIBS | |
664 LIBXML2_CFLAGS | |
663 LIBXSM | 665 LIBXSM |
664 LIBGPM | 666 LIBGPM |
665 LIBGIF | 667 LIBGIF |
666 LIBTIFF | 668 LIBTIFF |
667 LIBPNG | 669 LIBPNG |
805 with_jpeg | 807 with_jpeg |
806 with_tiff | 808 with_tiff |
807 with_gif | 809 with_gif |
808 with_png | 810 with_png |
809 with_rsvg | 811 with_rsvg |
812 with_xml2 | |
810 with_imagemagick | 813 with_imagemagick |
811 with_xft | 814 with_xft |
812 with_libotf | 815 with_libotf |
813 with_m17n_flt | 816 with_m17n_flt |
814 with_toolkit_scroll_bars | 817 with_toolkit_scroll_bars |
1512 --without-jpeg don't compile with JPEG image support | 1515 --without-jpeg don't compile with JPEG image support |
1513 --without-tiff don't compile with TIFF image support | 1516 --without-tiff don't compile with TIFF image support |
1514 --without-gif don't compile with GIF image support | 1517 --without-gif don't compile with GIF image support |
1515 --without-png don't compile with PNG image support | 1518 --without-png don't compile with PNG image support |
1516 --without-rsvg don't compile with SVG image support | 1519 --without-rsvg don't compile with SVG image support |
1520 --without-xml2 don't compile with XML parsing support | |
1517 --with-imagemagick compile with ImageMagick image support | 1521 --with-imagemagick compile with ImageMagick image support |
1518 --without-xft don't use XFT for anti aliased fonts | 1522 --without-xft don't use XFT for anti aliased fonts |
1519 --without-libotf don't use libotf for OpenType font support | 1523 --without-libotf don't use libotf for OpenType font support |
1520 --without-m17n-flt don't use m17n-flt for text shaping | 1524 --without-m17n-flt don't use m17n-flt for text shaping |
1521 --without-toolkit-scroll-bars | 1525 --without-toolkit-scroll-bars |
2730 else | 2734 else |
2731 with_rsvg=yes | 2735 with_rsvg=yes |
2732 fi | 2736 fi |
2733 | 2737 |
2734 | 2738 |
2739 # Check whether --with-xml2 was given. | |
2740 if test "${with_xml2+set}" = set; then : | |
2741 withval=$with_xml2; | |
2742 else | |
2743 with_xml2=yes | |
2744 fi | |
2745 | |
2746 | |
2735 # Check whether --with-imagemagick was given. | 2747 # Check whether --with-imagemagick was given. |
2736 if test "${with_imagemagick+set}" = set; then : | 2748 if test "${with_imagemagick+set}" = set; then : |
2737 withval=$with_imagemagick; | 2749 withval=$with_imagemagick; |
2738 else | 2750 else |
2739 with_imagemagick=no | 2751 with_imagemagick=no |
11066 *-lSM*) ;; | 11078 *-lSM*) ;; |
11067 *) LIBS="$LIBXSM $LIBS" ;; | 11079 *) LIBS="$LIBXSM $LIBS" ;; |
11068 esac | 11080 esac |
11069 fi | 11081 fi |
11070 fi | 11082 fi |
11083 | |
11084 | |
11085 ### Use libxml (-lxml2) if available | |
11086 if test "${with_xml2}" != "no"; then | |
11087 ### I'm not sure what the version number should be, so I just guessed. | |
11088 | |
11089 succeeded=no | |
11090 | |
11091 # Extract the first word of "pkg-config", so it can be a program name with args. | |
11092 set dummy pkg-config; ac_word=$2 | |
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11094 $as_echo_n "checking for $ac_word... " >&6; } | |
11095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
11096 $as_echo_n "(cached) " >&6 | |
11097 else | |
11098 case $PKG_CONFIG in | |
11099 [\\/]* | ?:[\\/]*) | |
11100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11101 ;; | |
11102 *) | |
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11104 for as_dir in $PATH | |
11105 do | |
11106 IFS=$as_save_IFS | |
11107 test -z "$as_dir" && as_dir=. | |
11108 for ac_exec_ext in '' $ac_executable_extensions; do | |
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11112 break 2 | |
11113 fi | |
11114 done | |
11115 done | |
11116 IFS=$as_save_IFS | |
11117 | |
11118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11119 ;; | |
11120 esac | |
11121 fi | |
11122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11123 if test -n "$PKG_CONFIG"; then | |
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11125 $as_echo "$PKG_CONFIG" >&6; } | |
11126 else | |
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11128 $as_echo "no" >&6; } | |
11129 fi | |
11130 | |
11131 | |
11132 | |
11133 if test "$PKG_CONFIG" = "no" ; then | |
11134 HAVE_LIBXML2=no | |
11135 else | |
11136 PKG_CONFIG_MIN_VERSION=0.9.0 | |
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5 | |
11139 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; } | |
11140 | |
11141 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then | |
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11143 $as_echo "yes" >&6; } | |
11144 succeeded=yes | |
11145 | |
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5 | |
11147 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; } | |
11148 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'` | |
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5 | |
11150 $as_echo "$LIBXML2_CFLAGS" >&6; } | |
11151 | |
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5 | |
11153 $as_echo_n "checking LIBXML2_LIBS... " >&6; } | |
11154 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'` | |
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5 | |
11156 $as_echo "$LIBXML2_LIBS" >&6; } | |
11157 else | |
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11159 $as_echo "no" >&6; } | |
11160 LIBXML2_CFLAGS="" | |
11161 LIBXML2_LIBS="" | |
11162 ## If we have a custom action on failure, don't print errors, but | |
11163 ## do set a variable so people can do so. | |
11164 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"` | |
11165 | |
11166 fi | |
11167 | |
11168 | |
11169 | |
11170 else | |
11171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11172 echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11173 fi | |
11174 fi | |
11175 | |
11176 if test $succeeded = yes; then | |
11177 HAVE_LIBXML2=yes | |
11178 else | |
11179 HAVE_LIBXML2=no | |
11180 fi | |
11181 | |
11182 if test "${HAVE_LIBXML2}" = "yes"; then | |
11183 | |
11184 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h | |
11185 | |
11186 fi | |
11187 fi | |
11188 | |
11071 | 11189 |
11072 | 11190 |
11073 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 11191 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 | 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 |
11075 $as_echo_n "checking whether netdb declares h_errno... " >&6; } | 11193 $as_echo_n "checking whether netdb declares h_errno... " >&6; } |