diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-11-16 15:59:16 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-11-17 16:58:50 +0200 |
commit | 7e8606f27404fe8da3051f90eadef4076f2f7a08 (patch) | |
tree | 1c59c67ed827eda92e32dba2955b9840cbdd4774 /configure.ac | |
parent | f55d72b20824261b5ee2fa6a87573b3f6ed2863a (diff) | |
download | idest-7e8606f27404fe8da3051f90eadef4076f2f7a08.tar.gz idest-7e8606f27404fe8da3051f90eadef4076f2f7a08.tar.bz2 |
Keep textual data in UTF-8 internally; provide new options for recoding
* libid3tag/tag.c (id3_tag_new): Use conservative default options.
* configure.ac: Check for iconv
* src/utf8conv.c: New file.
* src/Makefile.am (idest_SOURCES): Add new source file.
(LDADD): Link with iconv libraries.
* src/backup.c (copy_file): Initialize fsize properly.
* src/cmdline.opt: New options: --fixup, --broken-8bit-charset,
--encoding
* src/guile.c: Remove unused functions.
* src/frametab.gperf: Use textual_frame_encoding.
* src/idest.h: Include locale.h
(latin1_option): Remove.
(charset,broken_8bit_charset)
(textual_frame_encoding,fixup_option): New globals.
(idest_conv_mode): New enum
(utf8_convert): New proto.
* src/idop.c (idest_ucs4_cvt): Hanlde broken_8bit_charset option.
(set_tags): Fix-up frames if so requested.
* src/main.c (latin1_option): Remove.
(textual_frame_encoding,fixup_option): New globals
(main): Set locale.
* bootstrap: Update.
* gnulib: Update.
* gnulib.modules: Add localcharset
* doc/html.init: Minor change.
* doc/idest.texi: Update docs.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 163f1ee..d590639 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # -*- Autoconf -*- # This file is part of Idest. -# Copyright (C) 2009-2011, 2015 Sergey Poznyakoff +# Copyright (C) 2009-2011, 2015, 2016 Sergey Poznyakoff # # Idest is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -29,6 +29,16 @@ AC_PROG_CC gl_EARLY # Checks for libraries. +AM_ICONV +AC_CHECK_HEADERS(iconv.h) +AC_CHECK_TYPE(iconv_t,:, + AC_DEFINE(iconv_t, int, + [Conversion descriptor type]), + [ +#ifdef HAVE_ICONV_H +# include <iconv.h> +#endif +]) # Checks for header files. AC_HEADER_STDC |