/* OS/2 REXX : The top level configure.cmd; Don't delete this comment. */ call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs' call SysLoadFuncs
parse arg option
select
when option='--with-gnu-gettext' then intl='yes'
when option='--disable-nls' then intl='no'
otherwise
intl='yes' /* ??? */
end
/* I don't think I know how to substitute all the occurences *
* of a substring to something else with REXX comes with Warp3. *
* Of course Object REXX has ANSI function changestr */
curdir=directory() do until pos('\',curdir)=0
parse var curdir tmp1 '\' tmp2
curdir=tmp1'#/'tmp2
end
curdir=translate(curdir,'\','#')
contains=0 do until contains > 0
testversion=linein('src/version.h')
contains=pos('#define LYX_VERSION', testversion)
end
os2config.14='@LYX_VERSION@ 'strip(subword(testversion,3,1),,'"')
os2config.15='@VERSION@ 'subword(os2config.14,2) if subword(translate(testversion,' ','.'),4,1)//2=1 then do
devel='yes'
os2config.16='@CXXFLAGS@ -g -m486 -O -fno-strength-reduce -Zmtd -Zsysv-signals -D__ST_MT_ERRNO__ -Wall -Wno-unused'
os2config.17='@CFLAGS@ 'subword(os2config.16,2)
end
else do
os2config.16='@CXXFLAGS@ -g -m486 -O2 -fno-strength-reduce -Zmtd -Zsysv-signals -D__ST_MT_ERRNO__ -Wall -Wno-unused'
os2config.17='@CFLAGS@ 'subword(os2config.16,2)
/* Actually no need to distinguish, since on OS/2, *
* -O runs faster than -O2 in general ;-) */
end
/* Full path is given in order to distinguish it from IBM install. */
os2config.27='@INSTALL@ 'subword(os2config.5,2)'\/install'
os2config.28='@INSTALL_DATA@ 'subword(os2config.5,2)'\/install'
os2config.29='@INSTALL_PROGRAM@ 'subword(os2config.5,2)'\/install'
os2config.30='@INSTALL_TARGET@ install-os2'
os2config.31='@LIBOBJS@' if intl='yes'then do
os2config.32='@INTLLIBS@ ..\/intl\/libintl.a'
os2config.33='@INTLSUB@ intl'
os2config.34='@POSUB@' /* os2config.27='@POSUB@ po' */
os2config.35='@USE_INCLUDED_LIBINTL@ yes'
end
else do
os2config.32='@INTLLIBS@'
os2config.33='@INTLSUB@'
os2config.34='@POSUB@'
os2config.35='@USE_INCLUDED_LIBINTL@'
end
os2config.36='@INTLOBJS@'
os2config.37='@DEFS@'
os2config.38='@program_transform_name@'
os2config.39='@l@'
os2config.40='@PROGEXT@ .exe'
os2config.41='@PERL@ perl'
os2config.42='@LYX_DIR@ $ENV{X11ROOT}\/XFree86\/lib\/X11\/lyx'
os2config.0=42
/* Test if xforms and Xpm are available. */
rc=SysFileTree(X11ROOT'\XFree86\lib\forms.a',found,'F') if found.0 = 0 then
say "Can't find forms.a. Please check that the xforms library is correctly installed on your system."
rc=SysFileTree(X11ROOT'\XFree86\lib\Xpm.a',found,'F') if found.0 = 0 then
say "Can't find Xpm.a. Please check that the Xpm library is correctly installed on your system."
'touch config.status' 'touch config/stamp-h.in' 'sed -f os2config.sed Makefile.in > Makefile' 'sed -f os2config.sed lib/Makefile.in > lib\Makefile' 'sed -f os2config.sed src/Makefile.in > src\Makefile' 'sed -f os2config.sed src/config.h.in > src\config.h' if intl='yes'then call SysFileTree 'intl\intlh.inst','patched','F' if patched.0 = 0 then
/* Figure out how GNU patch program is called here */
/* If run without arguments,
GNU patch emits "usage" into stderr and none into stdout, and
IBM patch emits nothing into stderr and an error message "SYS1575..." into stdout
*/ do do '@patch 2>&1 | grep SYS1575 >nul' if rc=0 then do
say 'configure tries to run GNU patch with the command "patch"'
say 'and detects IBM patch instead. Please type the collect'
say 'name to invoke GNU patch:'
parse pull patch
end
else patch='patch'
patch' -d intl 'touch intl/intlh.inst' 'cp intl/libgettext.h intl/libintl.h' 'sed -f os2config.sed intl/Makefile.in > intl\Makefile'
end
end 'cd lib'
/* Check if perl 5.002 or later is available */
PERL=SysSearchPath('PATH', 'perl.exe') if PERL=''then PERL=SysSearchPath('PATH', 'perl_.exe') if PERL=''then PERL=SysSearchPath('PATH', 'perl__.exe') if PERL=''then PERL=SysSearchPath('PATH', 'perl___.exe')
PERL ' -e "require 5.002"' if rc=0 then do call SysFileDelete 'reLyX\reLyX.cmd'
rc=lineout('reLyX\reLyX.cmd','extproc 'PERL' -S -w')
rc=lineout('reLyX\reLyX.cmd') 'sed -f ../os2config.sed reLyX/reLyX.in >> reLyX\reLyX.cmd'
end
/* The extension ".cmd" is added to distinguish it from sh-script */ 'cmd /c configure.cmd'
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.