We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 785 - autoconf fails on revision 4685
Summary: autoconf fails on revision 4685
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-22 13:58 UTC by Jonathan Crook
Modified: 2009-09-26 03:35 UTC (History)
1 user (show)

See Also:


Attachments
Patch for quoted string in configure.in in CheckIPod (503 bytes, patch)
2009-09-10 08:34 UTC, davshaonr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Crook 2009-08-22 13:58:09 UTC
jonny@jonny-laptop:~/SDL$ autoconf 
/usr/bin/m4:configure.in:956: bad expression in eval: m4_Cursor + 2 + 1
/usr/bin/m4:configure.in:956: bad expression in eval:  > (79)
/usr/bin/m4:configure.in:956: bad expression in eval: 2426 > ()
autom4te: /usr/bin/m4 failed with exit status: 1


Just thought i'd make you aware of this.

Many thanks
Comment 1 davshaonr 2009-09-10 08:34:37 UTC
Created attachment 351 [details]
Patch for quoted string in configure.in in CheckIPod

Subversion revision 4707.
I tried the alternative of adding an extra pair of quotes and obtained:

AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [[default=yes on arm-elf]]]),
        , enable_ipod=yes)

produces in configure after autogen.sh:

  --enable-ipod           configure SDL to work with iPodLinux
                          [default=yes], [                          ], [79])[][]_m4_text_wrap_word([on], [                          ], [79])[][]_m4_text_wrap_word([arm-elf]
Comment 2 davshaonr 2009-09-10 08:39:47 UTC
For subversion revision 4707 of libsdl 1.3, I believe the problem also applies to Mac OS X 10.6 (Snow Leopard) using macports, with

$ autoconf --version
autoconf (GNU Autoconf) 2.64

$ gm4 --version
m4 (GNU M4) 1.4.13

The problem appears to be with the line in configure.in:

AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [default=yes on arm-elf]]),

I attempted to add a pair of extra quotes.

AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [[default=yes on arm-elf]]]),
        , enable_ipod=yes)

which produces in configure after autogen.sh:

  --enable-ipod           configure SDL to work with iPodLinux
                          [default=yes], [                          ], [79])[][]_m4_text_wrap_word([on], [                          ], [79])[][]_m4_text_wrap_word([arm-elf]
Comment 3 Sam Lantinga 2009-09-26 03:35:10 UTC
This is fixed in subversion, thanks!