diff --git a/acinclude.m4 b/acinclude.m4 index 0f29685..198df7e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -36,11 +36,9 @@ if test "$TARGET" = "native"; then if test "$prefix" = "NONE"; then prefix=/usr/local fi - TARGET_PREFIX=$prefix - if test "$exec_prefix" = "NONE"; then - exec_prefix=$prefix - fi targetprefix=$prefix + TARGET_PREFIX=$prefix + AC_DEFINE_UNQUOTED(TARGET_PREFIX, "$TARGET_PREFIX", [The targets prefix]) elif test "$TARGET" = "cdk"; then AC_MSG_RESULT(cdk) @@ -65,6 +63,10 @@ else AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]); fi +if test "$exec_prefix" = "NONE"; then + exec_prefix=$prefix +fi + AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_SYS_LARGEFILE