AC_INIT([auto-example], [0.1], [some@mail.com])
AM_INIT_AUTOMAKE([1.10 no-define foreign])
AC_DEFINE([PACKAGE_DATADIR],[$(prefix)],[Package data directory])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_CHECK_HEADERS([stdio.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
when running autoreconf --force --install I get all the files generated, but running ./configure --prefix=/home/me/, the prefix is not write it on my config.h
I'm just getting:
/* Package data directory */
#define PACKAGE_DATADIR $(prefix)
How can I print the correct path?
Note: I'm not using a user-defined config.h.in, autoheader generates it from configure.ac
]]>