]> git.draconx.ca Git - gob-dx.git/blob - configure.ac
Require flex to build the scanner.
[gob-dx.git] / configure.ac
1 dnl Copyright © 2019-2020 Nick Bowler
2 dnl
3 dnl Based on original work Copyright © 1999-2013 Jiri (George) Lebl.
4 dnl
5 dnl License GPLv2+: GNU General Public License version 2 or any later version.
6 dnl This is free software: you are free to change and redistribute it.
7 dnl There is NO WARRANTY, to the extent permitted by law.
8
9 AC_INIT([gob-dx], [2.0.20a], [nbowler@draconx.ca])
10 AC_CONFIG_SRCDIR([src/treefuncs.def])
11 AC_CONFIG_HEADERS([config.h])
12
13 AM_INIT_AUTOMAKE([-Wall subdir-objects dist-xz])
14 AM_SILENT_RULES([yes])
15 DX_AUTOMAKE_COMPAT
16
17 AC_PROG_CC
18 AC_PROG_CXX
19 AC_PROG_YACC
20
21 AC_ARG_VAR([PERL], [command to execute perl programs])
22 AC_CHECK_PROGS([PERL], [perl], [false])
23 AM_CONDITIONAL([HAVE_PERL], [$PERL -e 'my $x = 42; exit $x'; test $? = 42])
24
25 LT_INIT
26
27 DX_PROG_FLEX([], [have_flex=yes], [have_flex=no])
28 AM_CONDITIONAL([HAVE_FLEX], [test x"$have_flex" = x"yes"])
29
30 DX_LIB_GLIB2
31
32 dnl Dependencies for test suite
33 DX_LIB_GLIB2([], [gobject], [HAVE_GOBJECT=true], [HAVE_GOBJECT=false])
34 AC_SUBST([HAVE_GOBJECT])
35
36 DX_LIB_GTK2([], [HAVE_GTK2=true], [HAVE_GTK2=false])
37 AC_SUBST([HAVE_GTK2])
38
39 AC_CONFIG_TESTDIR([.], [t:.])
40 DX_PROG_AUTOTEST
41 AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"])
42
43 AC_CONFIG_FILES([Makefile gob2.spec doc/gob2.1 atlocal])
44 AC_OUTPUT