From: Adam Dickmeiss Date: Wed, 15 Sep 2010 08:46:47 +0000 (+0200) Subject: Add metaproxy-config X-Git-Tag: v1.2.2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=dd6954fd5ae7c0bd90df8869f2351a72ee363440;p=metaproxy-moved-to-github.git Add metaproxy-config --- diff --git a/Makefile.am b/Makefile.am index 04ba163..d9d5071 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,7 +9,7 @@ AUTOMAKE_OPTIONS = foreign EXTRA_DIST = Doxyfile.in NEWS README LICENSE \ m4/yazpp.m4 m4/yaz.m4 m4/ax_boost.m4 \ - buildconf.sh metaproxy.spec + buildconf.sh metaproxy.spec metaproxy-config.in MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure diff --git a/configure.ac b/configure.ac index e8f8a98..24c0745 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,7 @@ fi AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git]) AC_CONFIG_FILES([ + metaproxy-config Doxyfile Makefile include/Makefile include/metaproxy/Makefile @@ -73,6 +74,9 @@ AC_CONFIG_FILES([ doc/common/Makefile doc/common/print.dsl etc/Makefile +],[ + sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config + ]) AC_OUTPUT diff --git a/debian/libmetaproxy3-dev.install b/debian/libmetaproxy3-dev.install index f1c58d2..e272241 100644 --- a/debian/libmetaproxy3-dev.install +++ b/debian/libmetaproxy3-dev.install @@ -1,3 +1,4 @@ debian/tmp/usr/include/metaproxy debian/tmp/usr/lib/libmetaproxy*.a debian/tmp/usr/lib/libmetaproxy*.so +debian/tmp/usr/bin/metaproxy-config diff --git a/metaproxy-config.in b/metaproxy-config.in new file mode 100644 index 0000000..9a4bb8c --- /dev/null +++ b/metaproxy-config.in @@ -0,0 +1,99 @@ +#!/bin/sh +prefix=@prefix@ +echo_cflags=no +echo_libs=no +echo_help=no +echo_tabs=no +echo_source=yes +echo_lalibs=no +src_root=@abs_top_srcdir@ +build_root=@abs_top_builddir@ + +libs="@YAZPPLIB@ @LIBS@" +lalibs="@YAZPPLALIB@ @LIBS@" +VERSION=@VERSION@ + +usage() +{ + cat <&2 +fi +if test "$echo_cflags" = "yes"; then + echo $INC +fi +if test "$echo_libs" = "yes"; then + echo $LIB +fi +if test "$echo_lalibs" = "yes"; then + echo $LALIB +fi diff --git a/metaproxy.spec b/metaproxy.spec index dc541c5..6cd4f02 100644 --- a/metaproxy.spec +++ b/metaproxy.spec @@ -83,6 +83,7 @@ rm -fr ${RPM_BUILD_ROOT} %{_includedir}/metaproxy %{_libdir}/*.so %{_libdir}/*.a +%{_bindir}/metaproxy-config %files doc %defattr(-,root,root) diff --git a/src/Makefile.am b/src/Makefile.am index ee24046..7f6756f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,6 +9,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/include AM_LDFLAGS = +bin_SCRIPTS = metaproxy-config + # Rules for the library.. lib_LTLIBRARIES = libmetaproxy.la