Check whether we need to declare this; some libc5 systems define that
1999-02-10 Martin Baulig <martin@home-of-linux.org> * configure.in (program_invocation_name): Check whether we need to declare this; some libc5 systems define that symbol but do not declare it in any header file.
This commit is contained in:
committed by
Martin Baulig
parent
5b38a14a44
commit
411a1c8e84
@@ -1,3 +1,9 @@
|
|||||||
|
1999-02-10 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
|
* configure.in (program_invocation_name): Check whether we need
|
||||||
|
to declare this; some libc5 systems define that symbol but do
|
||||||
|
not declare it in any header file.
|
||||||
|
|
||||||
1999-02-10 Martin Baulig <martin@home-of-linux.org>
|
1999-02-10 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* libgtop.spec.in, libgtop.spec: Replaced libgtop.spec with
|
* libgtop.spec.in, libgtop.spec: Replaced libgtop.spec with
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
/* Define if getpagesize () must be declared. */
|
/* Define if getpagesize () must be declared. */
|
||||||
#undef NEED_DECLARATION_GETPAGESIZE
|
#undef NEED_DECLARATION_GETPAGESIZE
|
||||||
|
|
||||||
|
/* Define if program_invocation_name must be declared. */
|
||||||
|
#undef NEED_DECLARATION_PROGRAM_INVOCATION_NAME
|
||||||
|
|
||||||
@TOP@
|
@TOP@
|
||||||
|
|
||||||
#undef ENABLE_NLS
|
#undef ENABLE_NLS
|
||||||
|
|||||||
11
configure.in
11
configure.in
@@ -180,6 +180,17 @@ AC_CHECK_LIB(kvm, kvm_open)
|
|||||||
dnl For DEC OSF1
|
dnl For DEC OSF1
|
||||||
AC_CHECK_LIB(mach, vm_statistics)
|
AC_CHECK_LIB(mach, vm_statistics)
|
||||||
|
|
||||||
|
dnl For some broken libc5 systems (Debian 1.3)
|
||||||
|
saved_CFLAGS=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
||||||
|
GCC_NEED_DECLARATION(program_invocation_name, [
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
])
|
||||||
|
CFLAGS=$saved_CFLAGS
|
||||||
|
|
||||||
dnl Check for Internet sockets.
|
dnl Check for Internet sockets.
|
||||||
AC_CHECK_FUNC(socket,
|
AC_CHECK_FUNC(socket,
|
||||||
[AC_CHECK_HEADER(netinet/in.h,
|
[AC_CHECK_HEADER(netinet/in.h,
|
||||||
|
|||||||
Reference in New Issue
Block a user