#!/usr/bin/sh
#
# libsent configuration result reporter
#
# "libsent-config --cflags" generates C defines, and
# "libsent-config --libs" generates libraries needed for compile with
# the sentlib
#
# by Doshita Lab. Speech Group, Kyoto University  1991-2000
# by Shikano Lab. Speech Group, NAIST 2002

#
# ripped from gtk's gtk-config.in
#
# $Id: libsent-config-dist.in,v 1.2 2011/03/04 03:01:48 sumomo Exp $
#

#
# libsent-config-dist.  Generated from libsent-config-dist.in by configure.
#

sound_inc=" "
sound_libs=" -lpulse-simple -lpulse -lasound  -lz -lsndfile"
version="\
Julius/Julian libsent library rev.4.6"
info="\
****************************************************************
Julius/Julian libsent library rev.4.6:

- Built on:
    compiler (CC)            : gcc
    cflags (CFLAGS)          : -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=gnu17   -fPIC 
    cppflags (CPPFLAGS)      :   -DHAVE_CONFIG_H
- Audio I/O
    primary mic device API   : alsa (Advanced Linux Sound Architecture)
    available mic device API : pulseaudio alsa oss
    supported audio format   : various formats by libsndfile ver.1
    NetAudio support         : no
- Language Modeling
    class N-gram support     : yes
- Libraries
    file decompression by    : zlib library
- Process management
    fork on adinnet input    : no
- CUDA
    built-in CUDA support    : no

  Note: compilation time flags are now stored in \"libsent-config\".
        If you link this library, add output of
        \"libsent-config --cflags\" to CFLAGS, and
        \"libsent-config --libs\" to LIBS.
****************************************************************"
usage="\
Usage: libsent-config [--clags] [--libs] [--info] [--version]"

prefix="/usr"
exec_prefix="/usr"

if test $# -eq 0; then
      echo "${usage}" 1>&2
      exit 1
fi

while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac

    case $1 in
	--cflags)
	    echo -I/usr/include $sound_inc
	    ;;
	--libs)
	    echo -L/usr/lib64 -lsent $sound_libs  -lm
	    ;;
	--version)
	    echo "${version}"
	    ;;
	--info)
	    echo "${info}"
	    ;;
        *)
	    echo "${usage}" 1>&2
	    exit 1
	    ;;
    esac
    shift
done

echo

exit 0
