adacurses-config.in 753 B

123456789101112131415161718192021222324252627282930313233343536
  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. prefix="@prefix@"
  8. exec_prefix="@exec_prefix@"
  9. libdir="@libdir@"
  10. VERSION="@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@"
  11. CFLAGS="-I$libdir/adacurses -L$libdir/adacurses"
  12. LIBS="-L$prefix/lib -lAdaCurses"
  13. case "x$1" in
  14. x--version)
  15. echo AdaCurses $VERSION
  16. ;;
  17. x--cflags)
  18. echo $CFLAGS
  19. ;;
  20. x--libs)
  21. echo $LIBS
  22. ;;
  23. x)
  24. # if no parameter is given, give what gnatmake needs
  25. echo $CFLAGS -largs $LIBS
  26. ;;
  27. *)
  28. echo 'Usage: adacurses-config [--version | --cflags | --libs]' >&2
  29. exit 1
  30. ;;
  31. esac