Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 74694 | Differences between
and this patch

Collapse All | Expand All

(-)vilistextum-2.6.7/CHANGES (-2 / +8 lines)
Lines 1-9 Link Here
1
2.6.7-gentoo: (02.01.2005)
2
3
  - configure fixed to correctly process --disable-multibyte
4
  - configure falls back to standard iconv() if no libiconv is found
5
  - BUGFIX: three off-by-one error in get_attr found by Ewald Dieterich
6
1
2.6.7: (19.12.2004)
7
2.6.7: (19.12.2004)
2
8
3
  - BUGFIX: buffer overflow in get_attr found by Ariel Berkman
9
  - BUGFIX: buffer overflow in get_attr() found by Ariel Berkman
4
  - BUGFIX: compilation fix for Solaris by Fredrik Roubert
10
  - BUGFIX: compilation fix for Solaris by Fredrik Roubert
5
  - more robust behaviour when encountering invalid byte sequences
11
  - more robust behaviour when encountering invalid byte sequences
6
  - added RPM-spec file by Joshua Jensen.
12
  - added RPM-spec file by Joshua Jensen
7
13
8
2.6.6: (24.08.2004)
14
2.6.6: (24.08.2004)
9
15
(-)vilistextum-2.6.7/INSTALL (-1 / +1 lines)
Lines 11-17 Link Here
11
Multibyte/Unicode version
11
Multibyte/Unicode version
12
=========================
12
=========================
13
13
14
./configure --enable && make && make install
14
./configure --enable-multibyte && make && make install
15
15
16
The multibyte version needs libiconv.
16
The multibyte version needs libiconv.
17
http://www.gnu.org/software/libiconv
17
http://www.gnu.org/software/libiconv
(-)vilistextum-2.6.7/config.h.in (+3 lines)
Lines 3-8 Link Here
3
/* Define to 1 if you have the <getopt.h> header file. */
3
/* Define to 1 if you have the <getopt.h> header file. */
4
#undef HAVE_GETOPT_H
4
#undef HAVE_GETOPT_H
5
5
6
/* Define to 1 if you have the <iconv.h> header file. */
7
#undef HAVE_ICONV_H
8
6
/* Define to 1 if you have the <inttypes.h> header file. */
9
/* Define to 1 if you have the <inttypes.h> header file. */
7
#undef HAVE_INTTYPES_H
10
#undef HAVE_INTTYPES_H
8
11
(-)vilistextum-2.6.7/configure (-12 / +159 lines)
Lines 846-852 Link Here
846
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
846
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847
  --disable-dependency-tracking Speeds up one-time builds
847
  --disable-dependency-tracking Speeds up one-time builds
848
  --enable-dependency-tracking  Do not reject slow dependency extractors
848
  --enable-dependency-tracking  Do not reject slow dependency extractors
849
  --enable-multibyte      Enable multibyte support. Needs libiconv.
849
  --enable-multibyte      Enable multibyte support.
850
850
851
Optional Packages:
851
Optional Packages:
852
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
Lines 1541-1547 Link Here
1541
1541
1542
# Define the identity of the package.
1542
# Define the identity of the package.
1543
 PACKAGE=vilistextum
1543
 PACKAGE=vilistextum
1544
 VERSION=2.6.7
1544
 VERSION=2.6.7-gentoo
1545
1545
1546
1546
1547
cat >>confdefs.h <<_ACEOF
1547
cat >>confdefs.h <<_ACEOF
Lines 1673-1679 Link Here
1673
1673
1674
1674
1675
cat >>confdefs.h <<_ACEOF
1675
cat >>confdefs.h <<_ACEOF
1676
#define RELEASEDATE "19.12.2004"
1676
#define RELEASEDATE "02.01.2005"
1677
_ACEOF
1677
_ACEOF
1678
1678
1679
1679
Lines 3615-3627 Link Here
3615
# Check whether --enable-multibyte or --disable-multibyte was given.
3615
# Check whether --enable-multibyte or --disable-multibyte was given.
3616
if test "${enable_multibyte+set}" = set; then
3616
if test "${enable_multibyte+set}" = set; then
3617
  enableval="$enable_multibyte"
3617
  enableval="$enable_multibyte"
3618
  multibyte="yes"
3618
  use_multibyte=$enableval
3619
else
3619
else
3620
  multibyte="no"
3620
  use_multibyte=no
