VirtualBox

Changeset 22259 in vbox


Ignore:
Timestamp:
Aug 14, 2009 1:42:10 PM (15 years ago)
Author:
vboxsync
Message:

Configure-OSE: make it work for Darwin again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r21903 r22259  
    8989BUILD_LIBXSLT=
    9090BUILD_LIBCURL=
     91BUILD_LIBSSL=
    9192CC="gcc"
    9293CC32=""
     
    809810check_ssl()
    810811{
    811   test_header ssl
    812   cat > $ODIR.tmp_src.cc << EOF
     812  if [ -z "$BUILD_LIBSSL" ]; then
     813    test_header ssl
     814    cat > $ODIR.tmp_src.cc << EOF
    813815#include <cstdio>
    814816#include <openssl/opensslv.h>
     
    825827}
    826828EOF
    827   if test_compile $LIBCRYPTO libcrypto openssl; then
    828     if test_execute nofatal; then
    829       cnf_append "SDK_VBOX_OPENSSL_INCS" ""
    830       cnf_append "SDK_VBOX_OPENSSL_LIBS" "`strip_l "$LIBCRYPTO"`"
     829    if test_compile $LIBCRYPTO libcrypto openssl; then
     830      if test_execute nofatal; then
     831        cnf_append "SDK_VBOX_OPENSSL_INCS" ""
     832        cnf_append "SDK_VBOX_OPENSSL_LIBS" "`strip_l "$LIBCRYPTO"`"
     833      fi
    831834    fi
    832835  fi
     
    18361839  darwin_ver=`uname -r`
    18371840  case "$darwin_ver" in
     1841    10\.*)
     1842      darwin_ver="10.6"
     1843      ;;
    18381844    9\.*)
    18391845      darwin_ver="10.5"
     
    18441850      ;;
    18451851    *)
    1846       echo "  failed to determin darwin version. (uname -r: $darwin_ver)"
     1852      echo "  failed to determine Darwin version. (uname -r: $darwin_ver)"
    18471853      fail
    18481854      darwin_ver="unknown"
     
    21602166  BUILD_LIBXSLT=1
    21612167  BUILD_LIBXML2=1
    2162   [ $OSE -eq 1 ] && BUILD_LIBCURL=1
     2168  [ $OSE -eq 1 ] || BUILD_LIBCURL=1
     2169  [ $OSE -eq 1 ] || BUILD_LIBSSL=1
    21632170fi
    21642171
     
    21862193[ $WITH_XPCOM  -eq 1 ] && check_libxslt
    21872194[ $WITH_LIBIDL -eq 1 ] && check_libidl
    2188 # build openssl on Darwin in every case
    2189 [ "$OS" != "darwin"  ] && check_ssl
     2195check_ssl
     2196check_curl
    21902197[ "$OS" != "darwin"  ] && check_z
    21912198[ "$OS" != "darwin" -a "$OS" != "freebsd" ] && check_png
    2192 check_curl
    21932199[ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam
    21942200[ $WITH_SDL -eq 1 ]    && check_sdl
     
    22462252if [ "$OS" = "darwin" ]; then
    22472253  check_darwinversion
    2248   check_i386elfgcc
     2254#  check_i386elfgcc
    22492255fi
    22502256
Note: See TracChangeset for help on using the changeset viewer.

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