Re: passing command-line switches to compiler

2000-02-28 Thread Lars J. Aas
On Mon, Feb 28, 2000 at 06:42:51PM +0100, Akim Demaille wrote: : | | changequote(, )dnl : | | *-*-osf[45]*) : | | changequote([, ])dnl : | : | Akim Kill the changequotes and use : | Akim*-*-osf[[45]]*) : | : | I usually recommend *against* this, on the grounds that it is too : |

Re: passing command-line switches to compiler

2000-03-01 Thread Lars J. Aas
On Mon, Feb 28, 2000 at 09:44:56PM +0100, Lars J. Aas wrote: : I agree with the example above, but I don't know how to get rid of my : changequotes unless there are any alternate methods to make strings with : m4-invocations inside a couple of []s? What I'm thinking of specifically : in my case

Re: passing command-line switches to compiler

2000-03-01 Thread Lars J. Aas
I also found another use for the m4_noquote macro: define([TAB], [ ]) define([LF], [ ]) patsubst([$1],m4_noquote([[LF TAB]+]),[ ]) is a lot more readable than patsubst([$1],m4_noquote([[ ]+]),[ ]) Cheers, Lars J

Re: passing command-line switches to compiler

2000-03-01 Thread Lars J. Aas
On Wed, Mar 01, 2000 at 04:02:40PM +0100, Lars J. Aas wrote: : patsubst([$1],m4_noquote([[LF TAB]+]),[ ]) : : is a lot more readable than : : patsubst([$1],m4_noquote([[ : ]+]),[ ]) ...by which I of course ment... patsubst([$1],[[ ]+]),[ ]) Come to think of it, I might

Re: passing command-line switches to compiler

2000-03-01 Thread Lars J. Aas
On Wed, Mar 01, 2000 at 07:41:58PM +0100, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : Lars Even : : Lars define([m4_noquote], : Lars [changequote(-=[{(,)}]=-)$1-=[{()}]=-changequote([,])]) : : Lars would do the trick ;) : : I would say it wouldn't, sinc

Re: passing command-line switches to compiler

2000-03-02 Thread Lars J. Aas
On Wed, Mar 01, 2000 at 07:52:31PM +0100, Lars J. Aas wrote: : : Lars define([m4_noquote], : : Lars [changequote(-=[{(,)}]=-)$1-=[{()}]=-changequote([,])]) : : : : I would say it wouldn't, since you have embedded [] in there, which : : are the current quotes, there will be just one big arg

Re: Autoconf --trace

2000-03-08 Thread Lars J. Aas
On Wed, Mar 08, 2000 at 11:09:07AM +0100, Akim Demaille wrote: : | eval set $list : | for elt in "$@"; do : | echo $elt : | done : | : | So there. Now you won't get any more suggestions from me :) : : I agree, this is perfect. Actually, I was informed by John W. Eaton through private email

Re: Autoconf --trace

