X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.ac;h=dd4aeccb436f8ad7cc02e4422e63ec424b5c2603;hb=7d18f9bddedba156662da72e2386b00a6d29bf76;hp=9d448213a0bca1f2abb0befe32a1798ed45dd79a;hpb=bd85fa24577a3211a144f7ef3859825e15a4f0cf;p=simgear.git diff --git a/configure.ac b/configure.ac index 9d448213..dd4aeccb 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) +AM_INIT_AUTOMAKE(SimGear, 0.3.7-pre1) dnl Specify KAI C++ compiler and flags. dnl Borrowed with slight modification from blitz distribution. @@ -270,7 +270,35 @@ esac opengl_LIBS="$LIBS" LIBS="$base_LIBS" +dnl check for OpenAL libraries +case "${host}" in +*-*-cygwin* | *-*-mingw32*) + dnl CygWin under Windoze. + + AC_SEARCH_LIBS(alGenBuffers, openal32) + AC_SEARCH_LIBS(alutInit, [ openal32 ALut ] ) + LIBS="$LIBS -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)