X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fminidom%2Fminidom-config;fp=helm%2Fminidom%2Fminidom-config;h=0fd0a89234ecae933099e9a449da96e682d3c430;hb=e5d06bcdbc0f4bcd74b3a4eb38879976322488f2;hp=0000000000000000000000000000000000000000;hpb=fa11ed6dc134f8ad3421c37a97271018e075bbed;p=helm.git diff --git a/helm/minidom/minidom-config b/helm/minidom/minidom-config new file mode 100755 index 000000000..0fd0a8923 --- /dev/null +++ b/helm/minidom/minidom-config @@ -0,0 +1,56 @@ +#!/bin/sh + +VERSION="0.1.0" +libdir="/usr/local/lib" +pkglibdir="/usr/local/lib/minidom" +includedir="/usr/local/include" +pkgincludedir="/usr/local/include/minidom" + + +usage() +{ + cat <&2 +fi + +while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --version) + echo $VERSION + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$echo_cflags" = "yes"; then + echo `xml-config --cflags` -I$pkgincludedir +fi + +if test "$echo_libs" = "yes"; then + echo `xml-config --libs` -L$libdir -lminidom +fi +