VirtualBox

Changeset 66931 in vbox


Ignore:
Timestamp:
May 17, 2017 10:56:13 AM (8 years ago)
Author:
vboxsync
Message:

configure: improved gcc 7 check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r66821 r66931  
    425425  test_header gcc
    426426  if check_avail "$CC" CC really; then
    427     cc_ver=`$CC -dumpversion` 2>/dev/null
     427    cc_ver=`$CC -dumpfullversion` 2>/dev/null
     428    if [ $? -ne 0 ]; then
     429      cc_ver=`$CC -dumpversion` 2>/dev/null
     430    fi
    428431    if [ $? -ne 0 ]; then
    429432      log_failure "cannot execute '$CC -dumpversion'"
     
    431434    fi
    432435    if check_avail "$CXX" CXX really; then
    433       cxx_ver=`$CXX -dumpversion` 2>/dev/null
     436      cxx_ver=`$CXX -dumpfullversion` 2>/dev/null
     437      if [ $? -ne 0 ]; then
     438        cxx_ver=`$CXX -dumpversion` 2>/dev/null
     439      fi
    434440      if [ $? -ne 0 ]; then
    435441        log_failure "cannot execute '$CXX -dumpversion'"
     
    448454             -o \( $cc_maj -eq 4 -a $cc_min -lt 2 -a "$OS"  = "darwin" \) \
    449455             -o $cc_maj -gt 7 ]; then
    450         log_failure "gcc version $cc_maj.$cc_min found, expected gcc 4.x, gcc 5.x or gcc 6.x"
     456        log_failure "gcc version $cc_maj.$cc_min found, expected gcc 4.x...7.x"
    451457        fail really
    452458      else
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