/usr/bin/polyorb-config is in libpolyorb3-dev 2.11~20140418-3.2+b1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | #!/bin/sh
# This script provides tool chain command line switches used to build
# applications that use PolyORB.
# polyorb-config. Generated from polyorb-config.in by configure.
host=x86_64-pc-linux-gnu
target=x86_64-pc-linux-gnu
if [ "$host" = "$target" ]; then
is_cross=false
else
is_cross=true
fi
# Library type (for now always static)
LIBRARY_TYPE=static
# Determine installation prefix
case "$0" in
*/*)
# Already has a directory indication
exec_name="$0"
;;
*)
# Just base filename, retrieve from PATH
exec_name=`which $0`
;;
esac
exec_rel_dir=`dirname "${exec_name}"`
exec_abs_dir=`cd ${exec_rel_dir} && pwd`
exec_prefix=`dirname "${exec_abs_dir}"`
# Translate Cygwin-style path to Windows equivalent
case "$OS" in
Windows_NT)
exec_prefix=`cygpath -w $exec_prefix`
esac
unset tgt_subdir
if $is_cross; then
tgt_subdir=/$target
fi
prefix="/usr"
have_gnatmake_aPdir=yes
default_appli="corba moma dsa"
default_proto="giop"
default_services="event ir naming notification time"
require_xmlada=false
appli="${default_appli}"
proto="${default_proto}"
services="${default_services}"
# is_in NEEDLE HAY1 HAY2 ...
# True if NEEDLE is equal to any of the HAY*
is_in () {
needle=$1
shift
while [ "$#" != 0 ]; do
if [ "$needle" = "$1" ]; then
return 0
fi
shift
done
return 1
}
# set_components MSG VAR VALUE,VALUE,VALUE
# Set VAR to the listed set of VALUEs, with commas replaced with spaces,
# checking that all VALUEs are present in default_VAR.
# MSG is the user-friendly name of the component being set.
set_components () {
failed=false
values=`echo $3 | tr , ' '`
for value in $values; do
if eval "is_in '$value' \$default_$2"; then
: OK
else
echo "$1 $value not available." 1>&2
failed=true
fi
done
if $failed; then exit 1; fi
eval "$2='$values'"
}
usage() {
cat <<EOF 1>&2
Usage: polyorb-config [OPTIONS]
Options:
No option:
Output all the flags (compiler and linker) required
to compile your program.
[--prefix[=DIR]]
Output the directory in which PolyORB architecture-independent
files are installed, or set this directory to DIR.
[--exec-prefix[=DIR]]
Output the directory in which PolyORB architecture-dependent
files are installed, or set this directory to DIR.
[--version|-v]
Output the version of PolyORB.
[--config]
Output PolyORB's configuration parameters.
[--libs]
Output the linker flags to use for PolyORB.
[--cflags]
Output the compiler flags to use for PolyORB.
[--idls]
Output flags to set up path to CORBA's IDL for idlac.
[--with-appli-perso=P,P,P]
Restrict output to only those flags relevant to the listed
applicative personalities.
[--with-proto-perso=P,P,P]
Restrict output to only those flags relevant to the listed
protocol personalities.
[--with-corba-services=S,S,S]
Restrict output to only those flags relevant to the listed
services.
[--help]
Output this message
EOF
}
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--help|-h)
usage 1>&2
exit 1
;;
--prefix=*)
prefix=$optarg;
if test "x$exec_prefix_set" = x ; then
exec_prefix=$prefix
fi
;;
--prefix)
echo_prefix=true
;;
--exec-prefix=*)
exec_prefix=$optarg
;;
--exec-prefix)
echo_exec_prefix=true
;;
--version|-v)
echo "PolyORB 2.11.0w (Debian release 20140418-3.2+b1) for ${target}" 1>&2
if $is_cross; then
echo " hosted on ${host}" 1>&2
fi
exit 0
;;
--config)
cat <<EOF 1>&2
Personalities built :
* Application personalities : corba moma dsa
* Protocol personalities : giop
* Services : event ir naming notification time
* SSL support :
EOF
exit 0
;;
--libs)
echo_libs=true
;;
--idls)
echo_idls=true
;;
--cflags)
echo_cflags=true
;;
--with-appli-perso=*)
set_components "Applicative personality" appli "$optarg" ;;
--with-proto-perso=*)
set_components "Protocol personality" proto "$optarg" ;;
--with-corba-services=*)
set_components "Service" services "$optarg" ;;
*)
usage 1>&2
exit 1
;;
esac
shift
done
includedir="/usr/share/ada/adainclude"
libdir="/usr/lib/ada/adalib"
polyorb_dir="${includedir}/polyorb"
polyorb_lib=" -L/usr/lib -lpolyorb"
corba_idl_dir="-I${includedir}/polyorb"
for P in $appli; do
polyorb_lib="$polyorb_lib -lpolyorb-${P}"
if [ "x$P" = "xcorba" ]
then
polyorb_lib="$polyorb_lib -lpolyorb-corba-dynamicany -lpolyorb-corba-iop -lpolyorb-corba-messaging -lpolyorb-corba-portableinterceptor"
for S in $services; do
# In general we have two libraries for each service: cos-${S} for client
# stubs and helpers, and cos-${S}-impl for implementation. A user
# application does not need the impl library in general, and it is
# therefore not included in the default set of libraries we output.
# The interface repository is an exception to this rule, because in this
# case we build a single library with client stubs and implementation.
if [ "${S}" = "ir" ]; then
polyorb_lib="$polyorb_lib -lpolyorb-corba-cos-${S}-impl"
else
polyorb_lib="$polyorb_lib -lpolyorb-corba-cos-${S}"
fi
done
if [ "x" = "xyes" ]; then
polyorb_lib="$polyorb_lib -lpolyorb-corba-security -lpolyorb-corba-security-gssup"
fi
fi
if [ "x$P" = "xaws" ]
then
polyorb_lib="$polyorb_lib -lpolyorb-web_common"
require_xmlada=true
fi
done
for P in $proto; do
polyorb_lib="$polyorb_lib -lpolyorb-${P}"
case "$P" in
giop)
polyorb_lib="$polyorb_lib -lpolyorb-giop-diop -lpolyorb-giop-iiop -lpolyorb-giop-miop"
if [ "x" = "xyes" ]
then
polyorb_lib="$polyorb_lib -lpolyorb-giop-iiop-ssliop"
polyorb_lib="$polyorb_lib -lpolyorb-giop-iiop-security -lpolyorb-giop-iiop-security-tls"
fi
;;
soap)
polyorb_lib="$polyorb_lib -lpolyorb-web_common"
require_xmlada=true
;;
dns)
polyorb_lib="$polyorb_lib -lpolyorb-dns-udns -lpolyorb-dns-mdns"
;;
esac
done
if [ "x" = "xyes" ]
then
polyorb_lib="$polyorb_lib -lpolyorb-ssl"
polyorb_lib="$polyorb_lib -lpolyorb-security -lpolyorb-security-gssup -lpolyorb-security-x509 -lpolyorb-security-tls -lpolyorb-setup-security"
fi
polyorb_lib="$polyorb_lib -lpolyorb-setup"
# Dependencies on XML/Ada are appended at the end of the command line,
# so that they are passed to the linker after any other object, right
# before the dependency on libgnat. This is necessary so that in the case
# of dynamic XML/Ada libraries, an implicit dependency on the dynamic libgnat
# does not take precedence over symbols that are overridden by PolyORB
# (specifically, System.Partition_Interface.*).
if $require_xmlada; then
case $LIBRARY_TYPE in
relocatable) xmlada_libtypeflag=--shared ;;
*) xmlada_libtypeflag=--static ;;
esac
xmlada_config_cmd="xmlada-config ${xmlada_libtypeflag}"
xmlada_dir="`${xmlada_config_cmd} --cflags`"
xmlada_lib="`${xmlada_config_cmd} --libs`"
xmlada_mflags="`${xmlada_config_cmd}`"
fi
if test x$have_gnatmake_aPdir = xyes; then
apdir="-aP/usr/share/ada/adainclude"
fi
if test ! x"$echo_prefix" = x"true" -a ! x"$echo_exec_prefix" = x"true" -a ! x"$echo_cflags" = x"true" -a ! x"$echo_libs" = x"true" -a ! x"$echo_idls" = x"true"; then
echo ${apdir} -aI${polyorb_dir} -aO${libdir}/polyorb ${xmlada_mflags} -largs ${polyorb_lib} ${xmlada_lib}
fi
if test x"$echo_prefix" = x"true" ; then
echo $prefix
fi
if test x"$echo_exec_prefix" = x"true" ; then
echo $exec_prefix
fi
if test x"$echo_cflags" = x"true"; then
echo -I${polyorb_dir} ${xmlada_dir}
fi
if test x"$echo_libs" = x"true"; then
echo ${polyorb_lib} ${xmlada_lib}
fi
if test x"$echo_idls" = x"true"; then
echo $corba_idl_dir
fi
|