Use new Gnulib function dtoastr() to format short, accurate real numbers.
[pspp-builds.git] / Smake
diff --git a/Smake b/Smake
index d6ebd795bf78db820bd6ceffe2e5d2516ef95979..6d54f5b730ca0f212c67f670f7407b98ebeec728 100644 (file)
--- a/Smake
+++ b/Smake
@@ -9,14 +9,16 @@ GNULIB_MODULES = \
        byteswap \
        c-ctype \
        c-strtod \
+       clean-temp \
        close \
        configmake \
        count-one-bits \
        crc \
        crypto/md4 \
+       crypto/md5 \
        dirname \
+       dtoastr \
        environ \
-       exit \
        fatal-signal \
        fcntl \
        fpieee \
@@ -27,9 +29,9 @@ GNULIB_MODULES = \
         ftello \
        fwriteerror \
        getline \
-       getopt \
        gettext-h \
        gettimeofday \
+        getopt-gnu \
        gitlog-to-changelog \
        isfinite \
        isinf \
@@ -40,10 +42,7 @@ GNULIB_MODULES = \
         mbchar \
        memcasecmp \
        memchr \
-       memcmp \
-       memmove \
        mempcpy \
-       memset \
        minmax \
        mkdtemp \
        mkstemp \
@@ -62,7 +61,6 @@ GNULIB_MODULES = \
        stdint \
        stpcpy \
        strcase \
-       strcspn \
        strerror \
        strftime \
        strtod \
@@ -71,13 +69,16 @@ GNULIB_MODULES = \
        strtoul \
        sys_stat \
        tempname \
-       tmpfile \
        trunc \
        unilbrk/ulc-width-linebreaks \
        unistd \
+       unictype/property-id-continue \
+       unictype/property-id-start \
        unistr/u8-cpy \
+       unistr/u8-mbtouc \
        unistr/u8-strlen \
        unistr/u8-strncat \
+       unitypes \
        unlocked-io \
        vasprintf-posix \
        version-etc \
@@ -99,16 +100,20 @@ all:
        test -e ChangeLog || touch ChangeLog
        test -d m4 || mkdir m4
        touch m4/Makefile.am
-       $(GNULIB_TOOL) --import --no-changelog --m4-base=gl/m4 \
-               --source-base=gl --lib=libgl --tests-base=tests \
-               --doc-base=gl/doc --aux-dir=build-aux --import \
-               $(GNULIB_MODULES)
+       $(MAKE) -f Smake gnulib
        libtoolize --force --automake
        aclocal -I m4 -I gl/m4
        autoconf
        autoheader
        automake --add-missing --copy --no-force
 
+gnulib:
+       $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
+               --source-base=gl --lib=libgl --tests-base=tests \
+               --doc-base=gl/doc --aux-dir=build-aux --import \
+               --libtool $(GNULIB_MODULES)
+
+
 gettextize:
        test -d m4 || mkdir m4
        touch m4/Makefile.am