X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=ce6a7dd0aebae4b9116f616e832d8b39ed92bd5a;hb=6a4bf18801508eb18520b7b1ec13325fd4101764;hp=c1475e9bb809cde79a2cce9faf4d5623f250111c;hpb=40940dbca159a90c43b46297011246256c5da30e;p=virt-mem.git diff --git a/configure.ac b/configure.ac index c1475e9..ce6a7dd 100644 --- a/configure.ac +++ b/configure.ac @@ -17,9 +17,19 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(virt-mem,0.2.0) +AC_INIT(virt-mem,0.2.4) AC_PROG_INSTALL +AC_PROG_MKDIR_P + +dnl Check for an ANSI C compiler. +AC_GNU_SOURCE +AC_PROG_CC +AC_C_PROTOTYPES +test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant) +AC_PROG_CC_C_O + +AC_CHECK_FUNCS([memmem]) dnl Check for basic OCaml environment & findlib. AC_PROG_OCAML @@ -79,12 +89,12 @@ dnl Write gettext modules for the programs. dnl http://www.le-gall.net/sylvain+violaine/documentation/ocaml-gettext/html/reference-manual/ch03s04.html for d in virt-mem; do f=`echo $d | tr - _`_gettext.ml - AC_MSG_NOTICE([creating $f]) - rm -f $f - echo "(* This file is generated automatically by ./configure. *)" > $f + AC_MSG_NOTICE([creating lib/$f]) + rm -f lib/$f + echo "(* This file is generated automatically by ./configure. *)" > lib/$f if test "x$pkg_gettext" != "xno"; then # Gettext module is available, so use it. - cat <>$f + cat <>lib/$f module Gettext = Gettext.Program ( struct let textdomain = "$d" @@ -96,7 +106,7 @@ module Gettext = Gettext.Program ( EOT else # No gettext module is available, so fake the translation functions. - cat <>$f + cat <>lib/$f module Gettext = struct external s_ : string -> string = "%identity" external f_ : ('a -> 'b, 'c, 'd) format -> ('a -> 'b, 'c, 'd) format @@ -133,6 +143,12 @@ echo "------------------------------------------------------------" dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile + Make.rules + lib/Makefile + lib/virt_mem_version.ml + uname/Makefile + dmesg/Makefile + ps/Makefile po/Makefile ]) AC_OUTPUT