(exit $ac_status); }; }; then
for ac_declaration in \
''\
+ '#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
- 'void exit (int);' \
- '#include <stdlib.h>'
+ 'void exit (int);'
do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
-
for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
- termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
+ termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
sys/param.h sys/vlimit.h sys/resource.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+
for ac_func in gethostname getdomainname dup2 \
__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
sendto recvfrom getsockopt setsockopt getsockname getpeername \
gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
-memset memcmp memmove
+memset memcmp memmove difftime
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
/* Define to 1 if dynamic ptys are supported. */
#undef HAVE_DEV_PTMX
+/* Define to 1 if you have the `difftime' function. */
+#undef HAVE_DIFFTIME
+
/* Define to 1 if you have the `dup2' function. */
#undef HAVE_DUP2
# endif
#endif
+/* On Mac OS X, these macros are already defined in precompiled headers. */
+#ifndef MAC_OSX
/* avoid deprecated functions */
-#ifdef HAVE_MEMCPY
-# define bcopy(a,b,s) memcpy (b,a,s)
-#endif
-#ifdef HAVE_MEMSET
-# define bzero(a,s) memset (a,0,s)
-#endif
-#ifdef HAVE_MEMCMP
-# define BCMP memcmp
-# define bcmp memcmp
-#endif
+# ifdef HAVE_MEMCPY
+# define bcopy(a,b,s) memcpy (b,a,s)
+# endif
+# ifdef HAVE_MEMSET
+# define bzero(a,s) memset (a,0,s)
+# endif
+# ifdef HAVE_MEMCMP
+# define BCMP memcmp
+# define bcmp memcmp
+# endif
+#endif /* MAC_OSX */
#endif /* EMACS_CONFIG_H */