/usr/bin/babel-config is in libsidl-dev 1.4.0.dfsg-8build3.
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 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 | #! /bin/bash
################################################################################
#
# variables set by configure
#
PACKAGE="babel"
VERSION="1.4.0"
CONFIGPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/usr/games"
builddir="."
top_builddir=".."
abs_builddir="/build/buildd/babel-1.4.0.dfsg/bin"
abs_top_builddir="/build/buildd/babel-1.4.0.dfsg"
srcdir="."
top_srcdir=".."
abs_srcdir="/build/buildd/babel-1.4.0.dfsg/bin"
abs_top_srcdir="/build/buildd/babel-1.4.0.dfsg"
prefix="/usr"
exec_prefix="${prefix}"
bindir="${exec_prefix}/bin"
libdir="${exec_prefix}/lib"
sbindir="${exec_prefix}/sbin"
libexecdir="${exec_prefix}/libexec"
datarootdir="${prefix}/share"
datadir="${datarootdir}"
sysconfdir="${prefix}/etc"
sharedstatedir="${prefix}/com"
localstatedir="${prefix}/var"
includedir="${prefix}/include"
jardir="${datadir}/java"
repodir="${datadir}/${PACKAGE}-${VERSION}/repository"
patchdir="${datadir}/${PACKAGE}-${VERSION}/patches"
revisionfile="${datadir}/${PACKAGE}-${VERSION}/revision.txt"
build="x86_64-unknown-linux-gnu"
build_cpu="x86_64"
build_vendor="unknown"
build_os="linux-gnu"
host="x86_64-unknown-linux-gnu"
host_cpu="x86_64"
host_vendor="unknown"
host_os="linux-gnu"
target="x86_64-unknown-linux-gnu"
target_cpu="x86_64"
target_vendor="unknown"
target_os="linux-gnu"
BABEL_SUPPORTED_LANGUAGES="c cxx f77 f90 f03 java python"
INSTALL="/usr/bin/install -c"
INSTALL_PROGRAM="${INSTALL}"
INSTALL_SCRIPT="${INSTALL}"
INSTALL_DATA="${INSTALL} -m 644"
EXEEXT=""
OBJEXT="o"
LIBS=" -ldl "
CPP="gcc -E"
CPPFLAGS=""
CC="gcc"
WHICH_CC="/usr/bin/gcc"
CFLAGS="-g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -pthread"
LDFLAGS="-Wl,-Bsymbolic-functions"
SHARED_LIB_VAR="LD_LIBRARY_PATH"
PTHREAD_CC="gcc"
PTHREAD_CFLAGS="-pthread"
PTHREAD_LIBS=""
SUPPORT_FORTRAN77="true"
# SUPPORT_FORTRAN77="false"
F77="gfortran"
WHICH_F77="/usr/bin/gfortran"
FFLAGS="-g -O2"
FLIBS=" -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lgfortran -lm -lquadmath"
FMAIN=""
SUPPORT_CXX="true"
# SUPPORT_CXX="false"
CXX="g++"
WHICH_CXX="/usr/bin/g++"
CXXFLAGS="-g -O2 -fno-strict-aliasing -Wall -pthread"
CXXLIBS=" -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../.. -lstdc++ -lm -lc"
SUPPORT_JAVA="true"
# SUPPORT_JAVA="false"
JAVA="/usr/bin/java"
JAVAC="/usr/bin/javac"
JAR="/usr/bin/jar"
JAVAH="/usr/bin/javah"
JAVAPREFIX=""
JAVAFLAGS=""
JAVACFLAGS=""
JNI_INCLUDES=" -I/usr/lib/jvm/java-gcj/include"
JNI_LDFLAGS=" -L/usr/lib/jvm/java-gcj/lib -R/usr/lib/jvm/java-gcj/lib -L/usr/lib/jvm/java-gcj/jre/lib/amd64/client -R/usr/lib/jvm/java-gcj/jre/lib/amd64/client -L/usr/lib/jvm/java-gcj/jre/lib/amd64/server -R/usr/lib/jvm/java-gcj/jre/lib/amd64/server"
JVM_SHARED_LIBRARY="/usr/lib/jvm/java-gcj/lib/libjvm.so"
JVM_LIBDIR="/usr/lib/jvm/java-gcj/lib:/usr/lib/jvm/java-gcj/jre/lib/amd64/client:/usr/lib/jvm/java-gcj/jre/lib/amd64/server:"
JAVA_LIBDIR=""
JAVA_ADDCLASSPATH_FLAG="-classpath"
SUPPORT_PYTHON="true"
# SUPPORT_PYTHON="false"
SERVER_PYTHON="true"
# SERVER_PYTHON="false"
PYTHON="python"
WHICH_PYTHON="/usr/bin/python"
PYTHON_VERSION="2.7"
PYTHONINC="-I/usr/include/python2.7 -I/usr/lib/pymodules/python2.7/numpy/core/include/numpy"
PYTHONLIB="/usr/lib/python2.7"
PYTHON_SHARED_LIBRARY="/usr/lib/libpython2.7.so"
PYTHON_SHARED_LIBRARY_DIR="/usr/lib"
SUPPORT_FORTRAN90="true"
# SUPPORT_FORTRAN90="false"
# SUPPORT_FORTRAN03="true"
SUPPORT_FORTRAN03="false"
FC="gfortran"
WHICH_FC="/usr/bin/gfortran"
FCFLAGS="-g -O2"
FCLIBS=" -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lgfortran -lm -lquadmath"
FCMAIN=""
F90CPPSUFFIX=".f90"
F03CPPSUFFIX=".f90"
CHASM_FORTRAN_VENDOR="GNU"
CHASM_FORTRAN_MFLAG="-I"
CHASM_CFLAGS="-I../libchasmlite -I${srcdir}/../libchasmlite"
CHASM_LIBS="../libchasmlite/libchasmlite.la"
CHASM_PYSETUP="--extra-library=chasmlite"
SUPPORT_STATIC="true"
# SUPPORT_STATIC="false"
SUPPORT_SHARED="true"
# SUPPORT_SHARED="false"
XML2_CONFIG=""
LIBXML_REQUIRED_VERSION=""
LIBXML2_LIB=""
LIBXML2_CFLAGS=""
LIBPARSIFAL_LIB="../libparsifal/src/libparsifal.la"
LIBPARSIFAL_CFLAGS="-I${srcdir}/../libparsifal/include"
LIBPARSIFAL_MODE="local"
LIBPARSIFAL_PYSETUP="--extra-library=parsifal "
CCA_BUNDLE_VERSION="developer"
MPI_VENDOR=
MPI_VERSION=
MPI_SUBVERSION=
MPI_CC=""
MPI_CC_CFLAGS=""
MPI_CC_LDFLAGS=""
MPI_CXX=""
MPI_CXX_CFLAGS=""
MPI_CXX_LDFLAGS=""
MPI_F77=""
MPI_F77_CFLAGS=""
MPI_F77_LDFLAGS=""
MPI_FC=""
MPI_FC_CFLAGS=""
MPI_FC_LDFLAGS=""
ALL_VARS="PACKAGE VERSION CONFIGPATH builddir top_builddir abs_builddir abs_top_builddir srcdir top_srcdir abs_srcdir abs_top_srcdir prefix exec_prefix bindir libdir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir includedir jardir repodir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EXEEXT OBJEXT LIBS CPP CPPFLAGS CC WHICH_CC CFLAGS LDFLAGS SHARED_LIB_VAR PTHREAD_CC PTHREAD_CFLAGS PTHREAD_LIBS SUPPORT_FORTRAN77 F77 WHICH_F77 FFLAGS FLIBS FMAIN SUPPORT_CXX CXX WHICH_CXX CXXFLAGS CXXLIBS SUPPORT_JAVA JAVA JAVAC JAR JAVAH JAVAPREFIX JAVAFLAGS JAVACFLAGS JNI_INCLUDES JNI_LDFLAGS JAVA_LIBDIR JAVA_ADDCLASSPATH_FLAG JVM_LIBDIR JVM_SHARED_LIBRARY SUPPORT_PYTHON SERVER_PYTHON PYTHON WHICH_PYTHON PYTHON_VERSION PYTHONINC PYTHONLIB PYTHON_SHARED_LIBRARY PYTHON_SHARED_LIBRARY_DIR SUPPORT_FORTRAN90 SUPPORT_FORTRAN03 FC WHICH_FC FCFLAGS FCLIBS FCMAIN F90CPPSUFFIX F03CPPSUFFIX SUPPORT_STATIC SUPPORT_SHARED CHASM_FORTRAN_VENDOR CHASM_FORTRAN_MFLAG CHASM_CFLAGS CHASM_LIBS CHASM_PYSETUP XML2_CONFIG LIBXML_REQUIRED_VERSION LIBXML2_LIB LIBXML2_CFLAGS BABEL_SUPPORTED_LANGUAGES CCA_BUNDLE_VERSION MPI_VENDOR MPI_VERSION MPI_SUBVERSION MPI_CC MPI_CC_CFLAGS MPI_CC_LDFLAGS MPI_CXX MPI_CXX_CFLAGS MPI_CXX_LDFLAGS MPI_F77 MPI_F77_CFLAGS MPI_F77_LDFLAGS MPI_FC MPI_FC_CFLAGS MPI_FC_LDFLAGS LIBPARSIFAL_MODE LIBPARSIFAL_LIB LIBPARSIFAL_CFLAGS LIBPARSIFAL_PYSETUP"
################################################################################
usage()
{
exit_code=$1
cat <<EOF
Usage: babel-config [OPTION]
This tool is provided to query information about how Babel
was configured and installed.
Generic options:
--version show Babel version
--help display this help and exit.
Installation directories Babel was configured to:
--prefix root for all platform independent files
--exec-prefix root for all platform specific files
--bindir platform specific executables
--libdir platform specific libraries
--includedir platform independent C (and C++) header files
--datadir platform independent data
--jardir where jar files are installed
--repodir where XML repository for SIDL types are installed
Language support enabled/disabled at configuration time:
--with-bindings lists all supported language bindings
--with-<LANG> exits 0 if language support was enabled, 1 otherwise
--with-server-python
same as above if server-side python is enabled
* <LANG> is any one of {c, c++, f77, f90, f03, java, python}
Help building things to work with Babel
--xml2-config Fully qualified path to xml2-config script
--includes -I prepended directories for Babel
--includes-f77 -I prepended directories for the F77 binding
--includes-f90 -I prepended directories for the F90 binding
--includes-f90-mod F90 compiler flags to find precompiled F90 module files
--includes-f03 -I prepended directories for the F03 binding
--includes-f03-mod F03 compiler flags to find precompiled F03 module files
--includes-c++ -I prepended directories for the C++ binding
--includes-jni -I prepended directories for JNI, if enabled in Babel
--includes-py -I prepended directories for Python, if enabled in Babel
--includes-xml2 -I prepended directories for XML2
--flags-libparsifal -I prepended directories for libparsifal, if enabled
--flags-<LANG> all flags for <LANG>, if enabled *
--flags-cpp same as CPPFLAGS
--flags-javac
--libs-<LANG>-client link libraries for <LANG> including sidl stubs
--libs-<LANG> all link library directives for <LANG>, if enabled
--libs-<LANG>-L -L prepended directories for <LANG>, if enabled
--libs-<LANG>-l -l prepended libraries for <LANG>, if enabled
--libs-libparsifal linker flags for libparsifal, if enabled
--libtool-libparsifal libtool flags for libparsifal, if enabled
--libs-libchasmlite linker flags for libchasmlite, if enabled
--libtool-libchasmlite libtool flags for libchasmlite, if enabled
--libtool-xml2 XML2 libtool library .la
Low-level query:
--query-var=<variable-name> literal query of what was recorded/used at
configure time. Nonzero exit if variable
not explicitly set.
--which-var=<variable-name> absolute path expansion using configure
time PATH variable, nonzero exit if cannot
find. No protection against nonsensical
combinations, such as --which-var=LDFLAGS
--configpath-var=<variable-name> absolute path as recorded at configure
time, nonzero exit if absolute path was
not recorded.
Low-level dump: writes VARNAME=value pairs, one per line.
--dump | --dump-vars
--dump-vars=PREFIX (prefixes PREFIX to all variables)
*NOTE: Babel uses libtool to compile and link libraries, examples, and tests.
babel-config presents information passed into libtool. But, libtool
may add/change compiler or linker flags as code is being built.
(e.g. may add -fPIC -DPIC)
EOF
exit $exit_code
}
dump_vars()
{
varname_prefix=${1:-""}
for i in $ALL_VARS; do
j=`eval echo \\$$i`;
echo $varname_prefix$i=\"$j\";
done
}
echo_libs()
{
constraint=`echo "$1" | sed -e 's/--[_a-zA-Z0-9\+]*-[_a-zA-Z0-9\+]*//'`
shift
Lcommands=
lcommands=
ocommands=
while test $# -gt 0; do
case "$1" in
-L*)
Lcommands="$Lcommands $1"
;;
-l*)
lcommands="$lcommands $1"
;;
*)
ocommands="$ocommands $1"
;;
esac
shift
done
if test -z "$constraint"; then
echo $Lcommands $lcommands $ocommands
elif test "$constraint" = "-L"; then
echo $Lcommands
elif test "$constraint" = "-l"; then
echo $lcommands
else
exit 1
fi
exit 0
}
if test $# -eq 0; then
usage 1
fi
case "$build_os" in
darwin*)
rpath_str=""
;;
*)
rpath_str="-Wl,-rpath,$libdir"
;;
esac
if test "X$LIBPARSIFAL_MODE" = Xlocal -o "X$LIBPARSIFAL_MODE" = Xlocal_babel ; then
libparsifal_libs="-L$libdir $rpath_str -lparsifal"
else
libparsifal_libs="$LIBPARSIFAL_LIB"
fi
if test "$SUPPORT_FORTRAN90" == "true" ; then
libchasmlite_libs="-L$libdir $rpath_str -lchasmlite"
else
libchasmlite_libs=""
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed -e 's/[-_a-zA-Z0-9]*=//'`;;
*) optarg= ;;
esac
case $1 in
--version-full)
if test \! -f "$revisionfile"; then
revisionfile="$abs_top_builddir/bin/revision.txt"
if test \! -f "$revisionfile"; then
revisionfile="$abs_top_srcdir/bin/revision.txt"
fi
fi
if test -f "$revisionfile"; then
svnrev=`head -n 1 $revisionfile`
svnbranch=`tail -n 1 $revisionfile`
else
svnrev="Unknown"
svnbranch="Unknown"
fi
echo "$VERSION (Revision: $svnrev $svnbranch)"
if test \! -d "$patchdir"; then
patchdir="$abs_top_srcdir/runtime/patches"
fi
echo "PATCH NAME DESCRIPTION EMAIL"
if test "`echo "$patchdir"/*.txt`" != "$patchdir/*.txt"; then
for f in $patchdir/*.txt ; do
awk 'BEGIN { filename=ARGV[1]; sub(".*/","",filename); sub("\\.txt$","",filename); } NR==1 { desc=$0; } NR==2 { printf("%-11s %-46s %s\n", filename, desc, $0); } NR>2 { }' $f
done
fi
uname -a
exit 0
;;
--version)
echo $VERSION
exit 0
;;
--exec-prefix)
echo $exec_prefix
exit 0
;;
--prefix)
echo $prefix
exit 0
;;
--help)
usage 0
;;
--dump | --dump-vars)
dump_vars ""
;;
--dump=* | --dump-vars=* )
dump_vars $optarg
;;
--with-bindings)
bindings="c"
if test "$SUPPORT_CXX" = "true"; then
bindings="$bindings c++"
fi
if test "$SUPPORT_FORTRAN77" = "true"; then
bindings="$bindings f77"
fi
if test "$SUPPORT_FORTRAN90" = "true"; then
bindings="$bindings f90"
fi
if test "$SUPPORT_FORTRAN03" = "true"; then
bindings="$bindings f03"
fi
if test "$SUPPORT_JAVA" = "true"; then
bindings="$bindings java"
fi
if test "$SUPPORT_PYTHON" = "true"; then
bindings="$bindings python"
fi
echo $bindings
exit 0
;;
--with-c)
exit 0 #Babel cannot work without C
;;
--with-dc++)
exit 1
;;
--with-c++ | --with-cxx)
test "$SUPPORT_CXX" = "true" && exit 0
exit 1
;;
--with-f77)
test "$SUPPORT_FORTRAN77" = "true" && exit 0
exit 1
;;
--with-f90)
test "$SUPPORT_FORTRAN90" = "true" && exit 0
exit 1
;;
--with-f03)
test "$SUPPORT_FORTRAN03" = "true" && exit 0
exit 1
;;
--with-java)
test "$SUPPORT_JAVA" = "true" && exit 0
exit 1
;;
--with-python)
test "$SUPPORT_PYTHON" = "true" && exit 0
exit 1
;;
--with-server-python)
test "$SERVER_PYTHON" = "true" && exit 0
exit 1
;;
--query-var=*)
for i in $ALL_VARS; do
if test "X$i" = "X$optarg"; then
value=`eval echo \\$$optarg`
test -z "value" && exit 1
echo $value
exit 0
fi
done
exit 1
;;
--which-var=*)
for i in $ALL_VARS; do
if test "X$i" = "X$optarg"; then
value=`eval echo \\$$optarg`
test -z "value" && exit 1
value=`echo "$value" | awk -F" " '{print $1}'`
case $value in
/*) # already an absolute path... just verify it exists.
if test -e "$value"; then
echo $value
exit 0
fi
;;
*)
cpath=`echo "$CONFIGPATH" | sed -e 's/:/ /g'`
for j in $cpath; do
if test -e "$j/$value"; then
echo "$j/$value";
exit 0
fi
done
;;
esac
exit 1
fi
done
exit 1
;;
--configpath-var=*)
for i in $ALL_VARS; do
if test "X$i" = "XWHICH_$optarg"; then
varname=`eval echo \\$WHICH_$optarg`
test -z "varname" && exit 1
echo $varname
exit 0;
fi;
done
exit 1
;;
--xml2-config)
echo $XML2_CONFIG
exit 0
;;
--includes)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "-I$includedir"
else
echo "-I$includedir -I${exec_prefix}/include"
fi
exit 0
;;
--includes-f77)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "-I$includedir/f77"
else
echo "-I$includedir/f77 -I${exec_prefix}/include/f77"
fi
exit 0
;;
--includes-f90)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "-I$includedir/f90"
else
echo "-I$includedir/f90 -I${exec_prefix}/include/f90"
fi
exit 0
;;
--includes-f90-mod)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "$CHASM_FORTRAN_MFLAG$includedir/f90"
else
echo "$CHASM_FORTRAN_MFLAG$includedir/f90 $CHASM_FORTRAN_MFLAG${exec_prefix}/include/f90"
fi
exit 0
;;
--includes-f03)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "-I$includedir/f03"
else
echo "-I$includedir/f03 -I${exec_prefix}/include/f03"
fi
exit 0
;;
--includes-f03-mod)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "$CHASM_FORTRAN_MFLAG$includedir/f03"
else
echo "$CHASM_FORTRAN_MFLAG$includedir/f03 $CHASM_FORTRAN_MFLAG${exec_prefix}/include/f03"
fi
exit 0
;;
--includes-c++ | --includes-cxx)
if test "$includedir" = "${exec_prefix}/include" ; then
echo "-I$includedir -I$includedir/cxx"
else
echo "-I$includedir -I${exec_prefix}/include -I$includedir/cxx -I${exec_prefix}/include/cxx"
fi
exit 0
;;
--includes-jni)
test "$SUPPORT_JAVA" = "false" && exit 1
echo $JNI_INCLUDES "-I$includedir -I$includedir/java"
exit 0
;;
--includes-py)
test "$SUPPORT_PYTHON" = "false" && exit 1
echo $PYTHONINC -I$includedir/python$PYTHON_VERSION/llnl_babel -I$includedir/python$PYTHON_VERSION/llnl_babel_sidl_sidlx
exit 0
;;
--includes-xml2)
echo $LIBXML2_CFLAGS
exit 0
;;
--flags-libparsifal)
case "$LIBPARSIFAL_MODE" in
local)
echo "-I$includedir"
;;
local_babel)
echo "-I$includedir -D_PNS"
;;
*)
echo $LIBPARSIFAL_CFLAGS
;;
esac
exit 0
;;
--flags-c)
echo $CFLAGS
exit 0
;;
--flags-cpp)
echo $CPPFLAGS
exit 0
;;
--flags-c++ | --flags-cxx)
echo $CXXFLAGS
exit 0
;;
--flags-f77)
echo $FFLAGS
exit 0
;;
--flags-f90 | --flags-f03)
echo $FCFLAGS
exit 0
;;
--flags-java)
echo $JAVAFLAGS
exit 0
;;
--flags-javac)
echo $JAVACFLAGS
exit 0
;;
--flags-python)
echo
exit 0;
;;
--libs-c | --libs-c-L | --libs-c-l)
echo_libs $1 $LDFLAGS
;;
--libs-c++ | --libs-c++-L | --libs-c++-l | --libs-cxx | --libs-cxx-L | --libs-cxx-l)
test "$SUPPORT_CXX" = "false" && exit 1
echo_libs $1 $CXXLIBS
;;
--libs-c-client | --libs-python-client)
echo "-L$libdir $rpath_str -lsidl $libparsifal_libs $libchasmlite_libs"
;;
--libs-cxx-client | --libs-c++-client)
echo "-L$libdir $rpath_str -lsidlstub_cxx -lsidl $libparsifal_libs $libchasmlite_libs"
;;
--libs-f90-client)
echo "-L$libdir $rpath_str -lsidlstub_f90 -lsidl $libparsifal_libs $libchasmlite_libs"
;;
--libs-f03-client)
echo "-L$libdir $rpath_str -lsidlstub_f03 -lsidl $libparsifal_libs $libchasmlite_libs"
;;
--libs-f77-client)
echo "-L$libdir $rpath_str -lsidlstub_f77 -lsidl $libparsifal_libs $libchasmlite_libs"
;;
--libs-java-client)
echo "-L$libdir $rpath_str -lsidlstub_java -lsidl $libparsifal_libs $libchasmlite_libs"
;;
--libs-f77 | --libs-f77-L | --libs-f77-l)
test "$SUPPORT_FORTRAN77" = "false" && exit 1
echo_libs $1 $FLIBS
;;
--libs-f90 | --libs-f90-L | --libs-f90-l)
test "$SUPPORT_FORTRAN90" = "false" && exit 1
echo_libs $1 $FCLIBS
;;
--libs-f03 | --libs-f03-L | --libs-f03-l)
test "$SUPPORT_FORTRAN03" = "false" && exit 1
echo_libs $1 $FCLIBS
;;
--libs-java | --libs-java-L | --libs-java-l)
test "$SUPPORT_JAVA" = "false" && exit 1
echo_libs $1 $JNI_LDFLAGS
;;
--libs-python | --libs-python-L | --libs-python-l)
test "$SUPPORT_PYTHON" = "false" && exit 1
test "$SERVER_PYTHON" = "false" && exit 1
echo_libs $1 "-L$PYTHON_SHARED_LIBRARY_DIR" "-lpython${PYTHON_VERSION}"
;;
--libtool-xml2)
echo $LIBXML2_LIB
exit 0
;;
--libs-libparsifal)
echo "$libparsifal_libs"
exit 0
;;
--libtool-libparsifal)
if test "X$LIBPARSIFAL_MODE" = Xlocal -o "X$LIBPARSIFAL_MODE" = Xlocal_babel ; then
echo "$libdir/libparsifal.la"
else
echo "-L$libdir $rpath_str -lparsifal"
fi
exit 0
;;
--libs-libchasmlite)
echo "$libchasmlite_libs"
exit 0
;;
--libtool-libparsifal)
if test "$SUPPORT_FORTRAN90" == "true" ; then
echo "$libdir/libchasmlite.la"
else
echo ""
fi
exit 0
;;
--*dir)
dirname=\$`echo $1 | sed -e 's,^--,,'`
dirname=`eval echo $dirname`
test -z "dirname" && exit 1
echo $dirname
exit 0
;;
--*)
usage 1
;;
*)
usage 1
;;
esac
shift
done
|