summaryrefslogtreecommitdiff
path: root/modules/grantpt
diff options
context:
space:
mode:
Diffstat (limited to 'modules/grantpt')
-rw-r--r--modules/grantpt9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/grantpt b/modules/grantpt
index 38675b6fb5..db09688b96 100644
--- a/modules/grantpt
+++ b/modules/grantpt
@@ -15,13 +15,16 @@ configmake [test $HAVE_GRANTPT = 0]
configure.ac:
gl_FUNC_GRANTPT
-if test $HAVE_GRANTPT = 0; then
- AC_LIBOBJ([grantpt])
+gl_CONDITIONAL([GL_COND_OBJ_GRANTPT], [test $HAVE_GRANTPT = 0])
+AM_COND_IF([GL_COND_OBJ_GRANTPT], [
gl_PREREQ_GRANTPT
-fi
+])
gl_STDLIB_MODULE_INDICATOR([grantpt])
Makefile.am:
+if GL_COND_OBJ_GRANTPT
+lib_SOURCES += grantpt.c
+endif
Include:
<stdlib.h>