File: configure.ac

package info (click to toggle)
cpl-plugin-vimos 4.1.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,228 kB
  • sloc: ansic: 169,271; cpp: 16,177; sh: 4,344; python: 3,678; makefile: 1,138; perl: 10
file content (148 lines) | stat: -rw-r--r-- 3,468 bytes parent folder | download
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Process this file with autoconf to produce a configure script.

AC_INIT([VIMOS Instrument Pipeline], [4.1.1], [usd-help@eso.org], [vimos])
AC_PREREQ([2.59])

AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_AUX_DIR([admin])
AC_CONFIG_MACRO_DIR([m4macros])

AC_CANONICAL_HOST
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])

AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])

# Immediately before every release do:
#-------------------------------------
#   if (the interface is totally unchanged from previous release)
#       REVISION++;
#   else {
#       /* interfaces have been added, removed or changed */
#       REVISION = 0;
#       CURRENT++;
#       if (any interfaces have been _added_ since last release)
#           AGE++;
#       if (any interfaces have been _removed_ or incompatibly changed)
#           AGE = 0;
#   }

VIMOS_SET_VERSION_INFO([$VERSION])

# Checks for programs.
AC_PROG_CPP
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LN_S

ESO_ENABLE_DEBUG(no)
ESO_ENABLE_STRICT(no)
AC_PROG_CC_C99
AX_CXX_COMPILE_STDCXX([11],[],[optional])


ESO_CHECK_DOCTOOLS

AC_ENABLE_STATIC(no)
AC_ENABLE_SHARED(yes)

AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

# Checks for libraries.
AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"])
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
AC_CHECK_LIB(nsl, inet_ntoa, [LIBS="$LIBS -lnsl"])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([limits.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE

AC_TYPE_SIZE_T

#Check for functions used by the PAF creation code:
ESO_FUNC_GETPWUID
ESO_FUNC_GETUID

# Checks for library functions.
AC_CHECK_FUNCS([floor pow sqrt])

# Check for CPL presence and usability
CPL_CHECK_CFITSIO
CPL_CHECK_CEXT
CPL_CHECK_LIBS

# Check for GSL 
CPL_CHECK_GSL

# mark hdrl folder as containing a configurable package
AC_CONFIG_SUBDIRS([mosca/hdrl])
# check and define all required variables to build and
# link hdrl external located in the hdrl folder
HDRL_CHECK([mosca/hdrl])

VIMOS_SET_PATHS
VIMOS_CREATE_SYMBOLS

VIMOS_ENABLE_ONLINE

AM_WITH_DMALLOC

# Add supplementary preprocessor symbols to config.h.in
AH_VERBATIM([LINE_LENGTH_MAX],
            [
/*
 * The maximum length, in bytes of an input line. It is set to the
 * POSIX2 value.
 */

#ifndef LINE_LENGTH_MAX
#  define LINE_LENGTH_MAX  2048
#endif
            ])

AH_VERBATIM([PATHNAME_MAX],
            [
/*
 * Define the maximum number of characters a filename including the
 * path may have, excluding the string terminator.
 */

#ifndef PATHNAME_MAX
#  define PATHNAME_MAX  4096
#endif
            ])

AC_CONFIG_SUBDIRS(libpil external/libwcs)

AC_CONFIG_FILES(Makefile
                doxygen/Doxyfile
                mosca/Makefile
                mosca/libmosca/Makefile
                mosca/libmosca/tests/Makefile
                casu/Makefile
                casu/src/Makefile
                casu/src/catalogue/Makefile
                casu/src/tests/Makefile
                casu/src/catalogue/tests/Makefile
                irplib/Makefile
                irplib/tests/Makefile
                external/Makefile
                vimos/Makefile
                vimos/tests/Makefile
                recipes/Makefile
                regtests/Makefile
                regtests/tests/Makefile
                reflex/Makefile
                reflex/vimos_ifu.xml
                reflex/vimos_mos.xml
                reflex/vimos_ima.xml)
AC_OUTPUT