would not be noticed by the top level configure script.
That was bad for automated production environments, as errors would
go thru unnoticed, and caused havoc much later in the production.
Reviewed by: Jim Jagielski
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@93219
13f79535-47bb-0310-9956-
ffa450edef68
if [ "x$verbose" = "xyes" ]; then
vflag="-v";
fi
-if [ "x$quiet" = "xyes" ]; then
- (cd $src; ./Configure ${vflag} -file Configuration.apaci >/dev/null);
+rc=`if [ "x$quiet" = "xyes" ]; then
+ (cd $src; ./Configure ${vflag} -file Configuration.apaci >/dev/null; echo $? >&3; );
else
- (cd $src; ./Configure ${vflag} -file Configuration.apaci |\
+ (cd $src; ( ./Configure ${vflag} -file Configuration.apaci; echo $? >&3; ) |\
sed -e '/^Using config file:.*/d' \
-e "s:Makefile in :Makefile in $src\\/:" \
-e "s:Makefile\$:Makefile in $src:")
-fi
+fi 3>&1 1>&2`
+[ $rc = 0 ] || exit 1
##
## final hints
Changes with Apache 1.3.24
+ *) Fix the longstanding bug that errors (returned by src/Configure)
+ would not be noticed by the top level configure script.
+ That was bad for automated configurations. [Martin Kraemer]
+
*) Link with -lpthread on Solaris since we reference pthread
functions for the accept mutex. Previously, the link step
would succeed but we would link to bogus versions of the
echo "** Apache requires an ANSI C Compiler, such as gcc. "
echo ""
echo "======== Error Output for sanity check ========"
- (./helpers/TestCompile -v sanity)
+ (./helpers/TestCompile -v sanity) 2>&1
echo "============= End of Error Report ============="
echo ""
echo " Aborting!"