Modified yaz-config so that it only reports usage when bad options
[yaz-moved-to-github.git] / lib / yaz-config.in
index 2713388..fde3663 100755 (executable)
@@ -54,7 +54,7 @@ while test $# -gt 0; do
     --tabs)
       echo_tabs=yes
       ;;
-    *)
+    -*)
       echo_help=yes
       ;;
   esac
@@ -65,9 +65,9 @@ YAZTAB=$yazprefix/share/yaz/tab
 YAZBIN=$yazprefix/bin
 
 if test "$yazprefix" = "/usr"; then
-       YAZLIB="-L$yazprefix/lib $YAZLIB"
-else
        YAZLIB="-lyaz $yazlibs"
+else
+       YAZLIB="-L$yazprefix/lib -lyaz $yazlibs"
 fi
 if test "$yazprefix" = "/usr"; then
        YAZINC=