diff --git a/configure.in b/configure.in index 214eff05..37e4dfc2 100644 --- a/configure.in +++ b/configure.in @@ -73,6 +73,20 @@ AC_ARG_ENABLE(shots,[ --enable-shots Enable screenshot support],[ fi ],) +dnl Some host detection and actions for them +case "$target" in + *-*-cygwin* | *-*-mingw32*) + LIBS="$LIBS -lwinmm" + ;; + darwin*) + dnl We have a problem here: both MacOS X and Darwin report + dnl the same signature "powerpc-apple-darwin*" - so we have + dnl to do more to distinguish them. + dnl For now I am lazy and do not add proper detection code. + AC_DEFINE(MACOSX, 1, [Compiling on Mac OS X]) + LIBS="$LIBS -framework AudioUnit" + ;; +esac AC_OUTPUT([