Re: Can't open configure

2008-10-03 Thread Braden McDaniel
tdl subdirectory created by "libtoolize --ltdl". Blowing away autom4te.cache does not help. Is there any more known about this issue? I can provide more details if necessary. -- Braden McDaniel e-mail: <[EMAIL PROT

Re: Can't open configure

2008-10-05 Thread Braden McDaniel
On Sun, 2008-10-05 at 12:21 +0200, Ralf Wildenhues wrote: > Hello Braden, > > thanks for providing feedback! > > * Braden McDaniel wrote on Fri, Oct 03, 2008 at 09:17:42AM CEST: > > On Tue, 2008-01-29 at 07:54 +0100, Ralf Wildenhues wrote: > > > * Paulo J. Matos wr

Re: Can't open configure

2008-10-05 Thread Braden McDaniel
On Sun, 2008-10-05 at 19:36 +0200, Ralf Wildenhues wrote: > * Braden McDaniel wrote on Sun, Oct 05, 2008 at 07:23:40PM CEST: > > On Sun, 2008-10-05 at 12:21 +0200, Ralf Wildenhues wrote: > > > * Braden McDaniel wrote on Fri, Oct 03, 2008 at 09:17:42AM CEST: > >

Problem using AC_LANG_PROGRAM with AC_EGREP_CPP

2009-03-27 Thread Braden McDaniel
t has been working fine. However, the error message will point to it. Only if I remove the first occurrence does the error message point at the second invocation (the one mentioned listed above). I am using Autoconf 2.63. (Specifically, the one in Fedora 10.) -- Braden McD

Re: Problem using AC_LANG_PROGRAM with AC_EGREP_CPP

2009-03-28 Thread Braden McDaniel
On Sat, 2009-03-28 at 07:27 -0600, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Braden McDaniel on 3/27/2009 11:02 PM: > > When I try to use AC_LANG_PROGRAM in conjunction with AC_EGREP_CPP, I'm > > seeing this error: > >

autotest: error: m4_divert_pop(TEST_SCRIPT): diversion mismatch

2009-04-19 Thread Braden McDaniel
) AT_CLEANUP What causes this? And how do I fix it? -- Braden McDaniel ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: library depending on another library

2009-04-19 Thread Braden McDaniel
than your configure script is likely ever to be. So do a check if it's easy. But if it adds a bunch of complexity that will significantly affect the cost of configure.ac's upkeep, don't bother. -- Braden McDaniel ___ Autoconf mailing

Re: autotest: error: m4_divert_pop(TEST_SCRIPT): diversion mismatch

2009-04-19 Thread Braden McDaniel
On Sun, 2009-04-19 at 21:50 -0600, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Braden McDaniel on 4/19/2009 8:31 PM: > > I'm seeing an error processing a testsuite.at that was working at some > > point; that point was probabl

Re: CFLAGS/LDFLAGS vs. --with

2009-08-06 Thread Braden McDaniel
On 8/6/09 4:36 PM, Murray S. Kucherawy wrote: What is the general wisdom when deciding whether to add support for a new "--with" vs. just encouraging use of CFLAGS/LDFLAGS on the command line? In particular I'm talking about openssl here. I have a package that needs it. Several systems come

abs_top_srcdir missing from autotest in 2.63

2009-11-22 Thread Braden McDaniel
It looks like the abs_top_srcdir shell variable is no longer set for testsuite in Autoconf 2.63. What can I do instead (to refer to a file in the source tree)? -- Braden McDaniel ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org

Re: abs_top_srcdir missing from autotest in 2.63

