2 # Process this file with autoconf to produce a configure script.
4 # This is part of LFSbookja package.
6 # This is a CTIE change file for the original XML source of the LFSbook.
9 m4_include([version.ac])[] dnl define lfs_version
12 AC_INIT([LFSbookja], [git], [matsuand AT users DOT osdn DOT me])
13 AM_INIT_AUTOMAKE([-Wno-portability])
16 m4_include([m4/progs.m4])
17 m4_include([m4/ax_compare_version.m4])
18 m4_include([m4/ac_check_docbook_xslt.m4])
19 m4_include([m4/ac_check_docbook_dtd.m4])
20 #m4_include([m4/ac_check_ipafontdir.m4])
21 m4_include([m4/ac_check_takaofontdir.m4])
23 # Checks for programs.
26 XSLTPROC_FLAGS='--nonet '
28 if test "x$HAVE_DOCBOOK_XSLT" = "xno"; then
29 AC_MSG_ERROR([Docbook XSLT not found])
32 XSLTPROC_FLAGS='--nonet '
33 AC_CHECK_DOCBOOK_DTD([4.5])
34 if test "x$HAVE_DOCBOOK_DTD_VERS" = "xno"; then
35 AC_MSG_ERROR([Docbook DTD 4.5 not found])
41 m4_include([m4/ac_check_rev.m4])
43 TARGETVER=lfs_version()
45 SVNVER=`grep 'ENTITY version ' ${bookdir}/general.ent | sed -e 's/^<!ENTITY version \"//' -e 's/\">$//' | tr 'A-Z' 'a-z'`
46 AC_MSG_CHECKING([for the original XML version])
47 if test ! "$SVNVER" = "$TARGETVER"; then
48 AC_MSG_RESULT([$SVNVER])
49 AC_MSG_WARN([Version of the original XML not $TARGETVER])
51 AC_MSG_RESULT([$SVNVER])
57 AC_CHECK_TAKAOGFONTDIR
59 AC_CONFIG_FILES([Makefile
63 src/appendices/Makefile
64 src/chapter01/Makefile
65 src/chapter02/Makefile
66 src/chapter03/Makefile
67 src/chapter04/Makefile
68 src/chapter05/Makefile
69 src/chapter06/Makefile
70 src/chapter07/Makefile
71 src/chapter08/Makefile
72 src/chapter09/Makefile
73 src/chapter10/Makefile
74 src/chapter11/Makefile
75 src/part3intro/Makefile
77 src/stylesheets/Makefile
78 src/stylesheets/lfs-xsl/Makefile
79 src/stylesheets/lfs-xsl/pdf/Makefile
80 src/stylesheets/lfs-xsl/xhtml/Makefile
82 src/udev-lfs/contrib/Makefile
83 src/udev-lfs/contrib/debian/Makefile])