adacurses-config.in 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #! /bin/sh
  2. # $Id: adacurses-config.in,v 1.5 2009/01/11 00:08:19 tom Exp $
  3. ##############################################################################
  4. # Copyright (c) 2007,2009 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. ##############################################################################
  30. #
  31. # This script returns the options to add to `gnatmake' for using AdaCurses.
  32. DESTDIR=@DESTDIR@
  33. prefix=@prefix@
  34. exec_prefix=@exec_prefix@
  35. libdir=@libdir@
  36. ADA_INCLUDE=@ADA_INCLUDE@
  37. ADA_OBJECTS=@ADA_OBJECTS@
  38. VERSION=@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@
  39. CFLAGS="-I$ADA_INCLUDE -aO$ADA_OBJECTS"
  40. LIBS="-L$ADA_OBJECTS -lAdaCurses"
  41. case "x$1" in
  42. x--version)
  43. echo AdaCurses $VERSION
  44. ;;
  45. x--cflags)
  46. echo $CFLAGS
  47. ;;
  48. x--libs)
  49. echo $LIBS
  50. ;;
  51. x)
  52. # if no parameter is given, give what gnatmake needs
  53. echo "$CFLAGS -i -largs $LIBS"
  54. ;;
  55. *)
  56. echo 'Usage: adacurses@DFT_ARG_SUFFIX@-config [--version | --cflags | --libs]' >&2
  57. exit 1
  58. ;;
  59. esac