-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
59 lines (46 loc) · 1.54 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
dnl Process this file with autoconf to produce a configure script.
dnl
dnl This file is free software; as a special exception the author gives
dnl unlimited permission to copy and/or distribute it, with or without
dnl modifications, as long as this notice is preserved.
dnl
dnl This program is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
m4_include([version.m4])
AC_INIT(pluginname,pluginversion,[[email protected]])
AC_CONFIG_SRCDIR(src/pluginname.c)
AC_CONFIG_MACRO_DIR([wasora/m4])
AC_CANONICAL_HOST
WASORA_PLUGIN_INIT_C
WASORA_OPT_FLAGS_C
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile])
WASORA_PLUGIN_VERSION_H
WASORA_CHECK_BASIC_HEADERS
WASORA_CHECK_BASIC_LIBS
WASORA_CHECK_GSL
WASORA_CHECK_IDA
WASORA_CHECK_READLINE
# fino needs petsc and optionally slepc
WASORA_CHECK_PETSC([required])
WASORA_CHECK_SLEPC([optional])
AC_OUTPUT
AS_BOX([Configuration summary for fino standalone executable])
WASORA_RESUME_LIBS
WASORA_RESUME_PETSC
WASORA_RESUME_SLEPC
# para saber que incluir en el makefile, si PETSc solito o SLEPc
AC_SUBST([PETSC_DIR])
AC_SUBST([PETSC_ARCH])
AC_SUBST([SLEPC_DIR])
AS_IF([test $slepc_found -ne 0],[
echo "include \$(SLEPC_DIR)/lib/slepc/conf/slepc_variables" > petscslepc.mak
],[
echo "include \$(PETSC_DIR)/lib/petsc/conf/variables" > petscslepc.mak
])
# listorti
AS_IF([ test $readline -eq 0 ], [
WASORA_FINAL_WARN([0])
],[
WASORA_FINAL_WARN([1])
])