Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 33381 invoked by uid 500); 16 Jan 2002 22:00:38 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 33329 invoked from network); 16 Jan 2002 22:00:38 -0000 Message-ID: <3C45F80B.3080304@apache.org> Date: Wed, 16 Jan 2002 14:00:43 -0800 From: Ian Holsman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7+) Gecko/20020115 X-Accept-Language: en-us MIME-Version: 1.0 To: dev@apr.apache.org Subject: [PATCH] disable gdbm/specifiy the path of gdbm Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Can someone who knows autoconf better than I please verify that this is correct. If it is all good. the --with-berkeley-db equivalent will do something similiar to this. TIA Ian Index: build/apu-conf.m4 =================================================================== RCS file: /home/cvs/apr-util/build/apu-conf.m4,v retrieving revision 1.24 diff -u -u -r1.24 apu-conf.m4 --- build/apu-conf.m4 2 Jan 2002 23:59:26 -0000 1.24 +++ build/apu-conf.m4 16 Jan 2002 21:58:13 -0000 @@ -184,8 +184,28 @@ ],[ requested=default ]) - -AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1])) +AC_ARG_WITH([gdbm], +[ --with-gdbm=DIR specify GDBM location], [ + apu_have_gdbm=0 + if test "$withval" = "yes"; then + AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1])) + elif test "$withval" = "no"; then + apu_have_gdbm=0 + else + CPPFLAGS="-I$withval/include" + LDFLAGS="-L$withval/lib -R$withval/lib" + AC_MSG_CHECKING(checking for gdbm in $withval) + AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1])) + if test "$apu_have_gdbm" != "0"; then + APR_ADDTO(APRUTIL_EXPORT_LIBS, [-L$withval/lib]) + APR_ADDTO(INCLUDES, [-I$withval/include]) + fi + fi +],[ + apu_have_gdbm=0 + AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1])) +]) + dnl We're going to try to find the highest version of Berkeley DB supported. APU_CHECK_DB4