File: ticalcs-config.in

package info (click to toggle)
libticalcs3 3.3.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,824 kB
  • ctags: 1,880
  • sloc: ansic: 18,809; sh: 9,396; makefile: 349; sed: 93
file content (36 lines) | stat: -rw-r--r-- 738 bytes parent folder | download
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
#! /bin/sh

prefix="@prefix@"
exec_prefix="@exec_prefix@"
package="@PACKAGE@"
version="@VERSION@"
includedir="@includedir@"
libdir="@libdir@"

if test $# -eq 0; then
    cat <<EOF
Usage:   $package-config [OPTIONS]
Options:
    --prefix[=DIR]) : \$prefix
    --package) : \$package
    --version) : \$version
    --cflags) : -I\$includedir
    --libs) : -L\$libdir -lticalcs
EOF
fi

for i ; do
    case $i in
    --prefix=*) $prefix=`echo $prefix | sed -e 's/--prefix=//'` ;;
    --prefix) echo $prefix ;;
    --package) echo $package ;;
    --version) echo $version ;;
    --cflags) if test "_$includedir" != "_/usr/include" 
		then echo $prefix/include ; fi
	;;
    --libs) echo -L$libdir -lticalcs
	;;
    *) echo $i ;;
    esac
done