Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Fixed a few variable return types for some system calls. Made confi…

…gure

  check for ssize_t to make it possible to use that when receiving the send()
  error code. This is necessary to prevent compiler warnings on some systems.

- Made configure create config.h, and all source files now include setup.h that
  might include the proper config.h (or a handicrafted alternative).

- Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
  use 'int' for that.

- automake-ified and libool-ified c-ares. Now it builds libcares as a shared
  lib on most platforms if wanted. (This bloated the size of the release
  archive with another 200K!)

- Makefile.am now uses Makefile.inc for the c sources, h headers and man
  pages, to make it easier for other makefiles to use the exact same set of
  files.

- Adjusted 'maketgz' to use the new automake magic when building distribution
  archives.
  • Loading branch information...
commit d5f3636a52d927ee44fa1686ca284cd32b62a0df 1 parent 55ee00c
Daniel Stenberg authored July 22, 2004
25  CHANGES
... ...
@@ -1,5 +1,30 @@
1 1
   Changelog for the c-ares project
2 2
 
  3
+* July 20
  4
+- Fixed a few variable return types for some system calls. Made configure
  5
+  check for ssize_t to make it possible to use that when receiving the send()
  6
+  error code. This is necessary to prevent compiler warnings on some systems.
  7
+
  8
+- Made configure create config.h, and all source files now include setup.h that
  9
+  might include the proper config.h (or a handicrafted alternative).
  10
+
  11
+- Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
  12
+  use 'int' for that.
  13
+
  14
+- automake-ified and libool-ified c-ares. Now it builds libcares as a shared
  15
+  lib on most platforms if wanted. (This bloated the size of the release
  16
+  archive with another 200K!)
  17
+
  18
+- Makefile.am now uses Makefile.inc for the c sources, h headers and man
  19
+  pages, to make it easier for other makefiles to use the exact same set of
  20
+  files.
  21
+
  22
+- Adjusted 'maketgz' to use the new automake magic when building distribution
  23
+  archives.
  24
+
  25
+- Anyone desires HTML and/or PDF versions of the man pages in the release
  26
+  archives?
  27
+
3 28
 * July 3
4 29
 - Günter Knauf made c-ares build and run on Novell Netware.
5 30
 
57  Makefile.am
... ...
@@ -0,0 +1,57 @@
  1
+AUTOMAKE_OPTIONS = foreign
  2
+
  3
+lib_LTLIBRARIES = libcares.la
  4
+
  5
+man_MANS = $(MANPAGES)
  6
+
  7
+MSVCFILES = vc/adig/adig.dep vc/adig/adig.dsp vc/adig/adig.mak	\
  8
+ vc/adig/adig.plg vc/vc.dsw vc/ahost/ahost.dep vc/ahost/ahost.dsp	\
  9
+ vc/ahost/ahost.mak vc/ahost/ahost.plg vc/areslib/areslib.dep		\
  10
+ vc/areslib/areslib.dsp vc/areslib/areslib.mak vc/areslib/areslib.plg
  11
+
  12
+# adig and ahost are just sample programs and thus not mentioned with the
  13
+# regular sources and headers
  14
+EXTRA_DIST = CHANGES README.cares Makefile.inc adig.c ahost.c $(man_MANS) \
  15
+ $(MSVCFILES)
  16
+
  17
+
  18
+VER=-version-info 0:0:0
  19
+# This flag accepts an argument of the form current[:revision[:age]]. So,
  20
+# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
  21
+# 1.
  22
+#
  23
+# If either revision or age are omitted, they default to 0. Also note that age
  24
+# must be less than or equal to the current interface number.
  25
+#
  26
+# Here are a set of rules to help you update your library version information: 
  27
+#
  28
+# 1.Start with version information of 0:0:0 for each libtool library.
  29
+#
  30
+# 2.Update the version information only immediately before a public release of
  31
+# your software. More frequent updates are unnecessary, and only guarantee
  32
+# that the current interface number gets larger faster.
  33
+#
  34
+# 3.If the library source code has changed at all since the last update, then
  35
+# increment revision (c:r+1:a)
  36
+#
  37
+# 4.If any interfaces have been added, removed, or changed since the last
  38
+# update, increment current, and set revision to 0. (c+1:r=0:a)
  39
+#
  40
+# 5.If any interfaces have been added since the last public release, then
  41
+# increment age. (c:r:a+1)
  42
+#
  43
+# 6.If any interfaces have been removed since the last public release, then
  44
+# set age to 0. (c:r:a=0)
  45
+#
  46
+
  47
+libcares_la_LDFLAGS = $(VER)
  48
+
  49
+# Makefile.inc provides the CSOURCES and HHEADERS defines
  50
+include Makefile.inc
  51
+
  52
+libcares_la_SOURCES = $(CSOURCES) $(HHEADERS)
  53
+
  54
+# where to install the c-ares headers
  55
+libcares_ladir = $(includedir)
  56
+# what headers to install on 'make install':
  57