2009-11-22 Thread Braden McDaniel
On Mon, 2009-11-23 at 07:33 +0100, Ralf Wildenhues wrote: > Hello Braden, > > * Braden McDaniel wrote on Mon, Nov 23, 2009 at 06:20:16AM CET: > > It looks like the abs_top_srcdir shell variable is no longer set for > > testsuite in Autoconf 2.63. What can I do instead (to r

Re: checking Mac OS X headers

2010-02-12 Thread Braden McDaniel
o, the test not to be done. Why do you want the test to be conditional? My experience is that, in general, conditional tests add complexity with very little return. Why not just let the test fail where the requisite bits are missing and decide if that actually matters later in the script?

Re: checking Mac OS X headers

2010-02-12 Thread Braden McDaniel
On Fri, 2010-02-12 at 16:34 +0100, Vincent Torri wrote: > > On Fri, 12 Feb 2010, Braden McDaniel wrote: > > > On Fri, 2010-02-12 at 11:04 +0100, Vincent Torri wrote: > >> Hey, > >> > >> I restart this thread. > >> > >> So, what I

Re: C++, assert and NDEBUG

2010-03-28 Thread Braden McDaniel
rwise violates the principle of least surprise. -- Braden McDaniel ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: How to enable/disable my debug code?

2011-07-31 Thread Braden McDaniel
geably. (This, of course, doesn't fix all of your POSIX interoperability problems; but it helps.) -- Braden McDaniel ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Use of config.h: summary of responses.

2004-09-13 Thread Braden McDaniel
r, I think there are some macros in the macro archive that can help. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]> ___ Autoconf mailing

Re: how to use AC_CHECK_LIB without LDFLAGS?

2004-11-04 Thread Braden McDaniel
Harald Dunkel wrote: I am new to autoconf and automake, so please excuse if you heard this too often. My question is: How can I use AC_CHECK_LIB without setting a global LDFLAGS? Yes; but of course, then the compiler's defaults will be used. Presumably that's not what you want either. Using autom

Re: how to use AC_CHECK_LIB without LDFLAGS?

2004-11-05 Thread Braden McDaniel
Harald Dunkel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Braden McDaniel wrote: | | I don't fully understand the problem you're describing; but perhaps you | want to do something like this: | | save_LDFLAGS="$LDFLAGS" | LDFLAGS="$LDFLAGS -Lwhatever"

Re: how to use AC_CHECK_LIB without LDFLAGS?

2004-11-05 Thread Braden McDaniel
Harald Dunkel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Braden McDaniel wrote: | Harald Dunkel wrote: | |> -BEGIN PGP SIGNED MESSAGE- |> Hash: SHA1 |> |> Braden McDaniel wrote: |> | |> | I don't fully understand the problem you're describing; but

Re: problems with AC_CHECK_HEADERS

2004-12-31 Thread Braden McDaniel
lib2... > > 2:) how can I do the same for headeer files? You can look at the implementation of AC_PATH_X and AC_PATH_XTRA. The machinations there are not pretty. Fortunately, there is usually a Better Way. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://

Re: Mac OS X question

2005-01-20 Thread Braden McDaniel
know how well it's suited to non-Fink Mac OS X development, but that is the kind of thing with which pkg-config is designed to assist. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]&g

Re: optional features and AC_ARG_WITH

2005-02-03 Thread Braden McDaniel
Paul Eggert wrote: Gregorio Guidi <[EMAIL PROTECTED]> writes: [snip] it is very important when creating a package to know in advance what features will be enabled in the software at the end of the process, without knowing the details of the host where the package is building. When you say "feature

Re: AC_CHECK_LIB doesn't find existing, linkable libraries

2005-02-25 Thread Braden McDaniel
Harry Mangalam wrote: Hi All, salient points: Linux xxx.xxx.uci.edu 2.6.8.1-4-amd64-k8-smp #1 SMP Fri Jan 14 11:33:56 UTC 2005 x86_64 GNU/Linux config.log pointed me to a number of erroneous conditions which I've now corrected. However, I'm still experiencing the same problem. That is, that

Re: specifying multiple with arguments

2005-03-15 Thread Braden McDaniel
Patrick West wrote: I am interested in doing something like this: ./configure --with-package=package1 --with-package=package2 But I am not sure how to do this. I try to use AC_ARG_WITH, but that only takes package2 and ignores package1. Any help would be greatly appreciated. A single switch (in y

Re: specifying multiple with arguments

2005-03-15 Thread Braden McDaniel
On Tue, 2005-03-15 at 16:25 -0500, Dan Manthey wrote: > > > On Tue, 15 Mar 2005, Braden McDaniel wrote: > > > While you can use any value you want as the argument to a --with-* > > option, anything other than "yes" or "no" usually complicates the UI a

Re: specifying multiple with arguments

2005-03-15 Thread Braden McDaniel
which the specfied packages > are _not_ mutually exclusive, so that doesn't pertain. Then what, dependent? That is, if you use implementation X of A, you must use implementation Y of B? I'm afraid I still don't totally understand the scenario you're describing. (I tried to guess before, and apparently guessed wrong.) -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]> ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: specifying multiple with arguments

