No subject

Sat Jan 22 00:14:27 PST 2011

Similarly, you should not rely on AC_CONFIG_FILES to replace bindir and
friends in your shell scripts and other files; instead, let make manage
their replacement. For instance Autoconf ships templates of its shell
scripts ending with ‘.in’, and uses a makefile snippet similar to the
following to build scripts like autoheader and autom4te:

     edit = sed \
             -e 's|@bindir[@]|$(bindir)|g' \
             -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
             -e 's|@prefix[@]|$(prefix)|g'

I've seen this done a lot of times in many in many projects,
it really is a standard idiom and we should use it too.




More information about the xorg-devel mailing list