#!/bin/sh # --------------------------------------------------------------------------- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # --------------------------------------------------------------------------- prefix=@prefix@ exec_prefix=@exec_prefix@ bindir="@bindir@" libdir="@libdir@" datadir="@datadir@" installbuilddir="@installbuilddir@" includedir="@includedir@" CPPFLAGS="@CPPFLAGS@" APR_CPPFLAGS="@APR_CPPFLAGS@" APR_LIBS="@APR_LIBS@" APR_INCLUDES="@APR_INCLUDES@" APU_LIBS="@APU_LIBS@" APU_INCLUDES="@APU_INCLUDES@" DECAF_LIBS="@DECAF_LIBS@" DECAF_SOURCE_DIR="@decaf_srcdir@" DECAF_BUILD_DIR="@decaf_builddir@" # NOTE: the following line is modified during 'make install': alter with care! location=@DECAF_CONFIG_LOCATION@ usage() { cat <&2 fi if test "$location" = "installed"; then LA_FILE="$libdir/libdecaf.la" else LA_FILE="$DECAF_BUILD_DIR/libdecaf.la" fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo @DECAF_VERSION@ ;; --help) usage 0 ;; --includes) echo_includes=yes ;; --cppflags) echo_cppflags=yes ;; --libs) echo_libs=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$echo_includes" = "yes"; then if test "$location" = "installed"; then my_include_flags="-I$includedir/@DECAF_LIBRARY_NAME@-@DECAF_API_VERSION@" else my_include_flags="-I$DECAF_SOURCE_DIR/src/main" fi echo "${my_include_flags} $APR_INCLUDES $APU_INCLUDES" fi if test "$echo_cppflags" = "yes"; then echo "${my_cpp_flags} $APR_CPPFLAGS" fi if test "$echo_libs" = "yes"; then if test "$location" = "installed"; then my_libs_flags="-L@libdir@/@DECAF_LIBRARY_NAME@-@DECAF_API_VERSION@" else my_libs_flags="-L$DECAF_BUILD_DIR/src/main" fi echo "${my_libs_flags} -ldecaf $APR_LIBS $APU_LIBS" fi