2000-03-08 Thread Lars J. Aas
On Wed, Mar 08, 2000 at 11:31:27AM +0100, Akim Demaille wrote: : Lars I think the dummy-approach is safest. I didn't look into which : Lars context this was to be used in, but I'd probably name it : Lars _ac_dummy or something like that... : : `dummy' is just a string here, there is no

divert resource management?

2000-03-03 Thread Lars J. Aas
I want to use diverts in some macros, and wonder if there is any divert management system for reserving/freeing divert numbers in autoconf (couldn't find any with a quick grep at least). The point is, if other macros are using diverts too, I don't want my diverts to clash with those diverts and

Re: divert resource management?

2000-03-03 Thread Lars J. Aas
On Fri, Mar 03, 2000 at 04:26:45PM +0100, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : : Lars In my book, this would be : : Lars m4_diversion_reserve([AC_DIVERSION_KILL], -1) ... : : Currently diversion are so little used that it'd be an overkill. : :

Re: divert resource management?

2000-03-03 Thread Lars J. Aas
On Fri, Mar 03, 2000 at 05:21:35PM +0100, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : Lars I'm just thinking of Autoconf - that's where my own macros have : Lars to cooperate with macros I don't know anything about. Overkill : Lars or not, such a resource

macro invocation count

2000-03-06 Thread Lars J. Aas
ITERATION argument dnl starts with the value 1 and counts upwards on each SIM_AC_ITERATOR dnl invocation. The variable named in the ITERATIONS argument contains dnl the total number SIM_AC_ITERATOR invocations (with those arguments) dnl in the configure script. dnl dnl Credits: dnl Lars J.

Re: macro invocation count

2000-03-06 Thread Lars J. Aas
On Mon, Mar 06, 2000 at 02:46:27PM +0100, Akim Demaille wrote: : | AC_DEFUN([SIM_AC_ITERATOR], : | [AC_DIVERT_PUSH([AC_DIVERSION_INIT])dnl : : You should avoid playing with Autoconf's diversions. They are : internals only, and there is no guarantee they won't change. That's why I feared it

Re: macro invocation count

2000-03-06 Thread Lars J. Aas
On Mon, Mar 06, 2000 at 03:24:55PM +0100, Lars J. Aas wrote: : If the $1 test fails, the update procedure in $2 is displayed, with : some explanation text about what the problem is and that you can use : --with-auto-update if you feel brave. If there are several of these : updates that fail, I

adding commands to config.status

2000-03-09 Thread Lars J. Aas
I'd like to add a few commands to config.status to be executed before configu.status creates any files (to run mkdir to facilitate some multi- level SUBDIRS directories). There's a diversion that would let me do this, but since diversions are hidden from users, are there any other ways to do it?

Re: Autoconf, Emacs and C-x 4 a

2000-03-10 Thread Lars J. Aas
On Fri, Mar 10, 2000 at 01:23:09PM +0100, Akim Demaille wrote: : This might be useful for some: better support of Autoconf in C-x 4 a: Do you have something for us vi-enthusiasts too? ;) Lars J

Re: Assigns/disclaims

2000-03-23 Thread Lars J. Aas
On Thu, Mar 23, 2000 at 05:46:23PM +0100, Akim Demaille wrote: : : | Here is a recent copyright assignment that was just entered into : | copyright.list. : | : | Who is the autoconf maintainer(s) anyways? Should it just be listed : | as "[EMAIL PROTECTED]"? The line in our maintainers file is

Re: Absolute srcdir

2000-03-28 Thread Lars J. Aas
BTW, is anyone cataloguing these kinds of bourne shell bugs/anomalies somewhere? Seems like something like that would be a *very* useful resource for portable shell script programmers... Lars J

Re: fnmatch fails with [...\\\\]

2000-03-28 Thread Lars J. Aas
Bash triggers on this: case "/foo" in [/\]* ) echo 1;; esac How are zsh and friends dealing with that? Lars J

Re: fnmatch fails with [...\\\\]

2000-03-28 Thread Lars J. Aas
On Tue, Mar 28, 2000 at 02:57:06PM +0200, Lars J. Aas wrote: : Bash triggers on this: : : case "/foo" in : [/\]* ) echo 1;; : esac It doesn't trigger on \foo though, so it's must be just a side-effect of the bug in some way. Lars J

Re: catching build problems

2000-03-31 Thread Lars J. Aas
I never got any response on this one, so I'm trying [EMAIL PROTECTED] too this time. Does anyone know if setting up a trap on make like described below will fail on some platform? Lars J On Fri, Mar 17, 2000 at 01:30:49PM +0100, Lars J. Aas wrote: : I just set up the following line

Re: config.status usage

2000-03-31 Thread Lars J. Aas
On Fri, Mar 31, 2000 at 05:44:26PM +0200, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : Lars This will produce out.tmp in $(builddir), but expect out.tmp to : Lars be in $(srcdir) for the second pass, wouldn't it? Any hints on : Lars what the best

Automake feature request (Was: catching build problems)

2000-03-31 Thread Lars J. Aas
On Fri, Mar 31, 2000 at 01:33:12PM -0300, Alexandre Oliva wrote: : On Mar 31, 2000, "Lars J. Aas" [EMAIL PROTECTED] wrote: : How do I override the rule for entering one of them? : : I don't think you can override it :-( Looks like I have to push for such a feature to be integrated/i

Re: catching build problems

2000-03-31 Thread Lars J. Aas
On Fri, Mar 31, 2000 at 01:19:54PM -0300, Alexandre Oliva wrote: : On Mar 31, 2000, "Lars J. Aas" [EMAIL PROTECTED] wrote: : : : The trap is fine, but the `:=' syntax is far from portable. : : Without it, wouldn't the variable become recursive? : : Yep. That's why you can't

Re: automake --build-dir

2000-04-03 Thread Lars J. Aas
On Mon, Apr 03, 2000 at 06:57:33AM -0700, Earnie Boyd wrote: : --- Bruce Korb [EMAIL PROTECTED] wrote: : I made an archive file named "configure" that contains : a shar archive of the generated files. It runs, recreating : the generated files, deletes itself and then runs autoconf. :

Re: automake --build-dir

2000-04-03 Thread Lars J. Aas
On Mon, Apr 03, 2000 at 07:46:08AM -0700, Earnie Boyd wrote: : --- "Lars J. Aas" [EMAIL PROTECTED] wrote: : How about mv'ing itself out of the way (to configure.bak or something : similar)? : : Can't do that either. A mv is a cp rm. I thought it was a link() and an unlink(),

Re: automake --build-dir

