#!/bin/sh
#
# libast-config -- libast configuration helper script
#
# 29 October 2000
# Michael Jennings <mej@eterm.org>
#
# See libast source/documentation for license
#

prefix=@prefix@
exec_prefix=@exec_prefix@
CPPFLAGS="@CPPFLAGS@"
LDFLAGS="@LDFLAGS@"
LIBS="@LIBS@"
X11_SUPPORT=@LIBAST_X11_SUPPORT@
IMLIB2_SUPPORT=@LIBAST_IMLIB2_SUPPORT@
MMX_SUPPORT=@LIBAST_MMX_SUPPORT@
REGEXP_SUPPORT=@LIBAST_REGEXP_SUPPORT@
VERSION=@VERSION@

case $1 in
  -h | --help | -help)
    echo "Usage:  libast-config [--version] [--prefix] [--exec-prefix] [--cppflags] [--ldflags] [--libs] [--support]"
    ;;
  -v | --version | -version)
    echo "Libary of Assorted Spiffy Things:  libast $VERSION"
    ;;
  -p | --prefix | -prefix)
    echo "$prefix"
    ;;
  -e | --exec-prefix | -exec-prefix)
    echo "$exec_prefix"
    ;;
  -c | --cppflags | -cppflags | --cflags | -cflags)
    echo "$CPPFLAGS"
    ;;
  -l | --ldflags | -ldflags)
    echo "$LDFLAGS"
    ;;
  -L | --libs | -libs)
    echo "$LIBS"
    ;;
  -s | --support | -support)
    echo "$MMX_SUPPORT $X11_SUPPORT $IMLIB2_SUPPORT"
    ;;
esac
