From: Bruno Haible Date: Mon, 14 Feb 2005 11:09:44 +0000 (+0000) Subject: gnulib module 'strtol'. X-Git-Tag: v0.14.2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9258c17fb2d67f741b3a41949a363c2fc15fcfca;p=thirdparty%2Fgettext.git gnulib module 'strtol'. --- diff --git a/gettext-tools/m4/strtol.m4 b/gettext-tools/m4/strtol.m4 new file mode 100644 index 000000000..b9308ed53 --- /dev/null +++ b/gettext-tools/m4/strtol.m4 @@ -0,0 +1,19 @@ +# strtol.m4 serial 3 +dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_STRTOL], +[ + AC_REPLACE_FUNCS(strtol) + if test $ac_cv_func_strtol = no; then + gl_PREREQ_STRTOL + fi +]) + +# Prerequisites of lib/strtol.c. +AC_DEFUN([gl_PREREQ_STRTOL], [ + AC_REQUIRE([AC_HEADER_STDC]) + AC_CHECK_FUNCS_ONCE(isascii) +])