aboutsummaryrefslogtreecommitdiff
path: root/configure.ac.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-02-19 18:41:02 +0000
committerdos-reis <gdr@axiomatics.org>2009-02-19 18:41:02 +0000
commit7e8519d4009328b4ea1ed3736f9ef3a2d265a3ce (patch)
tree466b759bfd2a467a5ae5711bc88de012d4e37002 /configure.ac.pamphlet
parentd5a7308fdca3f00c9e9825e1171e9b6fe6ec2273 (diff)
downloadopen-axiom-7e8519d4009328b4ea1ed3736f9ef3a2d265a3ce.tar.gz
2009-02-19 Aleksej Saushev <asau@inbox.ru>
* configure.ac.pamphlet: Fix indention of CPP directives. Include <sys/types.h> when testing for openpty. src/ChangeLog 2009-02-19 Gabriel Dos Reis <gdr@cs.tamu.edu> * interp/sys-utility.boot (%hostByteOrder): Make a function. * algebra/system.spad.pamphlet (hostByteOrder$System): Adjust call. 2009-02-19 Aleksej Saushev <asau@inbox.ru> * lib/openpty.c: Include <sys/types.h> when testing for openpty.
Diffstat (limited to 'configure.ac.pamphlet')
-rw-r--r--configure.ac.pamphlet75
1 files changed, 39 insertions, 36 deletions
diff --git a/configure.ac.pamphlet b/configure.ac.pamphlet
index bd2234ff..e1c94493 100644
--- a/configure.ac.pamphlet
+++ b/configure.ac.pamphlet
@@ -285,28 +285,30 @@ esac
AC_SUBST(axiom_c_runtime_extra)
-AC_EGREP_HEADER([has_af_local],
- [#if HAVE_SYS_SOCKET_H
- # include <sys/socket.h>
- #else
- # include <winsock2.h>
- #endif
- #ifdef AF_LOCAL
- has_af_local
- #endif],
- [AC_DEFINE([HAVE_AF_LOCAL], [1], [Host has AF_LOCAL])])
-
-
-AC_EGREP_HEADER([has_af_unix],
- [#if HAVE_SYS_SOCKET_H
- # include <sys/socket.h>
- #else
- # include <winsock2.h>
- #endif
- #ifdef AF_UNIX
- has_af_unix
- #endif],
- [AC_DEFINE([HAVE_AF_UNIX], [1], [Host has AF_UNIX])])
+AC_EGREP_CPP([has_af_local],
+ [#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#else
+# include <winsock2.h>
+#endif
+#ifdef AF_LOCAL
+ has_af_local
+#endif
+ ],
+ [AC_DEFINE([HAVE_AF_LOCAL], [1], [Host has AF_LOCAL])])
+
+
+AC_EGREP_CPP([has_af_unix],
+ [#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#else
+# include <winsock2.h>
+#endif
+#ifdef AF_UNIX
+ has_af_unix
+#endif
+ ],
+ [AC_DEFINE([HAVE_AF_UNIX], [1], [Host has AF_UNIX])])
@
@@ -332,20 +334,21 @@ AC_CHECK_DECLS([fork],
AC_CHECK_HEADERS([sys/ioctl.h pty.h util.h libutil.h termios.h])
AC_CHECK_DECLS([openpty],[],[],
[#if HAVE_PTY_H
- # include <pty.h>
- #endif
- #if HAVE_UTIL_H
- # include <util.h>
- #endif
- #if HAVE_SYS_IOCTL_H
- # include <sys/ioctl.h>
- #endif
- #if HAVE_TERMIOS_H
- # include <termios.h>
- #endif
- #if HAVE_LIBTUIL_H
- # include <libutil.h>
- #endif
+# include <pty.h>
+#endif
+#if HAVE_UTIL_H
+# include <util.h>
+#endif
+#if HAVE_SYS_IOCTL_H
+# include <sys/ioctl.h>
+#endif
+#if HAVE_TERMIOS_H
+# include <termios.h>
+#endif
+#if HAVE_LIBTUIL_H
+# include <sys/types.h>
+# include <libutil.h>
+#endif
])
if test x"$ac_cv_have_decl_openpty" = xyes; then \
AC_SEARCH_LIBS([openpty],[util])