>>>>> "R" == R Lahaye <[EMAIL PROTECTED]> writes:
R> Hi, R> I've reported earlier that my configure script can't check for R> Xforms 1.0 on my FreeBSD PC, because the configure-test-program R> doesn't add -lXpm to the libs. As a result: Xforms not found! (I R> have to add manually the -lXpm to the configure script). But the script does add -lXpm... R> Consequently, the line in configure that sets the libs for the R> xforms check: LIBS="-lforms $LIBS" should be changed into: R> LIBS="-lforms -lXpm $LIBS" that is on my FreeBSD 4.6 PC. In config/xforms.m4, there is already dnl Usage LYX_PATH_XFORMS: Checks for xforms library and flags dnl If it is found, the variable XFORMS_LIB is set to the relevant -l flags, dnl and FORMS_H_LOCATION / FLIMAGE_H_LOCATION is also set AC_DEFUN(LYX_PATH_XFORMS,[ LIBS="$XPM_LIB $LIBS" AC_CHECK_LIB(forms, fl_initialize, XFORMS_LIB="-lforms", [AC_CHECK_LIB(xforms, fl_initialize, XFORMS_LIB="-lxforms", [LYX_LIB_ERROR(libforms or libxforms,xforms)])]) AC_SUBST(XFORMS_LIB) Which should do what you want. I can see several problems with the current code (like Lars' creative use of fourth argument of AC_CHECK_LIB), but I would like to be sure of what your problem is before trying to fix it. Can you send me the configure output, as well as your config.log when things fail? I'm sure you have done t already, but I lost what I had. R> Notice that I need -lXpm (capital X), whereas the README file talks R> about -lxpm. Don't know what is the standard here!?! Should be capital X. R> Regards, Rob. R> PS: I'm not subscribed to this mailinglist, but keep in touch via R> the archives. However, the archive hasn't been updated since August R> 4th!