audiod_ldflags="$audiod_ldflags $SSL_LDFLAGS $SSL_LIBS"
########################################################################### ucred
-
AC_MSG_CHECKING(for struct ucred)
AC_TRY_LINK([
#include <sys/types.h>
AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on Mac Os X)
fi
########################################################################### gtk2
-
pkg_modules="gtk+-2.0 >= 2.0.0"
build_para_krell="yes"
PKG_CHECK_MODULES(GTK, [$pkg_modules], [], [build_para_krell="no"])
else
AC_MSG_WARN([can not build para_krell])
fi
-
########################################################################### sdl
# FIXME
AC_CHECK_LIB([SDL_image], [SDL_Init], [extras="$extras para_sdl_gui"], [
have_mysql="yes"
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
AC_ARG_WITH(mysql_headers, [AC_HELP_STRING(--with-mysql-headers=dir,
[look for mysql.h also in dir])])
if test -n "$with_mysql_headers"; then
fi
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
########################################################################### ogg
have_ogg="yes"
-AC_CHECK_LIB([ogg], [ogg_stream_init], [], [
- have_ogg="no"
-])
-AC_CHECK_LIB([vorbis], [vorbis_info_init], [], [
- have_ogg="no"
-])
-AC_CHECK_HEADERS([ogg/ogg.h vorbis/codec.h], [], [
- have_ogg="no"
-])
+OLD_CPPFLAGS="$CPPFLAGS"
+OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
+AC_ARG_WITH(oggvorbis_headers, [AC_HELP_STRING(--with-oggvorbis-headers=dir,
+ [look for vorbis/codec.h also in dir])])
+if test -n "$with_oggvorbis_headers"; then
+ oggvorbis_cppflags="-I$with_oggvorbis_headers"
+ CPPFLAGS="$CPPFLAGS $oggvorbis_cppflags"
+fi
+AC_ARG_WITH(oggvorbis_libs, [AC_HELP_STRING(--with-oggvorbis-libs=dir,
+ [look for oggvorbis libs also in dir])])
+if test -n "$with_oggvorbis_libs"; then
+ oggvorbis_libs="-L$with_oggvorbis_libs"
+ LDFLAGS="$LDFLAGS $oggvorbis_libs"
+fi
+
+AC_CHECK_LIB([ogg], [ogg_stream_init], [], [ have_ogg="no" ])
+AC_CHECK_LIB([vorbis], [vorbis_info_init], [], [ have_ogg="no" ])
+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"
- server_ldflags="$server_ldflags -logg -lvorbis -lvorbisfile"
- filter_ldflags="$filter_ldflags -lvorbis -lvorbisfile"
- audiod_ldflags="$audiod_ldflags -lvorbis -lvorbisfile"
+ 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"
filter_cmdline_objs="$filter_cmdline_objs oggdec_filter.cmdline"
audiod_cmdline_objs="$audiod_cmdline_objs oggdec_filter.cmdline"
audiod_audio_formats="ogg"
server_audio_formats="$server_audio_formats ogg"
filter_filters="$filter_filters oggdec"
+ AC_SUBST(oggvorbis_cppflags)
+ AC_SUBST(oggvorbis_libs)
else
AC_MSG_WARN([no ogg vorbis support in para_server/para_filter])
fi
+CPPFLAGS="$OLD_CPPFLAGS"
+LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
########################################################################### faad
have_faad=yes
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
AC_ARG_WITH(faad_headers, [AC_HELP_STRING(--with-faad-headers=dir,
[look for neaacdec.h also in dir])])
if test -n "$with_faad_headers"; then
fi
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
########################################################################### mad
have_mad="yes"
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
+
AC_ARG_WITH(mad_headers, [AC_HELP_STRING(--with-mad-headers=dir,
[look for mad.h also in dir])])
if test -n "$with_mad_headers"; then
fi
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
########################################################################### alsa
have_alsa="yes"
+OLD_CPPFLAGS="$CPPFLAGS"
+OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
msg="=> no alsa support for para_audiod/para_write"
AC_CHECK_HEADERS([alsa/asoundlib.h], [], [
AC_MSG_WARN([no alsa/asoundlib $msg])
write_ldflags="$write_ldflags -lasound"
writers="$writers alsa"
fi
+CPPFLAGS="$OLD_CPPFLAGS"
+LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
########################################################################### ortp
have_ortp="yes"
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
AC_ARG_WITH(ortp_headers, [AC_HELP_STRING(--with-ortp-headers=dir,
[look for ortp/ortp.h also in dir])])
if test -n "$with_ortp_headers"; then
fi
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
########################################################################### zmw
build_slider="yes"
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LD_FLAGS="$LDFLAGS"
+OLD_LIBS="$LIBS"
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.4], [], [build_slider="no"])
CPPFLAGS="$GTK_CFLAGS $GLIB_CFLAGS"
LDFLAGS="$LDFLAGS $GTK_LIBS"
fi
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
+LIBS="$OLD_LIBS"
AC_OUTPUT
AC_MSG_NOTICE([creating Makefile.deps])
-gcc -MM -MG $mysql_cppflags $faad_cppflags $mad_cppflags $ortp_cppflags *.c > Makefile.deps
+gcc -MM -MG $mysql_cppflags $faad_cppflags $mad_cppflags $ortp_cppflags $oggvorbis_cppflags *.c > Makefile.deps
AC_MSG_NOTICE([
paraslash configuration:
~~~~~~~~~~~~~~~~~~~~~~~~