2005-03-15 Thread Braden McDaniel
pkg-config may help you--particularly if you have some say over the configuration toolset used by your dependencies. Please be more judicious in your quoting. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber:

Re: Generated Makefiles for multiple platforms

2005-12-14 Thread Braden McDaniel
nts to do for you. Your build directories are configuration-specific--which can include platform-specific aspects. To configure for a platform (or even a particular configuration of a platform): create a directory, change to it, and run your configure script there. -- Braden McDaniel

Re: Generated Makefiles for multiple platforms

2005-12-15 Thread Braden McDaniel
On Thu, 2005-12-15 at 06:26 -0800, BRM wrote: > --- Braden McDaniel <[EMAIL PROTECTED]> wrote: > > On Wed, 2005-12-14 at 08:31 -0800, BRM wrote: > > > I originally sent this to the Automake list since > I > > > figured it was an issue with Automake, however, I &

Re: Finding a header

2005-12-15 Thread Braden McDaniel
on is more complicated than that, since a Mac OS X user might also have Mesa (or similar) installed, in which case there will be OpenGL headers in $includedir/GL, too. I came to the conclusion that the only recourse was to insist that the user tell the package if the Apple OpenGL framework should be

Re: Finding a header

2005-12-15 Thread Braden McDaniel
cation to said tools, someone is out of luck. That shouldn't be you. In other words, users who put things in arbitrary places should expect to have to set CPPFLAGS and LDFLAGS when running configure. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]> ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: Finding a header

2005-12-16 Thread Braden McDaniel
n.. how do I include a .m4 file in my > > configure.ac? > > > > thanks! > > Oh, I just found out that putting them in acinclude.m4 does it > automatically.. There is a better way. Put the files with the macros in them in a directory called, for instance, "m4". Then

Re: Install paths in config.h?

2005-12-16 Thread Braden McDaniel
Daniel Pekelharing wrote: How would I get autoconf to #define the install paths in my config.h ? My app needs a shared data directory like: /usr/share/myapp, how would I get that path? Thanks! I typically just do it on the command line rather than in config.h: AM_CPPFLAGS = -DYOUR_DATADIR=\

Re: Autoconf and CVS

2005-12-23 Thread Braden McDaniel
se automake, autoconf, > autoheader and aclocal. What's the correct order to run them in? > I've never quite figured it out. Run autoreconf and let it figure it out. :-) -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>

Re: AC_ARG_WITH?

2006-01-07 Thread Braden McDaniel
E. If the feature is enabled and the user does not have GMP installed, fail with a message like "You must have GMP to enable Feature X". Otherwise, if you provide some fallback to whatever GMP provides such that whether or not your compiled binaries use GMP is not obvious to us

Re: unit testing with autotools

2006-03-13 Thread Braden McDaniel
Chris Pickett wrote: Hi, I'd like to do unit testing for test-driven development of C programs. I'd also like to use up-to-date autotools. I was wondering if anyone had any experience with unit testing in their projects and had recommendations, or even if autoconf was considering it for the

Re: autoconf linking with shared object

2006-03-29 Thread Braden McDaniel
y get put into *_LDFLAGS as a unit. I do not think I have observed any bad effects from this to date. Is this advice really still relevant? Are all those packages that apply -l and -L together as a unit Doing It Wrong? -- Braden McDaniel <

Re: autoconf linking with shared object

