autoconf: Report the compiler options in the summary
authorDan Nicholson <dbn.lists@gmail.com>
Wed, 12 Dec 2007 17:12:15 +0000 (09:12 -0800)
committerDan Nicholson <dbn.lists@gmail.com>
Wed, 12 Dec 2007 17:12:15 +0000 (09:12 -0800)
Report the compiler flags and macros that will be used in the build.
This just provides a quick way to see what configure has silently been
doing.

configure.ac

index 6330cf85e0a62bdac792236d91c00dfd171ae765..94d84ec6c31d4b499c56913fb8bdf9b8ee95243f 100644 (file)
@@ -804,6 +804,18 @@ else
     echo "        Demos:           $program_dirs"
 fi
 
+dnl Compiler options
+# cleanup the CFLAGS/CXXFLAGS/DEFINES vars
+cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
+    $SED 's/^ *//;s/  */ /;s/ *$//'`
+cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
+    $SED 's/^ *//;s/  */ /;s/ *$//'`
+defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/  */ /;s/ *$//'`
+echo ""
+echo "        CFLAGS:          $cflags"
+echo "        CXXFLAGS:        $cxxflags"
+echo "        Macros:          $defines"
+
 echo ""
 echo "        Run 'make' to build Mesa"
 echo ""