From 412cb1ee105a74999a3ffac4e60e6602c5f2e541 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 6 Sep 2006 09:26:51 +0000 Subject: bs: a work in progress.. git-svn-id: https://svn.musicpd.org/mpd/trunk@4737 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- bs/mkconfig_header.sh | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100755 bs/mkconfig_header.sh (limited to 'bs/mkconfig_header.sh') diff --git a/bs/mkconfig_header.sh b/bs/mkconfig_header.sh new file mode 100755 index 000000000..0f3f0d0e3 --- /dev/null +++ b/bs/mkconfig_header.sh @@ -0,0 +1,93 @@ +#!/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 -- cgit v1.2.3