[m-rev.] for review: configure --enable-ssdebug-grades

Peter Wang novalazy at gmail.com
Thu Jul 29 12:39:45 AEST 2010


Branches: main, 10.04

configure.in:
        Add configure option `--enable-ssdebug-grades' that appends
        hlc.gc.ssdebug and java.ssdebug to LIBGRADES if hlc.gc or java grades
        are also present.

        If there is no bootstrap compiler, print out a message describing which
        grades will be installed, and how to reduce the set of grades.
        This should be helpful for newcomers.

diff --git a/configure.in b/configure.in
index d43438e..5738d0e 100644
--- a/configure.in
+++ b/configure.in
@@ -3248,6 +3248,11 @@ AC_ARG_ENABLE(decl-debug-grades,
                     of the library]),
     enable_decl_debug_grades="$enableval",enable_decl_debug_grades=yes)
 
+AC_ARG_ENABLE(ssdebug-grades,
+    AC_HELP_STRING([--enable-ssdebug-grades],
+                   [install the ssdebug versions of the library]),
+    enable_ssdebug_grades="$enableval",enable_ssdebug_grades=no)
+
 AC_ARG_ENABLE(prof-grades,
     AC_HELP_STRING([--disable-prof-grades],
                    [do not install profiling versions of the library]),
@@ -3586,6 +3591,17 @@ then
     LIBGRADES="$DEFAULT_BASE_GRADE.gc hlc.gc.trseg"
 fi
 
+# Add `.ssdebug' grades.
+if test "$enable_ssdebug_grades" = yes; then
+    # LLDS has better debug grades available.
+    case "$LIBGRADES" in
+        *hlc.gc*) LIBGRADES="$LIBGRADES hlc.gc.ssdebug" ;;
+    esac
+    case "$LIBGRADES" in
+        *java*) LIBGRADES="$LIBGRADES java.ssdebug" ;;
+    esac
+fi
+
 # Allow the user to override the default list of library grades
 
 if test "$enable_libgrades_given" = no -a -f .enable_lib_grades ; then
@@ -5194,3 +5210,26 @@ case "$remake_dependencies.$reconfiguring" in
 esac
 
 #-----------------------------------------------------------------------------#
+
+if test "$BOOTSTRAP_MC" = ""
+then
+cat << NO_SURPRISES
+
+******************************************************************************
+
+\`make install' will install this list of library grades:
+
+    $LIBGRADES
+
+If you are new to Mercury, please be aware that a large set of grades will
+take a long time to build, and you will likely not need most of them anyway.
+You can reduce the number of library grades by using configure options
+(e.g. \`configure --disable-most-grades'), or proceed as follows:
+
+    make -j4 install LIBGRADES='hlc.gc asm_fast.gc.decldebug'
+
+******************************************************************************
+NO_SURPRISES
+fi
+
+#-----------------------------------------------------------------------------#

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list