source: trunk/essentials/sys-libs/ncurses/convert_configure.pl@ 3845

Last change on this file since 3845 was 3043, checked in by bird, 19 years ago

-> essentials

File size: 2.6 KB
Line 
1extproc perl -S -w
2
3# The converted script is written to stdout, so run this script as
4# convert_configure configure > configure.cmd
5#
6# When the converted script runs, it expects that /tmp dir is
7# available (so we create it).
8#
9# run the result like this:
10# .\configure
11
12# Some frequent manual intervention:
13# a) Some makefiles hardwire SHELL = /bin/sh ==> change to: sh
14# b) Some makefiles recognize that exe files terminate on .exe
15# You need to give this script -no-zexe option...
16
17shift, $no_zexe = 1 if @ARGV and $ARGV[0] eq '-no-zexe';
18
19mkdir '/tmp', 0777 unless -d '/tmp';
20
21print <<EOF;
22extproc sh
23
24EOF
25
26print <<EOF unless $no_zexe;
27# Make sensible defaults:
28CC="gcc -Zexe -Zmt"
29export CC
30CXX="gcc -Zexe -Zmt"
31export CXX
32#GCCOPT="$GCCOPT -Zexe"
33#export GCCOPT
34EOF
35
36print <<EOF;
37CONFIG_SHELL=sh
38export CONFIG_SHELL
39
40# Optimization (GNU make 3.74 cannot be loaded :-():
41emxload -m 30 sh.exe ls.exe tr.exe id.exe sed.exe # make.exe
42emxload -m 30 grep.exe egrep.exe fgrep.exe cat.exe rm.exe mv.exe cp.exe
43emxload -m 30 uniq.exe basename.exe sort.exe awk.exe echo.exe
44
45
46EOF
47
48$checking_path = 0;
49