dnl -*-m4-*-
dnl configure.in for ICU Apps
dnl Steven R. Loomis
dnl copyright (c) 1999 IBM, Inc.

dnl Process this file with autoconf to produce a configure script
AC_INIT(usort/lib/usort.h)
AC_PREFIX_PROGRAM(genrb)

# Cross compiling is taken care of becuase you're pointing to an entire set of configuration options
AC_CHECK_FILE($prefix/share/icu/Makefile.inc,,AC_MSG_ERROR([Could not find the installed ICU. Re-run ./configure with --prefix=XXX where XXX is the same prefix that the ICU was configured with. ]))

AC_CHECK_HEADERS($prefix/include/utypes.h,,AC_MSG_ERROR([Could not find the installed ICU. Re-run ./configure with --prefix=XXX where XXX is the same prefix that the ICU was configured with. ]))

PACKAGE="icuapps"
AC_SUBST(PACKAGE)

AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)

ICU_MAKEFILE=$prefix/share/icu/Makefile.inc
AC_SUBST(ICU_MAKEFILE)

AC_OUTPUT([Makefile  uconv/Makefile  usort/Makefile usort/lib/Makefile usort/client/Makefile locexp/Makefile locexp/tools/Makefile locexp/util/Makefile locexp/resource/Makefile])
