acinclude.m4: Fix minor typo with ctypes...
authorPhil Edwards <pme@sourceware.cygnus.com>
Thu, 11 May 2000 19:52:00 +0000 (19:52 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Thu, 11 May 2000 19:52:00 +0000 (19:52 +0000)
2000-05-11  Phil Edwards  <pme@sourceware.cygnus.com>

* acinclude.m4:  Fix minor typo with ctypes, add more sanity to
  enable-cxx-flags, and remove GLIBCPP_ENABLE_NAMESPACES altogether.
* aclocal.m4:  Regenerate.
* configure.in:  Non-blank arguments break fewer Linuxes.
* configure:  Regenerate.
* src/Makefile.am:  Re-order AC_CXXFLAGS components.
* src/Makefile.in:  Regenerate.

From-SVN: r33859

libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/aclocal.m4
libstdc++-v3/configure
libstdc++-v3/configure.in
libstdc++-v3/src/Makefile.am
libstdc++-v3/src/Makefile.in

index 309e506949f4c4ba7d5bf6ca87e8f245002d130b..a6f5d8dabce7d99ed7896fb1d525196ed49d2ac1 100644 (file)
@@ -1,3 +1,13 @@
+2000-05-11  Phil Edwards  <pme@sourceware.cygnus.com>
+
+       * acinclude.m4:  Fix minor typo with ctypes, add more sanity to
+         enable-cxx-flags, and remove GLIBCPP_ENABLE_NAMESPACES altogether.
+       * aclocal.m4:  Regenerate.
+       * configure.in:  Non-blank arguments break fewer Linuxes.
+       * configure:  Regenerate.
+       * src/Makefile.am:  Re-order AC_CXXFLAGS components.
+       * src/Makefile.in:  Regenerate.
+
 2000-05-10  Benjamin Kosnik  <bkoz@redhat.com>
 
        * bits/std_cmath.h: Tweaks.
index fc86165973b681851554afa52d6a65cdfaaa50d1..99d7e94fee82c1f55260cdd462f87a94ba5d1e84 100644 (file)
@@ -350,7 +350,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
         ctype_default=no
       else
         ctype_include_dir="config/solaris/solaris2.7"
-        AC_MSG_RESULT("solaris2.[6,7]")
+        AC_MSG_RESULT("solaris2.[7,8]")
         ctype_default=no
       fi
     fi
@@ -643,10 +643,12 @@ dnl     experimental flags such as -fhonor-std, -fsquangle, -Dfloat=char, etc.
 dnl     Somehow this same set of flags must be passed when [re]building
 dnl     libgcc.
 dnl --disable-cxx-flags passes nothing.
-dnl  +  See <URL:>
+dnl  +  See http://sourceware.cygnus.com/ml/libstdc++/2000-q2/msg00131.html
+dnl         http://sourceware.cygnus.com/ml/libstdc++/2000-q2/msg00284.html
+dnl         http://sourceware.cygnus.com/ml/libstdc++/2000-q1/msg00035.html
 dnl  +  Usage:  GLIBCPP_ENABLE_CXX_FLAGS(default flags)
-dnl       If "default flags" is an empty string, the effect is the same
-dnl       as --disable or --enable=no.
+dnl       If "default flags" is an empty string (or "none"), the effect is
+dnl       the same as --disable or --enable=no.
 AC_DEFUN(GLIBCPP_ENABLE_CXX_FLAGS, [dnl
 define([GLIBCPP_ENABLE_CXX_FLAGS_DEFAULT], ifelse($1,,, $1))dnl
 AC_ARG_ENABLE(cxx-flags,
@@ -656,11 +658,14 @@ changequote(<<, >>)dnl
 changequote([, ])dnl
 [case "x$enableval" in
  xyes)   AC_MSG_ERROR([--enable-cxx-flags needs compiler flags as arguments]) ;;
- xno|x)  enable_cxx_flags= ;;
+ xno|x)  enable_cxx_flags='' ;;
  *)      enable_cxx_flags="$enableval" ;;
  esac],
 enable_cxx_flags='GLIBCPP_ENABLE_CXX_FLAGS_DEFAULT')dnl
