diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2007-01-09 16:32:44 +0000 |
---|---|---|
committer | Luotao Fu <l.fu@pengutronix.de> | 2007-01-09 16:32:44 +0000 |
commit | b93390c08b4bafbe13441fcc93eb61e05d14d377 (patch) | |
tree | b753bb571d640e53f31a902a33665c9adf52202b /configure.ac | |
parent | 8cea81c5c0569606f172af5559d59e9da1661499 (diff) | |
download | ptxdist-b93390c08b4bafbe13441fcc93eb61e05d14d377.tar.gz ptxdist-b93390c08b4bafbe13441fcc93eb61e05d14d377.tar.xz |
added localedef as requirement for ptxdist
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6799 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 323a6aa37..13e7c2ed2 100644 --- a/configure.ac +++ b/configure.ac @@ -117,6 +117,23 @@ case "$AWK_VERSION" in esac AC_MSG_RESULT([$AWK_VERSION]) +# FIXME: we might want localedef as hosttool later +dnl Check for localedef >= 2.2.0 +AC_PATH_PROGS(LOCALEDEF, localedef,, $PATH) +if test -z "$LOCALEDEF"; then + AC_MSG_ERROR([localedef could not be found, please install]) +fi + +AC_MSG_CHECKING([localedef version]) +LOCALEDEF_VERSION=`$LOCALEDEF --version 2>/dev/null | $SED -ne "s/.*libc. \([[0-9\.]]*\)/\1/p"` +case "$LOCALEDEF_VERSION" in +2.0.*) AC_MSG_ERROR([we need at least GNU localedef 2.2.x but found $LOCALDEF_VERSION]) ;; +2.1.*) AC_MSG_ERROR([we need at least GNU localedef 2.2.x but found $LOCALDEF_VERSION]) ;; +2.2.*) ;; +2.3.*) ;; +*) AC_MSG_ERROR([we need at least GNU localedef 2.2.x]) ;; +esac +AC_MSG_RESULT([$LOCALEDEF_VERSION]) dnl Check for lex AC_PROG_LEX |