* m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
and gl_PREREQ_TCGETSID invocations from here...
* modules/tcgetsid (configure.ac): ... to here.
(Depends-on): Update conditions.
+2011-05-22 Bruno Haible <bruno@clisp.org>
+
+ tcgetsid: Move AC_LIBOBJ invocations to module description.
+ * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
+ and gl_PREREQ_TCGETSID invocations from here...
+ * modules/tcgetsid (configure.ac): ... to here.
+ (Depends-on): Update conditions.
+
2011-05-22 Bruno Haible <bruno@clisp.org>
symlinkat: Move AC_LIBOBJ invocations to module description.
-# tcgetsid.m4 serial 2
+# tcgetsid.m4 serial 3
dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
AC_CHECK_FUNCS([tcgetsid])
- if test $ac_cv_func_tcgetsid = no; then
- AC_LIBOBJ([tcgetsid])
- gl_PREREQ_TCGETSID
+ if test $ac_cv_func_tcgetsid = yes; then
+ HAVE_TCGETSID=1
+ else
+ HAVE_TCGETSID=0
fi
])
Depends-on:
termios
extensions
-sys_ioctl [test $ac_cv_func_tcgetsid = no]
+sys_ioctl [test $HAVE_TCGETSID = 0]
configure.ac:
gl_FUNC_TCGETSID
+if test $HAVE_TCGETSID = 0; then
+ AC_LIBOBJ([tcgetsid])
+ gl_PREREQ_TCGETSID
+fi
gl_TERMIOS_MODULE_INDICATOR([tcgetsid])
Makefile.am: