Checking for the availability of snprintf(), fixes bug #42070.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4777 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
5bd359dbb9
commit
d6ecb969ae
|
@ -4,6 +4,8 @@
|
||||||
* src/winio.c: Relocate and correct a few comments.
|
* src/winio.c: Relocate and correct a few comments.
|
||||||
* README.SVN: To build nano from svn, ssh is not required.
|
* README.SVN: To build nano from svn, ssh is not required.
|
||||||
* src/*.c: Normalize whitespace around '==' comparison.
|
* src/*.c: Normalize whitespace around '==' comparison.
|
||||||
|
* configure.ac: Check for the availability of snprintf(),
|
||||||
|
fixes Savannah bug #42070 reported by David Lawrence Ramsey.
|
||||||
|
|
||||||
2014-04-14 Benno Schulenberg <bensberg@justemail.net>
|
2014-04-14 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/{proto.h,cut.c,nano.c,text.c}: Remove the unused parameter
|
* src/{proto.h,cut.c,nano.c,text.c}: Remove the unused parameter
|
||||||
|
|
17
configure.ac
17
configure.ac
|
@ -419,18 +419,27 @@ int main(void)
|
||||||
|
|
||||||
dnl Checks for functions.
|
dnl Checks for functions.
|
||||||
|
|
||||||
AC_CHECK_FUNCS(getdelim getline isblank strcasecmp strcasestr strncasecmp strnlen vsnprintf)
|
AC_CHECK_FUNCS(getdelim getline isblank strcasecmp strcasestr strncasecmp strnlen snprintf vsnprintf)
|
||||||
|
|
||||||
if test "x$enable_utf8" != xno; then
|
if test "x$enable_utf8" != xno; then
|
||||||
AC_CHECK_FUNCS(iswalnum iswblank iswpunct iswspace nl_langinfo mblen mbstowcs mbtowc wctomb wcwidth)
|
AC_CHECK_FUNCS(iswalnum iswblank iswpunct iswspace nl_langinfo mblen mbstowcs mbtowc wctomb wcwidth)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test x$ac_cv_func_snprintf = xno; then
|
||||||
|
AM_PATH_GLIB_2_0(2.0.0,,
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** snprintf() not found. GLIB 2.x not found either.
|
||||||
|
*** You should install the GLIB 2.x library which can
|
||||||
|
*** be found at http://ftp.gtk.org/.]),
|
||||||
|
glib)
|
||||||
|
fi
|
||||||
|
|
||||||
if test x$ac_cv_func_vsnprintf = xno; then
|
if test x$ac_cv_func_vsnprintf = xno; then
|
||||||
AM_PATH_GLIB_2_0(2.0.0,,
|
AM_PATH_GLIB_2_0(2.0.0,,
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
*** vsnprintf() not found. GLIB 2.x not found either. You should
|
*** vsnprintf() not found. GLIB 2.x not found either.
|
||||||
*** install the GLIB 2.x library which can be found at
|
*** You should install the GLIB 2.x library which can
|
||||||
*** ftp://ftp.gtk.org/.]),
|
*** be found at http://ftp.gtk.org/.]),
|
||||||
glib)
|
glib)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue