/usr/bin/m4: unrecognized option '--gnu'

718 views
Skip to first unread message

Ken Sharp

unread,
Jun 5, 2010, 10:54:00 AM6/5/10
to CLooG
$ ./autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autoconf'.
libtoolize: copying file `autoconf/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
automake: autoconf failed with exit status: 1
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader: '/usr/bin/autom4te' failed with exit status: 1
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
automake: autoconf failed with exit status: 1
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1

Says it all really. I can't figure out how to stop --gnu being passed
to m4, and with it, it fails.

$ /usr/bin/m4 --version
m4 (GNU M4) 1.4.11

I compiled 1.4.14 in /usr/local/bin but this doesn't seem to be
getting picked up by autogen.sh

$ which m4
/usr/local/bin/m4

I'd love to get this to work. Can someone help?

Sven Verdoolaege

unread,
Jun 5, 2010, 11:11:53 AM6/5/10
to Ken Sharp, CLooG
On Sat, Jun 05, 2010 at 07:54:00AM -0700, Ken Sharp wrote:
> /usr/bin/m4: unrecognized option '--gnu'
> Try `/usr/bin/m4 --help' for more information.
> autom4te: /usr/bin/m4 failed with exit status: 1
> aclocal: autom4te failed with exit status: 1
>
> Says it all really. I can't figure out how to stop --gnu being passed
> to m4, and with it, it fails.
>
> $ /usr/bin/m4 --version
> m4 (GNU M4) 1.4.11

It would be more interesting to know which version of autoconf you
are using. Also, send the output of "env".

skimo

Sven Verdoolaege

unread,
Jun 5, 2010, 11:15:28 AM6/5/10
to Ken Sharp, CLooG
On Sat, Jun 05, 2010 at 05:11:53PM +0200, Sven Verdoolaege wrote:
> It would be more interesting to know which version of autoconf you
> are using.

Actually, it seems that autoconf's configure checks whether m4 accepts
--gnu, so apparently your autoconf was compiled in the presence of
some other version of m4. Try reinstalling autoconf.

skimo

Ken Sharp

unread,
Jun 7, 2010, 12:07:22 PM6/7/10
to sk...@kotnet.org, CLooG

Hi Sven,

Thanks for the quick response. You were absolutely right. I was using
the autoconf that came with my distribution (Ubuntu 8.10). I've
compiled a slightly newer version from source and it all works fine.

Thanks again,

Ken.

Reply all
Reply to author
Forward
0 new messages