xfstests: Incorrect check for gdbm/ndbm.h
authorStanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Mon, 14 Oct 2013 15:01:39 +0000 (15:01 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 16 Oct 2013 20:20:35 +0000 (15:20 -0500)
commitf1d5892e2883cf5df34d455b7beb7003f6e315e0
tree3cac3df6f89fe3d20016aa2a8a1eaaea5128dad6
parentcd7eb340dd2eded93f41bc096954017e2f9fa58d
xfstests: Incorrect check for gdbm/ndbm.h

Current version of AC_PACKAGE_WANT_NDBM has following bugs:
* a typo (',') next to 'gdbm/ndbm.h', so C compiler fails
  with a syntax error when trying to compile
  "#include <gdbm/ndbm.h,>"

* autoconf never defines HAVE_GDBM_NDBM_H_ because it
  converts both header names (gdbm/ndbm.h, gdbm-ndbm.h)
  to GDBM_NDBM_H

Because of these bugs 'dbtest' can't be compiled on systems where
'gdbm-ndbm.h' header is absent but 'gdbm/ndbm.h' is present.

Fixed this.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
m4/package_gdbmdev.m4