Restructuring of test setup.
[gedcom-parse.git] / configure.in
1 # Process this file with autoconf to produce a configure script.
2 # $Id$
3 # $Name$
4 AC_INIT(standalone.c)
5
6 dnl =============================================================
7 dnl Global variables
8 NAME=gedcom-parse
9 AC_SUBST(NAME)
10
11 VERSION=0.13
12 VERSION_MAJOR=`echo $VERSION | sed 's/\..*$//'`
13 changequote(<<,>>)
14 VERSION_MINOR=`echo $VERSION | sed 's/^[^\.]*\.//'`
15 changequote([,])
16 AC_SUBST(VERSION_MAJOR)
17 AC_SUBST(VERSION_MINOR)
18 AC_SUBST(VERSION)
19
20 LIBVERSION=0:3
21 AC_SUBST(LIBVERSION)
22
23 SHELL=/bin/sh
24 AC_SUBST(SHELL)
25
26 dnl =============================================================
27 AM_INIT_AUTOMAKE(${NAME},${VERSION})
28 AM_CONFIG_HEADER(config.h)
29 ALL_LINGUAS="nl"
30
31 AC_PROG_CC
32 AM_PROG_LIBTOOL
33 AM_PROG_LEX
34 AC_PROG_YACC
35 if test "$YACC" = "bison -y"; then
36   AC_MSG_WARN([We'll remove the -y option here])
37   YACC=bison
38 else
39   AC_MSG_ERROR([Sorry, bison is needed])
40 fi
41 AM_WITH_DMALLOC
42 AM_GNU_GETTEXT
43
44 AC_OUTPUT(Makefile
45           gedcom/Makefile
46           gedcom/calendar/Makefile
47           ansel/Makefile
48           t/Makefile
49           t/input/Makefile
50           doc/Makefile
51           doc/images/Makefile
52           include/Makefile
53           include/gedcom.h
54           intl/Makefile
55           po/Makefile.in)