110 lines
3.3 KiB
Diff
110 lines
3.3 KiB
Diff
|
From 5618b2f89a752e8bacf9f7c847fd99484a9d3bbc Mon Sep 17 00:00:00 2001
|
||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||
|
Date: Tue, 26 Mar 2013 10:59:42 -0400
|
||
|
Subject: [PATCH 02/24] Rename configure.in to configure.ac
|
||
|
|
||
|
Newer autotools wants this to end in .ac.
|
||
|
|
||
|
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||
|
---
|
||
|
configure.ac | 39 +++++++++++++++++++++++++++++++++++++++
|
||
|
configure.in | 39 ---------------------------------------
|
||
|
2 files changed, 39 insertions(+), 39 deletions(-)
|
||
|
create mode 100644 configure.ac
|
||
|
delete mode 100644 configure.in
|
||
|
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
new file mode 100644
|
||
|
index 0000000..2b67720
|
||
|
--- /dev/null
|
||
|
+++ b/configure.ac
|
||
|
@@ -0,0 +1,39 @@
|
||
|
+AC_INIT(rpcbind, 0.2.0)
|
||
|
+
|
||
|
+AM_INIT_AUTOMAKE
|
||
|
+AC_CONFIG_SRCDIR([src/rpcbind.c])
|
||
|
+AC_PREFIX_DEFAULT(/usr)
|
||
|
+AC_PROG_CC
|
||
|
+
|
||
|
+AC_ARG_ENABLE([libwrap],
|
||
|
+ AS_HELP_STRING([--enable-libwrap], [Enables host name checking through tcpd @<:@default=no@:>@]))
|
||
|
+AM_CONDITIONAL(LIBWRAP, test x$enable_libwrap = xyes)
|
||
|
+
|
||
|
+AC_ARG_ENABLE([debug],
|
||
|
+ AS_HELP_STRING([--enable-debug], [Turns on rpcbind debugging @<:@default=no@:>@]))
|
||
|
+AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
|
||
|
+
|
||
|
+AC_ARG_ENABLE([warmstarts],
|
||
|
+ AS_HELP_STRING([--enable-warmstarts], [Enables Warm Starts @<:@default=no@:>@]))
|
||
|
+AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes)
|
||
|
+
|
||
|
+AC_ARG_WITH([statedir],
|
||
|
+ AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/tmp@:>@])
|
||
|
+ ,, [with_statedir=/tmp])
|
||
|
+AC_SUBST([statedir], [$with_statedir])
|
||
|
+
|
||
|
+AC_ARG_WITH([rpcuser],
|
||
|
+ AS_HELP_STRING([--with-rpcuser=ARG], [use ARG for RPC @<:@default=root@:>@]),
|
||
|
+ ,, [with_rpcuser=root])
|
||
|
+AC_SUBST([rpcuser], [$with_rpcuser])
|
||
|
+
|
||
|
+PKG_CHECK_MODULES([TIRPC], [libtirpc])
|
||
|
+
|
||
|
+AS_IF([test x$enable_libwrap = xyes], [
|
||
|
+ AC_CHECK_LIB([wrap], [hosts_access], ,
|
||
|
+ AC_MSG_ERROR([libwrap support requested but unable to find libwrap]))
|
||
|
+])
|
||
|
+
|
||
|
+AC_SEARCH_LIBS([pthread_create], [pthread])
|
||
|
+
|
||
|
+AC_OUTPUT([Makefile])
|
||
|
diff --git a/configure.in b/configure.in
|
||
|
deleted file mode 100644
|
||
|
index 2b67720..0000000
|
||
|
--- a/configure.in
|
||
|
+++ /dev/null
|
||
|
@@ -1,39 +0,0 @@
|
||
|
-AC_INIT(rpcbind, 0.2.0)
|
||
|
-
|
||
|
-AM_INIT_AUTOMAKE
|
||
|
-AC_CONFIG_SRCDIR([src/rpcbind.c])
|
||
|
-AC_PREFIX_DEFAULT(/usr)
|
||
|
-AC_PROG_CC
|
||
|
-
|
||
|
-AC_ARG_ENABLE([libwrap],
|
||
|
- AS_HELP_STRING([--enable-libwrap], [Enables host name checking through tcpd @<:@default=no@:>@]))
|
||
|
-AM_CONDITIONAL(LIBWRAP, test x$enable_libwrap = xyes)
|
||
|
-
|
||
|
-AC_ARG_ENABLE([debug],
|
||
|
- AS_HELP_STRING([--enable-debug], [Turns on rpcbind debugging @<:@default=no@:>@]))
|
||
|
-AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
|
||
|
-
|
||
|
-AC_ARG_ENABLE([warmstarts],
|
||
|
- AS_HELP_STRING([--enable-warmstarts], [Enables Warm Starts @<:@default=no@:>@]))
|
||
|
-AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes)
|
||
|
-
|
||
|
-AC_ARG_WITH([statedir],
|
||
|
- AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/tmp@:>@])
|
||
|
- ,, [with_statedir=/tmp])
|
||
|
-AC_SUBST([statedir], [$with_statedir])
|
||
|
-
|
||
|
-AC_ARG_WITH([rpcuser],
|
||
|
- AS_HELP_STRING([--with-rpcuser=ARG], [use ARG for RPC @<:@default=root@:>@]),
|
||
|
- ,, [with_rpcuser=root])
|
||
|
-AC_SUBST([rpcuser], [$with_rpcuser])
|
||
|
-
|
||
|
-PKG_CHECK_MODULES([TIRPC], [libtirpc])
|
||
|
-
|
||
|
-AS_IF([test x$enable_libwrap = xyes], [
|
||
|
- AC_CHECK_LIB([wrap], [hosts_access], ,
|
||
|
- AC_MSG_ERROR([libwrap support requested but unable to find libwrap]))
|
||
|
-])
|
||
|
-
|
||
|
-AC_SEARCH_LIBS([pthread_create], [pthread])
|
||
|
-
|
||
|
-AC_OUTPUT([Makefile])
|
||
|
--
|
||
|
1.7.12.4
|
||
|
|