Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (35 sloc) 1.12 KB
AC_INIT(plugins,0.0.1)
AM_INIT_AUTOMAKE(plugins,0.0.1)
AM_PATH_PYTHON()
AC_SUBST(LIBDIR)
AC_PATH_PROG(MSGFMT, msgfmt, AC_MSG_ERROR(Could not find msgfmt))
AC_ARG_WITH(boxtype,
[ --with-boxtype=NAME box type [[none,dm7025,dm800...]]],
[BOXTYPE="$withval"],[BOXTYPE="dm800"])
AC_SUBST(BOXTYPE)
AC_DEFINE_UNQUOTED(BOXTYPE,"$BOXTYPE",[box type])
AM_CONDITIONAL([DM8000], [test "$BOXTYPE" = "dm8000"])
AM_CONDITIONAL([DM7025], [test "$BOXTYPE" = "dm7025"])
AC_ARG_WITH(po,
AS_HELP_STRING([--with-po],[enable updating of po files]),
[with_po="$withval"],[with_po="no"])
if test "$with_po" = "yes"; then
AC_PATH_PROG(MSGINIT, msginit)
AC_PATH_PROG(MSGMERGE, msgmerge)
AC_PATH_PROG(MSGUNIQ, msguniq)
AC_PATH_PROG(XGETTEXT, xgettext)
if test -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
AC_MSG_ERROR([Could not find required gettext tools])
fi
fi
AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
AC_OUTPUT([
Makefile
PLi/Makefile
PLi/SoftcamSetup/Makefile
PLi/SoftcamSetup/src/Makefile
PLi/SoftcamSetup/src/images/Makefile
PLi/SoftcamSetup/po/Makefile
Extensions/Makefile
Extensions/UShare/Makefile
])