[Box Backup-commit] COMMIT r2619 - box/trunk

subversion at boxbackup.org subversion at boxbackup.org
Thu Feb 18 18:11:02 GMT 2010


Author: chris
Date: 2010-02-18 18:11:01 +0000 (Thu, 18 Feb 2010)
New Revision: 2619

Modified:
   box/trunk/configure.ac
Log:
Configure subdirectories specified in modules.txt.

Detect C compiler as well as C++.


Modified: box/trunk/configure.ac
===================================================================
--- box/trunk/configure.ac	2010-02-18 14:59:47 UTC (rev 2618)
+++ box/trunk/configure.ac	2010-02-18 18:11:01 UTC (rev 2619)
@@ -13,6 +13,7 @@
 ### Checks for programs.
 
 AC_LANG([C++])
+AC_PROG_CC
 AC_PROG_CXX
 AC_CXX_EXCEPTIONS
 AC_CXX_NAMESPACES
@@ -382,6 +383,19 @@
 	exit 1
 fi
 
+cat parcels.txt | sed -e 's/#.*//' | while read cmd subdir configure_args; do
+	if test "$cmd" = "subdir"; then
+		echo
+		echo "Configuring $subdir..."
+		cd $subdir
+		export CC CXX CXXFLAGS LDFLAGS LIBS
+		if ! ./configure $configure_args; then
+			echo "Configuring $subdir failed!" >&2
+			exit 1
+		fi
+	fi
+done || exit $?
+
 # Write summary of important info
 cat <<EOC
 A summary of the build configuration is below. Box Backup will function




More information about the Boxbackup-commit mailing list