#!/bin/sh

prefix="/usr"
exec_prefix="/usr"
VERSION="1.7.1"
CFLAGS="-Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic"
CPPFLAGS="  -I/usr/include/python3.7m"
LDFLAGS="   -lpython3.7m"
LIBS="  -lcrypto"
LIBDIR="/usr/lib"
INCLUDEDIR="/usr/include"
LIBVERSION="3:0:0"

for arg in $@
do
    if [ $arg = "--cflags" ]
    then
        echo "-I${INCLUDEDIR}"
    fi
    if [ $arg = "--libs" ]
    then
        echo "${LDFLAGS} -L${LIBDIR} ${LIBS} -lldns"
    fi
    if [ $arg = "-h" ] || [ $arg = "--help" ]
    then
        echo "Usage: $0 [--cflags] [--libs] [--version]"
    fi
    if [ $arg = "--version" ]
    then
        echo "${VERSION}"
    fi
    if [ $arg = "--libversion" ]
    then
        echo "${LIBVERSION}"
    fi
done
