don't output the entire iconv() declaration in configure messages, looks ugly and is useless anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
27fd024644
commit
b7043674e7
24
acinclude.m4
24
acinclude.m4
@ -336,8 +336,6 @@ dnl ---------------------------------------------------------------------------
|
|||||||
dnl test for availability of iconv()
|
dnl test for availability of iconv()
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
#serial AM2
|
|
||||||
|
|
||||||
dnl From Bruno Haible.
|
dnl From Bruno Haible.
|
||||||
|
|
||||||
AC_DEFUN([AM_ICONV],
|
AC_DEFUN([AM_ICONV],
|
||||||
@ -377,8 +375,7 @@ AC_DEFUN([AM_ICONV],
|
|||||||
])
|
])
|
||||||
if test "$am_cv_func_iconv" = yes; then
|
if test "$am_cv_func_iconv" = yes; then
|
||||||
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
|
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
|
||||||
AC_MSG_CHECKING([for iconv declaration])
|
AC_CACHE_CHECK([if iconv needs const], wx_cv_func_iconv_const,
|
||||||
AC_CACHE_VAL(am_cv_proto_iconv, [
|
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
@ -391,12 +388,19 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
|
|||||||
#else
|
#else
|
||||||
size_t iconv();
|
size_t iconv();
|
||||||
#endif
|
#endif
|
||||||
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
|
],
|
||||||
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
|
[],
|
||||||
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
wx_cv_func_iconv_const="no",
|
||||||
AC_MSG_RESULT([$]{ac_t:-
|
wx_cv_func_iconv_const="yes"
|
||||||
}[$]am_cv_proto_iconv)
|
)
|
||||||
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
|
)
|
||||||
|
|
||||||
|
iconv_const=
|
||||||
|
if test "x$wx_cv_func_iconv_const" != "xyes"; then
|
||||||
|
iconv_const="const"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_DEFINE_UNQUOTED(ICONV_CONST, $iconv_const,
|
||||||
[Define as const if the declaration of iconv() needs const.])
|
[Define as const if the declaration of iconv() needs const.])
|
||||||
fi
|
fi
|
||||||
LIBICONV=
|
LIBICONV=
|
||||||
|
24
aclocal.m4
vendored
24
aclocal.m4
vendored
@ -348,8 +348,6 @@ dnl ---------------------------------------------------------------------------
|
|||||||
dnl test for availability of iconv()
|
dnl test for availability of iconv()
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
#serial AM2
|
|
||||||
|
|
||||||
dnl From Bruno Haible.
|
dnl From Bruno Haible.
|
||||||
|
|
||||||
AC_DEFUN([AM_ICONV],
|
AC_DEFUN([AM_ICONV],
|
||||||
@ -389,8 +387,7 @@ AC_DEFUN([AM_ICONV],
|
|||||||
])
|
])
|
||||||
if test "$am_cv_func_iconv" = yes; then
|
if test "$am_cv_func_iconv" = yes; then
|
||||||
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
|
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
|
||||||
AC_MSG_CHECKING([for iconv declaration])
|
AC_CACHE_CHECK([if iconv needs const], wx_cv_func_iconv_const,
|
||||||
AC_CACHE_VAL(am_cv_proto_iconv, [
|
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
@ -403,12 +400,19 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
|
|||||||
#else
|
#else
|
||||||
size_t iconv();
|
size_t iconv();
|
||||||
#endif
|
#endif
|
||||||
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
|
],
|
||||||
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
|
[],
|
||||||
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
wx_cv_func_iconv_const="no",
|
||||||
AC_MSG_RESULT([$]{ac_t:-
|
wx_cv_func_iconv_const="yes"
|
||||||
}[$]am_cv_proto_iconv)
|
)
|
||||||
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
|
)
|
||||||
|
|
||||||
|
iconv_const=
|
||||||
|
if test "x$wx_cv_func_iconv_const" != "xyes"; then
|
||||||
|
iconv_const="const"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_DEFINE_UNQUOTED(ICONV_CONST, $iconv_const,
|
||||||
[Define as const if the declaration of iconv() needs const.])
|
[Define as const if the declaration of iconv() needs const.])
|
||||||
fi
|
fi
|
||||||
LIBICONV=
|
LIBICONV=
|
||||||
|
Loading…
Reference in New Issue
Block a user