updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / antlr2-dev / antlr-config
blobb23e904f3eabff3cc0e79e80abf2592fa04ea704
1 #!/bin/sh
2 # scripts/antlr-config. Generated from antlr-config.in by configure.
4 prefix=/usr
5 exec_prefix=${prefix}
6 datadir=${prefix}/share
7 libdir=${exec_prefix}/lib
8 includedir=${prefix}/include
10 usage()
12 cat <<EOF
13 Usage: antlr-config [OPTIONS] [LIBRARIES]
14 Options:
15 [--prefix[=DIR]]
16 [--exec-prefix[=DIR]]
17 [--version]
18 [--libs]
19 [--cflags]
20 [--cxxflags]
21 Libraries:
22 libantlr.a
23 EOF
24 exit $1
27 if test $# -eq 0; then
28 usage 1 1>&2
31 includes=""
32 libs=""
34 while test $# -gt 0; do
35 case "$1" in
36 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
37 *) optarg= ;;
38 esac
40 case $1 in
41 --prefix)
42 echo_prefix=yes
44 --exec-prefix)
45 echo_exec_prefix=yes
47 --version)
48 echo 2.7.7
49 exit 0
51 --cflags|-cxxflags)
52 includes="-I${includedir}"
53 echo_cflags="yes"
55 --libs)
56 case gcc in
57 cl|bcc32)
58 libs="${libdir}/antlr.lib"
61 libs="${libdir}/libantlr.a"
63 esac
64 echo_libs=yes
67 usage 1 1>&2
69 esac
70 shift
71 done
73 if test "$echo_prefix" = "yes"; then
74 echo $prefix
76 if test "$echo_exec_prefix" = "yes"; then
77 echo $exec_prefix
79 if test "$echo_cflags" = "yes"; then
80 echo $includes
82 if test "$echo_libs" = "yes"; then
83 echo "${libs}"
86 exit 0