missing ncurses sources
[tomato.git] / release / src / router / libncurses / Ada95 / gen / adacurses-config.in
blobec0b6b68b6741417f707f6e7f21bdc9bc10d0784
1 #! /bin/sh
2 # $Id: adacurses-config.in,v 1.6 2010/03/06 21:05:01 tom Exp $
3 ##############################################################################
4 # Copyright (c) 2007-2009,2010 Free Software Foundation, Inc. #
5 # #
6 # Permission is hereby granted, free of charge, to any person obtaining a #
7 # copy of this software and associated documentation files (the "Software"), #
8 # to deal in the Software without restriction, including without limitation #
9 # the rights to use, copy, modify, merge, publish, distribute, distribute #
10 # with modifications, sublicense, and/or sell copies of the Software, and to #
11 # permit persons to whom the Software is furnished to do so, subject to the #
12 # following conditions: #
13 # #
14 # The above copyright notice and this permission notice shall be included in #
15 # all copies or substantial portions of the Software. #
16 # #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23 # DEALINGS IN THE SOFTWARE. #
24 # #
25 # Except as contained in this notice, the name(s) of the above copyright #
26 # holders shall not be used in advertising or otherwise to promote the sale, #
27 # use or other dealings in this Software without prior written #
28 # authorization. #
29 ##############################################################################
31 # This script returns the options to add to `gnatmake' for using AdaCurses.
33 DESTDIR=@DESTDIR@
34 prefix=@prefix@
35 exec_prefix=@exec_prefix@
36 libdir=@libdir@
38 ADA_INCLUDE=@ADA_INCLUDE@
39 ADA_OBJECTS=@ADA_OBJECTS@
41 VERSION=@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@
43 CFLAGS="-I$ADA_INCLUDE -aO$ADA_OBJECTS"
44 LIBS="-L$ADA_OBJECTS -lAdaCurses"
46 THIS="adacurses"
48 case "x$1" in
49 x--version)
50 echo AdaCurses $VERSION
52 x--cflags)
53 echo $CFLAGS
55 x--libs)
56 echo $LIBS
59 # if no parameter is given, give what gnatmake needs
60 echo "$CFLAGS -i -largs $LIBS"
62 x--help)
63 cat <<ENDHELP
64 Usage: ${THIS}-config [options]
66 Options:
67 --cflags echos the C compiler flags needed to compile with ${THIS}
68 --libs echos the libraries needed to link with ${THIS}
70 --version echos the release+patchdate version of ${THIS}
72 --help prints this message
73 ENDHELP
76 echo 'Usage: adacurses@DFT_ARG_SUFFIX@-config [--version | --cflags | --libs]' >&2
77 exit 1
79 esac