forked from BIC-MNI/N3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
85 lines (68 loc) · 2.28 KB
/
configure.in
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT
dnl AC_CONFIG_AUX_DIR(ac_config_aux)
AM_INIT_AUTOMAKE(N3, 1.12.0)
AM_CONFIG_HEADER([include/config.h])
AC_REVISION($Revision: 1.15 $)
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_RANLIB
smr_WITH_BUILD_PATH
#------------------------------------------------------------------------
# Get the canonical-form machine-company-os (used below)
#------------------------------------------------------------------------
AC_CANONICAL_HOST
#------------------------------------------------------------------------
# Create version.h, containing the package version number
# and compilation user, host, date, and time.
#------------------------------------------------------------------------
# The terminology here is a little icky: what most people think of as
# "host" (ie. the current machine name) is called "machine", because
# "host" is coopted by autoconf's AC_CANONICAL_HOST macro. It's
# used to identify the system, e.g. "mips-sgi-irix5.3" -- which *I*
# think should be called "system", so that's what I call it in
# version.h. Still, kind of ugly.
time=`date +%T`
year=`date | awk '{print $NF}'` # ugh -- SunOS "date" has no %Y
date=`date +%m-%d`
date="$year-$date"
user=`logname`
machine=`hostname`
version=$VERSION
long_version="Package MNI N3, version $version, compiled by $user@$machine ($host) on $date at $time"
AC_SUBST(version)
AC_SUBST(time)
AC_SUBST(date)
AC_SUBST(user)
AC_SUBST(machine)
AC_SUBST(host)
AC_SUBST(long_version)
AC_CHECK_HEADERS(values.h float.h)
dnl Check for required C libraries
mni_REQUIRE_EBTKS
mni_REQUIRE_VOLUMEIO
dnl Find the version of perl 5 in use
AC_PATH_PROGS(PERL, [perl])
# if test -z "$modeldir"; then
# modeldir=`$PERL -e 'use MNI::DataDir; print MNI::DataDir::install_dir("N3");'`
# fi
# if test -z "$modeldir"; then
# AC_MSG_ERROR("Cannot determine model installation directory");
# fi
#
# AC_SUBST(modeldir)
AC_CHECK_FUNCS(finite isfinite)
AC_CONFIG_FILES([Makefile testing/Makefile include/version.h])
AC_OUTPUT(epm-header
src/NUcorrect/field2imp
src/NUcorrect/make_template
src/NUcorrect/nu_estimate_np_and_em
src/NUcorrect/resample_labels
src/NUcorrect/imp2field
src/NUcorrect/nu_estimate
src/NUcorrect/nu_evaluate
src/NUcorrect/sharpen_volume
)