lbtt.m4 845 Bytes
Newer Older
1
2
3
4
AC_DEFUN([AX_CHECK_LBTT], [
  AC_ARG_WITH([included-lbtt],
	      [AC_HELP_STRING([--with-included-lbtt],
			      [use the LBTT program inclued here])])
5
  AS_IF([AM_RUN_LOG([lbtt-translate --help | grep spot])],
6
7
8
9
10
        [need_included_lbtt=no],
	[need_included_lbtt=yes])

  if test "$need_included_lbtt" = yes; then
     if test "$with_included_lbtt" = no; then
11
       AC_MSG_ERROR([Cannot find lbtt.  Please install lbtt first,
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
	             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])
])