changeset 6201:42efaffa4f08

[project @ 2006-12-05 19:45:58 by jwe]
author jwe
date Tue, 05 Dec 2006 19:45:58 +0000
parents 1ec9de3cd12c
children e5ed0d1edddc
files ChangeLog configure.in
diffstat 2 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 05 18:05:12 2006 +0000
+++ b/ChangeLog	Tue Dec 05 19:45:58 2006 +0000
@@ -1,3 +1,7 @@
+2006-12-05  John W. Eaton  <jwe@octave.org>
+
+	* configure.in: Don't check for strptime on *-apple-darwin* systems.
+
 2006-11-28  John W. Eaton  <jwe@octave.org>
 
 	* mkoctfile.in: Construct default output file from basename of
--- a/configure.in	Tue Dec 05 18:05:12 2006 +0000
+++ b/configure.in	Tue Dec 05 19:45:58 2006 +0000
@@ -29,7 +29,7 @@
 EXTERN_CXXFLAGS="$CXXFLAGS"
 
 AC_INIT
-AC_REVISION($Revision: 1.548 $)
+AC_REVISION($Revision: 1.549 $)
 AC_PREREQ(2.57)
 AC_CONFIG_SRCDIR([src/octave.cc])
 AC_CONFIG_HEADER(config.h)
@@ -1391,7 +1391,7 @@
   readlink rename resolvepath rindex rmdir round select setgrent \
   setlocale setpwent setvbuf sigaction siglongjmp sigpending sigprocmask \
   sigsuspend stat strcasecmp strdup strerror stricmp \
-  strncasecmp strnicmp strptime strsignal symlink tempnam umask \
+  strncasecmp strnicmp strsignal symlink tempnam umask \
   uname unlink usleep vfprintf vsprintf vsnprintf waitpid)
 
 case "$canonical_host_type" in
@@ -1405,6 +1405,18 @@
   ;;
 esac
 
+case "$canonical_host_type" in
+  *-apple-darwin*)
+    ## The weekday function, which uses strptime, is broken because
+    ## strptime is apparently not setting wday correctly for formats
+    ## like "%d-%m-%Y", so use our version.  We could use an actual
+    ## configure test for this.
+  ;;
+  *)
+    AC_CHECK_FUNCS(strptime)
+  ;;
+esac
+
 OCTAVE_SMART_PUTENV
 
 case "$canonical_host_type" in