--- libX11-1.2/acinclude.m4.orig 2009-05-29 16:45:39.000000000 -0300 +++ libX11-1.2/acinclude.m4 2009-05-29 18:29:56.000000000 -0300 @@ -213,10 +213,16 @@ if $modeok && $tagok ; then . ${top_builddir_slash}doltcompile "${args@<:@@@:>@}" else - exec ${top_builddir_slash}libtool "$[]@" -fi __DOLTLIBTOOL__EOF__ +maybe_hyphen= +if ! test x$host_alias = x; then + maybe_hyphen="-" +fi + +echo ' exec ${top_builddir_slash}'${host_alias}${maybe_hyphen}'libtool "$[]@"' >>doltlibtool +echo 'fi' >>doltlibtool + dnl Done writing out doltlibtool; substitute it for libtool. chmod +x doltlibtool LIBTOOL='$(top_builddir)/doltlibtool'