README 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. Intro
  2. =====
  3. This directory contains a few sets of files that are used for
  4. configuration in diverse ways:
  5. *.conf Target platform configurations, please read
  6. 'Configurations of OpenSSL target platforms' for more
  7. information.
  8. *.tmpl Build file templates, please read 'Build-file
  9. programming with the "unified" build system' as well
  10. as 'Build info files' for more information.
  11. *.pm Helper scripts / modules for the main `Configure`
  12. script. See 'Configure helper scripts for more
  13. information.
  14. Configurations of OpenSSL target platforms
  15. ==========================================
  16. Configuration targets are a collection of facts that we know about
  17. different platforms and their capabilities. We organise them in a
  18. hash table, where each entry represent a specific target.
  19. Note that configuration target names must be unique across all config
  20. files. The Configure script does check that a config file doesn't
  21. have config targets that shadow config targets from other files.
  22. In each table entry, the following keys are significant:
  23. inherit_from => Other targets to inherit values from.
  24. Explained further below. [1]
  25. template => Set to 1 if this isn't really a platform
  26. target. Instead, this target is a template
  27. upon which other targets can be built.
  28. Explained further below. [1]
  29. sys_id => System identity for systems where that
  30. is difficult to determine automatically.
  31. enable => Enable specific configuration features.
  32. This MUST be an array of words.
  33. disable => Disable specific configuration features.
  34. This MUST be an array of words.
  35. Note: if the same feature is both enabled
  36. and disabled, disable wins.
  37. as => The assembler command. This is not always
  38. used (for example on Unix, where the C
  39. compiler is used instead).
  40. asflags => Default assembler command flags [4].
  41. cpp => The C preprocessor command, normally not
  42. given, as the build file defaults are
  43. usually good enough.
  44. cppflags => Default C preprocessor flags [4].
  45. defines => As an alternative, macro definitions may be
  46. given here instead of in `cppflags' [4].
  47. If given here, they MUST be as an array of
  48. the string such as "MACRO=value", or just
  49. "MACRO" for definitions without value.
  50. includes => As an alternative, inclusion directories
  51. may be given here instead of in `cppflags'
  52. [4]. If given here, the MUST be an array
  53. of strings, one directory specification
  54. each.
  55. cc => The C compiler command, usually one of "cc",
  56. "gcc" or "clang". This command is normally
  57. also used to link object files and
  58. libraries into the final program.
  59. cxx => The C++ compiler command, usually one of
  60. "c++", "g++" or "clang++". This command is
  61. also used when linking a program where at
  62. least one of the object file is made from
  63. C++ source.
  64. cflags => Defaults C compiler flags [4].
  65. cxxflags => Default C++ compiler flags [4]. If unset,
  66. it gets the same value as cflags.
  67. (linking is a complex thing, see [3] below)
  68. ld => Linker command, usually not defined
  69. (meaning the compiler command is used
  70. instead).
  71. (NOTE: this is here for future use, it's
  72. not implemented yet)
  73. lflags => Default flags used when linking apps,
  74. shared libraries or DSOs [4].
  75. ex_libs => Extra libraries that are needed when
  76. linking shared libraries, DSOs or programs.
  77. The value is also assigned to Libs.private
  78. in $(libdir)/pkgconfig/libcrypto.pc.
  79. shared_cppflags => Extra C preprocessor flags used when
  80. processing C files for shared libraries.
  81. shared_cflag => Extra C compiler flags used when compiling
  82. for shared libraries, typically something
  83. like "-fPIC".
  84. shared_ldflag => Extra linking flags used when linking
  85. shared libraries.
  86. module_cppflags
  87. module_cflags
  88. module_ldflags => Has the same function as the corresponding
  89. `shared_' attributes, but for building DSOs.
  90. When unset, they get the same values as the
  91. corresponding `shared_' attributes.
  92. ar => The library archive command, the default is
  93. "ar".
  94. (NOTE: this is here for future use, it's
  95. not implemented yet)
  96. arflags => Flags to be used with the library archive
  97. command. On Unix, this includes the
  98. command letter, 'r' by default.
  99. ranlib => The library archive indexing command, the
  100. default is 'ranlib' it it exists.
  101. unistd => An alternative header to the typical
  102. '<unistd.h>'. This is very rarely needed.
  103. shared_extension => File name extension used for shared
  104. libraries.
  105. obj_extension => File name extension used for object files.
  106. On unix, this defaults to ".o" (NOTE: this
  107. is here for future use, it's not
  108. implemented yet)
  109. exe_extension => File name extension used for executable
  110. files. On unix, this defaults to "" (NOTE:
  111. this is here for future use, it's not
  112. implemented yet)
  113. shlib_variant => A "variant" identifier inserted between the base
  114. shared library name and the extension. On "unixy"
  115. platforms (BSD, Linux, Solaris, MacOS/X, ...) this
  116. supports installation of custom OpenSSL libraries
  117. that don't conflict with other builds of OpenSSL
  118. installed on the system. The variant identifier
  119. becomes part of the SONAME of the library and also
  120. any symbol versions (symbol versions are not used or
  121. needed with MacOS/X). For example, on a system
  122. where a default build would normally create the SSL
  123. shared library as 'libssl.so -> libssl.so.1.1' with
  124. the value of the symlink as the SONAME, a target
  125. definition that sets 'shlib_variant => "-abc"' will
  126. create 'libssl.so -> libssl-abc.so.1.1', again with
  127. an SONAME equal to the value of the symlink. The
  128. symbol versions associated with the variant library
  129. would then be 'OPENSSL_ABC_<version>' rather than
  130. the default 'OPENSSL_<version>'. The string inserted
  131. into symbol versions is obtained by mapping all
  132. letters in the "variant" identifier to upper case
  133. and all non-alphanumeric characters to '_'.
  134. thread_scheme => The type of threads is used on the
  135. configured platform. Currently known
  136. values are "(unknown)", "pthreads",
  137. "uithreads" (a.k.a solaris threads) and
  138. "winthreads". Except for "(unknown)", the
  139. actual value is currently ignored but may
  140. be used in the future. See further notes
  141. below [2].
  142. dso_scheme => The type of dynamic shared objects to build
  143. for. This mostly comes into play with
  144. modules, but can be used for other purposes
  145. as well. Valid values are "DLFCN"
  146. (dlopen() et al), "DLFCN_NO_H" (for systems
  147. that use dlopen() et al but do not have
  148. fcntl.h), "DL" (shl_load() et al), "WIN32"
  149. and "VMS".
  150. asm_arch => The architecture to be used for compiling assembly
  151. source. This acts as a selector in build.info files.
  152. uplink_arch => The architecture to be used for compiling uplink
  153. source. This acts as a selector in build.info files.
  154. This is separate from asm_arch because it's compiled
  155. even when 'no-asm' is given, even though it contains
  156. assembler source.
  157. perlasm_scheme => The perlasm method used to create the
  158. assembler files used when compiling with
  159. assembler implementations.
  160. shared_target => The shared library building method used.
  161. This serves multiple purposes:
  162. - as index for targets found in shared_info.pl.
  163. - as linker script generation selector.
  164. To serve both purposes, the index for shared_info.pl
  165. should end with '-shared', and this suffix will be
  166. removed for use as a linker script generation
  167. selector. Note that the latter is only used if
  168. 'shared_defflag' is defined.
  169. build_scheme => The scheme used to build up a Makefile.
  170. In its simplest form, the value is a string
  171. with the name of the build scheme.
  172. The value may also take the form of a list
  173. of strings, if the build_scheme is to have
  174. some options. In this case, the first
  175. string in the list is the name of the build
  176. scheme.
  177. Currently recognised build scheme is "unified".
  178. For the "unified" build scheme, this item
  179. *must* be an array with the first being the
  180. word "unified" and the second being a word
  181. to identify the platform family.
  182. multilib => On systems that support having multiple
  183. implementations of a library (typically a
  184. 32-bit and a 64-bit variant), this is used
  185. to have the different variants in different
  186. directories.
  187. bn_ops => Building options (was just bignum options in
  188. the earlier history of this option, hence the
  189. name). This is a string of words that describe
  190. algorithms' implementation parameters that
  191. are optimal for the designated target platform,
  192. such as the type of integers used to build up
  193. the bignum, different ways to implement certain
  194. ciphers and so on. To fully comprehend the
  195. meaning, the best is to read the affected
  196. source.
  197. The valid words are:
  198. THIRTY_TWO_BIT bignum limbs are 32 bits,
  199. this is default if no
  200. option is specified, it
  201. works on any supported
  202. system [unless "wider"
  203. limb size is implied in
  204. assembly code];
  205. BN_LLONG bignum limbs are 32 bits,
  206. but 64-bit 'unsigned long
  207. long' is used internally
  208. in calculations;
  209. SIXTY_FOUR_BIT_LONG bignum limbs are 64 bits
  210. and sizeof(long) is 8;
  211. SIXTY_FOUR_BIT bignums limbs are 64 bits,
  212. but execution environment
  213. is ILP32;
  214. RC4_CHAR RC4 key schedule is made
  215. up of 'unsigned char's;
  216. RC4_INT RC4 key schedule is made
  217. up of 'unsigned int's;
  218. EXPORT_VAR_AS_FN for shared libraries,
  219. export vars as
  220. accessor functions.
  221. [1] as part of the target configuration, one can have a key called
  222. 'inherit_from' that indicate what other configurations to inherit
  223. data from. These are resolved recursively.
  224. Inheritance works as a set of default values that can be overridden
  225. by corresponding key values in the inheriting configuration.
  226. Note 1: any configuration table can be used as a template.
  227. Note 2: pure templates have the attribute 'template => 1' and
  228. cannot be used as build targets.
  229. If several configurations are given in the 'inherit_from' array,
  230. the values of same attribute are concatenated with space
  231. separation. With this, it's possible to have several smaller
  232. templates for different configuration aspects that can be combined
  233. into a complete configuration.
  234. instead of a scalar value or an array, a value can be a code block
  235. of the form 'sub { /* your code here */ }'. This code block will
  236. be called with the list of inherited values for that key as
  237. arguments. In fact, the concatenation of strings is really done
  238. by using 'sub { join(" ",@_) }' on the list of inherited values.
  239. An example:
  240. "foo" => {
  241. template => 1,
  242. haha => "ha ha",
  243. hoho => "ho",
  244. ignored => "This should not appear in the end result",
  245. },
  246. "bar" => {
  247. template => 1,
  248. haha => "ah",
  249. hoho => "haho",
  250. hehe => "hehe"
  251. },
  252. "laughter" => {
  253. inherit_from => [ "foo", "bar" ],
  254. hehe => sub { join(" ",(@_,"!!!")) },
  255. ignored => "",
  256. }
  257. The entry for "laughter" will become as follows after processing:
  258. "laughter" => {
  259. haha => "ha ha ah",
  260. hoho => "ho haho",
  261. hehe => "hehe !!!",
  262. ignored => ""
  263. }
  264. [2] OpenSSL is built with threading capabilities unless the user
  265. specifies 'no-threads'. The value of the key 'thread_scheme' may
  266. be "(unknown)", in which case the user MUST give some compilation
  267. flags to Configure.
  268. [3] OpenSSL has three types of things to link from object files or
  269. static libraries:
  270. - shared libraries; that would be libcrypto and libssl.
  271. - shared objects (sometimes called dynamic libraries); that would
  272. be the modules.
  273. - applications; those are apps/openssl and all the test apps.
  274. Very roughly speaking, linking is done like this (words in braces
  275. represent the configuration settings documented at the beginning
  276. of this file):
  277. shared libraries:
  278. {ld} $(CFLAGS) {lflags} {shared_ldflag} -o libfoo.so \
  279. foo/something.o foo/somethingelse.o {ex_libs}
  280. shared objects:
  281. {ld} $(CFLAGS) {lflags} {module_ldflags} -o libeng.so \
  282. blah1.o blah2.o -lcrypto {ex_libs}
  283. applications:
  284. {ld} $(CFLAGS) {lflags} -o app \
  285. app1.o utils.o -lssl -lcrypto {ex_libs}
  286. [4] There are variants of these attribute, prefixed with `lib_',
  287. `dso_' or `bin_'. Those variants replace the unprefixed attribute
  288. when building library, DSO or program modules specifically.
  289. Historically, the target configurations came in form of a string with
  290. values separated by colons. This use is deprecated. The string form
  291. looked like this:
  292. "target" => "{cc}:{cflags}:{unistd}:{thread_cflag}:{sys_id}:{lflags}:{bn_ops}:{cpuid_obj}:{bn_obj}:{ec_obj}:{des_obj}:{aes_obj}:{bf_obj}:{md5_obj}:{sha1_obj}:{cast_obj}:{rc4_obj}:{rmd160_obj}:{rc5_obj}:{wp_obj}:{cmll_obj}:{modes_obj}:{padlock_obj}:{perlasm_scheme}:{dso_scheme}:{shared_target}:{shared_cflag}:{shared_ldflag}:{shared_extension}:{ranlib}:{arflags}:{multilib}"
  293. Build info files
  294. ================
  295. The build.info files that are spread over the source tree contain the
  296. minimum information needed to build and distribute OpenSSL. It uses a
  297. simple and yet fairly powerful language to determine what needs to be
  298. built, from what sources, and other relationships between files.
  299. For every build.info file, all file references are relative to the
  300. directory of the build.info file for source files, and the
  301. corresponding build directory for built files if the build tree
  302. differs from the source tree.
  303. When processed, every line is processed with the perl module
  304. Text::Template, using the delimiters "{-" and "-}". The hashes
  305. %config and %target are passed to the perl fragments, along with
  306. $sourcedir and $builddir, which are the locations of the source
  307. directory for the current build.info file and the corresponding build
  308. directory, all relative to the top of the build tree.
  309. 'Configure' only knows inherently about the top build.info file. For
  310. any other directory that has one, further directories to look into
  311. must be indicated like this:
  312. SUBDIRS=something someelse
  313. On to things to be built; they are declared by setting specific
  314. variables:
  315. PROGRAMS=foo bar
  316. LIBS=libsomething
  317. MODULES=libeng
  318. SCRIPTS=myhack
  319. Note that the files mentioned for PROGRAMS, LIBS and MODULES *must* be
  320. without extensions. The build file templates will figure them out.
  321. For each thing to be built, it is then possible to say what sources
  322. they are built from:
  323. PROGRAMS=foo bar
  324. SOURCE[foo]=foo.c common.c
  325. SOURCE[bar]=bar.c extra.c common.c
  326. It's also possible to tell some other dependencies:
  327. DEPEND[foo]=libsomething
  328. DEPEND[libbar]=libsomethingelse
  329. (it could be argued that 'libsomething' and 'libsomethingelse' are
  330. source as well. However, the files given through SOURCE are expected
  331. to be located in the source tree while files given through DEPEND are
  332. expected to be located in the build tree)
  333. It's also possible to depend on static libraries explicitly:
  334. DEPEND[foo]=libsomething.a
  335. DEPEND[libbar]=libsomethingelse.a
  336. This should be rarely used, and care should be taken to make sure it's
  337. only used when supported. For example, native Windows build doesn't
  338. support building static libraries and DLLs at the same time, so using
  339. static libraries on Windows can only be done when configured
  340. 'no-shared'.
  341. In some cases, it's desirable to include some source files in the
  342. shared form of a library only:
  343. SHARED_SOURCE[libfoo]=dllmain.c
  344. For any file to be built, it's also possible to tell what extra
  345. include paths the build of their source files should use:
  346. INCLUDE[foo]=include
  347. It's also possible to specify C macros that should be defined:
  348. DEFINE[foo]=FOO BAR=1
  349. In some cases, one might want to generate some source files from
  350. others, that's done as follows:
  351. GENERATE[foo.s]=asm/something.pl $(CFLAGS)
  352. GENERATE[bar.s]=asm/bar.S
  353. The value of each GENERATE line is a command line or part of it.
  354. Configure places no rules on the command line, except that the first
  355. item must be the generator file. It is, however, entirely up to the
  356. build file template to define exactly how those command lines should
  357. be handled, how the output is captured and so on.
  358. Sometimes, the generator file itself depends on other files, for
  359. example if it is a perl script that depends on other perl modules.
  360. This can be expressed using DEPEND like this:
  361. DEPEND[asm/something.pl]=../perlasm/Foo.pm
  362. There may also be cases where the exact file isn't easily specified,
  363. but an inclusion directory still needs to be specified. INCLUDE can
  364. be used in that case:
  365. INCLUDE[asm/something.pl]=../perlasm
  366. NOTE: GENERATE lines are limited to one command only per GENERATE.
  367. Finally, you can have some simple conditional use of the build.info
  368. information, looking like this:
  369. IF[1]
  370. something
  371. ELSIF[2]
  372. something other
  373. ELSE
  374. something else
  375. ENDIF
  376. The expression in square brackets is interpreted as a string in perl,
  377. and will be seen as true if perl thinks it is, otherwise false. For
  378. example, the above would have "something" used, since 1 is true.
  379. Together with the use of Text::Template, this can be used as
  380. conditions based on something in the passed variables, for example:
  381. IF[{- $disabled{shared} -}]
  382. LIBS=libcrypto
  383. SOURCE[libcrypto]=...
  384. ELSE
  385. LIBS=libfoo
  386. SOURCE[libfoo]=...
  387. ENDIF
  388. Build-file programming with the "unified" build system
  389. ======================================================
  390. "Build files" are called "Makefile" on Unix-like operating systems,
  391. "descrip.mms" for MMS on VMS, "makefile" for nmake on Windows, etc.
  392. To use the "unified" build system, the target configuration needs to
  393. set the three items 'build_scheme', 'build_file' and 'build_command'.
  394. In the rest of this section, we will assume that 'build_scheme' is set
  395. to "unified" (see the configurations documentation above for the
  396. details).
  397. For any name given by 'build_file', the "unified" system expects a
  398. template file in Configurations/ named like the build file, with
  399. ".tmpl" appended, or in case of possible ambiguity, a combination of
  400. the second 'build_scheme' list item and the 'build_file' name. For
  401. example, if 'build_file' is set to "Makefile", the template could be
  402. Configurations/Makefile.tmpl or Configurations/unix-Makefile.tmpl.
  403. In case both Configurations/unix-Makefile.tmpl and
  404. Configurations/Makefile.tmpl are present, the former takes
  405. precedence.
  406. The build-file template is processed with the perl module
  407. Text::Template, using "{-" and "-}" as delimiters that enclose the
  408. perl code fragments that generate configuration-dependent content.
  409. Those perl fragments have access to all the hash variables from
  410. configdata.pem.
  411. The build-file template is expected to define at least the following
  412. perl functions in a perl code fragment enclosed with "{-" and "-}".
  413. They are all expected to return a string with the lines they produce.
  414. generatesrc - function that produces build file lines to generate
  415. a source file from some input.
  416. It's called like this:
  417. generatesrc(src => "PATH/TO/tobegenerated",
  418. generator => [ "generatingfile", ... ]
  419. generator_incs => [ "INCL/PATH", ... ]
  420. generator_deps => [ "dep1", ... ]
  421. generator => [ "generatingfile", ... ]
  422. incs => [ "INCL/PATH", ... ],
  423. deps => [ "dep1", ... ],
  424. intent => one of "libs", "dso", "bin" );
  425. 'src' has the name of the file to be generated.
  426. 'generator' is the command or part of command to
  427. generate the file, of which the first item is
  428. expected to be the file to generate from.
  429. generatesrc() is expected to analyse and figure out
  430. exactly how to apply that file and how to capture
  431. the result. 'generator_incs' and 'generator_deps'
  432. are include directories and files that the generator
  433. file itself depends on. 'incs' and 'deps' are
  434. include directories and files that are used if $(CC)
  435. is used as an intermediary step when generating the
  436. end product (the file indicated by 'src'). 'intent'
  437. indicates what the generated file is going to be
  438. used for.
  439. src2obj - function that produces build file lines to build an
  440. object file from source files and associated data.
  441. It's called like this:
  442. src2obj(obj => "PATH/TO/objectfile",
  443. srcs => [ "PATH/TO/sourcefile", ... ],
  444. deps => [ "dep1", ... ],
  445. incs => [ "INCL/PATH", ... ]
  446. intent => one of "lib", "dso", "bin" );
  447. 'obj' has the intended object file with '.o'
  448. extension, src2obj() is expected to change it to
  449. something more suitable for the platform.
  450. 'srcs' has the list of source files to build the
  451. object file, with the first item being the source
  452. file that directly corresponds to the object file.
  453. 'deps' is a list of explicit dependencies. 'incs'
  454. is a list of include file directories. Finally,
  455. 'intent' indicates what this object file is going
  456. to be used for.
  457. obj2lib - function that produces build file lines to build a
  458. static library file ("libfoo.a" in Unix terms) from
  459. object files.
  460. called like this:
  461. obj2lib(lib => "PATH/TO/libfile",
  462. objs => [ "PATH/TO/objectfile", ... ]);
  463. 'lib' has the intended library file name *without*
  464. extension, obj2lib is expected to add that. 'objs'
  465. has the list of object files to build this library.
  466. libobj2shlib - backward compatibility function that's used the
  467. same way as obj2shlib (described next), and was
  468. expected to build the shared library from the
  469. corresponding static library when that was suitable.
  470. NOTE: building a shared library from a static
  471. library is now DEPRECATED, as they no longer share
  472. object files. Attempting to do this will fail.
  473. obj2shlib - function that produces build file lines to build a
  474. shareable object library file ("libfoo.so" in Unix
  475. terms) from the corresponding object files.
  476. called like this:
  477. obj2shlib(shlib => "PATH/TO/shlibfile",
  478. lib => "PATH/TO/libfile",
  479. objs => [ "PATH/TO/objectfile", ... ],
  480. deps => [ "PATH/TO/otherlibfile", ... ]);
  481. 'lib' has the base (static) library ffile name
  482. *without* extension. This is useful in case
  483. supporting files are needed (such as import
  484. libraries on Windows).
  485. 'shlib' has the corresponding shared library name
  486. *without* extension. 'deps' has the list of other
  487. libraries (also *without* extension) this library
  488. needs to be linked with. 'objs' has the list of
  489. object files to build this library.
  490. obj2dso - function that produces build file lines to build a
  491. dynamic shared object file from object files.
  492. called like this:
  493. obj2dso(lib => "PATH/TO/libfile",
  494. objs => [ "PATH/TO/objectfile", ... ],
  495. deps => [ "PATH/TO/otherlibfile",
  496. ... ]);
  497. This is almost the same as obj2shlib, but the
  498. intent is to build a shareable library that can be
  499. loaded in runtime (a "plugin"...).
  500. obj2bin - function that produces build file lines to build an
  501. executable file from object files.
  502. called like this:
  503. obj2bin(bin => "PATH/TO/binfile",
  504. objs => [ "PATH/TO/objectfile", ... ],
  505. deps => [ "PATH/TO/libfile", ... ]);
  506. 'bin' has the intended executable file name
  507. *without* extension, obj2bin is expected to add
  508. that. 'objs' has the list of object files to build
  509. this library. 'deps' has the list of library files
  510. (also *without* extension) that the programs needs
  511. to be linked with.
  512. in2script - function that produces build file lines to build a
  513. script file from some input.
  514. called like this:
  515. in2script(script => "PATH/TO/scriptfile",
  516. sources => [ "PATH/TO/infile", ... ]);
  517. 'script' has the intended script file name.
  518. 'sources' has the list of source files to build the
  519. resulting script from.
  520. In all cases, file file paths are relative to the build tree top, and
  521. the build file actions run with the build tree top as current working
  522. directory.
  523. Make sure to end the section with these functions with a string that
  524. you thing is appropriate for the resulting build file. If nothing
  525. else, end it like this:
  526. ""; # Make sure no lingering values end up in the Makefile
  527. -}
  528. Configure helper scripts
  529. ========================
  530. Configure uses helper scripts in this directory:
  531. Checker scripts
  532. ---------------
  533. These scripts are per platform family, to check the integrity of the
  534. tools used for configuration and building. The checker script used is
  535. either {build_platform}-{build_file}-checker.pm or
  536. {build_platform}-checker.pm, where {build_platform} is the second
  537. 'build_scheme' list element from the configuration target data, and
  538. {build_file} is 'build_file' from the same target data.
  539. If the check succeeds, the script is expected to end with a non-zero
  540. expression. If the check fails, the script can end with a zero, or
  541. with a `die`.