Changeset 6125 in vbox for trunk/configure
- Timestamp:
- Dec 18, 2007 2:01:55 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 26852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r6122 r6125 52 52 GENISOIMAGE="genisoimage" 53 53 MKISOFS="mkisofs" 54 INCXALAN="/usr/local/include"55 LIBXALAN="-lxalan-c"56 LIBXALAN_DIR="/usr/local/lib"57 INCXERCES="/usr/local/include"58 LIBXERCES="-lxerces-c"59 LIBXERCES_DIR="/usr/local/lib"60 54 BUILD_LIBXML2= 61 55 LIBCRYPTO="-lcrypto" … … 538 532 539 533 # 540 # Check for xalan, needed by VBoxXML 541 # 542 check_xalan() 543 { 544 if [ -n "$LIBXALAN" ]; then 545 test_header xalan 546 cat > .tmp_src.cc << EOF 547 #include <cstdio> 548 #include <xalanc/Include/XalanVersion.hpp> 549 extern "C" int main(void) 550 { 551 printf("found version %d.%d.%d", 552 XALAN_VERSION_MAJOR, XALAN_VERSION_MINOR, XALAN_VERSION_REVISION); 553 #if _XALAN_VERSION >= 10800 554 printf(", OK.\n"); 555 return 0; 556 #else 557 printf(", expected version 1.8.0 or higher\n"); 558 return 1; 559 #endif 560 } 561 EOF 562 [ -n "$INCXALAN" ] && I_INCXALAN=`prefix_I "$INCXALAN"` 563 if test_compile "$LIBXALAN $LIBPTHREAD $I_INCXALAN" xalan xalanc; then 564 if test_execute; then 565 cnf_append "SDK_VBOX_XALAN_LIBS" "`strip_l "$LIBXALAN"`" 566 cnf_append "SDK_VBOX_XALAN_LIBPATH" "`strip_L "$LIBXALAN"`" 567 cnf_append "SDK_VBOX_XALAN_INCS" "$INCXALAN" 568 fi 569 fi 570 else 571 echo "Building xalan from shipped sources." 572 echo "Building xalan from shipped sources." >> $LOG 573 echo >> $LOG 574 echo >> $LOG 575 fi 576 } 577 578 # 579 # Check for xerces, needed by VBoxXML 580 # 581 check_xerces() 582 { 583 if [ -n "$LIBXERCES" ]; then 584 test_header xerces 585 cat > .tmp_src.cc << EOF 586 #include <cstdio> 587 #include <xercesc/util/XercesVersion.hpp> 588 extern "C" int main(void) 589 { 590 printf("found version %d.%d.%d", 591 XERCES_VERSION_MAJOR, XERCES_VERSION_MINOR, XERCES_VERSION_REVISION); 592 #if _XERCES_VERSION >= 20500 593 printf(", OK.\n"); 594 return 0; 595 #else 596 printf(", expected version 2.5.0 or higher\n"); 597 return 1; 598 #endif 599 } 600 EOF 601 [ -n "$INCXERCES" ] && I_INCXERCES=`prefix_I "$INCXERCES"` 602 if test_compile "$LIBXERCES $LIBPTHREAD $I_INCXERCES" xerces xercesc; then 603 if test_execute; then 604 cnf_append "SDK_VBOX_XERCES_LIBS" "`strip_l "$LIBXERCES"`" 605 cnf_append "SDK_VBOX_XERCES_LIBPATH" "`strip_L "$LIBXERCES"`" 606 cnf_append "SDK_VBOX_XERCES_INCS" "$INCXERCES" 607 fi 608 fi 609 else 610 echo "Building xerces from shipped sources." 611 echo "Building xerces from shipped sources." >> $LOG 612 echo >> $LOG 613 echo >> $LOG 614 fi 615 } 616 617 # 618 # Check for libxml2, needed by xpcom 619 # For now we check for libxml2 2.6.23 as 2.6.22 is known to NOT work 534 # Check for libxml2, needed by VBoxSettings 535 # 2.6.23 is known to NOT work, 2.6.24 is known to work (e.g. Ubuntu/Dapper) 620 536 # 621 537 check_libxml2() … … 1374 1290 --disable-sdl-ttf disable SDL_ttf detection 1375 1291 --disable-pulse disable PulseAudio detection 1376 --build-xalan build xalan & xerces from sources (not OSE!)1377 1292 --build-libxml2 build libxml2 from sources (not OSE!) 1378 1293 --setup-wine setup a Wine directory and register the hhc hack … … 1386 1301 --with-mkisofs=PATH location of mkisofs [$MKISOFS] 1387 1302 --with-qt-dir=DIR directory for QT headers/libraries [$QTDIR] 1388 --with-xalan=LIB location of the xalan library [$LIBXALAN]1389 --with-xalan-incdir=DIR location of the xalan headers [/usr/include /usr/local/include]1390 --with-xalan-libdir=DIR location of the xalan library [/usr/lib /usr/local/lib]1391 --with-xerces=LIB location of the xerces library [$LIBXERCES]1392 --with-xerces-incdir=DIR location of the xerces headers [/usr/include /usr/local/include]1393 --with-xerces-libdir=DIR location of the xerces library [/usr/lib /usr/local/lib]1394 1303 1395 1304 Build type: … … 1439 1348 MKISOFS=`echo $option | cut -d'=' -f2` 1440 1349 ;; 1441 --with-xalan=*)1442 LIBXALAN=`echo $option | cut -d'=' -f2`1443 ;;1444 --with-xalan-libdir=*)1445 LIBXALAN_DIR=`echo $option | cut -d'=' -f2`1446 ;;1447 --with-xalan-incdir=*)1448 INCXALAN=`echo $option | cut -d'=' -f2`1449 ;;1450 --with-xerces=*)1451 LIBXERCES=`echo $option | cut -d'=' -f2`1452 ;;1453 --with-xerces-libdir=*)1454 LIBXERCES_DIR=`echo $option | cut -d'=' -f2`1455 ;;1456 --with-xerces-incdir=*)1457 INCXERCES=`echo $option | cut -d'=' -f2`1458 ;;1459 1350 --disable-xpcom) 1460 1351 WITH_XPCOM=0 … … 1471 1362 --build-debug|-d) 1472 1363 BUILD_TYPE=debug 1473 ;;1474 --build-xalan)1475 LIBXERCES=1476 LIBXERCES_DIR=1477 LIBXALAN=1478 LIBXALAN_DIR=1479 1364 ;; 1480 1365 --build-libxml2) … … 1505 1390 esac 1506 1391 done 1507 1508 [ -n "$LIBXALAN_DIR" ] && LIBXALAN="-L$LIBXALAN_DIR $LIBXALAN"1509 [ -n "$LIBXERCES_DIR" ] && LIBXERCES="-L$LIBXERCES_DIR $LIBXERCES"1510 1392 1511 1393 LOG="$ODIR$LOG" … … 1600 1482 # the libraries 1601 1483 [ "$OS" != "darwin" ] && check_pthread 1602 [ $WITH_XPCOM -eq 1 ] && check_xalan1603 [ $WITH_XPCOM -eq 1 ] && check_xerces1604 1484 [ $WITH_XPCOM -eq 1 ] && check_libxml2 1605 1485 [ $WITH_LIBIDL -eq 1 ] && check_libidl
Note:
See TracChangeset
for help on using the changeset viewer.