LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2004, 10:29 AM   #1
meonkeys
Member
 
Registered: Apr 2004
Location: Minneapolis
Distribution: Ubuntu
Posts: 45

Rep: Reputation: 15
checking for berkeley DB 4.x within configure.in


How do I check for the presence of Berkeley DB 4.x libraries within a
configure.in (autoconf) file?

I found the following m4 macro file:
http://ac-archive.sourceforge.net/In..._path_bdb.html

So I add it to a file called 'acinclude.m4' in the root dir of my
source tree, and add the following lines to configure.in:

Code:
# check for Berkeley DB >= 4
AX_PATH_BDB([4],
 [LIBS="$BDB_LIBS $LIBS"
 LDFLAGS="$BDB_LDFLAGS $LDFLAGS"
 CPPFLAGS="$CPPFLAGS $BDB_CPPFLAGS"
])
When I do this, it's as if autoconf starts failing in seemingly
unrelated ways, possibly forgetting it's "core" macros:

Code:
Running autoconf ...
configure.in:13: error: possibly undefined macro: dnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:5421: error: possibly undefined macro: AS_VAR_PUSHDEF
configure:5430: error: possibly undefined macro: AC_SEARCH_LIBS
configure:5447: error: possibly undefined macro: AS_VAR_POPDEF
wtf?

I also see,
Code:
./configure: line 5416: syntax error near unexpected token `$HEADER_VERSION,ge,4,'
./configure: line 5416: `     AX_COMPARE_VERSION($HEADER_VERSION,ge,4,'
PS-
I'm doing this for http://gnewsuck.sf.net/, so if anyone does have
time to help me out with this (and wants to try it out themselves),
all the source code is very freely available under the GPL.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for Qt... configure: error Anden008 Linux - Newbie 4 11-15-2005 01:27 PM
checking for X...configure:error dumbsheep Linux - Newbie 4 02-01-2005 02:21 PM
kdevelop configure fails on berkeley db.h jhcatch22 Linux - Software 1 06-16-2004 09:04 PM
KDevelop's 3.0 configure script can't find my Berkeley DB Oxyd Linux - Software 1 04-11-2004 04:11 PM
checking for X ... configure Oklahoma Linux - Software 2 11-13-2002 05:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration