Mercurial > hg > octave-lyh
changeset 15451:219479b461b8
build: Add missing tests and gnulib modules suggested by autoscan.
* build-aux/bootstrap_gnulib.conf: Add float and stddef header modules.
* libgnu/Makefile.am: Automatically re-generated when module list changed.
* configure.ac: Add function check for isascii, modf, pow, sqrt.
Add function check for chown, ftruncate, mmap, munmap when building GUI.
* libinterp/interpfcn/toplev.cc: Add gnulib:: qualifier to malloc call.
* liboctave/util/oct-shlib.cc: Add gnulib:: qualifier to strerror call.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 28 Sep 2012 14:22:54 -0700 |
parents | 1b4d7c703eed |
children | 4d960b078272 |
files | build-aux/bootstrap_gnulib.conf configure.ac libgnu/Makefile.am libinterp/interpfcn/toplev.cc liboctave/util/oct-shlib.cc |
diffstat | 5 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/build-aux/bootstrap_gnulib.conf +++ b/build-aux/bootstrap_gnulib.conf @@ -31,6 +31,7 @@ fcntl fflush filemode + float floor floorf fnmatch @@ -69,6 +70,7 @@ sigprocmask sleep stat + stddef stdint stdio strerror
--- a/configure.ac +++ b/configure.ac @@ -1918,11 +1918,11 @@ AC_CHECK_FUNCS([endgrent endpwent execvp expm1 expm1f fork]) AC_CHECK_FUNCS([getegid geteuid getgid getgrent getgrgid getgrnam]) AC_CHECK_FUNCS([getpgrp getpid getppid getpwent getpwuid getuid getwd]) -AC_CHECK_FUNCS([kill lgamma lgammaf lgamma_r lgammaf_r]) -AC_CHECK_FUNCS([localtime_r log1p log1pf mkstemp pipe putenv]) +AC_CHECK_FUNCS([isascii kill lgamma lgammaf lgamma_r lgammaf_r]) +AC_CHECK_FUNCS([localtime_r log1p log1pf mkstemp modf pipe pow putenv]) AC_CHECK_FUNCS([realpath resolvepath rindex roundl select setgrent]) AC_CHECK_FUNCS([setlocale setpwent setvbuf siglongjmp]) -AC_CHECK_FUNCS([strsignal tempnam tgammaf umask]) +AC_CHECK_FUNCS([sqrt strsignal tempnam tgammaf umask]) AC_CHECK_FUNCS([uname utime x_utime waitpid]) AC_CHECK_FUNCS([_chmod _kbhit _utime32]) @@ -2278,6 +2278,8 @@ AC_CHECK_HEADERS([pty.h libutil.h util.h]) AC_SEARCH_LIBS([openpty], [util], [AC_DEFINE(HAVE_OPENPTY, [], [Define whether openpty exists])]) + AC_CHECK_FUNCS([chown ftruncate mmap munmap], [], + [AC_MSG_ERROR([Missing function required by GUI])]) ;; esac else
--- a/libgnu/Makefile.am +++ b/libgnu/Makefile.am @@ -21,7 +21,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl --lib=libgnu --source-base=libgnu --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl base64 canonicalize chdir close closedir copysign copysignf crypto/md5 dup2 fclose fcntl fflush filemode floor floorf fnmatch fopen fseek ftell getcwd gethostname getopt-gnu gettimeofday glob isatty link lstat malloc-gnu mkdir mkfifo mkostemp mktime nanosleep nproc open opendir pathmax progname readdir readlink realloc-gnu rename rmdir round roundf select sigaction signal sigprocmask sleep stat stdint stdio strerror strftime strptime symlink sys_stat sys_time sys_times time times tmpfile trunc truncf unistd unlink vasprintf +# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl --lib=libgnu --source-base=libgnu --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl base64 canonicalize chdir close closedir copysign copysignf crypto/md5 dup2 fclose fcntl fflush filemode float floor floorf fnmatch fopen fseek ftell getcwd gethostname getopt-gnu gettimeofday glob isatty link lstat malloc-gnu mkdir mkfifo mkostemp mktime nanosleep nproc open opendir pathmax progname readdir readlink realloc-gnu rename rmdir round roundf select sigaction signal sigprocmask sleep stat stddef stdint stdio strerror strftime strptime symlink sys_stat sys_time sys_times time times tmpfile trunc truncf unistd unlink vasprintf AUTOMAKE_OPTIONS = 1.5 gnits
--- a/libinterp/interpfcn/toplev.cc +++ b/libinterp/interpfcn/toplev.cc @@ -1524,11 +1524,11 @@ /* malloc (0) is unpredictable; avoid it. */ if (sz == 0) sz = 1; - p = malloc (sz); + p = gnulib::malloc (sz); while (p == 0) { (*__new_handler) (); - p = malloc (sz); + p = gnulib::malloc (sz); } if (debug_new_delete)