-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.in
90 lines (66 loc) · 2.13 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
85
# Copyright (C) 2000 Andreas Heger <[email protected]>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# used configure.in from mysql++ as a template
AC_INIT([radar],[1.1.3])
# get host information
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
SYSTEM_TYPE="$host_vendor-$host_os"
MACHINE_TYPE="$host_cpu"
AC_SUBST(SYSTEM_TYPE)
AC_SUBST(MACHINE_TYPE)
#
# Making releases:
# RADAR_MICRO_VERSION += 1;
# RADAR_INTERFACE_AGE += 1;
# RADAR_BINARY_AGE += 1;
# if any functions have been added, set RADAR_INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set RADAR_BINARY_AGE _and_ RADAR_INTERFACE_AGE to 0.
#
RADAR_MAJOR_VERSION=1
RADAR_MINOR_VERSION=1
RADAR_MICRO_VERSION=3
RADAR_INTERFACE_AGE=0
RADAR_BINARY_AGE=0
RADAR_VERSION=$RADAR_MAJOR_VERSION.$RADAR_MINOR_VERSION.$RADAR_MICRO_VERSION
VERSION=$RADAR_VERSION
AC_SUBST(RADAR_MAJOR_VERSION)
AC_SUBST(RADAR_MINOR_VERSION)
AC_SUBST(RADAR_MICRO_VERSION)
AC_SUBST(RADAR_INTERFACE_AGE)
AC_SUBST(RADAR_BINARY_AGE)
AC_SUBST(RADAR_VERSION)
AM_INIT_AUTOMAKE([radar],$VERSION)
AM_CONFIG_HEADER(config.h)
# check for tools
AC_PROG_CC
AC_PROG_CPP
AC_CHECK_LIB(m, rint)
for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
test -f $top_builddir/configure && break
done
AC_OUTPUT(Makefile src/Makefile scripts/Makefile pyradar/Makefile example/Makefile)
dnl bindir and libdir twice for evaluation
eval bindir="$bindir"
eval datadir="$datadir"
echo "
$PACKAGE configuration
--------------------
version : $VERSION
host : $host
binary install path : $bindir
library install path : $libdir
data install path : $datadir
compiler : $CC
general options
CFLAGS : $CFLAGS $MORE_WARNINGS_CFLAGS
LIBS : $LDFLAGS $LIBS
"