Index: bin/getlibdir =================================================================== RCS file: /cvsroot/gnump3d/gnump3d/bin/getlibdir,v retrieving revision 1.2 diff -u -r1.2 getlibdir --- bin/getlibdir 14 Oct 2003 20:40:51 -0000 1.2 +++ bin/getlibdir 1 Nov 2003 19:19:58 -0000 @@ -44,6 +44,13 @@ # +# we prefer /share/ to /lib/ since this is arch-indep +# +if ( grep(m|/share/|, @dirs) ) { + @dirs = grep(m|/share/|, @dirs); +} + +# # Find the shortest one. # @dirs = sort { length( $a ) <=> length( $ b ) } @dirs ;