+libcares_la_HEADERS = ares.h ares_version.h
858  Makefile.in
... ...
@@ -1,79 +1,783 @@
1  
-# $Id$
2  
-
3  
-SHELL=/bin/sh
4  
-INSTALL=@INSTALL@
5  
-RANLIB=@RANLIB@
6  
-VPATH=@srcdir@
7  
-srcdir=@srcdir@
8  
-top_srcdir=@top_srcdir@
9  
-prefix=@prefix@
10  
-exec_prefix=@exec_prefix@
11  
-libdir=@libdir@
12  
-includedir=@includedir@
13  
-mandir=@mandir@
14  
-
15  
-LIB=libcares.a
16  
-CC=@CC@
17  
-CPPFLAGS=@CPPFLAGS@
18  
-CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
19  
-DEFS=@DEFS@
20  
-LDFLAGS=@LDFLAGS@
21  
-LIBS=@LIBS@
22  
-ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
23  
-OBJS=	ares__close_sockets.o ares__get_hostent.o ares__read_line.o \
24  
-	ares_destroy.o ares_expand_name.o ares_fds.o \
25  
-	ares_free_hostent.o ares_free_string.o ares_gethostbyaddr.o \
26  
-	ares_gethostbyname.o ares_init.o ares_mkquery.o ares_parse_a_reply.o \
27  
-	ares_parse_ptr_reply.o ares_process.o ares_query.o ares_search.o \
28  
-	ares_send.o ares_strerror.o ares_timeout.o ares_version.o \
29  
-	ares_expand_string.o ares_cancel.o
30  
-
31  
-MANPAGES= ares_destroy.3 ares_expand_name.3 ares_expand_string.3 ares_fds.3   \
32  
-        ares_free_hostent.3 ares_free_string.3 ares_gethostbyaddr.3	      \
33  
-        ares_gethostbyname.3 ares_init.3 ares_init_options.3 ares_mkquery.3   \
34  
-        ares_parse_a_reply.3 ares_parse_ptr_reply.3 ares_process.3	      \
35  
-        ares_query.3 ares_search.3 ares_send.3 ares_strerror.3 ares_timeout.3 \
36  
-        ares_version.3 ares_cancel.3
37  
-
38  
-$(LIB): ${OBJS}
39  
-	ar cru $@ ${OBJS}
40  
-	${RANLIB} $@
41  
-
42  
-all: $(LIB) demos
43  
-
44  
-demos: adig ahost
45  
-
46  
-tags:
47  
-	etags *.[ch]
48  
-
49  
-adig: adig.o $(LIB)
50  
-	${CC} ${LDFLAGS} -o $@ adig.o $(LIB) ${LIBS}
51  
-
52  
-ahost: ahost.o $(LIB)
53  
-	${CC} ${LDFLAGS} -o $@ ahost.o $(LIB) ${LIBS}
54  
-
55  
-${OBJS}: ares.h ares_dns.h ares_private.h
  1
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
  2
+# @configure_input@
  3
+
  4
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  5
+# 2003, 2004  Free Software Foundation, Inc.
  6
+# This Makefile.in is free software; the Free Software Foundation
  7
+# gives unlimited permission to copy and/or distribute it,
  8
+# with or without modifications, as long as this notice is preserved.
  9
+
  10
+# This program is distributed in the hope that it will be useful,
  11
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  12
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  13
+# PARTICULAR PURPOSE.
  14
+
  15
+@SET_MAKE@
  16
+
  17
+
  18
+SOURCES = $(libcares_la_SOURCES)
  19
+
  20
+srcdir = @srcdir@
  21
+top_srcdir = @top_srcdir@
  22
+VPATH = @srcdir@
  23
+pkgdatadir = $(datadir)/@PACKAGE@
  24
+pkglibdir = $(libdir)/@PACKAGE@
  25
+pkgincludedir = $(includedir)/@PACKAGE@
  26
+top_builddir = .
  27
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  28
+INSTALL = @INSTALL@
  29
+install_sh_DATA = $(install_sh) -c -m 644
  30
+install_sh_PROGRAM = $(install_sh) -c
  31
+install_sh_SCRIPT = $(install_sh) -c
  32
+INSTALL_HEADER = $(INSTALL_DATA)
  33
+transform = $(program_transform_name)
  34
+NORMAL_INSTALL = :
  35
+PRE_INSTALL = :
  36
+POST_INSTALL = :
  37
+NORMAL_UNINSTALL = :
  38
+PRE_UNINSTALL = :
  39
+POST_UNINSTALL = :
  40
+host_triplet = @host@
  41
+DIST_COMMON = README $(am__configure_deps) $(libcares_la_HEADERS) \
  42
+	$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  43
+	$(srcdir)/Makefile.inc $(srcdir)/config.h.in \
  44
+	$(top_srcdir)/configure NEWS config.guess config.sub depcomp \
  45
+	install-sh ltmain.sh missing mkinstalldirs
  46
+subdir = .
  47
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  48
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
  49
+	$(top_srcdir)/configure.ac
  50
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  51
+	$(ACLOCAL_M4)
  52
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  53
+ configure.lineno configure.status.lineno
  54
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  55
+CONFIG_HEADER = config.h
  56
+CONFIG_CLEAN_FILES =
  57
+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(libcares_ladir)"
  58
+libLTLIBRARIES_INSTALL = $(INSTALL)
  59
+LTLIBRARIES = $(lib_LTLIBRARIES)
  60
+libcares_la_LIBADD =
  61
+am__objects_1 = ares_fds.lo ares_process.lo ares_free_hostent.lo \
  62
+	ares_query.lo ares__close_sockets.lo ares_free_string.lo \
  63
+	ares_search.lo ares__get_hostent.lo ares_gethostbyaddr.lo \
  64
+	ares_send.lo ares__read_line.lo ares_gethostbyname.lo \
  65
+	ares_strerror.lo ares_cancel.lo ares_init.lo ares_timeout.lo \
  66
+	ares_destroy.lo ares_mkquery.lo ares_version.lo \
  67
+	ares_expand_name.lo ares_parse_a_reply.lo windows_port.lo \
  68
+	ares_expand_string.lo ares_parse_ptr_reply.lo
  69
+am__objects_2 =
  70
+am_libcares_la_OBJECTS = $(am__objects_1) $(am__objects_2)
  71
+libcares_la_OBJECTS = $(am_libcares_la_OBJECTS)
  72
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
  73
+depcomp = $(SHELL) $(top_srcdir)/depcomp
  74
+am__depfiles_maybe = depfiles
  75
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/ares__close_sockets.Plo \
  76
+@AMDEP_TRUE@	./$(DEPDIR)/ares__get_hostent.Plo \
  77
+@AMDEP_TRUE@	./$(DEPDIR)/ares__read_line.Plo \
  78
+@AMDEP_TRUE@	./$(DEPDIR)/ares_cancel.Plo \
  79
+@AMDEP_TRUE@	./$(DEPDIR)/ares_destroy.Plo \
  80
+@AMDEP_TRUE@	./$(DEPDIR)/ares_expand_name.Plo \
  81
+@AMDEP_TRUE@	./$(DEPDIR)/ares_expand_string.Plo \
  82
