autoconf (configure) clobbers conftest.py - fix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

pytest, a popular Python testing tool/framework, uses files named
conftest.py for its configuration. OTOH many autoconf macros run
"rm -f conftest*", clobbering conftest.py in the directory where
./configure lives. In our case at least, it's the topmost directory.

I tried naive things such as setting up a trap to restore conftest.py
from a backup copy on EXIT (and other signals) in configure.ac, using AC_CONFIG_FILES to
restore it from a backup copy, but apparently there are more "rm -f conftest*"
which still succeed to delete it.

How this be helped, short of running ./configure in a wrapper which
would restore the file after ./configure is run?

Thanks,
Dima

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux