VirtualBox

Changeset 923 in vbox for trunk/configure


Ignore:
Timestamp:
Feb 15, 2007 9:57:46 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18653
Message:

Made VBox compile on Linux systems without /usr/include/linux/compiler.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r921 r923  
    988988}
    989989
     990
     991#
     992# Check for compiler.h
     993# Some Linux distributions include "compiler.h" in their libc linux
     994# headers package, some don't.  Most don't need it, building might (!)
     995# not succeed on openSUSE without it.
     996#
     997# See http://www.mail-archive.com/qemu-devel%40nongnu.org/msg07980.html
     998#
     999function check_compiler_h
     1000{
     1001  test_header compiler.h
     1002  if ! test -f "/usr/include/linux/compiler.h"; then
     1003    cnf_append "NO_COMPILER_H" "1"
     1004    log_success "compiler.h not found"
     1005  else
     1006    log_success "compiler.h found"
     1007  fi
     1008}
     1009
     1010
    9901011#
    9911012# Show help
     
    11831204# Linux-specific
    11841205[ "$OS" = "linux" ] && check_linux
     1206[ "$OS" = "linux" ] && check_compiler_h
    11851207
    11861208# success!
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