#1 add configure support for fltk with Xft linked in

closed
nobody
None
5
2006-03-26
2005-11-22
Anonymous
No

This patch is intended for linux systems that have
built FLTK with --enable-xft, without this patch
fgrun's configure will fail and will not be able to
build fgrun. The standard behaviour for all other
systems should not have changed.

Index: configure.ac

RCS file: /cvsroot/fgrun/fgrun/configure.ac,v
retrieving revision 1.25
diff -u -3 -p -r1.25 configure.ac
--- configure.ac 10 Nov 2005 23:01:35 -0000
1.25
+++ configure.ac 12 Nov 2005 07:02:40 -0000
@@ -198,7 +198,18 @@ AC_LANG_PUSH(C++)

dnl Check for FLTK header and library.
AC_CHECK_HEADER(FL/Fl.H)
-AC_CHECK_LIB(fltk, fl_numericsort)
+
+dnl
----------------------------------------------------------------------
+dnl check if fltk has been compiled with Xft (and add
lib if required)
+dnl if the check is not done before the other checks,
linking will fail
+dnl on platforms with Xft enabled fltk builds
+dnl
----------------------------------------------------------------------
+
+AC_CHECK_LIB(fltk,XftFontOpen,LIBS=" -lfltk -lXft
$LIBS", AC_CHECK_LIB(fltk, fl_numericsort) , -lXft)
+dnl save_LIBS="$LIBS"
+
+dnl the next line could be used instead of the
following chunk of code
+dnl AC_CHECK_LIB(fltk_gl,gl_start)

save_LIBS="$LIBS"
LIBS="-lfltk_gl $LIBS"

Discussion

  • Frederic Bouvier

    • status: open --> closed
     
  • Frederic Bouvier

    Logged In: YES
    user_id=7574

    Commited - Thanks

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks