2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 mozilla_version
='@MOZILLA_VERSION@'
8 JS_LIBRARY_NAME
='@JS_LIBRARY_NAME@'
9 NSPR_CFLAGS
='@NSPR_CFLAGS@'
10 JS_CONFIG_LIBS
='@JS_CONFIG_LIBS@'
11 MOZ_JS_LIBS
='@JS_CONFIG_MOZ_JS_LIBS@'
13 FILENAME
=`basename "$0"`
18 Usage: $FILENAME [OPTIONS]
32 if test $# -eq 0; then
36 while test $# -gt 0; do
38 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 echo "$mozilla_version"
83 # Set variables that may be dependent upon other variables
84 if test -z "$exec_prefix"; then
85 exec_prefix
=@exec_prefix@
87 if test -z "$includedir"; then
88 includedir
=@includedir@
90 if test -z "$libdir"; then
94 if test "$echo_prefix" = "yes"; then
98 if test "$echo_exec_prefix" = "yes"; then
102 if test "$echo_includedir" = "yes"; then
106 if test "$echo_libdir" = "yes"; then
110 if test "$echo_cflags" = "yes"; then
111 echo "-std=gnu++0x -include $includedir/$JS_LIBRARY_NAME/js/RequiredDefines.h -I$includedir/$JS_LIBRARY_NAME $NSPR_CFLAGS"
114 if test "$echo_libs" = "yes"; then
115 echo "$MOZ_JS_LIBS $JS_CONFIG_LIBS"