OSDN Git Service

Fixed some texts, fixed configure.in and Makefile.am, and fixed alstede.cpp.
authorI.S <issoftware@users.sourceforge.jp>
Thu, 24 Sep 2009 08:14:50 +0000 (17:14 +0900)
committerI.S <issoftware@users.sourceforge.jp>
Thu, 24 Sep 2009 08:14:50 +0000 (17:14 +0900)
ChangeLog
Makefile.am
Makefile.in
NEWS
README
alstede.cpp
configure
configure.in

index 5b26add..200d3c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,21 @@
-2009-09-22  I.S.
-
-       * Version 0.2.4 released.
-
 2009-09-24  I.S.
 
        * Version 1.0.0 released.
+
+\f
+----------------------------------------------------------------------
+This file is part of I.S. Software Alstede.
+
+I.S. Software Alstede is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+I.S. Software Alstede is distributed in the hope that it will be
+useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with I.S. Software Alstede.  If not, see
+<http://www.gnu.org/licenses/>.
index 0859f32..acdc42a 100644 (file)
@@ -1,7 +1,32 @@
+CXXFLAGS = 
 bin_PROGRAMS = \
        alstede
 alstede_SOURCES = \
        alstede.cpp
+alstede_CXXFLAGS = \
+       -D_GNU_SOURCE \
+       -fno-dollars-in-identifiers \
+       -Wall \
+       -Wcast-align \
+       -Wcast-qual \
+       -Wconversion \
+       -Winline \
+       -Woverloaded-virtual \
+       -Wredundant-decls \
+       -Wshadow \
+       -Wwrite-strings
+if DEBUG
+alstede_CXXFLAGS += \
+       -O0 \
+       -g \
+       -pg
+else
+alstede_CXXFLAGS += \
+       -DNDEBUG \
+       -DDO_NOT_USE_THROW_ \
+       -DDO_NOT_USE_THROW_IF \
+       -O3
+endif
 alstede_LDADD = \
        /usr/lib/libboost_filesystem.a \
        /usr/local/lib/libislib.a
index cd29c4c..5303472 100644 (file)
@@ -31,6 +31,17 @@ NORMAL_UNINSTALL = :
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
 bin_PROGRAMS = alstede$(EXEEXT)
+@DEBUG_TRUE@am__append_1 = \
+@DEBUG_TRUE@   -O0 \
+@DEBUG_TRUE@   -g \
+@DEBUG_TRUE@   -pg
+
+@DEBUG_FALSE@am__append_2 = \
+@DEBUG_FALSE@  -DNDEBUG \
+@DEBUG_FALSE@  -DDO_NOT_USE_THROW_ \
+@DEBUG_FALSE@  -DDO_NOT_USE_THROW_IF \
+@DEBUG_FALSE@  -O3
+
 subdir = .
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
        $(srcdir)/Makefile.in $(srcdir)/config.h.in \
@@ -48,10 +59,12 @@ CONFIG_CLEAN_FILES =
 am__installdirs = "$(DESTDIR)$(bindir)"
 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
 PROGRAMS = $(bin_PROGRAMS)
-am_alstede_OBJECTS = alstede.$(OBJEXT)
+am_alstede_OBJECTS = alstede-alstede.$(OBJEXT)
 alstede_OBJECTS = $(am_alstede_OBJECTS)
 alstede_DEPENDENCIES = /usr/lib/libboost_filesystem.a \
        /usr/local/lib/libislib.a
