[vte] build: Use AC_USE_SYSTEM_EXTENSIONS
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] build: Use AC_USE_SYSTEM_EXTENSIONS
- Date: Wed, 23 Apr 2014 17:45:42 +0000 (UTC)
commit e414ab351319a36ff1e55181f901eee8c2030907
Author: Christian Persch <chpe gnome org>
Date: Wed Apr 23 19:21:06 2014 +0200
build: Use AC_USE_SYSTEM_EXTENSIONS
... instead of some grep magic.
gnome-pty-helper/configure.in | 25 ++-----------------------
1 files changed, 2 insertions(+), 23 deletions(-)
---
diff --git a/gnome-pty-helper/configure.in b/gnome-pty-helper/configure.in
index 16940ea..355a858 100644
--- a/gnome-pty-helper/configure.in
+++ b/gnome-pty-helper/configure.in
@@ -5,14 +5,13 @@ AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([gnome-pty.h])
+AC_PROG_CC
+AC_USE_SYSTEM_EXTENSIONS
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AM_PROG_CC_STDC
-if test -z "$enable_maintainer_mode"; then
- enable_maintainer_mode=yes
-fi
AM_MAINTAINER_MODE([enable])
AC_CHECK_HEADERS(sys/syslimits.h sys/time.h sys/types.h sys/un.h alloca.h lastlog.h libutil.h paths.h pty.h
stropts.h termios.h ttyent.h util.h utmp.h utmpx.h pty.h util.h libutil.h ttyent.h)
@@ -25,26 +24,6 @@ GPH_CHECK_UTMP
AC_CHECK_HEADERS(stropts.h)
-# Use all available features under glibc, and disable accidental use of
-# deprecated functionality.
-AC_EGREP_CPP(glibc,
- [
- #include <stdio.h>
- #ifdef __GLIBC__
- glibc
- #endif
- ],
- AC_DEFINE(_GNU_SOURCE,1,[Use all glibc features.]))
-
-AC_CANONICAL_HOST
-case $host in
-*-*-solaris*)
- AC_DEFINE(_XOPEN_SOURCE_EXTENDED,1,[Needed to get declarations for msg_control and msg_controllen on
Solaris])
- AC_DEFINE(_XOPEN_SOURCE,1,[Needed to get declarations for msg_control and msg_controllen on Solaris])
- AC_DEFINE(__EXTENSIONS__,1,[Needed to get declarations for msg_control and msg_controllen on Solaris])
- ;;
-esac
-
AC_ARG_VAR([SUID_CFLAGS],
[CFLAGS used for binaries which are usually with the suid bit])
AC_ARG_VAR([SUID_LDFLAGS],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]