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

Collapse All | Expand All

(-)a/configure.ac.orig (-2 / +39 lines)
Lines 55-62 AC_PROG_CXX Link Here
55
# Gnulib (early checks).
55
# Gnulib (early checks).
56
gl_EARLY
56
gl_EARLY
57
57
58
# We want ostream_printf and hyperlink support.
58
AC_ARG_WITH([libtextstyle],
59
gl_LIBTEXTSTYLE_OPTIONAL([0.20.5])
59
  [AS_HELP_STRING([--with-libtextstyle],
60
    [support fancy colors @<:@default=check@:>@])],
61
  [],
62
  [with_libtextstyle=check])
63
64
[echo "RX: with_libtextstyle: $with_libtextstyle"]
65
66
AC_DEFUN([gl_LIBTEXTSTYLE_WITH],
67
[
68
  AS_IF([test "x$with_libtextstyle" = xyes -o "x$with_libtextstyle" = xcheck],
69
    [gl_LIBTEXTSTYLE([$1])]
70
  )
71
72
  AS_IF([test "x$with_libtextstyle" = xyes],
73
    AS_IF([test "x$HAVE_LIBTEXTSTYLE" != xyes],
74
      AC_MSG_FAILURE(
75
        [--with-libtextstyle was given, but test for libtextstyle failed])
76
    )
77
  )
78
79
  [set -x]
80
  # Copied from libtextstyle-optional.m4
81
  AS_IF([test $HAVE_LIBTEXTSTYLE = yes],
82
    [TEXTSTYLE_H=],
83
    [
84
      TEXTSTYLE_H=textstyle.h
85
      AC_REQUIRE([AC_C_INLINE])
86
      AC_CHECK_FUNCS_ONCE([tcdrain])
87
    ]
88
  )
89
  AC_SUBST([TEXTSTYLE_H])
90
  AM_CONDITIONAL([GL_GENERATE_TEXTSTYLE_H], [test -n "$TEXTSTYLE_H"])
91
92
  [set +x]
93
])
94
95
# We want version 0.20.5 for ostream_printf and hyperlink support.
96
gl_LIBTEXTSTYLE_WITH(0.20.5)
60
97
61
# Gnulib uses '#pragma GCC diagnostic push' to silence some
98
# Gnulib uses '#pragma GCC diagnostic push' to silence some
62
# warnings, but older gcc doesn't support this.
99
# warnings, but older gcc doesn't support this.

Return to bug 925100