+@AMDEP_TRUE@	./$(DEPDIR)/ares_fds.Plo \
  83
+@AMDEP_TRUE@	./$(DEPDIR)/ares_free_hostent.Plo \
  84
+@AMDEP_TRUE@	./$(DEPDIR)/ares_free_string.Plo \
  85
+@AMDEP_TRUE@	./$(DEPDIR)/ares_gethostbyaddr.Plo \
  86
+@AMDEP_TRUE@	./$(DEPDIR)/ares_gethostbyname.Plo \
  87
+@AMDEP_TRUE@	./$(DEPDIR)/ares_init.Plo \
  88
+@AMDEP_TRUE@	./$(DEPDIR)/ares_mkquery.Plo \
  89
+@AMDEP_TRUE@	./$(DEPDIR)/ares_parse_a_reply.Plo \
  90
+@AMDEP_TRUE@	./$(DEPDIR)/ares_parse_ptr_reply.Plo \
  91
+@AMDEP_TRUE@	./$(DEPDIR)/ares_process.Plo \
  92
+@AMDEP_TRUE@	./$(DEPDIR)/ares_query.Plo \
  93
+@AMDEP_TRUE@	./$(DEPDIR)/ares_search.Plo \
  94
+@AMDEP_TRUE@	./$(DEPDIR)/ares_send.Plo \
  95
+@AMDEP_TRUE@	./$(DEPDIR)/ares_strerror.Plo \
  96
+@AMDEP_TRUE@	./$(DEPDIR)/ares_timeout.Plo \
  97
+@AMDEP_TRUE@	./$(DEPDIR)/ares_version.Plo \
  98
+@AMDEP_TRUE@	./$(DEPDIR)/windows_port.Plo
  99
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  100
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  101
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  102
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  103
+	$(AM_CFLAGS) $(CFLAGS)
  104
+CCLD = $(CC)
  105
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  106
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
  107
+SOURCES = $(libcares_la_SOURCES)
  108
+DIST_SOURCES = $(libcares_la_SOURCES)
  109
+man3dir = $(mandir)/man3
  110
+NROFF = nroff
  111
+MANS = $(man_MANS)
  112
+libcares_laHEADERS_INSTALL = $(INSTALL_HEADER)
  113
+HEADERS = $(libcares_la_HEADERS)
  114
+ETAGS = etags
  115
+CTAGS = ctags
  116
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  117
+distdir = $(PACKAGE)-$(VERSION)
  118
+top_distdir = $(distdir)
  119
+am__remove_distdir = \
  120
+  { test ! -d $(distdir) \
  121
+    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  122
+         && rm -fr $(distdir); }; }
  123
+DIST_ARCHIVES = $(distdir).tar.gz
  124
+GZIP_ENV = --best
  125
+distuninstallcheck_listfiles = find . -type f -print
  126
+distcleancheck_listfiles = find . -type f -print
  127
+ACLOCAL = @ACLOCAL@
  128
+AMDEP_FALSE = @AMDEP_FALSE@
  129
+AMDEP_TRUE = @AMDEP_TRUE@
  130
+AMTAR = @AMTAR@
  131
+AR = @AR@
  132
+AUTOCONF = @AUTOCONF@
  133
+AUTOHEADER = @AUTOHEADER@
  134
+AUTOMAKE = @AUTOMAKE@
  135
+AWK = @AWK@
  136
+CC = @CC@
  137
+CCDEPMODE = @CCDEPMODE@
  138
+CFLAGS = @CFLAGS@
  139
+CPP = @CPP@
  140
+CPPFLAGS = @CPPFLAGS@
  141
+CXX = @CXX@
  142
+CXXCPP = @CXXCPP@
  143
+CXXDEPMODE = @CXXDEPMODE@
  144
+CXXFLAGS = @CXXFLAGS@
  145
+CYGPATH_W = @CYGPATH_W@
  146
+DEFS = @DEFS@
  147
+DEPDIR = @DEPDIR@
  148
+ECHO = @ECHO@
  149
+ECHO_C = @ECHO_C@
  150
+ECHO_N = @ECHO_N@
  151
+ECHO_T = @ECHO_T@
  152
+EGREP = @EGREP@
  153
+EXEEXT = @EXEEXT@
  154
+F77 = @F77@
  155
+FFLAGS = @FFLAGS@
  156
+INSTALL_DATA = @INSTALL_DATA@
  157
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
  158
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
  159
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  160
+LDFLAGS = @LDFLAGS@
  161
+LIBOBJS = @LIBOBJS@
  162
+LIBS = @LIBS@
  163
+LIBTOOL = @LIBTOOL@
  164
+LN_S = @LN_S@
  165
+LTLIBOBJS = @LTLIBOBJS@
  166
+MAINT = @MAINT@
  167
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  168
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  169
+MAKEINFO = @MAKEINFO@
  170
+OBJEXT = @OBJEXT@
  171
+PACKAGE = @PACKAGE@
  172
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  173
+PACKAGE_NAME = @PACKAGE_NAME@
  174
+PACKAGE_STRING = @PACKAGE_STRING@
  175
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
  176
+PACKAGE_VERSION = @PACKAGE_VERSION@
  177
+PATH_SEPARATOR = @PATH_SEPARATOR@
  178
+RANLIB = @RANLIB@
  179
+SET_MAKE = @SET_MAKE@
  180
+SHELL = @SHELL@
  181
+STRIP = @STRIP@
  182
+VERSION = @VERSION@
  183
+ac_ct_AR = @ac_ct_AR@
  184
+ac_ct_CC = @ac_ct_CC@
  185
+ac_ct_CXX = @ac_ct_CXX@
  186
+ac_ct_F77 = @ac_ct_F77@
  187
+ac_ct_RANLIB = @ac_ct_RANLIB@
  188
+ac_ct_STRIP = @ac_ct_STRIP@
  189
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  190
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  191
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  192
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  193
+am__include = @am__include@
  194
+am__leading_dot = @am__leading_dot@
  195
+am__quote = @am__quote@
  196
