Changeset 6097 in vbox
- Timestamp:
- Dec 16, 2007 7:53:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r6078 r6097 592 592 return 0; 593 593 #else 594 printf(", expected version 2.5.0 or higher ");594 printf(", expected version 2.5.0 or higher\n"); 595 595 return 1; 596 596 #endif … … 615 615 # 616 616 # Check for libxml2, needed by xpcom 617 # For now we check for libxml2 2.6.23 as 2.6.22 is known to NOT work 617 618 # 618 619 check_libxml2() … … 626 627 fail 627 628 else 628 log_success "found version $libxml2_ver"629 629 FLGXML2=`pkg-config libxml-2.0 --cflags` 630 630 INCXML2=`strip_I "$FLGXML2"` 631 631 LIBXML2=`pkg-config libxml-2.0 --libs` 632 cnf_append "SDK_VBOX_LIBXML2_INCS" "$INCXML2" 633 cnf_append "SDK_VBOX_LIBXML2_LIBS" "`strip_l "$LIBXML2"`" 632 cat > .tmp_src.cc << EOF 633 #include <cstdio> 634 #include <libxml/xmlversion.h> 635 extern "C" int main(void) 636 { 637 printf("found version %s", LIBXML_DOTTED_VERSION); 638 #if LIBXML_VERSION >= 20623 639 printf(", OK.\n"); 640 return 0; 641 #else 642 printf(", expected version 2.6.23 or higher\n"); 643 return 1; 644 #endif 645 } 646 EOF 647 [ -n "$INCXML2" ] && I_INCXML2=`prefix_I "$INCXML2"` 648 if test_compile "$LIBXML2 $LIBPTHREAD $I_INCXML2" xml2 xml2; then 649 if test_execute; then 650 cnf_append "SDK_VBOX_LIBXML2_INCS" "$INCXML2" 651 cnf_append "SDK_VBOX_LIBXML2_LIBS" "`strip_l "$LIBXML2"`" 652 fi 653 fi 634 654 fi 635 655 elif which_wrapper xml2-config; then … … 643 663 INCXML2=`strip_I "$FLGXML2"` 644 664 LIBXML2=`xml2-config --libs` 645 cnf_append "SDK_VBOX_LIBXML2_INCS" "$INCXML2" 646 cnf_append "SDK_VBOX_LIBXML2_LIBS" "`strip_l "$LIBCXML2"`" 665 cat > .tmp_src.cc << EOF 666 #include <cstdio> 667 #include <libxml/xmlversion.h> 668 extern "C" int main(void) 669 { 670 printf("found version %s", LIBXML_DOTTED_VERSION); 671 #if LIBXML_VERSION >= 20623 672 printf(", OK.\n"); 673 return 0; 674 #else 675 printf(", expected version 2.6.23 or higher\n"); 676 return 1; 677 #endif 678 } 679 EOF 680 [ -n "$INCXML2" ] && I_INCXML2=`prefix_I "$INCXML2"` 681 if test_compile "$LIBXML2 $LIBPTHREAD $I_INCXML2" xml2 xml2; then 682 if test_execute; then 683 cnf_append "SDK_VBOX_LIBXML2_INCS" "$INCXML2" 684 cnf_append "SDK_VBOX_LIBXML2_LIBS" "`strip_l "$LIBXML2"`" 685 fi 686 fi 647 687 fi 648 688 else
Note:
See TracChangeset
for help on using the changeset viewer.