File: synfig-config.in

package info (click to toggle)
synfig 0.64.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,052 kB
  • ctags: 7,479
  • sloc: cpp: 67,760; sh: 16,258; ansic: 4,244; makefile: 1,371; csh: 243; sed: 16
file content (82 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (8)
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
#!/bin/sh

prefix=@prefix@
exec_prefix=@exec_prefix@

bindir=@bindir@
libexecdir=@libexecdir@
datadir=@datadir@
sysconfdir=@sysconfdir@
sharedstatedir=@sharedstatedir@
localstatedir=@localstatedir@
libdir=@libdir@
infodir=@infodir@
mandir=@mandir@
includedir=@includedir@

LIBS="@SYNFIG_LIBS@"

VERSION=@VERSION@
PACKAGE=@PACKAGE@

CFLAGS="@CONFIG_CFLAGS@"

usage()
{
	cat <<EOF
Usage: synfig-config [OPTION]...

Generic options
  --version	print installed version of synfig.
  --help        display this help and exit.

Compilation support options
  --cflags      print pre-processor and compiler flags
  --libs        print library linking information
  
Install directories
  --prefix --exec-prefix --bindir --libexecdir --datadir
  --sysconfdir --sharedstatedir --localstatedir --libdir --infodir
  --mandir --includedir

EOF
	
	exit 1
}

if test $# -eq 0; then
	usage 1
fi

case $1 in
--version)
	echo $PACKAGE $VERSION
	exit 0
	;;
--exec-prefix)
	echo $exec_prefix
	exit 0
	;;
--prefix)
	echo $prefix
	exit 0
	;;
--help)
	usage 0
	;;
--cflags)
	echo $CFLAGS
	exit 0
	;;
--cxxflags)
	echo $CFLAGS
	exit 0
	;;
--libs)
	echo $LIBS
	exit 0
	;;
esac

echo Unknown option "$1"
exit 4