echo Running the configure script to create config.mk
echo
+########################################################################
# Parse the command line arguments
+########################################################################
for x in $*
do
a=$1
shift
done
-# Set any missing values (FIXME remove the ultra-fatal -W options when finished converting from autotools)
+
+########################################################################
+# Set any missing values
+########################################################################
# Accept PREFIX as a substitute for CTDLDIR, but only if CTDLDIR is not already set
[ "$CTDLDIR" = "" ] && [ "$PREFIX" != "" ] && CTDLDIR=$PREFIX
[ "$CTDLDIR" = "" ] && CTDLDIR=/usr/local/citadel
# Permit override of CFLAGS and LDFLAGS using environment variables
-[ "$CFLAGS" = "" ] && CFLAGS='-ggdb -Werror -Wfatal-errors -Wno-discarded-qualifiers'
+[ "$CFLAGS" = "" ] && CFLAGS='-ggdb -Wno-discarded-qualifiers'
[ "$LDFLAGS" = "" ] && LDFLAGS=''
+
########################################################################
# Test for OpenSSL
########################################################################
}
+########################################################################
# FIXME do a real build id here
+########################################################################
CFLAGS=${CFLAGS}' -DBUILD_ID=\"unknown\"'
-# Output the config.mk
+########################################################################
+# Output the config.mk
+########################################################################
(
- echo # config.mk is generated by configure
+ echo '# config.mk is generated by configure'
echo "CTDLDIR := ${CTDLDIR}"
echo "CFLAGS := ${CFLAGS}"
echo "LDFLAGS := ${LDFLAGS}"