48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
AC_INIT(src/DarkIce.cpp)
|
|
AM_INIT_AUTOMAKE(darkice, 0.6)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AC_PROG_CXX
|
|
AC_PROG_INSTALL
|
|
|
|
dnl AC_STDC_HEADERS
|
|
AC_HAVE_HEADERS(errno.h fcntl.h stdio.h stdlib.h string.h unistd.h limits.h)
|
|
AC_HAVE_HEADERS(signal.h time.h sys/time.h sys/types.h sys/wait.h)
|
|
AC_HAVE_HEADERS(netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/stat.h)
|
|
AC_HAVE_HEADERS(sched.h)
|
|
AC_HAVE_HEADERS(sys/soundcard.h sys/audio.h)
|
|
AC_HEADER_SYS_WAIT()
|
|
|
|
AC_CHECK_HEADERS(lame/lame.h)
|
|
AC_CHECK_HEADERS(vorbis/vorbisenc.h)
|
|
|
|
AC_TYPE_PID_T()
|
|
AC_TYPE_SIZE_T()
|
|
|
|
AC_SUBST(LINK_STATIC)
|
|
|
|
AC_CHECK_LIB( socket, socket)
|
|
AC_CHECK_LIB( nsl, gethostbyname)
|
|
AC_CHECK_LIB( rt, sched_getscheduler)
|
|
AC_CHECK_LIB( ogg, ogg_stream_init)
|
|
AC_CHECK_LIB( vorbis, vorbis_info_init)
|
|
AC_CHECK_LIB( vorbisenc, vorbis_encode_init)
|
|
AC_CHECK_LIB( mp3lame, lame_init)
|
|
|
|
AC_ARG_ENABLE( static,
|
|
[ --enable-static link everything into the executable statically [no]],
|
|
CONFIG_LINK_STATIC="${enableval}", CONFIG_LINK_STATIC="")
|
|
if test "${CONFIG_LINK_STATIC}" != "yes" ; then
|
|
LINK_STATIC=""
|
|
AC_MSG_RESULT( "creating dinamically linked executable")
|
|
else
|
|
LINK_STATIC="--static"
|
|
AC_MSG_RESULT( "creating statically linked executable")
|
|
fi
|
|
|
|
|
|
AC_OUTPUT(Makefile src/Makefile man/Makefile)
|
|
|