4639
4638
lt_cv_nm_interface="BSD nm"
4640
4639
echo "int some_variable = 0;" > conftest.$ac_ext
4641
(eval echo "\"\$as_me:4641: $ac_compile\"" >&5)
4640
(eval echo "\"\$as_me:4640: $ac_compile\"" >&5)
4642
4641
(eval "$ac_compile" 2>conftest.err)
4643
4642
cat conftest.err >&5
4644
(eval echo "\"\$as_me:4644: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4643
(eval echo "\"\$as_me:4643: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4645
4644
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4646
4645
cat conftest.err >&5
4647
(eval echo "\"\$as_me:4647: output\"" >&5)
4646
(eval echo "\"\$as_me:4646: output\"" >&5)
4648
4647
cat conftest.out >&5
4649
4648
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4650
4649
lt_cv_nm_interface="MS dumpbin"
7380
7379
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7381
7380
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7382
7381
-e 's:$: $lt_compiler_flag:'`
7383
(eval echo "\"\$as_me:7383: $lt_compile\"" >&5)
7382
(eval echo "\"\$as_me:7382: $lt_compile\"" >&5)
7384
7383
(eval "$lt_compile" 2>conftest.err)
7386
7385
cat conftest.err >&5
7387
echo "$as_me:7387: \$? = $ac_status" >&5
7386
echo "$as_me:7386: \$? = $ac_status" >&5
7388
7387
if (exit $ac_status) && test -s "$ac_outfile"; then
7389
7388
# The compiler can only warn and ignore the option if not recognized
7390
7389
# So say no if there are warnings other than the usual output.
7719
7718
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720
7719
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721
7720
-e 's:$: $lt_compiler_flag:'`
7722
(eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7721
(eval echo "\"\$as_me:7721: $lt_compile\"" >&5)
7723
7722
(eval "$lt_compile" 2>conftest.err)
7725
7724
cat conftest.err >&5
7726
echo "$as_me:7726: \$? = $ac_status" >&5
7725
echo "$as_me:7725: \$? = $ac_status" >&5
7727
7726
if (exit $ac_status) && test -s "$ac_outfile"; then
7728
7727
# The compiler can only warn and ignore the option if not recognized
7729
7728
# So say no if there are warnings other than the usual output.
7824
7823
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7825
7824
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7826
7825
-e 's:$: $lt_compiler_flag:'`
7827
(eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
7826
(eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
7828
7827
(eval "$lt_compile" 2>out/conftest.err)
7830
7829
cat out/conftest.err >&5
7831
echo "$as_me:7831: \$? = $ac_status" >&5
7830
echo "$as_me:7830: \$? = $ac_status" >&5
7832
7831
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7834
7833
# The compiler can only warn and ignore the option if not recognized
7879
7878
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7880
7879
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7881
7880
-e 's:$: $lt_compiler_flag:'`
7882
(eval echo "\"\$as_me:7882: $lt_compile\"" >&5)
7881
(eval echo "\"\$as_me:7881: $lt_compile\"" >&5)
7883
7882
(eval "$lt_compile" 2>out/conftest.err)
7885
7884
cat out/conftest.err >&5
7886
echo "$as_me:7886: \$? = $ac_status" >&5
7885
echo "$as_me:7885: \$? = $ac_status" >&5
7887
7886
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7889
7888
# The compiler can only warn and ignore the option if not recognized
10580
10579
#rt_libs=$LIBS
10581
10580
LIBS=$save_LIBS
10583
# Extract the first word of "xml2-config", so it can be a program name with args.
10584
set dummy xml2-config; ac_word=$2
10585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586
$as_echo_n "checking for $ac_word... " >&6; }
10587
if test "${ac_cv_prog_HAVE_LIBXML2_CONFIG+set}" = set; then :
10588
$as_echo_n "(cached) " >&6
10590
if test -n "$HAVE_LIBXML2_CONFIG"; then
10591
ac_cv_prog_HAVE_LIBXML2_CONFIG="$HAVE_LIBXML2_CONFIG" # Let the user override the test.
10593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594
for as_dir in $PATH
10597
test -z "$as_dir" && as_dir=.
10598
for ac_exec_ext in '' $ac_executable_extensions; do
10599
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10600
ac_cv_prog_HAVE_LIBXML2_CONFIG="yes"
10601
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610
HAVE_LIBXML2_CONFIG=$ac_cv_prog_HAVE_LIBXML2_CONFIG
10611
if test -n "$HAVE_LIBXML2_CONFIG"; then
10612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBXML2_CONFIG" >&5
10613
$as_echo "$HAVE_LIBXML2_CONFIG" >&6; }
10615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616
$as_echo "no" >&6; }
10620
if test "x${HAVE_LIBXML2_CONFIG}" != "xyes"; then
10621
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10622
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10623
as_fn_error "xml2-config not found in PATH - this means libxml2 development package is missing
10624
See \`config.log' for more details." "$LINENO" 5; }
10626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadFile in -lxml2" >&5
10627
$as_echo_n "checking for xmlReadFile in -lxml2... " >&6; }
10628
if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then :
10629
$as_echo_n "(cached) " >&6
10631
ac_check_lib_save_LIBS=$LIBS
10632
LIBS="-lxml2 `xml2-config --libs`
10634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635
/* end confdefs.h. */
10637
/* Override any GCC internal prototype to avoid an error.
10638
Use char because int might match the return type of a GCC
10639
builtin and then its argument prototype would still apply. */
10643
char xmlReadFile ();
10647
return xmlReadFile ();
10652
if ac_fn_c_try_link "$LINENO"; then :
10653
ac_cv_lib_xml2_xmlReadFile=yes
10655
ac_cv_lib_xml2_xmlReadFile=no
10657
rm -f core conftest.err conftest.$ac_objext \
10658
conftest$ac_exeext conftest.$ac_ext
10659
LIBS=$ac_check_lib_save_LIBS
10661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10662
$as_echo "$ac_cv_lib_xml2_xmlReadFile" >&6; }
10663
if test "x$ac_cv_lib_xml2_xmlReadFile" = x""yes; then :
10664
LIBXML2_CFLAGS=`xml2-config --cflags`
10665
LIBXML2_LIBS=`xml2-config --libs`
10668
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10669
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10670
as_fn_error "libxml2 is missing
10671
See \`config.log' for more details." "$LINENO" 5; }
10582
# We CURRENTLY do NOT need libxml, but this will change at a later stage.
10583
# If we need libxml, we need it for features which some may not find essential.
10584
# The idea is to make these features optional, and thus save the libxml dependency
10585
# under some circumstances. This will be added as need arises. As such, for
10586
# the time being, we simply comment out the code. Please do not remove it,
10587
# as we will need it back in again some time in the future.
10588
# rgerhards, 2011-04-01 (NOT an april fools day joke!)
10590
# [HAVE_LIBXML2_CONFIG],
10594
#if test "x${HAVE_LIBXML2_CONFIG}" != "xyes"; then
10595
# AC_MSG_FAILURE([xml2-config not found in PATH - this means libxml2 development package is missing])
10600
# [LIBXML2_CFLAGS=`xml2-config --cflags`
10601
# LIBXML2_LIBS=`xml2-config --libs`
10603
# [AC_MSG_FAILURE([libxml2 is missing])],
10604
# [`xml2-config --libs`]