Lines Matching +full:c +full:- +full:ares

9 # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
22 # SPDX-License-Identifier: curl
34 # curl-[email protected] to be dealt with automatically (make sure the
40 # testcurl.pl [options] [curl-daily-name] > output
44 # --configure=[options] Configure options
45 # --crosscompile This is a crosscompile
46 # --desc=[desc] Description of your test system
47 # --email=[email] Set email address to report as
48 # --extvercmd=[command] Command to use for displaying version with cross compiles.
49 # --mktarball=[command] Command to run after completed test
50 # --name=[name] Set name to report as
51 # --notes=[notes] More human-readable information about this configuration
52 # --nocvsup Don't pull from git even though it is a git tree
53 # --nogitpull Don't pull from git even though it is a git tree
54 # --nobuildconf Don't run autoreconf -fi
55 # --noconfigure Don't run configure
56 # --runtestopts=[options] Options to pass to runtests.pl
57 # --setup=[file name] File name to read setup from (deprecated)
58 # --target=[your os] Specify your target environment.
60 # if [curl-daily-name] is omitted, a 'curl' git directory is assumed.
68 # Turn on warnings (equivalent to -w, which can't be used with /usr/bin/env)
80 $version='2024-08-07';
86 if (-f ".git/config") {
94 if ($ARGV[0] =~ /--target=/) {
97 elsif ($ARGV[0] =~ /--setup=/) {
100 elsif ($ARGV[0] =~ /--extvercmd=/) {
103 elsif ($ARGV[0] =~ /--mktarball=/) {
106 elsif ($ARGV[0] =~ /--name=/) {
109 elsif ($ARGV[0] =~ /--email=/) {
112 elsif ($ARGV[0] =~ /--desc=/) {
115 elsif ($ARGV[0] =~ /--notes=/) {
118 elsif ($ARGV[0] =~ /--configure=(.*)/) {
122 elsif (($ARGV[0] eq "--nocvsup") || ($ARGV[0] eq "--nogitpull")) {
126 elsif ($ARGV[0] =~ /--nobuildconf/) {
130 elsif ($ARGV[0] =~ /--noconfigure/) {
134 elsif ($ARGV[0] =~ /--crosscompile/) {
138 elsif ($ARGV[0] =~ /--runtestopts=/) {
147 # Do the platform-specific stuff here
173 # FOR Windows since we might be cross-compiling on another system. Non-
174 # Windows builds still default to configure-style builds with curl_config.h.
177 $confheader = 'config-win32.h';
180 $ENV{LC_ALL}="C" if (($ENV{LC_ALL}) && ($ENV{LC_ALL} !~ /^C$/));
181 $ENV{LC_CTYPE}="C" if (($ENV{LC_CTYPE}) && ($ENV{LC_CTYPE} !~ /^C$/));
182 $ENV{LANG}="C";
192 system("rm -rf $target");
233 if (-r $buildlog) {
246 if(-f $configfile && -s $configfile && open(my $libconfigh, "<", "$configfile")) {
301 print "examples: --with-openssl --enable-debug --enable-ipv6\n";
321 if (($confopts !~ /--enable-debug/) &&
322 ($confopts !~ /--enable-warnings/) &&
323 ($confopts !~ /--disable-warnings/)) {
324 $confopts .= " --enable-warnings";
367 if (-d $CURLDIR) {
368 if ($git && -d "$CURLDIR/.git") {
370 # remove the generated sources to force them to be re-generated each
372 unlink "$CURLDIR/src/tool_hugehelp.c";
373 # find out if curl source dir has an in-tree c-ares repo
374 $have_embedded_ares = 1 if (-f "$CURLDIR/ares/GIT-INFO");
375 } elsif (!$git && -f "$CURLDIR/tests/testcurl.pl") {
377 # find out if curl source dir has an in-tree c-ares extracted tarball
378 $have_embedded_ares = 1 if (-f "$CURLDIR/ares/ares_build.h");
385 $CURLDIR = File::Spec->rel2abs("$CURLDIR");
387 $build="build-$$";
388 $buildlogname="buildlog-$$";
391 # remove any previous left-overs
392 rmtree "build-*";
393 rmtree "buildlog-*";
396 foreach (glob("$CURLDIR/buildlog-*")) { unlink $_; }
401 if (-d $build) {
417 logit "skipping git pull (--nogitpull)";
429 @commits=`git log --pretty=oneline --abbrev-commit -5`;
436 if (-d "ares/.git") {
437 chdir "ares";
440 logit "skipping git pull (--nogitpull) in ares";
442 logit "run git pull in ares";
445 logit "failed to update from ares git ($?), continue anyway" if ($?);
452 @commits=`git log --pretty=oneline --abbrev-commit -5`;
453 logit "The most recent ares git commits:";
463 logit "told to not run autoreconf -fi";
466 # remove possible left-overs from the past
472 open(my $f, "-|", "autoreconf -fi 2>&1") or die;
482 logit "autoreconf -fi was successful";
485 logit "autoreconf -fi was successful (dummy message)";
490 if (open (my $f, '<', "docs/tarball-commit.txt")) {
500 if ((-f "include/curl/curlver.h") &&
520 if (-f "configure") {
530 my $c;
536 for $c (@_) {
538 if( -x "$e/$c$x") {
539 return $c;
560 if (-f "lib/Makefile") {
572 system("cp -afr $CURLDIR/* .");
573 system("cp -af $CURLDIR/Makefile.dist Makefile");
574 system("$make -i -C lib -f Makefile.$targetos prebuild");
575 system("$make -i -C src -f Makefile.$targetos prebuild");
576 if (-d "$CURLDIR/ares") {
577 system("cp -af $CURLDIR/ares/ares_build.h.dist ./ares/ares_build.h");
578 system("$make -i -C ares -f Makefile.$targetos prebuild");
583 if(-f "./libcurl.pc") {
604 logit "setup to build ares";
606 if(-f "./ares/libcares.pc") {
607 logit_spaced "display ares/libcares.pc";
608 if(open($f, "<", "ares/libcares.pc")) {
617 if(-f "./ares/ares_build.h") {
618 logit_spaced "display ares/ares_build.h";
619 if(open($f, "<", "ares/ares_build.h")) {
631 $confheader =~ s/curl/ares/;
632 logit_spaced "display ares/$confheader";
633 if(open($f, "<", "ares/$confheader")) {
641 logit "build ares";
642 chdir "ares";
645 logit "$make -f Makefile.$targetos";
646 open($f, "-|", "$make -f Makefile.$targetos 2>&1") or die;
650 open($f, "-|", "$make 2>&1") or die;
658 if (-f "libcares$libext") {
659 logit "ares is now built successfully (libcares$libext)";
661 mydie "ares build failed (libcares$libext)";
668 my $mkcmd = "$make -i" . ($targetos && !$configurebuild ? " $targetos" : "");
670 open(my $f, "-|", "$mkcmd 2>&1") or die;
677 if (-f "lib/libcurl$libext") {
684 if (-f "src/curl$binext") {
691 if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) {
692 logit "display curl${binext} --version output";
693 my $cmd = ($extvercmd ne '' ? $extvercmd.' ' : '')."./src/curl${binext} --version|";
696 # strip CR from output on non-Windows platforms (WINE on Linux)
706 if(($host_triplet =~ /([^-]+)-([^-]+)-irix(.*)/) ||
707 ($host_triplet =~ /([^-]+)-([^-]+)-aix(.*)/) ||
708 ($host_triplet =~ /([^-]+)-([^-]+)-osf(.*)/) ||
709 ($host_triplet =~ /([^-]+)-([^-]+)-solaris2(.*)/)) {
712 open($f, "-|", "$make -i 2>&1") or die;
728 logit "$make -k ${o}test-full";
729 open($f, "-|", "$make -k ${o}test-full 2>&1") or die;
754 # build example programs for selected cross-compiles
755 if(($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) ||
756 ($host_triplet =~ /([^-]+)-([^-]+)-android(.*)/)) {
759 open($f, "-|", "$make -i 2>&1") or die;
770 # build test harness programs for selected cross-compiles
771 if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
774 open(my $f, "-|", "$make -i 2>&1") or die;
785 logit_spaced "cross-compiling, can't run tests";
792 if (($mktarball ne '') && (-x $mktarball)) {