-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
57 lines (47 loc) · 1.29 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
AC_PREREQ([2.57])
AC_INIT([distributedcl],[0.1.1])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([0.1.1 foreign dist-bzip2 dist-xz])
LT_INIT([dlopen])
LT_PREREQ([1.0])
AC_LANG(C++)
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_HEADER_RESOLV
AX_BOOST_BASE([1.48.0])
AX_BOOST_THREAD
AX_BOOST_PROGRAM_OPTIONS
AX_BOOST_FILESYSTEM
AX_BOOST_SYSTEM
AX_BOOST_DATE_TIME
CXXFLAGS=" -g -O3 -Wall -fno-strict-aliasing"
# check for include files
AC_CHECK_HEADERS([\
CL/opencl.h \
CL/cl_gl.h \
CL/cl_gl_ext.h \
GL/gl.h \
GL/glu.h \
boost/scoped_ptr.hpp \
boost/shared_ptr.hpp \
boost/tokenizer.hpp \
boost/filesystem.hpp \
boost/program_options.hpp \
boost/random/uniform_int.hpp \
boost/random/variate_generator.hpp \
boost/random/mersenne_twister.hpp \
boost/interprocess/shared_memory_object.hpp \
boost/interprocess/sync/named_mutex.hpp \
boost/interprocess/sync/scoped_lock.hpp \
boost/interprocess/sync/interprocess_mutex.hpp],
[], [AC_MSG_ERROR([unable to find the required header])])
# check libraries
AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([unable to find the dlopen() function])])
AC_OUTPUT([Makefile
src/libdistributedcl/Makefile
src/distributedcld/Makefile
src/libopencl/Makefile
src/clbench/Makefile
src/CLInfo/Makefile])