Codebase list findlib / fefde87
Imported Upstream version 1.2.5 Stephane Glondu 14 years ago
4 changed file(s) with 34 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
00 #! /bin/sh
1 # $Id: configure 130 2009-02-16 01:09:27Z gerd $
1 # $Id: configure 134 2009-09-10 20:00:26Z gerd $
22 # ----------------------------------------------------------------------
33 #
44
66
77 #set -x
88
9 version="1.2.4"
9 version="1.2.5"
1010
1111 # Remember the old IFS value:
1212 oldifs="$IFS"
6060 get_stdlib () {
6161 # Older versions of ocamlc do not accept -where, so there is a fallback
6262 # method:
63 ocamlc -where 2>/dev/null | tr -d '\r' || {
63 ocamlc -where 2>/dev/null | tr -d '\015' || {
6464 ocamlc -v | sed -n -e "/Standard library directory/s/.*: \(.*\)/\1/p"; }
6565 }
6666
202202 # This may be
203203 # - mingw
204204 # - win32
205 # - win64
205206 # - cygwin
206207 # - some other string means Unix
207208 # - empty means ocamlc does not support -config
210211 case "$system" in
211212 mingw) use_cygpath=1;;
212213 win32) use_cygpath=1;;
214 win64) use_cygpath=1;;
213215 esac
214216
215217 ######################################################################
8484 List of Changes
8585 ==============================================================================
8686
87 - 1.2.5: Fix: Again CR deletion... Turns out some OS do not understand '\r'
88 but only '\015' (thanks to Isaiah Weiner)
89 Support for Win64 (untested; thanks to David Allsopp)
90 ocamlfind no longer emits auto-generated -ccopt options. These tend to
91 accumulate, and it is possible that for large projects the maximum command
92 line length is exceeded. Current versions of the O'Caml compilers do not
93 need these extra -ccopt anyway, so this code is completely dropped.
94
8795 - 1.2.4: Fix: Bigarray needs unix (Thanks to Markus Mottl)
8896 Fix: In the version of camlp4 provided by O'Caml 3.11 various libraries do
8997 not contain dynlink anymore. Because of this, dynlink becomes a
8080 mkdir -p "$(prefix)$(OCAML_SITELIB)/$(NAME)"
8181 mkdir -p "$(prefix)$(OCAMLFIND_BIN)"
8282 test $(INSTALL_TOPFIND) -eq 0 || cp topfind "$(prefix)$(OCAML_CORE_STDLIB)"
83 files=`$(TOP)/tools/collect_files $(TOP)/Makefile.config findlib.cmi findlib.mli findlib.cma topfind.cmi topfind.mli fl_package_base.mli fl_package_base.cmi fl_metascanner.mli fl_metascanner.cmi findlib_top.cma findlib.cmxa findlib.a META` && \
83 files=`$(TOP)/tools/collect_files $(TOP)/Makefile.config findlib.cmi findlib.mli findlib.cma topfind.cmi topfind.mli fl_package_base.mli fl_package_base.cmi fl_metascanner.mli fl_metascanner.cmi fl_metatoken.cmi findlib_top.cma findlib.cmxa findlib.a META` && \
8484 cp $$files "$(prefix)$(OCAML_SITELIB)/$(NAME)"
8585 f="ocamlfind$(EXEC_SUFFIX)"; { test -f ocamlfind_opt$(EXEC_SUFFIX) && f="ocamlfind_opt$(EXEC_SUFFIX)"; }; \
8686 cp $$f "$(prefix)$(OCAMLFIND_BIN)/ocamlfind$(EXEC_SUFFIX)"
0 (* $Id: frontend.ml 130 2009-02-16 01:09:27Z gerd $
0 (* $Id: frontend.ml 133 2009-09-02 18:58:02Z gerd $
11 * ----------------------------------------------------------------------
22 *
33 *)
313313 Sys.signal Sys.sigint Sys.Signal_ignore in
314314
315315 let need_exe =
316 List.mem Findlib_config.system [ "win32"; "mingw" ] in
316 List.mem Findlib_config.system [ "win32"; "win64"; "mingw" ] in
317317
318318 let fixed_cmd =
319319 if need_exe then (
430430 let i_format =
431431 "-I %d" in
432432 let l_format =
433 if Findlib_config.system = "win32" then
433 if Findlib_config.system = "win32" || Findlib_config.system = "win64" then
434434 (* Microsoft toolchain *)
435435 "-ccopt \"/link /libpath:%d\""
436436 else
957957 []
958958 else
959959 [ "-I"; slashify pkgdir;
960 "-ccopt"; out_path ~prefix:"-I" pkgdir; ])
960 (* "-ccopt"; out_path ~prefix:"-I" pkgdir; -- see comment *)
961 ])
961962 eff_packages_dl) in
962
963 (* We no longer emit -ccopt options, because ocamlc/ocamlopt already
964 do that for each -I if the C compiler needs to be invoked
965 (so far I tracked it, ocamlc/ocamlopt have always done this, even
966 back in 1996).
967 *)
968
969 let l_options = [] in
970 (* Also, no longer -ccopt -L options. Current ocamlc/ocamlopt do that
971 for each -I option passed to them anyway, so we can omit that here.
972 See ocaml change (quite old, but I was not aware of it):
973 http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/asmcomp/asmlink.ml.diff?r1=1.38;r2=1.39
974 *)
975 (*
963976 let l_options =
964977 List.flatten
965978 (List.map
968981 if List.mem npkgdir exclude_list then
969982 []
970983 else
971 if Findlib_config.system = "win32" then
984 if Findlib_config.system = "win32" || Findlib_config.system = "win64" then
972985 (* Microsoft toolchain *)
973986 [ "-ccopt"; out_path ~prefix:"/link /libpath:" pkgdir ]
974987 else
975988 [ "-ccopt"; out_path ~prefix:"-L" pkgdir; ])
976989 eff_link_dl) in
990 *)
977991
978992 let archives =
979993 List.flatten