• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

autoopts/H23-Jun-2020-1,998972

compat/H23-Jun-2020-988619

m4/H23-Jun-2020-663594

COPYING.gplv3H A D26-Apr-201534.3 KiB675553

COPYING.lgplv3H A D26-Apr-20157.5 KiB166128

COPYING.mbsdH A D26-Apr-20151.4 KiB2823

MakeDefs.incH A D12-Aug-20090

Makefile.amH A D03-May-20222.5 KiB6556

Makefile.inH A D03-May-202227.5 KiB845753

READMEH A D26-Apr-20154.8 KiB12393

ag-char-map.hH A D26-Apr-201526.7 KiB527414

alias.cH A D26-Apr-20153.3 KiB11737

ao-strs.cH A D26-Apr-201513.8 KiB375333

ao-strs.hH A D26-Apr-201514 KiB331288

autoopts.cH A D26-Apr-201511.9 KiB398166

autoopts.hH A D26-Apr-201513 KiB485229

boolean.cH A D26-Apr-20152.5 KiB9636

check.cH A D26-Apr-20154.8 KiB17878

configfile.cH A D05-Dec-201535.8 KiB1,382753

cook.cH A D26-Apr-20159.2 KiB326151

enum.cH A D05-Dec-201518.1 KiB653368

env.cH A D26-Apr-20157.2 KiB268123

file.cH A D26-Apr-20155.7 KiB20292

find.cH A D05-Dec-201522 KiB781368

genshell.cH A D26-Apr-201530.6 KiB848618

genshell.hH A D03-Mar-20207.8 KiB21095

gettext.hH A D26-Apr-20159.8 KiB289213

init.cH A D05-Dec-20158.4 KiB294121

intprops.hH A D26-Apr-201514.6 KiB321129

libopts.cH A D26-Apr-20151.1 KiB4948

load.cH A D05-Dec-201516 KiB589284

makeshell.cH A D05-Dec-201524.4 KiB957555

nested.cH A D05-Dec-201524.3 KiB939553

numeric.cH A D26-Apr-20155.1 KiB18082

option-value-type.cH A D26-Apr-20155.5 KiB15784

option-value-type.hH A D26-Apr-20152.4 KiB6122

option-xat-attribute.cH A D26-Apr-20155 KiB14976

option-xat-attribute.hH A D26-Apr-20152.3 KiB5819

parse-duration.cH A D05-Dec-201512.1 KiB611437

parse-duration.hH A D26-Apr-20153.3 KiB916

pgusage.cH A D26-Apr-20154.9 KiB18889

proto.hH A D26-Apr-20152.7 KiB14769

putshell.cH A D26-Apr-201514.6 KiB512251

reset.cH A D05-Dec-20153.8 KiB14267

restore.cH A D26-Apr-20156.8 KiB224103

save.cH A D05-Dec-201520.5 KiB810448

sort.cH A D26-Apr-20159.8 KiB341177

stack.cH A D26-Apr-20157.2 KiB268119

stdnoreturn.in.hH A D26-Apr-20151.8 KiB517

streqvcmp.cH A D26-Apr-20158.1 KiB285110

text_mmap.cH A D26-Apr-201511 KiB380161

time.cH A D26-Apr-20153.8 KiB14461

tokenize.cH A D05-Dec-20159 KiB340171

usage.cH A D26-Apr-201538.2 KiB1,337747

version.cH A D26-Apr-20156.1 KiB238105

README

1        THIS TARBALL IS NOT A FULL DISTRIBUTION.
2
3The contents of this tarball is designed to be incorporated into
4software packages that utilize the AutoOpts option automation package
5and are intended to be installed on systems that may not have libopts
6installed.  It is redistributable under the terms of either the LGPL
7(see COPYING.lgpl) or under the terms of the advertising clause free BSD
8license (see COPYING.mbsd).
9
10Usage Instructions for autoconf/automake/libtoolized projects:
11
121. Install the unrolled tarball into your package source tree,
13   copying ``libopts.m4'' to your autoconf macro directory.
14
15   In your bootstrap (pre-configure) script, you can do this:
16
17      rm -rf libopts libopts-*
18      gunzip -c `autoopts-config libsrc` | tar -xvf -
19      mv -f libopts-*.*.* libopts
20      cp -fp libopts/m4/*.m4 m4/.
21
22   I tend to put my configure auxiliary files in "m4".
23   Whatever directory you choose, if it is not ".", then
24   be sure to tell autoconf about it with:
25
26      AC_CONFIG_AUX_DIR(m4)
27
28   This is one macro where you *MUST* remember to *NOT* quote
29   the argument.  If you do, automake will get lost.
30
312. Add an invocation of either LIBOPTS_CHECK or LIBOPTS_CHECK_NOBUILD
32   to your configure.ac file.  See LIBOPTS_CHECK: below for details.
33
343. Add the following to your top level ``Makefile.am'' file:
35
36      if NEED_LIBOPTS
37         SUBDIRS += $(LIBOPTS_DIR)
38      endif
39
40   where ``<...>'' can be whatever other files or directories you may
41   need.  The SUBDIRS must be properly ordered.  *PLEASE NOTE* it is
42   crucial that the SUBDIRS be set under the control of an automake
43   conditional.  To work correctly, automake has to know the range of
44   possible values of SUBDIRS.  It's a magical name with magical
45   properties.  ``NEED_LIBOPTS'' will be correctly set by the
46   ``LIBOPTS_CHECK'' macro, above.
47
484. Add ``$(LIBOPTS_CFLAGS)'' to relevant compiler flags and
49   ``$(LIBOPTS_LDADD)'' to relevant link options whereever
50   you need them in your build tree.
51
525. Make sure your object files explicitly depend upon the
53   generated options header file.  e.g.:
54
55     $(prog_OBJECTS) : prog-opts.h
56     prog-opts.h : prog-opts.c
57     prog-opts.c : prog-opts.def
58         autogen prog-opts.def
59
606. *OPTIONAL* --
61   If you are creating man pages and texi documentation from
62   the program options, you will need these rules somewhere, too:
63
64     man_MANS = prog.1
65     prog.1 : prog-opts.def
66         autogen -Tagman-cmd.tpl -bprog prog-opts.def
67
68     invoke-prog.texi : prog-opts.def
69         autogen -Tagtexi-cmd.tpl prog-opts.def
70
71If your package does not utilize the auto* tools, then you
72will need to hand craft the rules for building the library.
73
74LIBOPTS_CHECK:
75
76The arguments to both macro are a relative path to the directory with
77the libopts source code.  It is optional and defaults to "libopts".
78These macros work as follows:
79
801.  LIBOPTS_CHECK([libopts/rel/path/optional])
81
82    Adds two command-line options to the generated configure script,
83    --enable-local-libopts and --disable-libopts-install.  AC_SUBST's
84    LIBOPTS_CFLAGS, LIBOPTS_LDADD, and LIBOPTS_DIR for use in
85    Makefile.am files.  Adds Automake conditional NEED_LIBOPTS which
86    will be true when the local copy of libopts should be built.  Uses
87    AC_CONFIG_FILES([$libopts-dir/Makefile]) to cause the local libopts
88    into the package build.  If the optional relative path to libopts is
89    not provided, it defaults to simply "libopts".
90
912.  LIBOPTS_CHECK_NOBUILD([libopts/rel/path/optional])
92
93    This variant of LIBOPTS_CHECK is useful when multiple configure.ac
94    files in a package make use of a single libopts tearoff.  In that
95    case, only one of the configure.ac files should build libopts and
96    others should simply use it.  Consider this package arrangment:
97
98    all-tools/
99      configure.ac
100      common-tools/
101        configure.ac
102        libopts/
103
104    The parent package all-tools contains a subpackage common-tools
105    which can be torn off and used independently.  Programs configured
106    by both configure.ac files link against the common-tools/libopts
107    tearoff, when not using the system's libopts.  The top-level
108    configure.ac uses LIBOPTS_CHECK_NOBUILD([common-tools/libopts]),
109    while common-tools/configure.ac uses LIBOPTS_CHECK.  The difference
110    is LIBOPTS_CHECK_NOBUILD will never build the libopts tearoff,
111    leaving that to the subpackage configure.ac's LIBOPTS_CHECK.
112    Specifically, LIBOPTS_CHECK_NOBUILD always results in the
113    NEED_LIBOPTS Automake conditional being false, and does not invoke
114    AC_CONFIG_FILES(path-to-libopts/Makefile).
115
116LICENSING:
117
118This material is Copyright (C) 1992-2015 by Bruce Korb.  You are
119licensed to use this under the terms of either the GNU Lesser General
120Public License (see: COPYING.lgpl), or, at your option, the modified
121Berkeley Software Distribution License (see: COPYING.mbsd).  Both of
122these files should be included with this tarball.
123