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

Summary: autoconf fails on revision 4685
Product: SDL Reporter: Jonathan Crook <je.suis.bon>
Component: mainAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: davshaonr
Version: HG 2.0   
Hardware: x86   
OS: Linux   
Attachments: Patch for quoted string in configure.in in CheckIPod

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!