-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfigure.ac
More file actions
73 lines (46 loc) · 1.79 KB
/
configure.ac
File metadata and controls
73 lines (46 loc) · 1.79 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
dnl Process this file with autoconf to produce a configure script.
AC_INIT([lcurve], [1.3])
AC_CONFIG_SRCDIR([src/lroche.cc])
AM_INIT_AUTOMAKE
dnl Get rid of all the -D stuff
AM_CONFIG_HEADER(config.h)
AC_PROG_MAKE_SET
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC
dnl Make C++ the default
AC_LANG_CPLUSPLUS
AC_REQUIRE_CPP
dnl libtool
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_LIBTOOL
dnl headers
AC_CHECK_HEADERS([trm/subs.h trm/position.h trm/constants.h trm/array1d.h],[],
[AC_MSG_ERROR(cannot find headers associated with subs)])
AC_CHECK_HEADERS([trm/colly.h],[],
[AC_MSG_ERROR(cannot find colly header)])
AC_CHECK_HEADERS([trm/binary.h],[],
[AC_MSG_ERROR(cannot find binary header)])
AC_CHECK_HEADERS([trm/roche.h],[],
[AC_MSG_ERROR(cannot find roche header)])
AC_CHECK_HEADERS([stdlib.h float.h math.h sstream string fstream iostream],
[], [AC_MSG_ERROR(missing header; please fix)])
AC_CHECK_HEADERS([slalib.h], [], [AC_MSG_ERROR(missing header; please fix)])
dnl libraries
AC_CHECK_LIB([pcrecpp], [main], [],
[AC_MSG_ERROR(cannot compile / link pcrecpp)])
AC_CHECK_LIB([csla], [main], [], AC_MSG_ERROR(cannot find the sla C library))
AC_CHECK_LIB([subs], [main], [],
[AC_MSG_ERROR(cannot find the subs library)])
AC_CHECK_LIB([colly], [main], [],
[AC_MSG_ERROR(cannot find the colly library)])
AC_CHECK_LIB([binary], [main], [],
[AC_MSG_ERROR(cannot find the binary library)])
AC_CHECK_LIB([roche], [main], [],
[AC_MSG_ERROR(cannot find the roche library)])
dnl PGPLOT has its own macro 'cos its a pain
TRM_LIB_PGPLOT
dnl Installation program
AC_PROG_INSTALL
dnl The Makefiles to create
AC_OUTPUT([Makefile include/Makefile src/Makefile doc/Makefile])