use a macro instead of an inline function, so that backtraces will report the caller...
[asterisk-bristuff.git] / build_tools / make_buildopts_h
blobac41a006a4eb9feb001ea6f9bc7b4613943cab93
1 #!/bin/sh
3 cat << END
4 /*
5 * buildopts.h
6 * Automatically generated
7 */
9 END
10 TMP=`${GREP} MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g' | sed 's/-D//g'`
11 for x in ${TMP}; do
12 echo "#define ${x} 1"
13 done
14 if ${GREP} AST_DEVMODE makeopts | ${GREP} -q yes
15 then
16 echo "#define AST_DEVMODE 1"