1 # SPDX-License-Identifier: GPL-2.0
5 AC_INIT([tfortune], [m4_esyscmd_s(./version-gen.sh)],
6 [maan@tuebingen.mpg.de], [], [http://people.tuebingen.mpg.de/maan/tfortune/])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_FILES([config.mak])
9 AC_USE_SYSTEM_EXTENSIONS
13 AC_DEFUN([REQUIRE_EXECUTABLE], [
14 AC_PATH_PROG(m4_toupper([$1]), [$1])
15 test -z "$m4_toupper([$1])" && AC_MSG_ERROR([$1 is required])
17 REQUIRE_EXECUTABLE([flex])
18 REQUIRE_EXECUTABLE([bison])
19 REQUIRE_EXECUTABLE([lopsubgen])
22 AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
23 AC_CHECK_LIB([lopsub], [lls_merge], [], [HAVE_LOPSUB=no])
24 if test $HAVE_LOPSUB = no; then AC_MSG_ERROR([
25 The lopsub library is required to build this software, but
26 the above checks indicate it is not installed on your system.
27 Run the following command to download a copy.
28 git clone git://git.tuebingen.mpg.de/lopsub.git
29 Install the library, then run this configure script again.