X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=configure.in;h=747d901c457c3113c08312c5bc2ebf11c2c4cf1b;hp=a548dac4fe50d33095ac33dcf025b076a16c0a09;hb=e42d5acf494ed76046f0c63ad4a13ae2a0c473c8;hpb=4ff0a42ff7efe5cc1b36e9c5ff930609b3f56b86 diff --git a/configure.in b/configure.in index a548dac..747d901 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. sinclude(ac_prog_cc_no_writeable_strings.m4) -AC_INIT(secnet,0.1.16+,secnet@chiark.greenend.org.uk) +AC_INIT(secnet,0.1.18+,secnet@chiark.greenend.org.uk) AC_CONFIG_SRCDIR(secnet.c) AC_CONFIG_HEADER(config.h) @@ -11,6 +11,14 @@ AC_REVISION($Id: configure.in,v 1.4 2002/09/09 22:05:02 steve Exp $) AC_LANG_C +# If fink is on the path then it is assumed we should use it. +AC_PATH_PROG([FINK],[fink]) +if test "x$FINK" != x; then + finkdir=`echo $FINK|sed 's,/[[^/]]*/[[^/]]*$,,'` + CPPFLAGS="-I$finkdir/include ${CPPFLAGS}" + LDFLAGS="-L$finkdir/lib ${LDFLAGS}" +fi + AC_PROG_MAKE_SET AC_PROG_CC AC_PROG_INSTALL @@ -62,9 +70,6 @@ AC_CHECK_LIB(resolv,inet_aton) AC_CHECK_LIB(adns,adns_init) REQUIRE_HEADER([adns.h]) -dnl check for getopt in standard library -AC_REPLACE_FUNCS([snprintf]) - AC_OUTPUT(Makefile,echo timestamp >stamp-h) AH_TOP([ @@ -124,12 +129,6 @@ typedef unsigned char uint8_t; #endif #endif -#ifndef HAVE_SNPRINTF -#include -#include -#include "snprintf.h" -#endif - #ifdef __GNUC__ #define NORETURN(_x) void _x __attribute__ ((noreturn)) #define FORMAT(_a,_b,_c) __attribute__ ((format (_a,_b,_c)))