From c15062a60b10e1847dac8def31cb43abb116dc02 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 15 Dec 2024 01:08:33 +0300 Subject: Make configure script more convenitn Now you can set NOSOCK to even nothing to make libhttpc be built without socket support --- configure | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index b29b9f1..8e2801f 100755 --- a/configure +++ b/configure @@ -30,8 +30,12 @@ echo "Configuration: Compiler: $CC CFLAGS: $CFLAGS LDFLAGS: $LDFLAGS - DESTDIR: $DESTDIR - NOSOCK: ${NOSOCK:-not set}" + DESTDIR: $DESTDIR" +if [ -z "${NOSOCK+x}" ]; then + echo " Will be built with sockets" +else + echo " Will be built without sockets" +fi echo " CFLAGS=$CFLAGS @@ -43,7 +47,7 @@ echo "#ifndef __LIBHTTPC_CONFIG_H__ #define __LIBHTTPC_CONFIG_H__ " > include/config.h -if [ -z "$NOSOCK" ]; then +if [ -z "${NOSOCK+x}" ]; then echo "#define LibHTTPC_SOCK" >> include/config.h fi echo " -- cgit 1.4.1