| 194 | | AC_CHECK_HEADERS(AL/al.h AL/alut.h) |
|---|
| | 212 | AC_CHECK_HEADERS([AL/al.h AL/alut.h alut.h]) |
|---|
| | 213 | |
|---|
| | 214 | snxsave_CXXFLAGS="$CXXFLAGS" |
|---|
| | 215 | snxsave_LDFLAGS="$LDFLAGS" |
|---|
| | 216 | snxsave_LIBS="$LIBS" |
|---|
| | 217 | |
|---|
| | 218 | CFLAGS="$CFLAGS $ABI_FLAGS" |
|---|
| | 219 | CPPFLAGS="$CPPFLAGS $AL_INCLUDES $ALUT_INCLUDES" |
|---|
| | 220 | LDFLAGS="$LDFLAGS $AL_LDFLAGS $ALUT_LDFLAGS" |
|---|
| | 221 | LIBS="$LIBS $LIBALUT" |
|---|
| | 222 | |
|---|
| | 223 | DPP_LANG_SAVE |
|---|
| | 224 | DPP_LANG_C |
|---|
| | 225 | |
|---|
| | 226 | AC_CACHE_CHECK([for alutInitWithoutContext() in $LIBALUT], |
|---|
| | 227 | [ac_cv_has_alutInitWithoutContext], |
|---|
| | 228 | [AC_TRY_LINK([ |
|---|
| | 229 | #if defined(HAVE_AL_ALUT_H) |
|---|
| | 230 | #include <AL/alut.h> |
|---|
| | 231 | #elif defined(HAVE_ALUT_H) |
|---|
| | 232 | #include <alut.h> |
|---|
| | 233 | #endif |
|---|
| | 234 | ], |
|---|
| | 235 | [alutInitWithoutContext(0, 0);], |
|---|
| | 236 | [ac_cv_has_alutInitWithoutContext='yes'], |
|---|
| | 237 | [ac_cv_has_alutInitWithoutContext='no'])]) |
|---|
| | 238 | |
|---|
| | 239 | AC_CACHE_CHECK([for alutGetError() in $LIBALUT], |
|---|
| | 240 | [ac_cv_has_alutGetError], |
|---|
| | 241 | [AC_TRY_LINK([ |
|---|
| | 242 | #if defined(HAVE_AL_ALUT_H) |
|---|
| | 243 | #include <AL/alut.h> |
|---|
| | 244 | #elif defined(HAVE_ALUT_H) |
|---|
| | 245 | #include <alut.h> |
|---|
| | 246 | #endif |
|---|
| | 247 | ], |
|---|
| | 248 | [alutGetError();], |
|---|
| | 249 | [ac_cv_has_alutGetError='yes'], |
|---|
| | 250 | [ac_cv_has_alutGetError='no'])]) |
|---|
| | 251 | |
|---|
| | 252 | AC_CACHE_CHECK([for alutLoadMemoryFromFile() in $LIBALUT], |
|---|
| | 253 | [ac_cv_has_alutLoadMemoryFromFile], |
|---|
| | 254 | [AC_TRY_LINK([ |
|---|
| | 255 | #if defined(HAVE_AL_ALUT_H) |
|---|
| | 256 | #include <AL/alut.h> |
|---|
| | 257 | #elif defined(HAVE_ALUT_H) |
|---|
| | 258 | #include <alut.h> |
|---|
| | 259 | #endif |
|---|
| | 260 | ], |
|---|
| | 261 | [alutLoadMemoryFromFile("test", 0, 0, 0);], |
|---|
| | 262 | [ac_cv_has_alutLoadMemoryFromFile='yes'], |
|---|
| | 263 | [ac_cv_has_alutLoadMemoryFromFile='no'])]) |
|---|
| | 264 | |
|---|
| | 265 | DPP_LANG_RESTORE |
|---|
| | 266 | |
|---|
| | 267 | CFLAGS="$snxsave_CFLAGS" |
|---|
| 196 | | |
|---|
| 197 | | if test "x$LIBALUT" != "x" ; then |
|---|
| 198 | | snxsave_CXXFLAGS="$CXXFLAGS" |
|---|
| 199 | | snxsave_CPPFLAGS="$CPPFLAGS" |
|---|
| 200 | | snxsave_LDFLAGS="$LDFLAGS" |
|---|
| 201 | | snxsave_LIBS="$LIBS" |
|---|
| 202 | | |
|---|
| 203 | | CFLAGS="$CFLAGS $ABI_FLAGS" |
|---|
| 204 | | CPPFLAGS="$CPPFLAGS $AL_INCLUDES" |
|---|
| 205 | | LDFLAGS="$LDFLAGS $AL_LDFLAGS" |
|---|
| 206 | | LIBS="$LIBS $LIBALUT" |
|---|
| 207 | | |
|---|
| 208 | | DPP_LANG_SAVE |
|---|
| 209 | | DPP_LANG_C |
|---|
| 210 | | |
|---|
| 211 | | AC_CACHE_CHECK([for alutInitWithoutContext() in $LIBALUT], |
|---|
| 212 | | [ac_cv_has_alutInitWithoutContext], |
|---|
| 213 | | [AC_TRY_LINK([#include <AL/alut.h> ], |
|---|
| 214 | | [alutInitWithoutContext(0, 0);], |
|---|
| 215 | | [ac_cv_has_alutInitWithoutContext='yes'], |
|---|
| 216 | | [ac_cv_has_alutInitWithoutContext='no'])]) |
|---|
| 217 | | |
|---|
| 218 | | AC_CACHE_CHECK([for aluGetError() in $LIBALUT], |
|---|
| 219 | | [ac_cv_has_alutGetError], |
|---|
| 220 | | [AC_TRY_LINK([#include <AL/alut.h> ], |
|---|
| 221 | | [alutGetError();], |
|---|
| 222 | | [ac_cv_has_alutGetError='yes'], |
|---|
| 223 | | [ac_cv_has_alutGetError='no'])]) |
|---|
| 224 | | |
|---|
| 225 | | AC_CACHE_CHECK([for alutLoadMemoryFromFile() in $LIBALUT], |
|---|
| 226 | | [ac_cv_has_alutLoadMemoryFromFile], |
|---|
| 227 | | [AC_TRY_LINK([#include <AL/alut.h> ], |
|---|
| 228 | | [alutLoadMemoryFromFile("test", 0, 0, 0);], |
|---|
| 229 | | [ac_cv_has_alutLoadMemoryFromFile='yes'], |
|---|
| 230 | | [ac_cv_has_alutLoadMemoryFromFile='no'])]) |
|---|
| 231 | | |
|---|
| 232 | | DPP_LANG_RESTORE |
|---|
| 233 | | |
|---|
| 234 | | CFLAGS="$snxsave_CFLAGS" |
|---|
| 235 | | CPPFLAGS="$snxsave_CPPFLAGS" |
|---|
| 236 | | LDFLAGS="$snxsave_LDFLAGS" |
|---|
| 237 | | LIBS="$snxsave_LIBS" |
|---|
| 238 | | |
|---|
| 239 | | if test "x$ac_cv_has_alutInitWithoutContext" = "xyes" ; then |
|---|
| 240 | | AC_DEFINE(HAVE_ALUT_INIT_WITHOUT_CONTEXT, , |
|---|
| 241 | | [Define if alutInitWithoutContext() is available]) |
|---|
| 242 | | fi |
|---|
| 243 | | |
|---|
| 244 | | if test "x$ac_cv_has_alutGetError" = "xyes" ; then |
|---|
| 245 | | AC_DEFINE(HAVE_ALUT_GET_ERROR, , |
|---|
| 246 | | [Define if alutGetError() is available]) |
|---|
| 247 | | fi |
|---|
| 248 | | |
|---|
| 249 | | if test "x$ac_cv_has_alutLoadMemoryFromFile" = "xyes" ; then |
|---|
| 250 | | AC_DEFINE(HAVE_ALUT_LOAD_MEMORY_FROM_FILE, , |
|---|
| 251 | | [Define if alutLoadMemoryFromFile() is available]) |
|---|
| 252 | | fi |
|---|
| | 269 | LDFLAGS="$snxsave_LDFLAGS" |
|---|
| | 270 | LIBS="$snxsave_LIBS" |
|---|
| | 271 | |
|---|
| | 272 | if test "x$ac_cv_has_alutInitWithoutContext" = "xyes" ; then |
|---|
| | 273 | AC_DEFINE(HAVE_ALUT_INIT_WITHOUT_CONTEXT, , |
|---|
| | 274 | [Define if alutInitWithoutContext() is available]) |
|---|
| | 275 | fi |
|---|
| | 276 | |
|---|
| | 277 | if test "x$ac_cv_has_alutGetError" = "xyes" ; then |
|---|
| | 278 | AC_DEFINE(HAVE_ALUT_GET_ERROR, , |
|---|
| | 279 | [Define if alutGetError() is available]) |
|---|
| | 280 | fi |
|---|
| | 281 | |
|---|
| | 282 | if test "x$ac_cv_has_alutLoadMemoryFromFile" = "xyes" ; then |
|---|
| | 283 | AC_DEFINE(HAVE_ALUT_LOAD_MEMORY_FROM_FILE, , |
|---|
| | 284 | [Define if alutLoadMemoryFromFile() is available]) |
|---|