mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
symbol-scan.pl: do not require autotools
Makes test1119 pass when building with cmake.
configurehelp.pm is generated by configure (autotools). As cmake does
not provide a separate variable for the C preprocessor, default to cpp.
Before commit ef24ecde68
("symbol-scan:
use configure script knowledge about how to run the C preprocessor"),
this tool would also use 'cpp'.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
17d27805f9
commit
dd469eec40
@ -27,13 +27,23 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use vars qw($Cpreprocessor);
|
||||
|
||||
#
|
||||
# configurehelp perl module is generated by configure script
|
||||
#
|
||||
use configurehelp qw(
|
||||
my $rc = eval {
|
||||
require configurehelp;
|
||||
configurehelp->import(qw(
|
||||
$Cpreprocessor
|
||||
);
|
||||
));
|
||||
1;
|
||||
};
|
||||
# Set default values if configure has not generated a configurehelp.pm file.
|
||||
# This is the case with cmake.
|
||||
if (!$rc) {
|
||||
$Cpreprocessor = 'cpp';
|
||||
}
|
||||
|
||||
# we may get the dir root pointed out
|
||||
my $root=$ARGV[0] || ".";
|
||||
|
Loading…
Reference in New Issue
Block a user