OSDN Git Service

clfs-3.0.0-sysvinit.
[clfsja/cross-lfs-ja.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 m4_include([version.ac])[] dnl define clfs_version
5
6 AC_PREREQ([2.69])
7 AC_INIT([cross-lfs-ja], [3.0.0], [matsuand AT users DOT osdn DOT me])
8 AM_INIT_AUTOMAKE
9 AC_CONFIG_SRCDIR([ctie/ctie.c])
10 AC_CONFIG_HEADERS([config.h])
11
12 m4_include([m4/progs.m4])
13 m4_include([m4/ax_compare_version.m4])
14 m4_include([m4/ac_check_docbook_xslt.m4])
15 m4_include([m4/ac_check_docbook_dtd.m4])
16 m4_include([m4/ac_check_takaofontdir.m4])
17
18 # Checks for programs.
19 AC_PROG_CC
20
21 XSLTPROC_FLAGS='--nonet '
22 AC_CHECK_DOCBOOK_XSLT
23 if test "x$HAVE_DOCBOOK_XSLT" = "xno"; then
24   AC_MSG_ERROR([Docbook XSLT not found])
25 fi
26
27 XSLTPROC_FLAGS='--nonet '
28 AC_CHECK_DOCBOOK_DTD([4.5])
29 if test "x$HAVE_DOCBOOK_DTD_VERS" = "xno"; then
30   AC_MSG_ERROR([Docbook DTD 4.5 not found])
31 fi
32
33 AC_PROG_XMLLINT
34 AC_PROG_TIDY
35
36 AC_PROG_LYNX
37 AC_PROG_FOP
38 AC_CHECK_TAKAOGFONTDIR
39
40 TARGETVER=clfs_version()
41
42 ORGDAY=`grep 'ENTITY day ' ${bookdir}/general.ent | gawk '{print $3;}' | sed 's/^[[^\"]]*\"\([[0-9]]*\)\".*$/\1/'`
43 ORGMONTH=`grep 'ENTITY month ' ${bookdir}/general.ent | gawk '{print $3;}' | sed 's/^[[^\"]]*\"\([[0-9]]*\)\".*$/\1/'`
44 ORGYEAR=`grep 'ENTITY year' ${bookdir}/general.ent | gawk '{print $3;}' | sed 's/^[[^\"]]*\"\([[0-9]]*\)\".*$/\1/'`
45
46 SVNVER=$ORGYEAR$ORGMONTH$ORGDAY
47 AC_MSG_CHECKING([for the original XML version])
48 if test ! "GIT-$SVNVER" = "$TARGETVER"; then
49   AC_MSG_RESULT([$SVNVER])
50   AC_MSG_WARN([Version of the original XML not $TARGETVER])
51 else
52   AC_MSG_RESULT([$SVNVER])
53 fi
54 AC_SUBST(SVNVER)
55
56
57 # Checks for libraries.
58
59 # Checks for header files.
60 AC_CHECK_HEADERS([malloc.h stdlib.h])
61
62 # Checks for typedefs, structures, and compiler characteristics.
63 AC_CHECK_HEADER_STDBOOL
64
65 # Checks for library functions.
66 AC_FUNC_MALLOC
67 AC_CHECK_FUNCS([strerror])
68
69 AC_CONFIG_FILES([Makefile
70                  ctie/Makefile
71                  src/Makefile
72                  src/userconfig.xml
73                  src/appendices/Makefile
74                  src/appendices/dependencies/Makefile
75                  src/appendices/ppc/Makefile
76                  src/appendices/rationale/Makefile
77                  src/boot/Makefile
78                  src/boot/64/Makefile
79                  src/boot/common/Makefile
80                  src/boot/mips/Makefile
81                  src/boot/mips64/Makefile
82                  src/boot/multilib/Makefile
83                  src/boot/ppc/Makefile
84                  src/boot/ppc64/Makefile
85                  src/boot/ppc64-64/Makefile
86                  src/boot/sparc/Makefile
87                  src/boot/sparc64/Makefile
88                  src/boot/sparc64-64/Makefile
89                  src/boot/x86/Makefile
90                  src/boot/x86_64/Makefile
91                  src/bootable/Makefile
92                  src/bootable/common/Makefile
93                  src/bootable/mips/Makefile
94                  src/bootable/mips64/Makefile
95                  src/bootable/ppc/Makefile
96                  src/bootable/ppc64/Makefile
97                  src/bootable/sparc/Makefile
98                  src/bootable/x86/Makefile
99                  src/bootable/x86_64/Makefile
100                  src/chroot/Makefile
101                  src/chroot/64/Makefile
102                  src/chroot/common/Makefile
103                  src/chroot/mips/Makefile
104                  src/chroot/mips64/Makefile
105                  src/chroot/mips64-64/Makefile
106                  src/chroot/multilib/Makefile
107                  src/chroot/ppc/Makefile
108                  src/chroot/ppc64/Makefile
109                  src/chroot/sparc/Makefile
110                  src/chroot/sparc64/Makefile
111                  src/chroot/sparc64-64/Makefile
112                  src/chroot/x86/Makefile
113                  src/chroot/x86_64/Makefile
114                  src/chroot/x86_64-64/Makefile
115                  src/cross-tools/Makefile
116                  src/cross-tools/64/Makefile
117                  src/cross-tools/common/Makefile
118                  src/cross-tools/mips/Makefile
119                  src/cross-tools/mips64/Makefile
120                  src/cross-tools/mips64-64/Makefile
121                  src/cross-tools/multilib/Makefile
122                  src/cross-tools/ppc/Makefile
123                  src/cross-tools/ppc64-64/Makefile
124                  src/cross-tools/sparc/Makefile
125                  src/cross-tools/sparc64/Makefile
126                  src/cross-tools/sparc64-64/Makefile
127                  src/cross-tools/x86/Makefile
128                  src/cross-tools/x86_64/Makefile
129                  src/final-preps/Makefile
130                  src/final-preps/common/Makefile
131                  src/final-preps/mips/Makefile
132                  src/final-preps/mips64/Makefile
133                  src/final-preps/mips64-64/Makefile
134                  src/final-preps/ppc/Makefile
135                  src/final-preps/ppc64/Makefile
136                  src/final-preps/ppc64-64/Makefile
137                  src/final-preps/sparc/Makefile
138                  src/final-preps/sparc64/Makefile
139                  src/final-preps/sparc64-64/Makefile
140                  src/final-preps/x86/Makefile
141                  src/final-preps/x86_64/Makefile
142                  src/final-preps/x86_64-64/Makefile
143                  src/final-system/Makefile
144                  src/final-system/64/Makefile
145                  src/final-system/common/Makefile
146                  src/final-system/mips/Makefile
147                  src/final-system/mips64/Makefile
148                  src/final-system/mips64-64/Makefile
149                  src/final-system/multilib/Makefile
150                  src/final-system/ppc/Makefile
151                  src/final-system/ppc64/Makefile
152                  src/final-system/ppc64-64/Makefile
153                  src/final-system/sparc/Makefile
154                  src/final-system/sparc64/Makefile
155                  src/final-system/sparc64-64/Makefile
156                  src/final-system/x86/Makefile
157                  src/final-system/x86_64/Makefile
158                  src/final-system/x86_64-64/Makefile
159                  src/introduction/Makefile
160                  src/introduction/common/Makefile
161                  src/introduction/mips/Makefile
162                  src/introduction/mips64/Makefile
163                  src/introduction/mips64-64/Makefile
164                  src/introduction/ppc/Makefile
165                  src/introduction/ppc64/Makefile
166                  src/introduction/ppc64-64/Makefile
167                  src/introduction/sparc/Makefile
168                  src/introduction/sparc64/Makefile
169                  src/introduction/sparc64-64/Makefile
170                  src/introduction/x86/Makefile
171                  src/introduction/x86_64/Makefile
172                  src/introduction/x86_64-64/Makefile
173                  src/materials/Makefile
174                  src/materials/common/Makefile
175                  src/materials/mips/Makefile
176                  src/materials/mips64/Makefile
177                  src/materials/mips64-64/Makefile
178                  src/materials/ppc/Makefile
179                  src/materials/ppc64/Makefile
180                  src/materials/ppc64-64/Makefile
181                  src/materials/sparc/Makefile
182                  src/materials/sparc64/Makefile
183                  src/materials/sparc64-64/Makefile
184                  src/materials/x86/Makefile
185                  src/materials/x86_64/Makefile
186                  src/materials/x86_64-64/Makefile
187                  src/network/Makefile
188                  src/network/common/Makefile
189                  src/network/multilib/Makefile
190                  src/partitioning/Makefile
191                  src/partitioning/common/Makefile
192                  src/partitioning/mips/Makefile
193                  src/partitioning/ppc/Makefile
194                  src/partitioning/sparc/Makefile
195                  src/prologue/Makefile
196                  src/prologue/common/Makefile
197                  src/prologue/mips/Makefile
198                  src/prologue/mips64/Makefile
199                  src/prologue/mips64-64/Makefile
200                  src/prologue/ppc/Makefile
201                  src/prologue/ppc64/Makefile
202                  src/prologue/ppc64-64/Makefile
203                  src/prologue/sparc/Makefile
204                  src/prologue/sparc64/Makefile
205                  src/prologue/sparc64-64/Makefile
206                  src/prologue/x86/Makefile
207                  src/prologue/x86_64/Makefile
208                  src/prologue/x86_64-64/Makefile
209                  src/schema/Makefile
210                  src/schema/docbook/Makefile
211                  src/schema/docbook/4.5/Makefile
212                  src/schema/docbook/4.5/rng/Makefile
213                  src/stylesheets/Makefile
214                  src/stylesheets/lfs-xsl/Makefile
215                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/Makefile
216                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/Makefile
217                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/Makefile
218                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/highlighting/Makefile
219                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/html/Makefile
220                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/lib/Makefile
221                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/Makefile
222                  src/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/Makefile
223                  src/stylesheets/lfs-xsl/pdf/Makefile
224                  src/stylesheets/lfs-xsl/xhtml/Makefile
225                  src/system-config/Makefile
226                  src/system-config/common/Makefile
227                  src/system-config/sparc/Makefile
228                  src/temp-system/Makefile
229                  src/temp-system/64/Makefile
230                  src/temp-system/common/Makefile
231                  src/temp-system/mips64/Makefile
232                  src/temp-system/mips64-64/Makefile
233                  src/temp-system/multilib/Makefile
234                  src/temp-system/ppc/Makefile
235                  src/temp-system/ppc64/Makefile
236                  src/temp-system/ppc64-64/Makefile
237                  src/testsuite-tools/Makefile
238                  src/testsuite-tools/common/Makefile
239                  src/testsuite-tools/multilib/Makefile
240                  src/the-end/Makefile])
241 AC_OUTPUT