2000-04-03 Thread Lars J. Aas
On Mon, Apr 03, 2000 at 08:17:02AM -0700, Bruce Korb wrote: : Earnie Boyd wrote: : How about mv'ing itself out of the way (to configure.bak or something : similar)? : : : Can't do that either. A mv is a cp rm. : : 1. It is only for developers : 2 How about putting at the end: : :

Re: configure-macro fiddling

2000-05-08 Thread Lars J. Aas
From [[EMAIL PROTECTED]]: On Mon, May 08, 2000 at 10:07:12AM +0200, Daniel Stenberg wrote: : Hi : : It turns out that there are systems (NCR MP-RAS (svr4)) that require TWO libs : for gethostbyname() and connect() should compile/build properly. The current : configure rule only checks for one

Re: Defining headers

2000-05-09 Thread Lars J. Aas
On Tue, May 09, 2000 at 12:42:40PM +0200, Akim Demaille wrote: : "Akim" == Akim Demaille [EMAIL PROTECTED] writes: : : Akim How can you imagine leaving with it? : : Gromph, sorrys/it/heat/ :) "leaving wheath it"? Now I'm lost ;) Lars J

[patch] automake: m4/depout.m4

2000-06-07 Thread Lars J. Aas
Hi, We had some problems with getting our Coin project compiled on Cygwin, which we traced back to some "^M"-characters that weren't removed from directory- and file-names when the dependeny tracking files were about to be created at the end of the config.status run. The following patch made

Re: [patch] automake: m4/depout.m4

2000-06-07 Thread Lars J. Aas
On Wed, Jun 07, 2000 at 07:04:55AM -0700, Earnie Boyd wrote: : --- "Thomas E. Dickey" [EMAIL PROTECTED] wrote: : On Wed, 7 Jun 2000, Lars J. Aas wrote: : The following patch made the configure script work, but one should : probably find out how the ^M characters were introduc

portable scripting issue

2000-06-13 Thread Lars J. Aas
After having written a lot of scripts, I've gone tired of testing if boolean variables contain one string or another (e.g. "yes" vs "no"), so I've started setting them to "true"/"false" and started using them like this: sim_ac_foo_exists=false; if test foo exists; then sim_ac_foo_exists=true

quoting @ac_subst@ keywords

2000-06-27 Thread Lars J. Aas
I'm setting up my own sed-parse rule in a Makefile.in file, that should do sustitutions the way config.status does, based on some AC_SUBST keywords. Obviously, I need to be able to quote the search string, so the @ac_subst@ keyword is "intact" in the target Makefile. How do I do that? e.g.

Re: quoting @ac_subst@ keywords

2000-06-27 Thread Lars J. Aas
On Tue, Jun 27, 2000 at 08:05:32AM -0700, Tom Tromey wrote: : Lars sed 's/@keyword@/@keyword@/g' input output : Lars ^ must be quoted : : Write sed 's/\@keyword\@/...' I found that out after much tinkering - should have been the first thing I tried :( Actually, only the

[patch] config.status multilevel directory-structure jump support

2000-06-27 Thread Lars J. Aas
on using IFS like I've done, and maybe you want to reverse a couple of tests to avoid using "test ! ...". (that's one of the changes I noticed between 2000-01-13 and cvs HEAD. Also, it's sad that this functionality obfuscates the script somewhat... Lars J ChangeLog entry: 2000-06-

Re: [patch] config.status multilevel directory-structure jump support

2000-06-27 Thread Lars J. Aas
The fixed (quoted) patch. ChangeLog entry: 2000-06-27 Lars J. Aas [EMAIL PROTECTED] * acgeneral.m4: create subdirs, including parent directories that don't exist already. Index: acgeneral.m4 === RCS file: /cvs

[patch] acgeneral.m4

2000-06-28 Thread Lars J. Aas
Since I don't actually use CVS autoconf anywhere (because of it's incompatibilities with automake) and don't have it installed, please test this patch before applying it. Lars J 2000-06-28 Lars J. Aas [EMAIL PROTECTED] * acgeneral.m4 (AC_SHELL_MKDIR_P): New macro

Re: [patch] acgeneral.m4

2000-06-28 Thread Lars J. Aas
On Wed, Jun 28, 2000 at 06:48:24PM +0200, Akim Demaille wrote: : | Since I don't actually use CVS autoconf anywhere (because of it's : | incompatibilities with automake) : : What do you mean? We use a patched automake-1.4a (2000-05-31), and we use it with a patched autoconf-2.14.1

Re: [patch] acgeneral.m4 (dirname usage)

2000-07-05 Thread Lars J. Aas
he comment of AC_SHELL_DIRNAME that this : macro must be usable in ` `. Updated: ChangeLog entry: 2000-07-05 Lars J. Aas [EMAIL PROTECTED] * acgeneral.m4 (AC_SHELL_DIRNAME): New macro. (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS): Use AC_SHELL_DIRNAME. Index: ac

