diff options
author | dscho <dscho> | 2003-02-09 03:38:26 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-02-09 03:38:26 +0000 |
commit | 4f3ac987fba60c77c0fa8556d3888f22828a7a11 (patch) | |
tree | f23364201cb06f485a0d1fafc1f9ed09db04ce77 /libvncserver-config.in | |
parent | c3d51c32e18fdce88c1e7d003e50c88646fc8e53 (diff) | |
download | libtdevnc-4f3ac987fba60c77c0fa8556d3888f22828a7a11.tar.gz libtdevnc-4f3ac987fba60c77c0fa8556d3888f22828a7a11.zip |
make dist fixed; make rpm introduced
Diffstat (limited to 'libvncserver-config.in')
-rw-r--r-- | libvncserver-config.in | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libvncserver-config.in b/libvncserver-config.in new file mode 100644 index 0000000..7de2fbf --- /dev/null +++ b/libvncserver-config.in @@ -0,0 +1,64 @@ +#!/bin/sh + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +exec_prefix_set=no + +usage="\ +Usage: @PACKAGE@-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]" + +if test $# -eq 0; then + echo "${usage}" 1>&2 + exit 1 +fi + +while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + if test $exec_prefix_set = no ; then + exec_prefix=$optarg + fi + ;; + --prefix) + echo $prefix + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + ;; + --exec-prefix) + echo $exec_prefix + ;; + --version) + echo @VERSION@ + ;; + --cflags) + if test @includedir@ != /usr/include ; then + includes=-I@includedir@ + fi + echo $includes + ;; + --libs) + if [ "`uname`" = "SunOS" ]; then + libdirs="-L@libdir@ -R@libdir@" + else + libdirs="-L@libdir@" + fi + echo $libdirs -lvncserver @LIBS@ + ;; + --link) + echo @CCLD@ + ;; + *) + echo "${usage}" 1>&2 + exit 1 + ;; + esac + shift +done |