VirtualBox

Changeset 57932 in vbox


Ignore:
Timestamp:
Sep 29, 2015 7:38:00 AM (9 years ago)
Author:
vboxsync
Message:

configure: fall-back for the Linux kernel directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r57930 r57932  
    156156DEVDIR="`cd \`dirname $0\`; pwd`/tools"
    157157if [ -d "/lib/modules/`uname -r`/build" ]; then
    158  LINUX="/lib/modules/`uname -r`/build"
     158  LINUX="/lib/modules/`uname -r`/build"
    159159elif [ "`echo /lib/modules/*`" != "/lib/modules/*" ]; then
    160160  # Get the most recent kernel headers if none match the current kernel.
    161161  for i in /lib/modules/*; do
    162     LINUX="$i/build"
     162    if [ -r "$i/build" ]; then
     163      LINUX="$i/build"
     164    fi
    163165  done
    164 else
     166fi
     167if [ -z "$LINUX" ]; then
    165168 LINUX="/usr/src/linux"
    166169fi
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