File: configure.in

package info (click to toggle)
eboard-extras-pack1 2-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 564 kB
  • sloc: sh: 159; makefile: 109
file content (44 lines) | stat: -rw-r--r-- 923 bytes parent folder | download | duplicates (4)
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
AC_INIT(README)

AC_CHECK_PROG(GNU_MAKE,make,yes)
AC_PROG_INSTALL
AC_PATH_PROG(EBOARDCONFIG,eboard-config,no)

if test "$EBOARDCONFIG" != "no"; then
	AC_MSG_CHECKING(for eboard >= 0.3.1)
	echo "0.3.1" > vfile1
	$EBOARDCONFIG --version >> vfile1
	sort <vfile1 >vfile2

	echo "0.3.2" > vfile3
	$EBOARDCONFIG --version >> vfile3
	sort <vfile3 >vfile4

	if ! diff -q vfile1 vfile2 >/dev/null ; then
		rm -f vfile1 vfile2 vfile3 vfile4
		AC_MSG_RESULT(no)
		AC_MSG_ERROR(you need eboard 0.3.1 or newer)
	else
		rm -f vfile1 vfile2
		AC_MSG_RESULT(yes)
	fi	
else
	AC_MSG_ERROR(you don't seem to have eboard >= 0.3.1 installed.)
fi

if ! diff -q vfile3 vfile4 >/dev/null ; then
	MY_TARGET=compatible-install
else
	MY_TARGET=newer-install
fi

rm -f vfile3 vfile4

AC_SUBST(MY_TARGET)

DATADIR=`$EBOARDCONFIG --datadir`
AC_SUBST(DATADIR)

AC_OUTPUT(Makefile)

echo "Now become root and type 'make install' to install eboard-extras"