Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (39 sloc) 1.236 kb
b5e7d01 @toots Fix merge.
toots authored
1 AC_INIT([ocaml-duppy],[0.5.1],[savonet-users@lists.sourceforge.net])
2ac6f3e Here it is.
smimram@aec24677-d710-0410-a355-ac75e2bdf181 authored
2
3 VERSION=$PACKAGE_VERSION
4 AC_SUBST(VERSION)
5 AC_MSG_RESULT([configuring $PACKAGE_STRING])
6
ae0a69d @toots * Added a base macros for bindings' autoconf. Currently, it does:
toots authored
7 AC_BASE_CHECKS()
2ac6f3e Here it is.
smimram@aec24677-d710-0410-a355-ac75e2bdf181 authored
8
2807d6e @toots * Documented win32 port
toots authored
9 AC_CHECK_OCAML_BINDING([pcre],[],[],[1])
10 INC="$INC `$OCAMLFIND query pcre`"
2ac6f3e Here it is.
smimram@aec24677-d710-0410-a355-ac75e2bdf181 authored
11
2807d6e @toots * Documented win32 port
toots authored
12 if test "$CAMLP4O" != "no" ; then
13 PA_DUPPY="pa_duppy.cmo"
14 PA_DOC="pa_duppy.mli"
15 PA_DUPPY_META="package \"syntax\" (
f7b1bb8 Commited new monadic extension to duppy.
metamorph68@aec24677-d710-0410-a355-ac75e2bdf181 authored
16 description = \"Syntactic sugars for Duppy\"
17 requires = \"camlp4\"
18 version=\"${VERSION}\"
19 archive(syntax,preprocessor) = \"pa_duppy.cmo\"
20 archive(syntax,toploop) = \"pa_duppy.cmo\"
21 )"
22 fi
23
24 AC_SUBST(PA_DUPPY)
25 AC_SUBST(PA_DUPPY_META)
26 AC_SUBST(PA_DOC)
27
2ac6f3e Here it is.
smimram@aec24677-d710-0410-a355-ac75e2bdf181 authored
28 # substitutions to perform
f7b1bb8 Commited new monadic extension to duppy.
metamorph68@aec24677-d710-0410-a355-ac75e2bdf181 authored
29 requires="unix threads pcre bigarray"
2ac6f3e Here it is.
smimram@aec24677-d710-0410-a355-ac75e2bdf181 authored
30 AC_SUBST(VERSION)
31 ALL_INC="`ocamlfind query -r -separator " " $requires` $_INC"
32 INC="$INC $_INC"
33 AC_SUBST(INC)
34 AC_SUBST(ALL_INC)
35 all_requires="`ocamlfind query -r -separator " " -format "%p" $requires` $_requires"
36 requires="$requires $_requires"
37 AC_SUBST(requires)
38 AC_SUBST(all_requires)
39
40 # Finally create the Makefile and samples
41 AC_CONFIG_FILES([Makefile],[chmod a-w Makefile])
42 AC_CONFIG_FILES([src/META])
43 AC_CONFIG_FILES([src/Makefile])
44 AC_CONFIG_FILES([examples/Makefile.telnet])
45 AC_CONFIG_FILES([examples/Makefile.http])
46 AC_OUTPUT
Something went wrong with that request. Please try again.