Fresco/Fresco-Test/config Fresco-Test-build-config.in,NONE,1.1 Fresco-Test-config.in,NONE,1.1 local.mk.in,1.2,1.3
Tobias Hunger <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Fresco-Test/config
In directory purcel:/tmp/cvs-serv8269/config
Modified Files:
local.mk.in
Added Files:
Fresco-Test-build-config.in Fresco-Test-config.in
Log Message:
Sorry, forgot to add some files. Shuffled some variables aroud to allow for
easier reuse of the test's Makefile.in.
--- NEW FILE: Fresco-Test-build-config.in ---
#!/bin/sh
prefix=@abs_top_builddir@
exec_prefix=@abs_top_builddir@
exec_prefix_set=no
usage="\
Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cppflags] [--cxxflags] [--libs]"
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 @PACKAGE_VERSION@
;;
--cppflags)
echo @CPPFLAGS@ -I@abs_top_srcdir@/syunit-c++/include
;;
--cxxflags)
echo @CXXFLAGS@
;;
--libs)
echo -L@abs_top_builddir@/lib -lFresco-Test @LIBS@
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
--- NEW FILE: Fresco-Test-config.in ---
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cppflags] [--cxxflags] [--libs]"
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 @PACKAGE_VERSION@
;;
--cppflags)
echo @INSTALL_CPPFLAGS@ -I@includedir@
;;
--cxxflags)
echo @CXXFLAGS@
;;
--libs)
echo -L@libdir@ -lFresco-Test @INSTALL_LIBS@
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
Index: local.mk.in
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Test/config/local.mk.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- local.mk.in 3 Apr 2003 19:45:42 -0000 1.2
+++ local.mk.in 3 Apr 2003 20:51:18 -0000 1.3
@@ -40,7 +40,8 @@
CXX := @CXX@
SYNOPSIS := synopsis
-SYN2CC := @abs_top_builddir@/bin/syn2cc.py
+TEST_CONFIG := @abs_top_builddir@/bin/Fresco-Test-config
+SYN2CC := `$(TEST_CONFIG) --prefix`/bin/syn2cc.py
SHTOOL := @top_srcdir@/config/shtool
SO_CXXFLAGS := @SO_CXXFLAGS@