head 1.12; access; symbols adns_1_0:1.1.1.4 adns_0_9:1.1.1.3 adns_0_8:1.1.1.2 adns_0_7:1.1.1.1 adns_0_6:1.1.1.1 vendor:1.1.1; locks; strict; comment @# @; 1.12 date 2000.09.19.15.55.21; author rse; state Exp; branches; next 1.11; 1.11 date 2000.08.12.12.01.15; author rse; state Exp; branches; next 1.10; 1.10 date 2000.05.08.14.10.25; author rse; state Exp; branches; next 1.9; 1.9 date 2000.03.02.09.48.53; author rse; state Exp; branches; next 1.8; 1.8 date 99.12.03.18.36.59; author rse; state Exp; branches; next 1.7; 1.7 date 99.11.30.16.54.24; author rse; state Exp; branches; next 1.6; 1.6 date 99.11.30.16.52.36; author rse; state Exp; branches; next 1.5; 1.5 date 99.11.30.16.33.59; author rse; state Exp; branches; next 1.4; 1.4 date 99.11.30.16.21.56; author rse; state Exp; branches; next 1.3; 1.3 date 99.11.30.16.06.50; author rse; state Exp; branches; next 1.2; 1.2 date 99.11.30.15.51.13; author rse; state Exp; branches; next 1.1; 1.1 date 99.11.30.15.42.25; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.11.30.15.42.25; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2000.05.08.14.05.32; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2000.08.12.11.35.14; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2000.09.19.15.46.53; author rse; state Exp; branches; next ; desc @@ 1.12 log @Merge in conflicts @ text @# configure.in - input to autoconf # # This file is # Copyright (C) 1997-2000 Ian Jackson # # It is part of adns, which is # Copyright (C) 1997-2000 Ian Jackson # Copyright (C) 1999-2000 Tony Finch # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program 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 General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. AC_PREREQ(2.12)dnl AC_REVISION([1.0]) ADNS_VERSION=`./shtool version -l txt -d long VERSION` AC_SUBST(ADNS_VERSION) ./shtool echo -e "Configuring %BADNS%b (Asynchronous DNS), Version %B${ADNS_VERSION}%b" echo "Copyright (c) 1997-2000 Ian Jackson " echo "" AC_INIT(adns.h) AC_CONFIG_HEADER(adns_config.h) AC_SET_MAKE AC_PROG_CC AC_PROG_CPP AC_PROG_LIBTOOL AC_CHECK_FUNCS(poll) ADNS_C_GETFUNC(socket,socket) ADNS_C_GETFUNC(inet_ntoa,nsl) AC_MSG_CHECKING(for INADDR_LOOPBACK) AC_CACHE_VAL(adns_cv_decl_inaddrloopback,[ AC_TRY_COMPILE([ #include #include #include ],[ INADDR_LOOPBACK; ], adns_cv_decl_inaddrloopback=yes, adns_cv_decl_inaddrloopback=no)]) if test "$adns_cv_decl_inaddrloopback" = yes; then AC_MSG_RESULT(found) else AC_MSG_RESULT([not in standard headers, urgh...]) AC_CHECK_HEADER(rpc/types.h,[ AC_DEFINE(HAVEUSE_RPCTYPES_H) ],[ AC_MSG_ERROR([cannot find INADDR_LOOPBACK or rpc/types.h]) ]) fi ADNS_C_GETFUNC(inet_aton,resolv,[ LIBS="-lresolv $LIBS"; AC_MSG_WARN([inet_aton is in libresolv, urgh. Must use -lresolv.]) ]) DPKG_CACHED_TRY_COMPILE(inlines,dpkg_cv_c_inline,, [} inline int foo (int x) {], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_INLINE), AC_MSG_RESULT(no)) ADNS_C_GCCATTRIB AC_CHECK_HEADERS(sys/select.h) AC_SUBST(WARNS) if test "${GCC-no}" = yes; then WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith" else WARNS= fi AC_SUBST(SHLIBCC) AC_SUBST(MKSHLIB_1) AC_SUBST(MKSHLIB_2) AC_SUBST(MKSHLIB_3) AC_SUBST(SHLIBFORLINK) AC_SUBST(SHLIBFILE) AC_SUBST(SHLIBSONAME) SHLIBFORLINK='libadns.so' SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' SHLIBFILE='$(SHLIBSONAME).$(MINOR)' SHLIBCC='$(CC) $(CFLAGS) -fpic' MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o' MKSHLIB_2='' MKSHLIB_3='-lc' AC_OUTPUT( Makefile dnl adns-config dnl , chmod a+x adns-config ) @ 1.11 log @- merge in conflicts of upgrade to ADNS 0.9 - upgrade to GNU shtool 1.5.1 - upgrade to GNU libtool 1.3.5 - replace LIST_ stuff with ADNS_LIST_ to avoid conflicts with FreeBSD @ text @d8 1 a8 1 # Copyright (C) 1999 Tony Finch d71 6 d78 1 @ 1.10 log @Resolve conflicts with ADNS 0.8 @ text @d4 1 a4 1 # Copyright (C) 1997-1999 Ian Jackson @ 1.9 log @*** empty log message *** @ text @d7 1 a7 1 # Copyright (C) 1997-1999 Ian Jackson @ 1.8 log @*** empty log message *** @ text @d30 1 a30 1 echo "Copyright (c) 1997-1999 Ian Jackson " @ 1.7 log @*** empty log message *** @ text @d30 1 a30 1 echo "Copyright (c) 1997-1999 Ian Hackson " @ 1.6 log @*** empty log message *** @ text @d29 1 a29 1 ./shtool echo -e "Configuring %BADNS%b (Asynchronous DNS Library), Version %B${ADNS_VERSION}%b" @ 1.5 log @Add adns-config @ text @d27 1 a27 1 ADNS_VERSION=`cat VERSION` @ 1.4 log @*** empty log message *** @ text @d27 3 a29 2 V=`cat VERSION` ./shtool echo -e "Configuring %BADNS%b (Asynchronous DNS Library), Version %B${V}%b" a37 2 AC_CHECK_PROG(AR, ar, ar) AC_PROG_RANLIB d100 4 a103 1 Makefile @ 1.3 log @Switch to use GNU libtool @ text @d24 8 @ 1.2 log @Adjust sources for OSSP source tree layout @ text @d31 1 @ 1.1 log @Initial revision @ text @d24 3 a26 2 AC_INIT(src/adns.h) AC_CONFIG_HEADER(src/config.h) d29 1 a35 9 PROGS_IF_TSEARCH=adnsresfilter AC_SUBST(PROGS_HAVE_TSEARCH) AC_CHECK_FUNC(tsearch,[ PROGS_HAVE_TSEARCH=$PROGS_IF_TSEARCH ],[ PROGS_HAVE_TSEARCH=''; AC_MSG_WARN([tsearch missing - not building client program(s) $PROGS_IF_TSEARCH]) ]) d92 1 a92 2 settings.make Makefile src/Makefile client/Makefile dynamic/Makefile regress/Makefile @ 1.1.1.1 log @Import of adns 0.6; adjusted for OSSP @ text @@ 1.1.1.2 log @Import of ADNS 0.8 @ text @d7 1 a7 1 # Copyright (C) 1997-2000 Ian Jackson @ 1.1.1.3 log @Import of ADNS 0.9 @ text @d4 1 a4 1 # Copyright (C) 1997-2000 Ian Jackson a25 23 AC_MSG_CHECKING(whether you requested dynamic linking) AC_SUBST(ENABLE_DYNAMIC) AC_ARG_ENABLE(dynamic, [ --disable-dynamic use static linking --enable-dynamic[=elf] create and use ELF dynamic library (default)], [ case "$enableval" in elf|yes) ENABLE_DYNAMIC=elf AC_MSG_RESULT([yes (ELF)]) ;; no) ENABLE_DYNAMIC=no AC_MSG_RESULT(no) ;; *) AC_MSG_ERROR( ["invalid value $enableval for --enable-dynamic, try yes or elf"]) ;; esac ],[ ENABLE_DYNAMIC=yes AC_MSG_RESULT([yes, by default]) ]) a28 1 AC_PROG_INSTALL @ 1.1.1.4 log @Import of ADNS 1.0 @ text @d8 1 a8 1 # Copyright (C) 1999-2000 Tony Finch a26 15 dnl DPKG_CACHED_TRY_COMPILE(,,,,,) define(DPKG_CACHED_TRY_COMPILE,[ AC_MSG_CHECKING($1) AC_CACHE_VAL($2,[ AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no]) ]) if test "x$$2" = xyes; then true $5 else true $6 fi ]) d45 1 a45 1 ENABLE_DYNAMIC=elf a93 6 DPKG_CACHED_TRY_COMPILE(inlines,dpkg_cv_c_inline,, [} inline int foo (int x) {], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_INLINE), AC_MSG_RESULT(no)) a94 1 AC_CHECK_HEADERS(sys/select.h) @