Re: [patch] acgeneral.m4 (dirname usage)

2000-07-05 Thread Lars J. Aas
On Wed, Jul 05, 2000 at 05:12:19PM +0200, Ralf Corsepius wrote: : "Lars J. Aas" wrote: : : +# AC_SHELL_DIRNAME(PATHNAME) : +# -- : +# Remove last slash and trailing text. : +# Not all systems have dirname, so we emulate it with sed. : +# This macro must

MoRe: upgrading to CVS autoconf

2000-07-06 Thread Lars J. Aas
On Thu, Jul 06, 2000 at 02:33:39PM +0200, Lars J. Aas wrote: : I'm trying to upgrade to CVS autoconf, and I'm wondering if I need : to upgrade automake, libtool, and m4 at the same time? I've upgraded autoconf and automake and m4 to release 1.4o (only vanilla tool is libtool 1.3.5), and things

[patch] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-06 Thread Lars J. Aas
file.in | CONFIG_HEADERS= CONFIG_FILES=- config.status | \ CONFIG_HEADERS=- CONFIG_FILES= config.status file or like this CONFIG_HEADERS= CONFIG_FILES=-:file.in config.status | \ CONFIG_HEADERS=file:- CONFIG_FILES= config.status ChangeLog entry: 2000-07-06 Lars J. Aas [EMAIL

Re: [patch] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-06 Thread Lars J. Aas
On Thu, Jul 06, 2000 at 06:23:07PM +0200, Akim Demaille wrote: : | This may look like a medium-sized patch (requiring forms to be signed), : | but it's mostly indentation changes. : : Alexandre can judge, I can't. Well, what's not indentation fixes is mostly ifelse alternations without any

Re: [patch] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-06 Thread Lars J. Aas
On Thu, Jul 06, 2000 at 02:47:43PM -0300, Alexandre Oliva wrote: : I think we can go ahead with this patch, but it would be nice to have : a copyright assignment from you on file. OK, I'll buy a stamp and print the form... Ah, what I wouldn't give to live in the digital signature utopia! :

Re: [patch] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-06 Thread Lars J. Aas
On Thu, Jul 06, 2000 at 08:08:47PM +0200, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : : Lars Sure. First we take Manhattan - *then* we take Berlin... : : Will you rework your Manhattan? Won't I have to? Lars J

Re: [patch] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-07 Thread Lars J. Aas
On Thu, Jul 06, 2000 at 07:16:05PM +0200, Akim Demaille wrote: : Look at what Zsh guys are doing: : : configure: : : | dnl The standard config.status is missing some essential features. : | dnl So add them now. See the comment at the end of Src/mkmakemod.sh. : | [rm -f $CONFIG_STATUS.old : |

Re: [patch r2] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-07 Thread Lars J. Aas
On Fri, Jul 07, 2000 at 10:35:53AM +0200, Akim Demaille wrote: : : | 2000-07-07 Lars J. Aas [EMAIL PROTECTED] : | : | * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): : | Accept special filename '-' for stdin and stdout. : : I like it very much, and much approve

Re: [patch] acgeneral.m4 (stdin/stdout support for config.status)

2000-07-07 Thread Lars J. Aas
The most logical thing would probably just be to do this: ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; # stdin + /*) echo $f ;; # absolute paths +

Re: top_srcdir: Bug in cvs version -?

2000-07-07 Thread Lars J. Aas
There is definitely something wrong at the moment. In _AC_OUTPUT_FILES, amongst other things, $ac_dots is always "../" (at least for separate builddir configure runs with relative path to configure), which screws up everything. Here is some debug output from a configure run... Haven't detected

Re: top_srcdir: Bug in cvs version -? (solution)

2000-07-07 Thread Lars J. Aas
AC_SHELL_MKDIR_P() sets $ac_dir, so the variable is invalid after the mkdir makro is invoked... lines 4542 +/-: if test "$ac_dir" != "$ac_file" test "$ac_dir" != .; then !AC_SHELL_MKDIR_P("$ac_dir") !ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory

[patch] config.status builddir awareness

2000-07-08 Thread Lars J. Aas
Hi, Here's the Autoconf patch for config.status builddir awareness, and some minor textfile updates. The acgeneral.m4 part depends on my previous patch having been applied and massaged so there are no quotes around $f in the case/esac. Lars J ChangeLog Entry 2000-07-10 Lars J. Aas

Re: [patch] config.status builddir awareness

2000-07-10 Thread Lars J. Aas
On Mon, Jul 10, 2000 at 05:58:18AM -0300, Alexandre Oliva wrote: : On Jul 8, 2000, "Lars J. Aas" [EMAIL PROTECTED] wrote: : + Source files can now also be specified with absolute (/) : + and builddir-relative (./) paths. : : I don't like `./'; it may well be the result of some

Re: [patch] config.status builddir awareness

2000-07-10 Thread Lars J. Aas
On Mon, Jul 10, 2000 at 08:19:30AM -0300, Alexandre Oliva wrote: : On Jul 10, 2000, "Lars J. Aas" [EMAIL PROTECTED] wrote: : How about tagging it with "^/" instead? : : How about `pwd`? :-) OK, feel free to remove the ./ pattern patching then. I assume I won't have t

