From: tomo Date: Mon, 21 Jul 2008 17:08:06 +0000 (+0000) Subject: Add settings for --with-site-includes=PATH and X-Git-Tag: chise-base-0_25~3 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7742c1b3d39aee60515d106d2b13e5c12feb1269;p=chise%2Flibchise.git Add settings for --with-site-includes=PATH and --with-site-libraries=PATH. --- diff --git a/configure.in b/configure.in index 5929cea..65b8c9b 100644 --- a/configure.in +++ b/configure.in @@ -14,17 +14,34 @@ 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" -# LIBS="-L/sw/lib -ldb-4 $LIBS" -#else -# LIBS="-ldb $LIBS" fi -#LIBS="-lconcord $LIBS" +) + +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.))