configure.ac: set _GNU_SOURCE for older autoconf

Macro AC_USE_SYSTEM_EXTENSIONS is adding _GNU_SOURCE to CFLAGS
(actually DEFS but it end up in compilation flags) so we don't have to
do it in every file using GNU extensions.

The problem is this macro is only available since autoconf 2.60,
while RHEL5 have autoconf 2.59. Note that usually this is not an issue
since distribution tarball already contains stuff generated by autoconf.
This only hits then someone tries to build vzctl from git checkout.

The fix is to use older AC_GNU_SOURCE macro in case
AC_USE_SYSTEM_EXTENSIONS is not available.

While at it, remove #define _GNU_SOURCE from the source files since
those are no longer needed.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
5 files changed