+alstede_LINK = $(CXXLD) $(alstede_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
+       $(LDFLAGS) -o $@
 DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
@@ -88,7 +101,7 @@ CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
 CXX = @CXX@
 CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
+CXXFLAGS = 
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
@@ -167,6 +180,10 @@ top_srcdir = @top_srcdir@
 alstede_SOURCES = \
        alstede.cpp
 
+alstede_CXXFLAGS = -D_GNU_SOURCE -fno-dollars-in-identifiers -Wall \
+       -Wcast-align -Wcast-qual -Wconversion -Winline \
+       -Woverloaded-virtual -Wredundant-decls -Wshadow \
+       -Wwrite-strings $(am__append_1) $(am__append_2)
 alstede_LDADD = \
        /usr/lib/libboost_filesystem.a \
        /usr/local/lib/libislib.a
@@ -251,7 +268,7 @@ clean-binPROGRAMS:
        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
 alstede$(EXEEXT): $(alstede_OBJECTS) $(alstede_DEPENDENCIES) 
        @rm -f alstede$(EXEEXT)
-       $(CXXLINK) $(alstede_OBJECTS) $(alstede_LDADD) $(LIBS)
+       $(alstede_LINK) $(alstede_OBJECTS) $(alstede_LDADD) $(LIBS)
 
 mostlyclean-compile:
        -rm -f *.$(OBJEXT)
@@ -259,7 +276,7 @@ mostlyclean-compile:
 distclean-compile:
        -rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alstede.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alstede-alstede.Po@am__quote@
 
 .cpp.o:
 @am__fastdepCXX_TRUE@  $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -275,6 +292,20 @@ distclean-compile:
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
 
+alstede-alstede.o: alstede.cpp
+@am__fastdepCXX_TRUE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alstede_CXXFLAGS) $(CXXFLAGS) -MT alstede-alstede.o -MD -MP -MF $(DEPDIR)/alstede-alstede.Tpo -c -o alstede-alstede.o `test -f 'alstede.cpp' || echo '$(srcdir)/'`alstede.cpp
+@am__fastdepCXX_TRUE@  mv -f $(DEPDIR)/alstede-alstede.Tpo $(DEPDIR)/alstede-alstede.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     source='alstede.cpp' object='alstede-alstede.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alstede_CXXFLAGS) $(CXXFLAGS) -c -o alstede-alstede.o `test -f 'alstede.cpp' || echo '$(srcdir)/'`alstede.cpp
+
+alstede-alstede.obj: alstede.cpp
+@am__fastdepCXX_TRUE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alstede_CXXFLAGS) $(CXXFLAGS) -MT alstede-alstede.obj -MD -MP -MF $(DEPDIR)/alstede-alstede.Tpo -c -o alstede-alstede.obj `if test -f 'alstede.cpp'; then $(CYGPATH_W) 'alstede.cpp'; else $(CYGPATH_W) '$(srcdir)/alstede.cpp'; fi`
+@am__fastdepCXX_TRUE@  mv -f $(DEPDIR)/alstede-alstede.Tpo $(DEPDIR)/alstede-alstede.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     source='alstede.cpp' object='alstede-alstede.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alstede_CXXFLAGS) $(CXXFLAGS) -c -o alstede-alstede.obj `if test -f 'alstede.cpp'; then $(CYGPATH_W) 'alstede.cpp'; else $(CYGPATH_W) '$(srcdir)/alstede.cpp'; fi`
+
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
        unique=`for i in $$list; do \
diff --git a/NEWS b/NEWS
index e69de29..dcdb1ae 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -0,0 +1,25 @@
+I.S. Software Alstede NEWS -- history of user-visible changes.
+
+Copyright (C) 2009 I.S. Software
+See the end of the file for license conditions.
+
+Please send I.S. Software Alstede bug reports to
+<issoftware@users.sourceforge.jp>.
+
+\f
+----------------------------------------------------------------------
+This file is part of I.S. Software Alstede.
+
+I.S. Software Alstede is free software: you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+I.S. Software Alstede is distributed in the hope that it will be
+useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with I.S. Software Alstede.  If not, see
+<http://www.gnu.org/licenses/>.
diff --git a/README b/README
index e69de29..055f357 100644 (file)
--- a/README
+++ b/README
@@ -0,0 +1,71 @@
+Copyright (C) 2009 I.S. Software.  See the end of the file for license
+conditions.
+
+
+This directory tree holds version 1.0.0 of I.S. Software Alstede,
+the file linker or copier between directories, creating date time
+directories and one-character-name directories from head of file name
+lexically.
+
+The file INSTALL in this directory says how to build and install I.S.
+Software Alstede on various systems, once you have unpacked or checked
+out the entire I.S. Software Alstede file tree.
+
+See the file NEWS for information on new features and other
+user-visible changes in recent versions of I.S. Software Alstede.
+
+You may encounter bugs in this release.  If you do, please report them;
+your bug reports are valuable contributions to the I.S. Software, since
+they allow us to notice and fix problems on machines we don't have, or
+in code we don't use often.  Please send bug reports for released
+versions of I.S. Software Alstede sent to
+<issoftware@users.sourceforge.jp>.
+
+The file `configure' is a shell script to acclimate I.S. Software
+Alstede to the oddities of your processor and operating system.  It
+creates the file `Makefile' (a script for the `make' program), which
+automates the process of building and installing I.S. Software
+Alstede.  See INSTALL for more detailed information.
+
+The file `configure.in' is the input used by the autoconf program to
+construct the `configure' script.  Since I.S. Software Alstede has
+some configuration requirements that autoconf can't meet directly, and
+for historical reasons, `configure.in' uses an unholy marriage of
+custom-baked configuration code and autoconf macros.  If you want to
+rebuild `configure' from `configure.in', you will need to install a
+recent version of autoconf and GNU m4.
+
+The file `Makefile.in' is a template used by `configure' to create
+`Makefile'.
+
+   Building I.S. Software Alstede on non-Posix platforms requires to
+install tools that aren't part of the standard distribution of the OS.
+The platform-specific README files and installation instructions should
+list the required tools.
+
+\f
+I.S. Software Alstede NEWS -- history of user-visible changes.
+
+Copyright (C) 2009 I.S. Software
+See the end of the file for license conditions.
+
+Please send I.S. Software Alstede bug reports to
+<issoftware@users.sourceforge.jp>.
+
+\f
+----------------------------------------------------------------------
+This file is part of I.S. Software Alstede.
+
+I.S. Software Alstede is free software: you can redistribute it
+and/or modify it under the terms of the GNU General Public
+License as published by the Free Software Foundation, either version 3
+of the License, or (at your option) any later version.
+
+I.S. Software Alstede is distributed in the hope that it will be
+useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public
+License along with I.S. Software Alstede.  If not, see
+<http://www.gnu.org/licenses/>.
index e7dc1b3..d7836c5 100644 (file)
@@ -8,7 +8,6 @@
 #include <cstdlib>
 #include <ctime>
 #include <exception>
-#include <iostream>
 #include <limits>
 #include <stdexcept>
 #include <sstream>
index 63d251c..aa10604 100755 (executable)
--- a/configure
+++ b/configure
@@ -664,6 +664,8 @@ CPPFLAGS
 LDFLAGS
 CXXFLAGS
 CXX
+DEBUG_FALSE
+DEBUG_TRUE
 am__untar
 am__tar
 AMTAR
@@ -727,6 +729,7 @@ SHELL'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
+enable_debug
 enable_dependency_tracking
 '
       ac_precious_vars='build_alias
@@ -1367,6 +1370,7 @@ Optional Features:
   --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-debug          Turn on debugging
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
 
@@ -1834,6 +1838,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 ac_config_headers="$ac_config_headers config.h"
 
 
+# Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then
+  enableval=$enable_debug; enable_debug="$enableval"
+else
+  enable_fcgi="no"
+fi
+
+
 am__api_version='1.10'
 
 ac_aux_dir=
@@ -2324,6 +2336,14 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
 
 
+ if test "$enable_debug" = "yes"; then
+  DEBUG_TRUE=
+  DEBUG_FALSE='#'
+else
+  DEBUG_TRUE='#'
+  DEBUG_FALSE=
+fi
+
 
 # Checks for programs.
 ac_ext=cpp
@@ -5469,6 +5489,13 @@ LIBOBJS=$ac_libobjs
 LTLIBOBJS=$ac_ltlibobjs
 
 
+if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
+  { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"DEBUG\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 Usually this means the macro was only invoked conditionally." >&5
index 9beb4be..020518f 100644 (file)
@@ -6,7 +6,10 @@ AC_INIT([alstede], [1.0.0], [issoftware@users.sourceforge.jp])
 AC_CONFIG_SRCDIR([config.h.in])
 AC_CONFIG_HEADERS([config.h])
 
+AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Turn on debugging]), enable_debug="$enableval", enable_fcgi="no")
+
 AM_INIT_AUTOMAKE([$PACKAGE_NAME], [$PACKAGE_VERSION])
+AM_CONDITIONAL([DEBUG], [test "$enable_debug" = "yes"])
 
 # Checks for programs.
 AC_PROG_CXX