57 |
# OPT "opt" |
# OPT "opt" |
58 |
# BYTE "byte" |
# BYTE "byte" |
59 |
|
|
60 |
AC_INIT(env.ml) |
AC_INIT(misc/env.ml) |
61 |
|
|
62 |
# Check for Ocaml compilers |
# Check for Ocaml compilers |
63 |
|
|
90 |
fi |
fi |
91 |
fi |
fi |
92 |
|
|
93 |
|
AC_CHECK_PROG(OCAMLMKLIB,ocamlmklib,ocamlmklib,no) |
94 |
|
if test "$OCAMLMKLIB" = no ; then |
95 |
|
AC_MSG_WARN([CANNOT FIND OCAMLMKLIB! Bytecode compilation only.]) |
96 |
|
fi |
97 |
|
|
98 |
|
# enable native code compilation only if bothocamlopt and ocamlmklib are here. |
99 |
OPT= |
OPT= |
100 |
if test "$OCAMLOPT" != no ; then |
if test "$OCAMLOPT" != no -a "$OCAMLMKLIB" != no; then |
101 |
OPT=opt |
OPT=opt |
102 |
fi |
fi |
103 |
|
|
211 |
AC_SUBST(OCAMLWIN32) |
AC_SUBST(OCAMLWIN32) |
212 |
AC_SUBST(EXE) |
AC_SUBST(EXE) |
213 |
|
|
214 |
# Finally create the Makefile from Makefile.in |
# Finally create common.Makefile from commom.Makefile.in |
215 |
AC_OUTPUT(Makefile) |
AC_OUTPUT(common.Makefile) |
216 |
chmod a-w Makefile |
chmod a-w common.Makefile |