#!/bin/sh

prefix="/usr/local"
exec_prefix="${prefix}"
VERSION="1.6.5"
CFLAGS="-Wwrite-strings -W -Wall -g -O2 -pipe"
CPPFLAGS=""
LDFLAGS=""
LIBS=""
LIBDIR="${exec_prefix}/lib"
INCLUDEDIR="${prefix}/include"

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
done
