[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.4 Checking Run Time Behavior

Sometimes you need to find out how a system performs at run time, such as whether a given function has a certain capability or bug. If you can, make such checks when your program runs instead of when it is configured. You can check for things like the machine's endianness when your program initializes itself.

If you really need to test for a run-time behavior while configuring, you can write a test program to determine the result, and compile and run it using AC_TRY_RUN. Avoid running test programs if possible, because this prevents people from configuring your package for cross-compiling.

6.4.1 Running Test Programs  Running test programs
6.4.2 Guidelines for Test Programs  General rules for writing test programs
6.4.3 Test Functions  Avoiding pitfalls in test programs

This document was generated by Charlie & on October, 19 2001 using texi2html