diff -r 096f3105b3b1 -r 78ee95836412 test/configure --- a/test/configure Sun Sep 10 14:29:20 2023 +0200 +++ b/test/configure Tue Sep 12 20:12:22 2023 +0200 @@ -31,6 +31,7 @@ touch "$TEMP_DIR/features" # features +FEATURE_PG=auto # help text printhelp() @@ -57,7 +58,7 @@ --mandir=DIR man documentation [DATAROOTDIR/man] Optional Features: - --enable-pg + --disable-pg __EOF__ } @@ -220,7 +221,7 @@ . make/toolchain.sh # add user specified flags to config.mk -echo >> "$TEMP_DIR/config.mk" +echo "# project specific flags" >> "$TEMP_DIR/config.mk" if [ -n "${ENV_CFLAGS}" ]; then echo "CFLAGS += $ENV_CFLAGS" >> "$TEMP_DIR/config.mk" fi @@ -238,7 +239,7 @@ dependency_libpq() { printf "checking for libpq... " - # dependency libpq + # dependency libpq while true do if [ -z "$PKG_CONFIG" ]; then @@ -260,7 +261,7 @@ dependency_openssl() { printf "checking for openssl... " - # dependency openssl + # dependency openssl while true do if [ -z "$PKG_CONFIG" ]; then @@ -315,7 +316,7 @@ return 0 done - # dependency libxml2 + # dependency libxml2 while true do if [ -z "$PKG_CONFIG" ]; then @@ -400,6 +401,8 @@ if [ "$FEATURE_PG" != "auto" ]; then DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libpq " ERROR=1 + else + unset FEATURE_PG fi fi fi @@ -429,6 +432,12 @@ echo "Build Config:" echo " PREFIX: $PREFIX" echo " TOOLCHAIN: $TOOLCHAIN_NAME" +echo "Features:" +if [ -n "$FEATURE_PG" ]; then +echo " pg: on" +else +echo " pg: off" +fi echo cat "$TEMP_DIR/config.mk" "$TEMP_DIR/make.mk" > config.mk rm -Rf "$TEMP_DIR"