PageRenderTime 102ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 56ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/js/js-config.in

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
Autoconf | 111 lines | 97 code | 12 blank | 2 comment | 11 complexity | 6d3caa90ce0243b3027cfcd2c1d3bcb0 MD5 | raw file
  1#!/bin/sh
  2
  3prefix='@prefix@'
  4mozilla_version='@MOZILLA_VERSION@'
  5LIBRARY_NAME='@LIBRARY_NAME@'
  6NSPR_CFLAGS='@NSPR_CFLAGS@'
  7JS_CONFIG_LIBS='@JS_CONFIG_LIBS@'
  8MOZ_JS_LIBS='@MOZ_JS_LIBS@'
  9
 10usage()
 11{
 12	cat <<EOF
 13Usage: js-config [OPTIONS]
 14Options:
 15	[--prefix[=DIR]]
 16	[--exec-prefix[=DIR]]
 17	[--includedir[=DIR]]
 18	[--libdir[=DIR]]
 19	[--version]
 20	[--libs]
 21	[--cflags]
 22	[--lib-filenames]
 23EOF
 24	exit $1
 25}
 26
 27if test $# -eq 0; then
 28	usage 1 1>&2
 29fi
 30
 31while test $# -gt 0; do
 32  case "$1" in
 33  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 34  *) optarg= ;;
 35  esac
 36
 37  case $1 in
 38    --prefix=*)
 39      prefix=$optarg
 40      ;;
 41    --prefix)
 42      echo_prefix=yes
 43      ;;
 44    --exec-prefix=*)
 45      exec_prefix=$optarg
 46      ;;
 47    --exec-prefix)
 48      echo_exec_prefix=yes
 49      ;;
 50    --includedir=*)
 51      includedir=$optarg
 52      ;;
 53    --includedir)
 54      echo_includedir=yes
 55      ;;
 56    --libdir=*)
 57      libdir=$optarg
 58      ;;
 59    --libdir)
 60      echo_libdir=yes
 61      ;;
 62    --version)
 63      echo "$mozilla_version"
 64      ;;
 65    --cflags)
 66      echo_cflags=yes
 67      ;;
 68    --libs)
 69      echo_libs=yes
 70      ;;
 71    *)
 72      usage 1 1>&2
 73      ;;
 74  esac
 75  shift
 76done
 77
 78# Set variables that may be dependent upon other variables
 79if test -z "$exec_prefix"; then
 80    exec_prefix=@exec_prefix@
 81fi
 82if test -z "$includedir"; then
 83    includedir=@includedir@
 84fi
 85if test -z "$libdir"; then
 86    libdir=@libdir@
 87fi
 88
 89if test "$echo_prefix" = "yes"; then
 90    echo $prefix
 91fi
 92
 93if test "$echo_exec_prefix" = "yes"; then
 94    echo $exec_prefix
 95fi
 96
 97if test "$echo_includedir" = "yes"; then
 98    echo $includedir
 99fi
100
101if test "$echo_libdir" = "yes"; then
102    echo $libdir
103fi
104
105if test "$echo_cflags" = "yes"; then
106    echo "-I$includedir/js $NSPR_CFLAGS"
107fi
108
109if test "$echo_libs" = "yes"; then
110    echo "$MOZ_JS_LIBS $JS_CONFIG_LIBS"
111fi