Re: [patch] config.status builddir awareness

2000-07-10 Thread Lars J. Aas
On Mon, Jul 10, 2000 at 05:02:51PM +0200, Akim Demaille wrote: : "Alexandre" == Alexandre Oliva [EMAIL PROTECTED] writes: : Alexandre How about `pwd`? :-) : : I don't understand the pwd stuff, but here is my proposal. What I figured Alexandre meant was that since support for absolute paths is

Re: [patch] config.status builddir awareness

2000-07-10 Thread Lars J. Aas
Looks OK to me. Lars J

Re: [patch] config.status builddir awareness

2000-07-10 Thread Lars J. Aas
On Mon, Jul 10, 2000 at 01:21:54PM -0300, Alexandre Oliva wrote: : On Jul 10, 2000, Akim Demaille [EMAIL PROTECTED] wrote: :elif test -f "$ac_given_srcdir/$f"; then : : This shouldn't be done when $f is a full pathname. Are you crazy? Full pathnames aren't supported yet ;) - not

Re: [patch] config.status builddir awareness

2000-07-11 Thread Lars J. Aas
On Tue, Jul 11, 2000 at 01:31:24PM +0200, Akim Demaille wrote: : I don't think we need to: test -f itself will do the right thing, : whether the file is relative to build dir, or absolute wrt build dir : (i.e., just absolute), no matter what absolute means for the system. : We no longer have to

Re: aclang.m4 problem (Cygwin + VC++)

2000-07-12 Thread Lars J. Aas
On Wed, Jul 12, 2000 at 02:54:28AM -0700, Mo DeJong wrote: : I ran into a problem like the one you describe. It seems : that the CVS version of autoconf does not work with : VC++ at all. This is *bad* news for me, but probably not for Autoconf development, as I'll have to work on fixing this...

Re: bug in cvs-autoconf

2000-07-12 Thread Lars J. Aas
On Wed, Jul 12, 2000 at 12:29:36PM +0200, Johan Danielsson wrote: : [a-z] gets expanded by the shell: : : --- autoconf.sh 2000/07/10 10:23:09 1.76 : +++ autoconf.sh 2000/07/12 10:31:31 : @@ -223,7 +223,7 @@ : # 2. $WARNINGS, $3 command line options, in that order. : # Set them

Re: bug in cvs-autoconf

2000-07-13 Thread Lars J. Aas
On Thu, Jul 13, 2000 at 12:54:50AM +0200, Peter Eisentraut wrote: : Lars J. Aas writes: : : -for warning in `IFS=,; echo syntax,$WARNINGS,$warnings | tr [A-Z] [a-z]` : : +for warning in `IFS=,; echo syntax,$WARNINGS,$warnings | tr '[A-Z]' '[a-z]'` : : Why use the braces at all

Re: bug in cvs-autoconf

2000-07-13 Thread Lars J. Aas
On Thu, Jul 13, 2000 at 06:14:24AM -0400, Thomas Dickey wrote: : in turn, all of this was noted a year or so ago to point out it won't : work on systems using EBCDIC - an explicit range is ugly but portable. Which systems use EBCDIC? (just wondering) Lars J

portability of shift N?

2000-07-13 Thread Lars J. Aas
I know "shift" is portable, but is shift with argument portable? Lars J

Re: aclang.m4 problem (Cygwin + VC++)

2000-07-19 Thread Lars J. Aas
On Wed, Jul 19, 2000 at 12:24:08PM +0200, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : : Mo I ran into a problem like the one you describe. It seems : that : Mo the CVS version of autoconf does not work with : VC++ at all. : : Lars This is *bad* n

Re: aclang.m4 problem (Cygwin + VC++)

2000-07-19 Thread Lars J. Aas
On Wed, Jul 19, 2000 at 01:43:58PM +0200, Lars J. Aas wrote: : On Wed, Jul 19, 2000 at 12:24:08PM +0200, Akim Demaille wrote: : : Mo, Lars, could you give a look at the patch 25-* and see if it works? : : : : I don't recall well why we recently chose .cc for C++. ISTR it was : : because before

Re: 26-ac-ext (Was: aclang.m4 problem (Cygwin + VC++))

