-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfigure.in
More file actions
71 lines (51 loc) · 1.8 KB
/
configure.in
File metadata and controls
71 lines (51 loc) · 1.8 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
dnl Process this file with autoconf to produce a configure script.
AC_INIT([ASIM leap-platforms], [0.6], [joel.emer@intel.com], [leap-platforms])
AC_PREREQ(2.59) dnl required autoconf version
AC_CONFIG_SRCDIR([admin/packages/leap-platforms])
dnl AC_INIT(admin/packages/leap-platforms)
dnl Installation defaults
dnl AC_PREFIX_DEFAULT(/usr/local)
AC_PREFIX_PROGRAM(asimstarter)
AC_CONFIG_AUX_DIR(aux-scripts)
AM_INIT_AUTOMAKE([1.8.3 foreign subdir-objects]) dnl automake version + options
AM_CONFIG_HEADER(include/config.h)
# pull all flags together
AM_CXXFLAGS='$(WARNFLAGS) $(OPTFLAGS) $(ARCHFLAGS)'
AM_LDFLAGS='$(ARCHFLAGS)'
AC_SUBST(AM_CXXFLAGS)
AC_SUBST(AM_LDFLAGS)
AC_SUBST(package)
package=leap-platforms
dnl Get release tag out of package file.
dnl The tag is assumed to be in a line that looks like: Tag=<tagname>
AC_SUBST(release)
release=`grep '^Tag=' ./admin/packages/$package | sed 's/Tag=//'`
configdir='${sysconfdir}/asim/${release}'
AC_SUBST(configdir)
packagedir='${datadir}/asim/packages'
AC_SUBST(packagedir)
codedir='${packagedir}/${package}/${release}'
AC_SUBST(codedir)
# This is where architecture dependent info is placed
#tooldir='${libexecdir}/asim/${release}'
# For now we always treat the release for tools as HEAD
tooldir='${libexecdir}/asim/HEAD'
AC_SUBST(tooldir)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_INSTALL
dnl Check for scons
AC_CHECK_PROG(have_scons, scons, yes)
if test "X$have_scons" == "X"; then
AC_MSG_ERROR([Scons is needed to build leap-platforms programs])
fi
# tools - toplevel
AC_CONFIG_FILES(tools/Makefile)
# tools/platforms
AC_CONFIG_FILES(tools/platforms/Makefile)
# tools/platforms/leap-fpga-ctrl
AC_CONFIG_FILES(tools/platforms/leap-fpga-ctrl/Makefile)
AC_CONFIG_FILES(tools/platforms/leap-fpga-ctrl/init/leap-fpga)
AC_OUTPUT(Makefile)