-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathconfigure.ac
More file actions
38 lines (32 loc) · 1.07 KB
/
Copy pathconfigure.ac
File metadata and controls
38 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dnl Process this file with autoconf to produce a configure script.
AC_INIT([libnsl],[2.0.1])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/do_ypcall.c])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_DEFAULT(/usr)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
dnl Checks for programs.
AC_PROG_CC
AC_USE_SYSTEM_EXTENSIONS
dnl If we're using gcc, we want warning flags
dnl test -n "$GCC" && WARNFLAGS="-Wall"
test -n "$GCC" && WARNFLAGS="-W -Wall -Wbad-function-cast -Wcast-align -Winline -Wnested-externs -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef"
AC_SUBST(WARNFLAGS)
AC_PROG_CPP
AC_SEARCH_LIBS([strerror],[cposix])
AC_PROG_INSTALL
AC_PROG_MAKE_SET
LT_INIT
dnl Checks for libraries.
PKG_CHECK_MODULES([TIRPC], [libtirpc], [], [TIRPC_LIBS=""])
if test -n "$TIRPC_LIBS"; then
AC_DEFINE(HAVE_TIRPC, 1, [Define to 1 if TIRPC is available])
fi
dnl internationalization macros
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.2])
AM_GNU_GETTEXT_VERSION([0.20.2])
AM_GNU_GETTEXT([external])
AC_CONFIG_FILES([Makefile src/Makefile libnsl.pc po/Makefile.in])
AC_OUTPUT