Re: Why does mkdir_p use a relative path to install-sh?

2011-08-31 Thread Ralf Wildenhues
Hello Benoit, * tsuna wrote on Wed, Aug 31, 2011 at 11:47:06PM CEST: > my project includes a shell script where I need to portably create a > new directory. I added MKDIR_P="@MKDIR_P@" and I get config.status to > do the substitution by listing that script in my AC_CONFIG_FILES. > What I didn't e

Re: Nested Packages: dependencies between autoconfiscated packages

2011-07-17 Thread Ralf Wildenhues
Hello Vítor, * Vítor da Rosa wrote on Sun, Jul 10, 2011 at 03:45:17AM CEST: > Suppose that instead of having arm and hand packages, my project > application has body as main package and trunk, arm and leg as > subpackages (autoconfiscated packages), such as the following > directory hierarchy: >

Re: AC_SEARCH_LIBS with appropriate system headers

2011-07-17 Thread Ralf Wildenhues
Hello Zack, * Zack Weinberg wrote on Tue, Jul 12, 2011 at 01:23:46AM CEST: > The obvious way to detect that you're on MinGW and you need to stick > -lws2_32 on your link line for 'ntohl' is [...] > AC_LANG_CONFTEST([AC_LANG_PROGRAM( > [#ifdef _WIN32 > #include > #else > #incl

Re: AC_FC_MODULE_FLAG

2011-07-07 Thread Ralf Wildenhues
On Wed, Jul 06, 2011 at 03:59:13PM -0600, Jim Edwards wrote: > Okay, here is another method that seems to work, I need to make the > subdirectory read-only then > try to compile another module in the main directory. With the -M flag it > fails because it can't write > the .mod file in the confte

Re: AC_FC_MODULE_FLAG

2011-07-06 Thread Ralf Wildenhues
Hi Jim, thanks for the bug report! * Jim Edwards wrote on Wed, Jul 06, 2011 at 08:00:13PM CEST: > When using the lahey fortran compiler the flag -M is used as the path to > modules, but its also the path to where new modules should be written. > So if you are referencing modules in a read-only di

Re: System files and "make distcheck"

2011-06-27 Thread Ralf Wildenhues
* c...@netcom.co.uk wrote on Mon, Jun 27, 2011 at 01:08:29PM CEST: > It looks as if the standard GNU installation method would require > every user to run ./configure --sysconfdir=/etc, whereas most would > just try the usual ./configure && make. Given the choice between > a convenient installatio

Re: System files and "make distcheck"

2011-06-26 Thread Ralf Wildenhues
Hello, * c...@netcom.co.uk wrote on Sat, Jun 25, 2011 at 03:38:43PM CEST: > I'm building a package which on installation writes to a file used > to configure the GUI - this file is always in /etc, no matter where > the package is installed. What if I'm trying to bootstrap a new system, say, whose

Re: how do distribute automake free code?

2011-06-21 Thread Ralf Wildenhues
* Eric Blake wrote on Tue, Jun 21, 2011 at 01:26:18AM CEST: > On 06/20/2011 05:13 PM, Jim Edwards wrote: > > As for writing to the automake list instead of the > > autoconf list - wouldn't it make more sense to have a autotools list since > > they are all interrelated anyway? > > Perhaps merging

Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA

2011-06-21 Thread Ralf Wildenhues
* Paul Eggert wrote on Tue, Jun 21, 2011 at 12:19:25AM CEST: > Testing this is not something for the fainthearted, as it requires > access to all sorts of strange hosts. However, it does seem to > defeat GCC 4.6.0's tail-recursion optimization (-O0 through -O4) > on my platform, which is what is w

Re: xlf95 does not accept "-D" from autoconf

2011-06-21 Thread Ralf Wildenhues
* Christoffer Hirth wrote on Tue, Jun 21, 2011 at 09:25:43PM CEST: > If possible it would perhaps be cleaner to include AC_FC_PP_DEFINE > as a local macro (simply copy from commit), Yes, you can do that. > and then set: > "FCDEFS = $DEFS > AC_SUBST([$DEFS])" > > Would this work as a better solut

Re: xlf95 does not accept "-D" from autoconf

2011-06-21 Thread Ralf Wildenhues
* Christoffer Hirth wrote on Tue, Jun 21, 2011 at 03:00:12PM CEST: > > Jim Edwards wrote: > > >However on machines using IBM's fortran compiler (xlf90 or 95) > > >compilation fails due to unsupported defined variables "-DPACKAGENAME" > > >etc. > > >On ibm this should be passed as -W

Re: how do distribute automake free code?

2011-06-20 Thread Ralf Wildenhues
Hi Jim, * Jim Edwards wrote on Tue, Jun 21, 2011 at 04:57:39AM CEST: > Isn't there a way to tell automake, > perhaps through the Makefile.am, to remove or ignore these particular > dependencies? Please don't top-post, and please read up on maintainer mode: info Automake maintainer-mode. Cheers,

Re: fortran.m4 _AC_FC_LIBRARY_LDFLAGS

