Changeset 15678 in vbox for trunk/configure
- Timestamp:
- Dec 19, 2008 9:55:01 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41229
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r15608 r15678 67 67 WITH_HARDENING=1 68 68 CC="gcc" 69 CC_COMPAT=""70 69 CC32="" 71 70 CC64="" … … 349 348 { 350 349 test_header gcc 351 if [ -n "$CC_COMPAT" ]; then352 if check_avail "$CC_COMPAT" CC_COMPAT really; then353 cc_compat_ver=`$CC_COMPAT -dumpversion` 2>/dev/null354 if [ $? -ne 0 ]; then355 log_failure "cannot execute '$CC_COMPAT -dumpversion'"356 fail really357 fi358 cc_compat_maj=`echo $cc_compat_ver|cut -d. -f1`359 cc_compat_min=`echo $cc_compat_ver|cut -d. -f2`360 if [ $cc_compat_maj -lt 3 \361 -o \( $cc_compat_maj -eq 3 -a $cc_compat_min -lt 2 \) \362 -o \( $cc_compat_maj -eq 4 -a $cc_compat_min -lt 1 \) \363 -o \( $cc_compat_maj -eq 4 -a $cc_compat_min -gt 2 \) \364 -o $cc_compat_maj -gt 4 ]; then365 log ""366 log " ** Version $cc_compat_ver of the compatibility gcc found. Expected gcc 3.x with x>1"367 log " ** or gcc 4.x with 0<x<3"368 fail really369 fi370 cnf_append "VBOX_RECOMPILER_OP_GCC" "$CC_COMPAT"371 fi372 fi373 350 if check_avail "$CC" CC really; then 374 351 cc_ver=`$CC -dumpversion` 2>/dev/null … … 390 367 elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a "OS" = "darwin" ]; then 391 368 log_success "found version $cc_ver" 392 elif [ $cc_maj -eq 4 -a $cc_min -eq 3 ]; then393 if [ -z "$CC_COMPAT" ]; then394 log ""395 log " ** There are known problems with gcc version 4.3 when compiling the recompiler"396 log " ** stuff. You need to specify a compatibility compiler with version < 4.3. Look"397 log " ** for a package compat-gcc-34 on Fedora systems or something similar on other"398 log " ** distributions and call configure with parameter --with-gcc-compat=gcc34."399 fail really400 fi401 log_success "found version $cc_ver + compat version $cc_compat_ver"402 369 # gcc-4.0 is allowed for Darwin only 403 370 elif [ $cc_maj -lt 3 \ … … 1837 1804 --with-g++=*) 1838 1805 CXX=`echo $option | cut -d'=' -f2` 1839 ;;1840 --with-gcc-compat=*)1841 CC_COMPAT=`echo $option | cut -d'=' -f2`1842 1806 ;; 1843 1807 --with-kbuild=*)
Note:
See TracChangeset
for help on using the changeset viewer.