#!/bin/sh # # Copyright (C) 2008 Equinox Software, Inc. # Kevin Beswick # Copyright (C) 2010 Laurentian University # Dan Scott # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Shows configuration options of OpenSRF prefix=@prefix@ exec_prefix=@exec_prefix@ datarootdir=@datarootdir@ showAll() { echo @PACKAGE_STRING@ echo PREFIX=@prefix@ echo BINDIR=@bindir@ echo LIBDIR=@libdir@ echo TMP=@TMP@ echo INCLUDEDIR=@includedir@ echo SYSCONFDIR=@sysconfdir@ echo APXS2=@APXS2@ echo APACHE2_HEADERS=@APACHE2_HEADERS@ echo APR_HEADERS=@APR_HEADERS@ echo LIBXML2_HEADERS=@LIBXML2_HEADERS@ } showHelp() { echo echo "------------------------------------------------------------" echo " osrf_config " echo " Display the configuration options for this OpenSRF install " echo "------------------------------------------------------------" echo echo "Usage: osrf_config [--option]" echo echo "Options: " echo echo "--help displays help" echo "--version displays version number of OpenSRF" echo echo "--apache displays location of Apache headers" echo "--apr displays location of Apache portable runtime headers" echo "--apxs displays location of Apache extension tool" echo "--bindir displays location of binary executables" echo "--includedir displays location of header files" echo "--libdir displays location of libraries" echo "--libxml displays location of libxml2 headers" echo "--localstatedir displays location of state information" echo "--prefix displays install prefix" echo "--sysconfdir displays location of configuration files" echo "--tmp displays location of temporary files" echo } case "$1" in --cconfig) cconfig; ;; --libxml) echo @LIBXML2_HEADERS@ ;; --apr) echo @APR_HEADERS@ ;; --apache) echo @APACHE2_HEADERS@ ;; --prefix) echo @prefix@ ;; --version) echo @PACKAGE_STRING@ ;; --bindir) echo @bindir@ ;; --libdir) echo @libdir@ ;; --sysconfdir) echo @sysconfdir@ ;; --localstatedir) echo @localstatedir@ ;; --tmpdir) echo @TMP@ ;; --apxs) echo @APXS2@ ;; --includedir) echo @includedir@ ;; --docdir) echo @docdir@ ;; --help) showHelp ;; *) showAll ;; esac