>>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:

Lars> You are so dependwards to Alexandre...  You need to become more
Lars> independwards...

Hm, let's say that the idea is interesting, but not RMS compatible :)


Akim> : Actually, why do you want stdin at all, we lived so long
Akim> without...

Lars> I have[...]  Choosing between supporting stdin/stdout and making
Lars> config.status inputwards $builddir-aware, I chose to go for the
Lars> first solution.

I still think some day config.status should be granted a
$builddir-award ;)

Look at what Zsh guys are doing:

configure:

| dnl The standard config.status is missing some essential features.
| dnl So add them now.  See the comment at the end of Src/mkmakemod.sh.
| [rm -f $CONFIG_STATUS.old
| cp $CONFIG_STATUS $CONFIG_STATUS.old
| sed '1,$s@^\( *ac_file_inputs=\).*$@\1`echo $ac_file_in | sed -e "s%^%:%" -e 
|"s%:\\([^!]\\)% $ac_given_srcdir/\\1%g" -e "s%:!% %"`@' \
|  $CONFIG_STATUS.old >$CONFIG_STATUS
|  rm -f $CONFIG_STATUS.old]

Src/mkmakemod.sh:

| if $second_stage; then
| 
|     trap "rm -f $the_subdir/${the_makefile}" 1 2 15
| 
|     # The standard config.status requires the pathname for the .in file to
|     # be relative to the top of the source tree.  As we have it in the build
|     # tree, this is a problem.  zsh's configure script edits config.status,
|     # adding the feature that an input filename starting with "!" has the
|     # "!" removed and is not mangled further.
|     CONFIG_FILES=$the_subdir/${the_makefile}:\!$the_subdir/${the_makefile}.in 
|CONFIG_HEADERS= ./config.status
| 
| fi

Their syntax is not too bad: files to be found in builddir are tagged
with a leading !.

        Akim

Reply via email to