X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=5dcefae5227284280e060f61345cce26d1bcf653;hb=1a5dff7d166883e99fe1dba62dc3c407a9f7e332;hp=a055f7ae700d485d0b972233bac3d223875c06d4;hpb=ea6d8d4a844b67c7abe4ae58a460d872fe299156;p=catta diff --git a/configure.ac b/configure.ac index a055f7a..5dcefae 100644 --- a/configure.ac +++ b/configure.ac @@ -20,15 +20,14 @@ AC_PREREQ(2.63) AC_INIT([avahi],[0.6.31],[avahi (at) lists (dot) freedesktop (dot) org]) -AC_CONFIG_SRCDIR([avahi-core/server.c]) +AC_CONFIG_SRCDIR([avahi/server.c]) AC_CONFIG_MACRO_DIR([common]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax]) AC_SUBST(PACKAGE_URL, [http://avahi.org/]) -AC_SUBST(LIBAVAHI_COMMON_VERSION_INFO, [8:3:5]) -AC_SUBST(LIBAVAHI_CORE_VERSION_INFO, [7:2:0]) +AC_SUBST(LIBAVAHI_VERSION_INFO, [7:2:0]) AC_CANONICAL_HOST @@ -52,6 +51,10 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_GCC_TRADITIONAL +if test x"$ac_cv_prog_cc_c99" = x"no"; then + AC_MSG_ERROR([C99 support is required]) +fi + # -fstack-protector AC_ARG_ENABLE([stack-protector], [AS_HELP_STRING([--disable-stack-protector], @@ -259,14 +262,7 @@ if test "x$GCC" = "xyes" ; then fi # Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h netdb.h syslog.h]) -AC_HEADER_STDBOOL - -# Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_TYPE_SIZE_T -AC_HEADER_TIME -AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h]) # Solaris stuff AC_SEARCH_LIBS([inet_ntop],[nsl]) @@ -274,13 +270,8 @@ AC_HEADER_SYS_WAIT AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__", [[#include ]]) # Checks for library functions. -AC_FUNC_MEMCMP AC_FUNC_SELECT_ARGTYPES -# avahi_malloc actually returns NULL for avahi_malloc(0), so it does not matter -# whether libc's malloc does too. (Same for realloc.) -#AC_FUNC_MALLOC -#AC_FUNC_REALLOC -AC_CHECK_FUNCS([gethostname memchr memmove memset mkdir select socket strchr strcspn strdup strerror strrchr strspn strstr uname setresuid setreuid setresgid setregid strcasecmp gettimeofday putenv strncasecmp strlcpy gethostbyname seteuid setegid setproctitle getprogname]) +AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy]) AC_FUNC_CHOWN AC_FUNC_STAT @@ -332,8 +323,7 @@ AM_CONDITIONAL([ENABLE_TESTS], [test "x$ENABLE_TESTS" = "xyes"]) # ========================================================================== AC_CONFIG_FILES([ Makefile -avahi-common/Makefile -avahi-core/Makefile +avahi/Makefile examples/Makefile common/Makefile ]) @@ -352,6 +342,5 @@ echo " " echo "\ - Building libavahi-core yes Building tests: ${ENABLE_TESTS} "