annotate src/liblo-0.26/configure.ac @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents e13257ea84a4
children
rev   line source
Chris@4 1 AC_PREREQ(2.57)
Chris@4 2
Chris@4 3 AC_INIT([liblo], [0.26], [liblo-devel@lists.sourceforge.net])
Chris@4 4
Chris@4 5 # libtool version: current:revision:age
Chris@4 6 #
Chris@4 7 # If the library source code has changed at all since the last update, then
Chris@4 8 # increment revision (`c:r:a' becomes `c:r+1:a').
Chris@4 9 #
Chris@4 10 # If any interfaces have been added, removed, or changed since the last update,
Chris@4 11 # increment current, and set revision to 0.
Chris@4 12 #
Chris@4 13 # If any interfaces have been added since the last public release, then
Chris@4 14 # increment age.
Chris@4 15 #
Chris@4 16 # If any interfaces have been removed since the last public release, then set
Chris@4 17 # age to 0.
Chris@4 18 LO_SO_VERSION=7:0:0
Chris@4 19
Chris@4 20 AC_CONFIG_SRCDIR([src/address.c])
Chris@4 21 AM_CONFIG_HEADER([config.h])
Chris@4 22
Chris@4 23 AM_INIT_AUTOMAKE
Chris@4 24
Chris@4 25 AC_ENABLE_STATIC(no)
Chris@4 26 AC_ENABLE_SHARED(yes)
Chris@4 27 AC_SUBST(LO_SO_VERSION)
Chris@4 28
Chris@4 29 # disable support for ipv6.
Chris@4 30 AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable ipv6 support],want_ipv6=yes,)
Chris@4 31 if test "$want_ipv6" = "yes"; then
Chris@4 32 AC_DEFINE(ENABLE_IPV6, 1, Define this to enable ipv6.)
Chris@4 33 fi
Chris@4 34
Chris@4 35 # Checks for programs.
Chris@4 36 AC_PROG_CC
Chris@4 37 AM_PROG_LIBTOOL
Chris@4 38 AM_PROG_CC_C_O
Chris@4 39 AC_CHECK_PROG([DOXYGEN], [doxygen], [doc], [])
Chris@4 40 AC_SUBST(DOXYGEN)
Chris@4 41
Chris@4 42 # Checks for libraries.
Chris@4 43 AC_CHECK_LIB([pthread], [pthread_create])
Chris@4 44 AC_SEARCH_LIBS([recvfrom], [socket])
Chris@4 45 AC_CHECK_FUNC([log], [], [AC_CHECK_LIB([m],[log])])
Chris@4 46
Chris@4 47 # Checks for header files.
Chris@4 48 AC_HEADER_STDC
Chris@4 49 AC_CHECK_HEADERS([netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
Chris@4 50
Chris@4 51 # Checks for typedefs, structures, and compiler characteristics.
Chris@4 52 AC_C_CONST
Chris@4 53 AC_TYPE_SIZE_T
Chris@4 54
Chris@4 55 # Check for features
Chris@4 56 AC_CHECK_FUNC([select], [AC_DEFINE(HAVE_SELECT, [1], [Define to 1 if select() is available.])], [
Chris@4 57 AC_MSG_CHECKING([for select in ws2_32])
Chris@4 58 LIBS="$LIBS -lws2_32"
Chris@4 59 # some winsock2 functions require XP, so WINNT=0x501
Chris@4 60 CFLAGS="$CFLAGS -DWIN32 -D_WIN32_WINNT=0x501"
Chris@4 61 AC_TRY_LINK([#include <winsock2.h>],
Chris@4 62 [select(0,0,0,0,0)],
Chris@4 63 [AC_MSG_RESULT(yes)
Chris@4 64 AC_DEFINE(HAVE_SELECT, [1], [Define to 1 if select() is available.])],
Chris@4 65 [AC_MSG_RESULT(no)])
Chris@4 66 ])
Chris@4 67 AC_CHECK_FUNC([poll], [AC_DEFINE(HAVE_POLL, [1], [Define to 1 if poll() is available.])])
Chris@4 68 AC_CHECK_FUNC([inet_aton], [AC_DEFINE(HAVE_INET_ATON, [1], [Define to 1 if inet_aton() is available.])])
Chris@4 69
Chris@4 70 AC_C_BIGENDIAN([LO_BIGENDIAN="1"], [LO_BIGENDIAN="0"])
Chris@4 71 AC_DEFINE_UNQUOTED(LO_BIGENDIAN, "$LO_BIGENDIAN", [If machine is bigendian])
Chris@4 72 AC_SUBST(LO_BIGENDIAN)
Chris@4 73
Chris@4 74 AC_CONFIG_FILES([
Chris@4 75 Makefile
Chris@4 76 src/Makefile
Chris@4 77 src/tools/Makefile
Chris@4 78 examples/Makefile
Chris@4 79 lo/Makefile
Chris@4 80 lo/lo_endian.h
Chris@4 81 liblo.pc
Chris@4 82 doc/Makefile
Chris@4 83 doc/reference.doxygen
Chris@4 84 build/Makefile
Chris@4 85 ])
Chris@4 86 AC_OUTPUT()