Lines 1-5
Link Here
|
1 |
--- configure.orig 2017-12-21 17:31:27 UTC |
1 |
--- configure.orig 2018-01-23 18:08:55 UTC |
2 |
+++ configure |
2 |
+++ configure |
|
|
3 |
@@ -21895,12 +21895,13 @@ case "$host_os" in |
4 |
darwin*) |
5 |
;; |
6 |
*) |
7 |
- for ac_func in clock_gettime |
8 |
+ for ac_func in clock_gettime clock_nanosleep |
9 |
do : |
10 |
- ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
11 |
-if test "x$ac_cv_func_clock_gettime" = xyes; then : |
12 |
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13 |
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
14 |
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
15 |
cat >>confdefs.h <<_ACEOF |
16 |
-#define HAVE_CLOCK_GETTIME 1 |
17 |
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18 |
_ACEOF |
19 |
CLOCK_LIB= |
20 |
else |
21 |
@@ -22559,11 +22559,20 @@ $as_echo "yes" >&6; } |
22 |
fi |
23 |
fi |
24 |
|
25 |
-ac_fn_c_check_header_mongrel "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default" |
26 |
-if test "x$ac_cv_header_linux_futex_h" = xyes; then : |
27 |
- DEFINES="$DEFINES -DHAVE_LINUX_FUTEX_H" |
28 |
+for ac_header in linux/futex.h sys/umtx.h |
29 |
+do : |
30 |
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31 |
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <errno.h> |
32 |
+ #include <sys/types.h> |
33 |
+" |
34 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
35 |
+ cat >>confdefs.h <<_ACEOF |
36 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
37 |
+_ACEOF |
38 |
+ DEFINES="$DEFINES -DHAVE_LINUX_FUTEX_H" |
39 |
fi |
40 |
|
41 |
+done |
42 |
|
43 |
|
44 |
# Check whether --enable-selinux was given. |
3 |
@@ -23308,7 +23308,7 @@ fi |
45 |
@@ -23308,7 +23308,7 @@ fi |
4 |
|
46 |
|
5 |
|
47 |
|
Lines 9-34
Link Here
|
9 |
dri3_default=yes |
51 |
dri3_default=yes |
10 |
;; |
52 |
;; |
11 |
*) |
53 |
*) |
12 |
@@ -27028,9 +27028,19 @@ if test "x$enable_opencl" = xyes; then |
|
|
13 |
as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5 |
14 |
fi |
15 |
|
16 |
+ if test "x$acv_mesa_CLANG" = xno; then |
17 |
+ |
18 |
+ GCC_VERSION=`$CC -dumpversion` |
19 |
+ if test $? -eq 0; then |
20 |
+ GCC_VERSION_MAJOR=`echo $GCC_VERSION | cut -d. -f1` |
21 |
+ GCC_VERSION_MINOR=`echo $GCC_VERSION | cut -d. -f2` |
22 |
+ fi |
23 |
+ |
24 |
if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7; then |
25 |
as_fn_error $? "gcc >= 4.7 is required to build clover" "$LINENO" 5 |
26 |
fi |
27 |
+# end of clang test. |
28 |
+ fi |
29 |
|
30 |
if test "x$have_libclc" = xno; then |
31 |
as_fn_error $? "pkg-config cannot find libclc.pc which is required to build clover. |
32 |
@@ -27096,9 +27106,6 @@ rm -f core conftest.err conftest.$ac_obj |
54 |
@@ -27096,9 +27106,6 @@ rm -f core conftest.err conftest.$ac_obj |
33 |
CLANG_LIBDIR=${LLVM_LIBDIR} |
55 |
CLANG_LIBDIR=${LLVM_LIBDIR} |
34 |
fi |
56 |
fi |