configure 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. #!/bin/sh
  2. usage () {
  3. cat <<EOF
  4. Usage: $0 [OPTION]... [VAR=VALUE]... [TARGET]
  5. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  6. VAR=VALUE. See below for descriptions of some of the useful variables.
  7. Defaults for the options are specified in brackets.
  8. Installation directories:
  9. --prefix=PREFIX main installation prefix [/usr/local/musl]
  10. --exec-prefix=EPREFIX installation prefix for executable files [PREFIX]
  11. Fine tuning of the installation directories:
  12. --bindir=DIR user executables [EPREFIX/bin]
  13. --libdir=DIR library files for the linker [PREFIX/lib]
  14. --includedir=DIR include files for the C compiler [PREFIX/include]
  15. --syslibdir=DIR location for the dynamic linker [/lib]
  16. System types:
  17. --target=TARGET configure to run on target TARGET [detected]
  18. --host=HOST same as --target
  19. Optional features:
  20. --enable-optimize=... optimize listed components for speed over size [auto]
  21. --enable-debug build with debugging information [disabled]
  22. --enable-warnings build with recommended warnings flags [disabled]
  23. --enable-gcc-wrapper build musl-gcc toolchain wrapper [auto]
  24. --disable-shared inhibit building shared library [enabled]
  25. --disable-static inhibit building static library [enabled]
  26. Some influential environment variables:
  27. CC C compiler command [detected]
  28. CFLAGS C compiler flags [-Os -pipe ...]
  29. CROSS_COMPILE prefix for cross compiler and tools [none]
  30. LIBCC compiler runtime library [detected]
  31. Use these variables to override the choices made by configure.
  32. EOF
  33. exit 0
  34. }
  35. # Helper functions
  36. quote () {
  37. tr '\n' ' ' <<EOF | grep '^[-[:alnum:]_=,./:]* $' >/dev/null 2>&1 && { echo "$1" ; return 0 ; }
  38. $1
  39. EOF
  40. printf %s\\n "$1" | sed -e "s/'/'\\\\''/g" -e "1s/^/'/" -e "\$s/\$/'/" -e "s#^'\([-[:alnum:]_,./:]*\)=\(.*\)\$#\1='\2#"
  41. }
  42. echo () { printf "%s\n" "$*" ; }
  43. fail () { echo "$*" ; exit 1 ; }
  44. fnmatch () { eval "case \"\$2\" in $1) return 0 ;; *) return 1 ;; esac" ; }
  45. cmdexists () { type "$1" >/dev/null 2>&1 ; }
  46. trycc () { test -z "$CC" && cmdexists "$1" && CC=$1 ; }
  47. stripdir () {
  48. while eval "fnmatch '*/' \"\${$1}\"" ; do eval "$1=\${$1%/}" ; done
  49. }
  50. trycppif () {
  51. printf "checking preprocessor condition %s... " "$1"
  52. echo "typedef int x;" > "$tmpc"
  53. echo "#if $1" >> "$tmpc"
  54. echo "#error yes" >> "$tmpc"
  55. echo "#endif" >> "$tmpc"
  56. if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
  57. printf "false\n"
  58. return 1
  59. else
  60. printf "true\n"
  61. return 0
  62. fi
  63. }
  64. tryflag () {
  65. printf "checking whether compiler accepts %s... " "$2"
  66. echo "typedef int x;" > "$tmpc"
  67. if $CC "$2" -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
  68. printf "yes\n"
  69. eval "$1=\"\${$1} \$2\""
  70. eval "$1=\${$1# }"
  71. return 0
  72. else
  73. printf "no\n"
  74. return 1
  75. fi
  76. }
  77. tryldflag () {
  78. printf "checking whether linker accepts %s... " "$2"
  79. echo "typedef int x;" > "$tmpc"
  80. if $CC -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
  81. printf "yes\n"
  82. eval "$1=\"\${$1} \$2\""
  83. eval "$1=\${$1# }"
  84. return 0
  85. else
  86. printf "no\n"
  87. return 1
  88. fi
  89. }
  90. # Beginning of actual script
  91. CFLAGS_C99FSE=
  92. CFLAGS_AUTO=
  93. CFLAGS_MEMOPS=
  94. CFLAGS_NOSSP=
  95. LDFLAGS_AUTO=
  96. OPTIMIZE_GLOBS=
  97. prefix=/usr/local/musl
  98. exec_prefix='$(prefix)'
  99. bindir='$(exec_prefix)/bin'
  100. libdir='$(prefix)/lib'
  101. includedir='$(prefix)/include'
  102. syslibdir='/lib'
  103. target=
  104. optimize=auto
  105. debug=no
  106. warnings=no
  107. shared=auto
  108. static=yes
  109. wrapper=auto
  110. for arg ; do
  111. case "$arg" in
  112. --help) usage ;;
  113. --prefix=*) prefix=${arg#*=} ;;
  114. --exec-prefix=*) exec_prefix=${arg#*=} ;;
  115. --bindir=*) bindir=${arg#*=} ;;
  116. --libdir=*) libdir=${arg#*=} ;;
  117. --includedir=*) includedir=${arg#*=} ;;
  118. --syslibdir=*) syslibdir=${arg#*=} ;;
  119. --enable-shared|--enable-shared=yes) shared=yes ;;
  120. --disable-shared|--enable-shared=no) shared=no ;;
  121. --enable-static|--enable-static=yes) static=yes ;;
  122. --disable-static|--enable-static=no) static=no ;;
  123. --enable-optimize) optimize=yes ;;
  124. --enable-optimize=*) optimize=${arg#*=} ;;
  125. --disable-optimize) optimize=no ;;
  126. --enable-debug|--enable-debug=yes) debug=yes ;;
  127. --disable-debug|--enable-debug=no) debug=no ;;
  128. --enable-warnings|--enable-warnings=yes) warnings=yes ;;
  129. --disable-warnings|--enable-warnings=no) warnings=no ;;
  130. --enable-gcc-wrapper|--enable-gcc-wrapper=yes) wrapper=yes ;;
  131. --disable-gcc-wrapper|--enable-gcc-wrapper=no) wrapper=no ;;
  132. --enable-*|--disable-*|--with-*|--without-*|--*dir=*|--build=*) ;;
  133. --host=*|--target=*) target=${arg#*=} ;;
  134. -* ) echo "$0: unknown option $arg" ;;
  135. CC=*) CC=${arg#*=} ;;
  136. CFLAGS=*) CFLAGS=${arg#*=} ;;
  137. CPPFLAGS=*) CPPFLAGS=${arg#*=} ;;
  138. LDFLAGS=*) LDFLAGS=${arg#*=} ;;
  139. CROSS_COMPILE=*) CROSS_COMPILE=${arg#*=} ;;
  140. LIBCC=*) LIBCC=${arg#*=} ;;
  141. *=*) ;;
  142. *) target=$arg ;;
  143. esac
  144. done
  145. for i in prefix exec_prefix bindir libdir includedir syslibdir ; do
  146. stripdir $i
  147. done
  148. #
  149. # Get a temp filename we can use
  150. #
  151. i=0
  152. set -C
  153. while : ; do i=$(($i+1))
  154. tmpc="./conf$$-$PPID-$i.c"
  155. 2>|/dev/null > "$tmpc" && break
  156. test "$i" -gt 50 && fail "$0: cannot create temporary file $tmpc"
  157. done
  158. set +C
  159. trap 'rm "$tmpc"' EXIT INT QUIT TERM HUP
  160. #
  161. # Find a C compiler to use
  162. #
  163. printf "checking for C compiler... "
  164. trycc ${CROSS_COMPILE}gcc
  165. trycc ${CROSS_COMPILE}c99
  166. trycc ${CROSS_COMPILE}cc
  167. printf "%s\n" "$CC"
  168. test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; }
  169. printf "checking whether C compiler works... "
  170. echo "typedef int x;" > "$tmpc"
  171. if output=$($CC $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" 2>&1) ; then
  172. printf "yes\n"
  173. else
  174. printf "no; compiler output follows:\n%s\n" "$output"
  175. exit 1
  176. fi
  177. #
  178. # Need to know if the compiler is gcc to decide whether to build the
  179. # musl-gcc wrapper, and for critical bug detection in some gcc versions.
  180. #
  181. printf "checking whether compiler is gcc... "
  182. if fnmatch '*gcc\ version*' "$(LC_ALL=C $CC -v 2>&1)" ; then
  183. cc_is_gcc=yes
  184. else
  185. cc_is_gcc=no
  186. fi
  187. echo "$cc_is_gcc"
  188. #
  189. # Only build musl-gcc wrapper if toolchain does not already target musl
  190. #
  191. if test "$wrapper" = auto ; then
  192. printf "checking whether to build musl-gcc wrapper... "
  193. if test "$cc_is_gcc" = yes ; then
  194. wrapper=yes
  195. while read line ; do
  196. case "$line" in */ld-musl-*) wrapper=no ;; esac
  197. done <<EOF
  198. $($CC -dumpspecs)
  199. EOF
  200. else
  201. wrapper=no
  202. fi
  203. echo "$wrapper"
  204. fi
  205. #
  206. # Find the target architecture
  207. #
  208. printf "checking target system type... "
  209. test -n "$target" || target=$($CC -dumpmachine 2>/dev/null) || target=unknown
  210. printf "%s\n" "$target"
  211. #
  212. # Convert to just ARCH
  213. #
  214. case "$target" in
  215. # Catch these early to simplify matching for 32-bit archs
  216. mips64*|powerpc64*) fail "$0: unsupported target \"$target\"" ;;
  217. arm*) ARCH=arm ;;
  218. aarch64*) ARCH=aarch64 ;;
  219. i?86*) ARCH=i386 ;;
  220. x86_64-x32*|x32*|x86_64*x32) ARCH=x32 ;;
  221. x86_64*) ARCH=x86_64 ;;
  222. mips*) ARCH=mips ;;
  223. microblaze*) ARCH=microblaze ;;
  224. or1k*) ARCH=or1k ;;
  225. powerpc*) ARCH=powerpc ;;
  226. sh[1-9bel-]*|sh|superh*) ARCH=sh ;;
  227. unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;;
  228. *) fail "$0: unknown or unsupported target \"$target\"" ;;
  229. esac
  230. #
  231. # Try to get a conforming C99 freestanding environment
  232. #
  233. tryflag CFLAGS_C99FSE -std=c99
  234. tryflag CFLAGS_C99FSE -nostdinc
  235. tryflag CFLAGS_C99FSE -ffreestanding \
  236. || tryflag CFLAGS_C99FSE -fno-builtin
  237. tryflag CFLAGS_C99FSE -fexcess-precision=standard \
  238. || { test "$ARCH" = i386 && tryflag CFLAGS_C99FSE -ffloat-store ; }
  239. tryflag CFLAGS_C99FSE -frounding-math
  240. #
  241. # We may use the may_alias attribute if __GNUC__ is defined, so
  242. # if the compiler defines __GNUC__ but does not provide it,
  243. # it must be defined away as part of the CFLAGS.
  244. #
  245. printf "checking whether compiler needs attribute((may_alias)) suppression... "
  246. cat > "$tmpc" <<EOF
  247. typedef int
  248. #ifdef __GNUC__
  249. __attribute__((__may_alias__))
  250. #endif
  251. x;
  252. EOF
  253. if $CC $CFLAGS_C99FSE -I./arch/$ARCH -I./include $CPPFLAGS $CFLAGS \
  254. -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
  255. printf "no\n"
  256. else
  257. printf "yes\n"
  258. CFLAGS_C99FSE="$CFLAGS_C99FSE -D__may_alias__="
  259. fi
  260. #
  261. # Check for options to disable stack protector, which needs to be
  262. # disabled for a few early-bootstrap translation units. If not found,
  263. # this is not an error; we assume the toolchain does not do ssp.
  264. #
  265. tryflag CFLAGS_NOSSP -fno-stack-protector
  266. #
  267. # Check for options that may be needed to prevent the compiler from
  268. # generating self-referential versions of memcpy,, memmove, memcmp,
  269. # and memset. Really, we should add a check to determine if this
  270. # option is sufficient, and if not, add a macro to cripple these
  271. # functions with volatile...
  272. #
  273. tryflag CFLAGS_MEMOPS -fno-tree-loop-distribute-patterns
  274. #
  275. # Enable debugging if requessted.
  276. #
  277. test "$debug" = yes && CFLAGS_AUTO=-g
  278. #
  279. # Possibly add a -O option to CFLAGS and select modules to optimize with
  280. # -O3 based on the status of --enable-optimize and provided CFLAGS.
  281. #
  282. printf "checking for optimization settings... "
  283. case "x$optimize" in
  284. xauto)
  285. if fnmatch '-O*|*\ -O*' "$CFLAGS_AUTO $CFLAGS" ; then
  286. printf "using provided CFLAGS\n" ;optimize=no
  287. else
  288. printf "using defaults\n" ; optimize=yes
  289. fi
  290. ;;
  291. xsize|xnone) printf "minimize size\n" ; optimize=size ;;
  292. xno|x) printf "disabled\n" ; optimize=no ;;
  293. *) printf "custom\n" ;;
  294. esac
  295. test "$optimize" = no || tryflag CFLAGS_AUTO -Os || tryflag CFLAGS_AUTO -O2
  296. test "$optimize" = yes && optimize="internal,malloc,string"
  297. if fnmatch 'no|size' "$optimize" ; then :
  298. else
  299. printf "components to be optimized for speed:"
  300. while test "$optimize" ; do
  301. case "$optimize" in
  302. *,*) this=${optimize%%,*} optimize=${optimize#*,} ;;
  303. *) this=$optimize optimize=
  304. esac
  305. printf " $this"
  306. case "$this" in
  307. */*.c) ;;
  308. */*) this=$this*.c ;;
  309. *) this=$this/*.c ;;
  310. esac
  311. OPTIMIZE_GLOBS="$OPTIMIZE_GLOBS $this"
  312. done
  313. OPTIMIZE_GLOBS=${OPTIMIZE_GLOBS# }
  314. printf "\n"
  315. fi
  316. # Always try -pipe
  317. tryflag CFLAGS_AUTO -pipe
  318. #
  319. # If debugging is disabled, omit frame pointer. Modern GCC does this
  320. # anyway on most archs even when debugging is enabled since the frame
  321. # pointer is no longer needed for debugging.
  322. #
  323. if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" ; then :
  324. else
  325. tryflag CFLAGS_AUTO -fomit-frame-pointer
  326. fi
  327. #
  328. # Modern GCC wants to put DWARF tables (used for debugging and
  329. # unwinding) in the loaded part of the program where they are
  330. # unstrippable. These options force them back to debug sections (and
  331. # cause them not to get generated at all if debugging is off).
  332. #
  333. tryflag CFLAGS_AUTO -fno-unwind-tables
  334. tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
  335. #
  336. # The GNU toolchain defaults to assuming unmarked files need an
  337. # executable stack, potentially exposing vulnerabilities in programs
  338. # linked with such object files. Fix this.
  339. #
  340. tryflag CFLAGS_AUTO -Wa,--noexecstack
  341. #
  342. # On x86, make sure we don't have incompatible instruction set
  343. # extensions enabled by default. This is bad for making static binaries.
  344. # We cheat and use i486 rather than i386 because i386 really does not
  345. # work anyway (issues with atomic ops).
  346. #
  347. if test "$ARCH" = "i386" ; then
  348. fnmatch '-march=*|*\ -march=*' "$CFLAGS" || tryldflag CFLAGS_AUTO -march=i486
  349. fnmatch '-mtune=*|*\ -mtune=*' "$CFLAGS" || tryldflag CFLAGS_AUTO -mtune=generic
  350. fi
  351. #
  352. # Even with -std=c99, gcc accepts some constructs which are constraint
  353. # violations. We want to treat these as errors regardless of whether
  354. # other purely stylistic warnings are enabled -- especially implicit
  355. # function declarations, which are a dangerous programming error.
  356. #
  357. tryflag CFLAGS_AUTO -Werror=implicit-function-declaration
  358. tryflag CFLAGS_AUTO -Werror=implicit-int
  359. tryflag CFLAGS_AUTO -Werror=pointer-sign
  360. tryflag CFLAGS_AUTO -Werror=pointer-arith
  361. if test "x$warnings" = xyes ; then
  362. tryflag CFLAGS_AUTO -Wall
  363. tryflag CFLAGS_AUTO -Wno-parentheses
  364. tryflag CFLAGS_AUTO -Wno-uninitialized
  365. tryflag CFLAGS_AUTO -Wno-missing-braces
  366. tryflag CFLAGS_AUTO -Wno-unused-value
  367. tryflag CFLAGS_AUTO -Wno-unused-but-set-variable
  368. tryflag CFLAGS_AUTO -Wno-unknown-pragmas
  369. tryflag CFLAGS_AUTO -Wno-pointer-to-int-cast
  370. fi
  371. # Some patched GCC builds have these defaults messed up...
  372. tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
  373. test "$shared" = "no" || {
  374. # Disable dynamic linking if ld is broken and can't do -Bsymbolic-functions
  375. LDFLAGS_DUMMY=
  376. tryldflag LDFLAGS_DUMMY -Wl,-Bsymbolic-functions || {
  377. test "$shared" = "yes" && fail "$0: error: linker cannot build shared library"
  378. printf "warning: disabling dynamic linking support\n"
  379. shared=no
  380. }
  381. }
  382. # Find compiler runtime library
  383. test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh
  384. test -z "$LIBCC" && tryldflag LIBCC -lcompiler_rt
  385. test -z "$LIBCC" && try_libcc=`$CC -print-file-name=libpcc.a 2>/dev/null` \
  386. && tryldflag LIBCC "$try_libcc"
  387. printf "using compiler runtime libraries: %s\n" "$LIBCC"
  388. # Figure out arch variants for archs with variants
  389. SUBARCH=
  390. t="$CFLAGS_C99FSE $CPPFLAGS $CFLAGS_AUTO $CFLAGS"
  391. if test "$ARCH" = "x86_64" ; then
  392. trycppif __ILP32__ "$t" && ARCH=x32
  393. fi
  394. if test "$ARCH" = "arm" ; then
  395. trycppif __ARMEB__ "$t" && SUBARCH=${SUBARCH}eb
  396. trycppif __ARM_PCS_VFP "$t" && SUBARCH=${SUBARCH}hf
  397. fi
  398. if test "$ARCH" = "aarch64" ; then
  399. trycppif __AARCH64EB__ "$t" && SUBARCH=${SUBARCH}_be
  400. fi
  401. if test "$ARCH" = "mips" ; then
  402. trycppif "_MIPSEL || __MIPSEL || __MIPSEL__" "$t" && SUBARCH=${SUBARCH}el
  403. trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf
  404. fi
  405. test "$ARCH" = "microblaze" && trycppif __MICROBLAZEEL__ "$t" \
  406. && SUBARCH=${SUBARCH}el
  407. if test "$ARCH" = "sh" ; then
  408. trycppif __BIG_ENDIAN__ "$t" && SUBARCH=${SUBARCH}eb
  409. if trycppif "__SH_FPU_ANY__ || __SH4__" "$t" ; then
  410. # Some sh configurations are broken and replace double with float
  411. # rather than using softfloat when the fpu is present but only
  412. # supports single precision. Reject them.
  413. printf "checking whether compiler's double type is IEEE double... "
  414. echo 'typedef char dblcheck[(int)sizeof(double)-5];' > "$tmpc"
  415. if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
  416. printf "yes\n"
  417. else
  418. printf "no\n"
  419. fail "$0: error: compiler's floating point configuration is unsupported"
  420. fi
  421. else
  422. SUBARCH=${SUBARCH}-nofpu
  423. fi
  424. fi
  425. test "$SUBARCH" \
  426. && printf "configured for %s variant: %s\n" "$ARCH" "$ARCH$SUBARCH"
  427. case "$ARCH$SUBARCH" in
  428. arm) ASMSUBARCH=el ;;
  429. *) ASMSUBARCH=$SUBARCH ;;
  430. esac
  431. #
  432. # Some archs (powerpc) have different possible long double formats
  433. # that the compiler can be configured for. The logic for whether this
  434. # is supported is in bits/float.h; in general, it is not. We need to
  435. # check for mismatches here or code in printf, strotd, and scanf will
  436. # be dangerously incorrect because it depends on (1) the macros being
  437. # correct, and (2) IEEE semantics.
  438. #
  439. printf "checking whether compiler's long double definition matches float.h... "
  440. echo '#include <float.h>' > "$tmpc"
  441. echo '#if LDBL_MANT_DIG == 53' >> "$tmpc"
  442. echo 'typedef char ldcheck[9-(int)sizeof(long double)];' >> "$tmpc"
  443. echo '#endif' >> "$tmpc"
  444. if $CC $CFLAGS_C99FSE -I./arch/$ARCH -I./include $CPPFLAGS $CFLAGS \
  445. -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
  446. printf "yes\n"
  447. else
  448. printf "no\n"
  449. fail "$0: error: unsupported long double type"
  450. fi
  451. printf "creating config.mak... "
  452. cmdline=$(quote "$0")
  453. for i ; do cmdline="$cmdline $(quote "$i")" ; done
  454. exec 3>&1 1>config.mak
  455. cat << EOF
  456. # This version of config.mak was generated by:
  457. # $cmdline
  458. # Any changes made here will be lost if configure is re-run
  459. ARCH = $ARCH
  460. SUBARCH = $SUBARCH
  461. ASMSUBARCH = $ASMSUBARCH
  462. prefix = $prefix
  463. exec_prefix = $exec_prefix
  464. bindir = $bindir
  465. libdir = $libdir
  466. includedir = $includedir
  467. syslibdir = $syslibdir
  468. CC = $CC
  469. CFLAGS = $CFLAGS_AUTO $CFLAGS
  470. CFLAGS_C99FSE = $CFLAGS_C99FSE
  471. CFLAGS_MEMOPS = $CFLAGS_MEMOPS
  472. CFLAGS_NOSSP = $CFLAGS_NOSSP
  473. CPPFLAGS = $CPPFLAGS
  474. LDFLAGS = $LDFLAGS_AUTO $LDFLAGS
  475. CROSS_COMPILE = $CROSS_COMPILE
  476. LIBCC = $LIBCC
  477. OPTIMIZE_GLOBS = $OPTIMIZE_GLOBS
  478. EOF
  479. test "x$static" = xno && echo "STATIC_LIBS ="
  480. test "x$shared" = xno && echo "SHARED_LIBS ="
  481. test "x$wrapper" = xno && echo "ALL_TOOLS ="
  482. test "x$wrapper" = xno && echo "TOOL_LIBS ="
  483. exec 1>&3 3>&-
  484. printf "done\n"