[Kst] configure bug

George Staikos staikos at kde.org
Mon May 30 14:20:44 CEST 2005


On Monday 30 May 2005 07:50, Matthew D Truch wrote:
> Currently, configure doesn't check if -lkjsembed is available (at least
> it doesn't seem to) and therefore the build fails when linking the
> js extension.  I'd expect configure to either die when kjsembed can't be
> found or turn off the build of the js extension.

It seems to be there:

AC_DEFUN([KST_CHECK_JSE],
[
  AC_MSG_CHECKING(whether to use our own KJSEmbed)
  AC_CACHE_VAL(ac_cv_kjs_setup,
  [
    AC_LANG_SAVE
    AC_LANG_CPLUSPLUS
    save_CXXFLAGS="$CXXFLAGS"
    CXXFLAGS="$KDE_INCLUDES $QT_INCLUDES"
    save_LDFLAGS="$LDFLAGS"
    LDFLAGS="$LDFLAGS -L$ac_kde_libraries -lkjsembed"

    AC_TRY_LINK([
      #include <kdeversion.h>
      #include <kjsembed/jssecuritypolicy.h>
    ],
    [
      #if KDE_VERSION < ((3<<16) | (3<<8) | (89))
         KDE_choke me
      #endif
    ],
      ac_cv_kjs_setup=yes,
      ac_cv_kjs_setup=no
    )
    LDFLAGS="$save_LDFLAGS"
    CXXFLAGS="$save_CXXFLAGS"
    AC_LANG_RESTORE
   ])

  if test "$ac_cv_kjs_setup" = "yes"; then
    AC_MSG_RESULT(no)
  else
    AC_MSG_RESULT(yes)
  fi
])

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list