49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
dnl $Id$
|
|
dnl
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
AC_INIT(config.h.in)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
AM_INIT_AUTOMAKE(mt-daapd,0.1.0)
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_CC
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_ARG_ENABLE(debug,Enable debugging features,CPPFLAGS="$CPPFLAGS -DDEBUG -g")
|
|
|
|
dnl Darwin's stupid cpp preprocessor....
|
|
echo Host type is $host
|
|
case $host in
|
|
*darwin*)
|
|
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -DHAVE_SOCKADDR_SA_LEN -DHAVE_SOCKLEN_T";;
|
|
esac
|
|
|
|
dnl Checks for libraries.
|
|
AC_CHECK_LIB(pthread,pthread_create,LDFLAGS="$LDFLAGS -lpthread")
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
AC_HEADER_SYS_WAIT
|
|
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h syslog.h unistd.h \
|
|
sys/filio.h termio.h)
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
AC_HEADER_TIME
|
|
|
|
dnl Checks for library functions.
|
|
AC_PROG_GCC_TRADITIONAL
|
|
AC_FUNC_SETPGRP
|
|
AC_TYPE_SIGNAL
|
|
AC_CHECK_FUNCS(select socket strdup strerror)
|
|
|
|
dnl check to see if we need -lsocket (solaris)
|
|
|
|
V_NETLIBS=""
|
|
AC_CHECK_LIB(socket,socket,V_NETLIBS="-lsocket $V_NETLIBS",,)
|
|
|
|
AC_SUBST(V_NETLIBS)
|
|
|
|
AC_OUTPUT(src/Makefile docs/Makefile Makefile)
|