marekandreas / elpa

A scalable eigensolver for dense, symmetric (hermitian) matrices (fork of https://gitlab.mpcdf.mpg.de/elpa/elpa.git)
Other
27 stars 13 forks source link

configure.ac: Use a function prototype for _ linkage probing #27

Closed fweimer-rh closed 1 year ago

fweimer-rh commented 1 year ago

The prototype chosen (char return type, no arguments) follows the usual autoconf approach for link tests. This is why compilers are likely to continue to support this construct even if there is a mismatch in types.

Future compilers are likely to reject implicit function declarations, and the checks will always fail with such compilers. (Implicit function declarations were removed from C in 1999.)

Related to: