Changeset 65874 in vbox for trunk/configure
- Timestamp:
- Feb 24, 2017 10:40:50 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113650
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r65663 r65874 1921 1921 else 1922 1922 if test_execute; then 1923 cnf_append "VBOX_LINUX_SRC" "`cd $LINUX ; pwd`" 1924 fi 1925 fi 1926 } 1927 1923 cat > $ODIR.tmp_src.c << EOF 1924 #include <linux/version.h> 1925 int printf(const char *format, ...); 1926 int main(void) 1927 { 1928 return LINUX_VERSION_CODE > KERNEL_VERSION(4,8,0) ? 1 : 0; 1929 } 1930 EOF 1931 echo "compiling the following source file:" >> $LOG 1932 cat $ODIR.tmp_src.c >> $LOG 1933 echo "using the following command line:" >> $LOG 1934 echo "$CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include " \ 1935 "-I$LINUX/include/generated/uapi" >> $LOG 1936 $CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include \ 1937 -I$LINUX/include/generated/uapi >> $LOG 2>&1 1938 if [ $? -eq 0 ]; then 1939 $ODIR.tmp_out 1940 if [ $? -ne 0 ]; then 1941 cnf_append "VBOX_WITH_VBOXDRV" "" 1942 cnf_append "VBOX_WITH_ADDITION_DRIVERS" "" 1943 echo "Detected Linux >= 4.8 -- disabling compiling of Linux kernel modules." 1944 else 1945 cnf_append "VBOX_LINUX_SRC" "`cd $LINUX ; pwd`" 1946 fi 1947 fi 1948 fi 1949 fi 1950 } 1928 1951 1929 1952 #
Note:
See TracChangeset
for help on using the changeset viewer.