]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/src/library-cfg.sh
ncurses 6.1 - patch 20181201
[ncurses.git] / Ada95 / src / library-cfg.sh
index 47470d46d1b8e6f8c4296ddb4ff3e2be8aa3acf6..674baa60d5dd2423dfefea21b6fe204b29289efa 100755 (executable)
@@ -27,7 +27,7 @@
 # authorization.                                                             #
 ##############################################################################
 #
 # authorization.                                                             #
 ##############################################################################
 #
-# $Id: library-cfg.sh,v 1.3 2018/01/15 14:32:47 tom Exp $
+# $Id: library-cfg.sh,v 1.4 2018/11/10 22:58:52 tom Exp $
 #
 # Work around incompatible behavior introduced with gnat6, which causes
 # gnatmake to attempt to compile all of the C objects which might be part of
 #
 # Work around incompatible behavior introduced with gnat6, which causes
 # gnatmake to attempt to compile all of the C objects which might be part of
@@ -40,8 +40,15 @@ shift 1
 param=
 while test $# != 0
 do
 param=
 while test $# != 0
 do
-       test -n "$param" && param="$param,"
-       param="$param\"$1\""
+       case "x$1" in
+       *-[OgDIWf]*)
+               test -n "$param" && param="$param,"
+               param="$param\"$1\""
+               ;;
+       *)
+               echo "${0##*/}: ignored option $1" >&2
+               ;;
+       esac
        shift 1
 done
 
        shift 1
 done