| 10 |
dnl 1987, 1988, 1989, 1990, 1991, 1992 |
dnl 1987, 1988, 1989, 1990, 1991, 1992 |
| 11 |
dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 |
dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 |
| 12 |
dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 |
dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 |
| 13 |
dnl Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2003, 2004 |
dnl Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| 14 |
dnl |
dnl |
| 15 |
dnl Maintainer: FreeWnn Project <freewnn@tomo.gr.jp> |
dnl Maintainer: FreeWnn Project |
| 16 |
dnl |
dnl |
| 17 |
dnl This program is free software; you can redistribute it and/or modify |
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 |
dnl it under the terms of the GNU General Public License as published by |
| 165 |
DEPWNNJLIB="" |
DEPWNNJLIB="" |
| 166 |
HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data" |
HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data" |
| 167 |
], |
], |
| 168 |
[ WNNJLIB="\$(WNNJLIBSRC)/libwnn.la" |
[ WNNJLIB="\$(top_builddir)/Wnn/jlib/libwnn.la" |
| 169 |
DEPWNNJLIB="\$(WNNJLIB)" |
DEPWNNJLIB="\$(WNNJLIB)" |
| 170 |
HINSI_DATA="\$(WNNJDSRC)/hinsi.data" |
HINSI_DATA="\$(top_builddir)/Wnn/jd/hinsi.data" |
| 171 |
]) |
]) |
| 172 |
AC_SUBST(WNNJLIB) |
AC_SUBST(WNNJLIB) |
| 173 |
AC_SUBST(DEPWNNJLIB) |
AC_SUBST(DEPWNNJLIB) |
| 193 |
CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data" |
CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data" |
| 194 |
THINSI_DATA="\$(TWNNTDSRC)/cixing.data" |
THINSI_DATA="\$(TWNNTDSRC)/cixing.data" |
| 195 |
], |
], |
| 196 |
[ CWNNJLIB="\$(CWNNJLIBSRC)/libcwnn.la" |
[ CWNNJLIB="\$(top_builddir)/cWnn/jlib/libcwnn.la" |
| 197 |
DEPCWNNJLIB="\$(CWNNJLIB)" |
DEPCWNNJLIB="\$(CWNNJLIB)" |
| 198 |
CHINSI_DATA="\$(CWNNCDSRC)/cixing.data" |
CHINSI_DATA="\$(CWNNCDSRC)/cixing.data" |
| 199 |
THINSI_DATA="\$(TWNNTDSRC)/cixing.data" |
THINSI_DATA="\$(TWNNTDSRC)/cixing.data" |
| 222 |
DEPKWNNJLIB="" |
DEPKWNNJLIB="" |
| 223 |
KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data" |
KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data" |
| 224 |
], |
], |
| 225 |
[ KWNNJLIB="\$(KWNNJLIBSRC)/libkwnn.la" |
[ KWNNJLIB="\$(top_builddir)/kWnn/jlib/libkwnn.la" |
| 226 |
DEPKWNNJLIB="\$(KWNNJLIB)" |
DEPKWNNJLIB="\$(KWNNJLIB)" |
| 227 |
KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data" |
KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data" |
| 228 |
]) |
]) |
| 266 |
dnl Now that we are using autoconf, CCOPTIONS should be nuked... |
dnl Now that we are using autoconf, CCOPTIONS should be nuked... |
| 267 |
case $host in |
case $host in |
| 268 |
*-*-linux*) |
*-*-linux*) |
| 269 |
CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE" |
CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 270 |
;; |
;; |
| 271 |
*-*-darwin*) |
*-*-darwin*) |
| 272 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 273 |
# Unfortunately, autoconf (at least 2.57) does not recognize |
# Unfortunately, autoconf (at least 2.57) does not recognize |
| 274 |
# proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does |
# proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does |
| 275 |
# not work with pubdic+ processing.) So define here .... |
# not work with pubdic+ processing.) So define here .... |
| 276 |
# Note: It seems gcc-3.3 (or (probably) later) does not need this. |
# Note: It seems gcc-3.3 (or (probably) later) does not need this. |
| 277 |
CPP=${CPP:-"$CC -E -no-cpp-precomp"} |
CPP=${CPP:-"$CC -E -no-cpp-precomp"} |
| 278 |
fi |
fi |
| 358 |
dnl ### dnl Replace `main' with a function in -lcurses: |
dnl ### dnl Replace `main' with a function in -lcurses: |
| 359 |
dnl ### AC_CHECK_LIB(curses, main) |
dnl ### AC_CHECK_LIB(curses, main) |
| 360 |
|
|
| 361 |
AC_CHECK_LIB(crypt, crypt) |
AC_SEARCH_LIBS(crypt, crypt) |
| 362 |
AC_CHECK_LIB(socket, connect) |
AC_CHECK_LIB(socket, connect) |
| 363 |
AC_CHECK_LIB(bind, getservbyname) |
AC_CHECK_LIB(bind, getservbyname) |
| 364 |
AC_CHECK_LIB(nsl, gethostbyname) |
AC_CHECK_LIB(nsl, gethostbyname) |
| 461 |
WRAPINCLUDES="$withval" |
WRAPINCLUDES="$withval" |
| 462 |
fi |
fi |
| 463 |
;; |
;; |
| 464 |
esac ], |
esac], |
| 465 |
[AC_MSG_RESULT([try to find]) |
[AC_MSG_RESULT([try to find]) |
| 466 |
WRAP_TRY=auto] |
WRAP_TRY=auto] |
| 467 |
) |
) |
| 497 |
dnl |
dnl |
| 498 |
# mkdir -p Contrib/dic/gerodic in case builddir != srcdir |
# mkdir -p Contrib/dic/gerodic in case builddir != srcdir |
| 499 |
dir=Contrib/dic/gerodic |
dir=Contrib/dic/gerodic |
| 500 |
if test ! -d $dir; then |
if test ! -d $dir; then |
| 501 |
echo "creating $dir ..." |
echo "creating $dir ..." |
| 502 |
$ac_install_sh -d $dir |
$ac_install_sh -d $dir |
| 503 |
fi |
fi |
| 504 |
|
|
| 505 |
dnl |
dnl |
| 506 |
dnl Generate Makefiles |
dnl Generate Makefiles |