diff options
author | Johannes Schickel | 2010-06-15 17:13:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-06-15 17:13:42 +0000 |
commit | 0d7c8071cc8baed030d5f25203982e0613440412 (patch) | |
tree | 0757902177e6c308d0cb8f506df76268c140976e /configure | |
parent | cf6a29e8623be7ae9575ee34fa42e1c2c2d29a3b (diff) | |
download | scummvm-rg350-0d7c8071cc8baed030d5f25203982e0613440412.tar.gz scummvm-rg350-0d7c8071cc8baed030d5f25203982e0613440412.tar.bz2 scummvm-rg350-0d7c8071cc8baed030d5f25203982e0613440412.zip |
Fix iconv signature on BSD systems. (Based on what we do in tools/)
svn-id: r49868
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2349,6 +2349,18 @@ EOF add_to_config_h_if_yes $_termconv '#define TERMCONV' if test "$_termconv" = yes ; then + uses_const=no + cat > $TMPC << EOF +#include <iconv.h> +int main(int argc, char **argv) { + iconv_t iconvP; + const char **inbuf = 0; + iconv(iconvP, inbuf, 0, 0, 0); + return 0; +} +EOF + cc_check $LDFLAGS $LIBS $CXXFLAGS && uses_const=yes + add_to_config_h_if_yes $uses_const '#define ICONV_USES_CONST' echo "with terminal conversion)" else echo "without terminal conversion)" |