File: configure.in

package info (click to toggle)
abcm2ps 4.8.5-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 944 kB
  • ctags: 1,012
  • sloc: ansic: 15,723; sh: 2,697; makefile: 171
file content (53 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download
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
dnl Configure source for abcm2ps -*- sh -*-
dnl Copyright (C) 2001-2004 JF Moine.

AC_INIT(abc2ps.h)

VERSION=4.8.5
VDATE='December 16, 2004'

AC_CANONICAL_SYSTEM

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
dnl AC_PROG_MAKE_SET

AC_CONFIG_HEADER(config.h)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(malloc.h)

if test "X$GCC" = "Xyes" ; then
	CFLAGS="$CFLAGS -Wall -pipe"
fi

dnl Check for options
AC_ARG_ENABLE(a4,
[  --enable-a4             Handle european A4 format instead of default US letter],
[if test "$enableval" = "yes"; then
  AC_DEFINE(A4_FORMAT)dnl
fi])

AC_ARG_ENABLE(deco-is-roll,
[  --enable-deco-is-roll   Have ~ as roll instead of twiddle],
[if test "$enableval" = "yes"; then
  AC_DEFINE(DECO_IS_ROLL)dnl
fi])

AC_ARG_ENABLE(clef-transpose,
[  --enable-clef-transpose Have clef changing the note pitch],
[if test "$enableval" = "yes"; then
  AC_DEFINE(CLEF_TRANSPOSE)dnl
fi])

dnl Build characteristics
AC_SUBST(VERSION)

AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AC_DEFINE_UNQUOTED(VDATE, "$VDATE")
test "x$prefix" = xNONE && prefix=$ac_default_prefix
AC_DEFINE_UNQUOTED(DEFAULT_FDIR, "$prefix/share/abcm2ps")

AC_OUTPUT(Makefile)