]> git.sur5r.net Git - openldap/blobdiff - build/ltmain.sh
Fix minor bugs...
[openldap] / build / ltmain.sh
index ae10cad021b7989973632c44046c9bd9a91e392f..f886d7e5c620ee8ed50963f7edbb62cc65b0bfc7 100755 (executable)
@@ -179,6 +179,16 @@ do
   --mode) prevopt="--mode" prev=mode ;;
   --mode=*) mode="$optarg" ;;
 
+  --only-shared)
+    build_libtool_libs=yes
+    build_old_libs=no
+    ;;
+
+  --only-static)
+    build_libtool_libs=no
+    build_old_libs=yes
+    ;;
+
   --quiet | --silent)
     show=:
     ;;
@@ -207,6 +217,13 @@ if test -n "$prevopt"; then
   exit 1
 fi
 
+case "$show $MFLAGS -$MAKEFLAGS" in
+  :\ *) : ;;
+  *\ -*s*)
+       # Be silent inside 'make -s'
+       expr " $MFLAGS -$MAKEFLAGS" : '.* -[a-zA-Z]*s' >/dev/null && show=: ;;
+esac
+
 if test -z "$show_help"; then
 
   # Infer the operation mode.