X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=configure.in;h=8ac29b6b935be5f69f0c8279a020886b24b1f649;hb=fe0c1f37d8524f95e72c94ddaf29555f47f3fb91;hp=0355386479c3a38282271a9159c57f37ec779c2e;hpb=f9cf1693b4b4c183bcc09c90c352fbd53955f2a0;p=chise%2Fconcord.git diff --git a/configure.in b/configure.in index 0355386..8ac29b6 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(concord, 0.0.1, chise-en@m17n.org) +AC_INIT(concord, 0.0.2, chise-en@m17n.org) AC_CONFIG_SRCDIR(concord.c) AC_CONFIG_HEADER(config.h) @@ -14,16 +14,43 @@ AC_PROG_LIBTOOL # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \ # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin) -# Checks for libraries. +# 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" - LIBS="-L/sw/lib -ldb-3 $LIBS" 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/^ *//'` +LIBS="-ldb $LIBS" +, +if test -f /sw/include/db3/db.h; then + LIBS="-L/sw/lib -ldb-3 $LIBS" +elif test -f /sw/include/db4/db.h; then LIBS="-L/sw/lib -ldb-4 $LIBS" else LIBS="-ldb $LIBS" fi +) + +# Checks for libraries. # Checks for header files.