X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=configure.ac;h=696903e91cab32b218d38147578a821a189e6f74;hp=342b45f8eeacca06ff7a6d3850e6db5e2bf55696;hb=a9c2ae91bede96794a36ca652c06b64766304c73;hpb=b231b42cc444c7083da044b57ae2a7012d5f0c79 diff --git a/configure.ac b/configure.ac index 342b45f..696903e 100644 --- a/configure.ac +++ b/configure.ac @@ -1,34 +1,33 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -# This file is part of avahi. +# This file is part of catta. # -# avahi is free software; you can redistribute it and/or modify it +# catta is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # -# avahi is distributed in the hope that it will be useful, but WITHOUT +# catta is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public -# License along with avahi; if not, write to the Free Software +# License along with catta; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. 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_MACRO_DIR([common]) +AC_INIT([catta],[0.1],[]) +AC_CONFIG_SRCDIR([src/server.c]) +AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) -AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax]) +AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects]) -AC_SUBST(PACKAGE_URL, [http://avahi.org/]) +AC_SUBST(PACKAGE_URL, [http://github.com/everbase/catta/]) -AC_SUBST(LIBAVAHI_COMMON_VERSION_INFO, [8:3:5]) -AC_SUBST(LIBAVAHI_CORE_VERSION_INFO, [7:2:0]) +AC_SUBST(LIBCATTA_VERSION_INFO, [0:0:0]) AC_CANONICAL_HOST @@ -56,6 +55,17 @@ if test x"$ac_cv_prog_cc_c99" = x"no"; then AC_MSG_ERROR([C99 support is required]) fi +# Windows stuff +AC_CHECK_DECL(_WIN32) +AM_CONDITIONAL([WINDOWS], [ test "x$ac_cv_have_decl__WIN32" = "xyes" ]) +if test "x$ac_cv_have_decl__WIN32" = "xyes" ; then + CPPFLAGS="$CPPFLAGS -I`pwd`/src/compat/windows/include" +fi +AC_CHECK_MEMBER([struct in_pktinfo.ipi_spec_dst], + AC_DEFINE([HAVE_IPI_SPEC_DST], [], [struct in_pktinfo has ipi_spec_dst member]), + [], + [[#include ]]) + # -fstack-protector AC_ARG_ENABLE([stack-protector], [AS_HELP_STRING([--disable-stack-protector], @@ -199,14 +209,14 @@ AM_CONDITIONAL(HAVE_SYS_SYSCTL_H, [ test x"$HAVE_SYS_SYSCTL_H" = xyes ]) # Check for lifconf struct; only present on Solaris # AC_MSG_CHECKING(for struct lifconf) -AC_CACHE_VAL(avahi_cv_has_struct_lifconf, +AC_CACHE_VAL(catta_cv_has_struct_lifconf, [AC_TRY_COMPILE( [#include #include ],[sizeof (struct lifconf);], -avahi_cv_has_struct_lifconf=yes,avahi_cv_has_struct_lifconf=no)]) -AC_MSG_RESULT($avahi_cv_has_struct_lifconf) -if test $avahi_cv_has_struct_lifconf = yes; then +catta_cv_has_struct_lifconf=yes,catta_cv_has_struct_lifconf=no)]) +AC_MSG_RESULT($catta_cv_has_struct_lifconf) +if test $catta_cv_has_struct_lifconf = yes; then AC_DEFINE(HAVE_STRUCT_LIFCONF,1,[Define if there is a struct lifconf.]) fi @@ -263,7 +273,7 @@ if test "x$GCC" = "xyes" ; then fi # Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h netdb.h syslog.h]) +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]) @@ -272,7 +282,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h sys/ioctl.h sys/socket.h sys/ # Checks for library functions. AC_FUNC_SELECT_ARGTYPES -AC_CHECK_FUNCS([gethostname mkdir select socket strdup 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 fcntl]) AC_FUNC_CHOWN AC_FUNC_STAT @@ -305,7 +315,7 @@ DX_RTF_FEATURE(OFF) DX_XML_FEATURE(ON) DX_PDF_FEATURE(OFF) DX_PS_FEATURE(OFF) -DX_INIT_DOXYGEN(avahi, doxygen.cfg, doxygen) +DX_INIT_DOXYGEN(catta, doxygen.cfg, doxygen) # # Conditionally compile test and example programs @@ -324,10 +334,11 @@ AM_CONDITIONAL([ENABLE_TESTS], [test "x$ENABLE_TESTS" = "xyes"]) # ========================================================================== AC_CONFIG_FILES([ Makefile -avahi-common/Makefile -avahi-core/Makefile +src/Makefile +include/Makefile +tests/Makefile examples/Makefile -common/Makefile +m4/Makefile ]) AC_OUTPUT @@ -335,15 +346,11 @@ AC_OUTPUT echo " ---{ $PACKAGE_NAME $VERSION }--- - prefix: ${prefix} - sysconfdir: ${sysconfdir} - localstatedir: ${localstatedir} - C Compiler: ${CC} - CFLAGS: ${CFLAGS} - Enable stack-smashing protection: ${enable_ssp} -" - -echo "\ - Building libavahi-core yes + prefix: ${prefix} + sysconfdir: ${sysconfdir} + localstatedir: ${localstatedir} + C Compiler: ${CC} + CFLAGS: ${CFLAGS} + Enable stack-smashing protection: ${enable_ssp} Building tests: ${ENABLE_TESTS} "