+bindir = @bindir@
  197
+build = @build@
  198
+build_alias = @build_alias@
  199
+build_cpu = @build_cpu@
  200
+build_os = @build_os@
  201
+build_vendor = @build_vendor@
  202
+datadir = @datadir@
  203
+exec_prefix = @exec_prefix@
  204
+host = @host@
  205
+host_alias = @host_alias@
  206
+host_cpu = @host_cpu@
  207
+host_os = @host_os@
  208
+host_vendor = @host_vendor@
  209
+includedir = @includedir@
  210
+infodir = @infodir@
  211
+install_sh = @install_sh@
  212
+libdir = @libdir@
  213
+libexecdir = @libexecdir@
  214
+localstatedir = @localstatedir@
  215
+mandir = @mandir@
  216
+mkdir_p = @mkdir_p@
  217
+oldincludedir = @oldincludedir@
  218
+prefix = @prefix@
  219
+program_transform_name = @program_transform_name@
  220
+sbindir = @sbindir@
  221
+sharedstatedir = @sharedstatedir@
  222
+sysconfdir = @sysconfdir@
  223
+target_alias = @target_alias@
  224
+AUTOMAKE_OPTIONS = foreign
  225
+lib_LTLIBRARIES = libcares.la
  226
+man_MANS = $(MANPAGES)
  227
+MSVCFILES = vc/adig/adig.dep vc/adig/adig.dsp vc/adig/adig.mak	\
  228
+ vc/adig/adig.plg vc/vc.dsw vc/ahost/ahost.dep vc/ahost/ahost.dsp	\
  229
+ vc/ahost/ahost.mak vc/ahost/ahost.plg vc/areslib/areslib.dep		\
  230
+ vc/areslib/areslib.dsp vc/areslib/areslib.mak vc/areslib/areslib.plg
  231
+
  232
+
  233
+# adig and ahost are just sample programs and thus not mentioned with the
  234
+# regular sources and headers
  235
+EXTRA_DIST = CHANGES README.cares Makefile.inc adig.c ahost.c $(man_MANS) \
  236
+ $(MSVCFILES)
  237
+
  238
+VER = -version-info 0:0:0
  239
+# This flag accepts an argument of the form current[:revision[:age]]. So,
  240
+# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
  241
+# 1.
  242
+#
  243
+# If either revision or age are omitted, they default to 0. Also note that age
  244
+# must be less than or equal to the current interface number.
  245
+#
  246
+# Here are a set of rules to help you update your library version information: 
  247
+#
  248
+# 1.Start with version information of 0:0:0 for each libtool library.
  249
+#
  250
+# 2.Update the version information only immediately before a public release of
  251
+# your software. More frequent updates are unnecessary, and only guarantee
  252
+# that the current interface number gets larger faster.
  253
+#
  254
+# 3.If the library source code has changed at all since the last update, then
  255
+# increment revision (c:r+1:a)
  256
+#
  257
+# 4.If any interfaces have been added, removed, or changed since the last
  258
+# update, increment current, and set revision to 0. (c+1:r=0:a)
  259
+#
  260
+# 5.If any interfaces have been added since the last public release, then
  261
+# increment age. (c:r:a+1)
  262
+#
  263
+# 6.If any interfaces have been removed since the last public release, then
  264
+# set age to 0. (c:r:a=0)
  265
+#
  266
+libcares_la_LDFLAGS = $(VER)
  267
+CSOURCES = ares_fds.c ares_process.c ares_free_hostent.c ares_query.c	   \
  268
+ares__close_sockets.c ares_free_string.c ares_search.c ares__get_hostent.c \
  269
+ares_gethostbyaddr.c ares_send.c ares__read_line.c ares_gethostbyname.c	   \
  270
+ares_strerror.c ares_cancel.c ares_init.c ares_timeout.c ares_destroy.c	   \
  271
+ares_mkquery.c ares_version.c ares_expand_name.c ares_parse_a_reply.c	   \
  272
+windows_port.c ares_expand_string.c ares_parse_ptr_reply.c
  273
+
  274
+HHEADERS = ares.h ares_private.h setup.h ares_dns.h ares_version.h nameser.h
  275
+MANPAGES = ares_destroy.3 ares_expand_name.3 ares_expand_string.3 ares_fds.3 \
  276
+ ares_free_hostent.3 ares_free_string.3 ares_gethostbyaddr.3		    \
  277
+ ares_gethostbyname.3 ares_init.3 ares_init_options.3 ares_mkquery.3	    \
  278
+ ares_parse_a_reply.3 ares_parse_ptr_reply.3 ares_process.3		    \
  279
+ ares_query.3 ares_search.3 ares_send.3 ares_strerror.3 ares_timeout.3	    \
  280
+ ares_version.3 ares_cancel.3
  281
+
  282
+
  283
+# Makefile.inc provides the CSOURCES and HHEADERS defines
  284
+libcares_la_SOURCES = $(CSOURCES) $(HHEADERS)
  285
+
  286
+# where to install the c-ares headers
  287
+libcares_ladir = $(includedir)
  288
+# what headers to install on 'make install':
  289
+libcares_la_HEADERS = ares.h ares_version.h
  290
+all: config.h
  291
+	$(MAKE) $(AM_MAKEFLAGS) all-am
  292
+
  293
+.SUFFIXES:
  294
+.SUFFIXES: .c .lo .o .obj
  295
+am--refresh:
  296
+	@:
  297
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/Makefile.inc $(am__configure_deps)
  298
+	@for dep in $?; do \
  299
+	  case '$(am__configure_deps)' in \
  300
+	    *$$dep*) \
  301
+	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  302
+	      cd $(srcdir) && $(AUTOMAKE) --foreign  \
  303
+		&& exit 0; \
  304
+	      exit 1;; \
  305
+	  esac; \
  306
+	done; \
  307
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  Makefile'; \
  308
+	cd $(top_srcdir) && \
  309
+	  $(AUTOMAKE) --foreign  Makefile
  310
+.PRECIOUS: Makefile
  311
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  312
+	@case '$?' in \
  313