2006-03-29 Thread Braden McDaniel
On Wed, 2006-03-29 at 10:41 +0200, Ralf Wildenhues wrote: > Hi Braden, > > * Braden McDaniel wrote on Wed, Mar 29, 2006 at 10:32:37AM CEST: > > On Wed, 2006-03-29 at 10:02 +0200, Ralf Wildenhues wrote: > > > > > You definitely want to put dependent libraries (thos

Re: AC_PATH_XTRA and -rpath

2006-07-17 Thread Braden McDaniel
hey probably do. Perhaps the libtool guys can chime in on > whether the patch was a good idea. (Not a libtool developer.) This looks suspiciously like the -rpath that's been hosing me when I try to link with a libGL outside the X11 directories (specifically, Mesa built in my home directo

Re: Using --enable-debug and defining a macro from it...?

2007-01-17 Thread Braden McDaniel
Matthew Woehlke wrote: (If this isn't the place for 'how do I...?' questions, please re-direct me, but I do see it isn't the -bugs list.) First off, I have a very skeleton configure.in (see below). How do I add The name "configure.ac" is preferred for autoconf >= 2.5x. '--enable-debug' to t

Re: autoconf detecting STL

2007-09-02 Thread Braden McDaniel
user can supply the requisite -I flags in the CPPFLAGS user variable. If either AC_CHECK_HEADERS or even AC_CXX_HAVE_STL succeeds, you have the -I flags you need. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> &

Re: Autoconf and Doxygen

2007-10-04 Thread Braden McDaniel
d tree ideas. As I understand things, the general recommendation is to generate things that will be included in the source package directly into the srcdir. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>

Repeating a test suite with a different executable

2007-10-14 Thread Braden McDaniel
idate this better? -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]> ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: Autoconf and Doxygen

2007-10-14 Thread Braden McDaniel
utoconf rather than > configure. Wildcards work in EXTRA_DIST. I've also used them successfully in my own install-data-local rule. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]> ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: Repeating a test suite with a different executable

2007-10-14 Thread Braden McDaniel
On Sun, 2007-10-14 at 21:03 -0600, Eric Blake wrote: > According to Braden McDaniel on 10/14/2007 8:33 PM: > > Is there something clever I could do to repeat a series of tests (in > > testsuite.at) with different executables? The tests consist of a series > > of input fi

Matching variable output with AT_CHECK

2007-10-20 Thread Braden McDaniel
the shell variable isn't expanded in the expected output, so the check always fails. How can I get this value into the expected output? -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>

Re: Matching variable output with AT_CHECK

2007-10-21 Thread Braden McDaniel
in the manual yet - it's > been there for some time, though). Aha, very useful. Thanks! I think a similar variant of AT_DATA would also be useful. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[E

Re: Autoconf and apt

2008-08-19 Thread Braden McDaniel
sometimes this level of resilience just isn't perceived as necessary. If you have a good deal of faith in a library not to make subtractive API changes, a version check is likely to be sufficient. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe

Re: Contents of for C++

2002-07-07 Thread Braden McDaniel
t;; I'm not convinced that's an adequate acid test of what autoconf should support. It sounds to me as if you (or the libraries you're using) are doing something foolish, and you deserve to get burned. Your identifiers should be in a namespace. -- Braden McDaniel

Re: Macro Archive Relaunch

2003-01-18 Thread Braden McDaniel
ew macros are likely to go to each of you in a haphazard fashion. I cannot imagine that to be a desirable situtation. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

Re: AC_CHECK_LIB on C++ library help?

2003-03-08 Thread Braden McDaniel
rg/doc/api-2.0 > Hopefully someone understands what I'm trying to do and can help. I believe you need to use AC_TRY_LINK for C++ libraries. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

autoconf and cl.exe

2003-03-17 Thread Braden McDaniel
resumably it ought to be written in sh). -- Braden McDaniel <[EMAIL PROTECTED]> Software Engineer, Object Sciences Corporation

Re: autoconf and cl.exe

2003-03-18 Thread Braden McDaniel
"Paul Eggert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Braden McDaniel" <[EMAIL PROTECTED]> writes: > > > The Coin <http://coin3d.org> folks have solved this by using a wrapper that > > translates the POSIX arguments

Re: autoconf and cl.exe

2003-03-19 Thread Braden McDaniel
"Earnie Boyd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Braden McDaniel wrote: > > > > If sh is not available, presumably there would be substantial difficulty in > > using autoconf/configure at all. > > > > In practice,

Re: autoconf and cl.exe

2003-03-19 Thread Braden McDaniel
"Earnie Boyd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Braden McDaniel wrote: > > > >>I know of no reason why you > >>shouldn't be able to use cl with it. Let's discuss on > >>[EMAIL PROTECTED] what your difficul

