chiark / gitweb /
New library configuration stuff from `common'.
authormdw <mdw>
Tue, 15 Aug 2000 22:40:48 +0000 (22:40 +0000)
committermdw <mdw>
Tue, 15 Aug 2000 22:40:48 +0000 (22:40 +0000)
.links
configure.in
mgLib-config.in [deleted file]

diff --git a/.links b/.links
index 251e82ed87716ecaf70957905416b97385dd52a4..9dcc9db68939eaa45ac355ecc1bc3013daadd0e5 100644 (file)
--- a/.links
+++ b/.links
@@ -2,3 +2,4 @@ COPYING.LIB
 install-sh
 missing
 mkinstalldirs
+lib-config.in
index 80c19277a8b54eb1318ef1db3ed4fbc40abe2f66..642c092a2124935a5b0c69b6b37c9c5b451e05a6 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-
 dnl
-dnl $Id: configure.in,v 1.7 1999/11/11 19:54:37 mdw Exp $
+dnl $Id: configure.in,v 1.8 2000/08/15 22:40:48 mdw Exp $
 dnl
 dnl Configuration script for mgLib
 dnl
@@ -29,6 +29,9 @@ dnl MA 02111-1307, USA.
 dnl ----- Revision history --------------------------------------------------
 dnl
 dnl $Log: configure.in,v $
+dnl Revision 1.8  2000/08/15 22:40:48  mdw
+dnl New library configuration stuff from `common'.
+dnl
 dnl Revision 1.7  1999/11/11 19:54:37  mdw
 dnl Prep for standalone release.
 dnl
@@ -56,7 +59,6 @@ AC_INIT(mdwfocus.c)
 AM_INIT_AUTOMAKE(mgLib, 1.1.0)
 
 AC_PROG_CC
-AC_CHECK_PROG(AR, ar, ar)
 AM_PROG_LIBTOOL
 
 mdw_MLIB(1.6.0)
@@ -66,6 +68,6 @@ AM_PATH_GTK(1.0.0,
 
 mdw_OPT_mLib_DEBUG(mgLib)
 
-AC_OUTPUT(Makefile mgLib-config)
+AC_OUTPUT(Makefile mgLib-config:lib-config.in)
 
 dnl ----- That's all, folks -------------------------------------------------
diff --git a/mgLib-config.in b/mgLib-config.in
deleted file mode 100755 (executable)
index e7d339f..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#! /bin/sh
-#
-# $Id: mgLib-config.in,v 1.1 1999/11/21 13:47:30 mdw Exp $
-#
-# Provide configuration information for mgLib clients
-#
-# (c) 1999 Straylight/Edgeware
-#
-
-#----- Licensing notice -----------------------------------------------------
-#
-# This file is part of mgLib.
-#
-# mgLib is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Library General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-# 
-# mgLib 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 Library General Public License for more details.
-# 
-# You should have received a copy of the GNU Library General Public
-# License along with mgLib; if not, write to the Free
-# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-# MA 02111-1307, USA.
-
-#----- Revision history -----------------------------------------------------
-#
-# $Log: mgLib-config.in,v $
-# Revision 1.1  1999/11/21 13:47:30  mdw
-# Configuration script for mgLib clients.
-#
-
-#----- Configuration --------------------------------------------------------
-
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-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 <<EOF
-mgLib, version $VERSION
-
-Usage: $ego OPTION
-
-Provides configuration parameters for mgLib client programs.  Options
-are:
-
---help         Display this help text.
---version      Display mgLib version number.
---check VERSION        Verifies that the given version number is supported.
---cflags       Display appropriate compiler flags.
---libs         Display appropriate linker flags and library names.
-EOF
-  ;;
-  --version)
-    echo $VERSION
-    ;;
-  --check)
-    version=${2-1.0.0pre0}
-    set `echo $VERSION | sed 's/[^0-9][^0-9]*/ /g'`
-    MAJOR=${1-1} MINOR=${2-0} PATCH=${3-0} PRE=$4
-    set `echo $version | sed 's/[^0-9][^0-9]*/ /g'`
-    major=${1-1} minor=${2-0} patch=${3-0} pre=$4
-    [ $major -gt $MAJOR ] && exit 1
-    [ $major -lt $MAJOR ] && exit 0
-    [ $minor -gt $MINOR ] && exit 1
-    [ $minor -lt $MINOR ] && exit 0
-    [ $patch -gt $PATCH ] && exit 1
-    [ $patch -lt $PATCH ] && exit 0
-    if [ "$PRE" ]; then
-      [ -z "$pre" ] && exit 1
-      [ $pre -gt $PRE ] && exit 1
-      [ $pre -lt $PRE ] && exit 0
-    fi
-    exit 0
-    ;;
-  --cflags)
-    echo "-I${includedir}"
-    ;;
-  --libs)
-    echo "-L${libdir} -lmgLib"
-    ;;
-  *)
-    echo >&2 "$ego: unrecognized option \`$1'"
-    exit 1
-esac
-
-#----- That's all, folks ----------------------------------------------------