mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
$NetBSD: patch-ac,v 1.11 2010/04/09 13:35:42 obache Exp $
|
|
|
|
--- configure.orig 2009-12-27 15:24:34.000000000 +0000
|
|
+++ configure
|
|
@@ -1323,6 +1323,8 @@ Optional Features:
|
|
--enable-debug turn on debugging default=no
|
|
--enable-gl turn on OpenGL support default=yes
|
|
--enable-shared turn on shared libraries default=no
|
|
+ --enable-libtool=LIBTOOL_PATH
|
|
+ turn on building with libtool [default=no]
|
|
--enable-threads enable multi-threading support
|
|
--enable-quartz use Quartz instead of Quickdraw (default=no)
|
|
--disable-largefile omit support for large files
|
|
@@ -1898,7 +1900,22 @@ if test "${enable_shared+set}" = set; th
|
|
enableval=$enable_shared;
|
|
fi
|
|
|
|
-if test x$enable_shared = xyes; then
|
|
+
|
|
+# Check whether --enable-libtool or --disable-libtool was given.
|
|
+if test "${enable_libtool+set}" = set; then
|
|
+ enableval="$enable_libtool"
|
|
+
|
|
+if test x$enable_libtool != xno; then
|
|
+ LIBTOOL="$enable_libtool"
|
|
+ enable_shared=no
|
|
+else
|
|
+ LIBTOOL=""
|
|
+fi
|
|
+fi
|
|
+
|
|
+
|
|
+if test "$enable_shared" = "yes"; then
|
|
+
|
|
PICFLAG=1
|
|
SHAREDSUFFIX=""
|
|
FLUID="fluid-shared"
|
|
@@ -2018,8 +2035,20 @@ else
|
|
LINKSHARED="../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
|
|
fi
|
|
|
|
-
|
|
-
|
|
+if test "x$LIBTOOL" != "x"; then
|
|
+ LINKFLTK="../src/libfltk.la"
|
|
+ if test "x$LINKFLTKGL" != "x"; then
|
|
+ LINKFLTKGL="../src/libfltk_gl.la"
|
|
+ fi
|
|
+ if test "x$LINKFLTKIMG" != "x"; then
|
|
+ LINKFLTKIMG="../src/libfltk_images.la"
|
|
+ fi
|
|
+ LINKSHARED="-lfltk_images -lfltk_forms -lfltk"
|
|
+ DSONAME="libfltk.la"
|
|
+ FLDSONAME="libfltk_forms.la"
|
|
+ GLDSONAME="libfltk_gl.la"
|
|
+ IMGDSONAME="libfltk_images.la"
|
|
+fi
|
|
|
|
|
|
|