cf/make-proto.pl: make JSON:PP optional

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Stefan Metzmacher
2023-08-01 14:40:33 +02:00
committed by Nico Williams
parent ad23636db8
commit 13d3bcf1d0

View File

@@ -4,8 +4,6 @@
use Getopt::Std;
use File::Compare;
use JSON::PP
my $comment = 0;
my $doxygen = 0;
my $funcdoc = 0;
@@ -67,6 +65,8 @@ if($opt_m) {
}
if($opt_x) {
require JSON::PP;
my $EXP;
local $/;
open(EXP, '<', $opt_x) || die "open ${opt_x}";