Mercurial > hg > octave-lyh
diff configure.in @ 6201:42efaffa4f08
[project @ 2006-12-05 19:45:58 by jwe]
author | jwe |
---|---|
date | Tue, 05 Dec 2006 19:45:58 +0000 |
parents | 7498bfad5410 |
children | 900d4394e7d8 |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -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