transport_config.mk 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # -*-makefile-*- <-- an Emacs control
  2. # The make variables herein come from config.mk, which is included
  3. # by the make file that includes us.
  4. transport_config.h: $(BLDDIR)/config.mk
  5. rm -f $@
  6. echo '/* This file was generated by a make rule */' >>$@
  7. ifeq ($(MUST_BUILD_WININET_CLIENT),yes)
  8. echo '#define MUST_BUILD_WININET_CLIENT 1' >>$@
  9. else
  10. echo '#define MUST_BUILD_WININET_CLIENT 0' >>$@
  11. endif
  12. ifeq ($(MUST_BUILD_CURL_CLIENT),yes)
  13. echo '#define MUST_BUILD_CURL_CLIENT 1' >>$@
  14. else
  15. echo '#define MUST_BUILD_CURL_CLIENT 0' >>$@
  16. endif
  17. ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
  18. echo '#define MUST_BUILD_LIBWWW_CLIENT 1' >>$@
  19. else
  20. echo '#define MUST_BUILD_LIBWWW_CLIENT 0' >>$@
  21. endif
  22. echo "static const char * const XMLRPC_DEFAULT_TRANSPORT =" >>$@
  23. ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
  24. echo '"libwww";' >>$@
  25. else
  26. ifeq ($(MUST_BUILD_CURL_CLIENT),yes)
  27. echo '"curl";' >>$@
  28. else
  29. ifeq ($(MUST_BUILD_WININET_CLIENT),yes)
  30. echo '"wininet";' >>$@
  31. else
  32. @echo 'ERROR: no client XML transport configured'; rm $@; false
  33. endif
  34. endif
  35. endif