[GHC] #918: Fix HOpenAL's configure.ac bug that can't find
OpenAL framework under Mac OS X
GHC
trac at galois.com
Sun Feb 11 08:18:30 EST 2007
#918: Fix HOpenAL's configure.ac bug that can't find OpenAL framework under Mac
OS X
-------------------------------+--------------------------------------------
Reporter: guest | Owner: thorkilnaur
Type: task | Status: new
Priority: normal | Milestone: 6.6.1
Component: libraries (other) | Version: 6.4.2
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: N/A | Architecture: Unknown
Os: MacOS X |
-------------------------------+--------------------------------------------
Comment (by thorkilnaur):
Since I am unable to test the Windows part of this patch, I have split off
the Windows-related part of the patch and attached it to a new ticket:
#1140. The Mac OS X-related part of the patch (attached file openal-mac-
os-x-part-1.patch) has been tested with success on a PPC Mac OS X 10.4.
The difference in the configure output before and after applying the patch
is summarized here:
{{{
829a830,832
> checking build system type... powerpc-apple-darwin8.6.0
> checking host system type... powerpc-apple-darwin8.6.0
> checking target system type... powerpc-apple-darwin8.6.0
839,840c842,985
< checking for library containing alGenSources... no
< configure: WARNING: no OpenAL library found, so this package will not be
built
---
> checking how to run the C preprocessor... gcc -E
...
> checking value of ALC_CAPTURE_SAMPLES... 786
845d989
< config.status: include/HsOpenALConfig.h is unchanged
847d990
< config.status: include/HsOpenAL.h is unchanged
}}}
The patch has also been tested on a (SuSE) Linux system to ensure that
OpenAL is still detected. For Linux, the difference between the configure
output before and after applying the patch is less marked, as we would
expect:
{{{
834a835,837
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
983d985
< config.status: include/HsOpenALConfig.h is unchanged
985d986
< config.status: include/HsOpenAL.h is unchanged
}}}
I should stress that the above test has only served to ensure that OpenAL
after the change is detected and that the OpenAL package is then being
built. The functions of the OpenAL package have not been tested.
Based on this, I recommend that the attached patch openal-mac-
os-x-part-1.patch is applied and the ticket closed. Ian, please ...?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/918>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list