Re: Fortran wrappers

2017-05-19 Thread Rhys Ulerich
> Would it somehow be possible via an extra argument or otherwise to add the ability to instruct those macros to use the C++ compiler instead? A hack: Look for C++ first then CC=$CXX? - Rhys ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.o

Re: Generating version numbers from files not tags, in mixed svn / git-svn environments

2014-06-19 Thread Rhys Ulerich
> YMMV. My mileage has been great thus far in a mixed git/svn environment. Thank you for the useful tool. - Rhys ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: configure speedup proposal: add --assume-c99 and --assume-posix2008 flags

2014-06-07 Thread Rhys Ulerich
> My use case in Buildroot is very different: we build potentially > several dozens of different software components, each time with a > different toolchain/environment. So we're almost never rebuilding with > the exact same configuration, and therefore using a cache doesn't > really work for our u

Re: configure speedup proposal: add --assume-c99 and --assume-posix2008 flags

2014-06-06 Thread Rhys Ulerich
On Fri, Jun 6, 2014 at 9:48 AM, Paul Eggert wrote: > veerrry common for 'configure' to be an unreasonably large part of the build > process But is an unreasonably large part of a reasonably long build process? You quote a from-scratch build with configure being an order of magnitude slower than p

Re: configure speedup proposal: add --assume-c99 and --assume-posix2008 flags

2014-06-06 Thread Rhys Ulerich
> Wouldn't it be time to > think about moving autoconf to a more parallel logic, where N tests > could run in parallel in sub-processes? I only find the configure process to be frustratingly slow when run against compilers with license keys or with checks accessing network storage. Running those

Re: Generating version numbers from files not tags, in mixed svn / git-svn environments

