>Add program_LDADD = @SOME_AUTOCONF_VAR@ to the Makefile.am and then set
>the variable to "-lpopt" in configure.in when the library is present.
>You can also modify the LIBS variable in configure.in but I have had
>problems messing with the builtin variables.
Didn't work. In Project|Options, I added @POPTLIB@ to linker options; this adds
the line
coderom_LDADD = @POPTLIB@
to coderom/coderom/Makefile.in . I changed the popt test to
AC_CHECK_HEADERS(popt.h,POPTLIB="-lpopt",POPTLIB=)
in configure.in , configured, and made. I got the error
gcc: @POPTLIB@: No such file or directory
How do I make this work?
phma