* acinclude.m4 (AC_SHORT_D_NAME_LEN): Fix compiler warnings in
the test code. * configure.in: Fix compiler warnings in the arguments to AC_TRY_WARNINGS. Fix value of NEED_CRYPT_PROTOTYPE - add spaces around `=' in the `test' command.
Этот коммит содержится в:
родитель
c2f8f8d935
Коммит
b33943d789
@ -1,3 +1,11 @@
|
||||
2001-06-13 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* acinclude.m4 (AC_SHORT_D_NAME_LEN): Fix compiler warnings in
|
||||
the test code.
|
||||
* configure.in: Fix compiler warnings in the arguments to
|
||||
AC_TRY_WARNINGS. Fix value of NEED_CRYPT_PROTOTYPE - add spaces
|
||||
around `=' in the `test' command.
|
||||
|
||||
2001-06-07 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* doc-gnome/C/gmc.sgml: Remove index - it's not used in the
|
||||
|
@ -9,14 +9,14 @@ CFLAGS="$CFLAGS -I$srcdir"
|
||||
AC_TRY_RUN([
|
||||
#include <src/fs.h>
|
||||
|
||||
main ()
|
||||
int main ()
|
||||
{
|
||||
struct dirent ddd;
|
||||
|
||||
if (sizeof (ddd.d_name) < 12)
|
||||
exit (0);
|
||||
return 0;
|
||||
else
|
||||
exit (1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
],[
|
||||
|
10
configure.in
10
configure.in
@ -113,15 +113,19 @@ AC_SUBST(SHADOWLIB)
|
||||
|
||||
NEED_CRYPT_PROTOTYPE=yes
|
||||
if test x$ac_cv_header_crypt_h = xyes; then
|
||||
AC_TRY_WARNINGS([#include <crypt.h>], [char *p = crypt("xxx", "yyy");],[
|
||||
AC_TRY_WARNINGS([#include <crypt.h>], [char *p = crypt("xxx", "yyy");
|
||||
if (p)
|
||||
return 0;],[
|
||||
NEED_CRYPT_PROTOTYPE=no])
|
||||
else
|
||||
if test x$ac_cv_header_unistd_h = xyes; then
|
||||
AC_TRY_WARNINGS([#include <unistd.h>], [char *p = crypt("xxx", "yyy");],[
|
||||
AC_TRY_WARNINGS([#include <unistd.h>], [char *p = crypt("xxx", "yyy");
|
||||
if (p)
|
||||
return 0;],[
|
||||
NEED_CRYPT_PROTOTYPE=no])
|
||||
fi
|
||||
fi
|
||||
if test x$NEED_CRYPT_PROTOTYPE=xyes; then
|
||||
if test x$NEED_CRYPT_PROTOTYPE = xyes; then
|
||||
AC_DEFINE(NEED_CRYPT_PROTOTYPE)
|
||||
fi
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user