# gt.m4 - Macros to locate and utilise giellatekno scripts -*- Autoconf -*- # serial 1 (gtsvn-1) # # Copyright © 2011 Divvun/Samediggi/UiT . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 3 of the License. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # the prefixes gt_*, _gt_* are reserved here for giellatekno variables and # macros. It is the same as gettext and probably others, but I expect no # collisions really. AC_DEFUN([gt_PROG_SCRIPTS_PATHS], [ # GTCORE and GTFREE env. variables are required by the testbench AC_ARG_VAR([GTCORE], [directory for giellatekno core data and scripts]) AC_ARG_VAR([GTFREE], [gtfree path must be defined for the test bench to work]) # Check if any of the corpus data repositories are available: AC_MSG_CHECKING([whether GTBOUND STABLE exists for rus]) AS_IF([test -d ${GTBOUND}/stable/goldstandard/converted/rus/], [gtboundstable=yes], [gtboundstable=no]) AC_MSG_RESULT([$gtboundstable]) AM_CONDITIONAL([BOUNDSTABLE], [test "x$gtboundstable" != "xno"]) AC_MSG_CHECKING([whether GTBOUND PRESTABLE exists for rus]) AS_IF([test -d ${GTBOUND}/prestable/goldstandard/converted/rus/], [gtboundprestable=yes], [gtboundprestable=no]) AC_MSG_RESULT([$gtboundprestable]) AM_CONDITIONAL([BOUNDPRESTABLE], [test "x$gtboundprestable" != "xno"]) AC_MSG_CHECKING([whether GTFREE STABLE exists for rus]) AS_IF([test -d ${GTFREE}/stable/goldstandard/converted/rus/], [gtfreestable=yes], [gtfreestable=no]) AC_MSG_RESULT([$gtfreestable]) AM_CONDITIONAL([FREESTABLE], [test "x$gtfreestable" != "xno"]) AC_MSG_CHECKING([whether GTFREE PRESTABLE exists for rus]) AS_IF([test -d ${GTFREE}/prestable/goldstandard/converted/rus/], [gtfreeprestable=yes], [gtfreeprestable=no]) AC_MSG_RESULT([$gtfreeprestable]) AM_CONDITIONAL([FREEPRESTABLE], [test "x$gtfreeprestable" != "xno"]) AC_MSG_CHECKING([whether GTBOUND CORRECT-NO-GS exists for rus]) AS_IF([test -d ${GTBOUND}/correct-no-gs/converted/rus/], [gtboundcorrectnogs=yes], [gtboundcorrectnogs=no]) AC_MSG_RESULT([$gtboundcorrectnogs]) AM_CONDITIONAL([BOUNDCORRECTNOGS], [test "x$gtboundcorrectnogs" != "xno"]) AC_MSG_CHECKING([whether GTFREE CORRECT-NO-GS exists for rus]) AS_IF([test -d ${GTFREE}/correct-no-gs/converted/rus/], [gtfreecorrectnogs=yes], [gtfreecorrectnogs=no]) AC_MSG_RESULT([$gtfreecorrectnogs]) AM_CONDITIONAL([FREECORRECTNOGS], [test "x$gtfreecorrectnogs" != "xno"]) # Define whether you want to be a maintainer: AC_ARG_VAR([GTMAINTAINER], [define if you are maintaining the infra to get additional complaining about infra integrity]) AM_CONDITIONAL([WANT_MAINTAIN], [test x"$GTMAINTAINER" != x]) AC_PATH_PROG([GTVERSION], [gt-version.sh], [false], [$GTCORE/scripts/$PATH_SEPARATOR$GTHOME/giella-core/scripts/]) AS_IF([test "x$GTSCRIPT" = xfalse], [cat<<@])], [enable_devtesting=$enableval], [enable_devtesting=no]) # AS_IF([test "x$enable_spellers" = xyes], [enable_devtesting=yes]) AM_CONDITIONAL([WANT_DEVTESTING], [test "x$enable_devtesting" != xno]) # Enable testing of development spellers - default is 'no' AC_ARG_ENABLE([devcorpus], [AS_HELP_STRING([--enable-devcorpus], [test spellers using development corpus @<:@default=no@:>@])], [enable_devcorpus=$enableval], [enable_devcorpus=no]) # AS_IF([test "x$enable_spellers" = xyes], [enable_devcorpus=yes]) AM_CONDITIONAL([WANT_DEVCORPUS], [test "x$enable_devcorpus" != xno]) ]) # gt_PROG_SCRIPTS_PATHS AC_DEFUN([gt_PRINT_FOOTER], [ cat<