VirtualBox

Changeset 4719 in vbox for trunk/configure


Ignore:
Timestamp:
Sep 12, 2007 9:04:14 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24394
Message:

configure: fixed bashism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r4509 r4719  
    514514}
    515515EOF
    516     if test_compile "$LIBXALAN $LIBPTHREAD ${INCXALAN:+-I$INCXALAN}" xalan xalanc; then
     516    [ -n "$INCXALAN" ] && I_INCXALAN="-I$INCXALAN"
     517    if test_compile "$LIBXALAN $LIBPTHREAD $I_INCXALAN" xalan xalanc; then
    517518      if test_execute; then
    518519        cnf_append "SDK_VBOX_XALAN_LIBS" "`strip_l "$LIBXALAN"`"
     
    551552}
    552553EOF
    553     if test_compile "$LIBXERCES $LIBPTHREAD ${INCXERCES:+-I$INCXERCES}" xerces xercesc; then
     554    [ -n "$INCXERCES" ] && I_INCXERCES="-I$INCXERCES"
     555    if test_compile "$LIBXERCES $LIBPTHREAD $I_INCXERCES" xerces xercesc; then
    554556      if test_execute; then
    555557        cnf_append "SDK_VBOX_XERCES_LIBS" "`strip_l "$LIBXERCES"`"
     
    678680}
    679681EOF
    680   if test_compile "$LIBZ ${INCZ:+-I$INCZ}" zlib zlib; then
     682  [ -n "$INCZ" ] && I_INCZ="-I$INCZ"
     683  if test_compile "$LIBZ $I_INCZ" zlib zlib; then
    681684    if test_execute; then
    682685      cnf_append "SDK_VBOX_ZLIB_LIBS" "`strip_l "$LIBZ"`"
     
    707710}
    708711EOF
    709 #  if test_compile "$LIBPNG ${INCPNG:+-I$INCPNG}" libpng libpng nofatal; then
    710   if test_compile "$LIBPNG ${INCPNG:+-I$INCPNG}" libpng libpng; then
     712  [ -n "$INCPNG" ] && I_INCPNG="-I$INCPNG"
     713#  if test_compile "$LIBPNG $I_INCPNG" libpng libpng nofatal; then
     714  if test_compile "$LIBPNG $I_INCPNG" libpng libpng; then
    711715#    if test_execute nofatal; then
    712716    if test_execute; then
     
    803807}
    804808EOF
    805     if test_compile "$LIBSDL $LIBSDLMAIN ${INCSDL:+-I$INCSDL}" SDL SDL; then
     809    [ -n "$INCSDL" ] && I_INCSDL="-I$INCSDL"
     810    if test_compile "$LIBSDL $LIBSDLMAIN $I_INCSDL" SDL SDL; then
    806811      if test_execute; then
    807812        cnf_append "LIB_SDK_LIBSDL_SDL"     "`strip_l "$LIBSDL"`"
     
    12241229      ;;
    12251230    --odir=*)
    1226       ODIR=`echo $option | cut -d'=' -f2`
     1231      ODIR="`echo $option | cut -d'=' -f2`/"
    12271232      ;;
    12281233    *)
     
    12351240done
    12361241
    1237 LOG="${ODIR:+$ODIR/}$LOG"
    1238 ENV="${ODIR:+$ODIR/}$ENV"
    1239 CNF="${ODIR:+$ODIR/}$CNF"
     1242LOG="$ODIR$LOG"
     1243ENV="$ODIR$ENV"
     1244CNF="$ODIR$CNF"
    12401245
    12411246# initialize output files
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette