1#! /bin/sh 2# $Id: adacurses-config.in,v 1.2 2007/04/07 21:06:50 tom Exp $ 3# 4# This script will return the option to add to `gnatmake' for using 5# AdaCurses. 6# 7 8prefix="@prefix@" 9exec_prefix="@exec_prefix@" 10libdir="@libdir@" 11 12VERSION="@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@" 13 14CFLAGS="-I$libdir/adacurses -L$libdir/adacurses" 15LIBS="-L$prefix/lib -lAdaCurses" 16 17case "x$1" in 18 x--version) 19 echo AdaCurses $VERSION 20 ;; 21 x--cflags) 22 echo $CFLAGS 23 ;; 24 x--libs) 25 echo $LIBS 26 ;; 27 x) 28 # if no parameter is given, give what gnatmake needs 29 echo $CFLAGS -largs $LIBS 30 ;; 31 *) 32 echo 'Usage: adacurses-config [--version | --cflags | --libs]' >&2 33 exit 1 34 ;; 35esac 36