rofl0r / exult

historical inofficial svn2git exult git mirror - use github.com/exult now
https://github.com/exult/exult
GNU General Public License v2.0
7 stars 2 forks source link

Error when running configure script on Mac OSX 10.9.4 #1

Closed mgrigajtis closed 10 years ago

mgrigajtis commented 10 years ago

Console output:

checking for SDL - version >= 1.2.0... yes ./configure: line 18109: syntax error near unexpected token newline' ./configure: line 18109: XIPH_PATH_OGG('

rofl0r commented 10 years ago

the problem is this here https://github.com/rofl0r/exult/blob/master/configure.ac#L368 the XIPH_PATH_OGG m4 macro gets only expanded if libogg is installed on the box that runs autoreconf. try removing those 8 lines and rerun autoreconf -i, or install libogg and then rerun autoreconf. if the issue persists, you should report the issue at the official bugtracker on sf.net, this is merely an inofficial git-mirror.

mgrigajtis commented 10 years ago

Running autogen after libogg install has corrected the issue. Thanks!

rofl0r commented 10 years ago

suggested fix @ exult-devs https://sourceforge.net/p/exult/bugs/1877/ either remove the usage of the ogg.m4 specific test macro, or embed it into the source tree (albeit when i looked at ogg.m4 it used bogus proprietary logic a la "wx-config", "libmikmod-config", "apr-1-config" etc, which are all pkgconfig clones although without proper cross-compile/sysroot support, so this may preclude cross-compilation, as it seems to use $prefix and not $sysroot/$prefix - sysroot support was added to autoconf about 4 years ago but i doubt that external ogg.m4 was also adapted...).