From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, WEIRD_QUOTING shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A278E1F453 for ; Sun, 10 Feb 2019 20:49:15 +0000 (UTC) Received: from localhost ([127.0.0.1]:36456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsw2M-0005DJ-3z for normalperson@yhbt.net; Sun, 10 Feb 2019 15:49:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsw2I-0004sk-BS for bug-gnulib@gnu.org; Sun, 10 Feb 2019 15:49:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsvxp-0001Td-0r for bug-gnulib@gnu.org; Sun, 10 Feb 2019 15:44:44 -0500 Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::12]:22734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gsvxV-0001Kv-6b for bug-gnulib@gnu.org; Sun, 10 Feb 2019 15:44:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1549831438; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=6dbegv8psy6eUt0Uktd4/oAzjjhf6CVyJe5sIoWi0rQ=; b=j3sxfwxHMUca2cqW4TusANuke/Y4QxKUVqgd902SGXrohFY37smJOiUb0Lp2dX4rPA WpEAwbBpi4Dme92JMwfFMoKZ9FAVU3Ib+/uVlYe8TfsymLR4rImkseHLS2cozWeCmM+I 9k0aelds9IV7omD0qpri02NzXYX3AitIEgGH9AV02jEDRYY1CPPh6arQO6ptegN4rECY HaVdnBmg4O2KC/pGIP4Os9RvIijFKBkOtvFe0RZ+/aKkRRZdUi/q3R8EBmizGqGCd213 3FVBYduQSkmlLD8pU7ro7aSr2nZZ26hjz9nS5xm4ecsrfnTaS8SKn5uMkmIdXuA69cgq pG4w== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGaf3zJZW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.9 DYNA|AUTH) with ESMTPSA id v0a34ev1AKhw1jj (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sun, 10 Feb 2019 21:43:58 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: new module 'libtextstyle' Date: Sun, 10 Feb 2019 21:43:58 +0100 Message-ID: <4021030.saFCfHBFFD@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::12 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Now that a first release of libtextstyle is out of the door, here comes a module that makes it easy to link with it. Like Gnulib already has modules for linking with readline, libsigsegv, libunistring, etc. 2019-02-10 Bruno Haible libtextstyle: New module. * m4/libtextstyle.m4: New file. * modules/libtextstyle: New file. diff --git a/m4/libtextstyle.m4 b/m4/libtextstyle.m4 new file mode 100644 index 0000000..b71e786 --- /dev/null +++ b/m4/libtextstyle.m4 @@ -0,0 +1,22 @@ +# libtextstyle.m4 serial 1 +dnl Copyright (C) 2019 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl gl_LIBTEXTSTYLE +dnl Searches for an installed libtextstyle. +dnl If found, it sets and AC_SUBSTs HAVE_LIBTEXTSTYLE=yes and the LIBTEXTSTYLE +dnl and LTLIBTEXTSTYLE variables, and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIBTEXTSTYLE to 1. +dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBTEXTSTYLE=no and LIBTEXTSTYLE and +dnl LTLIBTEXTSTYLE to empty. + +AC_DEFUN([gl_LIBTEXTSTYLE], +[ + AC_LIB_HAVE_LINKFLAGS([textstyle], [], + [#include ], [term_styled_ostream_create(1,"",TTYCTL_AUTO,"");], + [no]) +]) diff --git a/modules/libtextstyle b/modules/libtextstyle new file mode 100644 index 0000000..e086c41 --- /dev/null +++ b/modules/libtextstyle @@ -0,0 +1,27 @@ +Description: +Output of styled text. + +Files: +m4/libtextstyle.m4 + +Depends-on: +havelib + +configure.ac: +gl_LIBTEXTSTYLE + +Makefile.am: + +Include: +#if HAVE_LIBTEXTSTYLE +# include +#endif + +Link: +$(LTLIBTEXTSTYLE) when linking with libtool, $(LIBTEXTSTYLE) otherwise + +License: +GPL + +Maintainer: +all