# HG changeset patch # User jwe # Date 857268430 0 # Node ID 14f1d4009e4903cd585db4d4bab7ab151b92d68d # Parent 972a3638639e91d7f14cfd077e7ee83aa7b497f2 [project @ 1997-03-02 02:07:10 by jwe] acconfig.h diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ### 02111-1307, USA. -AC_REVISION($Revision: 1.258 $) +AC_REVISION($Revision: 1.259 $) AC_PREREQ(2.9) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -757,11 +757,12 @@ AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp fcntl \ fork getcwd getegid geteuid getgid getgrent getgrgid getgrnam \ - gethostname getpgrp getpid getppid getpwent getpwnam getpwuid getuid \ - lstat memmove mkdir mkfifo on_exit pipe putenv rename rindex rmdir \ - setgrent setpwent setvbuf sigaction sigpending sigprocmask \ - sigsuspend stat strcasecmp strdup strerror stricmp strncasecmp \ - strnicmp tempnam umask unlink usleep vfprintf vsprintf waitpid) + gethostname getpgrp getpid getppid getpwent getpwnam getpwuid \ + gettimeofday getuid lstat memmove mkdir mkfifo on_exit pipe putenv \ + rename rindex rmdir setgrent setpwent setvbuf sigaction sigpending \ + sigprocmask sigsuspend stat strcasecmp strdup strerror stricmp \ + strncasecmp strnicmp tempnam umask unlink usleep vfprintf vsprintf \ + waitpid) OCTAVE_SMART_PUTENV OCTAVE_PROGRAM_INVOCATION_NAME @@ -833,12 +834,42 @@ AC_SUBST(WITH_DYNAMIC_LINKING) ### There is more than one possible prototype for gettimeofday. See -### which one (if any) appears in sys/time.h. +### which one (if any) appears in sys/time.h. These tests are from +### Emacs 19. -AC_CHECK_FUNC(gettimeofday, - AC_TRY_COMPILE([#include ], - [gettimeofday ((struct timeval *) 0,(struct timezone *) 0);], - [], AC_DEFINE(GETTIMEOFDAY_NO_TZ))) +AC_MSG_CHECKING(for struct timeval) +AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME +#include +#include +#else +#ifdef HAVE_SYS_TIME_H +#include +#else +#include +#endif +#endif], [static struct timeval x; x.tv_sec = x.tv_usec;], + [AC_MSG_RESULT(yes) + HAVE_TIMEVAL=yes + AC_DEFINE(HAVE_TIMEVAL)], + [AC_MSG_RESULT(no) + HAVE_TIMEVAL=no]) + +if test "x$HAVE_TIMEVAL" = xyes; then +AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) +AC_TRY_LINK([#ifdef TIME_WITH_SYS_TIME +#include +#include +#else +#ifdef HAVE_SYS_TIME_H +#include +#else +#include +#endif +#endif],[struct timeval time; struct timezone dummy; + gettimeofday (&time, &dummy);], [AC_MSG_RESULT(no)], + [AC_MSG_RESULT(yes) + AC_DEFINE(GETTIMEOFDAY_NO_TZ)]) +fi dnl Would like to get rid of this cruft, and just have dnl diff --git a/doc/conf.texi b/doc/conf.texi --- a/doc/conf.texi +++ b/doc/conf.texi @@ -2,6 +2,6 @@ @c This is part of the Octave manual. @c For copying conditions, see the file gpl.texi. -@set VERSION 2.0.4 +@set VERSION 2.0.5 @set OCTAVEHOME /usr/local @set TARGETHOSTTYPE i586-pc-linux-gnu diff --git a/octMakefile.in b/octMakefile.in --- a/octMakefile.in +++ b/octMakefile.in @@ -151,8 +151,8 @@ rm -rf `cat .fname` tar xf `cat .fname`.tar find `cat .fname` \( \( -name RCS -a -type d \) \ - -o \( -name OLD -a -type d \) -o -name "=*" \ - -o -name '*~' -o -name '#*#' -o -name config.log \ + -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \ + -o -name "=*" -o -name '*~' -o -name '#*#' -o -name config.log \ -o -name config.status -o -name c-auto.h \) -print | xargs rm -rf rm -f `cat .fname`/test/octave.test/*.m rm -rf `cat .fname`/test/octave.test/npsol @@ -224,8 +224,8 @@ rm -rf `cat .fname` tar xf `cat .fname`.tar find `cat .fname` \( \( -name RCS -a -type d \) \ - -o \( -name OLD -a -type d \) -o -name "=*" \ - -o -name '*~' -o -name '#*#' -o -name Makefile \ + -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \ + -o -name "=*" -o -name '*~' -o -name '#*#' -o -name Makefile \ -o -name c-auto.h \) -print | xargs rm -rf rm -f `cat .fname`/test/octave.test/*.m rm -rf `cat .fname`/test/octave.test/npsol