]> granicus.if.org Git - curl/commitdiff
renamed generated config.h to ares_config.h in order to avoid clashes when libcurl...
authorGunter Knauf <gk@gknw.de>
Tue, 14 Jul 2009 13:38:50 +0000 (13:38 +0000)
committerGunter Knauf <gk@gknw.de>
Tue, 14 Jul 2009 13:38:50 +0000 (13:38 +0000)
ares/.cvsignore
ares/CHANGES
ares/Makefile.am
ares/Makefile.dj
ares/Makefile.netware
ares/configure.ac
ares/m4/cares-compilers.m4
ares/setup.h

index d37034eff8c68eb3b196d9ee0aacb284b6b85f02..ecfc62ec1a81c2f648b2b648e2324b8206c8ca25 100644 (file)
@@ -12,8 +12,8 @@ ares_build.h
 ares_version.h.dist
 autom4te.cache
 config.guess
-config.h
-config.h.in
+ares_config.h
+ares_config.h.in
 config.log
 config.lt
 config.status
index f98105f32b2e149e97d74f960a13310ffce3ac93..e7b3b8d70aa70b1083916e9cf06b4a72326d075e 100644 (file)
@@ -1,5 +1,9 @@
   Changelog for the c-ares project
 
+* 14 Jul 2009 (Guenter Knauf)
+- renamed generated config.h to ares_config.h to avoid any future clashes
+  with config.h from other projects.
+  
 * June 8 2009 (Yang Tse)
 - Removed buildconf.bat from release and daily snapshot archives. This
   file is only for CVS tree checkout builds.
index 4c5f54623185f7e66eaf9cb8deea39e7c996a4d8..302ac9d8ec9c0649bf2bd99238191812ab1bb338 100644 (file)
@@ -15,7 +15,7 @@ ACLOCAL_AMFLAGS = -I m4
 #
 # $(top_builddir)/../include is for libcurl's generated curl/curlbuild.h file
 # $(top_srcdir)/../include is for libcurl's external include files
-# $(top_builddir) is for c-ares's generated config.h file
+# $(top_builddir) is for c-ares's generated ares_config.h file
 # $(top_srcdir) is for c-ares's lib/setup.h and other "c-ares-private" files
 
 if CURLDEBUG
index 9c965eafae11e07de80acf4f0952a174a85eb66e..aa16e5c9f1282b9088782bc3fd057c8455f285b3 100644 (file)
@@ -37,13 +37,13 @@ EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
 
 OBJECTS = $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
 
-all: $(OBJ_DIR) config.h libcares.a ahost.exe adig.exe acountry.exe
+all: $(OBJ_DIR) ares_config.h libcares.a ahost.exe adig.exe acountry.exe
        @echo Welcome to c-ares.
 
 libcares.a: $(OBJECTS)
        ar rs $@ $?
 
-config.h: config.dos
+ares_config.h: config.dos
        $(COPY) $^ $@
 
 ahost.exe: ahost.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
@@ -58,7 +58,7 @@ acountry.exe: acountry.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
 # clean generated files
 #
 genclean:
-       - $(DELETE) config.h
+       - $(DELETE) ares_config.h
 
 # clean object files and subdir
 #
index a58528d993db0f142287687cfaf21732869a2d97..4b7ebea39aaee55f4d2d672fa517adc32fbca447 100644 (file)
@@ -160,7 +160,7 @@ lib: prebuild $(LTARGET)
 
 nlm: prebuild $(TARGETS)
 
-prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc config.h
+prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc ares_config.h
 
 install: $(INSTDIR) all
        @$(CP) *.nlm $(INSTDIR)
@@ -170,7 +170,7 @@ install: $(INSTDIR) all
        @$(CP) ../RELEASE-NOTES $(INSTDIR)
 
 clean:
-       -$(RM) $(LTARGET) $(TARGETS) config.h
+       -$(RM) $(LTARGET) $(TARGETS) ares_config.h
        -$(RM) -r $(OBJDIR)
        -$(RM) -r arpa
 
@@ -269,7 +269,7 @@ ifeq ($(LD),nlmconv)
        @echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
 endif
 
-config.h: Makefile.netware
+ares_config.h: Makefile.netware
        @echo Creating $@
        @echo $(DL)/* $@ for NetWare target.$(DL) > $@
        @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
index 6f32b952919f0d2dbdc620bee1fdf5bab1d0c132..673f41796bc7e7a8764a1e986c4a211455095ff1 100644 (file)
@@ -7,7 +7,7 @@ AC_INIT([c-ares], [-],
 CARES_OVERRIDE_AUTOCONF
 
 AC_CONFIG_SRCDIR([ares_ipv6.h])
-AM_CONFIG_HEADER([config.h ares_build.h])
+AM_CONFIG_HEADER([ares_config.h ares_build.h])
 AM_MAINTAINER_MODE
 
 CARES_CHECK_OPTION_DEBUG
index b15b1103fa0cb406aab149df4c453a99f16ec031..589a21c818f820ba4155b3c82a3228878f0a57ce 100644 (file)
@@ -1113,15 +1113,15 @@ AC_DEFUN([CARES_CHECK_CURLDEBUG], [
         test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
         AC_MSG_WARN([curl's configure has not been run.])
         supports_curldebug="no"
-      elif test ! -f "$cares_builddir/../lib/config.h"; then
-        AC_MSG_WARN([libcurl's config.h is missing.])
+      elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
+        AC_MSG_WARN([libcurl's curl_config.h is missing.])
         supports_curldebug="no"
       elif test ! -f "$cares_builddir/../config.status"; then
         AC_MSG_WARN([curl's config.status is missing.])
         supports_curldebug="no"
       fi
       if test "$supports_curldebug" != "no"; then
-        grep '^#define USE_ARES' "$cares_builddir/../lib/config.h" >/dev/null
+        grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
         if test "$?" -ne "0"; then
           AC_MSG_WARN([libcurl configured without c-ares support.])
           supports_curldebug="no"
index 794ef9a35797e35e5e8db9993135786edf908621..8750624237efe9892e3e654234a4e1fa3f78a5f9 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "ares_config.h"
 #else
 
 #ifdef WIN32
 #endif /* HAVE_CONFIG_H */
 
 /*
- * Recent autoconf versions define these symbols in config.h. We don't
+ * Recent autoconf versions define these symbols in ares_config.h. We don't
  * want them (since they collide with the libcurl ones when we build
  *  --enable-debug) so we undef them again here.
  */