Rename xmark test files so that the name order respects the size order.
[tatoo.git] / configure.in
index fb09327..478a416 100644 (file)
@@ -3,7 +3,6 @@ AC_INIT([TAToo],
         [Kim Nguyễn <kn@lri.fr>],
         [tatoo])
 
-
 #detect ocamlfind
 OCAMLFIND=ocamlfind
 AC_ARG_WITH([ocamlfind],
@@ -150,8 +149,8 @@ AC_SUBST(EXE)
 
 # required libraries
 AC_MSG_CHECKING([for ulex])
-$OCAMLFIND query ulex >/dev/null 2>&1
-if test $? ; then
+ulex_path=`$OCAMLFIND query ulex 2>/dev/null`
+if test "$ulex_path" ; then
    AC_MSG_RESULT([found])
 else
    AC_MSG_RESULT([not found])
@@ -159,12 +158,12 @@ else
 fi
 
 AC_MSG_CHECKING([for expat])
-$OCAMLFIND query ulex >/dev/null 2>&1
-if test $? ; then
+expat_path=`$OCAMLFIND query expat 2>/dev/null`
+if test "$expat_path" ; then
    AC_MSG_RESULT([found])
 else
    AC_MSG_RESULT([not found])
-   AC_MSG_ERROR([Cannot find ulex.])
+   AC_MSG_ERROR([Cannot find expat.])
 fi
 
 #compilation options
@@ -250,4 +249,5 @@ AC_SUBST(OCAMLCFLAGS)
 AC_SUBST(OCAMLOPTFLAGS)
 AC_SUBST(CAMLP4FLAGS)
 AC_CONFIG_FILES(Remakefile)
+AC_CONFIG_FILES(Makefile)
 AC_OUTPUT