2000-07-19 Thread Lars J. Aas
On Wed, Jul 19, 2000 at 02:11:43PM +0200, Akim Demaille wrote: : How about this? : : I don't have good answers yet to provide wrt .obj, maybe you should : try to set it by hand in configure.in just to see if it works. We : will address this second issue later (note that ./configure :

Re: 26-ac-ext (Was: aclang.m4 problem (Cygwin + VC++))

2000-07-19 Thread Lars J. Aas
On Wed, Jul 19, 2000 at 02:33:25PM +0200, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : Lars It got further (when I added ac_objext=obj - without it, all the : Lars extension tests failed of course), but stopped again on a : Lars "conftest.cc"

[mariusbu@sim.no: output.log]

2000-07-19 Thread Lars J. Aas
ac_ext is set to "cc" right after the objext test is done. Lars J ## The inline for-loop macro: AC_DEFUN([SIM_COMPILER_INLINE_FOR], [ AC_PREREQ([2.14]) AC_CACHE_CHECK( [whether the C++ compiler handles inlined loops],

No to 2.50!

2000-08-07 Thread Lars J. Aas
On Mon, Aug 07, 2000 at 03:31:18PM +0200, Akim Demaille wrote: : :( 2.50 is never going to be born :( My $2.14a :) I for one am against releasing anything called "Autoconf 2.50" before Autoconf 2.14 through 2.49 has been released. Linux does the same stupid thing, suddenly jumping to minor

Re: No to 2.50!

2000-08-07 Thread Lars J. Aas
On Mon, Aug 07, 2000 at 05:47:33PM +0200, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : : Lars On Mon, Aug 07, 2000 at 03:31:18PM +0200, Akim Demaille wrote: : Lars : :( 2.50 is never going to be born :( My $2.14a :) : : Lars Let's call it 2.14 (or 2.15

Re: No to 2.50!

2000-08-07 Thread Lars J. Aas
On Mon, Aug 07, 2000 at 06:49:44PM +0200, Akim Demaille wrote: : If you use Gnus and still don't know about C-d, it's time for a try. I'm a vi/mutt/trn dude, so no gnus for me. :Patch Panic [...] Didn't seem like the version numbering was such a controversial and out-debated issue, though.

Re: HTML format documentation

2000-09-04 Thread Lars J. Aas
On Fri, Sep 01, 2000 at 09:38:28PM -0600, Richard Stallman wrote: : So prefix=/usr leads to syconfidir=/etc, but prefix=/usr/gnu (not my : idea) leads to sysconfdir=/usr/gnu/config? Ugh. : : This nonuniformity is precisely the intent. When prefix is a : subdirectory of /usr, such as

Re: AC_C_BIGENDIAN

2000-09-05 Thread Lars J. Aas
Once upon a time, Akim Demaille wrote: : Hi People, : : Does anybody sees a means to compute this at compile time? Using the : same trick as we did for SIZEOF etc. : : The current test program is : : int : main () : { : /* Are we little or big endian? From HarbisonSteele. */ : union :

Re: Bugfix for _AC_OBJEXT

2000-09-06 Thread Lars J. Aas
On Wed, Sep 06, 2000 at 02:43:03PM +0200, Akim Demaille wrote: : | I'd accept patches that do what you suggest too: have _AC_EXEEXT be : | independent from AC_LINK_IFELSE, have AC_LINK|COMPILE_IFELSE require : | what they need, [...] : | : | I looked at the code, but the macros that does the

Re: AC_C_BIGENDIAN

2000-09-06 Thread Lars J. Aas
On Wed, Sep 06, 2000 at 02:32:18PM +0200, Guido Draheim wrote: : will update the page some day). The basic idea is to create a binary : from special C-source and "grep" the binary for some pattern. The C-source [...] : : AC_MSG_CHECKING(whether byte order LOOKS bigendian) : [ : cat conftest.c

Re: changequote used incorrectly

2000-09-08 Thread Lars J. Aas
On Fri, Sep 08, 2000 at 09:05:57AM -0400, Pavel Roskin wrote: : I'll try to remove changequote()s from libtool.m4 as long as it remains : compatible with Autoconf-2.13 I don't see how this can be a problem - it's strictly an m4 parse issue, and the m4 parsing is the same, no matter which

Re: Automake needs --localdir?

2000-09-11 Thread Lars J. Aas
On Mon, Sep 11, 2000 at 06:18:59AM -0700, Earnie Boyd wrote: : --- "Lars J. Aas" [EMAIL PROTECTED] wrote: : I've started using AC_CONFIG_AUX_DIR(aux) and stow away files into aux/. : : PORTABILITY Issue: aux should not be used as a directory, filename or filename : part (i.e. au

Re: Meta list issue: subject prefixes

2000-09-21 Thread Lars J. Aas
On Thu, Sep 21, 2000 at 08:17:18AM -0700, Ossama Othman wrote: : On Thu, Sep 21, 2000 at 02:56:07PM +0200, Peter Eisentraut wrote: : Akim Demaille writes: : :"Russ" == Russ Allbery [EMAIL PROTECTED] writes: : : Russ Could the really annoying "feature" of mangling the subjects of :

Meta list issue: duplicates (was: subject prefixes)

2000-09-21 Thread Lars J. Aas
On Thu, Sep 21, 2000 at 08:54:59AM -0700, Ossama Othman wrote: : Out of curiosity, are you guys receiving duplicate e-mails from the : list? I seem to be getting two copies of each e-mail sent from all of : the GNU lists I'm subscribed to. On the Guile user list, I've in the last couple of days

Re: [PATCH] Serious problem with Autoconf on RedHat 7

2000-10-03 Thread Lars J. Aas
On Tue, Oct 03, 2000 at 01:04:12PM +0200, Morten Eriksen wrote: : Akim Demaille [EMAIL PROTECTED] writes: : | define([AC_LANG_SOURCE(C++)], : | [#line __oline__ "configure" : | #include "confdefs.h" : | -#ifdef __cplusplus : | -extern "C" void exit (int); : | -#endif : | $1]) : : BTW,

Re: [PATCH] A better (?) _AC_EXEEXT

2000-10-11 Thread Lars J. Aas
On Tue, Oct 10, 2000 at 07:35:52PM +0200, Akim Demaille wrote: : | BTW, is the "-ef" option to ``test'' portable? If not, that part could : | be stripped out. : : See the documentation of Autoconf :) : : @item @command{test} (files) : To enable @code{configure} scripts to

Re: Success (mostly) with the testsuite

2000-10-20 Thread Lars J. Aas
On Fri, Oct 20, 2000 at 08:41:49AM -0700, David Morgan wrote: : test ${FOO+set} = set || FOO=$foo : : I just tried you proposed change and I get a syntax error from: : : test ${CONFIG_FILES+$config_files} = $config_files || CONFIG_FILES=$config_files Use "set" verbatim like Akim wrote - don't

Re: Success (mostly) with the testsuite

2000-10-20 Thread Lars J. Aas
On Fri, Oct 20, 2000 at 06:58:36PM +0200, Lars J. Aas wrote: : Anyways, what would be really cool is to find a LHS expansion that would : either expand to "set" or to "unset" depending on whether the variable was : set or not. I haven't been able to think of one, though.

manually setting up aclocal.m4

2000-10-23 Thread Lars J. Aas
I've tried to set up aclocal.m4 to just m4_include the necessary macro files, but I don't want to write explicit paths to the files in /usr/local/share/aclocal/, and I can't get autoconf to make m4 search in that directory automatically. Any hints? Lars J

Re: AS_EXIT

2000-11-01 Thread Lars J. Aas
On Wed, Nov 01, 2000 at 09:47:07AM -0500, Pavel Roskin wrote: : Hello, Lars! : : AC_DEFUN([AS_NOP], [:]) # or `(exit $?)'? : : I guess you didn't study x86 architecture well. NOP doesn't change the : flag register :-) That's why I proposed (exit $?) instead, if status-preservation

Re: AC_INIT(ac_unique_file)

2000-11-02 Thread Lars J. Aas
On Thu, Nov 02, 2000 at 02:07:43PM -0500, Pavel Roskin wrote: : Hello, Lars! : I think autoconf ought to warn the maintainer if $ac_unique_file : (the AC_INIT argument) isn't found when run. Any reason it shouldn't? : : It warns when "configure" is run, but not when "autoconf" is run. : : $

Re: AC_INIT(ac_unique_file)

2000-11-03 Thread Lars J. Aas
On Thu, Nov 02, 2000 at 02:26:27PM -0500, Pavel Roskin wrote: : : Are you suggesting that "autoconf" issues a warning as well? : : Yes, if there's no case where generating a configure-script under such a : circumstance is useful... : : It has a low priority for me. I'll not object if

Re: AC_INIT(ac_unique_file)

2000-11-03 Thread Lars J. Aas
On Fri, Nov 03, 2000 at 02:33:12PM +0100, Akim Demaille wrote: : Personally I'm not too much in favor of this patch. It's like a bit : like wanting cpp to catch undeclared identifiers: it's just not its : role. I understand it would have eased tracking down one problem you : found, but the

Re: AC_INIT(ac_unique_file)

2000-11-03 Thread Lars J. Aas
On Fri, Nov 03, 2000 at 02:58:33PM +0100, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : Lars BTW, why does srcdir default to .. when this happens? It seems : Lars like an ugly hack implemented to help ill-configured software : Lars packages to configure fro

Re: FYI: Fix AC_PROVIDE (Was: Problems with AC_CONFIG_AUX_DIR/AC_CONFIG_AUX_DIR_DEFAULT)

2000-11-03 Thread Lars J. Aas
On Fri, Nov 03, 2000 at 04:58:14PM +0100, Akim Demaille wrote: : | LOL... Whose the guy who revamped AC_PROVIDE recently? He is : | dangerous... :) : : s/Whose/Who's/, sorry :( I thought you meant "hose"... ;) Lars J

Re: Forbidden strings

2000-11-03 Thread Lars J. Aas
On Fri, Nov 03, 2000 at 06:39:02PM +0100, Bernard Dautrevaux wrote: : So the obvious: : : what is Autoshell? Autoconf macros for partable shell scripting. : Note that my question was due to the fact that i *do* use AS_FLAGS for Can't you use ASFLAGS? You don't see C_FLAGS and

Re: automatic setting of srcdir

2000-11-06 Thread Lars J. Aas
On Sat, Nov 04, 2000 at 07:48:33PM -0600, John A. Crow wrote: : All - : : I am using autoconf-2.13. : : It looks to me from my experiments that by default the srcdir : output variable is set to its relative path name. That is, if I do : :./configure : : I will get @srcdir@ replaced with

Re: automatic setting of srcdir

2000-11-06 Thread Lars J. Aas
On Mon, Nov 06, 2000 at 09:17:30AM -0500, Thomas E. Dickey wrote: : On Mon, 6 Nov 2000, Bernard Dautrevaux wrote: : srcdir="`cd $srcdir; pwd`" : : there are environments where this doesn't work properly (when $CDPATH is : set). Weird. Doesn't autoconf try to disable (unset) $CDPATH? Anyways,

Re: automatic setting of srcdir

2000-11-07 Thread Lars J. Aas
On Tue, Nov 07, 2000 at 05:54:42PM +0100, Akim Demaille wrote: : | cd "$my_ac_builddir_save" : : Useless Quotes Award :) Sure, but useless quotes are better than missing quotes. I haven't studied the Bourne shell syntax that hard, and given all the variations over how the so-called Bourne shell

Re: Forbidden strings

2000-11-08 Thread Lars J. Aas
On Wed, Nov 08, 2000 at 11:18:04AM +0100, Akim Demaille wrote: : Pavel Just take my advice. At least once a month take a random big : Pavel package by search on www.freshmeat.net (Lesstif, openssh, : Pavel gnome-libs, whatever) and try to run Autoconf. And then put : Pavel yourself in the

Re: bug in AC_COMPUTE_INT

2000-11-16 Thread Lars J. Aas
On Thu, Nov 16, 2000 at 12:41:53PM +0100, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : : Lars I'm using AC_CHECK_SIZEOF on Cygwin and have found out that the : Lars `conftest' file contains a \r\n after the size. The \r : Lars character follows th

Re: bug in AC_COMPUTE_INT

2000-11-16 Thread Lars J. Aas
On Thu, Nov 16, 2000 at 12:56:54PM +0100, Lars J. Aas wrote: : -[FILE *f = fopen ("conftestval", "w"); : +[FILE *f = fopen ("conftestval", "wb"); Yep, this was the fix... Lars J

Re: bug in AC_COMPUTE_INT

2000-11-16 Thread Lars J. Aas
On Thu, Nov 16, 2000 at 01:00:02PM +0100, Akim Demaille wrote: : "Lars" == Lars J Aas [EMAIL PROTECTED] writes: : : Lars : so how come we waited till today to discover this issue? : : Lars Running configure on the w32 platform hasn't really been common, : Lars nor is it common

Re: bug in AC_COMPUTE_INT

2000-11-16 Thread Lars J. Aas
On Thu, Nov 16, 2000 at 01:00:02PM +0100, Akim Demaille wrote: : Is this the only failure of the test suite? You wish. The testsuite doesn't work on Cygwin, because everything (with a couple of exceptions) fails... Lars J

More on fopen() problem on Cygwin

2000-11-22 Thread Lars J. Aas
Even after setting /cygdrive to binary mode, the problem with fopen(file, "w") persists (since I had fixed my own autoconf repository to use "wb" I didn't notice it until I tried to configure glib which has it's own set of macros like that. I suspect that it is related to the fact that I'm using

AC_OBJEXT again

2000-11-22 Thread Lars J. Aas
When the w32 free Borland C++ command line compiler links a program (conftest.exe), it also produces a file named `conftest.tds' in addition to `conftest.obj'. In AC_OBJEXT, conftest.* is globbed to `... conftest.obj conftest.tds', and the for loop ends up deciding that $ac_objext should be

  1   2   3   >