Hi, I'm new to autotools, I want to generate 'foobar.h' from 'configure'. I created 'src/foobar.h.in' with following content: ========= #define PATH_PREFIX "@prefix@" #define PATH_DATADIR "@datadir@" ========= And put 'src/foobar.h' in AC_CONFIG_FILES() in 'configure.ac'. After I run 'autoreconf', the 'src/foobar.h' is generated, however, I got 2 problem for it. First, the generated content is: ========= #define PATH_PREFIX "/home/tao/unstable/stardict" #define PATH_DATADIR "${prefix}/share" ========= "${prefix}" is definitely not working as a C/C++ header. How can I replace the ${prefix} with the real value? Second, everytime I modified the file 'src/foobar.h.in', and run 'make all', it cannot regenerate 'src/foobar.h'. Is there anything wrong? Why make doesn't know the dependency? Thanks. -- Regards Tao Wang _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf