[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: argp.m4 missing

From: Simon Josefsson
Subject: [Bug-gnulib] Re: argp.m4 missing
Date: Sun, 17 Aug 2003 19:25:37 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Simon Josefsson <address@hidden> writes:

>       * argp.m4: New file.

I noticed I had made some modifications in another version of the
file, here's what I really uses, which works on several platforms.

I had one idea to make a 'program_invocation_name' module, so that
error.c could use that instead of 'program_name'.  I don't like the
current 'program_name' stuff, it pollute all applications that uses my
library.  Making a module out of it would allow other modules (and
applications) to rely on program_invocation_name, which is a useful
thing to have, but I haven't done anything about this.  Instead of
being declared 'extern', it should, on platforms that doesn't have
program_invocation_name (or a similar way to get the executable name),
be defined to a static string, say 'gnulib' and there could be a
function to set it to something else.  What do you think?

# argp.m4 serial 1
dnl Copyright (C) 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License.  As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.


# Prerequisites of lib/argp*.
  AC_CHECK_HEADERS([argp.h linewrap.h features.h])
  AC_CHECK_DECLS([program_invocation_name, program_invocation_short_name],,,
                 [[#include <errno.h>]])
  AC_CHECK_FUNCS(argp_parse flockfile)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]