Hi,

> It appears that in line 36
>
> relok=$(($aclocal_maj == $aclocal_minimal_maj && $aclocal_min ==
> 
$aclocal_minimal_min && \
> ->         $aclocal_rel 
>= $aclocal_minimal_rel))
>
> aclocal_rel is resolving to null or something.
this is strange... it seems to run fine here 
(I've got aclocal 1.11.1).
Which version of aclocal do you have?
Are you sure your acregen.sh is using the correct newlines (CR only, not 
CRLF)?
Maybe you can try to simply replace lines 35 and 36 with:

relok=$(($aclocal_maj == $aclocal_minimal_maj && $aclocal_min ==
$aclocal_minimal_min && $aclocal_rel >= $aclocal_minimal_rel))

(i.e. 
everything on the same line)....
--------------

Your suggestion didn't change things, as it shouldn't. really but I now 
understand why this happens.What's happening is that your script assumes that 
aclocal will have a version string that looks like maj.min.rel, and the current 
MinGW doesn't. It.s V11.1. Therefore aclocal_rel is empty and the version check 
fails.

My fix was to add:

if [[ "$aclocal_rel" < "0" ]]; then aclocal_rel=0; fi

after line 27 of acregen.sh to set aclocal_rel to 0 if no release version is 
found. Feel free to fix or improve on it.

However, I still get the second error relating to m4 not recognising the 
argument "--gnu":

/bin/m4: unrecognized option `--gnu'
Try `/bin/m4 --help' for more information.
autom4te: /bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

That string doesn't exist anywhere in the build files or templates so I'm a bit 
stuck. The error occurs when acregen.sh calls

aclocal && autoconf && mv configure

whilst aclocal is running but I lose track of where execution goes from there. 
I can't trap it in configure.ac, which I though was next to run. Help!

Thanks.


      
------------------------------------------------------------------------------

_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to