-dnl Run through flags (either default or command-line) and set things.
+dnl Thinko on my part during design.  This kludge is the workaround.
+if test "$enable_cxx_flags" = "none"; then enable_cxx_flags=''; fi
+dnl Run through flags (either default or command-line) and set anything
+dnl extra (e.g., #defines) that must accompany particular g++ options.
 if test -n "$enable_cxx_flags"; then
     for f in $enable_cxx_flags; do
         case "$f" in
@@ -676,40 +681,6 @@ AC_SUBST(EXTRA_CXX_FLAGS)
 ])
 
 
-dnl
-dnl Check for certain special build configurations.
-dnl
-dnl GLIBCPP_ENABLE_NAMESPACES
-dnl --enable-namespaces sets '-fhonor-std' and 
-dnl --disable-namespaces sets '-fno-honor-std' (the macro should be
-dnl     undefined by default in whatever.h.in).
-dnl  +  Eventually, this will go away.
-dnl  +  Usage:  GLIBCPP_ENABLE_NAMESPACES[(DEFAULT)]
-dnl       Where DEFAULT is either `yes' or `no'.  If ommitted, it
-dnl       defaults to `no'.
-AC_DEFUN(GLIBCPP_ENABLE_NAMESPACES, [dnl
-define([GLIBCPP_ENABLE_NAMESPACES_DEFAULT], ifelse($1, yes, yes, no))dnl
-AC_ARG_ENABLE(namespaces,
-changequote(<<, >>)dnl
-<<  --enable-namespaces     turns on 'std' [default=>>GLIBCPP_ENABLE_NAMESPACES_DEFAULT],
-changequote([, ])dnl
-[case "$enableval" in
- yes) enable_namespaces=yes ;;
- no)  enable_namespaces=no ;;
- *)   AC_MSG_ERROR([Unknown argument to enable/disable namespaces]) ;;
- esac],
-enable_namespaces=GLIBCPP_ENABLE_NAMESPACES_DEFAULT)dnl
-dnl Option parsed, now set things appropriately
-case "$enable_namespaces" in
-    yes)  NAMESPACES='-fhonor-std'
-          ;;
-    no)   NAMESPACES='-fno-honor-std'
-          ;;
-esac
-AC_SUBST(NAMESPACES)
-])
-
-
 dnl
 dnl Check for instructions to automatically rebuild libgcc.a.  Requires,
 dnl of course, the location of the gcc objdir.  Note that if --disable-
index c5258815a6a16a7888d4d1f353ee5c41f9086772..5afad8524163ce4b2b3b2ac6f00c00a312326b7c 100644 (file)
@@ -362,7 +362,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
         ctype_default=no
       else
         ctype_include_dir="config/solaris/solaris2.7"
-        AC_MSG_RESULT("solaris2.[6,7]")
+        AC_MSG_RESULT("solaris2.[7,8]")
         ctype_default=no
       fi
     fi
@@ -655,10 +655,12 @@ dnl     experimental flags such as -fhonor-std, -fsquangle, -Dfloat=char, etc.
 dnl     Somehow this same set of flags must be passed when [re]building
 dnl     libgcc.
 dnl --disable-cxx-flags passes nothing.
-dnl  +  See <URL:>
+dnl  +  See http://sourceware.cygnus.com/ml/libstdc++/2000-q2/msg00131.html
+dnl         http://sourceware.cygnus.com/ml/libstdc++/2000-q2/msg00284.html
+dnl         http://sourceware.cygnus.com/ml/libstdc++/2000-q1/msg00035.html
 dnl  +  Usage:  GLIBCPP_ENABLE_CXX_FLAGS(default flags)
-dnl       If "default flags" is an empty string, the effect is the same
-dnl       as --disable or --enable=no.
+dnl       If "default flags" is an empty string (or "none"), the effect is
+dnl       the same as --disable or --enable=no.
 AC_DEFUN(GLIBCPP_ENABLE_CXX_FLAGS, [dnl
 define([GLIBCPP_ENABLE_CXX_FLAGS_DEFAULT], ifelse($1,,, $1))dnl
 AC_ARG_ENABLE(cxx-flags,
@@ -668,11 +670,14 @@ changequote(<<, >>)dnl
 changequote([, ])dnl
 [case "x$enableval" in
  xyes)   AC_MSG_ERROR([--enable-cxx-flags needs compiler flags as arguments]) ;;
- xno|x)  enable_cxx_flags= ;;
+ xno|x)  enable_cxx_flags='' ;;
  *)      enable_cxx_flags="$enableval" ;;
  esac],
 enable_cxx_flags='GLIBCPP_ENABLE_CXX_FLAGS_DEFAULT')dnl
-dnl Run through flags (either default or command-line) and set things.
+dnl Thinko on my part during design.  This kludge is the workaround.
+if test "$enable_cxx_flags" = "none"; then enable_cxx_flags=''; fi
+dnl Run through flags (either default or command-line) and set anything
+dnl extra (e.g., #defines) that must accompany particular g++ options.
 if test -n "$enable_cxx_flags"; then
     for f in $enable_cxx_flags; do
         case "$f" in
@@ -688,40 +693,6 @@ AC_SUBST(EXTRA_CXX_FLAGS)
 ])
 
 
-dnl
-dnl Check for certain special build configurations.
-dnl
-dnl GLIBCPP_ENABLE_NAMESPACES
-dnl --enable-namespaces sets '-fhonor-std' and 
-dnl --disable-namespaces sets '-fno-honor-std' (the macro should be
-dnl     undefined by default in whatever.h.in).
-dnl  +  Eventually, this will go away.
-dnl  +  Usage:  GLIBCPP_ENABLE_NAMESPACES[(DEFAULT)]
-dnl       Where DEFAULT is either `yes' or `no'.  If ommitted, it
-dnl       defaults to `no'.
-AC_DEFUN(GLIBCPP_ENABLE_NAMESPACES, [dnl
-define([GLIBCPP_ENABLE_NAMESPACES_DEFAULT], ifelse($1, yes, yes, no))dnl
-AC_ARG_ENABLE(namespaces,
-changequote(<<, >>)dnl
-<<  --enable-namespaces     turns on 'std' [default=>>GLIBCPP_ENABLE_NAMESPACES_DEFAULT],
-changequote([, ])dnl
-[case "$enableval" in
- yes) enable_namespaces=yes ;;
- no)  enable_namespaces=no ;;
- *)   AC_MSG_ERROR([Unknown argument to enable/disable namespaces]) ;;
- esac],
-enable_namespaces=GLIBCPP_ENABLE_NAMESPACES_DEFAULT)dnl
-dnl Option parsed, now set things appropriately
-case "$enable_namespaces" in
-    yes)  NAMESPACES='-fhonor-std'
-          ;;
-    no)   NAMESPACES='-fno-honor-std'
-          ;;
-esac
-AC_SUBST(NAMESPACES)
-])
-
-
 dnl
 dnl Check for instructions to automatically rebuild libgcc.a.  Requires,
 dnl of course, the location of the gcc objdir.  Note that if --disable-
index f4d49447f861c38a59907c19d65cc9969a27fe69..a60ed9acbc398b1261ffab1c7a65325552eb1cc0 100755 (executable)
@@ -43,7 +43,7 @@ ac_help="$ac_help
   --enable-threads=LIB    use LIB thread package for target GCC."
 ac_help="$ac_help
   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
-                                [default=]"
+                                [default=none]"
 
 # Initialize some variables set by options.
 # The variables have the same names as the options, with
@@ -2452,19 +2452,19 @@ fi
   
   
 
-#GLIBCPP_ENABLE_NAMESPACES(yes)
 #GLIBCPP_ENABLE_RELIBGCC([../..])
 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
 if test "${enable_cxx_flags+set}" = set; then
   enableval="$enable_cxx_flags"
   case "x$enableval" in
  xyes)   { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
- xno|x)  enable_cxx_flags= ;;
+ xno|x)  enable_cxx_flags='' ;;
  *)      enable_cxx_flags="$enableval" ;;
  esac
 else
-  enable_cxx_flags=''
+  enable_cxx_flags='none'
 fi
+if test "$enable_cxx_flags" = "none"; then enable_cxx_flags=''; fi
 if test -n "$enable_cxx_flags"; then
     for f in $enable_cxx_flags; do
         case "$f" in
@@ -3621,7 +3621,7 @@ cross_compiling=$ac_cv_prog_cc_cross
         ctype_default=no
       else
         ctype_include_dir="config/solaris/solaris2.7"
-        echo "$ac_t"""solaris2.6,7"" 1>&6
+        echo "$ac_t"""solaris2.7,8"" 1>&6
         ctype_default=no
       fi
     fi
index c985fc4d9afcd99181f20b3b881aad565304e780..3cec23f1f93e1e3dd741b913dd338747a625a44c 100644 (file)
@@ -29,9 +29,8 @@ GLIBCPP_ENABLE_DEBUG
 GLIBCPP_ENABLE_CSTDIO
 GLIBCPP_ENABLE_LONG_LONG
 GLIBCPP_ENABLE_THREADS
-#GLIBCPP_ENABLE_NAMESPACES(yes)
 #GLIBCPP_ENABLE_RELIBGCC([../..])
-GLIBCPP_ENABLE_CXX_FLAGS([])
+GLIBCPP_ENABLE_CXX_FLAGS([none])
 
 
 if test -n "$with_cross_host"; then
index 6f727e15bcf0967b5786595d72ec9a92dba95ab3..b83c7c70b93701b7bbfb452eda251ac739df25dc 100644 (file)
@@ -42,7 +42,7 @@ WERROR = -Werror
 #                      -fdata-sections -ffunction-sections \
 #                     -fvtable-gc -Wl,--gc-sections
 # AC_CXXFLAGS = @OPTLEVEL@ @CPUFLAGS@ @EXTRA_CXX_FLAGS@ @DEBUGFLAGS@ 
-AC_CXXFLAGS = @CPUFLAGS@ @DEBUGFLAGS@ 
+AC_CXXFLAGS = @CPUFLAGS@ @EXTRA_CXX_FLAGS@ @DEBUGFLAGS@
 AM_CXXFLAGS = -fno-implicit-templates \
              -Wall -Wno-format -W -Wwrite-strings -Winline $(WERROR) \
              $(OPTIMIZE_CXXFLAGS) $(AC_CXXFLAGS) 
index 440f8c5b3070ead8d42c0be3aa0896a259186ac7..4c9c9f5ae3ace7b22f5c79433f2eef9f4fc8be0a 100644 (file)
@@ -85,7 +85,6 @@ LIBTOOL = @LIBTOOL@
 LN_S = @LN_S@
 MAINT = @MAINT@
 MAKEINFO = @MAKEINFO@
-NAMESPACES = @NAMESPACES@
 OBJDUMP = @OBJDUMP@
 OPTLEVEL = @OPTLEVEL@
 PACKAGE = @PACKAGE@
@@ -120,7 +119,7 @@ WERROR = -Werror
 #                      -fdata-sections -ffunction-sections \
 #                     -fvtable-gc -Wl,--gc-sections
 # AC_CXXFLAGS = @OPTLEVEL@ @CPUFLAGS@ @EXTRA_CXX_FLAGS@ @DEBUGFLAGS@ 
-AC_CXXFLAGS = @CPUFLAGS@ @DEBUGFLAGS@ 
+AC_CXXFLAGS = @CPUFLAGS@ @EXTRA_CXX_FLAGS@ @DEBUGFLAGS@
 AM_CXXFLAGS = -fno-implicit-templates \
              -Wall -Wno-format -W -Wwrite-strings -Winline $(WERROR) \
              $(OPTIMIZE_CXXFLAGS) $(AC_CXXFLAGS)