#!/bin/sh # basic package info p=mpd v=0.12.0 b=warren.dukes@gmail.com . bs/bs-lib.sh cat < t.c < int main () { char *cs = nl_langinfo(CODESET); return 0; } EOF run_cc test $? -eq 0 && echo '#define HAVE_LANGINFO_CODESET 1' # the only feature (non-external library) feature we currently have if test x$want_ipv6 != xno; then cat > t.c < #include #include #ifdef PF_INET6 #ifdef AF_INET6 AP_maGiC_VALUE #endif #endif EOF if $CPP t.c 2>&1 | grep AP_maGiC_VALUE >/dev/null 2>&1; then echo '#define HAVE_IPV6 1' fi fi rm -f t.o t.c