forked from seeslab/rgraph
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
58 lines (48 loc) · 1.24 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
58
# Process this file with autoconf to produce a configure script.
AC_INIT(rgraph, [2.0.1], [roger.guimera@gmail.com])
AC_REVISION($Revision$)
AM_INIT_AUTOMAKE
LT_INIT
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
# Create the config.h.in
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
gl_EARLY
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MAKE_SET
# Checks for libraries.
AC_CHECK_LIB([m], [exp])
AC_CHECK_LIB([gslcblas], [cblas_zgemm], , AC_MSG_ERROR([GSL CBLAS library not found]))
AC_CHECK_LIB([gsl], [gsl_vector_set], , AC_MSG_ERROR([GSL library not found]))
# For gnulib
gl_INIT
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_STDBOOL
AC_CHECK_HEADERS([stdlib.h string.h])
AC_CHECK_HEADERS([gsl/gsl_vector.h gsl/gsl_rng.h], , AC_MSG_ERROR([Necessary GSL headers not found]))
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_C_CONST
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([floor pow sqrt])
AC_CONFIG_FILES(lib/Makefile
src/Makefile
test/Makefile
netcarto/Makefile
utils/Makefile
reliability/Makefile
recommender/Makefile
conflict/Makefile
multiblock/Makefile
only_deg/Makefile
Makefile)
AC_OUTPUT