Develop and Download Open Source Software

Browse CVS Repository

Contents of /freewnn/FreeWnn/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.13 - (show annotations) (download)
Thu Jun 14 18:08:31 2001 UTC (22 years, 10 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a016, freewnn-1-1-1-a015
Changes since 1.12: +11 -1 lines
FreeWnn-1.1.1-a015 is released.

1 dnl
2 dnl $Id: configure.in $
3 dnl
4
5 dnl
6 dnl FreeWnn is a network-extensible Kana-to-Kanji conversion system.
7 dnl This file is part of FreeWnn.
8 dnl
9 dnl Copyright Kyoto University Research Institute for Mathematical Sciences
10 dnl 1987, 1988, 1989, 1990, 1991, 1992
11 dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
12 dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
13 dnl Copyright FreeWnn Project 1999, 2000
14 dnl
15 dnl Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
16 dnl
17 dnl This program is free software; you can redistribute it and/or modify
18 dnl it under the terms of the GNU General Public License as published by
19 dnl the Free Software Foundation; either version 2 of the License, or
20 dnl (at your option) any later version.
21 dnl
22 dnl This program is distributed in the hope that it will be useful,
23 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
24 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 dnl GNU General Public License for more details.
26 dnl
27 dnl You should have received a copy of the GNU General Public License
28 dnl along with this program; if not, write to the Free Software
29 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 dnl
31
32 dnl
33 dnl Process this file with autoconf to produce a configure script.
34 dnl
35 AC_INIT(Wnn/conv/cvt_head.h)
36 AC_CONFIG_HEADER(config.h)
37
38 dnl
39 dnl srcdir ������������������������������������������������������������
40 dnl ���������� Makefile.in ��������������������������������������������
41 dnl ��������������
42 dnl
43 case "$top_srcdir" in
44 .) abs_top_srcdir=`pwd` ;;
45 /*) abs_top_srcdir=top_srcdir;;
46 *) # Relative path.
47 abs_top_srcdir=`pwd`$ac_dots$ac_given_srcdir ;;
48 esac
49 AC_SUBST(abs_top_srcdir)
50
51
52
53 dnl
54 dnl Checks for cc and cpp.
55 dnl
56 AC_PROG_CC
57 AC_MSG_CHECKING(for cpp)
58 hosttype=`uname`
59 CCOPTIONS=""
60 CDEBUGFLAGS=-O
61 case $hosttype in
62 "Linux")
63 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
64 CDEBUGFLAGS="-O2 -fno-strength-reduce"
65 if test -x /lib/cpp; then
66 CPP=/lib/cpp
67 fi
68 ;;
69 "FreeBSD"|"NetBSD"|"OpenBSD")
70 CCOPTIONS="-DCSRG_BASED"
71 CDEBUGFLAGS="-O2 -fno-strength-reduce"
72 if test -x /usr/libexec/cpp; then
73 CPP=/usr/libexec/cpp
74 fi
75 ;;
76 "BSD/OS")
77 CCOPTIONS="-DCSRG_BASED"
78 CDEBUGFLAGS="-O2 -fno-strength-reduce"
79 if test -x /usr/bin/cpp; then
80 CPP=/usr/bin/cpp
81 fi
82 ;;
83 "SunOS")
84 case `uname -r` in
85 4.*)
86 if test $CC = gcc; then
87 CDEBUGFLAGS=-O2
88 CCOPTIONS="-Dsun -Dsparc"
89 else
90 CDEBUGFLAGS=-O4
91 CCOPTIONS=""
92 fi
93 CPP=/usr/lib/cpp
94 ;;
95 5.*)
96 if test $CC = gcc; then
97 CDEBUGFLAGS=-O2
98 CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
99 else
100 CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
101 fi
102 if test -x /usr/ccs/lib/cpp; then
103 CPP=/usr/ccs/lib/cpp
104 fi
105 ;;
106 *)
107 AC_MSG_WARN("This system is not supported. But continuing...")
108 ;;
109 esac
110 ;;
111 "HP-UX")
112 if test $CC = gcc; then
113 CDEBUGFLAGS=-O2
114 CCOPTIONS="-Dhpux -DSYSV"
115 else
116 CCOPTIONS="-Ae -Dhpux -DSYSV"
117 fi
118 case `uname -r` in
119 A.09.*)
120 if test -x /lib/cpp; then
121 CPP=/lib/cpp
122 fi
123 ;;
124 B.10.*|B.11.*)
125 if test -x /opt/langtools/lbin/cpp; then
126 CPP=/opt/langtools/lbin/cpp
127 fi
128 ;;
129 *)
130 AC_MSG_WARN("This system is not supported. But continuing...")
131 ;;
132 esac
133 ;;
134 "BeOS")
135 case `uname -m` in
136 "BePC")
137 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
138 CDEBUGFLAGS="-O2 -fno-strength-reduce"
139 if test -x /boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp; then
140 CPP=/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp
141 fi
142 ;;
143 "BeBox"|"BeMac")
144 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
145 NON_GNU_CPP=/boot/apps/GeekGadgets/bin/cpp
146 ;;
147 *)
148 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
149 ;;
150 esac
151 ;;
152 "AIX")
153 if test $CC = gcc; then
154 CDEBUGFLAGS=-O2
155 else
156 CDEBUGFLAGS=-O
157 fi
158 CCOPTIONS="-DSYSV"
159 CPP=/usr/lib/cpp
160 ;;
161 *)
162 AC_MSG_WARN("This system is not supported. But continuing...")
163 ;;
164 esac
165 AC_PROG_CPP
166
167 dnl
168 dnl Checks for programs.
169 dnl
170 dnl ### AC_PROG_YACC
171 dnl ### AC_PROG_LEX
172 AC_PROG_INSTALL
173 AC_PROG_LN_S
174 AC_PROG_MAKE_SET
175 AC_PROG_RANLIB
176 AC_SUBST(CCOPTIONS)
177 AC_SUBST(CDEBUGFLAGS)
178
179 dnl Checks for libraries.
180 dnl ### dnl Replace `main' with a function in -lFS:
181 dnl ### AC_CHECK_LIB(FS, main)
182 dnl ### dnl Replace `main' with a function in -lFresco:
183 dnl ### AC_CHECK_LIB(Fresco, main)
184 dnl ### dnl Replace `main' with a function in -lICE:
185 dnl ### AC_CHECK_LIB(ICE, main)
186 dnl ### dnl Replace `main' with a function in -lPEX5:
187 dnl ### AC_CHECK_LIB(PEX5, main)
188 dnl ### dnl Replace `main' with a function in -lSM:
189 dnl ### AC_CHECK_LIB(SM, main)
190 dnl ### dnl Replace `main' with a function in -lX11:
191 dnl ### AC_CHECK_LIB(X11, main)
192 dnl ### dnl Replace `main' with a function in -lXIE:
193 dnl ### AC_CHECK_LIB(XIE, main)
194 dnl ### dnl Replace `main' with a function in -lXau:
195 dnl ### AC_CHECK_LIB(Xau, main)
196 dnl ### dnl Replace `main' with a function in -lXaw:
197 dnl ### AC_CHECK_LIB(Xaw, main)
198 dnl ### dnl Replace `main' with a function in -lXbsd:
199 dnl ### AC_CHECK_LIB(Xbsd, main)
200 dnl ### dnl Replace `main' with a function in -lXdmcp:
201 dnl ### AC_CHECK_LIB(Xdmcp, main)
202 dnl ### dnl Replace `main' with a function in -lXext:
203 dnl ### AC_CHECK_LIB(Xext, main)
204 dnl ### dnl Replace `main' with a function in -lXi:
205 dnl ### AC_CHECK_LIB(Xi, main)
206 dnl ### dnl Replace `main' with a function in -lXmu:
207 dnl ### AC_CHECK_LIB(Xmu, main)
208 dnl ### dnl Replace `main' with a function in -lXt:
209 dnl ### AC_CHECK_LIB(Xt, main)
210 dnl ### dnl Replace `main' with a function in -lXtf:
211 dnl ### AC_CHECK_LIB(Xtf, main)
212 dnl ### dnl Replace `main' with a function in -lXtst:
213 dnl ### AC_CHECK_LIB(Xtst, main)
214 dnl ### dnl Replace `main' with a function in -lcurses:
215 dnl ### AC_CHECK_LIB(curses, main)
216 dnl ### dnl Replace `main' with a function in -lfl:
217 dnl ### AC_CHECK_LIB(fl, main)
218 dnl ### dnl Replace `main' with a function in -lfont:
219 dnl ### AC_CHECK_LIB(font, main)
220 dnl ### dnl Replace `main' with a function in -loldX:
221 dnl ### AC_CHECK_LIB(oldX, main)
222 dnl ### dnl Replace `main' with a function in -lphigs:
223 dnl ### AC_CHECK_LIB(phigs, main)
224 dnl ### dnl Replace `main' with a function in -lxpg4:
225 dnl ### AC_CHECK_LIB(xpg4, main)
226
227 AC_CHECK_LIB(crypt, crypt)
228 AC_CHECK_LIB(socket, connect)
229 AC_CHECK_LIB(nsl, gethostbyname)
230
231 dnl
232 dnl Checks for header files.
233 dnl
234 AC_PATH_X
235 AC_HEADER_STDC
236 AC_HEADER_SYS_WAIT
237 AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sgtty.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h)
238
239 dnl
240 dnl Checks for typedefs, structures, and compiler characteristics.
241 dnl
242 AC_TYPE_MODE_T
243 AC_HEADER_TIME
244 AC_CHECK_TYPE(time_t, long)
245
246 dnl
247 dnl socklen_t �� sys/socket.h �� bits/socket.h ����������������������
248 dnl AC_CHECK_TYPE ����������������
249 dnl
250 AC_MSG_CHECKING(for socklen_t)
251 AC_EGREP_CPP(socklen_t, [#include <sys/socket.h>], AC_MSG_RESULT(yes),
252 [
253 AC_DEFINE(socklen_t, int)
254 AC_MSG_RESULT(no)
255 ])
256
257 dnl
258 dnl Checks for symbol
259 dnl
260
261 AC_MSG_CHECKING(for RAND_MAX)
262 AC_EGREP_CPP(yes,
263 [#include <stdlib.h>
264 #ifdef RAND_MAX
265 yes
266 #endif
267 ],AC_DEFINE(HAVE_RAND_MAX))
268
269 dnl
270 dnl Checks for library functions.
271 dnl
272 AC_PROG_GCC_TRADITIONAL
273 AC_FUNC_MEMCMP
274 AC_TYPE_SIGNAL
275 AC_FUNC_WAIT3
276 AC_CHECK_FUNCS(gethostname mkdir select socket strtol)
277 AC_CHECK_FUNCS(drand48)
278 AC_CHECK_FUNCS(perror)
279
280
281 dnl
282 dnl Creating Makefiles.
283 dnl
284 AC_OUTPUT(makerule.mk Wnn/man/2.env/wnn/Makefile Wnn/pubdicplus/Makefile cWnn/uum/Makefile cWnn/man/6.jutil/Makefile cWnn/man/Makefile Wnn/man/4.cmd/Makefile kWnn/uum/Makefile cWnn/td/rk/Makefile cWnn/include/Makefile Wnn/jd/rk.vi/Makefile Wnn/jd/Makefile Makefile kWnn/include/Makefile Wnn/ld/Makefile Wnn/man/2.env/dic/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile Wnn/man/6.jutil/Makefile Wnn/uum/Makefile cWnn/man/1.intro/Makefile cWnn/conv/Makefile Wnn/jd/rk/Makefile cWnn/td/Makefile Wnn/man/Makefile cWnn/td/rk_z/Makefile kWnn/conv/Makefile cWnn/man/4.cmd/Makefile cWnn/jlib/Makefile Wnn/include/Makefile Wnn/jutil/Makefile kWnn/jlib/Makefile cWnn/cd/rk_z/Makefile cWnn/Makefile cWnn/cdic/Makefile cWnn/man/2.env/Makefile Wnn/man/3.libwnn/js_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile Contrib/dic/gerodic/Makefile kWnn/Makefile cWnn/jserver/Makefile kWnn/kdic/Makefile cWnn/tdic/Makefile Wnn/romkan/Makefile cWnn/cd/Makefile cWnn/jutil/Makefile cWnn/romkan/Makefile kWnn/jserver/Makefile Wnn/Makefile Wnn/man/3.libwnn/jl_lib/Makefile kWnn/romkan/Makefile kWnn/jutil/Makefile PubdicPlus/Makefile Wnn/conv/Makefile cWnn/cd/rk/Makefile cWnn/td/rk_p/Makefile Wnn/jlib.V3/Makefile kWnn/kd/Makefile Wnn/ld/rk/Makefile cWnn/etc/Makefile Wnn/jlib/Makefile Wnn/jserver/Makefile Wnn/wnncons/dic/Makefile cWnn/cd/rk_p/Makefile kWnn/kd/rk/Makefile Wnn/wnncons/Makefile Wnn/man/3.libwnn/misc_lib/Makefile kWnn/etc/Makefile)

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26