X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=convert_configure.pl;fp=convert_configure.pl;h=dea92ca5d8cc96961e5ff38709d4e448755ebb80;hp=9d1026d16878ce3a8e4ecbe02376b852391d5b18;hb=c633e5103a29a38532cf1925257b91cea33fd090;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/convert_configure.pl b/convert_configure.pl index 9d1026d1..dea92ca5 100644 --- a/convert_configure.pl +++ b/convert_configure.pl @@ -8,47 +8,83 @@ extproc perl -S -w # # run the result like this: # .\configure -; + +# Some frequent manual intervention: +# a) Some makefiles hardwire SHELL = /bin/sh ==> change to: sh +# b) Some makefiles recognize that exe files terminate on .exe +# You need to give this script -no-zexe option... + +shift, $no_zexe = 1 if @ARGV and $ARGV[0] eq '-no-zexe'; mkdir '/tmp', 0777 unless -d '/tmp'; print <) { - if (/for\s+(\w+)\s+in\s*\$PATH\s*;/) { + if (/for\s+(\w+)\s+in\s*\$(PATH|ac_dummy)\s*;/) { $checking_path = 1; $varname = $1; $subst= <