]>
Commit | Line | Data |
---|---|---|
72c8a6b5 AM |
1 | --- cgminer-3.1.0/configure.ac.org 2013-04-30 13:02:59.103475727 +0200 |
2 | +++ cgminer-3.1.0/configure.ac 2013-04-30 13:03:46.147989707 +0200 | |
3 | @@ -188,10 +188,10 @@ | |
4 | if test "$found_opencl" = 1; then | |
5 | if test "x$adl" != xno; then | |
6 | ADL_CPPFLAGS= | |
7 | - AC_CHECK_FILE([$srcdir/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$srcdir], have_adl=false,) | |
8 | - if test x$have_adl+$have_cgminer_sdk = xfalse+true; then | |
9 | - AC_CHECK_FILE([$CGMINER_SDK/include/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$CGMINER_SDK/include], have_adl=false,) | |
10 | - fi | |
11 | + saved_CFLAGS="$CFLAGS" | |
12 | + CFLAGS="$CFLAGS -DLINUX=1" | |
13 | + AC_CHECK_HEADER(adl_sdk.h, [have_adl=true], [have_adl=false]) | |
14 | + CFLAGS="$saved_CFLAGS" | |
15 | if test x$have_adl = xtrue | |
16 | then | |
17 | AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found]) | |
18 | diff -urN cgminer-3.1.0.org/adl.c cgminer-3.1.0/adl.c | |
19 | --- cgminer-3.1.0.org/adl.c 2013-03-07 06:38:09.000000000 +0100 | |
20 | +++ cgminer-3.1.0/adl.c 2013-04-30 13:08:26.741697503 +0200 | |
21 | @@ -20,7 +20,7 @@ | |
22 | #endif | |
23 | ||
24 | #include "miner.h" | |
25 | -#include "ADL_SDK/adl_sdk.h" | |
26 | +#include "adl_sdk.h" | |
27 | #include "compat.h" | |
28 | ||
29 | #if defined (__linux) | |
30 | diff -urN cgminer-3.1.0.org/adl_functions.h cgminer-3.1.0/adl_functions.h | |
31 | --- cgminer-3.1.0.org/adl_functions.h 2012-08-21 13:21:55.000000000 +0200 | |
32 | +++ cgminer-3.1.0/adl_functions.h 2013-04-30 13:08:32.641845548 +0200 | |
33 | @@ -38,7 +38,7 @@ | |
34 | #include <tchar.h>\r | |
35 | #endif\r | |
36 | \r | |
37 | -#include "ADL_SDK/adl_sdk.h"\r | |
38 | +#include "adl_sdk.h"\r | |
39 | \r | |
40 | // Definitions of the used function pointers. Add more if you use other ADL APIs\r | |
41 | \r | |
42 | @@ -271,4 +271,4 @@ | |
43 | typedef int ( *ADL_OVERDRIVE5_POWERCONTROL_GET ) (int iAdapterIndex, int* iPercentage, int* whatever);\r | |
44 | typedef int ( *ADL_OVERDRIVE5_POWERCONTROL_SET ) (int iAdapterIndex, int iPercentage);\r | |
45 | //typedef int ( *ADL_OVERDRIVE5_POWERCONTROL_CAPS ) (int iAdapterIndex, int* lpCaps, int* lpValid);\r | |
46 | -//typedef int ( *ADL_OVERDRIVE5_POWERCONTROLINFO_GET) (int iAdapterIndex, ...) | |
47 | \ Brak znaku nowej linii na końcu pliku | |
48 | +//typedef int ( *ADL_OVERDRIVE5_POWERCONTROLINFO_GET) (int iAdapterIndex, ...)\r | |
49 | diff -urN cgminer-3.1.0.org/miner.h cgminer-3.1.0/miner.h | |
50 | --- cgminer-3.1.0.org/miner.h 2013-04-28 17:46:07.000000000 +0200 | |
51 | +++ cgminer-3.1.0/miner.h 2013-04-30 13:08:39.532018428 +0200 | |
52 | @@ -103,7 +103,7 @@ | |
53 | ||
54 | ||
55 | #ifdef HAVE_ADL | |
56 | - #include "ADL_SDK/adl_sdk.h" | |
57 | + #include "adl_sdk.h" | |
58 | #endif | |
59 | ||
60 | #ifdef HAVE_LIBUSB |