forked from libpinyin/libpinyin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
9,161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
James Su 2002,2003,2006 <suzhe@tsinghua.edu.cn> | ||
Peng Wu 2006-2007 <alexepico@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## Makefile.am -- Process this file with automake to produce Makefile.in | ||
## Copyright (C) 2007 Peng Wu | ||
## | ||
## This program is free software; you can redistribute it and/or modify | ||
## it under the terms of the GNU General Public License as published by | ||
## the Free Software Foundation; either version 2, or (at your option) | ||
## any later version. | ||
## | ||
## This program is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with this program; if not, write to the Free Software | ||
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
|
||
EXTRA_DIST = config.rpath m4/ChangeLog COPYING \ | ||
intltool-extract.in \ | ||
intltool-update.in \ | ||
intltool-merge.in | ||
|
||
AUTOMAKE_OPTIONS = gnu | ||
SUBDIRS = po intl src utils modules tests data | ||
|
||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
CLEANFILES = *.bak \ | ||
intltool-extract \ | ||
intltool-merge \ | ||
intltool-update | ||
|
||
|
||
ACLOCAL = aclocal -I . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
aclocal | ||
|
||
libtoolize --force | ||
|
||
autoheader | ||
|
||
automake -a | ||
|
||
autoconf | ||
|
||
./configure --enable-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
|
||
AC_PREREQ(2.60) | ||
AC_INIT(novel-pinyin, 0.2.5, alexepico@gmail.com) | ||
AM_INIT_AUTOMAKE | ||
AC_CONFIG_SRCDIR([config.h.in]) | ||
AC_CONFIG_HEADER([config.h]) | ||
|
||
SCIM_VERSION=1.2.0 | ||
AC_SUBST(SCIM_VERSION) | ||
|
||
# Checks for programs. | ||
AC_PROG_CXX | ||
AC_PROG_CC | ||
AC_PROG_CPP | ||
AC_PROG_INSTALL | ||
AC_PROG_LN_S | ||
AC_PROG_MAKE_SET | ||
|
||
AC_GNU_SOURCE | ||
|
||
# Init libtool | ||
AC_LIBTOOL_WIN32_DLL | ||
AC_LIBTOOL_DLOPEN | ||
AC_PROG_LIBTOOL | ||
AC_LIB_LTDL | ||
AC_SUBST(LIBTOOL_DEPS) | ||
|
||
# Init gettext | ||
ALL_LINGUAS="zh_CN zh_TW"#"ko ja de fr it" | ||
AM_GNU_GETTEXT | ||
|
||
# Check intltool | ||
#AC_PROG_INTLTOOL | ||
IT_PROG_INTLTOOL([0.33], [no-xml]) | ||
|
||
GETTEXT_PACKAGE="novel-pinyin" | ||
AC_SUBST(GETTEXT_PACKAGE) | ||
|
||
# libtool option to control which symbols are exported | ||
# right now, symbols starting with _ are not exported | ||
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"' | ||
AC_SUBST(LIBTOOL_EXPORT_OPTIONS) | ||
|
||
# Checks for libraries. | ||
PKG_CHECK_MODULES(GLIB2, [glib-2.0 >= 2.4.0]) | ||
|
||
GLIB2_CPPFLAGS=`$PKG_CONFIG --cflags glib-2.0` | ||
|
||
AC_SUBST(GLIB2_CPPFLAGS) | ||
|
||
GLIB2_LDFLAGS=`$PKG_CONFIG --libs glib-2.0` | ||
|
||
AC_SUBST(GLIB2_LDFLAGS) | ||
|
||
# Check SCIM | ||
PKG_CHECK_MODULES(SCIM,[scim >= $SCIM_VERSION]) | ||
|
||
# Check if we should build setup module | ||
PKG_CHECK_MODULES(SCIM_GTKUTILS,[scim-gtkutils >= $SCIM_VERSION], | ||
[SCIM_HAS_GTKUTILS=yes], | ||
[SCIM_HAS_GTKUTILS=no]) | ||
|
||
if test "$SCIM_HAS_GTKUTILS" = "yes"; then | ||
SCIM_BUILD_SETUP=1 | ||
else | ||
SCIM_BUILD_SETUP=0 | ||
fi | ||
|
||
AM_CONDITIONAL(SCIM_BUILD_SETUP, [test "$SCIM_HAS_GTKUTILS" = "yes"]) | ||
AC_SUBST(SCIM_BUILD_SETUP) | ||
|
||
|
||
SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim` | ||
SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim` | ||
SCIM_DATADIR=`$PKG_CONFIG --variable=scimdatadir scim` | ||
|
||
if test "x$SCIM_ICONDIR" = "x"; then | ||
SCIM_ICONDIR=${datadir}/scim/icons | ||
fi | ||
|
||
if test "x$SCIM_MODULEDIR" = "x"; then | ||
SCIM_MODULEDIR=${libdir}/scim-1.0 | ||
fi | ||
|
||
if test "x$SCIM_DATADIR" = "x"; then | ||
SCIM_DATADIR=${datadir}/scim | ||
fi | ||
|
||
AC_SUBST(SCIM_ICONDIR) | ||
AC_SUBST(SCIM_MODULEDIR) | ||
AC_SUBST(SCIM_DATADIR) | ||
|
||
NOVEL_PINYIN_DATADIR=$SCIM_DATADIR/novel-pinyin | ||
|
||
AC_SUBST(NOVEL_PINYIN_DATADIR) | ||
|
||
# Checks for header files. | ||
AC_HEADER_STDC | ||
AC_CHECK_HEADERS([locale.h stdlib.h string.h sys/time.h unistd.h]) | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
AC_HEADER_STDBOOL | ||
AC_C_CONST | ||
AC_C_INLINE | ||
AC_TYPE_SIZE_T | ||
AC_HEADER_TIME | ||
|
||
# Checks for library functions. | ||
AC_FUNC_MALLOC | ||
AC_FUNC_MEMCMP | ||
AC_FUNC_REALLOC | ||
AC_FUNC_STAT | ||
AC_CHECK_FUNCS([gettimeofday memmove memset setlocale]) | ||
|
||
AC_CHECK_HEADERS([libintl.h string.h]) | ||
|
||
AC_CHECK_HEADER([db.h], [], AC_MSG_ERROR([Cannot find Berkeley DB library version 4])) | ||
|
||
AC_SEARCH_LIBS([db_create], [db], [], AC_MSG_ERROR([Cannot find Berkeley DB library version 4])) | ||
|
||
|
||
AC_CONFIG_FILES([Makefile | ||
po/Makefile.in | ||
intl/Makefile | ||
data/Makefile | ||
src/Makefile | ||
src/include/Makefile | ||
src/storage/Makefile | ||
src/segment/Makefile | ||
src/training/Makefile | ||
src/lookup/Makefile | ||
modules/Makefile | ||
modules/scim/Makefile | ||
tests/Makefile | ||
tests/include/Makefile | ||
tests/storage/Makefile | ||
tests/lookup/Makefile | ||
utils/Makefile | ||
utils/storage/Makefile]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Makefile.am -- Process this file with automake to produce Makefile.in | ||
## Copyright (C) 2007 Peng Wu | ||
## | ||
## This program is free software; you can redistribute it and/or modify | ||
## it under the terms of the GNU General Public License as published by | ||
## the Free Software Foundation; either version 2, or (at your option) | ||
## any later version. | ||
## | ||
## This program is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with this program; if not, write to the Free Software | ||
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
|
||
AUTOMAKE_OPTIONS = gnu | ||
SUBDIRS = include storage segment training lookup | ||
|
||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
CLEANFILES = *.bak | ||
|
||
ACLOCAL = aclocal -I $(ac_aux_dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Makefile.am -- Process this file with automake to produce Makefile.in | ||
## Copyright (C) 2007 Peng Wu | ||
## | ||
## This program is free software; you can redistribute it and/or modify | ||
## it under the terms of the GNU General Public License as published by | ||
## the Free Software Foundation; either version 2, or (at your option) | ||
## any later version. | ||
## | ||
## This program is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with this program; if not, write to the Free Software | ||
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
|
||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
noinst_HEADERS = memory_chunk.h \ | ||
novel_types.h \ | ||
stl_lite.h |
Oops, something went wrong.