Hello Jari,
* Jari Strand wrote on Sun, Dec 03, 2006 at 08:08:04PM CET:
>
> dnl Check for nasm
> AC_PATH_PROG(NASM_PATH, nasm, no)
> AC_SUBST(NASM_PATH)
> if test x$NASM_PATH = xno; then
> AC_MSG_WARN(Couldn't find nasm)
> HAVE_NASM="no"
> else AC_DEFINE(HAVE_NASM, 1, [Define if NASM, the netwide assembler, is
> available])
> HAVE_NASM="yes"
> fi
>
> AM_CONDITIONAL(HAVE_NASM, test "x$HAVE_NASM" = "xyes")
> And this is what I have in Makefile.am:
>
> ..asm.o:
This line should be (minus the indentation):
.asm.o:
> nasm -o $@ -f elf -dLINUX $<
If you do the effort of defining NASM_PATH above, then you should use it
here, no?
$(NASM_PATH) -o $@ -f elf -dLINUX $<
But hard-coding elf and LINUX won't make your package very portable
(in case that's what you're intending).
Hope that helps.
Cheers,
Ralf