Re: changing the default "-g -O2"

2003-03-31 Thread Braden McDaniel
? None. configure CFLAGS="C compiler flags" CXXFLAGS="C++ compiler flags" -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

Re: changing the default "-g -O2"

2003-04-01 Thread Braden McDaniel
e ones they need (usually -D and -I, and anything that affects binary compatibility). I would suggest framing a solution in terms of pkgconfig. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

Re: How to autoconf...

2003-07-31 Thread Braden McDaniel
add this: view configure's ability to "fail fast" when things aren't going to work as a side effect of its role. Its role is to make different configurations work. If you can't make it do that, adding logic that does nothing other than fail fast is a waste of time. --

Re: Get rid of `-g' in CXXFLAGS

2003-08-01 Thread Braden McDaniel
`-g' flag in a way that doesn't *clobber* a user > supplied CXXFLAGS? You can't. > (However, I assume resetting CXXFLAGS entirely is not wise, isn't it?) That would blow away whatever the user had set CXXFLAGS to be. -- Braden McDaniel

Re: Get rid of `-g' in CXXFLAGS

2003-08-02 Thread Braden McDaniel
will also purge -g if it was added explicitly by the user. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

Re: Get rid of `-g' in CXXFLAGS

2003-08-02 Thread Braden McDaniel
On Fri, 2003-08-01 at 17:40, Frank A. Uepping wrote: > I want CXXFLAGS without the -g flag BY DEFAULT! > Because the normal user doesn't want a bloat bin with debug information. Normal users aren't going to care. And for users who do care, there is the "install-strip"

Re: checking for non-standard headers

2003-08-12 Thread Braden McDaniel
ou're using automake, you'll have something like this in your Makefile.am: AM_CFLAGS = @MODULES_CFLAGS@ ... since MODULES is what you called it when you invoked PKG_CHECK_MODULES. You can call it anything you like. See pkg-config's man page for more information. -- Braden McDaniel

Re: Conditional problem

2004-02-06 Thread Braden McDaniel
.org/software/ac-archive/htmldoc/ax_check_glut.html> -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

Re: C++ libraries

2004-03-22 Thread Braden McDaniel
't know > what to fill in the 'function' parameter to check. Nothing seems to > work. IIRC, AC_CHECK_LIB chokes on the C++ scope operator. Use AC_TRY_LINK instead. -- Braden McDaniel e-mail: <[EMAIL PROTECTED]> <http://endoframe.com>Jabber: <[EMAIL PROTECTED]>

Re: Do autotools support free Microsoft compiler?

2004-04-19 Thread Braden McDaniel
Bob Friesenhahn wrote: Microsoft has now made its optimizing C/C++ compilers for Windows available as a free download. See "http://msdn.microsoft.com/visualc/vctoolkit2003/";. Do GNU Autotools work with this compiler? autoconf, basically. autoconf's check for whether it can use -g is busted, bu

Propagate version to subpackage

2004-05-10 Thread Braden McDaniel
Is it possible to propagate the version (as given to AC_INIT in a top-level package) to a configure script in a subpackage? Braden

Re: Do autotools support free Microsoft compiler?

2004-04-29 Thread Braden McDaniel
Paul Eggert wrote: Braden McDaniel <[EMAIL PROTECTED]> writes: autoconf, basically. autoconf's check for whether it can use -g is busted, but the effect of this is just a benign warning from the compiler. (I have a patch for this that I submitted to autoconf-patches many months ago;

Re: Do autotools support free Microsoft compiler?

2004-04-29 Thread Braden McDaniel
Richard Dawe wrote: Hello. Braden McDaniel wrote: [snip] Unfortunately I haven't been able to test this yet. CVS autoconf now appears to want "help2man", which I have not yet succeeded in building/installing on Cygwin. (The attempt sent me on quite a wild goose chase, though:

Re: AC_ARG_WITH

2004-08-09 Thread Braden McDaniel
PFLAGS='-I/home/thiago/include' LDFLAGS='-L/home/thiago/lib' -- Braden McDaniel <[EMAIL PROTECTED]> ___ Autoconf mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/autoconf