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

prefix=/opt/local
exec_prefix=${prefix}
CPPFLAGS="-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "
LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 "
LIBS="-lImlib2 -lfreetype -lX11  -lSM -lICE -lpcre -ldl -lm  "
X11_SUPPORT=X11
IMLIB2_SUPPORT=Imlib2
MMX_SUPPORT=
REGEXP_SUPPORT=regexp-pcre
VERSION=0.8

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
