3
## OSSP sa - Socket Abstraction
4
## Copyright (c) 2001-2004 Ralf S. Engelschall <rse@engelschall.com>
5
## Copyright (c) 2001-2004 The OSSP Project <http://www.ossp.org/>
6
## Copyright (c) 2001-2004 Cable & Wireless <http://www.cw.com/>
8
## This file is part of OSSP sa, a socket abstraction library which
9
## can be found at http://www.ossp.org/pkg/lib/sa/.
11
## Permission to use, copy, modify, and distribute this software for
12
## any purpose with or without fee is hereby granted, provided that
13
## the above copyright notice and this permission notice appear in all
16
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
17
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
20
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29
## sa-config.in: SA library build utility
36
exec_prefix="@exec_prefix@"
39
sa_exec_prefix="$exec_prefix"
42
sa_includedir="@includedir@"
44
sa_datadir="@datadir@"
45
sa_acdir="@datadir@/aclocal"
47
sa_ldflags="@LDFLAGS@"
49
sa_version="@SA_VERSION_STR@"
55
usage="$usage [--help] [--version] [--all]"
56
usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]"
57
usage="$usage [--cflags] [--ldflags] [--libs]"
59
echo "sa-config:Error: Invalid option" 1>&2
60
echo "sa-config:Usage: $usage" 1>&2
67
OIFS="$IFS" IFS="$DIFS"
70
if [ ".$prev" != . ]; then
76
-*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85
echo "OSSP sa $sa_version"
92
output="$output $sa_prefix"
95
output="$output $sa_exec_prefix"
98
output="$output $sa_bindir"
101
output="$output $sa_libdir"
104
output="$output $sa_includedir"
107
output="$output $sa_mandir"
110
output="$output $sa_datadir"
113
output="$output $sa_acdir"
116
output="$output -I$sa_includedir"
117
output_extra="$output_extra $sa_cflags"
120
output="$output -L$sa_libdir"
121
output_extra="$output_extra $sa_ldflags"
124
output="$output -lsa"
125
output_extra="$output_extra $sa_libs"
128
echo "sa-config:Error: Invalid option" 1>&2
129
echo "sa-config:Usage: $usage" 1>&2
135
if [ ".$prev" != . ]; then
136
echo "sa-config:Error: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2
139
if [ ".$output" != . ]; then
140
if [ ".$all" = .yes ]; then
141
output="$output $output_extra"