Mercurial > hg > octave-nkf
changeset 1300:4d86fe3f634e
[project @ 1995-05-01 19:18:03 by jwe]
author | jwe |
---|---|
date | Mon, 01 May 1995 19:20:10 +0000 |
parents | 484e94579182 |
children | 6fbac2681245 |
files | acconfig.h configure.in src/timefns.cc |
diffstat | 3 files changed, 31 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/acconfig.h +++ b/acconfig.h @@ -20,6 +20,9 @@ /* Define if you don't have FSQP. */ #undef FSQP_MISSING +/* Define if your system has a single-arg prototype for gettimeofday. */ +#undef GETTIMEOFDAY_NO_TZ + /* Define if you have finite. */ #undef HAVE_FINITE @@ -50,6 +53,9 @@ /* Define if this is Octave. */ #undef OCTAVE_SOURCE +/* Define if you don't have QPSOL. */ +#undef QPSOL_MISSING + /* Define this to be the path separator for your system, as a character constant */ #undef SEPCHAR @@ -58,8 +64,11 @@ character string */ #undef SEPCHAR_STR -/* Define if you don't have QPSOL. */ -#undef QPSOL_MISSING +/* Define if math.h declares signgam. */ +#undef SIGNGAM_DECLARED + +/* To quiet autoheader. */ +#undef SMART_PUTENV /* Use GNU info for extended help system. */ #undef USE_GNU_INFO @@ -67,12 +76,6 @@ /* Use GNU readline for command line editing and history. */ #undef USE_READLINE -/* Define if math.h declares signgam. */ -#undef SIGNGAM_DECLARED - -/* To quiet autoheader. */ -#undef SMART_PUTENV - /* Define if using dld for dynamic linking of object files. */ #undef WITH_DLD
--- a/configure.in +++ b/configure.in @@ -20,7 +20,7 @@ ### along with Octave; see the file COPYING. If not, write to the Free ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -AC_REVISION($Revision: 1.121 $) +AC_REVISION($Revision: 1.122 $) AC_PREREQ(2.0) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -188,15 +188,16 @@ if $use_dld; then DLD_DIR=dld LIBDLD='../dld/libdld.a' -# don't link them in only if doing dynamic linking and small kernel -# requested. - if $lite_kernel; then - LIBOCTDLD= - fi LD_STATIC_FLAG=-static AC_DEFINE(WITH_DLD, 1) fi +### Don't link these functions if small kernel option requested. + +if $lite_kernel; then + LIBOCTDLD= +fi + ### Also use -static if compiling on Alpha OSF/1 1.3 systems. case "$canonical_host_type" in @@ -572,7 +573,15 @@ AC_CHECK_FUNCS(setvbuf getcwd gethostname bzero bcopy rindex vfprintf vsprintf) AC_CHECK_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror atexit) -AC_CHECK_FUNCS(on_exit tempnam memmove putenv gettimeofday getrusage) +AC_CHECK_FUNCS(on_exit tempnam memmove putenv getrusage) + +### There is more than one possible prototype for gettimeofday. See +### which one (if any) appears in sys/time.h. + +AC_CHECK_FUNC(gettimeofday, + AC_TRY_COMPILE([#include <sys/time.h>], + [gettimeofday ((struct timeval *) 0,(struct timezone *) 0);], + [], AC_DEFINE(GETTIMEOFDAY_NO_TZ))) dnl Would like to get rid of this cruft, and just have dnl