Blob Blame History Raw
#! /bin/sh
# shout-config library configuration script
# generated by ac_config_libconfig_in.m4
 
template_version="1.0.0"
 
package="@PACKAGE@"
 
# usage instructions if no options given
if test "$#" -eq 0; then
   cat <<EOF
Usage: shout-config [OPTIONS]
Options:
        [--prefix[=DIR]]
        [--exec-prefix[=DIR]]
        [--package]
        [--version]
        [--cppflags]
        [--cflags-only]
        [--cflags]
        [--libs]
        [--help]
EOF
fi
 
# parse options
o=""
h=""
for i
do
  case $i in
    --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;
    --exec-prefix=*) exec_prefix=`echo $i | sed -e "s/--exec-prefix=//"` ;;
    --eprefix=*) exec_prefix=`echo $i | sed -e "s/--eprefix=//"` ;;
    --prefix) echo_prefix="yes" ;;
    --exec-prefix) echo_exec_prefix="yes" ;;
    --eprefix) echo_eprefix="yes" ;;
    --package) echo_package="yes" ;;
    --version) echo_version="yes" ;;
    --cppflags) echo_cppflags="yes" ;;
    --cflags-only) echo_cflags_only="yes" ;;
    --cflags) echo_cflags="yes" ;;
    --libs) echo_libs="yes" ;;
    --bindir) echo_bindir="yes" ;;
    --sbindir) echo_sbindir="yes" ;;
    --libexecdir) echo_libexecdir="yes" ;;
    --datadir) echo_datadir="yes" ;;
    --sysconfdir) echo_sysconfdir="yes" ;;
    --sharedstatedir) echo_sharedstatedir="yes" ;;
    --localstatedir) echo_localstatedir="yes" ;;
    --libdir) echo_libdir="yes" ;;
    --infodir) echo_infodir="yes" ;;
    --mandir) echo_mandir="yes" ;;
    --target) echo_target="yes" ;;
    --host) echo_host="yes" ;;
    --build) echo_build="yes" ;;
    --pkgdatadir) echo_pkgdatadir="yes" ;;
    --pkglibdir) echo_pkglibdir="yes" ;;
    --pkgincludedir) echo_pkgincludedir="yes" ;;
    --template-version) echo_template_version="yes" ;;
    --help) echo_help="yes" ;;
    //*|/*//*|./*//*)        echo_extra="yes" ;;
    *) eval "echo Unknown option: $i" ; exit 1 ;;
  esac
done
 
# defaults from configure; set only if not set previously
if test -z "$prefix" ; then
  prefix="@prefix@"
fi
if test -z "$exec_prefix" ; then
  exec_prefix="@exec_prefix@"
fi
if test -z "$bindir" ; then
  bindir="@bindir@"
fi
if test -z "$sbindir" ; then
  sbindir="@sbindir@"
fi
if test -z "$libexecdir" ; then
  libexecdir="@libexecdir@"
fi
if test -z "$datadir" ; then
  datadir="@datadir@"
fi
if test -z "$sysconfdir" ; then
  sysconfdir="@sysconfdir@"
fi
if test -z "$sharedstatedir" ; then
  sharedstatedir="@sharedstatedir@"
fi
if test -z "$localstatedir" ; then
  localstatedir="@localstatedir@"
fi
if test -z "$libdir" ; then
  libdir="@libdir@"
fi
if test -z "$infodir" ; then
  infodir="@infodir@"
fi
if test -z "$mandir" ; then
  mandir="@mandir@"
fi
if test -z "$includedir" ; then
  includedir="@includedir@"
fi
if test -z "$target" ; then
  target="@target@"
fi
if test -z "$host" ; then
  host="@host@"
fi
if test -z "$build" ; then
  build="@build@"
fi
 
# generate output
if test x$echo_module != xyes ; then
  echo_module_shout="yes"
fi
if test x$echo_module_shout = xyes ; then
  cppflags="$cppflags @shout_cppflags@"
  cflags="$cflags @shout_cflags@"
  libs="$libs @shout_libs@"
  version="$version @SHOUT_VERSION@"
