X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=configure.in;fp=configure.in;h=0de71a1d2c08d656fea6bd3014ffb68ede3d5cd4;hp=297c4e5e71053e755578ced3736fdc5a24e3dce6;hb=b73ad7605777c49c65673e34f6f9ee635053db13;hpb=b866f48cda3ad750790a71658f5a13612f93241f diff --git a/configure.in b/configure.in index 297c4e5..0de71a1 100644 --- a/configure.in +++ b/configure.in @@ -190,7 +190,7 @@ AC_ARG_ENABLE([profile], [PROFILE=no]) if test "x$PROFILE" = "xyes"; then - OCAMLOPTFLAGS="$OCAMLOPTFLAGS -p" + OCAMLOPTFLAGS="$OCAMLOPTFLAGS -p -ccopt -no-pie" OCAMLC="$OCAMLFIND ocamlcp" fi @@ -211,13 +211,14 @@ AC_ARG_ENABLE([inline], [INLINE=$enableval], [INLINE=100]) +OCAMLOPTFLAGS="$OCAMLOPTFLAGS -inline $INLINE" #unsafe AC_ARG_ENABLE([unsafe], [ --enable-unsafe use unsafe array and string accesses], [UNSAFE=1], [UNSAFE=0]) -if test "x$UNSAFE" = "xyes"; then +if test "x$UNSAFE" = "x1"; then CAMLP4FLAGS="$CAMLP4FLAGS -unsafe" fi @@ -250,12 +251,10 @@ else AC_MSG_NOTICE([$REMAKE exists, not rebuilding]) fi - -AC_SUBST(INLINE) AC_SUBST(OCAMLFLAGS) AC_SUBST(OCAMLCFLAGS) AC_SUBST(OCAMLOPTFLAGS) AC_SUBST(CAMLP4FLAGS) -AC_CONFIG_FILES(Remakefile) -AC_CONFIG_FILES(Makefile) +AC_CONFIG_FILES(Makefile Remakefile) + AC_OUTPUT