Discussion:
Autoheader2.69: mktmpdir ('ah')
Kevin Connor Arpe
2013-11-17 10:38:45 UTC
Permalink
Hello,

I encountered a strange scenario on Cygwin recently. I was trying to
build Subversion from sources. Their build tools smoke test for
Autoheader was failing because "autoheader --version" didn't work.

The root cause was that my TMPDIR was insane and did not exist. I
fully admit this was my problem, but I want to make it less painful
for others in the future. This took me a while to figure out and was
not obvious from the autoheader error message.

<code>
## -------------- ##
## Main program. ##
## -------------- ##

mktmpdir ('ah');
switch_warning 'obsolete';
parse_args;
</code>

Is there a reason to call mktmpdir ('ah') before switch_warning and parse_args?

Thanks,
Kevin Connor ARPE
Hongkong

Loading...