New patches: [Experimental Support to build this package separately from GHC, and fix build problem for Mac OS X platform shelarcy **20060525053438] { addfile ./Setup.lhs hunk ./Setup.lhs 1 +#!/usr/bin/runhaskell + +> module Main where + +> import Distribution.Simple + +> main :: IO () +> main = defaultMainWithHooks defaultUserHooks hunk ./aclocal.m4 171 + +# FP_CHECK_OPENAL +# ------------- +AC_DEFUN([FP_CHECK_OPENAL], +[AC_REQUIRE([AC_CANONICAL_TARGET]) +AL_CFLAGS= +case $target_os in +darwin*) + AL_LIBS= + AL_FRAMEWORKS=OpenAL + ;; +*) + AC_SEARCH_LIBS([alGenSources], [openal openal32], [AL_LIBS="$ac_cv_search_alGenSources"]) + test x"$AL_LIBS" = x"none required" && AL_LIBS= + AC_SUBST([AL_LIBS]) + AL_FRAMEWORKS= + ;; +esac +AC_SUBST([AL_CFLAGS]) +AC_SUBST([AL_FRAMEWORKS]) +])# FP_CHECK_OPENAL + hunk ./configure.ac 11 -# Shall we build this package at all? -FP_ARG_OPENAL hunk ./configure.ac 13 -if test x"$enable_openal" = xyes; then - hunk ./configure.ac 15 -# The following test for the OpenAL library is a bit of a hack, but gives nice -# feedback even for the case when no additional library is needed. (Mac OS X?) -AL_LIBS=no -AC_SEARCH_LIBS([alGenSources], [openal openal32], [AL_LIBS="$ac_cv_search_alGenSources"]) -test x"$AL_LIBS" = x"none required" && AL_LIBS= -AC_SUBST([AL_LIBS]) +# Shall we build this package at all? +FP_ARG_OPENAL + +if test x"$enable_openal" = xyes; then + +# Check for ALUT include paths and libraries +FP_CHECK_OPENAL hunk ./configure.ac 27 -# Ugly... -AL_FRAMEWORKS= -case $host_os in -darwin*) - AL_FRAMEWORKS=OpenAL - ;; -esac -AC_SUBST([AL_FRAMEWORKS]) - +# check for ALUT include files hunk ./configure.ac 30 -if test -z "$AL_FRAMEWORKS" && test x"$fp_found_al_header$fp_found_alc_header" != xyesyes; then + +if text x "$fp_found_al_header" = xno || test x"$fp_found_alc_header" = xno; then hunk ./configure.ac 185 -*-mingw32) CALLCONV=stdcall ;; +# WinDoze DLL hell +# NOTE: For some obscure/unknown reason, OpenAL uses ccall, even on WinDoze... +# *-mingw32) CALLCONV=stdcall ;; } Context: [add files used by configure Ross Paterson **20060518174356] [Fixed bug #715 (OpenAL package fails to compile with older headers) Sven Panne **20060507164755] [TAG Initial conversion from CVS complete John Goerzen **20060112154136] Patch bundle hash: cbbd3ad5b54b4d474d5cd690a7689a9abdad8ce2