* lbtt/: New directory. Contains a patched version of lbtt 1.0.1.
* Makefile.am (MAYBE_LBTT): New variables. (SUBDIRS): Add $(MAYBE_LBTT). (EXTRA_DIST): Add m4/lbtt.m4. * configure.ac: Call AX_CHECK_LBTT. * m4/lbtt.m4: New file. * src/tgbatest/Makefile.am (check_PROGRAMS): Add spotlbtt. (spotlbtt_SOURCES): New variables. (TESTS): Add spotlbtt.test. (CLEANFILE): Add config. * src/tgbatest/defs.in (top_builddir, LBTT, LBTT_TRANSLATE): New substitutions. * src/tgbatest/spotlbtt.cc, src/tgbatest/spotlbtt.test: New files.
This commit is contained in:
parent
71b7da1437
commit
79bed65843
9 changed files with 165 additions and 6 deletions
26
m4/lbtt.m4
Normal file
26
m4/lbtt.m4
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
AC_DEFUN([AX_CHECK_LBTT], [
|
||||
AC_ARG_WITH([included-lbtt],
|
||||
[AC_HELP_STRING([--with-included-lbtt],
|
||||
[use the LBTT program inclued here])])
|
||||
AS_IF([AM_RUN_LOG([lbtt --help | grep spot])],
|
||||
[need_included_lbtt=no],
|
||||
[need_included_lbtt=yes])
|
||||
|
||||
if test "$need_included_lbtt" = yes; then
|
||||
if test "$with_included_lbtt" = no; then
|
||||
AC_MSG_ERROR([Cannot find lbtt. Please install lbtt first,
|
||||
or configure with --with-included-lbtt])
|
||||
else
|
||||
with_included_lbtt=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$with_included_lbtt" = yes; then
|
||||
AC_CONFIG_SUBDIRS([lbtt])
|
||||
LBTT='${top_builddir}/lbtt/src/lbtt'
|
||||
LBTT_TRANSLATE='${top_builddir}/lbtt/src/lbtt-translate'
|
||||
fi
|
||||
AM_CONDITIONAL([WITH_INCLUDED_LBTT], [test "$with_included_lbtt" = yes])
|
||||
AC_SUBST([LBTT])
|
||||
AC_SUBST([LBTT_TRANSLATE])
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue