Removed the generated ca-bundle.h file. The verbatim value of $ca and
authorMichal Marek <mmarek@suse.cz>
Mon, 31 Mar 2008 12:09:43 +0000 (12:09 +0000)
committerMichal Marek <mmarek@suse.cz>
Mon, 31 Mar 2008 12:09:43 +0000 (12:09 +0000)
$capath is known to configure, so it can be defined in config.h instead.

13 files changed:
CHANGES
acinclude.m4
buildconf.bat
configure.ac
lib/.cvsignore
lib/Makefile.Watcom
lib/Makefile.am
lib/Makefile.inc
lib/Makefile.m32
lib/Makefile.netware
lib/easy.c
lib/url.c
packages/OS400/make-lib.sh

diff --git a/CHANGES b/CHANGES
index 7efb826..0ebb5ad 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Michal Marek (31 Mar 2008)
+- Removed the generated ca-bundle.h file. The verbatim value of $ca and
+  $capath is known to configure, so it can be defined in config.h instead.
+
 Daniel Stenberg (31 Mar 2008)
 - Added CURLFORM_STREAM as a supported option to curl_formadd() to allow an
   application to provide data for a multipart with the read callback. Note
index bdfb6ce..7af4741 100644 (file)
@@ -2583,11 +2583,11 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
 
   if test "x$ca" != "xno"; then
     CURL_CA_BUNDLE='"'$ca'"'
-    AC_SUBST(CURL_CA_BUNDLE)
+    AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle])
     AC_MSG_RESULT([$ca])
   elif test "x$capath" != "xno"; then
     CURL_CA_PATH="\"$capath\""
-    AC_SUBST(CURL_CA_PATH)
+    AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path])
     AC_MSG_RESULT([$capath (capath)])
   else
     AC_MSG_RESULT([no])
index 7c53757..deeaea9 100644 (file)
@@ -3,11 +3,8 @@ REM set up a CVS tree to build when there's no autotools
 REM $Revision$\r
 REM $Date$\r
 \r
-REM create ca-bundle.h\r
-echo /* This file is generated automatically */ >lib\ca-bundle.h\r
-\r
 REM create hugehelp.c\r
 copy src\hugehelp.c.cvs src\hugehelp.c\r
 \r
 REM create Makefile\r
-copy Makefile.dist Makefile
\ No newline at end of file
+copy Makefile.dist Makefile\r
index e887bac..e0cd5bf 100644 (file)
@@ -1623,9 +1623,6 @@ dnl **********************************************************************
 
 CURL_CHECK_CA_BUNDLE
 
-AM_CONDITIONAL(CABUNDLE, test x$ca != xno)
-AM_CONDITIONAL(CAPATH, test x$capath != xno)
-
 dnl **********************************************************************
 dnl Check for the presence of IDN libraries and headers
 dnl **********************************************************************
index ad0b724..c2a9892 100644 (file)
@@ -6,6 +6,5 @@ Makefile
 .libs
 config.h
 stamp-*
-ca-bundle.h
 getdate.c
 curllib.dsp
index a3fe6fc..8e5118e 100644 (file)
@@ -4,7 +4,7 @@
 #
 # $Id$
 
-TARGETS = ca-bundle.h libcurl_wc.dll libcurl_wc_imp.lib
+TARGETS = libcurl_wc.dll libcurl_wc_imp.lib
 
 CC = wcc386
 
@@ -67,9 +67,6 @@ all: $(OBJ_DIR) $(C_ARG) $(TARGETS) .SYMBOLIC
 $(OBJ_DIR):
        mkdir $(OBJ_DIR)
 
-ca-bundle.h:
-       @echo /* dummy ca-bundle.h. Not used */ > $@
-
 libcurl_wc.dll libcurl_wc_imp.lib: $(OBJS) $(RESOURCE) $(LINK_ARG)
        wlink name libcurl_wc.dll @$(LINK_ARG)
 
@@ -168,7 +165,7 @@ $(OBJ_DIR)\url.obj: url.c setup.h config-win32.h setup_once.h urldata.h cookie.h
   transfer.h sendf.h progress.h strequal.h strerror.h escape.h strtok.h &
   share.h content_encoding.h http_digest.h http_negotiate.h select.h &
   multiif.h ftp.h dict.h telnet.h tftp.h http.h file.h curl_ldap.h url.h &
-  connect.h inet_ntop.h http_ntlm.h .\ca-bundle.h &
+  connect.h inet_ntop.h http_ntlm.h &
   ..\include\curl\mprintf.h memory.h memdebug.h .\memory.h
 $(OBJ_DIR)\dict.obj: dict.c setup.h config-win32.h setup_once.h urldata.h cookie.h &
   ..\include\curl\curl.h ..\include\curl\curlver.h ..\include\curl\easy.h &
index 350931d..c7e8108 100644 (file)
@@ -101,30 +101,6 @@ libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
 WIN32SOURCES = $(CSOURCES)
 WIN32HEADERS = $(HHEADERS) config-win32.h
 
-BUILT_SOURCES = $(top_builddir)/lib/ca-bundle.h
-
-$(top_builddir)/lib/ca-bundle.h: Makefile.in Makefile
-       @if test -f $@; then \
-         chmod 0644 $@; \
-       fi
-       echo "/* This file is generated automatically */" > $@
-if CABUNDLE
-       echo '#define CURL_CA_BUNDLE @CURL_CA_BUNDLE@' >> $@
-else
-       echo '#undef CURL_CA_BUNDLE /* unknown default path */' >> $@
-endif
-if CAPATH
-       echo '#define CURL_CA_PATH @CURL_CA_PATH@' >> $@
-else
-       echo '#undef CURL_CA_PATH /* unknown default path */' >>$@
-endif
-
-# this hook is mainly for non-unix systems to build even if configure
-# isn't run
-dist-hook:
-       chmod 0644 $(distdir)/ca-bundle.h
-       echo "/* ca bundle path set in here*/" > $(distdir)/ca-bundle.h
-
 DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
 VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
 
index e203d36..875e567 100644 (file)
@@ -16,7 +16,7 @@ HHEADERS = arpa_telnet.h netrc.h file.h timeval.h base64.h hostip.h   \
   if2ip.h speedcheck.h urldata.h curl_ldap.h ssluse.h escape.h telnet.h        \
   getinfo.h strequal.h krb4.h memdebug.h inet_ntoa_r.h http_chunks.h   \
   strtok.h connect.h llist.h hash.h content_encoding.h share.h md5.h   \
-  http_digest.h http_negotiate.h http_ntlm.h ca-bundle.h inet_pton.h   \
+  http_digest.h http_negotiate.h http_ntlm.h inet_pton.h               \
   strtoofft.h strerror.h inet_ntop.h curlx.h memory.h setup.h          \
   transfer.h select.h easyif.h multiif.h parsedate.h sslgen.h gtls.h   \
   tftp.h sockaddr.h splay.h strdup.h setup_once.h socks.h ssh.h nssg.h \
index d8131c7..6fd8b9b 100644 (file)
@@ -113,7 +113,7 @@ RESOURCE = libcurl.res
 
 .SUFFIXES: .rc .res
 
-all: ca-bundle.h $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY)
+all: $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY)
 
 $(libcurl_a_LIBRARY): $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES)
        -$(RM) $@
@@ -135,18 +135,13 @@ $(libcurl_dll_LIBRARY): $(libcurl_a_OBJECTS) $(RESOURCE) $(libcurl_dll_DEPENDENC
        $(RC) $(RCFLAGS) $< -o $@
 
 clean:
-       -$(RM) $(libcurl_a_OBJECTS) $(RESOURCE) ca-bundle.h
+       -$(RM) $(libcurl_a_OBJECTS) $(RESOURCE)
 
 distrib: clean
        -$(RM) $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_dll_a_LIBRARY)
 
 FORCE: ;
 
-ca-bundle.h: FORCE Makefile.m32
-       @echo Creating $@
-       @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@
-       @echo $(DL)*/$(DL) >> $@
-
 $(ARES_LIB)/libcares.a:
        $(MAKE) -C $(ARES_LIB) -f Makefile.m32
 
index 1a4610d..ae0cc73 100644 (file)
@@ -230,7 +230,7 @@ nlm: prebuild $(TARGET).nlm
 
 lib: prebuild $(TARGET).$(LIBEXT)
 
-prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h ca-bundle.h
+prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h
 
 $(OBJDIR)/%.o: %.c
 #      @echo Compiling $<
@@ -252,7 +252,7 @@ ifdef WITH_SSL
 endif
 
 clean:
-       -$(RM) config.h ca-bundle.h
+       -$(RM) config.h
        -$(RM) -r $(OBJDIR)
 
 distclean: clean
@@ -523,25 +523,11 @@ endif
 
 FORCE: ;
 
-ca-bundle.h: FORCE Makefile.netware
-       @echo Creating $@
-       @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@
-       @echo $(DL)** All your changes will be lost!!$(DL) >> $@
-       @echo $(DL)*/$(DL) >> $@
-ifdef CABUNDLE
-       @echo $(DL)#define CURL_CA_BUNDLE "$(CABUNDLE)"$(DL) >> $@
-else
-       @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@
-endif
-
 info: $(OBJDIR)/version.inc
        @echo Configured to build $(TARGET) with these options:
        @echo libarchitecture: $(LIBARCH)
        @echo curl version:    $(LIBCURL_VERSION_STR)
        @echo compiler/linker: $(CC) / $(LD)
-ifdef CABUNDLE
-       @echo ca-bundle path:  $(CABUNDLE)
-endif
 ifdef WITH_SSL
        @echo SSL support:     enabled (OpenSSL)
 else
index 93b5095..145619c 100644 (file)
@@ -83,7 +83,6 @@
 #include "easyif.h"
 #include "select.h"
 #include "sendf.h" /* for failf function prototype */
-#include <ca-bundle.h>
 
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>
index 1dc51d1..9d78235 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -137,7 +137,6 @@ void idn_free (void *ptr); /* prototype from idn-free.h, not provided by
 #include "inet_ntop.h"
 #include "http_ntlm.h"
 #include "socks.h"
-#include <ca-bundle.h>
 
 #if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
 #include "inet_ntoa_r.h"
index cd1db3e..b066c28 100644 (file)
@@ -9,21 +9,6 @@ SCRIPTDIR=`dirname "${0}"`
 cd "${TOPDIR}/lib"
 
 
-#       Create ca-bundle.h file.
-
-if action_needed "ca-bundle.h"
-then    echo "/* This file is generated automatically */" > ca-bundle.h
-        echo "#ifndef CURL_CA_BUNDLE" >> ca-bundle.h
-
-        if [ "${CABUNDLE}" ]
-        then    echo '#define CURL_CA_BUNDLE @CURL_CA_BUNDLE@' >> ca-bundle.h
-        else    echo '#undef CURL_CA_BUNDLE /* unknown */' >> ca-bundle.h
-        fi
-
-        echo "#endif" >> ca-bundle.h
-fi
-
-
 #      Create and compile the identification source file.
 
 echo '#pragma comment(user, "libcurl version '"${LIBCURL_VERSION}"'")' > os400.c