summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Naumov <posix.ru@gmail.com>2015-06-04 00:25:18 +0200
committerAlexander Naumov <posix.ru@gmail.com>2015-06-04 00:25:18 +0200
commita8dc1fb5b47ee52c79884fc5270805a3a39cda4a (patch)
tree9855d798d38af03a4c82fa3fcd5697be53281036
parent3e41beaae081493569b11353c47b8fca17785ec6 (diff)
downloadscreen-a8dc1fb5b47ee52c79884fc5270805a3a39cda4a.tar.gz
Rename configure.in to configure.ac
Newer versions of autotools have started warning when using the old 'configure.in' name. Bugfix for: bug #45249 Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
-rw-r--r--src/configure.ac (renamed from src/configure.in)9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/configure.in b/src/configure.ac
index d88af75..87fd43b 100644
--- a/src/configure.in
+++ b/src/configure.ac
@@ -8,7 +8,6 @@ dnl
AC_REVISION($Revision$)dnl
AC_INIT(screen.c)
AC_CONFIG_HEADER(config.h)
-AC_PREREQ(2.60)
dnl
dnl Define some useful macros
@@ -202,6 +201,14 @@ AC_EGREP_CPP(yes,
#endif
], LIBS="$LIBS -lsocket -linet";seqptx=1)
+oldlibs="$LIBS"
+LIBS="$LIBS -lelf"
+AC_CHECKING(SVR4)
+AC_TRY_LINK([#include <utmpx.h>
+],,
+[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
+[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
+,LIBS="$oldlibs")
AC_CHECK_HEADERS([stropts.h string.h strings.h])
AC_CHECKING(for Solaris 2.x)