-
Notifications
You must be signed in to change notification settings - Fork 59
/
configure.ac
69 lines (50 loc) · 2.04 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
59
60
61
62
63
64
65
66
67
68
69
dnl Process this file with autoconf to produce a configure script
AC_REVISION($Revision$)
dnl Initialisation: package name and version number
AC_INIT([cupid],[2.0],[starlink@jiscmail.ac.uk])
PACKAGE_UPCASE='CUPID'
AC_DEFINE( [PACKAGE_UPCASE], "CUPID", [Upper cased package name] )
AC_SUBST(PACKAGE_UPCASE)
dnl Require autoconf-2.50 at least
AC_PREREQ([2.69])
AM_INIT_AUTOMAKE(1.8.2-starlink)
dnl Sanity-check: name a file in the source directory -- if this
dnl isn't found then configure will complain
AC_CONFIG_SRCDIR([findclumps.c])
dnl Include defaults for Starlink configurations
dnl Option `per-package-dirs' means that executables and help files
dnl are installed in package-specific directories.
STAR_DEFAULTS(per-package-dirs)
dnl Find required versions of the programs we need for configuration
AC_PROG_CC
AC_PROG_CPP
AC_PROG_FC
LT_INIT
dnl Setup for creating a monolith.
STAR_MONOLITHS
STAR_MESSGEN( [ cupid_err.msg ] )
dnl CUPID source files depend on include files from the following components
STAR_DECLARE_DEPENDENCIES([build], [mers atl cnf cvg ifd irq ndf sae pda thr])
dnl The CUPID link script links against the following components
STAR_DECLARE_DEPENDENCIES([build], [atl kaplibs ast shl thr], [link])
dnl Other dependencies
STAR_DECLARE_DEPENDENCIES(sourceset, sst)
dnl Need prohlp to create help.
STAR_CHECK_PROGS(prohlp, sst)
dnl Need prolat to create documentation.
STAR_CHECK_PROGS(prolat, sst)
dnl Need "hlib" command to build the help library.
STAR_CHECK_PROGS(hlib)
dnl Need IFD commands to create package files.
STAR_CHECK_PROGS(ifd2star)
dnl Need Perl commands to create help file.
STAR_CHECK_PROGS(perl)
dnl Configure files.
AC_CONFIG_FILES([Makefile component.xml cupid.ifd cupidsub/Makefile])
AC_CONFIG_FILES([make_history_help], [chmod 755 make_history_help])
AC_CONFIG_FILES([make_quickdes], [chmod 755 make_quickdes])
AC_CONFIG_FILES([make_doc], [chmod 755 make_doc])
AC_CONFIG_FILES([make_h], [chmod 755 make_h])
STAR_LATEX_DOCUMENTATION(sun255)
dnl And the fat lady sings.
AC_OUTPUT