fix configure on MacOSX/64-bit; add an option to configure or build without camlp4

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12073 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2012-01-23 15:18:22 +00:00
parent 2258a237af
commit e8e3d14e01
5 changed files with 12 additions and 5 deletions

View File

@ -31,6 +31,9 @@ CAMLRUN=byterun/ocamlrun
SHELL=/bin/sh
MKDIR=mkdir -p
CAMLP4OUT=$(CAMLP4:=out)
CAMLP4OPT=$(CAMLP4:=opt)
INCLUDES=-I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver \
-I toplevel
@ -131,7 +134,7 @@ defaultentry:
# Recompile the system using the bootstrap compiler
all: runtime ocamlc ocamllex ocamlyacc ocamltools library ocaml \
otherlibraries ocamlbuild.byte camlp4out $(DEBUGGER) ocamldoc
otherlibraries ocamlbuild.byte $(CAMLP4OUT) $(DEBUGGER) ocamldoc
# Compile everything the first time
world:
@ -264,12 +267,12 @@ opt:
# Native-code versions of the tools
opt.opt: checkstack runtime core ocaml opt-core ocamlc.opt otherlibraries \
$(DEBUGGER) ocamldoc ocamlbuild.byte camlp4out \
$(DEBUGGER) ocamldoc ocamlbuild.byte $(CAMLP4OUT) \
ocamlopt.opt otherlibrariesopt ocamllex.opt ocamltoolsopt.opt \
ocamldoc.opt ocamlbuild.native camlp4opt
ocamldoc.opt ocamlbuild.native $(CAMLP4OPT)
base.opt: checkstack runtime core ocaml opt-core ocamlc.opt otherlibraries \
ocamlbuild.byte camlp4out $(DEBUGGER) ocamldoc ocamlopt.opt \
ocamlbuild.byte $(CAMLP4OUT) $(DEBUGGER) ocamldoc ocamlopt.opt \
otherlibrariesopt
# Installation

Binary file not shown.

Binary file not shown.

Binary file not shown.

6
configure vendored
View File

@ -43,6 +43,7 @@ debugruntime=noruntimed
withsharedlibs=yes
gcc_warnings="-Wall"
partialld="ld -r"
withcamlp4=camlp4
# Try to turn internationalization off, can cause config.guess to malfunction!
unset LANG
@ -112,6 +113,8 @@ while : ; do
verbose=yes;;
-with-debug-runtime|--with-debug-runtime)
debugruntime=runtimed;;
-no-camlp4|--no-camlp4)
withcamlp4="";;
*) echo "Unknown option \"$1\"." 1>&2; exit 2;;
esac
shift
@ -683,7 +686,7 @@ case "$host" in
x86_64-*-freebsd*) arch=amd64; system=freebsd;;
x86_64-*-netbsd*) arch=amd64; system=netbsd;;
x86_64-*-openbsd*) arch=amd64; system=openbsd;;
x86_64-*-darwin9.5) arch=amd64; system=macosx;;
x86_64-*-darwin*) arch=amd64; system=macosx;;
esac
# Some platforms exist both in 32-bit and 64-bit variants, not distinguished
@ -1571,6 +1574,7 @@ echo "MKEXE=$mkexe" >> Makefile
echo "MKDLL=$mksharedlib" >> Makefile
echo "MKMAINDLL=$mkmaindll" >> Makefile
echo "RUNTIMED=${debugruntime}" >>Makefile
echo "CAMLP4=${withcamlp4}" >>Makefile
rm -f tst hasgot.c
rm -f ../m.h ../s.h ../Makefile