+	  *config.status*) \
  314
+	    echo ' $(SHELL) ./config.status'; \
  315
+	    $(SHELL) ./config.status;; \
  316
+	  *) \
  317
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  318
+	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  319
+	esac;
  320
+
  321
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  322
+	$(SHELL) ./config.status --recheck
  323
+
  324
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  325
+	cd $(srcdir) && $(AUTOCONF)
  326
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  327
+	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  328
+
  329
+config.h: stamp-h1
  330
+	@if test ! -f $@; then \
  331
+	  rm -f stamp-h1; \
  332
+	  $(MAKE) stamp-h1; \
  333
+	else :; fi
  334
+
  335
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  336
+	@rm -f stamp-h1
  337
+	cd $(top_builddir) && $(SHELL) ./config.status config.h
  338
+$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
  339
+	cd $(top_srcdir) && $(AUTOHEADER)
  340
+	rm -f stamp-h1
  341
+	touch $@
  342
+
  343
+distclean-hdr:
  344
+	-rm -f config.h stamp-h1
  345
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  346
+	@$(NORMAL_INSTALL)
  347
+	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  348
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  349
+	  if test -f $$p; then \
  350
+	    f="`echo $$p | sed -e 's|^.*/||'`"; \
  351
+	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  352
+	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  353
+	  else :; fi; \
  354
+	done
  355
+
  356
+uninstall-libLTLIBRARIES:
  357
+	@$(NORMAL_UNINSTALL)
  358
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  359
+	    p="`echo $$p | sed -e 's|^.*/||'`"; \
  360
+	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  361
+	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  362
+	done
  363
+
  364
+clean-libLTLIBRARIES:
  365
+	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  366
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  367
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  368
+	  test "$$dir" != "$$p" || dir=.; \
  369
+	  echo "rm -f \"$${dir}/so_locations\""; \
  370
+	  rm -f "$${dir}/so_locations"; \
  371
+	done
  372
+libcares.la: $(libcares_la_OBJECTS) $(libcares_la_DEPENDENCIES) 
  373
+	$(LINK) -rpath $(libdir) $(libcares_la_LDFLAGS) $(libcares_la_OBJECTS) $(libcares_la_LIBADD) $(LIBS)
  374
+
  375
+mostlyclean-compile:
  376
+	-rm -f *.$(OBJEXT)
  377
+
  378
+distclean-compile:
  379
+	-rm -f *.tab.c
  380
+
  381
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares__close_sockets.Plo@am__quote@
  382
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares__get_hostent.Plo@am__quote@
  383
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares__read_line.Plo@am__quote@
  384
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_cancel.Plo@am__quote@
  385
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_destroy.Plo@am__quote@
  386
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_expand_name.Plo@am__quote@
  387
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_expand_string.Plo@am__quote@
  388
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_fds.Plo@am__quote@
  389
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_free_hostent.Plo@am__quote@
  390
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_free_string.Plo@am__quote@
  391
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_gethostbyaddr.Plo@am__quote@
  392
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_gethostbyname.Plo@am__quote@
  393
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_init.Plo@am__quote@
  394
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_mkquery.Plo@am__quote@
  395
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_parse_a_reply.Plo@am__quote@
  396
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_parse_ptr_reply.Plo@am__quote@
  397
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_process.Plo@am__quote@
  398
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_query.Plo@am__quote@
  399
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_search.Plo@am__quote@
  400
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_send.Plo@am__quote@
  401
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_strerror.Plo@am__quote@
  402
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_timeout.Plo@am__quote@
  403
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ares_version.Plo@am__quote@
  404
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/windows_port.Plo@am__quote@
56 405
 
57 406
 .c.o:
58  
-	${CC} -c ${ALL_CFLAGS} $<
59  
-
60  
-check:
61  
-
62  
-install:
63  
-	${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
64  
-	${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
65  
-	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
66  
-	${INSTALL} -m 644 $(LIB) ${DESTDIR}${libdir}
67  
-	${RANLIB} ${DESTDIR}${libdir}/$(LIB)
68  
-	chmod u-w ${DESTDIR}${libdir}/$(LIB)
69  
-	${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir}
70  
-	${INSTALL} -m 444 ${srcdir}/ares_version.h ${DESTDIR}${includedir}
71  
-	(for man in $(MANPAGES); do \
72  
-	   ${INSTALL} -m 444 ${srcdir}/$${man} ${DESTDIR}${mandir}/man3; \
73  
-	done)
74  
-
75  
-clean:
76  
-	rm -f ${OBJS} $(LIB) adig.o adig ahost.o ahost
77  
-
78  
-distclean: clean
79  
-	rm -f config.cache config.log config.status Makefile
  407
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  408
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  409
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  410
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
  411
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  412
+@am__fastdepCC_FALSE@	$(COMPILE) -c $<
  413
+
  414
+.c.obj:
  415
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  416
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  417
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  418
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
  419
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  420
+@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
  421
+
  422
+.c.lo:
  423
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  424
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  425
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  426
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
  427
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  428
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
  429
+
  430
+mostlyclean-libtool:
  431
+	-rm -f *.lo
  432
+
  433
+clean-libtool:
  434
+	-rm -rf .libs _libs
  435
+
  436
+distclean-libtool:
  437
+	-rm -f libtool
  438
+uninstall-info-am:
  439
+install-man3: $(man3_MANS) $(man_MANS)
  440
+	@$(NORMAL_INSTALL)
  441
+	test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)"
  442
+	@list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  443
+	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  444
+	for i in $$l2; do \
  445
+	  case "$$i" in \
  446
+	    *.3*) list="$$list $$i" ;; \
  447
+	  esac; \
  448
+	done; \
  449
+	for i in $$list; do \
  450
+	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  451
+	  else file=$$i; fi; \
  452
+	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  453
+	  case "$$ext" in \
  454
+	    3*) ;; \
  455
+	    *) ext='3' ;; \
  456
+	  esac; \
  457
+	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  458
+	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
  459
+	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  460
+	  echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  461
+	  $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
  462
+	done
  463
+uninstall-man3:
  464
+	@$(NORMAL_UNINSTALL)
  465
+	@list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  466
+	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  467
+	for i in $$l2; do \
  468
+	  case "$$i" in \
  469
+	    *.3*) list="$$list $$i" ;; \
  470
+	  esac; \
  471
+	done; \
  472
+	for i in $$list; do \
  473
+	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  474
+	  case "$$ext" in \
  475
+	    3*) ;; \
  476
+	    *) ext='3' ;; \
  477
+	  esac; \
  478
+	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  479
+	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
  480
+	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  481
+	  echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
  482
+	  rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
  483
+	done
  484
+install-libcares_laHEADERS: $(libcares_la_HEADERS)
  485
+	@$(NORMAL_INSTALL)
  486
+	test -z "$(libcares_ladir)" || $(mkdir_p) "$(DESTDIR)$(libcares_ladir)"
  487
+	@list='$(libcares_la_HEADERS)'; for p in $$list; do \
  488
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  489
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
  490
+	  echo " $(libcares_laHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libcares_ladir)/$$f'"; \
  491
+	  $(libcares_laHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libcares_ladir)/$$f"; \
  492
+	done
  493
+
  494
+uninstall-libcares_laHEADERS:
  495
+	@$(NORMAL_UNINSTALL)
  496
+	@list='$(libcares_la_HEADERS)'; for p in $$list; do \
  497
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
  498
+	  echo " rm -f '$(DESTDIR)$(libcares_ladir)/$$f'"; \
  499
+	  rm -f "$(DESTDIR)$(libcares_ladir)/$$f"; \
  500
+	done
  501
+
  502
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  503
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  504
+	unique=`for i in $$list; do \
  505
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  506
+	  done | \
  507
+	  $(AWK) '    { files[$$0] = 1; } \
  508
+	       END { for (i in files) print i; }'`; \
  509
+	mkid -fID $$unique
  510
+tags: TAGS
  511
+
  512
+TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  513
+		$(TAGS_FILES) $(LISP)
  514
+	tags=; \
  515
+	here=`pwd`; \
  516
+	list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  517
+	unique=`for i in $$list; do \
  518
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  519
+	  done | \
  520
+	  $(AWK) '    { files[$$0] = 1; } \
  521
+	       END { for (i in files) print i; }'`; \
  522
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  523
+	  test -n "$$unique" || unique=$$empty_fix; \
  524
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  525
+	    $$tags $$unique; \
  526
+	fi
  527
+ctags: CTAGS
  528
+CTAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  529
+		$(TAGS_FILES) $(LISP)
  530
+	tags=; \
  531
+	here=`pwd`; \
  532
+	list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  533
+	unique=`for i in $$list; do \
  534
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  535
+	  done | \
  536
+	  $(AWK) '    { files[$$0] = 1; } \
  537
+	       END { for (i in files) print i; }'`; \
  538
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
  539
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  540
+	     $$tags $$unique
  541
+
  542
+GTAGS:
  543
+	here=`$(am__cd) $(top_builddir) && pwd` \
  544
+	  && cd $(top_srcdir) \
  545
+	  && gtags -i $(GTAGS_ARGS) $$here
  546
+
  547
+distclean-tags:
  548
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  549
+
  550
+distdir: $(DISTFILES)
  551
+	$(am__remove_distdir)
  552
+	mkdir $(distdir)
  553
+	$(mkdir_p) $(distdir)/vc $(distdir)/vc/adig $(distdir)/vc/ahost $(distdir)/vc/areslib
  554
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  555
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  556
+	list='$(DISTFILES)'; for file in $$list; do \
  557
+	  case $$file in \
  558
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  559
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  560
+	  esac; \
  561
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  562
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  563
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  564
+	    dir="/$$dir"; \
  565
+	    $(mkdir_p) "$(distdir)$$dir"; \
  566
+	  else \
  567
+	    dir=''; \
  568
+	  fi; \
  569
+	  if test -d $$d/$$file; then \
  570
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  571
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  572
+	    fi; \
  573
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  574
+	  else \
  575
+	    test -f $(distdir)/$$file \
  576
+	    || cp -p $$d/$$file $(distdir)/$$file \
  577
+	    || exit 1; \
  578
+	  fi; \
  579
+	done
  580
+	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  581
+	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  582
+	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  583
+	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  584
+	|| chmod -R a+r $(distdir)
  585
+dist-gzip: distdir
  586
+	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  587
+	$(am__remove_distdir)
  588
+
  589
+dist-bzip2: distdir
  590
+	$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
  591
+	$(am__remove_distdir)
  592
+
  593
+dist-tarZ: distdir
  594
+	$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
  595
+	$(am__remove_distdir)
  596
+
  597
+dist-shar: distdir
  598
+	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  599
+	$(am__remove_distdir)
  600
+
  601
+dist-zip: distdir
  602
+	-rm -f $(distdir).zip
  603
+	zip -rq $(distdir).zip $(distdir)
  604
+	$(am__remove_distdir)
  605
+
  606
+dist dist-all: distdir
  607
+	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  608
+	$(am__remove_distdir)
  609
+
  610
+# This target untars the dist file and tries a VPATH configuration.  Then
  611
+# it guarantees that the distribution is self-contained by making another
  612
+# tarfile.
  613
+distcheck: dist
  614
+	case '$(DIST_ARCHIVES)' in \
  615
+	*.tar.gz*) \
  616
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
  617
+	*.tar.bz2*) \
  618
+	  bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
  619
+	*.tar.Z*) \
  620
+	  uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
  621
+	*.shar.gz*) \
  622
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  623
+	*.zip*) \
  624
+	  unzip $(distdir).zip ;;\
  625
+	esac
  626
+	chmod -R a-w $(distdir); chmod a+w $(distdir)
  627
+	mkdir $(distdir)/_build
  628
+	mkdir $(distdir)/_inst
  629
+	chmod a-w $(distdir)
  630
+	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  631
+	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  632
+	  && cd $(distdir)/_build \
  633
+	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  634
+	    $(DISTCHECK_CONFIGURE_FLAGS) \
  635
+	  && $(MAKE) $(AM_MAKEFLAGS) \
  636
+	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
  637
+	  && $(MAKE) $(AM_MAKEFLAGS) check \
  638
+	  && $(MAKE) $(AM_MAKEFLAGS) install \
  639
+	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  640
+	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  641
+	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  642
+	        distuninstallcheck \
  643
+	  && chmod -R a-w "$$dc_install_base" \
  644
+	  && ({ \
  645
+	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  646
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  647
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  648
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  649
+	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  650
+	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
  651
+	  && rm -rf "$$dc_destdir" \
  652
+	  && $(MAKE) $(AM_MAKEFLAGS) dist \
  653
+	  && rm -rf $(DIST_ARCHIVES) \
  654
+	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  655
+	$(am__remove_distdir)
  656
+	@(echo "$(distdir) archives ready for distribution: "; \
  657
+	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  658
+	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  659
+distuninstallcheck:
  660
+	@cd $(distuninstallcheck_dir) \
  661
+	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  662
+	   || { echo "ERROR: files left after uninstall:" ; \
  663
+	        if test -n "$(DESTDIR)"; then \
  664
+	          echo "  (check DESTDIR support)"; \
  665
+	        fi ; \
  666
+	        $(distuninstallcheck_listfiles) ; \
  667
+	        exit 1; } >&2
  668
+distcleancheck: distclean
  669
+	@if test '$(srcdir)' = . ; then \
  670
+	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  671
+	  exit 1 ; \
  672
+	fi
  673
+	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  674
+	  || { echo "ERROR: files left in build directory after distclean:" ; \
  675
+	       $(distcleancheck_listfiles) ; \
  676
+	       exit 1; } >&2
  677
+check-am: all-am
  678
+check: check-am
  679
+all-am: Makefile $(LTLIBRARIES) $(MANS) $(HEADERS) config.h
  680
+installdirs:
  681
+	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(libcares_ladir)"; do \
  682
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
  683
+	done
  684
+install: install-am
  685
+install-exec: install-exec-am
  686
+install-data: install-data-am
  687
+uninstall: uninstall-am
  688
+
  689
+install-am: all-am
  690
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  691
+
  692
+installcheck: installcheck-am
  693
+install-strip:
  694
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  695
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  696
+	  `test -z '$(STRIP)' || \
  697
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  698
+mostlyclean-generic:
  699
+
  700
+clean-generic:
  701
+
  702
+distclean-generic:
  703
+	-rm -f $(CONFIG_CLEAN_FILES)
  704
+
  705
+maintainer-clean-generic:
  706
+	@echo "This command is intended for maintainers to use"
  707
+	@echo "it deletes files that may require special tools to rebuild."
  708
+clean: clean-am
  709
+
  710
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  711
+	mostlyclean-am
  712
+
  713
+distclean: distclean-am
  714
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
  715
+	-rm -rf ./$(DEPDIR)
  716
+	-rm -f Makefile
  717
+distclean-am: clean-am distclean-compile distclean-generic \
  718
+	distclean-hdr distclean-libtool distclean-tags
  719
+
  720
+dvi: dvi-am
  721
+
  722
+dvi-am:
  723
+
  724
+html: html-am
  725
+
  726
+info: info-am
  727
+
  728
+info-am:
  729
+
  730
+install-data-am: install-libcares_laHEADERS install-man
  731
+
  732
+install-exec-am: install-libLTLIBRARIES
  733
+
  734
+install-info: install-info-am
  735
+
  736
+install-man: install-man3
  737
+
  738
+installcheck-am:
  739
+
  740
+maintainer-clean: maintainer-clean-am
  741
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
  742
+	-rm -rf $(top_srcdir)/autom4te.cache
  743
+	-rm -rf ./$(DEPDIR)
  744
+	-rm -f Makefile
  745
+maintainer-clean-am: distclean-am maintainer-clean-generic
  746
+
  747
+mostlyclean: mostlyclean-am
  748
+
  749
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  750
+	mostlyclean-libtool
  751
+
  752
+pdf: pdf-am
  753
+
  754
+pdf-am:
  755
+
  756
+ps: ps-am
  757
+
  758
+ps-am:
  759
+
  760
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
  761
+	uninstall-libcares_laHEADERS uninstall-man
  762
+
  763
+uninstall-man: uninstall-man3
  764
+
  765
+.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
  766
+	clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \
  767
+	dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
  768
+	distcheck distclean distclean-compile distclean-generic \
  769
+	distclean-hdr distclean-libtool distclean-tags distcleancheck \
  770
+	distdir distuninstallcheck dvi dvi-am html html-am info \
  771
+	info-am install install-am install-data install-data-am \
  772
+	install-exec install-exec-am install-info install-info-am \
  773
+	install-libLTLIBRARIES install-libcares_laHEADERS install-man \
  774
+	install-man3 install-strip installcheck installcheck-am \
  775
+	installdirs maintainer-clean maintainer-clean-generic \
  776
+	mostlyclean mostlyclean-compile mostlyclean-generic \
  777
+	mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  778
+	uninstall-am uninstall-info-am uninstall-libLTLIBRARIES \
  779
+	uninstall-libcares_laHEADERS uninstall-man uninstall-man3
  780
+
  781
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
  782
+# Otherwise a system limit (for SysV at least) may be exceeded.
  783
+.NOEXPORT:
15  Makefile.inc
... ...
@@ -0,0 +1,15 @@
  1
+CSOURCES = ares_fds.c ares_process.c ares_free_hostent.c ares_query.c	   \
  2
+ares__close_sockets.c ares_free_string.c ares_search.c ares__get_hostent.c \
  3
+ares_gethostbyaddr.c ares_send.c ares__read_line.c ares_gethostbyname.c	   \
  4
+ares_strerror.c ares_cancel.c ares_init.c ares_timeout.c ares_destroy.c	   \
  5
+ares_mkquery.c ares_version.c ares_expand_name.c ares_parse_a_reply.c	   \
  6
+windows_port.c ares_expand_string.c ares_parse_ptr_reply.c
  7
+
  8
+HHEADERS = ares.h ares_private.h setup.h ares_dns.h ares_version.h nameser.h
  9
+
  10
+MANPAGES= ares_destroy.3 ares_expand_name.3 ares_expand_string.3 ares_fds.3 \
  11
+ ares_free_hostent.3 ares_free_string.3 ares_gethostbyaddr.3		    \
  12
+ ares_gethostbyname.3 ares_init.3 ares_init_options.3 ares_mkquery.3	    \
  13
+ ares_parse_a_reply.3 ares_parse_ptr_reply.3 ares_process.3		    \
  14
+ ares_query.3 ares_search.3 ares_send.3 ares_strerror.3 ares_timeout.3	    \
  15
+ ares_version.3 ares_cancel.3
3  NEWS
... ...
@@ -1,3 +1,6 @@
  1
+Major changes since:
  2
+* see the CHANGES file
  3
+
1 4
 Major changes in release 1.1.1:
2 5
 * ares should now compile as C++ code (no longer uses reserved word
3 6
   "class").
1  adig.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
1  ahost.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
10  ares__close_sockets.c
@@ -13,6 +13,8 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
  17
+
16 18
 #include <stdlib.h>
17 19
 #ifdef WIN32
18 20
 #else
@@ -42,14 +44,14 @@ void ares__close_sockets(struct server_state *server)
42 44
   server->tcp_lenbuf_pos = 0;
43 45
 
44 46
   /* Close the TCP and UDP sockets. */
45  
-  if (server->tcp_socket != -1)
  47
+  if (server->tcp_socket != ARES_SOCKET_BAD)
46 48
     {
47 49
       closesocket(server->tcp_socket);
48  
-      server->tcp_socket = -1;
  50
+      server->tcp_socket = ARES_SOCKET_BAD;
49 51
     }
50  
-  if (server->udp_socket != -1)
  52
+  if (server->udp_socket != ARES_SOCKET_BAD)
51 53
     {
52 54
       closesocket(server->udp_socket);
53  
-      server->udp_socket = -1;
  55
+      server->udp_socket = ARES_SOCKET_BAD;
54 56
     }
55 57
 }
1  ares__get_hostent.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
1  ares__read_line.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <stdio.h>
17 18
 #include <stdlib.h>
18 19
 #include <string.h>
21  ares_cancel.c
... ...
@@ -1,18 +1,17 @@
1  
-/* Copyright 1998 by the Massachusetts Institute of Technology.
  1
+/* Copyright (C) 2004 by Daniel Stenberg et al
2 2
  *
3  
- * Permission to use, copy, modify, and distribute this
4  
- * software and its documentation for any purpose and without
5  
- * fee is hereby granted, provided that the above copyright
6  
- * notice appear in all copies and that both that copyright
7  
- * notice and this permission notice appear in supporting
8  
- * documentation, and that the name of M.I.T. not be used in
9  
- * advertising or publicity pertaining to distribution of the
10  
- * software without specific, written prior permission.
11  
- * M.I.T. makes no representations about the suitability of
12  
- * this software for any purpose.  It is provided "as is"
  3
+ * Permission to use, copy, modify, and distribute this software and its
  4
+ * documentation for any purpose and without fee is hereby granted, provided
  5
+ * that the above copyright notice appear in all copies and that both that
  6
+ * copyright notice and this permission notice appear in supporting
  7
+ * documentation, and that the name of M.I.T. not be used in advertising or
  8
+ * publicity pertaining to distribution of the software without specific,
  9
+ * written prior permission.  M.I.T. makes no representations about the
  10
+ * suitability of this software for any purpose.  It is provided "as is"
13 11
  * without express or implied warranty.
14 12
  */
15 13
 
  14
+#include "setup.h"
16 15
 #include <stdlib.h>
17 16
 #include "ares.h"
18 17
 #include "ares_private.h"
1  ares_destroy.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <stdlib.h>
17 18
 #include "ares.h"
18 19
 #include "ares_private.h"
1  ares_expand_name.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
1  ares_expand_string.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
5  ares_fds.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
@@ -37,13 +38,13 @@ int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds)
37 38
   for (i = 0; i < channel->nservers; i++)
38 39
     {
39 40
       server = &channel->servers[i];
40  
-      if (server->udp_socket != -1)
  41
+      if (server->udp_socket != ARES_SOCKET_BAD)
41 42
 	{
42 43
 	  FD_SET(server->udp_socket, read_fds);
43 44
 	  if (server->udp_socket >= nfds)
44 45
 	    nfds = server->udp_socket + 1;
45 46
 	}
46  
-      if (server->tcp_socket != -1)
  47
+      if (server->tcp_socket != ARES_SOCKET_BAD)
47 48
 	{
48 49
 	  FD_SET(server->tcp_socket, read_fds);
49 50
 	  if (server->qhead)
1  ares_free_hostent.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <stdlib.h>
17 18
 
18 19
 #ifdef WIN32
1  ares_free_string.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <stdlib.h>
17 18
 #include "ares.h"
18 19
 
1  ares_gethostbyaddr.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
1  ares_gethostbyname.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
5  ares_init.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
@@ -127,8 +128,8 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
127 128
   for (i = 0; i < channel->nservers; i++)
128 129
     {
129 130
       server = &channel->servers[i];
130  
-      server->udp_socket = -1;
131  
-      server->tcp_socket = -1;
  131
+      server->udp_socket = ARES_SOCKET_BAD;
  132
+      server->tcp_socket = ARES_SOCKET_BAD;
132 133
       server->tcp_lenbuf_pos = 0;
133 134
       server->tcp_buffer = NULL;
134 135
       server->qhead = NULL;
1  ares_mkquery.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.
14 14
  */
15 15
 
  16
+#include "setup.h"
16 17
 #include <sys/types.h>
17 18
 
18 19
 #ifdef WIN32
1  ares_parse_a_reply.c
@@ -13,6 +13,7 @@
13 13
  * without express or implied warranty.