Fresco/Fresco-Test/config Fresco-Test-build-config.in,1.4,1.5 Fresco-Test-config.in,1.3,1.4

Tobias Hunger <[email protected]> Sat, 06 Dec 2003 11:26:50 +0000
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Fresco-Test/config
In directory purcel:/tmp/cvs-serv308/Fresco-Test/config

Modified Files:
	Fresco-Test-build-config.in Fresco-Test-config.in 
Log Message:
Do not reorder elements in --cppfalgs and --libs but use the first occurence.
There should only be -I, -L, -l and -D flags there and those will work
if we only allow the first occurence. Closes bug283.


Index: Fresco-Test-build-config.in
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Test/config/Fresco-Test-build-config.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Fresco-Test-build-config.in	12 Nov 2003 22:38:13 -0000	1.4
+++ Fresco-Test-build-config.in	6 Dec 2003 11:26:47 -0000	1.5
@@ -40,14 +40,18 @@
       ;;
     --cppflags)
       echo @CPPFLAGS@ -I@abs_top_builddir@/include |\
-          sed -e "s/ /\n/g" | sort -u | xargs echo -n
+          sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+          xargs echo -n
+      echo
       ;;
     --cxxflags)
       echo @CXXFLAGS@
       ;;
     --libs)
       echo -L@abs_top_builddir@/lib -lFresco-Test @LIBS@ |\
-          sed -e "s/ /\n/g" | sort -u | xargs echo -n
+          sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+          xargs echo -n
+      echo
       ;;
     --test-runner)
       echo $prefix/bin/run_tests.sh

Index: Fresco-Test-config.in
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Test/config/Fresco-Test-config.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Fresco-Test-config.in	12 Nov 2003 22:38:13 -0000	1.3
+++ Fresco-Test-config.in	6 Dec 2003 11:26:47 -0000	1.4
@@ -40,14 +40,18 @@
       ;;
     --cppflags)
       echo @INSTALL_CPPFLAGS@ -I@includedir@ |\
-          sed -e "s/ /\n/g" | sort -u | xargs echo -n
+          sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+          xargs echo -n
+      echo
       ;;
     --cxxflags)
       echo @CXXFLAGS@
       ;;
     --libs)
       echo -L@libdir@ -lFresco-Test @INSTALL_LIBS@ |\
-          sed -e "s/ /\n/g" | sort -u | xargs echo -n
+          sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+          xargs echo -n
+      echo
       ;;
     --test-runner)
       echo $prefix/bin/run_tests.sh