Update of /cvsroot/libfunutil/libfunutil/toc/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv23364
Modified Files:
readline.sh
Log Message:
i never thought i'd be writing config tests to accomodate diffs between different suse releases...
Index: readline.sh
===================================================================
RCS file: /cvsroot/libfunutil/libfunutil/toc/tests/readline.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- readline.sh 27 Sep 2003 22:34:03 -0000 1.9
+++ readline.sh 15 Oct 2003 09:59:34 -0000 1.10
@@ -33,11 +33,18 @@
}
configure_with_libreadline=${configure_with_libreadline-0}
-libname=libreadline.a
+
libpath=/usr/lib:/usr/local/lib:${prefix}/lib:/lib
-toc_find_failok $libname $libpath || {
- echo "Couldn't find $libname in path [${libpath}]"
- return 1
+do=0
+for L in libreadline.a libreadline.so.4; do
+ toc_find_failok $L "$libpath" && {
+ do=1
+ break
+ }
+done
+test x$do = x0 && {
+ echo "libreadline library file not found."
+ return 0
}
lib=${TOC_FIND_RESULT}
|