As a side effect: this enables pkg-config support for all
SUPPORT_* items of the EDITME/Makefile.
# handle pkg-config
# beware portability of extended regexps with sed.
# handle pkg-config
# beware portability of extended regexps with sed.
-$egrep "^[$st]*(AUTH|LOOKUP)_[A-Z0-9_]*[$st]*=[$st]*" $mft | \
+$egrep "^[$st]*(AUTH|LOOKUP|SUPPORT)_[A-Z0-9_]*[$st]*=[$st]*" $mft | \
sed "s/[$st]*=/='/" | \
sed "s/\$/'/" > $mftt
$egrep "^[$st]*((USE_(OPENSSL|GNUTLS)_PC)|SUPPORT_TLS|USE_GNUTLS|PCRE2?_CONFIG|AVOID_GNUTLS_PKCS11)[$st]*=[$st]*" $mft | \
sed "s/[$st]*=/='/" | \
sed "s/\$/'/" > $mftt
$egrep "^[$st]*((USE_(OPENSSL|GNUTLS)_PC)|SUPPORT_TLS|USE_GNUTLS|PCRE2?_CONFIG|AVOID_GNUTLS_PKCS11)[$st]*=[$st]*" $mft | \
elif [ "$var" != "${var#AUTH_}" ]; then
echo "CFLAGS += $cflags"
echo "AUTH_LIBS += $libs"
elif [ "$var" != "${var#AUTH_}" ]; then
echo "CFLAGS += $cflags"
echo "AUTH_LIBS += $libs"
+ elif [ "$var" != "${var#SUPPORT_}" ]; then
+ echo "CFLAGS += $cflags"
+ echo "LIBS += $libs"
else
echo >&2 "Don't know how to handle pkg-config for $var"
fi
else
echo >&2 "Don't know how to handle pkg-config for $var"
fi
# You need to have the IDN library installed.
# If you want IDNA2008 mappings per RFCs 5890, 6530 and 6533, you additionally
# need libidn2 and SUPPORT_I18N_2008.
# You need to have the IDN library installed.
# If you want IDNA2008 mappings per RFCs 5890, 6530 and 6533, you additionally
# need libidn2 and SUPPORT_I18N_2008.
+# If you're using pkg-config, enable the _PC lines, otherwise the LDFLAGS ones.
+# SUPPORT_I18N_PC=libidn
-# LDFLAGS += -lidn -lidn2
+# SUPPORT_I18N_2008_PC=libidn2
+# LDFLAGS += -lidn2
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------