aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
blob: c40dbcf3d15c9ad2026fb741b9dd093c4c66261c (plain)
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
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.50)
AC_INIT(runtest.exp)
AM_INIT_AUTOMAKE(dejagnu, 1.4.4)
AM_MAINTAINER_MODE
AC_PROG_MAKE_SET

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_EXEEXT
AC_PROG_YACC

AC_PATH_PROG(EXPECT, expect)
if test -z $ac_cv_path_EXPECT ; then
   AC_MSG_ERROR([unable to locate expect])
fi

dnl we need the path to Docbook so we can build packages.
DJ_AC_PATH_DOCBOOK

dnl Level of indirection for automake macro (baseboards:boards_DATA)
BOARDS='$(boards)'
AC_SUBST(BOARDS)
CONFIG='$(config)'
AC_SUBST(CONFIG)

AC_CONFIG_SUBDIRS(example/calc example/hello)

AC_OUTPUT(Makefile doc/Makefile testsuite/Makefile example/Makefile
          testsuite/libdejagnu/Makefile)