3621
fi;
3621
fi;
3622
echo "$as_me:$LINENO: result: $multibyte" >&5
3622
echo "$as_me:$LINENO: result: $use_multibyte" >&5
3623
echo "${ECHO_T}$multibyte" >&6
3623
echo "${ECHO_T}$use_multibyte" >&6
3624
if test "$multibyte" = "yes"; then
3624
3625
if test "$use_multibyte" = "yes"; then
3625
3626
3626
cat >>confdefs.h <<\_ACEOF
3627
cat >>confdefs.h <<\_ACEOF
3627
#define MULTIBYTE 1
3628
#define MULTIBYTE 1
Lines 3629-3635 Link Here
3629
3630
3630
fi
3631
fi
3631
3632
3632
if test "$multibyte" = "yes"; then
3633
if test "$use_multibyte" = "yes"; then
3634
3635
for ac_header in iconv.h
3636
do
3637
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3638
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3639
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3640
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3641
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642
  echo $ECHO_N "(cached) $ECHO_C" >&6
3643
fi
3644
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3645
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3646
else
3647
  # Is the header compilable?
3648
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3649
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3650
cat >conftest.$ac_ext <<_ACEOF
3651
#line $LINENO "configure"
3652
/* confdefs.h.  */
3653
_ACEOF
3654
cat confdefs.h >>conftest.$ac_ext
3655
cat >>conftest.$ac_ext <<_ACEOF
3656
/* end confdefs.h.  */
3657
$ac_includes_default
3658
#include <$ac_header>
3659
_ACEOF
3660
rm -f conftest.$ac_objext
3661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662
  (eval $ac_compile) 2>&5
3663
  ac_status=$?
3664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665
  (exit $ac_status); } &&
3666
         { ac_try='test -s conftest.$ac_objext'
3667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668
  (eval $ac_try) 2>&5
3669
  ac_status=$?
3670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671
  (exit $ac_status); }; }; then
3672
  ac_header_compiler=yes
3673
else
3674
  echo "$as_me: failed program was:" >&5
3675
sed 's/^/| /' conftest.$ac_ext >&5
3676
3677
ac_header_compiler=no
3678
fi
3679
rm -f conftest.$ac_objext conftest.$ac_ext
3680
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3681
echo "${ECHO_T}$ac_header_compiler" >&6
3682
3683
# Is the header present?
3684
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3685
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3686
cat >conftest.$ac_ext <<_ACEOF
3687
#line $LINENO "configure"
3688
/* confdefs.h.  */
3689
_ACEOF
3690
cat confdefs.h >>conftest.$ac_ext
3691
cat >>conftest.$ac_ext <<_ACEOF
3692
/* end confdefs.h.  */
3693
#include <$ac_header>
3694
_ACEOF
3695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697
  ac_status=$?
3698
  grep -v '^ *+' conftest.er1 >conftest.err
3699
  rm -f conftest.er1
3700
  cat conftest.err >&5
3701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702
  (exit $ac_status); } >/dev/null; then
3703
  if test -s conftest.err; then
3704
    ac_cpp_err=$ac_c_preproc_warn_flag
3705
  else
3706
    ac_cpp_err=
3707
  fi
3708
else
3709
  ac_cpp_err=yes
3710
fi
3711
if test -z "$ac_cpp_err"; then
3712
  ac_header_preproc=yes
3713
else
3714
  echo "$as_me: failed program was:" >&5
3715
sed 's/^/| /' conftest.$ac_ext >&5
3716
3717
  ac_header_preproc=no
3718
fi
3719
rm -f conftest.err conftest.$ac_ext
3720
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3721
echo "${ECHO_T}$ac_header_preproc" >&6
3722
3723
# So?  What about this header?
3724
case $ac_header_compiler:$ac_header_preproc in
3725
  yes:no )
3726
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3727
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3728
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3729
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3730
    (
3731
      cat <<\_ASBOX
3732
## ------------------------------------ ##
3733
## Report this to bug-autoconf@gnu.org. ##
3734
## ------------------------------------ ##
3735
_ASBOX
3736
    ) |
3737
      sed "s/^/$as_me: WARNING:     /" >&2
3738
    ;;
3739
  no:yes )
3740
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3745
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3746
    (
3747
      cat <<\_ASBOX
3748
## ------------------------------------ ##
3749
## Report this to bug-autoconf@gnu.org. ##
3750
## ------------------------------------ ##
3751
_ASBOX
3752
    ) |
3753
      sed "s/^/$as_me: WARNING:     /" >&2
3754
    ;;
3755
esac
3756
echo "$as_me:$LINENO: checking for $ac_header" >&5
3757
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3758
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3759
  echo $ECHO_N "(cached) $ECHO_C" >&6
3760
else
3761
  eval "$as_ac_Header=$ac_header_preproc"
3762
fi
3763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3765
3766
fi
3767
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768
  cat >>confdefs.h <<_ACEOF
3769
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3770
_ACEOF
3771
3772
else
3773
  { { echo "$as_me:$LINENO: error: Need libiconv or iconv.h for multibyte support" >&5
3774
echo "$as_me: error: Need libiconv or iconv.h for multibyte support" >&2;}
3775
   { (exit 1); exit 1; }; }
3776
fi
3777
3778
done
3779
3780
3633
3781
3634
echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
3782
echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
3635
echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
3783
echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
Lines 3693-3701 Link Here
3693
  LIBS="-liconv $LIBS"
3841
  LIBS="-liconv $LIBS"
3694
3842
3695
else
3843
else
3696
  { { echo "$as_me:$LINENO: error: Need libiconv for multibyte support" >&5
3844
  { echo "$as_me:$LINENO: WARNING: only generic iconv has been found not libiconv" >&5
3697
echo "$as_me: error: Need libiconv for multibyte support" >&2;}
3845
echo "$as_me: WARNING: only generic iconv has been found not libiconv" >&2;}
3698
   { (exit 1); exit 1; }; }
3699
fi
3846
fi
3700
3847
3701
3848
(-)vilistextum-2.6.7/configure.in (-8 / +12 lines)
Lines 1-11 Link Here
1
dnl Process this file with autoconf to produce a configure script.
1
dnl Process this file with autoconf to produce a configure script.
2
AC_INIT(src/debug.h)
2
AC_INIT(src/debug.h)
3
AM_INIT_AUTOMAKE(vilistextum, 2.6.7)
3
AM_INIT_AUTOMAKE(vilistextum, 2.6.7-gentoo)
4
4
5
AM_CONFIG_HEADER(config.h)
5
AM_CONFIG_HEADER(config.h)
6
6
7
dnl Set current date
7
dnl Set current date
8
AC_DEFINE_UNQUOTED(RELEASEDATE, "19.12.2004", "Release date of the program")
8
AC_DEFINE_UNQUOTED(RELEASEDATE, "02.01.2005", "Release date of the program")
9
9
10
dnl Checks for programs.
10
dnl Checks for programs.
11
AC_PROG_CC
11
AC_PROG_CC
Lines 27-43 Link Here
27
dnl checking for options
27
dnl checking for options
28
AC_MSG_CHECKING(if --enable-multibyte specified)
28
AC_MSG_CHECKING(if --enable-multibyte specified)
29
AC_ARG_ENABLE(multibyte,
29
AC_ARG_ENABLE(multibyte,
30
        [  --enable-multibyte      Enable multibyte support. Needs libiconv.],
30
  AC_HELP_STRING([--enable-multibyte], [Enable multibyte support.]),
31
        [multibyte="yes"], [multibyte="no"])
31
  [use_multibyte=$enableval], [use_multibyte=no])
32
AC_MSG_RESULT($multibyte)
32
AC_MSG_RESULT($use_multibyte)
33
if test "$multibyte" = "yes"; then
33
34
if test "$use_multibyte" = "yes"; then
34
        AC_DEFINE(MULTIBYTE, 1, "Enable multibyte support (e.g. unicode, shift_jis)")
35
        AC_DEFINE(MULTIBYTE, 1, "Enable multibyte support (e.g. unicode, shift_jis)")
35
fi
36
fi
36
37
37
dnl Checks for libraries.
38
dnl Checks for libraries.
38
if test "$multibyte" = "yes"; then
39
if test "$use_multibyte" = "yes"; then
40
AC_CHECK_HEADERS(iconv.h,,
41
			AC_MSG_ERROR(Need libiconv or iconv.h for multibyte support))
42
39
	AC_CHECK_LIB(iconv, iconv,,
43
	AC_CHECK_LIB(iconv, iconv,,
40
		AC_MSG_ERROR(Need libiconv for multibyte support))
44
			AC_MSG_WARN(only generic iconv has been found not libiconv))
41
45
42
dnl setting INTERNAL_LOCALE
46
dnl setting INTERNAL_LOCALE
43
AC_MSG_CHECKING(for unicode locale)
47
AC_MSG_CHECKING(for unicode locale)

Return to bug 74694