Subject: XPM Autodetect Failure in configure

From: [email-masked]
Date: Tue, 27 Jul 1999 21:58:47 -0500 (CDT)

Full_Name: System-V
Version: 2.2.2
CVS_Date: N/A
OS: Solaris 2.x
X_Server: N/A
Submission from: (NULL) (155.102.161.14)

XPM Autodetect Failure in configure

configure \
--with-xpm-library=/myxpm/lib \
--with-xpm-includes=/myxpm/include

In Lines 4365-4369 $xpm_LIBS is set to either

-lXpm  ...or... -L<my-xpm-lib-dir> -lXpm

On Line 4389 for the XpmReadFileToXpmImage check, 
the linking path is set up incorrectly as 
 
LIBS="-l$smr_lib ${xpm_LIBS} $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS
$LIBS"

It should read:
LIBS="${xpm_LIBS} $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"

Since $smr_lib="-lXpm", this causes a misordering in the linker
flags!

"-l$smr_lib ${xpm_LIBS}" ...becomes....

-lXpm -L<my-xpm-lib-dir> -lXpm

diff configure.orig configure
4389c4389

< LIBS="-l$smr_lib ${xpm_LIBS} $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS
$LIBS"
---
> LIBS="${xpm_LIBS} $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]