Hi,

2010/5/19 sdfkjsjlh sdbfgsfsdg <sdfkjsjlhsdbfgsf...@yahoo.com>:
> 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.
ok, nice catch.
I've added your fix to template\build\acregen.sh which is the file I
copy in new components whenever I create their folders.
Thanks for reporting 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.
aclocal & autoconf do not run configure.ac; rather they interpret it
(configure.ac is written in a macro language called "m4" or "m4sugar")
and then build the configure script. From the error you get I think
the problem is that your M4 interpreter (/bin/m4) does not seem to be
the GNU one... and this seems to give problems to autom4te (an utility
used by aclocal).
This problem has nothing to do with wxCode/wxWidgets but rather seems
a problem of MSYS (assuming you're using MSYS).
I strongly suggest you to generate your configure script from a real
Linux installation (which you will require anyway if you want to test
your component/apps under linux)... if you don't want to mess with
partitions/boot-managers, etc, I'd suggest you to go with VMWare
player and the Ubuntu DVD :)
To develop cross-platform software, virtual machines are very handy!

HTH,
Francesco

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

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

Reply via email to