2011-06-09 Thread Ralf Wildenhues
Hi Jim, thanks for the report. On Wed, Jun 08, 2011 at 10:25:13AM -0600, Jim Edwards wrote: > I think that I've found a bug in this function, I am using pgf90 10.3-0 > and the -v flag is producing a line which includes a flag -list which is > then interpreted as a library and causes a failure la

Re: autotools on aix

2011-05-11 Thread Ralf Wildenhues
Hi Jim, * Jim Edwards wrote on Thu, May 12, 2011 at 01:51:26AM CEST: > I am trying to port a model to AIX. The model uses cc cxx and fc > compilers. > The problem is that the IBM xlf compilers do not recognize the -D > preprocessor flag and I am at my wits end trying to > get the tools to do the

Re: how to override precious variables for subdirs

2011-04-26 Thread Ralf Wildenhues
Hello Chris, * Chris Frey wrote on Mon, Apr 25, 2011 at 09:28:51PM CEST: > On Sat, Apr 23, 2011 at 12:13:13PM +0200, Ralf Wildenhues wrote: > > It is possible to amend or modify $ac_configure_args from within the > > toplevel configure (watch out with quoting, its contents are to

Re: how to override precious variables for subdirs

2011-04-23 Thread Ralf Wildenhues
Hello Chris, * Chris Frey wrote on Fri, Apr 22, 2011 at 10:53:29PM CEST: > I have a software package (Barry) that contains a number of subdirectories, > using the AC_CONFIG_SUBDIRS feature. > > These subdirectories depend on the library that is built in the main tree. Interesting. Most subpacka

Re: Autoconf versions: srcdir either relative/absolute

2011-04-20 Thread Ralf Wildenhues
Hello Justin, * Too, Justin A. wrote on Thu, Apr 21, 2011 at 12:51:54AM CEST: > I have the build trees for a few projects (don't know what version of > autotools they used), but I notice that srcdir varies. From my local > tests, it looks like newer versions of Autoconf set srcdir to be an > abso

Re: how to pass new path to aclocal when using autoreconf

2011-04-18 Thread Ralf Wildenhues
Hello Vincent, * Vincent Torri wrote on Mon, Apr 18, 2011 at 08:13:48AM CEST: > I want to install XCB on Windows. It requires libXau, which requires > xorg-macros. I install everything in /usr/x11 (prefix value) > > The autotools are in /usr/local > > libXau's configure.ac wants xorg-macros.m4

Re: ac 2.68 - AC_LANG_SOURCE

2011-04-02 Thread Ralf Wildenhues
Hi Jan, * Jan Engelhardt wrote on Sat, Apr 02, 2011 at 08:25:49PM CEST: > AC_LINK_IFELSE(AC_LANG_SOURCE([int main(void) { return 0; }])) > > Adding [ ] around AC_LANG_SOURCE would fix it, but I don't see this > extra quoting being normally required. It is required, your assumption is not right.

Re: autocache

2011-04-02 Thread Ralf Wildenhues
* Alfred M. Szmidt wrote on Fri, Apr 01, 2011 at 11:10:43PM CEST: >Then, how did you come up with the list of gnulib modules in >bootstrap.conf and the list of macros to call in configure.ac? >Ideally, they should not generated and not specified manually, that >will only lead to bit

Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-04-01 Thread Ralf Wildenhues
[ adding bug-gettext ] * David Bruce wrote on Thu, Mar 24, 2011 at 12:40:58PM CET: > On Wed, Jan 12, 2011 at 9:31 PM, David Bruce wrote: > > We have reorganized our package (tuxmath) into a smaller package for > > the game itself, plus a separate library package (t4k_common).  Both > > packages us

Re: Multiple subdirectories with non-similar configure needs

2011-04-01 Thread Ralf Wildenhues
* Harlan Stenn wrote on Fri, Apr 01, 2011 at 09:41:33AM CEST: > Ralf wrote: > > The trick is: you adjust the flags in subpkg/configure.gnu, then call > > subpkg/configure with them. The subpkg/configure.gnu file might > > actually belong to the toplevel package. A hack, but fairly easy. > > In t

Re: Multiple subdirectories with non-similar configure needs

2011-04-01 Thread Ralf Wildenhues
* Harlan Stenn wrote on Fri, Apr 01, 2011 at 09:04:09AM CEST: > > Not sure if this is a great idea or not, but the only other alternative > I can think of is to modify the configure.ac in the subpackage, and I > would rather not do that as it creates "extra work" when I go to upgrade > the subpack

Re: Multiple subdirectories with non-similar configure needs

2011-03-30 Thread Ralf Wildenhues
* Jim Galarowicz wrote on Tue, Mar 29, 2011 at 04:30:27PM CEST: > On 03/29/2011 01:35 AM, Ralf Wildenhues wrote: > >* Jim Galarowicz wrote on Mon, Mar 28, 2011 at 09:08:02PM CEST: > >>I was wondering if anyone can point me to any information on how to > >>configure

Re: autocache

2011-03-30 Thread Ralf Wildenhues
Hi Alfred, * Alfred M. Szmidt wrote on Sun, Mar 27, 2011 at 11:20:50PM CEST: > git clone fp.gnu.org:~ams/autocache.git Thank you. I suggest to not put config.cache in the source tree, which also fits the nodist_ description you used in Makefile.am. If you don't mind, I'll push the fix as belo

Re: arm gcc 4.1.3 -O2 dead code removal breaks configure test

2011-03-29 Thread Ralf Wildenhues
Hello Andrew, * Andrew W. Nosenko wrote on Wed, Mar 30, 2011 at 02:01:45AM CEST: > On Tue, Mar 29, 2011 at 20:18, Ralf Wildenhues wrote: > > > > In order to be absolutely sure that the compiler can't optimize away the > > reference, I'd say you need to modify

Re: arm gcc 4.1.3 -O2 dead code removal breaks configure test

2011-03-29 Thread Ralf Wildenhues
Hello Dave, * Dave Hart wrote on Tue, Mar 29, 2011 at 11:58:53AM CEST: > struct in6_addr in6; > in6 = in6addr_any; > > and the optimizer (quite rightly) noticed the value of in6 goes out of > scope without being referenced again and eliminated the assignment, > thereby

Re: Multiple subdirectories with non-similar configure needs

2011-03-28 Thread Ralf Wildenhues
Hello Jim, * Jim Galarowicz wrote on Mon, Mar 28, 2011 at 09:08:02PM CEST: > I was wondering if anyone can point me to any information on how to > configure from a top-level directory multiple sub-directories with > different configure requirements. Well, you can just write code yourself that cal

Re: auto* tools to package for shared library?

2011-03-20 Thread Ralf Wildenhues
Hello Paul, * Paul Elliott wrote on Sun, Mar 20, 2011 at 07:43:46PM CET: > I have the auto* tools setup to build a library. What I want is an rpm > source package and a debian source package. autoconfig.ac has the > dependancy information. Are there any automated tools to go from the > autotools s

Re: autoconf 2.68 errors

2011-03-18 Thread Ralf Wildenhues
Hi Naresh, * Naresh Kumar Panthangi wrote on Fri, Mar 18, 2011 at 07:37:16PM CET: > autoconf 2.68 is throwing below errors. Please find the errors list below: > > === > build_script : Running reautoconf script > Autoconf in './ilnclient' > confi

Re: Keep variable un-expanded in configure script

2011-03-12 Thread Ralf Wildenhues
Hello Andres, * Andres Perera wrote on Fri, Mar 11, 2011 at 10:42:04PM CET: > why are you defining a function inside of a macro? Can't speak for Justin of course, but recent Autoconf itself defines lots of functions inside macros. Or, let's say, it causes shell functions to be emitted "somewhere

Re: How do parallel builds scale?

2011-03-07 Thread Ralf Wildenhues
* Ludovic Courtès wrote on Mon, Mar 07, 2011 at 06:16:17PM CET: > Ralf Wildenhues writes: > > * Ludovic Courtès wrote on Fri, Mar 04, 2011 at 06:59:45PM CET: > >> Ralf Wildenhues writes: > >> > * Ludovic Courtès wrote on Thu, Mar 03, 2011 at 04:42:52PM CET: > >

Re: What is "ac_nonexistent.h"?

2011-03-07 Thread Ralf Wildenhues
Hello, and sorry for any name mangling, * Eric Blake wrote on Mon, Mar 07, 2011 at 03:44:59PM CET: > On 03/07/2011 04:42 AM, �� wrote: > > "error: ac_nonexistent.h, no such file or directory." > > ... > > "Compilation terminated." > > Fortunately that is the only error which appeared several t

Re: fort77(f2c wrapper) is not properly detected

2011-03-04 Thread Ralf Wildenhues
* Giulio Paci wrote on Tue, Dec 07, 2010 at 01:43:15AM CET: > Il 05/12/2010 22:19, Ralf Wildenhues ha scritto: > Output changes from: > > Fortran low level compiling/preprocessing macros. > > 303: GNU Fortran 77 FAILED (fortran.at:31)

Re: How do parallel builds scale?

2011-03-04 Thread Ralf Wildenhues
* Ludovic Courtès wrote on Fri, Mar 04, 2011 at 06:59:45PM CET: > Ralf Wildenhues writes: > > * Ludovic Courtès wrote on Thu, Mar 03, 2011 at 04:42:52PM CET: > >> I ran a series of build time measurements on a 32-core machine, with > >> make -jX, with X in [1..32], and t

Re: How do parallel builds scale?

2011-03-04 Thread Ralf Wildenhues
Hi Ludo, * Ludovic Courtès wrote on Thu, Mar 03, 2011 at 04:42:52PM CET: > I ran a series of build time measurements on a 32-core machine, with > make -jX, with X in [1..32], and the results are available at: > > http://hubble.gforge.inria.fr/parallel-builds.html Thank you! Would you be so ki

Re: Testsuite 147,148,149,150

2011-02-24 Thread Ralf Wildenhues
Hello Tadeus, * Tadeus (Eus) Prastowo wrote on Thu, Feb 24, 2011 at 07:45:15PM CET: > I cloned the development tree and checked out AUTOCONF-2.60. That's fairly old. 2.68 is the most recent stable version. > All tests are okay except four testsuites related to Fortran: 147-150. This issue was

Re: AC_OPENMP broken for IBM xl Fortran compilers

2011-02-19 Thread Ralf Wildenhues
Hi Christian, Markus, * Christian Rössel wrote on Fri, Feb 18, 2011 at 03:57:30PM CET: > AC_OPENMP returns "none needed" for the IBM xl Fortran compilers (xlf*, > bgxlf*, mpixlf*). This is wrong, you need to use -qsmp=omp. > > configure tries to compile following program: > > | program mai

Re: bug#8044: Automake should support autotest-based testsuites.

2011-02-15 Thread Ralf Wildenhues
Hello, * Eric Blake wrote on Tue, Feb 15, 2011 at 07:44:06PM CET: > > It sounds useful for some (probably not me, though), but I'd be wary > > of the big warning at the start of the autotest section: > > > >>> N.B.: This section describes a feature which is still > >>> stabilizing. Although we b

Re: Paralizing configure

2011-02-13 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Thu, Feb 10, 2011 at 09:09:15PM CET: > End of brain dump. Addendum: One of the prerequisites of threaded tests is getting intermingled output right. In fact, this is interesting even today, in packages like GCC where multiple configure scripts may run at the same t

debbugs, and a FAQ, for Autotools

2011-02-13 Thread Ralf Wildenhues
[ Cross post; Reply-To and Mail-Followup-To set. Please followup to the automake list only, to avoid excessive spammage. Thank you. ] Hello everyone, I've been advertising debbugs before, I think we should be a good example. So, two proposals: 1) Autoconf and Libtool should also use debbug

Re: Detect Cross Compiler

2011-02-13 Thread Ralf Wildenhues
Hello Justin, * Too, Justin A. wrote on Thu, Feb 10, 2011 at 06:56:08PM CET: > As a whole, my project is not being cross-compiled, but there is a > test that uses a user-specified compiler on some test code and then > runs the generated executable. The problem is that the user may > specify to cro

Re: AC_SUBST(CCLD)

2011-02-13 Thread Ralf Wildenhues
Hello Justin, * Too, Justin A. wrote on Wed, Feb 09, 2011 at 10:50:00PM CET: > Currently, I have CCLD set to $(CC). Using AC_SUBST, all Makefile's > will contain this variable. > > Config: > CC=gcc > CCLD="$(CC)" > AC_SUBST(CCLD) > > Generated Makefiles: > CCLD = gcc > > The problem, however, i

Re: Update GTK+ autotools configuration

2011-02-12 Thread Ralf Wildenhues
* Javier Jardón wrote on Fri, Feb 11, 2011 at 02:46:57AM CET: > 2011/2/7 Ralf Wildenhues : > > * Javier Jardón wrote on Sun, Feb 06, 2011 at 03:37:24AM CET: > >> $ autoupdate > >> /usr/bin/m4:/tmp/aukvr57a/input.m4:717: ERROR: end of file in string > >> auto

Re: AM_COND_IF with m4_foreach+m4_include

2011-02-10 Thread Ralf Wildenhues
Hello Dave, * Dave Goodell wrote on Thu, Feb 10, 2011 at 10:02:12PM CET: > I'm extremely confused about some behavior I recently encountered > while adding AM_CONDITIONAL and AM_COND_IF to my project. For some > reason m4/autoconf don't want to expand AM_COND_IF when I use it in a > particular fa

Re: What shells fail to work if comparing with "" ?

2011-02-10 Thread Ralf Wildenhues
Hello David, * Dr. David Kirkby wrote on Thu, Feb 10, 2011 at 07:56:24PM CET: > I know its considered bad practice to check for an empty string with > something like: > > if [ "$STR" = "" ] ; then > > but what shells do actually break with this, and under what conditions? It's not shells that

Re: Paralizing configure

2011-02-10 Thread Ralf Wildenhues
* Marian Marinov wrote on Wed, Feb 09, 2011 at 01:38:16AM CET: > On Tuesday 08 February 2011 22:51:20 Paul Eggert wrote: > > Oh yes, I quite agree, it would require a real change to > > the Autoconf implementation, and people who write tests > > would have to be disciplined about their dependencies

Re: Paralizing configure

2011-02-10 Thread Ralf Wildenhues
Hi Olaf, all, * Olaf Lenz wrote on Wed, Feb 09, 2011 at 03:54:31PM CET: > Frankly, I do not really understand the fuzz about configure running for > a few tens of seconds. After all, you usually have to do it only once if > you are a user. If you are a developer, you have to run it only whenever >

Re: Use pipe and sed in configure.ac

2011-02-10 Thread Ralf Wildenhues
Hello Lyre, * Lyre wrote on Thu, Feb 10, 2011 at 04:39:41AM CET: > php-config --configure-options | sed -n > 's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p' > > It works on shell, and outputs "/etc/php5/conf.d/" on opensuse. > > And I tired it in configure.ac, as following: > > PHPCDIR=`php-

autotools presentation (was: Paralizing configure)

2011-02-09 Thread Ralf Wildenhues
* Javier Jardón wrote on Wed, Feb 09, 2011 at 04:37:43PM CET: > On 8 February 2011 10:55, Marian Marinov wrote: > > Ralf's talk at FOSDEM > Is that talk available somewhere? I think the recording should eventually be up at or

Re: Paralizing configure

2011-02-08 Thread Ralf Wildenhues
* Paul Eggert wrote on Tue, Feb 08, 2011 at 09:39:21PM CET: > On 02/08/11 02:55, Marian Marinov wrote: > > > My idea is to split the tests that configure dose into different sections. > > And > > paralize the tests in each seaction. Then if one test returns false the > > whole > > section shou

Re: configure -C by default?

2011-02-08 Thread Ralf Wildenhues
Hello Vincent, * Vincent Torri wrote on Mon, Feb 07, 2011 at 07:37:57PM CET: > On Mon, 7 Feb 2011, Eric Blake wrote: > >On 02/06/2011 03:11 PM, Ralf Wildenhues wrote: > >>Apparently, a lot of users do not even know about configure -C aka. > >>--config-cache which of cou

hierarchical config.site from distros? (was: configure -C by default?)

2011-02-07 Thread Ralf Wildenhues
Even those Autoconf users who are aware of -C do not like the slowness of configure and the amount of tests that some projects use. Since we still lack some ideas for an efficient parallelization, we should maybe think about ways to speed up things for those users that build lots of packages, once

Re: Update GTK+ autotools configuration

2011-02-07 Thread Ralf Wildenhues
Hello Javier, * Javier Jardón wrote on Sun, Feb 06, 2011 at 03:37:24AM CET: > I'm trying to update the GTK+ autotools configuration [1] (comments > welcomed ;)). The patches posted there look sane to me, at a glance. The semantic change to use pkg-config is one the maintainers need to decide ove

configure -C by default?

2011-02-07 Thread Ralf Wildenhues
Apparently, a lot of users do not even know about configure -C aka. --config-cache which of course doesn't help Autoconf's reputation about producing configure scripts which are slow even for development. So one question would be what about making -C the default? We could have --force or --no-cach

Re: Passing flags to Makefile.ac's in subdirs

2011-02-03 Thread Ralf Wildenhues
Hello Dmitry, * dzinoviev wrote on Thu, Feb 03, 2011 at 05:51:11PM CET: > My bad. I meant 'Makefile.am'. But the rest of the question is correct: How > to propagate flags from the root configure.ac to the Makefile.am's in the > subdirectories? I think you are looking for: AC_SUBST([FOO], [bar])

Re: flags for different fortran compilers

2011-02-02 Thread Ralf Wildenhues
* Eve-Marie Devaliere wrote on Tue, Feb 01, 2011 at 10:43:00PM CET: > > Well, we've already clarified that you should drop -c. > yes , my bad, I just copied what they had in the rules.macros file > > For any gfortran-specific flag that there is no good macro for, you can > > start off by wrapping i

Re: produce *mod with fortran

2011-02-01 Thread Ralf Wildenhues
* Eve-Marie Devaliere wrote on Tue, Feb 01, 2011 at 09:37:04PM CET: > first of all even with my > AC_CONFIG_MACRO_DIR([m4]) in configure.ac (before macro calls) > and ACLOCAL_AMFLAGS= -I m4 in Makefile.am (top one) , I still need to run > aclocal with the '-I m4' else it doesn't recognize > AX_F9

Re: flags for different fortran compilers

2011-02-01 Thread Ralf Wildenhues
Hello, * Eve-Marie Devaliere wrote on Tue, Feb 01, 2011 at 09:39:14PM CET: > > > Which kinds of flags do you need support for? > lots... :( > For example, in their original make.macros they had > # Compiler settings for DEBUG builds > LINUX_COMMON_FLAGS_GFORTRAN_DEBUG = -pg > LINUX_FLAGS_GFORTRAN_

Re: flags for different fortran compilers

2011-01-31 Thread Ralf Wildenhues
Hello, * Eve-Marie Devaliere wrote on Mon, Jan 31, 2011 at 05:34:47PM CET: > I am trying to replicate the install of an existing package using autoconf. > We need the package to be able to compile with a wide variety of > compilers. In the original setup this was done by the make.macros file > tha

Re: AT_CHECK within for loop

2011-01-29 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Fri, Jan 28, 2011 at 08:37:26PM CET: > * Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:31:05PM CET: > > tmp.at:4: error: AT_CHECK: missing AT_SETUP detected > > Ah, I think it doesn't work to expand AT_CHECK inside a function. Wrong again:

Re: echo arbitrary text in autotest?

2011-01-29 Thread Ralf Wildenhues
* Daily, Jeff A wrote on Fri, Jan 28, 2011 at 08:17:53PM CET: > I want to dump some environment variables near the top of my tests > suite since these variables affect my tests. In my local.at file I > have: > AT_INIT > AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"]) > > But it doesn't make

Re: AT_CHECK within for loop

2011-01-28 Thread Ralf Wildenhues
* Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:31:05PM CET: > On Fri, 28 Jan 2011, Ralf Wildenhues wrote: > > * Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:06:38PM CET: > > > A way to get the best of both worlds might be to permit shell functions > > > contai

Re: AT_CHECK within for loop

2011-01-28 Thread Ralf Wildenhues
* Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:06:38PM CET: > A way to get the best of both worlds might be to permit shell functions > containing AT_CHECK to be defined outside of AT_SETUP. I believe that is > not possible with autotest now, and I have no idea if it's feasible to > implement

Re: make test with fortran programs

2011-01-27 Thread Ralf Wildenhues
Hello, * Eve-Marie Devaliere wrote on Thu, Jan 27, 2011 at 06:02:33PM CET: > TESTS = test/forward/Example1_Simple/Example1_Simple.f90 \ > test/k_matrix/Example1_Simple/Example1_Simple.f90 > check_PROGRAMS = $(TESTS) It goes like this with Automake 1.11 or newer: AM_DEFAULT_SOURCE_EXT = .

Re: make test

2011-01-26 Thread Ralf Wildenhues
Hello Eve-Marie, * Eve-Marie Devaliere wrote on Wed, Jan 26, 2011 at 05:39:35PM CET: > > http://www.gnu.org/software/automake/manual/automake.html#Tests > Yes, Frank pointed me to that and I was just having a look... Thanks, I > think this is what I am looking for. I am still trying to figure out

Re: linking to Fortran libraries from C fails with suncc and sunf90

2011-01-24 Thread Ralf Wildenhues
* Daily, Jeff A wrote on Thu, Jan 20, 2011 at 09:58:08PM CET: > Need help. I finally installed git with http support after installing > the latest curl. I'm getting the following: > > []$ git clone http://git.sv.gnu.org/r/autoconf.git > Cloning into autoconf... > fatal: protocol error: bad line

Re: Configure Fail

2011-01-23 Thread Ralf Wildenhues
Hello Aaliya, * aaliya zarrin wrote on Fri, Jan 21, 2011 at 10:44:16AM CET: > While compiling memcached I am getting the following error. > > "cannot run test program while cross compiling" > It is unable to set few cache variable values. such as endianness. > What is the solution, can anybody he

Re: linking to Fortran libraries from C fails with suncc and sunf90

2011-01-20 Thread Ralf Wildenhues
Hi Jeff, thanks for the bug report. * Daily, Jeff A wrote on Thu, Jan 20, 2011 at 07:46:06PM CET: > Our software is a mostly C, with some Fortran and a C++ binding. We > use AC_F77_LIBRARY_LDFLAGS. configure fails with "linking to Fortran > libraries from C fails" because " /usr/bin/ld: cannot

Re: Help with path expansion

2011-01-19 Thread Ralf Wildenhues
* Mike Gran wrote on Wed, Jan 19, 2011 at 06:26:24PM CET: > pkgsitedir="$datadir/$PACKAGE_NAME" > AC_MSG_WARN([] >[The modules will be installed in ${pkgsitedir}.]) > > When I run it, I get the text > > configure: WARNING: >The modules will be installed in ${datarootdi

Re: produce *mod with fortran

2011-01-14 Thread Ralf Wildenhues
* Eve-Marie Devaliere wrote on Fri, Jan 14, 2011 at 08:07:47PM CET: > well it is looking for b.out > --- > configure:1840: $? = 0 > configure:1854: checking for Fortran compiler default output file name > configure:1857: ifort -c -O2 -convert big_endian -free -assume > byterecl conftest.f >&

Re: produce *mod with fortran

2011-01-14 Thread Ralf Wildenhues
Hello Eve-Marie, addressing the remaining part of your question: * Eve-Marie Devaliere wrote on Fri, Jan 14, 2011 at 05:32:58PM CET: > I have created my makefiles and configure.ac... > I have read in the tutorial that FCFLAG had to be set to -g (unless it > is g77).. Well I need to create *.mod a

Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-01-14 Thread Ralf Wildenhues
* Steffen Dettmer wrote on Fri, Jan 14, 2011 at 09:05:21AM CET: > On Thu, Jan 13, 2011 at 8:18 PM, Ralf Wildenhues wrote: > > * David Bruce wrote on Thu, Jan 13, 2011 at 04:16:34PM CET: > >> >   DISTCLEANFILES = _configs.sed esio/esio-config.h > > distclean-local: d

Re: Macro for compile, run, and return output

2011-01-13 Thread Ralf Wildenhues
Hello Lyle, * Lyle Brooks wrote on Thu, Jan 13, 2011 at 05:51:27PM CET: > I have been attempting to copy and modify a macro for a > new library. I was looking at ax_lib_oracle_oci.m4 and > ax_lib_xerces.m4 as the basis for a start. > > What I'd like to do is obtain the library version info for

Re: ax_prefix_config_h.m4 causes files to be left after "make distclean"

2011-01-13 Thread Ralf Wildenhues
* David Bruce wrote on Thu, Jan 13, 2011 at 04:16:34PM CET: > >   DISTCLEANFILES = _configs.sed esio/esio-config.h > > Thanks - I had come up with another workaround, which was to manually > add the offending files to be removed in distclean-hdr: > > # If using AX_PREFIX_CONFIG_H, distclean leave

Re: Best practice for user decided unusual library paths ?

2011-01-10 Thread Ralf Wildenhues
Hi Johan, * Johan Persson wrote on Mon, Jan 10, 2011 at 10:05:46PM CET: > However after having reports that some user have the library in > not-so-common places (like /opt/local) i decided to add a "--with-package" > switch so the user can add the root-directory for this alternative place. > Howev

Re: How does one specify linking to 64 bit libraries when there is a choice?

2010-12-21 Thread Ralf Wildenhues
* Bruce Korb wrote on Mon, Dec 20, 2010 at 09:37:58PM CET: > On 12/20/10 11:20, Ralf Wildenhues wrote: > > One crucial part is that libtool gets confused whenever it has > > directories with the wrong ABI in the search path (unlike ld or ld.so, > > both are in some cases smart

Re: MPI recognition

2010-12-21 Thread Ralf Wildenhues
Hi Olaf, and sorry for the delay in replying, Eric, * Eric Blake wrote on Tue, Dec 21, 2010 at 04:57:04PM CET: > On 12/21/2010 07:16 AM, Olaf Lenz wrote: > > > After some trial and error I have found a solution for my problem that > > is very simple. Now I wonder whether this is actually the corr

Re: Lost commit

2010-12-18 Thread Ralf Wildenhues
Hello Andreas, * Andreas Schwab wrote on Sat, Dec 18, 2010 at 07:16:48PM CET: > When I updated my copy of the autoconf repository today I noticed that > one commit got lost (45b928b: autotest: fix file descriptor leak). Thanks for the notice. I restored that now, after checking the commit. It wa

Re: Fwd: [Bug 347095] installing m4 macros that break random packages

2010-12-07 Thread Ralf Wildenhues
* Eric Blake wrote on Tue, Dec 07, 2010 at 06:49:41PM CET: > On 12/07/2010 10:39 AM, Bruce Korb wrote: > > > 3. If not, where's the magic for suppressing the installation? > > I'm not sure where the magic for installing it was located in the first > place; can you track down why extensions.m4 was

Re: How to best prevent autoreconf from recursing into a subdir

2010-11-30 Thread Ralf Wildenhues
Hello Peter, * Peter Breitenlohner wrote on Mon, Nov 29, 2010 at 03:59:32PM CET: > >DIALOG_TREE=[dialog-]dialog_version > >AC_SUBST([DIALOG_TREE]) > > > ># Initialize the subdir machinery > >AC_CONFIG_SUBDIRS([]) > > > >if test "x$enable_build" != xno || test -f config.force; then > > # when buil

Re: autotest: problem testing daemons, with possible fix

2010-11-27 Thread Ralf Wildenhues
Hello, * Paul Eggert wrote on Thu, Nov 25, 2010 at 07:47:08PM CET: > [Following up on > , > and adding bug-autoconf] > --- a/lib/autotest/general.m4 > +++ b/lib/autotest/general.m4 > @@ -2190,7 +2190,7 @@ m4_define([_AT_CHECK], >

Re: How to test a particular X11 feature ?

2010-11-19 Thread Ralf Wildenhues
Hello Konstantin, * Konstantin Andreev wrote on Thu, Nov 18, 2010 at 11:17:08AM CET: > I am hesitant, whether X{wc,mb}LookupString work in every X11 (client) > library, if "input method" is turned off. > > I'd like to make a test for them, but testing requires live X-server > (to be able to conne

Re: Default host other than local system

2010-11-14 Thread Ralf Wildenhues
* Robert Woodworth wrote on Fri, Nov 12, 2010 at 07:56:53PM CET: > no, that does not work [...] > Try it with a simple two line 'configure.ac' > AC_INIT > host_alias=mips-elf > No, I don't want my site defaults to be cross-compiled by default. > Yes, this source code will only work on a very s

Re: Detecting an adequate id program

2010-11-14 Thread Ralf Wildenhues
* Michael Grünewald wrote on Sun, Nov 14, 2010 at 12:51:23PM CET: > Ralf Wildenhues wrote: > >The standard Autoconf way to write this would be to use AC_CHECK_PROG or > >AC_PATH_PROG rather than open-coding it; > > I found description for these macros in the info manual

Re: Detecting an adequate id program

2010-11-12 Thread Ralf Wildenhues
Hello Michael, * Michael Grünewald wrote on Fri, Nov 12, 2010 at 09:51:55PM CET: > AC_DEFUN([AC_PROG_ID], > [AC_CACHE_CHECK([for id that handles -g, -u and -n], ac_cv_path_ID, > [ac_cv_path_ID=no > for ac_cv_path_ID_v in id /usr/xpg4/bin/id 'command -p id'; do > if test "$ac_cv_path_ID" = "n

Re: Default host other than local system

2010-11-12 Thread Ralf Wildenhues
Hello Robert, * Robert Woodworth wrote on Fri, Nov 12, 2010 at 06:48:33PM CET: > http://lists.gnu.org/archive/html/autoconf/2010-01/msg00039.html > > I also want to use autoconf for an embedded system code base and I want to > force my configure script to set the cross compile environment correc

Re: best way to check for compiler _warnings_?

2010-11-02 Thread Ralf Wildenhues
* Miles Bader wrote on Wed, Nov 03, 2010 at 01:24:10AM CET: > Ralf Wildenhues writes: > >> if grep -e "$ONE_OPT" conftest.err >/dev/null; then > > > > -e is not portable to Solaris grep. Does MSVC print options at the > > beginning of the line?

Re: best way to check for compiler _warnings_?

2010-11-02 Thread Ralf Wildenhues
Hello Peter, Miles, * Miles Bader wrote on Tue, Nov 02, 2010 at 08:18:24AM CET: > On Tue, Nov 2, 2010 at 4:04 PM, Peter Rosin wrote: > > Den 2010-11-02 06:46 skrev Ralf Wildenhues: > >> Except then you may run into MSVC which prints its command-line options > >> (dunno

Re: best way to check for compiler _warnings_?

2010-11-01 Thread Ralf Wildenhues
* Miles Bader wrote on Tue, Nov 02, 2010 at 04:34:43AM CET: > Ralf Wildenhues writes: > > Then, dealing with such behavior is tricky in general. You can use > > AC_LANG_WERROR, but it has problems if the compiler is verbose by > > default. Libtool has a couple of macros

Re: Problem with LIBS generated by a macro

2010-11-01 Thread Ralf Wildenhues
* Sergio Belkin wrote on Sun, Oct 31, 2010 at 10:08:15PM CET: > 2010/10/31 Ralf Wildenhues: > > * Sergio Belkin wrote on Sat, Oct 30, 2010 at 11:55:17PM CEST: > >>  I've examined the configure script but it's a bit tricky, you may > >> read a snippet about the

Re: best way to check for compiler _warnings_?

2010-11-01 Thread Ralf Wildenhues
Hi Miles, * Miles Bader wrote on Mon, Nov 01, 2010 at 05:33:13AM CET: > I want to check whether the compiler is giving a warning (about an > unrecognized command-line option). > > Since the compilation still succeeds, AC_COMPILE_IFELSE doesn't do the > job... > > e.g.: > >$ g++ -o /dev/null

Re: Problem with LIBS generated by a macro

2010-10-31 Thread Ralf Wildenhues
Hello Sergio, * Sergio Belkin wrote on Sat, Oct 30, 2010 at 11:55:17PM CEST: > I've autoconfiscated a project that link against libresolv and > libtpthread, and optionally against ssl, mysqlclient and pq. I am > working on Fedora 13 (i686). > > I've found a macro AX_EXT_HAVE_LIB > (http://www.gnu

Re: Use resolution file, autoconf help needed

2010-10-26 Thread Ralf Wildenhues
. It still has an old hunk overriding AC_LANG_FUNC_LINK_TRY(C) in libiberty/aclocal.m4 (from at a time where it was an improvement over what Autoconf had). Just delete that hunk, run autoconf in libiberty, be done with it. Below is the full diff, feel free to squash in with your patch.

Re: Testing for GCC-like attributes and compiler switches

2010-10-16 Thread Ralf Wildenhues
Hello Václav, * Václav Haisman wrote on Fri, Oct 15, 2010 at 08:56:51PM CEST: > I am having difficulty testing for compiler features like > __declspec(dllimport) and switches like -Wall or -Werror. > > The problem has started like this. I wanted to test compiler for > __declspec(dllimport) (for W

Re: could not setup config headers machinery

2010-10-14 Thread Ralf Wildenhues
Hello David, * Dr. David Kirkby wrote on Tue, Oct 12, 2010 at 09:53:46PM CEST: > I'm trying to sort out why the latest version of the GNU Scientific Library > (GSL) > does not build properly on some AIX systems (the developers are aware of it). > > I need to check if 'fprnd_t' is defined in flo

Re: AC_INIT bug-address question

2010-10-13 Thread Ralf Wildenhues
* Eric Blake wrote on Wed, Oct 13, 2010 at 05:02:18PM CEST: > This bit of NEWS from 2.68 is probably relevant then: > > ** AC_INIT again allows URLs with '?' for its BUG-REPORT argument. >Regression introduced in 2.66. > > It doesn't mention '<' or '>', but those are also characters that > fa

Re: Macro to obtain kind parameter value in F90?

2010-10-12 Thread Ralf Wildenhues
Hi Rhys, * Rhys Ulerich wrote on Tue, Oct 12, 2010 at 05:11:24PM CEST: > Can anyone recommend a macro for obtaining a kind parameter value in > Fortran 90? Or a macro where I might look for how to roll my own? Have you looked at the Autoconf Macro Archive? They have a couple of Fortran-related

Re: ac_configure_args

2010-10-12 Thread Ralf Wildenhues
Hi Sam, * Sam Steingold wrote on Tue, Oct 12, 2010 at 07:04:20PM CEST: > On Tue, Oct 12, 2010 at 1:29 AM, Ralf Wildenhues wrote: > > * Sam Steingold wrote on Tue, Oct 12, 2010 at 12:20:22AM CEST: > >> Ralf Wildenhues wrote: > >>     CFLAGS* ) continue ;; > > &

Re: ac_configure_args

2010-10-11 Thread Ralf Wildenhues
Hello Sam, * Sam Steingold wrote on Tue, Oct 12, 2010 at 12:20:22AM CEST: > Ralf Wildenhues wrote: > >$srcdir/subdir/configure @module_configure_flags@ > > what is the right way to quote it? Exactly the way I wrote above. If you don't want to execute a script with the

  1   2   3   4   5   6   7   8   9   10   >