9 echo "#if HAVE_GNUC_ATTRIBUTE" >> $TAIL
10 cat "$@" | grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$//' |
13 FcCacheDir|FcCacheSubdir)
17 hattr='__attribute((visibility("hidden")))'
18 echo "extern __typeof ($name) $alias $hattr;" >> $HEAD
19 echo "#define $name $alias" >> $HEAD
20 ifdef=$(grep -l '^'$name'[ (]' "$SRCDIR"/*.c | sed -n 1p | sed -e 's/^.*\/\([^.]*\)\.c/__\1__/')
21 if [ -z "$ifdef" ] ; then
22 echo "error: could not locate $name in src/*.c" 1>&2
25 if [ "$ifdef" != "$last" ] ; then
26 [ -n "$last" ] && echo "#endif /* $last */" >> $TAIL
27 echo "#ifdef $ifdef" >> $TAIL
30 echo "# undef $name" >> $TAIL
31 cattr='__attribute((alias("'$alias'"), visibility("default")))'
32 echo "extern __typeof ($name) $name $cattr;" >> $TAIL
36 [ $? -ne 0 ] && exit 1
37 echo "#endif /* $ifdef */" >> $TAIL
38 echo "#endif /* HAVE_GNUC_ATTRIBUTE */" >> $TAIL