Bug 75504 - aspell breakages in koffice ./configure
Summary: aspell breakages in koffice ./configure
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-18 11:14 UTC by Troy Unrau
Modified: 2004-02-18 23:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
config.log relevant sections (7.09 KB, text/plain)
2004-02-18 11:15 UTC, Troy Unrau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Unrau 2004-02-18 11:14:12 UTC
Version:           HEAD (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.2.2 [FreeBSD] 20030205 (release) 
OS:          FreeBSD

koffice% ./configure --prefix=$KDEDIR --with-extra-includes=/usr/local/include --with-extra-libs=/usr/local/lib

From Configure output in koffice:

...
checking for new_aspell_config in -laspell... no
checking aspell.h usability... no
checking aspell.h presence... no
checking for aspell.h... no
...

Your libaspell is too old or not installed, I couldn't find aspell.h.
You must download aspell >= 0.50.2
See http://aspell.net/. Spell-checking disabled.

Section from config.log attached as aspell.txt

Also note that /usr/local/include/aspell.h exists

"ldconfig -r | grep aspell" returns: 
215:-laspell.15 => /usr/local/lib/libaspell.so.15

"pkg_glob aspell" returns:
aspell-0.50.3_1
Comment 1 Troy Unrau 2004-02-18 11:15:23 UTC
Created attachment 4760 [details]
config.log relevant sections
Comment 2 David Faure 2004-02-18 11:35:31 UTC
On Wednesday 18 February 2004 11:14, Troy Unrau wrote:
> Also note that /usr/local/include/aspell.h exists

Apparently AC_CHECK_HEADER(aspell.h) doesn't look in /usr/local/include

Does --with-extra-includes=/usr/local/include --with-extra-libs=/usr/local/lib  help?

Or try replacing AC_CHECK_HEADER with KDE_CHECK_HEADER in koffice/lib/kospell/configure.in.in,
then run 

make -f Makefile.cvs 
./configure [...]

Comment 3 Troy Unrau 2004-02-18 20:20:51 UTC
Tried configuring using those options (as noted in the original report) to no effect -- trying the second recommendation...

After changing both AC_CHECK_HEADER with KDE_CHECK_HEADER and AC_CHECK_LIB with KDE_CHECK_LIB for aspell, then it works.

Since my commit bit in CVS is b0rked, if you submit the change and close the bug report, it would be appreciated.
Comment 4 David Faure 2004-02-18 23:01:07 UTC
CVS commit by faure: 

Use KDE_CHECK* instead of AC_CHECK* to find libaspell more easily (e.g. in /usr/local)
CCMAIL: 75504-done@bugs.kde.org


  M +4 -4      configure.in.in   1.8.2.1


--- koffice/lib/kospell/configure.in.in  #1.8:1.8.2.1
@@ -2,11 +2,11 @@
    AC_LANG_C
    dnl Check for aspell library
-   AC_CHECK_LIB(aspell, new_aspell_config, [LIBASPELL="-laspell"])
-   AC_CHECK_HEADER(aspell.h)
+   KDE_CHECK_LIB(aspell, new_aspell_config, [LIBASPELL="-laspell"])
+   KDE_CHECK_HEADER(aspell.h)
    if test -z "$ac_cv_header_aspell_h"; then
        echo ""
-       echo "Your libaspell is too old or not installed, I couldn't find aspell.h."
+       echo "I couldn't find aspell.h, part of the libaspell package."
        echo "You must download aspell >= 0.50.2"
-       echo "See http://aspell.net/. Spell-checking disabled."
+       echo "See http://aspell.net/ or use your distribution's packages for libaspell."
        echo ""
        LIBASPELL=""