From: mdw Date: Tue, 15 Aug 2000 21:37:06 +0000 (+0000) Subject: New common library configuration skeleton, filled in by configure.in. X-Git-Tag: 1.2.8~12 X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/commitdiff_plain/c85e070b575236e0d90befccfbc4237b6a606109 New common library configuration skeleton, filled in by configure.in. Replaces mLib-config etc. --- diff --git a/Makefile.am b/Makefile.am index 60a71e7..0d4622f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with Automake to generate `Makefile.in' ## -*-Makefile-*- ## -## $Id: Makefile.am,v 1.2 1999/05/17 20:43:49 mdw Exp $ +## $Id: Makefile.am,v 1.3 2000/08/15 21:37:06 mdw Exp $ ## ## Building the distribution ## @@ -29,6 +29,10 @@ ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.am,v $ +## Revision 1.3 2000/08/15 21:37:06 mdw +## New common library configuration skeleton, filled in by configure.in. +## Replaces mLib-config etc. +## ## Revision 1.2 1999/05/17 20:43:49 mdw ## Add getdate implementation. ## @@ -50,7 +54,7 @@ pkgdata_DATA = \ COPYING COPYING.LIB INSTALL \ ansi2knr.1 ansi2knr.c \ gpl.tex lgpl.tex gpl.texi lgpl.texi texinfo.tex texinice.tex \ - aclocal.glob \ + aclocal.glob lib-config.in \ mdwopt.c mdwopt.h \ getdate.y getdate.h diff --git a/lib-config.in b/lib-config.in new file mode 100755 index 0000000..b3e7cbc --- /dev/null +++ b/lib-config.in @@ -0,0 +1,106 @@ +#! /bin/sh +# +# $Id: lib-config.in,v 1.1 2000/08/15 21:37:06 mdw Exp $ +# +# Provide configuration information for library clients +# +# (c) 1999 Straylight/Edgeware +# + +#----- Licensing notice ----------------------------------------------------- +# +# This file is part of the Common Files Distribution (`common'). +# +# `Common' is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# `Common' is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with `common'; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +#----- Revision history ----------------------------------------------------- +# +# $Log: lib-config.in,v $ +# Revision 1.1 2000/08/15 21:37:06 mdw +# New common library configuration skeleton, filled in by configure.in. +# Replaces mLib-config etc. +# + +#----- Configuration -------------------------------------------------------- + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +archincludedir=${libdir}/@LIBRARY@/include + +VERSION=@VERSION@ + +#----- Command-line parsing and output -------------------------------------- + +ego=`echo "$0" | sed 's:.*/::'` + +if [ -z "${1+x}" ]; then + echo >&2 "Usage: $ego OPTION" + echo >&2 "Run \`$ego --help' for more information." + exit 1 +fi + +case "$1" in + --help) + cat <&2 "$ego: unrecognized option \`$1'" + exit 1 +esac + +#----- That's all, folks ----------------------------------------------------