summaryrefslogtreecommitdiff
path: root/devel/poslib/files/patch-poslib-config.in
blob: 5b1396bbda8692aac9e99cc612f27b374dfea2e5 (plain) (blame)
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
--- poslib-config.in.orig	Thu Oct  9 09:59:25 2003
+++ poslib-config.in	Thu Oct  9 10:01:29 2003
@@ -23,6 +23,8 @@ if test $# -eq 0; then
 	usage 1 1>&2
 fi
 
+CMD=
+
 while test $# -gt 0; do
   case "$1" in
   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -31,7 +33,7 @@ while test $# -gt 0; do
 
   case $1 in
     --version)
-      echo @VERSION@
+      CMD="@VERSION@"
       ;;
     --cflags)
       echo_cflags=yes
@@ -48,8 +50,6 @@ while test $# -gt 0; do
   esac
   shift
 done
-
-CMD=
 
 if test "$echo_cflags" = "yes"; then
       CMD="$CMD -I@includedir@/poslib-@VERSION@ -I@libdir@/poslib-@VERSION@/include/ -funsigned-char @THREAD_CFLAGS@"