1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/tests
Derrell Lipman 3a9a3ad8f9 r22731: - Fix bug #4594.
configure.in determines if -Werror-implicit-function-declaration is
  available, and if so it enables that flag if --enable-developer is
  specified.  Since the configure tests themselves did not use that flag, it
  was possible for a configure test to succeed, followed by a failed
  compilation due to a facility being available but not having a proper
  declaration in a header file.  (This bit me with readahead().)  This patch
  ensures that if implicit function declarations will kill the build, the
  feature being tested is deselected so the build will succeed.

  The autoconf manual suggests using return instead of exit in configure
  tests because the declaration for exit is often missing.  We require this
  now, since we error if prototypes are missing.  See section 5.5.1 of
  http://www.gnu.org/software/autoconf/manual/autoconf.html.  This patch makes
  these changes, because in fact, an external declaration for exit is missing
  here (and likely elsewhere).

  I've verified that the features selected (here) with the original
  configure.in and the new one are the same except for, in my case,
  readahead.  I've also confirmed that the generated Makefile is identical.

  These changes are not being applied to the 3.0.26 branch because it does not
  exhibit the initial problem this patch is supposed to solve since it doesn't
  attempt to use -Werror-implicit-function-declaration.
(This used to be commit 4d42720915)
2007-10-10 12:21:51 -05:00
..
crypttest.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
fcntl_lock64.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
fcntl_lock.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
ftruncate.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
getgroups.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
README merge from the autoconf2 branch to the main branch 1998-07-29 03:08:05 +00:00
shared_mmap.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
shlib.c r6586: get rid of a few more compiler warnings 2007-10-10 10:56:46 -05:00
summary.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
sysquotas.c r6586: get rid of a few more compiler warnings 2007-10-10 10:56:46 -05:00
trivial.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00
unixsock.c r22731: - Fix bug #4594. 2007-10-10 12:21:51 -05:00

This directory contains autoconf test programs that are too large to
comfortably fit in configure.in.

These programs should test one feature of the OS and exit(0) if it
works or exit(1) if it doesn't work (do _not_ use return)

The programs should be kept simple and to the point. Beautiful/fast
code is not necessary