1dnl
2dnl   configure.in,v 1.32 2002/09/01 17:48:19 hiroo Exp
3dnl   Canna: $Id: configure.in,v 1.8 2003/03/24 04:15:22 aida_s Exp $
4dnl
5
6dnl
7dnl FreeWnn is a network-extensible Kana-to-Kanji conversion system.
8dnl This file is part of FreeWnn.
9dnl
10dnl Copyright Kyoto University Research Institute for Mathematical Sciences
11dnl                 1987, 1988, 1989, 1990, 1991, 1992
12dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
13dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
14dnl Copyright FreeWnn Project 1999, 2000, 2001, 2002
15dnl
16dnl Maintainer:  FreeWnn Project   <freewnn@tomo.gr.jp>
17dnl
18dnl This program is free software; you can redistribute it and/or modify
19dnl it under the terms of the GNU General Public License as published by
20dnl the Free Software Foundation; either version 2 of the License, or
21dnl (at your option) any later version.
22dnl
23dnl This program is distributed in the hope that it will be useful,
24dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
25dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26dnl GNU General Public License for more details.
27dnl
28dnl You should have received a copy of the GNU General Public License
29dnl along with this program; if not, write to the Free Software
30dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
31dnl
32
33dnl
34dnl Process this file with autoconf to produce a configure script.
35dnl
36define([CANNA])
37AC_INIT(ifdef([CANNA],canna.c,Wnn/conv/cvt_head.h))
38AC_CONFIG_HEADER(config.h)
39
40ifdef([CANNA],[
41if test "x$IN_MAKE" != xyes; then
42  AC_MSG_ERROR([You cannot invloke configure directly.])
43fi
44])dnl CANNA
45
46dnl ====================================================================
47dnl Check optional features
48dnl ====================================================================
49
50AC_CANONICAL_HOST
51
52dnl build and install libraries, server or client
53
54ifdef([CANNA],,[
55AC_ARG_ENABLE(debug,
56[  --enable-debug             enable debug options [default=no]],
57[case "${enableval}" in
58   yes) debug=true ;;
59   no)  debug=false ;;
60   *)   AC_MSG_ERROR(bad value for --enable-debug)
61esac], debug=false)
62
63AC_ARG_ENABLE(libraries,
64[  --enable-libraries      build and install libraries [default=yes]],
65[case "${enableval}" in
66   yes) libraries=true ;;
67   no)  libraries=false ;;
68   *)   AC_MSG_ERROR(bad value for --enable-libraries) ;;
69esac], libraries=true)
70
71AC_ARG_ENABLE(server,
72[  --enable-server         build and install server [default=yes]],
73[case "${enableval}" in
74   yes) server=true ;;
75   no)  server=false ;;
76   *)   AC_MSG_ERROR(bad value for --enable-server) ;;
77esac], server=true)
78
79AC_ARG_ENABLE(client,
80[  --enable-client         build and install clients [default=no]],
81[case "${enableval}" in
82   yes) client=true ;;
83   no)  client=false ;;
84   *)   AC_MSG_ERROR(bad value for --enable-client) ;;
85esac], client=false)
86
87if test $libraries = true; then
88	SUBDIRS="\$(LIB_SUBDIRS)"
89	WNNMANDIR="\$(LIB_WNNMANDIR)"
90fi
91if test $server = true; then
92	SUBDIRS="$SUBDIRS \$(SERVER_SUBDIRS)"
93	WNNMANDIR="$WNNMANDIR \$(SERVER_WNNMANDIR)"
94fi
95if test $client = true; then
96	SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)"
97dnl currently client is only uum and its man is in SERVER_WNNMANDIR
98dnl	WNNMANDIR=$WNNMANDIR \$(CLIENT_WNNMANDIR)"
99fi
100
101AC_SUBST(SUBDIRS)
102AC_SUBST(WNNMANDIR)
103
104dnl For Severs
105
106AC_ARG_ENABLE(Wnn,
107[  --enable-Wnn         build and install Wnn [default=yes]],
108[case "${enableval}" in
109   yes) Wnn="Wnn";;
110   no)  Wnn="" ;;
111   *)   AC_MSG_ERROR(bad value for --enable-Wnn) ;;
112esac], Wnn="Wnn")
113AC_SUBST(Wnn)
114
115if test "$server" = true -a "$Wnn" = Wnn; then
116#	JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)"
117	JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)"
118else
119#	JSERVER_SUBDIRS1=""
120	JSERVER_SUBDIRS2=""
121fi
122dnl AC_SUBST(JSERVER_SUBDIRS1)
123AC_SUBST(JSERVER_SUBDIRS2)
124
125AC_ARG_ENABLE(cWnn,
126[  --enable-cWnn         build and install cWnn [default=yes]],
127[case "${enableval}" in
128   yes) cWnn="cWnn" ;;
129   no)  cWnn="" ;;
130   *)   AC_MSG_ERROR(bad value for --enable-cWnn) ;;
131esac], cWnn="cWnn")
132AC_SUBST(cWnn)
133
134AC_ARG_ENABLE(kWnn,
135[  --enable-kWnn         build and install kWnn [default=yes]],
136[case "${enableval}" in
137   yes) kWnn="kWnn" ;;
138   no)  kWnn="" ;;
139   *)   AC_MSG_ERROR(bad value for --enable-kWnn) ;;
140esac], kWnn="kWnn")
141AC_SUBST(kWnn)
142
143dnl For a library libwnn
144
145dnl AC_ARG_WITH(libwnn,
146dnl [  --with-libwnn               use installed Wnn library [default=no]],
147dnl [case "${withval}" in
148dnl    yes|no) with_libwnn=${withval};;
149dnl    *)   AC_MSG_ERROR(invalid argument to --with-libwnn) ;;
150dnl esac], with_libwnn=no)
151dnl
152
153AC_ARG_WITH(libwnn,
154[  --with-libwnn               use installed Wnn library [default=no]],
155[  with_libwnn="${withval}"
156AC_ARG_WITH(wnn-includes,
157[  --with-wnn-includes=DIR  WNN include files are in DIR],
158[wnnincludedir="-I${withval}"], [wnnincludedir=''])
159AC_ARG_WITH(wnn-libraries,
160[  --with-wnn-libraries=DIR Search for WNN libraries in DIR[default=/usr/local/lib]],
161[wnnlibdir="${withval}"], [wnnlibdir='/usr/local/lib'])
162	if test "X${with_libwnn}" = X-lwnn; then
163		WNNJLIB="-L${wnnlibdir} -lwnn"
164	elif test X"`echo ${with_libwnn} | grep '^/.*'`" != X ; then
165		WNNJLIB="${with_libwnn}"
166	else
167		WNNJLIB="${wnnlibdir}/libwnn.a"
168	fi
169	DEPWNNJLIB=""
170	HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data"
171],
172[	WNNJLIB="\$(WNNJLIBSRC)/libwnn.la"
173	DEPWNNJLIB="\$(WNNJLIB)"
174	HINSI_DATA="\$(WNNJDSRC)/hinsi.data"
175])
176AC_SUBST(WNNJLIB)
177AC_SUBST(DEPWNNJLIB)
178AC_SUBST(HINSI_DATA)
179
180AC_ARG_WITH(libcwnn,
181[  --with-libcwnn               use installed cWnn library [default=no]],
182[
183AC_ARG_WITH(cwnn-includes,
184[  --with-cwnn-includes=DIR  CWNN include files are in DIR],
185[cwnnincludedir="-I${withval}"], [cwnnincludedir=''])
186AC_ARG_WITH(cwnn-libraries,
187[  --with-cwnn-libraries=DIR Search for CWNN libraries in DIR[default=/usr/local/lib]],
188[cwnnlibdir="${withval}"], [cwnnlibdir='/usr/local/lib'])
189	if test "X${with_libcwnn}" = X-lcwnn; then
190		CWNNJLIB="-L${cwnnlibdir} -lcwnn"
191	elif test X"`echo ${with_libcwnn} | grep '^/.*'`" != X ; then
192		CWNNJLIB="${with_libcwnn}"
193	else
194		CWNNJLIB="${cwnnlibdir}/libcwnn.a"
195	fi
196	DEPCWNNJLIB=""
197	CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data"
198	THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
199],
200[	CWNNJLIB="\$(CWNNJLIBSRC)/libcwnn.la"
201	DEPCWNNJLIB="\$(CWNNJLIB)"
202	CHINSI_DATA="\$(CWNNCDSRC)/cixing.data"
203	THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
204])
205AC_SUBST(CWNNJLIB)
206AC_SUBST(DEPCWNNJLIB)
207AC_SUBST(CHINSI_DATA)
208AC_SUBST(THINSI_DATA)
209
210AC_ARG_WITH(libkwnn,
211[  --with-libkwnn               use installed kWnn library [default=no]],
212[
213AC_ARG_WITH(kwnn-includes,
214[  --with-kwnn-includes=DIR  KWNN include files are in DIR],
215[kwnnincludedir="-I${withval}"], [kwnnincludedir=''])
216AC_ARG_WITH(kwnn-libraries,
217[  --with-kwnn-libraries=DIR Search for KWNN libraries in DIR[default=/usr/local/lib]],
218[kwnnlibdir="${withval}"], [kwnnlibdir='/usr/local/lib'])
219	if test "X${with_libkwnn}" = X-lkwnn; then
220		KWNNJLIB="-L${kwnnlibdir} -lkwnn"
221	elif test X"`echo ${with_libkwnn} | grep '^/.*'`" != X ; then
222		KWNNJLIB="${with_libkwnn}"
223	else
224		KWNNJLIB="${kwnnlibdir}/libkwnn.a"
225	fi
226	DEPKWNNJLIB=""
227	KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data"
228],
229[	KWNNJLIB="\$(KWNNJLIBSRC)/libkwnn.la"
230	DEPKWNNJLIB="\$(KWNNJLIB)"
231	KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data"
232])
233AC_SUBST(KWNNJLIB)
234AC_SUBST(DEPKWNNJLIB)
235AC_SUBST(KHINSI_DATA)
236
237dnl
238dnl Build Options
239dnl
240
241AC_ARG_ENABLE(ipv6,
242[  --enable-ipv6           build and install IPv6 [default=no]],
243[case "${enableval}" in
244   yes) ipv6="-DINET6";;
245   no)  ipv6="" ;;
246   *)   AC_MSG_ERROR(bad value for --enable-ipv6) ;;
247esac], ipv6="")
248AC_SUBST(ipv6)
249
250AC_ARG_ENABLE(unsafe-path,
251[  --enable-unsafe-path    allow creating files in an arbitrary path [default=no]],
252[case "${enableval}" in
253   yes) unsafe_path=true;;
254   no)  unsafe_path=false;;
255   *)   AC_MSG_ERROR(bad value for --enable-unsafe-path) ;;
256esac], unsafe_path=false)
257AC_SUBST(unsafe_path)
258
259if test ${unsafe_path} = true; then
260	AC_DEFINE(WNN_ALLOW_UNSAFE_PATH)
261fi
262]) dnl not CANNA
263
264dnl
265dnl Checks for cc and cpp.
266dnl
267AC_PROG_CC
268
269ifdef([CANNA],,[
270dnl Use environment variable (if set). It will be overridden
271dnl in supported system though...
272CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"}
273case $host in
274*-*-linux*)
275    CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
276    CDEBUGFLAGS="-O2 -fno-strength-reduce"
277    ;;
278*-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
279    CDEBUGFLAGS="-O2 -fno-strength-reduce"
280    ;;
281*-*-bsdi*)
282    CDEBUGFLAGS="-O2 -fno-strength-reduce"
283    ;;
284*-*-sunos*)
285      if test $GCC = yes; then
286	CCOPTIONS="-Dsun -Dsparc"
287        CDEBUGFLAGS=-O2
288      else
289        CCOPTIONS=""
290        CDEBUGFLAGS=-O4
291      fi
292      ;;
293*-*-solaris2.*)
294    # Will 'solaris*' be OK?
295      if test $GCC = yes; then
296        CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
297        CDEBUGFLAGS=-O2
298      else
299        CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
300        CDEBUGFLAGS=-O4
301      fi
302    ;;
303*-*-hpux*)
304    if test $GCC = yes; then
305        CCOPTIONS="-Dhpux -DSYSV"
306        CDEBUGFLAGS=-O2
307    else
308        CCOPTIONS="-Ae -Dhpux -DSYSV"
309    fi
310      ;;
311i[[34567]]86-pc-beos*)
312	CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
313	CDEBUGFLAGS="-O2 -fno-strength-reduce"
314	;;
315powerpc-*-beos*)
316	CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
317	;;
318*-*-aix*)
319    if test $GCC = yes; then
320      CDEBUGFLAGS=-O2
321    else
322      CDEBUGFLAGS=-O
323    fi
324    CCOPTIONS="-DSYSV"
325    ;;
326*)
327    AC_MSG_WARN("It is not reported if FreeWnn works on this system.  But continuing...")
328    AC_MSG_WARN([(It may or may not work if you set CCOPTIONS properly.)])
329    ;;
330esac
331
332dnl Checking if we use gcc or not
333if test $debug = true; then
334    if test $GCC = yes; then
335      CDEBUGFLAGS="-g2 -Wall -fstack-check $CDEBUGFLAGS"
336    fi
337    INSTPGMFLAGS=
338else
339    INSTPGMFLAGS="-s"
340fi
341AC_SUBST(INSTPGMFLAGS)
342
343echo "Set CDEBUGFLAGS and CCOPTIONS to following:"
344echo '  CDEBUGFLAGS="'"$CDEBUGFLAGS"'"'
345echo '    CCOPTIONS="'"$CCOPTIONS"'"'
346])dnl not CANNA
347
348dnl ��ưǧ���Ƿ��ꤵ�줿���ʤ�����configure���˴Ķ��ѿ�CPP�����ꤻ�衣
349dnl ���ΰ��֤ʤ�Фޤ������ƥ��ͭ��ʬ��CPP�����Х饤�ɤǤ��뤬��
350dnl ��CPP=${CPP:-"/usr/ccs/lib/cpp"}�פΤ��Ȥ��桼���ΰջ֤�º�Ť�������
351dnl �褤�Ȼפ��롣
352AC_PROG_CPP
353
354dnl
355dnl Checks for programs.
356dnl
357dnl ### AC_PROG_YACC
358dnl ### AC_PROG_LEX
359AC_PROG_INSTALL
360AC_PROG_LN_S
361AC_PROG_MAKE_SET
362ifdef([CANNA],,[
363AC_PROG_LIBTOOL
364AC_SUBST(LIBTOOL_DEPS)
365AC_SUBST(CCOPTIONS)
366AC_SUBST(CDEBUGFLAGS)
367])dnl not CANNA
368
369dnl Checks for libraries.
370dnl ### dnl Replace `main' with a function in -lX11:
371dnl ### AC_CHECK_LIB(X11, main)
372dnl ### dnl Replace `main' with a function in -lcurses:
373dnl ### AC_CHECK_LIB(curses, main)
374
375ifdef([CANNA],,[
376AC_CHECK_LIB(crypt, crypt)
377AC_CHECK_LIB(socket, connect)
378AC_CHECK_LIB(bind, getservbyname)
379AC_CHECK_LIB(nsl, gethostbyname)
380])dnl not CANNA
381
382dnl
383dnl Checks for header files.
384dnl
385AC_PATH_X
386AC_HEADER_STDC
387AC_HEADER_SYS_WAIT
388AC_HEADER_TIME
389AC_CHECK_HEADERS(fcntl.h sgtty.h syslog.h unistd.h \
390	sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \
391	malloc.h strings.h memory.h \
392	curses.h ncurses.h term.h termio.h \
393	termcap.h sgtty.h sys/termio.h termios.h
394)
395dnl If you don't use ansidecl.h, use this (and modify Wnn/jserver/error.c)
396dnl AC_CHECK_HEADERS(stdarg.h varargs.h, break)
397
398dnl
399dnl Terminal library selection. (ported from vim6.1)
400dnl FIXME: cross compilation
401dnl
402olibs="$LIBS"
403AC_MSG_CHECKING(--with-term-libs argument)
404AC_ARG_WITH(tlib,
405[  --with-term-libs=-lLIB    terminal library to be used ],)
406if test -n "$with_term_libs"; then
407  AC_MSG_RESULT($with_term_libs)
408  LIBS="$LIBS $with_term_libs"
409else
410  AC_MSG_RESULT([automatic terminal library selection])
411  dnl  On HP-UX 10.10 termcap or termlib should be used instead of
412  dnl  curses, because curses is much slower.
413  dnl  Newer versions of ncurses are preferred over anything.
414  dnl  Older versions of ncurses have bugs, get a new one!
415  dnl  Digital Unix (OSF1) should use curses (Ronald Schild).
416  case "`uname -s 2>/dev/null`" in
417	OSF1)	tlibs="ncurses curses termlib termcap";;
418	*)	tlibs="ncurses termlib termcap curses";;
419  esac
420  for libname in $tlibs; do
421    AC_CHECK_LIB(${libname}, tgetent,,)
422    if test "x$olibs" != "x$LIBS"; then
423      dnl It's possible that a library is found but it doesn't work
424      dnl e.g., shared library that cannot be found
425      dnl compile and run a test program to be sure
426      AC_TRY_RUN([
427#ifdef HAVE_TERMCAP_H
428# include <termcap.h>
429#endif
430main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }],
431			  res="OK", res="FAIL", res="FAIL")
432      if test "$res" = "OK"; then
433	break
434      fi
435      AC_MSG_RESULT($libname library is not usable)
436      LIBS="$olibs"
437    fi
438  done
439fi
440if test "x$olibs" != "x$LIBS"; then
441  AC_MSG_CHECKING(whether we talk terminfo)
442  AC_TRY_RUN([
443#ifdef HAVE_TERMCAP_H
444# include <termcap.h>
445#endif
446main()
447{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }],
448	  AC_MSG_RESULT([no -- we are in termcap land]),
449	  AC_MSG_RESULT([yes -- terminfo spoken here]); AC_DEFINE(HAVE_TERMINFO),
450	  AC_MSG_ERROR(failed to compile test program.))
451else
452  AC_MSG_RESULT(none found)
453fi
454
455dnl
456dnl Checks for typedefs, structures, and compiler characteristics.
457dnl
458AC_TYPE_MODE_T
459AC_HEADER_TIME
460AC_CHECK_TYPE(time_t, long)
461
462dnl
463dnl socklen_t �� sys/socket.h �� bits/socket.h ���������Ƥ���Τǡ�
464dnl AC_CHECK_TYPE �Ǥϸ��ФǤ��ʤ�
465dnl
466AC_MSG_CHECKING(for socklen_t)
467AC_EGREP_CPP(socklen_t, [#include <sys/socket.h>], AC_MSG_RESULT(yes),
468[
469AC_DEFINE(socklen_t, int)
470AC_MSG_RESULT(no)
471])
472dnl code below is for the same thing with autoconf 2.53
473dnl AC_CHECK_TYPES(socklen_t,,
474dnl 	AC_DEFINE(socklen_t, int),
475dnl	[INCLUDES = sys/socket.h])
476AC_MSG_CHECKING(for union wait)
477if test "$ac_cv_header_sys_wait_h" = yes; then
478  AC_EGREP_CPP(union wait, [#include <sys/wait.h>],
479  [AC_DEFINE(HAVE_UNION_WAIT)
480  AC_MSG_RESULT(yes)],
481  [AC_MSG_RESULT(no)])
482else
483  AC_MSG_RESULT(no)
484fi
485
486dnl
487dnl Checks for symbol
488dnl
489
490dnl
491dnl Checks for library functions.
492dnl
493AC_PROG_GCC_TRADITIONAL
494
495dnl idea borrowed from EB Library http://www.sra.co.jp/people/m-kasahr/eb/
496AC_TYPE_SIGNAL
497if test "$ac_cv_type_signal" = void; then
498  AC_DEFINE(RETSIGTYPE_VOID, 1, [Define if the signal function returns void.])
499fi
500
501AC_FUNC_MEMCMP
502AC_CHECK_FUNCS(wait3 setpgrp setsid dup2 killpg getpgid getpgrp)
503AC_FUNC_SETPGRP
504AC_FUNC_GETPGRP
505dnl FreeWnn do not use the 3rd parameter of wait3().
506dnl AC_FUNC_WAIT3
507
508AC_CHECK_FUNCS(random drand48 fchmod getopt \
509	gethostname select socket closesocket setsockopt send recv \
510	FD_SET \
511	getdtablesize getrlimit syslog vsyslog setenv snprintf)
512dnl for bcopy/index -> memcpy/strchr conversion (preparation):
513AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \
514	memcpy memmove memset strchr strrchr)
515
516ifdef([CANNA],,[
517dnl Check fallback functions for jserver (should use AC_REPLACE_FUNCS?)
518JS_SUPPORTOBJS=
519AC_CHECK_FUNCS(mkdir vasprintf, ,
520[JS_SUPPORTOBJS="${JS_SUPPORTOBJS} ${ac_func}.o"])
521AC_SUBST(JS_SUPPORTOBJS)
522
523
524dnl
525dnl Creating Makefiles.
526dnl
527# mkdir -p Contrib/dic/gerodic in case builddir != srcdir
528for dir in Contrib Contrib/dic Contrib/dic/gerodic; do
529  if test ! -d $dir; then
530    echo "creating $dir ..."
531    mkdir $dir
532  fi
533done
534
535dnl
536dnl Generate Makefiles
537dnl
538
539dnl Generic
540
541makefiles_generic="makerule.mk Makefile"
542
543dnl Japanese
544
545if test "x${Wnn}" = "xWnn"; then
546  makefiles_wnn="Wnn/Makefile Wnn/conv/Makefile Wnn/include/Makefile \
547	Wnn/jd/Makefile Wnn/jd/rk/Makefile Wnn/jd/rk.vi/Makefile \
548	Wnn/jlib/Makefile Wnn/jlib.V3/Makefile Wnn/jserver/Makefile \
549	Wnn/jutil/Makefile Wnn/ld/Makefile Wnn/ld/rk/Makefile \
550	Wnn/romkan/Makefile Wnn/uum/Makefile \
551	Wnn/man/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile \
552	Wnn/man/4.cmd/Makefile Wnn/man/6.jutil/Makefile \
553	Wnn/man/2.env/dic/Makefile Wnn/man/2.env/wnn/Makefile \
554	Wnn/man/3.libwnn/jl_lib/Makefile Wnn/man/3.libwnn/js_lib/Makefile \
555	Wnn/man/3.libwnn/misc_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile"
556  makefiles_wnn_dic="Contrib/dic/gerodic/Makefile Wnn/pubdicplus/Makefile \
557	Wnn/wnncons/Makefile Wnn/wnncons/dic/Makefile"
558fi
559
560dnl Chinese and Taiwanese
561
562if test "x$cWnn" = "xcWnn"; then
563  makefiles_cwnn="cWnn/Makefile cWnn/conv/Makefile cWnn/etc/Makefile \
564	cWnn/cd/Makefile cWnn/cd/rk/Makefile \
565	cWnn/cd/rk_p/Makefile cWnn/cd/rk_z/Makefile \
566	cWnn/td/Makefile cWnn/td/rk/Makefile \
567	cWnn/td/rk_z/Makefile cWnn/td/rk_p/Makefile \
568	cWnn/include/Makefile cWnn/jlib/Makefile \
569	cWnn/jserver/Makefile cWnn/jutil/Makefile \
570	cWnn/man/Makefile cWnn/man/1.intro/Makefile cWnn/man/2.env/Makefile \
571	cWnn/man/4.cmd/Makefile cWnn/man/6.jutil/Makefile \
572	cWnn/romkan/Makefile cWnn/uum/Makefile"
573  makefiles_cwnn_dic="cWnn/cdic/Makefile cWnn/tdic/Makefile"
574fi
575
576dnl Korean
577
578if test "x$kWnn" = "xkWnn"; then
579  makefiles_kwnn="kWnn/Makefile kWnn/conv/Makefile kWnn/etc/Makefile \
580	kWnn/include/Makefile kWnn/jlib/Makefile kWnn/jutil/Makefile \
581	kWnn/jserver/Makefile kWnn/kd/Makefile kWnn/kd/rk/Makefile \
582	kWnn/romkan/Makefile kWnn/uum/Makefile"
583  makefiles_kwnn_dic="kWnn/kdic/Makefile"
584fi
585
586AC_OUTPUT(${makefiles_generic} \
587	${makefiles_wnn} ${makefiles_wnn_dic} \
588	${makefiles_cwnn} ${makefiles_cwnn_dic} \
589	${makefiles_kwnn} ${makefiles_kwnn_dic})
590])dnl not CANNA
591ifdef([CANNA],[
592dnl AC_OUTPUT(canuum.tmpl)
593AC_OUTPUT
594])dnl not CANNA
595