From: tomo Date: Mon, 7 Jul 2003 10:16:05 +0000 (+0000) Subject: New files. X-Git-Tag: r0_1_1-pre1~31 X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Flibchise.git;a=commitdiff_plain;h=3ad9ad78e11e56c38fa451ca0c2a611e03ef9c23 New files. --- diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..e3aee96 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,61 @@ +CC = @CC@ +DEFS = @DEFS@ +LIBS = @LIBS@ -ldb + +#CC = gcc +CFLAGS = $(DEFS) -g -O2 -c +LINKER = $(CC) $(LIBS) -shared -o + +## The default location for installation. Everything is placed in +## subdirectories of this directory. The default values for many of +## the variables below are expressed in terms of this one, so you may +## not need to change them. This defaults to /usr/local. +prefix=/usr/local + +## Like `prefix', but used for architecture-specific files. +exec_prefix=${prefix} + +## Where to install and expect executable files to be run by XEmacs +## rather than directly by users, and other architecture-dependent data +## ${archlibdir} is a subdirectory of this. +libdir=${exec_prefix}/lib + + +INCLUDE_INSTALLDIR = ${prefix}/include +LIB_INSTALLDIR = ${libdir} +DB_INSTALLDIR = ${libdir}/chise + + +VERSION = @PACKAGE_VERSION@ + +RM = /bin/rm -f + + +all: libchise.so + +libchise.so: chise.o + $(LINKER) libchise.so chise.o + +chise.o: chise.c chise.h + $(CC) $(CFLAGS) chise.c + + +install: install.h install.so install.db + +install.h: + install -c chise.h $(INCLUDE_INSTALLDIR) + +install.so: libchise.so + install -c libchise.so $(LIB_INSTALLDIR)/libchise.so.$(VERSION) + (cd $(LIB_INSTALLDIR); ln -sf libchise.so.$(VERSION) libchise.so) + +install.db: + -mkdir -p $(DB_INSTALLDIR) + ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR) + +clean: + -$(RM) *.o *.so sample + + +sample: sample.c libchise.so + gcc -o sample sample.c -lchise diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..7ccebe0 --- /dev/null +++ b/config.h.in @@ -0,0 +1,49 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +#undef CRAY_STACKSEG_END + +/* Define to 1 if using `alloca.c'. */ +#undef C_ALLOCA + +/* Define to 1 if you have `alloca', as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +#undef HAVE_ALLOCA_H + +/* Define to 1 if you have the `strnlen' function. */ +#undef HAVE_STRNLEN + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +#undef STACK_DIRECTION + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +#undef inline diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..180e762 --- /dev/null +++ b/configure.in @@ -0,0 +1,27 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.57) +AC_INIT(libchise, 0.1.1, chise-en@m17n.org) +AC_CONFIG_SRCDIR(chise.c) +AC_CONFIG_HEADER(config.h) + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_INLINE + +# Checks for library functions. +AC_FUNC_ALLOCA +AC_FUNC_STRNLEN + +AC_CHECK_FUNCS(strnlen) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT