X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=configure.ac;h=fd01b188885cbb8d8d5b06b1190d7cb41d7b91e4;hp=cb7ad163536eaaf8c7edfdaa4618248702e612f3;hb=c0b370bfc250a599e88b482978c6c50206f7e4a5;hpb=e427612b561782af169327d46ef4df4a398e0c38 diff --git a/configure.ac b/configure.ac index cb7ad163..fd01b188 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,14 @@ AC_PREREQ(2.60) AC_INIT(paraslash, [git], maan@systemlinux.org) AC_CONFIG_HEADER([config.h]) -########################################################################### generic +AC_PATH_PROG(UNAMEPATH, uname, no) +if test "$UNAMEPATH" = "no"; then + AC_MSG_ERROR(unable to determine system type) +fi +AC_MSG_CHECKING(os type) +OSTYPE="`$UNAMEPATH -s`" +AC_MSG_RESULT("$OSTYPE") + AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL @@ -278,6 +285,9 @@ AC_CHECK_HEADERS([ogg/ogg.h vorbis/codec.h], [], [ have_ogg="no" ]) if test "$have_ogg" = "yes"; then AC_DEFINE(HAVE_OGGVORBIS, 1, define to 1 to turn on ogg vorbis support) filters="$filters oggdec" + if test "$OSTYPE" = "Darwin"; then + oggvorbis_libs="-Wl,-bind_at_load $oggvorbis_libs" + fi server_ldflags="$server_ldflags $oggvorbis_libs -logg -lvorbis -lvorbisfile" filter_ldflags="$filter_ldflags $oggvorbis_libs -lvorbis -lvorbisfile" audiod_ldflags="$audiod_ldflags $oggvorbis_libs -lvorbis -lvorbisfile"