Add ability to include literal text in the prototype check.
authorAndy Dougherty <doughera@lafayette.edu>
Thu, 24 Jan 2019 02:12:29 +0000 (21:12 -0500)
committerAndy Dougherty <doughera@lafayette.edu>
Thu, 24 Jan 2019 02:12:29 +0000 (21:12 -0500)
This is the same technique as in the metaconfig unit Protochk.U.
See that unit for more usage information.  It is a bit clunky,
but does work.

Configure

index a83cbdf..1795457 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -10739,6 +10739,7 @@ hasproto='varname=$1; func=$2; shift; shift;
 while $test $# -ge 2; do
        case "$1" in
        $define) echo "#include <$2>";;
+       literal) echo "$2" ;;
        esac ;
     shift 2;
 done > try.c;