2014-03-19 Thread Rhys Ulerich
Hi Raphael, (Resurrecting: https://lists.gnu.org/archive/html/autoconf/2009-12/msg00056.html) > I would like to submit the attached script to your collective attention. This > is a helper script to automate handling project version numbers in a mixed > autoconf / svn / git-svn environment. Th

Re: Getting AC_CONFIG_SUBDIRS output before AC_OUTPUT

2014-01-10 Thread Rhys Ulerich
> Is there some way to tell AC_OUTPUT that _AC_OUTPUT_SUBDIRS has > already been run? Possibly by redefining it to be empty? I am trying trickery like just setting 'no_recursion=yes' just before AC_OUTPUT to suppress the recursion along with some checks to make sure that subdirs hasn't changed in

Getting AC_CONFIG_SUBDIRS output before AC_OUTPUT

2014-01-10 Thread Rhys Ulerich
Hi all, I've got an autoconfiscated project and two subprojects where I'd like to use AC_CONFIG_SUBDIRS. The subprojects configure scripts perform some nontrivial checks, and dump their results into pkg-config files sub1.pc and sub2.pc. The usual, wait-until-AC_OUTPUT-to-invoke-subconfigure beha

Re: passing flags to make check targets

2013-11-29 Thread Rhys Ulerich
> My TESTS= targets can accept flags and data and I would like to pass things > like files "-f test.dat" to them, > > How do I do that? I am unsure if it is the party line answer, but I've generally written a script invoking the binary and added that script to TESTS and dist_check_SCRIPTS. For e

Re: 'make check' dumping test-suite.log on failure?

2013-11-07 Thread Rhys Ulerich
> Is 'make check VERBOSE=1' what you're after? That is exactly it. Sorry to have missed this in the manual. Thank you Peter. - Rhys ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

'make check' dumping test-suite.log on failure?

2013-11-07 Thread Rhys Ulerich
Is there some variant of 'make check' that, for the parallel test harness, will dump the contents of the relevant test-suite.log on failure? I ask because, depending on the project build particulars (non-recursive, deeply recursive, etc), running 'make check || cat test-suite.log' isn't a one-size

Re: AC_*/AM_* macros for options

2013-10-29 Thread Rhys Ulerich
> I think there would need to be a higher-level "abstract" > know (low, medium, high), and then a way to add specific > compiler-specific options for specific circumstances. > > Something like: > AC_PROG_CC_WARNINGS_ADD([clang], > [-Wtautological-constant-out-of-range-compare -Wpointer-sign > -Wf

Re: AC_CHECK_HEADER question

2013-03-17 Thread Rhys Ulerich
> How can I achieve this with autoconf? I mean: I know how to write a test like > > AC_CHECK_HEADER(superlu/slu_util.h, foo, bar), > > but how do I obtain (in 'foo') the path relative to which the file superlu/slu_util.h > was found? Use the optional third and forth arguments. Run the macro severa

Re: testing for fortran 90 modules

2012-06-17 Thread Rhys Ulerich
> One of the simplest extensions is an intrinsic module called iso_fortran_env > which can be included in a fortran program with the use statement. > The test code would look like this, > > program test > use iso_fortran_env > write(*,*) 'hello' > end program As a nit, I'd use "use, intrinsic :: i

Re: autoconf-2.68b released [beta]

2012-03-02 Thread Rhys Ulerich
>> On 03/02/2012 05:45 AM, Eric Blake wrote: >>> The Autoconf team is considering releasing only .xz files for 2.69; >>> if this would be a hardship for you, and you need the .gz or .bz2 >>> release, please speak up now. Would only having xz introduce a chicken-and-egg bootstrapping problem? I no

Re: acx_mpi and ac_lang_push

2011-08-01 Thread Rhys Ulerich
> I have a configure script that uses acx_mpi from the macro archive.   It > then wants to test some features of the MPI implementation such are whether > mpi-io is supported, and I am trying to improve these tests to add them to > the archive.   So ACX_MPI sets MPICC or MPIFC or MPIF77  and MPILIB

Re: How to enable/disable my debug code?

2011-07-27 Thread Rhys Ulerich
>> With a same set of autoconf/automake files, how to I distribute my >> program that allows user to build it with or without debug code >> enabled? > Of course you can write (or find and copy) some Autoconf M4 code to > do some or all of the above automatically depending on the presence > of conf

Re: checking for header/library mismatch, rpath problem?

2011-06-30 Thread Rhys Ulerich
Hi all, Resurrecting an old thread regarding using libtool for configure-time testing. The motivation was to use libtool to work around -R-like options which break compilation on certain platforms when not properly protected. In particular, my response draws from these two messages... http:/

Re: Request for inclusion [was: Re: Autoconf MPI macros]

2011-06-15 Thread Rhys Ulerich
(Unsure to which list this thread response should be sent due to an earlier missing cross-post...) On 06/15/2011 12:20 PM, Peter Simons wrote: >> Now, I wonder what to do about AX_MPI. It seems to me like your >> macros make that older version obsolete. Do you think we should >> deprecate AX_MPI a

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

2011-01-12 Thread Rhys Ulerich
Hi David, On Wed, Jan 12, 2011 at 3:31 PM, David Bruce wrote: > make[1]: Leaving directory `/usr/local/src/git/t4kcommon/build' > rm -f config.status config.cache config.log configure.lineno > config.status.lineno > rm -f Makefile > ERROR: files left in build directory after distclean: > ./t4k_co

Re: Macro to obtain kind parameter value in F90?

2010-10-15 Thread Rhys Ulerich
Hi Ralf, >> Can anyone recommend a macro for obtaining a kind parameter value in >> Fortran 90? > Have you looked at the Autoconf Macro Archive? Nothing there jumped out as a good starting point. >> The check would be like AC_SIZEOF, but instead of returning the size >> it would return the kind

Macro to obtain kind parameter value in F90?

2010-10-12 Thread Rhys Ulerich
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? The check would be like AC_SIZEOF, but instead of returning the size it would return the kind parameter value (an integer). AC_COMPUTE_INT would be perfect, but

Re: C++, assert and NDEBUG

2010-03-27 Thread Rhys Ulerich
> I have started using autotools for the C++ applications I create (very > much as an amateur). I typically use assert statements during > development, and would disable these by using -DNDEBUG when the release > version is built. How should I configure things so that when a user > installs from th

Re: how to test HAVE_MALLOC

2010-02-05 Thread Rhys Ulerich
>> Your use of the term "::malloc" makes it sound like this test is >> somehow related to C++ rather than C. > So, deeply in boost (which I considered serious work up to now) > some call to malloc() is made. Any chance this is merely a #include vs #include issue? - Rhys _

Re: [autoconf] Re: pkg-config wisdom

2009-10-22 Thread Rhys Ulerich
> The most popular scenario I think is: the pkg-config > itself is bundled to the system (/usr/bin/pkg-config etc) > but the users install their own libraries to non-system > directory (e.g. /usr/local/xxx), and the users slipped > to set PKG_CONFIG_PATH manually. Definitely very useful, especiall

Portable way to achieve 'ls -v' ?

2009-09-26 Thread Rhys Ulerich
Hi all, Any suggestions for how to achieve sort-by-version in a portable way? 'ls -v' does exactly what I need, but doesn't look to be a standard argument. - Rhys ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autocon

Re: Finding "config.h" in VPATH builds

2009-09-19 Thread Rhys Ulerich
> If I run configure from within trunk, make works successfully, but if > I do a VPATH build I get errors because config.h is not located. If I > change ' #include "config.h" ' to ' #include ../config.h" ', it works > as either a VPATH build or an in-tree build. I'm not sure this is the > right

Re: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET

2009-07-04 Thread Rhys Ulerich
Hi Ralf, >> The easy way to eliminate the warning is to include >> AC_CANONICAL_TARGET early on in my configure.ac. > Why do you think it would be a problem for users of your macro to follow > the above advice? The solution does work . I had some confusion about getting AC_CANONICAL_TARGET earl

AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET

2009-07-02 Thread Rhys Ulerich
Hi all, I've got a macro that needs $target_cpu which is available from AC_CANONICAL_TARGET. Within my macro I use AC_REQUIRE([AC_CANONICAL_TARGET]) which triggers the following warning: configure.ac:47: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET ../../lib/autoconf/general.m4:

Re: include paths and doxygen

2009-03-23 Thread Rhys Ulerich
Hi Philip, There's a Doxygen macro up at the Autoconf Macro Archive: http://autoconf-archive.cryp.to/ax_prog_doxygen.html Might take some setup to get going, but it looks like it some sample rules that you could include within your Makefile.am's. - Rhys On Mon, Mar 23, 2009 at 6:34 AM, Philip H

Re: Intel C++ compiler test

2009-02-20 Thread Rhys Ulerich
This may do what you need: http://autoconf-archive.cryp.to/ax_compiler_vendor.html - Rhys On Fri, Feb 20, 2009 at 4:43 PM, aaragon wrote: > > Hi everyone, > > I was wondering if there is an easy way to test if using the C++ intel > compiler (icpc). I've been trying to see the values of variable

Re: directory layout questions

2008-08-19 Thread Rhys Ulerich
Hi Umut, Sounds like you're looking for either a VPATH Build ( http://www.gnu.org/software/libtool/manual/automake/VPATH-Builds.html) or else to change the installed binary locations using ./configure --prefix=DIR and friends. Both should work out of the box. - Rhys On Tue, Aug 19, 2008 at 11:5

Re: AC_CHECK_HEADER won't use updates to CFLAGS/CPPFLAGS

2008-08-14 Thread Rhys Ulerich
Final comment: The recreate behaves as I expect if I modify gl_ABSOLUTE_HEADER to use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE. My stupidity for not seeing the _ONCE variant buried in there. Sorry. - Rhys On Thu, Aug 14, 2008 at 11:34 AM, Rhys Ulerich <[EMAIL PROTECTED]>wrote:

Re: AC_CHECK_HEADER won't use updates to CFLAGS/CPPFLAGS

2008-08-14 Thread Rhys Ulerich
p the function's code into the main configure.ac file. I'll modify my use of gl_ABSOLUTE_HEADER to get past this one. I'll also email [EMAIL PROTECTED] to report it. A note in the gl_ABSOLUTE_HEADER macro source might save someone else some time. Thanks, Rhys On Thu, Aug

AC_CHECK_HEADER won't use updates to CFLAGS/CPPFLAGS

2008-08-13 Thread Rhys Ulerich
Me again, How many chickens must I sacrifice for AC_CHECK_HEADER to notice that I've modified CFLAGS/CPPFLAGS within my configure script? Within an m4 macro and using autoconf version 2.62: # Code to save LDFLAGS/CPPFLAGS/etc. > LDFLAGS="-L${trilinos_libdir} $LDFLAGS" > CPPFLAGS=

Re: playing w/ GCC warnings

2008-08-13 Thread Rhys Ulerich
Some variation on the AC_COMPILE_WARNINGS macro at the cryp.to archive may be what you want (http://autoconf-archive.cryp.to/ac_compile_warnings.html). There are several other warnings-related macros there. - Rhys On Wed, Aug 13, 2008 at 7:07 AM, Thien-Thi Nguyen <[EMAIL PROTECTED]> wrote: > Wha

Re: Finding path to a header file

2008-08-12 Thread Rhys Ulerich
Ralf, You rock. - Rhys On Tue, Aug 12, 2008 at 4:06 PM, Ralf Wildenhues <[EMAIL PROTECTED]>wrote: > Hi Rhys, > > * Rhys Ulerich wrote on Tue, Aug 12, 2008 at 10:57:34PM CEST: > > > > In my configure.ac script, I know a header works from an AC_CHECK_HEADER > &g

Finding path to a header file

2008-08-12 Thread Rhys Ulerich
Hi all, In my configure.ac script, I know a header works from an AC_CHECK_HEADER invocation. I want to get its absolute pathname. Anyone know of a way to get at a header path similar to the way AC_PATH_PROG works? Thanks, Rhys ___ Autoconf mailing list

Re: Getting at path to AC_CONFIG_AUX_DIR

2008-08-11 Thread Rhys Ulerich
Thanks for the response Eric, and for catching the quoting error in my example. | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) > > This is an undocumented macro. I'm not sure what you are trying to > accomplish by using it here. > > ... > > What's wrong with doing this in configure.ac: > > AC_CONFIG_

Getting at path to AC_CONFIG_AUX_DIR

2008-08-07 Thread Rhys Ulerich
'afternoon, I'm putting together a (hopefully reusable) macro the requires a script in my AC_CONFIG_AUX_DIR directory: AC_DEFUN(AC_FOOBARBAZ,[ #... AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) AC_REQUIRE_AUX_FILE([tex-it]) AC_SUBST(ac_aux_dir) # Output a script that will later invoke $(ac_aux_dir)/tex