1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
$NetBSD: patch-ac,v 1.6 2004/02/18 05:07:34 ben Exp $
--- configure.orig 2003-09-08 12:18:58.000000000 -0700
+++ configure
@@ -838,6 +838,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-xft turn on Xft support default=no
--enable-xdbe turn on Xdbe support default=no
@@ -1294,7 +1296,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"
@@ -1395,6 +1412,20 @@ else
LINKSHARED="-L../lib -lfltk_images -lfltk_forms -lfltk"
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
@@ -8919,7 +8950,7 @@ echo "${ECHO_T}yes" >&6
;;
esac
- CXX="$CC"
+# CXX="$CC"
# Show all standard warnings + unused variables when compiling...
OPTIM="-Wall -Wunused $OPTIM"
@@ -9753,6 +9784,7 @@ s,@GLDEMOS@,$GLDEMOS,;t t
s,@GLLIBNAME@,$GLLIBNAME,;t t
s,@IMGLIBNAME@,$IMGLIBNAME,;t t
s,@LIBNAME@,$LIBNAME,;t t
+s,@LIBTOOL@,$LIBTOOL,;t t
s,@LINKFLTK@,$LINKFLTK,;t t
s,@LINKFLTKGL@,$LINKFLTKGL,;t t
s,@LINKFLTKIMG@,$LINKFLTKIMG,;t t
|