~ubuntu-branches/ubuntu/trusty/libesmtp/trusty-proposed

« back to all changes in this revision

Viewing changes to libesmtp-config.in

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy T. Bouse
  • Date: 2002-03-06 08:37:48 UTC
  • Revision ID: james.westby@ubuntu.com-20020306083748-ihmt32mddsslvg5i
Tags: upstream-0.8.11
ImportĀ upstreamĀ versionĀ 0.8.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
prefix=@prefix@
 
4
exec_prefix=@exec_prefix@
 
5
 
 
6
usage()
 
7
{
 
8
    cat <<EOF
 
9
Usage: libesmtp-config [OPTION]
 
10
 
 
11
Known values for OPTION are:
 
12
 
 
13
  --prefix=DIR          change libesmtp prefix [default $prefix]
 
14
  --libs                print library linking information
 
15
  --cflags              print pre-processor and compiler flags
 
16
  --plugindir           print authentication plugin location
 
17
  --help                display this help and exit
 
18
  --version             output version information
 
19
  --numeric-version     output version information
 
20
  --lib-version         output library version
 
21
EOF
 
22
 
 
23
    exit $1
 
24
}
 
25
 
 
26
if test $# -eq 0; then
 
27
    usage 1
 
28
fi
 
29
 
 
30
cflags=false
 
31
libs=false
 
32
 
 
33
while test $# -gt 0; do
 
34
    case "$1" in
 
35
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
36
    *) optarg= ;;
 
37
    esac
 
38
 
 
39
    case "$1" in
 
40
    --prefix=*)
 
41
        prefix=$optarg
 
42
        ;;
 
43
 
 
44
    --prefix)
 
45
        echo $prefix
 
46
        ;;
 
47
 
 
48
    --version)
 
49
        echo @VERSION@
 
50
        exit 0
 
51
        ;;
 
52
 
 
53
    --numeric-version)
 
54
        echo @VERSION@ | awk -F '[a-z.]*' '{ print ($1 * 1000 +  $2) * 1000 + $3 }' 
 
55
        exit 0
 
56
        ;;
 
57
 
 
58
    --lib-version)
 
59
        echo @LIBESMTP_VERSION@
 
60
        exit 0
 
61
        ;;
 
62
 
 
63
    --help)
 
64
        usage 0
 
65
        ;;
 
66
 
 
67
    --cflags)
 
68
        echo -I@includedir@ @PTHREAD_CFLAGS@
 
69
        ;;
 
70
 
 
71
    --libs)
 
72
        echo @PTHREAD_LDFLAGS@ -L@libdir@ -lesmtp @LIBS@ @PTHREAD_LIBS@
 
73
        ;;
 
74
 
 
75
    --plugindir)
 
76
        echo @plugindir@
 
77
        ;;
 
78
 
 
79
    *)
 
80
        usage
 
81
        exit 1
 
82
        ;;
 
83
    esac
 
84
    shift
 
85
done
 
86
 
 
87
exit 0