Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 magnus 1
#!/bin/sh
2
#
3
# $Id: pike-config.in,v 1.1 2002/08/12 01:02:31 grendel Exp $
4
#
5
 
6
MY_CFLAGS="@CFLAGS@"
7
MY_LDFLAGS="@LDFLAGS@"
8
MY_VERSION="@MAJOR@.@MINOR@.@BUILD@"
9
 
10
if test -z "$1"; then
11
  cat <<EOF
12
Usage: pike-config [--cflags] [--ldflags] [--version]
13
 
14
  --cflags        Print the compiler flags required to compile a module
15
  --ldflags       Print the linker flags required to link a module
16
  --version       Print the pike version for which the compilation is taking
17
                  place
18
 
19
EOF
20
  exit 1
21
fi
22
 
23
while true; do
24
  if test -z "$1"; then
25
    break
26
  fi
27
 
28
  case $1 in
29
    --cflags) echo -n "${MY_CFLAGS} " ;;
30
    --ldflags) echo -n "${MY_LDFLAGS} " ;;
31
    --version) echo -n "${MY_VERSION} " ;;
32
  esac
33
  shift
34
done
35
 
36
echo