Commit 91d086c6 authored by Fabian Greffrath's avatar Fabian Greffrath

Imported Upstream version 0.2~dfsg1

parents
## Process this file with automake to produce Makefile.in
#
# Makefile source for OCR fonts
#
# This file (Makefile.am) is released to the public domain by its author,
# Matthew Skala, but be aware that the generated Makefile may be subject
# to claims by the Free Software Foundation or others.
#
# 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.
#
# Matthew Skala
# http://ansuz.sooke.bc.ca/
# mskala@ansuz.sooke.bc.ca
#
############################################################################
# BASIC AUTOTOOLS STUFF
ACLOCAL_AMFLAGS = -I m4
@SET_MAKE@
@INC_AMINCLUDE@
mvp:=$(if $(VPATH),$(VPATH),.)
empty:=
space:=$(empty) $(empty)
comma:=,
percent=%
############################################################################
# SILENT BUILD BLINKENLIGHTS
TSU_V_REDIR=$(if $(AM_V_at),>& /dev/null)
if COND_COLOUR
ECHO_ANSI=echo -e
ansi_default=\e[0m
ansi_red=\e[31m
ansi_green=\e[32m
ansi_yellow=\e[33m
ansi_blue=\e[34m
ansi_magenta=\e[35m
ansi_cyan=\e[36m
ansi_pink=\e[35;1m
ansi_white=\e[37;1m
ansi_cleareol=\e[K
ansi_clearescaped=\033\[K
ansi_home=\e[1G
am__@andt@v_CC_0=@echo -e "$(ansi_default)$(ansi_cleareol) CC " $@;
am__@andt@v_CCLD_0=@echo -e "$(ansi_default)$(ansi_cleareol) CCLD " $@;
am__@andt@v_GEN_0=@echo -e "$(ansi_default)$(ansi_cleareol) GEN " $@;
else
ECHO_ANSI=echo
ansi_default=
ansi_red=
ansi_green=
ansi_yellow=
ansi_blue=
ansi_magenta=
ansi_cyan=
ansi_pink=
ansi_white=
ansi_cleareol=
ansi_clearescaped=
ansi_home=
endif
TSU_V_CP =$(TSU_V_CP_$(V))
TSU_V_CP_=$(TSU_V_CP_$(AM_DEFAULT_VERBOSITY))
TSU_V_CP_0=@$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_default)CP$(ansi_default) " $@;
TSU_V_MT1=$(TSU_V_MT1_$(V))
TSU_V_MT1_=$(TSU_V_MT1_$(AM_DEFAULT_VERBOSITY))
TSU_V_MT1_0=$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_blue)MT1$(ansi_default) " $@;
TSU_V_NAPERL=$(TSU_V_NAPERL_$(V))
TSU_V_NAPERL_=$(TSU_V_NAPERL_$(AM_DEFAULT_VERBOSITY))
TSU_V_NAPERL_0=$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_magenta)PERL$(ansi_default) " $@;
TSU_V_OTF=$(TSU_V_OTF_$(V))
TSU_V_OTF_=$(TSU_V_OTF_$(AM_DEFAULT_VERBOSITY))
TSU_V_OTF_0=$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_cyan)OTF$(ansi_default) " $@;
TSU_V_RMO=$(TSU_V_RMO_$(V))
TSU_V_RMO_=$(TSU_V_RMO_$(AM_DEFAULT_VERBOSITY))
TSU_V_RMO_0=$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_cyan)RMO$(ansi_default) " $@;
TSU_V_TEX=$(TSU_V_TEX_$(V))
TSU_V_TEX_=$(TSU_V_TEX_$(AM_DEFAULT_VERBOSITY))
TSU_V_TEX_0=@$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_green)TEX$(ansi_default) " $@;
TSU_V_TEXL=$(TSU_V_TEXL_$(V))
TSU_V_TEXL_=$(TSU_V_TEXL_$(AM_DEFAULT_VERBOSITY))
TSU_V_TEXL_0=$(ECHO_ANSI) \
"$(ansi_cleareol) $(ansi_green)TEX$(ansi_default) " "$@($$I)";
############################################################################
# CONDITIONAL OPTIONS
if COND_DOCS
MAYBE_DOCS=ocr.pdf
endif
if COND_EXPECT
expect_start= $(if $(AM_V_at),$(EXPECT) -c \
'log_user 0 ; spawn -noecho sh -c ")
expect_end= $(if $(AM_V_at), " ; \
expect -timeout -1 \
-re "\n! " {exit 1} \
-re "PROGRESS:(\[^\n\]*)\n" \
{puts -nonewline \
"$(ansi_clearescaped)$$expect_out(1,string)\r"; \
flush stdout;exp_continue} \
eof' )
else
expect_end=$(TSU_V_REDIR)
endif
############################################################################
# FILENAMES FOR AUTOTOOLS
# we need a "built source" to make jobserver mode work, for stupid reasons
BUILT_SOURCES=Makefile
# QVFG and FPEVCGF are DIST and SCRIPTS in ROT13, to keep Automake
# from recognizing them
STANDALONE_QVFG:=fntbase.mp
EXTRA_DIST:= \
$(if $(filter $(distdir),$(top_distdir)),$(STANDALONE_QVFG)) \
$(wildcard $(mvp)/*.mp) \
ocr.tex ocra.fea ocrb.fea
STANDALONE_FPEVCGF:=mp2pf
dist_noinst_SCRIPTS:= \
$(if $(filter $(distdir),$(top_distdir)),$(STANDALONE_FPEVCGF)) \
ocra-no.pe ocra-yes.pe ocrb-no.pe ocrb-yes.pe ocrbnames.pe rmo.pe
dist_pdf_DATA = $(MAYBE_DOCS)
dist_otf_DATA = OCRA.otf \
OCRB.otf OCRBE.otf OCRBF.otf OCRBL.otf OCRBS.otf OCRBX.otf
dist_ttf_DATA = OCRA.ttf \
OCRB.ttf OCRBE.ttf OCRBF.ttf OCRBL.ttf OCRBS.ttf OCRBX.ttf
dist_type1_DATA = OCRA.pfb \
OCRB.pfb OCRBE.pfb OCRBF.pfb OCRBL.pfb OCRBS.pfb OCRBX.pfb
dist_afm_DATA = $(patsubst %.pfb,%.afm,$(dist_type1_DATA))
############################################################################
# MAKE CLEAN
MOSTLYCLEANFILES = \
*.afm *.otf *.pfb *.rmo *.ttf \
ocr.aux ocr.log ocr.out ocr.pdf
DISTCLEANFILES = \
aminclude.am ffaetest.pe
############################################################################
# POSTSCRIPT FONTS
%.pfb: %.mp \
mp2pf @T1ASM@ \
fntbase.mp
$(AM_V_at)$(TSU_V_MT1) \
$(MKDIR_P) $*.tmp ; \
$(LN_S) -f $(realpath $(mvp))/*.mp $*.tmp/ ; \
$(LN_S) -f $(realpath .)/*.mp $*.tmp/ ; \
(cd $*.tmp ; $(expect_start)$(MPOST) $*.mp$(expect_end) ) ; \
if $(GREP) -q '^! ' $*.tmp/$*.log ; then exit 1 ; fi ; \
$(TSU_V_NAPERL) \
$(PERL) -CSD $(mvp)/mp2pf $*.tmp/$* $(TSU_V_REDIR) ; \
(cd $*.tmp ; $(realpath @T1ASM@) -b $*.p $*.pfb ) ; \
if test -r $*.tmp/$*.pfb \
&& $(GREP) -q 'output files\? written' $*.tmp/$*.log; then \
mv -f $*.tmp/$*.pfb . ; \
else \
echo "ERROR BUILDING" $@ ; \
exit 1 ; \
fi ; \
if test "x$(KEEPTMP)" = "x" ; then \
rm -rf $*.tmp ; \
fi
msk-ocra10.pfb: msk-ocra10.mp msk-ocra.mp
msk-ocrb10.pfb: msk-ocrb10.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10efg.pfb: msk-ocrb10efg.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10ebg.pfb: msk-ocrb10ebg.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10ffg.pfb: msk-ocrb10ffg.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10fbg.pfb: msk-ocrb10fbg.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10g.pfb: msk-ocrb10g.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10l.pfb: msk-ocrb10l.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10s.pfb: msk-ocrb10s.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10xfg.pfb: msk-ocrb10xfg.mp msk-ocrbdef.mp msk-ocrbmac.mp
msk-ocrb10xbg.pfb: msk-ocrb10xbg.mp msk-ocrbdef.mp msk-ocrbmac.mp
%.rmo: %.pfb rmo.pe
$(AM_V_at)$(TSU_V_RMO)$(FONTFORGE) $(mvp)/rmo.pe $*.pfb $(TSU_V_REDIR)
$(AM_V_at)touch $*.rmo
msk-ocra10.rmo: msk-ocra10.pfb
msk-ocrb10.rmo: msk-ocrb10.pfb
msk-ocrb10ebg.rmo: msk-ocrb10ebg.pfb
msk-ocrb10efg.rmo: msk-ocrb10efg.pfb
msk-ocrb10fbg.rmo: msk-ocrb10fbg.pfb
msk-ocrb10ffg.rmo: msk-ocrb10ffg.pfb
msk-ocrb10l.rmo: msk-ocrb10l.pfb
msk-ocrb10s.rmo: msk-ocrb10s.pfb
msk-ocrb10xbg.rmo: msk-ocrb10xbg.pfb
msk-ocrb10xfg.rmo: msk-ocrb10xfg.pfb
############################################################################
# FONTS
OCRA.pfb OCRA.afm OCRA.ttf OCRA.otf: msk-ocra10.rmo \
ocra-@ae_arg_okay@.pe ocra.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocra-@ae_arg_okay@.pe \
$(mvp)/ocra.fea $(TSU_V_REDIR)
OCRB.pfb OCRB.afm OCRB.ttf OCRB.otf: \
msk-ocrb10.rmo ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe '' '' "Regular" 0 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
OCRBE.pfb OCRBE.afm OCRBE.ttf OCRBE.otf: \
msk-ocrb10efg.rmo msk-ocrb10ebg.rmo \
ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe 'e' 'E' "Inverted Sharp" 1 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
OCRBF.pfb OCRBF.afm OCRBF.ttf OCRBF.otf: \
msk-ocrb10ffg.rmo msk-ocrb10fbg.rmo \
ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe 'f' 'F' "Outline" 1 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
OCRBG.pfb OCRBG.afm OCRBG.ttf OCRBG.otf: \
msk-ocrb10g.rmo ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe 'g' 'G' "Slanted Outline" 0 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
OCRBL.pfb OCRBL.afm OCRBL.ttf OCRBL.otf: \
msk-ocrb10l.rmo ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe 'l' 'L' "Slanted" 0 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
OCRBS.pfb OCRBS.afm OCRBS.ttf OCRBS.otf: \
msk-ocrb10s.rmo ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe 's' 'S' "Sharp" 0 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
OCRBX.pfb OCRBX.afm OCRBX.ttf OCRBX.otf: \
msk-ocrb10xfg.rmo msk-ocrb10xbg.rmo \
ocrb-@ae_arg_okay@.pe ocrbnames.pe ocrb.fea
$(AM_V_at)$(TSU_V_OTF)$(FONTFORGE) \
$(mvp)/ocrb-@ae_arg_okay@.pe 'x' 'X' "Inverted" 1 \
$(mvp)/ocrb.fea $(TSU_V_REDIR)
############################################################################
# PDF DOCUMENTATION
ocr.pdf: OCRA.otf OCRB.otf ocr.tex
$(AM_V_at)$(TSU_V_TEX)$(expect_start)$(XELATEX) $(mvp)/ocr$(expect_end)
############################################################################
# TESTING
TESTS = $(dist_otf_DATA) $(dist_ttf_DATA) $(dist_type1_DATA)
LOG_COMPILER = fontlint
############################################################################
# PARASITE BUILD
if COND_PARASITE
fntbase.mp: ../mp/fntbase.mp
$(TSU_V_CP) cp $< $@
m4/ax_add_am_macro.m4: ../m4/ax_add_am_macro.m4
$(TSU_V_CP) cp $< $@
m4/ax_am_jobserver.m4: ../m4/ax_am_jobserver.m4
$(TSU_V_CP) cp $< $@
m4/ax_am_macros.m4: ../m4/ax_am_macros.m4
$(TSU_V_CP) cp $< $@
m4/ax_append_to_file.m4: ../m4/ax_append_to_file.m4
$(TSU_V_CP) cp $< $@
m4/ax_check_gnu_make.m4: ../m4/ax_check_gnu_make.m4
$(TSU_V_CP) cp $< $@
m4/ax_count_cpus.m4: ../m4/ax_count_cpus.m4
$(TSU_V_CP) cp $< $@
m4/ax_file_escapes.m4: ../m4/ax_file_escapes.m4
$(TSU_V_CP) cp $< $@
m4/ax_print_to_file.m4: ../m4/ax_print_to_file.m4
$(TSU_V_CP) cp $< $@
mp2pf: ../tools/mp2pf
$(TSU_V_CP) cp $< $@
endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
#
# Configuration source for OCR fonts
#
# This file (configure.ac) is released to the public domain by its author,
# Matthew Skala, but be aware that the generated configure script may be
# subject to claims by the Free Software Foundation or others.
#
# 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.
#
# Matthew Skala
# http://ansuz.sooke.bc.ca/
# mskala@ansuz.sooke.bc.ca
#
#
############################################################################
#
# Override Autoconf's argument parsing - must be done here,
# before AC_INIT has a chance to run
#
# General macro for editing a definition
m4_define([TSUKU_DEFINITION_SUBST],
[m4_define([$1],
m4_bpatsubst(m4_dquote(m4_defn([$1])),
[$2],
[$3]))])
# Delete an option from the argument parser
m4_define([TSUKU_DELETE_CMDLINE_OPTION],
[TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[\
-$1[^)]*)\
.*;;\
-$1=\*[^)]*)\
.*;;\
],
[\
# Deleted $1 option\
])
TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[\
-$1[^)]*)\
# Obsolete.*\
.*;;\
],
[\
# Deleted obsolete $1 option\
])
])
# exec-prefix is special because it's an install dir option without "dir"
TSUKU_DELETE_CMDLINE_OPTION([exec-prefix])
TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[for ac_var in\([^#]*\)\bexec_prefix\b],
[for ac_var in\1])
# Delete unwanted non-install-dir options
TSUKU_DELETE_CMDLINE_OPTION([gas])
TSUKU_DELETE_CMDLINE_OPTION([nfp])
TSUKU_DELETE_CMDLINE_OPTION([program-prefix])
TSUKU_DELETE_CMDLINE_OPTION([program-suffix])
TSUKU_DELETE_CMDLINE_OPTION([program-transform-name])
# may as well do this now - removes some processing and a help stanza
AC_DEFUN([AC_ARG_PROGRAM],[])
TSUKU_DELETE_CMDLINE_OPTION([-x])
TSUKU_DELETE_CMDLINE_OPTION([x-includes])
TSUKU_DELETE_CMDLINE_OPTION([x-libraries])
# Delete an install dir option from both parser and help
m4_define([TSUKU_DELETE_INSTDIR_OPTION],
[TSUKU_DELETE_CMDLINE_OPTION([$1dir])
TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[for ac_var in\([^#]*\).\b$1dir\b],
[for ac_var in\1])
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[ --$1dir=DIR.*\
],
[])])
# Delete nearly all of the default install dirs
TSUKU_DELETE_INSTDIR_OPTION([bin])
TSUKU_DELETE_INSTDIR_OPTION([data])
TSUKU_DELETE_INSTDIR_OPTION([dvi])
TSUKU_DELETE_INSTDIR_OPTION([html])
TSUKU_DELETE_INSTDIR_OPTION([include])
TSUKU_DELETE_INSTDIR_OPTION([info])
TSUKU_DELETE_INSTDIR_OPTION([lib])
TSUKU_DELETE_INSTDIR_OPTION([libexec])
TSUKU_DELETE_INSTDIR_OPTION([info])
TSUKU_DELETE_INSTDIR_OPTION([locale])
TSUKU_DELETE_INSTDIR_OPTION([localstate])
TSUKU_DELETE_INSTDIR_OPTION([man])
TSUKU_DELETE_INSTDIR_OPTION([oldinclude])
TSUKU_DELETE_INSTDIR_OPTION([ps])
TSUKU_DELETE_INSTDIR_OPTION([sbin])
TSUKU_DELETE_INSTDIR_OPTION([sharedstate])
TSUKU_DELETE_INSTDIR_OPTION([sysconf])
# generate a "case" pattern matching chunk
# TSUKU_CASE_PATTERN_CHUNK(option,shortest,before,after)
m4_define([TSUKU_CASE_PATTERN_CHUNK],
[$3$1$4[]m4_if([$1],[$2],[],
[TSUKU_CASE_PATTERN_CHUNK(m4_substr($1,0,m4_eval(m4_len($1)-1)),
[$2],[$3],[$4])])])
# Add a new installation directory
# TSUKU_ADD_INSTDIR_OPTION(dirname,under,default,help,abbrev,casebefore)
m4_define([TSUKU_ADD_INSTDIR_OPTION],
[TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[AC_SUBST(\[$2\].*)dnl\
],
[\&AC_SUBST([$1dir],['${$2}/$3'])dnl\
])
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[\
\(.*--$2=.*\)\
],
m4_expand([\
\1\
AS_HELP_STRING([--$1dir=DIR],m4_expand([$4 @<:@m4_toupper([$2])/$3@:>@]))\
]))
TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[\
\(.*$6.*\)\
],
[\
-$1dir[]TSUKU_CASE_PATTERN_CHUNK([$1dir],[$5],[ | --],[])@:}@
ac_prev=$1dir ;;
-$1dir=*TSUKU_CASE_PATTERN_CHUNK([$1dir],[$5],[ | --],[=*])@:}@
$1dir=$ac_optarg ;;\
\
\1\
])
TSUKU_DEFINITION_SUBST([_AC_INIT_PARSE_ARGS],
[for ac_var in\([^#]*.\b$2\)\b],
[for ac_var in\1 $1dir])])
# Add our new directories
TSUKU_ADD_INSTDIR_OPTION([font],[datarootdir],[fonts],[fonts],
[f],[obsolete gas option])
TSUKU_ADD_INSTDIR_OPTION([afm],[fontdir],[afm],
[Adobe Font Metrics],
[afm],[ --prefix ])
TSUKU_ADD_INSTDIR_OPTION([type1],[fontdir],[type1],
[Postscript Type 1 fonts],
[ty],[ --prefix ])
TSUKU_ADD_INSTDIR_OPTION([ttf],[fontdir],[TTF],
[TrueType fonts],
[tt],[ --prefix ])
TSUKU_ADD_INSTDIR_OPTION([otf],[fontdir],[OTF],
[OpenType fonts],
[ot],[ --prefix ])
# Reduce the ridiculous verbosity of Autoconf's help message
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[ to adapt to many kinds of systems],[])
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[of some of the useful variables],
[of some useful variables])
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[Defaults for the options are specified in brackets],
[Defaults are specified in brackets])
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[\barch.*-independent \b],
[])
TSUKU_DEFINITION_SUBST([_AC_INIT_HELP],
[\
.*(\[--exec-prefix=EPREFIX.*\
.*\])\(.\)[^:]*\
Fine tuning of the installation directories:\
],
[\1\
])
#
############################################################################
#
# Autoconf initialization
#
AC_PREREQ([2.63])
AC_INIT([OCR],
[0.2], [mskala@ansuz.sooke.bc.ca], [ocr],
[[http://tsukurimashou.sourceforge.jp/]])
AC_PRESERVE_HELP_ORDER
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([foreign color-tests dist-zip no-dist-gzip
parallel-tests silent-rules])
AC_CONFIG_SRCDIR([msk-ocra.mp])
AC_CONFIG_MACRO_DIR([m4])
AC_REVISION([$Id: configure.ac 1723 2012-09-26 21:06:32Z mskala $])
AC_COPYRIGHT([public domain])
AC_SUBST([release_date],["September 27, 2012"])
AM_SILENT_RULES
#
############################################################################
#
# Checks for programs.
#
AC_PROG_GREP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PATH_PROG([AUTOCONF],[autoconf])
AC_PATH_PROG([AUTOMAKE],[automake])
AC_ARG_VAR([EXPECT],[Expect])
AC_PATH_PROG([EXPECT],[expect])
AM_CONDITIONAL([COND_EXPECT],[test '!' "x$EXPECT" = "x"])
AC_ARG_VAR([FONTFORGE],[Fontforge])
AC_PATH_PROG([FONTFORGE],[fontforge])
AX_CHECK_GNU_MAKE
AC_ARG_VAR([MPOST],[MetaPost])
AC_PATH_PROG([MPOST],[mpost])
AC_ARG_VAR([PERL],[Perl])
AC_PATH_PROG([PERL],[perl])
AC_ARG_VAR([T1ASM],[t1asm])
AC_ARG_VAR([XDVIPDFMX],[xdvipdfmx])
AC_PATH_PROG([XDVIPDFMX],[xdvipdfmx])
AC_ARG_VAR([XELATEX],[XeLaTeX])
AC_PATH_PROG([XELATEX],[xelatex])
#
############################################################################
#
# Check for parasite build
#
AC_MSG_CHECKING([whether we are building as a parasite])
AM_CONDITIONAL([COND_PARASITE],
[grep Tsukurimashou ../Makefile > /dev/null 2> /dev/null])
AM_COND_IF([COND_PARASITE],
[AC_MSG_RESULT([yes])
T1ASM=../t1asm/t1asm],
[AC_MSG_RESULT([no])
AC_PATH_PROG([T1ASM],[t1asm])
])
AC_SUBST([T1ASM])
#
############################################################################
#
# Checks for system services
#
AC_SYS_LONG_FILE_NAMES
AX_AM_JOBSERVER
#
############################################################################
#
# User-settable options
#
# Define user options
#
AC_ARG_ENABLE([colour-build],
[AS_HELP_STRING([--disable-colour-build],
[turn off ANSI colour in build scripts])],
[],
[enable_colour_build=yes])
AC_ARG_ENABLE([color-build],[dnl],[],[enable_color_build=yes])
AC_ARG_ENABLE([docs],
[AS_HELP_STRING([--disable-docs],
[turn off PDF documentation])],
[],
[enable_docs=yes])
#
# Process user options
#
tsu_colour=yes
AS_IF([test "x$enable_colour_build" = "xyes"],
[],[tsu_colour=no])
AS_IF([test "x$enable_color_build" = "xyes"],
[],[tsu_colour=no])
AM_CONDITIONAL([COND_COLOUR],[test '!' "$tsu_colour" = no])
#
AM_CONDITIONAL([COND_DOCS],[test '!' "$enable_docs" = no])
AC_SUBST([enable_docs])
#
#
AS_IF([test "x$prefix" = "xNONE"],[prefix="$ac_default_prefix"])
#
AS_IF([test "x$enable_silent_rules" = "x"],
[enable_silent_rules=yes
AM_DEFAULT_VERBOSITY=0])
#
AC_MSG_CHECKING([whether FontForge accepts AddExtrema(1)])
echo '#!/usr/local/bin/fontforge' > ffaetest.pe
echo 'New();AddExtrema(1);' >> ffaetest.pe
AS_IF([$FONTFORGE ffaetest.pe >& /dev/null],
[ae_arg_okay=yes],[ae_arg_okay=no])
AC_SUBST([ae_arg_okay])
AC_MSG_RESULT([$ae_arg_okay])
#
############################################################################
#
# Generate output
#
AC_SUBST([andt],[])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
This diff is collapsed.
This diff is collapsed.
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_add_am_macro.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_ADD_AM_MACRO([RULE])
#
# DESCRIPTION
#
# Adds the specified rule to $AMINCLUDE. This macro will only work
# properly with implementations of Make which allow include statements.
# See also AX_ADD_AM_MACRO_STATIC.
#
# LICENSE
#
# Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 9
AC_DEFUN([AX_ADD_AM_MACRO],[
AC_REQUIRE([AX_AM_MACROS])
AX_APPEND_TO_FILE([$AMINCLUDE],[$1])
])
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_am_jobserver.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_AM_JOBSERVER([default_value])
#
# DESCRIPTION
#
# Enables the use of make's jobserver for the purpose of parallel building
# by passing the -j option to make.
#
# The option --enable-jobserver is added to configure which can accept a
# yes, no, or an integer. The integer is the number of separate jobs to
# allow. If 'yes' is given, then the is assumed to be one more than the
# number of CPUs (determined through AX_COUNT_CPUS). If the value of no is
# given, then the jobserver is disabled. The default value is given by the
# first argument of the macro, or 'yes' if the argument is omitted.
#
# This macro makes use of AX_AM_MACROS, so you must add the following line
#
# @INC_AMINCLUDE@
#
# to your Makefile.am files.
#
# MODIFIED
#
# By Matthew Skala, <mskala@ansuz.sooke.bc.ca>, 24 September 2012, to
# make the -j flag conditional, removing a "-jN forced in submake"
# warning when used in nested packages. This probably requires GNU Make,
# but that was likely required already. It also requires a variable named
# percent, because literal percent signs seem to break things here.
#
# LICENSE
#
# Copyright (c) 2008 Michael Paul Bailey <jinxidoru@byu.net>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 8
AC_DEFUN([AX_AM_JOBSERVER], [
AC_REQUIRE([AX_COUNT_CPUS])
AC_REQUIRE([AX_AM_MACROS])
AC_ARG_ENABLE( jobserver,
[ --enable-jobserver@<:@=no/yes/@%:@@:>@ use up to @%:@ make jobs, yes=CPUs+1 @<:@m4_ifval([$1],[$1],[yes])@:>@],,
[enable_jobserver=m4_ifval([$1],[$1],[yes])])
AS_IF([test "x$enable_jobserver" = "xyes"],
[enable_jobserver=$CPU_COUNT
((enable_jobserver++))])
m4_pattern_allow(AM_MAKEFLAGS)
AS_IF([test "x$enable_jobserver" != "xno"],
[AX_ADD_AM_MACRO([AM_MAKEFLAGS += \$(if \$(filter -j\$(percent),\$(MAKEFLAGS)),,-j$enable_jobserver )
])])
])
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_am_macros.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_AM_MACROS
#
# DESCRIPTION
#
# Adds support for macros that create Make rules. You must manually add
# the following line
#
# @INC_AMINCLUDE@
#
# to your Makefile.in (or Makefile.am if you use Automake) files.
#
# LICENSE
#
# Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net>
#
# Copying and distribution of this file, with or without modification, are