-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
73 lines (58 loc) · 2.14 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
70
71
72
73
# -*- Autoconf -*-
# vim:tw=0:et:ts=4:sw=4
# Process this file with autoconf to produce a configure script.
####################################
# change version here. --> BOTH PLACES PLEASE!
AC_INIT([mock],[1.2.14])
temp_RELEASE_NAME=mock
temp_RELEASE_MAJOR=1
temp_RELEASE_MINOR=2
temp_RELEASE_SUBLEVEL=14
temp_RELEASE_EXTRALEVEL=
####################################
#AC_PREREQ(2.61)
AC_CONFIG_AUX_DIR([build])
AM_INIT_AUTOMAKE([foreign 1.11 dist-xz no-dist-gzip])
# Checks for programs.
AC_PROG_INSTALL
# automake macros
AM_PATH_PYTHON
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
# update 'real' variables from the temp variable names.
# do this at the end of the file so that they A) are not overwitten by other
# autoconf stuff, and B) so that user can override on cmdline
for i in RELEASE_NAME RELEASE_MAJOR RELEASE_MINOR RELEASE_SUBLEVEL RELEASE_EXTRALEVEL
do
varname=temp_$i
if test -z "${!i}"; then
eval $i=${!varname}; export $i
fi
done
if test -z "$RELEASE_RPM_EXTRALEVEL"; then
if test -z "$RELEASE_EXTRALEVEL"; then
RELEASE_RPM_EXTRALEVEL=%{nil}
else
RELEASE_RPM_EXTRALEVEL=$RELEASE_EXTRALEVEL
fi
fi
PACKAGE_VERSION=[`echo ${RELEASE_MAJOR}.${RELEASE_MINOR}.${RELEASE_SUBLEVEL}${RELEASE_EXTRALEVEL}`]
PACKAGE_STRING=[`echo ${RELEASE_NAME} ${RELEASE_MAJOR}.${RELEASE_MINOR}.${RELEASE_SUBLEVEL}${RELEASE_EXTRALEVEL}`]
VERSION=$PACKAGE_VERSION
AM_CONDITIONAL(USE_MD5, test -e /usr/bin/rpmbuild-md5)
PKG_CHECK_EXISTS([bash-completion >= 1.99],
[BASHCOMPDIR="$($PKG_CONFIG bash-completion --variable=completionsdir|sed 's|^/usr|${prefix}|;s|^/etc|${sysconfdir}|')";HAVE_BASHCOMP2=true],
[BASHCOMPDIR="\$(sysconfdir)/bash_completion.d"])
AC_SUBST([RELEASE_NAME])
AC_SUBST([RELEASE_MAJOR])
AC_SUBST([RELEASE_MINOR])
AC_SUBST([RELEASE_SUBLEVEL])
AC_SUBST([RELEASE_EXTRALEVEL])
AC_SUBST([RELEASE_RPM_EXTRALEVEL])
AC_SUBST([BASHCOMPDIR])
AC_SUBST([HAVE_BASHCOMP2])
# generate files and exit
#AC_CONFIG_FILES([ Makefile ${PACKAGE_NAME}.spec ])
AC_CONFIG_FILES([ Makefile mock.spec ])
AC_OUTPUT