fi
if test x$echo_prefix = xyes ; then
  o=" $prefix"
fi
if test x$echo_exec_prefix = xyes ; then
  o="$o $exec_prefix"
fi
if test x$echo_eprefix = xyes ; then
  o="$o $exec_prefix"
fi
if test x$echo_package = xyes ; then
  o=" $package"
fi
if test x$echo_version = xyes ; then
  o=" $version"
fi
if test x$echo_cppflags = xyes ; then
  o="$o $cppflags"
fi
if test x$echo_cflags_only = xyes ; then
  o="$o $cflags"
fi
if test x$echo_cflags = xyes ; then
  o="$o $cppflags $cflags"
fi
if test x$echo_libs = xyes ; then
  o="$o -L$libdir $libs"
fi
if test x$echo_bindir = xyes ; then
  o=" $bindir"
fi
if test x$echo_sbindir = xyes ; then
  o=" $sbindir"
fi
if test x$echo_libexecdir = xyes ; then
  o=" $libexecdir"
fi
if test x$echo_datadir = xyes ; then
  o=" $datadir"
fi
if test x$echo_sysconfdir = xyes ; then
  o=" $sysconfdir"
fi
if test x$echo_sharedstatedir = xyes ; then
  o=" $sharedstatedir"
fi
if test x$echo_localstatedir = xyes ; then
  o=" $localstatedir"
fi
if test x$echo_libdir = xyes ; then
  o=" $libdir"
fi
if test x$echo_infodir = xyes ; then
  o=" $infodir"
fi
if test x$echo_mandir = xyes ; then
  o=" $mandir"
fi
if test x$echo_target = xyes ; then
  o=" $target"
fi
if test x$echo_host = xyes ; then
  o=" $host"
fi
if test x$echo_build = xyes ; then
  o=" $build"
fi
if test x$echo_pkgdatadir = xyes ; then
  o=" ${datadir}/${package}"
fi
if test x$echo_pkglibdir = xyes ; then
  o=" ${libdir}/${package}"
fi
if test x$echo_pkgincludedir = xyes ; then
  o=" ${includedir}/${package}"
fi
if test x$echo_template_version = xyes ; then
  o="$o $template_version"
fi
if test x$echo_help = xyes ; then
  h="1"
fi
if test x$echo_extra = xyes ; then
  v=`echo $i | sed -e s://:\$:g`
  v=`eval "echo $v"`
  o="$o $v"
fi
 
# output data
o=`eval "echo $o"`
o=`eval "echo $o"`
if test -n "$o" ; then 
  eval "echo $o"
fi
 
# help text
if test ! -z "$h" ; then 
  cat <<EOF
All available options:
  --prefix=DIR and   change \$prefix and \$exec-prefix
  --exec-prefix=DIR  (affects all other options)
  --prefix           \$prefix        $prefix
  --exec_prefix  or... 
  --eprefix          \$exec_prefix   $exec_prefix
  --version          \$version       $version
  --cppflags         C preprocessor flags
  --cflags-only      C compiler flags
  --cflags           C preprocessor and compiler flags
  --libs             -L\$libdir \$LIBS $libs
  --package          \$package       $package
  --bindir           \$bindir        $bindir
  --sbindir          \$sbindir       $sbindir
  --libexecdir       \$libexecdir    $libexecdir
  --datadir          \$datadir       $datadir
  --sysconfdir       \$sysconfdir    $sysconfdir
  --sharedstatedir   \$sharedstatedir$sharedstatedir
  --localstatedir    \$localstatedir $localstatedir
  --libdir           \$libdir        $libdir
  --infodir          \$infodir       $infodir
  --mandir           \$mandir        $mandir
  --target           \$target        $target
  --host             \$host          $host
  --build            \$build         $build
  --pkgdatadir       \$datadir/\$package    ${datadir}/${package}
  --pkglibdir        \$libdir/\$package     ${libdir}/${package}
  --pkgincludedir    \$includedir/\$package ${includedir}/${package}
  --template-version \$template_version     $template_version
  --help
EOF
fi