X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=configure.in;h=28e66266563494ed5f2c8a2a64f069fc3a7f52bc;hb=4dcc6e1dcc581e97742932f3bba44bd279e40bc0;hp=180e762603a4f8762cf88b4d2677fca1793b3eda;hpb=3ad9ad78e11e56c38fa451ca0c2a611e03ef9c23;p=chise%2Flibchise.git diff --git a/configure.in b/configure.in index 180e762..28e6626 100644 --- a/configure.in +++ b/configure.in @@ -2,14 +2,48 @@ # 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_INIT(libchise, 0.4.2, chise-en@m17n.org) AC_CONFIG_SRCDIR(chise.c) AC_CONFIG_HEADER(config.h) +AC_CANONICAL_TARGET + # Checks for programs. AC_PROG_CC +AC_PROG_LIBTOOL +# AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \ +# /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin) + +# Settings for optional paths +AC_ARG_WITH(site_includes, + --with-site-includes=PATH List of directories to search first for header files +, +for dir in `echo "$with_site_includes"|sed 's/:/ /'` +do + SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir" +done +CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'` +, +if test -f /sw/include/db3/db.h; then + CFLAGS="-I/sw/include/db3 $CFLAGS" +elif test -f /sw/include/db4/db.h; then + CFLAGS="-I/sw/include/db4 $CFLAGS" +fi +) + +AC_ARG_WITH(site_libraries, + --with-site-libraries=PATH List of directories to search first for libraries +, +for dir in `echo "$with_site_libraries"|sed 's/:/ /'` +do + SITE_LIBS="$SITE_LIBS -L$dir" +done +LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'` +) # Checks for libraries. +AC_CHECK_LIB(concord,concord_open_ds, + , AC_MSG_ERROR(libconcord is not found.)) # Checks for header files.