summaryrefslogtreecommitdiff
path: root/build_posix/reconf
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-09-30 17:32:42 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-09-30 17:32:42 +1000
commita7c151b41903a23b5fd991d419989983566bea72 (patch)
tree4836f76f39da1958093d6f3708e0bae28ff62b86 /build_posix/reconf
parent5e23906bb7164f9ebc0217432b8fee5bf0a8e8d0 (diff)
downloadmongo-a7c151b41903a23b5fd991d419989983566bea72.tar.gz
Put build subdirs into build_posix/Make.subdirs, use that to generate both Makefile.am and configure.ac. This addresses issues in releases where some of those subdirs are excluded.
Diffstat (limited to 'build_posix/reconf')
-rwxr-xr-xbuild_posix/reconf12
1 files changed, 4 insertions, 8 deletions
diff --git a/build_posix/reconf b/build_posix/reconf
index 6923b7758da..ee6533241de 100755
--- a/build_posix/reconf
+++ b/build_posix/reconf
@@ -33,14 +33,10 @@ echo "# This file is built automatically from build_posix/configure.ac.in."
sed -n '1,/BEGIN check existence/p' configure.ac.in
-sed -n '/BEGIN check existence/,/END check existence/p' configure.ac.in |
- sed '/^#/d' | while read l ; do
- f=`echo $l | sed -e 's/^.*\[//' -e 's/:.*//' -e 's/\].*//'`
- case "$f" in
- [a-z]*) [ -d ../`dirname $f` ] || continue ;;
- esac
- echo "$l"
- done
+sed -e 's/#.*$//' -e '/^$/d' Make.subdirs | while read dir cond ; do
+ test -d ../$dir || continue
+ echo 'AC_CONFIG_FILES(['$dir/Makefile'])'
+done
sed -n '/END check existence/,$p' configure.ac.in
) > ../configure.ac