Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
|
| Lars> Find out why the configure script is not doing the right thing
| Lars> in your case.
|
| The configure script does not fail if there is no prototype in
| headers. I have found an autoconf macro which is as follows:
|
| AC_DEFUN([AC_FUNC_SNPRINTF],
| [AC_CACHE_CHECK(for working snprintf, ac_cv_func_snprintf,
| [AC_TRY_RUN([#include <stdio.h>
| int main () { exit (!(3 <= snprintf(NULL,0,"%d",100))); }
| ], ac_cv_func_snprintf=yes, ac_cv_func_snprintf=no,
| ac_cv_func_snprintf=no)])
| if test $ac_cv_func_snprintf = yes; then
| AC_DEFINE(HAVE_SNPRINTF)
| fi
| ])
|
| We could maybe just take this one or one which just does the link
| part.
Perhaps.
| Lars> Perhaps some thing changes in the environment inside/outside
| Lars> configure...
|
| What I do not understand in the code you added for that, Lars, is that
| snprintf.o is always linked in. Am I wrong assuming that we never use
| the system-provided version?
I belive we use the system provided one if it exists.
Lgb