dnl The system has openpty.
dnl Prefer glibc's const-safe prototype, if available.
AC_CACHE_CHECK([for const-safe openpty signature],
[gl_cv_func_openpty_const],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[
dnl The system has openpty.
dnl Prefer glibc's const-safe prototype, if available.
AC_CACHE_CHECK([for const-safe openpty signature],
[gl_cv_func_openpty_const],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[