Develop and Download Open Source Software

Browse CVS Repository

Annotation of /freewnn/FreeWnn/configure.in

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


Revision 1.10 - (hide annotations) (download)
Sun Jan 16 07:30:00 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a012
Changes since 1.9: +16 -4 lines
FreeWnn-1.1.1-a012 is released.

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