configure: Add WUtil flags to avoid compilation error
commit664d0a7842488c69eea323f6e1e377eab400a5ed
authorCarlos R. Mafra <crmafra@gmail.com>
Mon, 27 Feb 2012 01:04:19 +0000 (27 01:04 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 27 Feb 2012 01:14:41 +0000 (27 01:14 +0000)
tree1d0c638f1909004dc4cc2c8d9dcd7219a0b89d70
parent27068e19a2c2d33384f0b5860bd339c20e6e0676
configure: Add WUtil flags to avoid compilation error

Just running ./configure; make lead to this compilation error
on openSUSE 12.1:

make[3]: Entering directory `/home/mafra/Window_Maker/fsviewer-app-0.2.6/src'
gcc  -g -O2 -I -I/usr/local/include  -L/usr/lib64 -L/usr/lib64 -o FSViewer FSViewer.o files.o FSFileBrowser.o list.o misc.o prop.o timestampWidget.o attribsInspector.o editInspector
xeInspector.o extnInspector.o iconInspector.o viewInspector.o FSBrowser.o FSPanel.o FSUtils.o FSMenu.o FSFileView.o FSInspector.o magic.o DnD.o FSPathView.o xmodifier.o FSFinder.o F
eButton.o FSMCList.o FSPrefs.o -Lregexp -lregx -lnsl -lWINGs -lWMaker -lXft -lXmu  -lwraster -ltiff -lXpm -lpng -ljpeg -lXext -lX11 -lm
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: FSViewer.o: undefined reference to symbol 'WMGetStandardUserDefaults'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'WMGetStandardUserDefaults' is defined in DSO /usr/lib64/libWUtil.so.2 so try adding it to the linke
mmand line
/usr/lib64/libWUtil.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [FSViewer] Fehler 1
make[3]: Leaving directory `/home/mafra/Window_Maker/fsviewer-app-0.2.6/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/mafra/Window_Maker/fsviewer-app-0.2.6/src'
make[1]: *** [all] Fehler 2

One way to fix this is to use the following option to configure

--with-extralibs=-lWUtil

but it's much better if the configuration script already does that
for you.

So I automated that by using 'get-wutil-flags', and now just running
./configure is fine.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
configure.ac