Hi,
First of all, great engine. I saw the Battlestar Galactica project today at my friends PC and thought "wow, have to try it".
So, back home I downloaded the open_fs2 source and tried to build it using autogen.sh / configure and ran into
this bug. Like the reporter said, no problem for people familiar with *nix, but quite annoying for newbies, so I tried to fix that one.
Result:
--- fs2_open_old/configure.ac 2008-10-06 23:20:39.000000000 +0200
+++ fs2_open/configure.ac 2008-10-06 23:31:29.000000000 +0200
@@ -372,7 +372,8 @@
dnl OpenAL
if test "$fs2_os_unix" = "yes" ; then
- AC_DEFINE([USE_OPENAL])
+ PKG_CHECK_MODULES(OpenAL,openal)
+ AC_DEFINE([USE_OPENAL])
FS2_LDFLAGS="$FS2_LDFLAGS -lopenal"
elif test "$fs2_os_osx" = "yes" ; then
AC_DEFINE([USE_OPENAL])
I simply added the PKG_CHECK_MODULES-Macro which calls pkg-config (... and does not provide some version-checking or valuable output, though)
Since I have almost no experience with autoconf I looked through acincludes.m4 and configure.ac to see how the SDL headers and libraries are found and was somewhat surprised about the relatively big macros/functions there which don`t seem to use pkg-config (at least at first glance).
For the lack of experience I asked myself, which is the better way fixing this problem? Writing some big m4-macro (eventually with a c-testprogram?) and avoiding pkg-config or use the .pc files in /usr/lib/pkgconfig (or whatever the path is)?
Regards, jth