Parent:
[b5cb88]
(diff)
Child:
[600e7d]
(diff)
Download this file
configure.ac
79 lines (66 with data), 2.5 kB
AC_INIT([sc2mpd], [1.1.3], [jf@dockes.org],
[sc2mpd], [http://www.lesbonscomptes.com/upmpdcli])
AC_PREREQ([2.53])
AC_CONFIG_SRCDIR([sc2src/sc2mpd.cpp])
AC_CONFIG_HEADERS([sc2src/config.h])
AH_BOTTOM([#include "sc2src/conf_post.h"])
AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign])
AC_PROG_CXX
AC_C_BIGENDIAN
AC_ARG_WITH(openhome,
AC_HELP_STRING([--with-openhome=topOpenhomeDir],
[Set the path for the directory where ohNet, ohNetGenerated, ohdevtools,
ohTopology and ohSongcast were extracted and built]),
withOH=$withval, withOH=no)
TOPOH="$withOH"
AM_CONDITIONAL(WITH_OHBUILD, [test X$withOH != Xno])
AC_SUBST(TOPOH)
AC_ARG_WITH(ohnet,
AC_HELP_STRING([--with-ohnet=topOhNetDir],
[Specify dir prefix where ohNet is installed]),
withOhNet=$withval, withOhNet=no)
TOPOHNET="$withOhNet"
AC_SUBST(TOPOHNET)
AC_ARG_WITH(ohnetgenerated,
AC_HELP_STRING([--with-ohnetgenerated=topOhNetGeneratedDir],
[Specify dir prefix where ohNetGenerated is installed]),
withOhNetGenerated=$withval, withOhNetGenerated=no)
TOPOHNETGENERATED="$withOhNetGenerated"
AC_SUBST(TOPOHNETGENERATED)
AC_ARG_WITH(ohsongcast,
AC_HELP_STRING([--with-ohsongcast=topOhSongcastDir],
[Specify dir prefix where ohSongcast is installed]),
withOhSongcast=$withval, withOhSongcast=no)
TOPOHSONGCAST="$withOhSongcast"
AC_SUBST(TOPOHSONGCAST)
if test X$withOH = Xno -a X$ohnet = Xno; then
AC_MSG_ERROR([Please provide the location for the OpenHome sources and libraries])
fi
# Enable wav-reading test code in sc2mpd. Devel only
AC_ARG_ENABLE(wavsc2,
AC_HELP_STRING([--enable-wavsc2],
[Enable wav-reading code in sc2mpd.]),
wavsc2Enabled=$enableval, wavsc2Enabled=no)
AM_CONDITIONAL(WAVSC2, [test X$wavsc2Enabled = Xyes])
AC_CHECK_HEADERS([byteswap.h])
AC_CHECK_LIB([pthread], [pthread_create], , [lpthread=no])
if test X$lpthread = Xno; then
AC_MSG_ERROR([pthread_create not found in -lpthread])
fi
AC_CHECK_LIB([microhttpd], [MHD_start_daemon], , [lmh=no])
if test X$lmh = Xno; then
AC_MSG_ERROR([libmicrohttpd development files not found])
fi
AC_CHECK_LIB([samplerate], [src_process], , [lsrc=no])
if test X$lsrc = Xno; then
AC_MSG_ERROR([libsamplerate development files not found])
fi
AC_CHECK_LIB([asound], [snd_pcm_open], , [lsnd=no])
if test X$lsnd = Xno; then
AC_MSG_ERROR([libasound development files not found])
fi
OTHERLIBS=$LIBS
echo OTHERLIBS $OTHERLIBS
AC_SUBST(OTHERLIBS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT