Re: Problem with AC_LINK_IFELSE and library order

2005-10-21 Thread Francesco Montorsi
another thing: I cannot use AC_CHECK_LIB because the library I'm trying to test doesn't have a global function; I tried using a C++ instance built on the fly: AC_CHECK_LIB([mylib], [wxHTTPBuilder().GetBytesRead]) but this doesn't work since the generated program looks like: | /* confdefs.h. *

Problem with AC_LINK_IFELSE and library order

2005-10-21 Thread Francesco Montorsi
Hi, I have found that my check AC_LINK_IFELSE([ AC_LANG_PROGRAM([#include ], [wxURL u(wxT("http://www.google.it";));]) ], [WXURL_PRESENCE=1], [WXURL_PRESENCE=0]) *always* fails because the

Re: using VPATH in depend2.am?

2005-10-21 Thread Harald Dunkel
Stepan Kasal wrote: > > Your proposal looks good, except I think it might be better to use single > quotes around $(VPATH). > And the quoting around $d, which I introduced, is redundant. > > That yields: > > `IFS=:; x=':$(VPATH)'; \ > for d in $$x; do \ > test -n $$d &&

adding complex support

2005-10-21 Thread Adams Samuel D Contr AFRL/HEDR
I am writing a C program that includes . I am wondering if there is anything that I need to add to my project to get proper complex number support like a line in configure.ac, or a ld flag in my Makefile.am? Sam Adams General Dynamics - Network Systems

Re: using VPATH in depend2.am?

2005-10-21 Thread Stepan Kasal
Hello, On Fri, Oct 21, 2005 at 09:49:58AM +0200, Harald Dunkel wrote: > Something like > > IFS=:; for d in a:b; do echo $d; done > > works for Sun's /bin/sh, but not for Bash 2.05b (even if you > use --posix). The Bash folks say that this has been done to > fix a security hole. I've just

Re: using VPATH in depend2.am?

2005-10-21 Thread Harald Dunkel
Hi Stepan, Stepan Kasal wrote: > > So I suppose something like this > > `IFS=:; for d in '' '$(srcdir)' $(VPATH); do \ > test -n "$$d" && d=$$d/; \ > test -f "$$d"%SOURCE% && echo "$$d" && break; \ >done`%SOURCE% > > Could you test whether this works fo