• Home
  • Raw
  • Download

Lines Matching +full:host +full:- +full:g

2 #    https://www.gnu.org/software/autoconf-archive/ax_enable_builddir.html
7 # AX_ENABLE_BUILDDIR [(dirstring-or-command [,Makefile.mk [,-all]])]
12 # configure-files into a subdir and let the configure steps continue
13 # there. We provide an option --disable-builddir to suppress the move into
18 # $1 = $host (overridden with $HOST)
20 # $3 = -all
25 # rule-targets, each extended with a default rule-execution that recurses
26 # into the build directory of the current "HOST". You can override the
27 # auto-detection through `config.guess` and build-time of course, as in
29 # make HOST=i386-mingw-cross
33 # configure --host=i386-mingw-cross
37 # in the srcdir toplevel makefile - these parts are read from the $2 =
41 # like '#### $host |$builddir' to recognize the place where to recurse
43 # targets have an additional "*-all" rule which makes the script to
44 # recurse into _all_ variants of the current HOST (!!) setting. The "-all"
54 # Copyright (c) 2009 Alan Jenkins <alan-jenkins@tuffmail.co.uk>
95 [--disable-builddir],[disable automatic build in subdir of sources])
99 if test -f config.status ; then
117 sed -e 's,^\./,,;s,[[^/]]$,&/,;s,[[^/]]*/,../,g;s,[[/]]$,,;'`
119 test -f $srcdir/config.log && mv $srcdir/config.log .
120 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
121 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
122 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
123 …AC_MSG_RESULT(....exec $SHELL $srcdir/[$]0 "--srcdir=$srcdir" "--enable-builddir=$SUB" ${1+"[$]@"})
126 eval $SHELL "'[$]0'" "'--srcdir=$srcdir'" "'--enable-builddir=$SUB'" $ac_configure_args ;;
127 …*) eval $SHELL "'$srcdir/[$]0'" "'--srcdir=$srcdir'" "'--enable-builddir=$SUB'" $ac_configure_args…
146 pushdef([_ALL],[ifelse([$3],,[-all],[$3])])dnl
149 if test -f "$TOP/Makefile" ; then
150 AC_MSG_NOTICE([skipping TOP/Makefile - left untouched])
152 AC_MSG_NOTICE([skipping TOP/Makefile - not created])
155 if test -f "$SRC/Makefile" ; then
159 if test -f "$SRC/Makefile" ; then
162 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
167 if test ! -f "$SRC/Makefile" ; then
182 s/\\(\\n\\) /\\1 /g
195 s/ / /g
196 s/ \\([[a-z]][[a-z-]]*[[a-zA-Z0-9]]\\)\\([[ :]]\\)/ \\1 \\1[]_ALL\\2/g
197 s/^\\([[a-z]][[a-z-]]*[[a-zA-Z0-9]]\\)\\([[ :]]\\)/\\1 \\1[]_ALL\\2/
198 s/ / /g
200 all-configured : all[]_ALL
201 dnl dist-all exists... and would make for dist-all-all
202 s/ [[a-zA-Z0-9-]]*[]_ALL [[a-zA-Z0-9-]]*[]_ALL[]_ALL//g
205 @ HOST="\$(HOST)\" \\\\\\
206 ; test ".\$\$HOST" = "." && HOST=$x sh $AUX/config.guess $x \\\\\\
207 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
208 ; use=$x basename "\$\@" _ALL $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
209 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
210 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
212 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
214 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
215 dnl special rule add-on: "dist" copies the tarball to $(PUB). (source tree)
217 @ HOST="\$(HOST)\" \\\\\\
218 ; test ".\$\$HOST" = "." && HOST=$x sh $AUX/config.guess $x \\\\\\
219 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
220 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
221 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
222 ; if test "\$\$found" -eq "0" ; then : \\\\\\
223 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
225 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
226 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
227 dnl special rule add-on: "dist-foo" copies all the archives to $(PUB). (source tree)
228 /dist-[[a-zA-Z0-9]]*[]_ALL *:/a\\
229 @ HOST="\$(HOST)\" \\\\\\
230 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
231 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
232 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
233 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
234 ; if test "\$\$found" -eq "0" ; then : \\\\\\
235 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
237 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
238 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
239 dnl special rule add-on: "distclean" removes all local builddirs completely
241 @ HOST="\$(HOST)\" \\\\\\
242 ; test ".\$\$HOST" = "." && HOST=$x sh $AUX/config.guess $x \\\\\\
243 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
244 ; use=$x basename "\$\@" _ALL $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
245 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
248 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
252 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
255 $SED -f $tmp/conftemp.sed Makefile >$SRC/Makefile
256 if test -f "$SRC/m4_ifval([$2],[$2],[END])" ; then
263 AC_MSG_NOTICE([buggy sed found - it deletes tab in "a" text parts])
264 $SED -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $SRC/Makefile \
266 (test -s $SRC/Makefile~ && mv $SRC/Makefile~ $SRC/Makefile) 2>/dev/null
272 $SED -f "$tmp/conftemp.sed" "$SRC/Makefile" >$tmp/mkfile.tmp
275 if cmp -s "$SRC/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
283 AC_MSG_NOTICE([build in $SUB (HOST=$ax_enable_builddir_host)])
295 ax_enable_builddir_host="$HOST" # $HOST / $host