llvm.org GIT mirror llvm / 031d307
Use GZIPBIN instead of GZIP. Apparently gzip uses GZIP as an environment variable for args you want to default pass to gzip. Patch based on one by asau@inbox.ru. Fixes PR8758. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121449 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 8 years ago
4 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
163163 DOT := @DOT@
164164 DOXYGEN := @DOXYGEN@
165165 GROFF := @GROFF@
166 GZIP := @GZIP@
166 GZIPBIN := @GZIPBIN@
167167 OCAMLC := @OCAMLC@
168168 OCAMLOPT := @OCAMLOPT@
169169 OCAMLDEP := @OCAMLDEP@
10521052 AC_PATH_PROG(CAT, [cat])
10531053 AC_PATH_PROG(DOXYGEN, [doxygen])
10541054 AC_PATH_PROG(GROFF, [groff])
1055 AC_PATH_PROG(GZIP, [gzip])
1055 AC_PATH_PROG(GZIPBIN, [gzip])
10561056 AC_PATH_PROG(POD2HTML, [pod2html])
10571057 AC_PATH_PROG(POD2MAN, [pod2man])
10581058 AC_PATH_PROG(PDFROFF, [pdfroff])
741741 CAT
742742 DOXYGEN
743743 GROFF
744 GZIP
744 GZIPBIN
745745 POD2HTML
746746 POD2MAN
747747 PDFROFF
82748274 set dummy gzip; ac_word=$2
82758275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
82768276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8277 if test "${ac_cv_path_GZIP+set}" = set; then
8277 if test "${ac_cv_path_GZIPBIN+set}" = set; then
82788278 echo $ECHO_N "(cached) $ECHO_C" >&6
82798279 else
8280 case $GZIP in
8280 case $GZIPBIN in
82818281 [\\/]* | ?:[\\/]*)
8282 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8282 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
82838283 ;;
82848284 *)
82858285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82898289 test -z "$as_dir" && as_dir=.
82908290 for ac_exec_ext in '' $ac_executable_extensions; do
82918291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8292 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
82938293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
82948294 break 2
82958295 fi
83008300 ;;
83018301 esac
83028302 fi
8303 GZIP=$ac_cv_path_GZIP
8304 if test -n "$GZIP"; then
8305 { echo "$as_me:$LINENO: result: $GZIP" >&5
8306 echo "${ECHO_T}$GZIP" >&6; }
8303 GZIPBIN=$ac_cv_path_GZIPBIN
8304 if test -n "$GZIPBIN"; then
8305 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8306 echo "${ECHO_T}$GZIPBIN" >&6; }
83078307 else
83088308 { echo "$as_me:$LINENO: result: no" >&5
83098309 echo "${ECHO_T}no" >&6; }
2187921879 CAT!$CAT$ac_delim
2188021880 DOXYGEN!$DOXYGEN$ac_delim
2188121881 GROFF!$GROFF$ac_delim
21882 GZIP!$GZIP$ac_delim
21882 GZIPBIN!$GZIPBIN$ac_delim
2188321883 POD2HTML!$POD2HTML$ac_delim
2188421884 POD2MAN!$POD2MAN$ac_delim
2188521885 PDFROFF!$PDFROFF$ac_delim
5858 $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/html.tar
5959 $(Verb) cd $(PROJ_SRC_DIR) && \
6060 $(TAR) cf $(PROJ_OBJ_DIR)/html.tar *.html
61 $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/html.tar
61 $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/html.tar
6262
6363 install-doxygen: doxygen
6464 $(Echo) Installing doxygen documentation
8181 $(Echo) Packaging doxygen documentation
8282 $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/doxygen.tar
8383 $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/doxygen.tar doxygen
84 $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/doxygen.tar
84 $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/doxygen.tar
8585 $(Verb) $(CP) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(PROJ_OBJ_DIR)/doxygen/html/
8686
8787 userloc: $(LLVM_SRC_ROOT)/docs/userloc.html
103103 $(Echo) Packaging ocamldoc documentation
104104 $(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/ocamldoc.tar*
105105 $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/ocamldoc.tar ocamldoc
106 $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/ocamldoc.tar
106 $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/ocamldoc.tar
107107 $(Verb) $(CP) $(PROJ_OBJ_DIR)/ocamldoc.tar.gz $(PROJ_OBJ_DIR)/ocamldoc/html/
108108
109109 regen-ocamldoc: