X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.ac;h=7a87af310795cfd6459151cec4ddf4693b6b3597;hb=1436be9699975796ef80fa23e75d3442fe7aaaa7;hp=c4ff82b5b60d1201216b2716a0113b63942f0a38;hpb=430136fdc910001878e715358e21ca78a9ea4756;p=simgear.git diff --git a/configure.ac b/configure.ac index c4ff82b5..7a87af31 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ dnl Require at least automake 2.52 AC_PREREQ(2.52) dnl Initialize the automake stuff -AM_INIT_AUTOMAKE(SimGear, 0.3.5.pre2) +AM_INIT_AUTOMAKE(SimGear, 0.3.5) dnl Specify KAI C++ compiler and flags. dnl Borrowed with slight modification from blitz distribution. @@ -270,7 +270,33 @@ esac opengl_LIBS="$LIBS" LIBS="$base_LIBS" +dnl check for OpenAL libraries +case "${host}" in +*-*-cygwin* | *-*-mingw32*) + dnl CygWin under Windoze. + + LIBS="$LIBS -lalut -lopenal32 -lwinmm -ldsound -ldxguid -lole32" + ;; + +*-apple-darwin*) + dnl Mac OS X + + LIBS="$LIBS -framework IOKit -framework OpenAL" + ;; + +*) + dnl default unix style machines + + AC_SEARCH_LIBS(alGenBuffers, openal) + ;; + +esac + +openal_LIBS="$LIBS" +LIBS="$base_LIBS" + AC_SUBST(base_LIBS) +AC_SUBST(openal_LIBS) AC_SUBST(opengl_LIBS) AC_SUBST(thread_LIBS) AC_SUBST(network_LIBS)