Annotation of Amaya/configure.in, revision 1.186
1.1 cvs 1: dnl
2: dnl Process this file with autoconf to produce a configure script.
3: dnl Autoconf script for Amaya and Thot.
1.10 cvs 4: dnl Daniel Veillard and Irene Vatton, 1997
1.1 cvs 5: dnl
6:
7: dnl ***************************************************************
8: dnl
9: dnl GENERIC AUTOCONF STUFF : GUESS INFORMATIONS ON SYSTEM SETUP
10: dnl
11: dnl ***************************************************************
12:
1.114 kahan 13: AC_PREREQ(2.53)
1.1 cvs 14: AC_INIT(thotlib/internals/h/constpiv.h)
15: AC_REVISION
16:
17: dnl
1.69 kahan 18: dnl Verify that configure is not being called in the Amaya directory
19: dnl
20: if test -d batch -a -f configure.in ; then
1.70 kahan 21: echo
22: echo "****************************************************************"
1.69 kahan 23: echo ERROR: You must invoke the configure script in a subidrectory
24: echo under the Amaya tree.
25: echo For example:
26: echo " cd Amaya ; mkdir obj ; cd obj ; ../configure [your options] "
1.70 kahan 27: echo "****************************************************************"
28: echo
1.69 kahan 29: exit 1
30: fi
31:
32: dnl
1.1 cvs 33: dnl Checks for platform information
34: dnl
35:
36: AC_CANONICAL_SYSTEM
37: AC_CONFIG_HEADER(config.h)
38:
39: dnl
40: dnl Initializing Automake
41: dnl
42:
43: AC_PROG_MAKE_SET
44: AC_ARG_PROGRAM
45:
46: dnl
47: dnl Checks for programs.
48: dnl
49:
50: AC_PROG_YACC
51: AC_PROG_CC
52: AC_PROG_CPP
1.122 gully 53: AC_PROG_CXX
1.1 cvs 54: AC_PROG_LEX
55: AC_PROG_AWK
56: AC_PROG_INSTALL
57: AC_PROG_LN_S
58: AC_PROG_MAKE_SET
59: AC_PROG_RANLIB
60: AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/ucb/bin)
61: AC_PATH_PROG(MV, mv, /bin/mv, $PATH:/bin:/usr/bin:/usr/ucb/bin)
62: AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/ucb/bin)
63: AC_PATH_PROG(MKDIR, mkdir, /bin/mkdir, $PATH:/bin:/usr/bin:/usr/ucb/bin)
64: AC_PATH_PROG(ECHO, echo, /bin/echo, $PATH:/bin:/usr/bin:/usr/ucb/bin)
65: AC_PATH_PROG(CAT, cat, /bin/cat, $PATH:/bin:/usr/bin:/usr/ucb/bin)
66: AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/ucb/bin)
67: AC_PATH_PROG(SED, sed, /bin/sed, $PATH:/bin:/usr/bin:/usr/ucb/bin)
68: AC_PATH_PROG(AR, ar, /usr/bin/ar, $PATH:/bin:/usr/bin:/usr/ucb/bin)
1.6 cvs 69: AC_PATH_PROG(DIFF, diff, /usr/bin/diff, $PATH:/bin:/usr/bin:/usr/ucb/bin)
1.1 cvs 70:
1.171 vatton 71:
1.1 cvs 72: dnl
73: dnl Checks for libraries.
74: dnl
75:
76: AC_CHECK_LIB(socket, socket, )
77: AC_CHECK_LIB(inet, connect)
78: AC_CHECK_LIB(nsl, t_accept)
79: AC_CHECK_LIB(dl, dlopen)
1.141 gully 80: #AC_PATH_X
81: #AC_PATH_XTRA
1.1 cvs 82:
1.41 cvs 83: dnl
1.5 cvs 84: dnl Checks for header files.
85: dnl
86:
87: AC_HEADER_DIRENT
88: AC_HEADER_STDC
89: AC_HEADER_SYS_WAIT
90:
91: AC_CHECK_HEADERS(stdio.h)
92: AC_CHECK_HEADERS(sys/types.h types.h)
93: AC_CHECK_HEADERS(sys/unistd.h unistd.h)
94: AC_CHECK_HEADERS(sys/fcntl.h fcntl.h)
95: AC_CHECK_HEADERS(sys/limits.h limits.h)
96: AC_CHECK_HEADERS(sys/stat.h stat.h)
97: AC_CHECK_HEADERS(sys/file.h)
98: AC_CHECK_HEADERS(sys/ioctl.h)
99: AC_CHECK_HEADERS(sys/time.h time.h)
100: AC_CHECK_HEADERS(sys/systeminfo.h)
1.46 cvs 101: AC_CHECK_HEADERS(sys/string.h strings.h)
1.34 cvs 102: AC_CHECK_HEADERS(sys/syslog.h syslog.h)
1.5 cvs 103: AC_CHECK_HEADERS(sys/socket.h socket.h)
1.131 gully 104:
105: # SG: not used ? => do not compile on macosx
106: # AC_CHECK_HEADERS(appkit/appkit.h appkit.h)
107: # AC_CHECK_HEADERS(apppkit/apppkit.h apppkit.h)
108:
1.5 cvs 109: AC_CHECK_HEADERS(netinet/in.h in.h)
110: AC_CHECK_HEADERS(dn.h)
111: AC_CHECK_HEADERS(sys/ipc.h)
112: AC_CHECK_HEADERS(net/errno.h sys/errno.h errno.h)
113: AC_CHECK_HEADERS(pwd.h)
114: AC_CHECK_HEADERS(grp.h)
115: AC_CHECK_HEADERS(arpa/inet.h inet.h)
116: AC_CHECK_HEADERS(netdb.h)
117: AC_CHECK_HEADERS(manifest.h)
118: AC_CHECK_HEADERS(bsdtypes.h)
119: AC_CHECK_HEADERS(stdefs.h)
120: AC_CHECK_HEADERS(bsdtime.h)
121: AC_CHECK_HEADERS(sys/select.h select.h)
122: AC_CHECK_HEADERS(dnetdb.h)
123: AC_CHECK_HEADERS(libc.h)
124: AC_CHECK_HEADERS(stdlib.h)
125: AC_CHECK_HEADERS(malloc.h)
126: AC_CHECK_HEADERS(memory.h)
127: AC_CHECK_HEADERS(unixlib.h)
128: AC_CHECK_HEADERS(ctype.h)
129: AC_CHECK_HEADERS(cursesX.h curses.h)
130: AC_CHECK_HEADERS(sys/resource.h resource.h)
131: AC_HEADER_DIRENT
132: AC_CHECK_HEADERS(dir.h direct.h) dnl AC_HEADER_DIRENT only checks for some..
133: AC_HEADER_STDC
134: AC_HEADER_SYS_WAIT
135: AC_HEADER_TIME
136: AC_HEADER_STAT
1.103 kahan 137: AC_CHECK_HEADERS(stdint.h)
1.5 cvs 138:
139: dnl
140: dnl Checks for typedefs, structures, and compiler characteristics.
141: dnl
142:
143: AC_C_CONST
144: AC_C_INLINE
145: AC_TYPE_MODE_T
146: AC_TYPE_OFF_T
147: AC_TYPE_SIZE_T
148: AC_HEADER_TIME
149: AC_STRUCT_TM
150: AC_STRUCT_TIMEZONE
151: AC_TYPE_UID_T
152:
153: dnl
154: dnl Checks for library functions.
155: dnl
156:
157: AC_FUNC_ALLOCA
158: AC_TYPE_GETGROUPS
159: AC_PROG_GCC_TRADITIONAL
160: AC_FUNC_MEMCMP
161: AC_FUNC_MMAP
162: AC_TYPE_SIGNAL
163: AC_FUNC_VPRINTF
1.58 cvs 164: AC_CHECK_FUNCS(getcwd gethostname gettimeofday getwd mkdir mktime putenv select socket strdup strerror strftime strstr strtod strtol uname lstat strcasecmp strncasecmp strchr memcpy)
1.5 cvs 165:
1.132 gully 166: #
167: # Check for operating system (UNIX / WINDOWS / MACOSX )
168: # ---------->
1.178 gully 169: # canonicalize the target OS
170: AMAYAOS="LINUX"
1.132 gully 171: case $target_os in
1.178 gully 172: aix*) AMAYAOS="LINUX" ;;
173: cygwin*) AMAYAOS="WINDOWS" ;;
174: darwin*) AMAYAOS="MACOSX" ;;
175: freebsd2*) AMAYAOS="LINUX" ;;
176: freebsd*) AMAYAOS="LINUX" ;;
177: hpux*) AMAYAOS="LINUX" ;;
178: irix*) AMAYAOS="LINUX" ;;
179: linuxaout*) AMAYAOS="LINUX" ;;
180: linux*) AMAYAOS="LINUX" ;;
181: mingw32*) AMAYAOS="WINDOWS" ;;
182: netbsd*) AMAYAOS="LINUX" ;;
183: openbsd*) AMAYAOS="LINUX" ;;
184: osf[12]*) AMAYAOS="LINUX" ;;
185: osf*) AMAYAOS="LINUX" ;;
186: solaris2*) AMAYAOS="LINUX" ;;
187: sunos4*) AMAYAOS="LINUX" ;;
188: ultrix*) AMAYAOS="LINUX" ;;
189: esac
190: AC_SUBST(AMAYAOS)
191:
192: if test "$AMAYAOS" = "WINDOWS" ; then
193: AC_MSG_ERROR(Windows port do not use configure - not yet tested.)
194: fi
195:
196: OS_OPTIONS="-D_UNIX" # default is UNIX
197: case $AMAYAOS in
198: LINUX) OS_OPTIONS="-D_UNIX" ;;
199: WINDOWS) OS_OPTIONS="-D_WINDOWS" ;; # not tested (cygwin or mingw)
200: MACOSX) OS_OPTIONS="-D_UNIX -D_MACOS" ;;
1.132 gully 201: esac
202:
1.85 vatton 203: AC_ARG_WITH(GL, [ --with-gl enable Opengl canvas (experimental) ])
204: dnl
1.175 gully 205: dnl GL canvas is disabled by default in 8.7.x
206: dnl GL canvas is enabled by default in 9.x
207: dnl - 8.7.x needs : GL, GLX, GLU, freetype2, gtkgl
208: dnl - 9.x needs : GL, GLX, GLU, freetype2, wxGLCanvas
1.85 vatton 209: dnl GL is for opengl
1.175 gully 210: dnl GlX is for XWindow integration
1.85 vatton 211: dnl GLU is for tesselation algortihms (until we extract it from this lib)
212: dnl (tesselation is used for polygons with holes in it...)
213: dnl gtkgl is for integration of opengl in GTK
1.175 gully 214: dnl freetype2 is for text drawing (fonts ...)
215: dnl wxGLCanvas is for integration of opengl in wxWidgets (WX)
1.85 vatton 216: if test "$with_gl" = "" ; then
217: if test "$enable_gl" = "yes" ; then
218: with_gl="yes"
219: else
220: with_gl="no"
221: fi
222: fi
223:
1.120 gully 224: # check if gtk gui should be used
225: AC_ARG_WITH(gtk, [ --with-gtk use GTK GUI toolkit ])
226: if test "$with_gtk" = "yes" -o "$enable_gtk" = "yes" ; then
227: if test "$withval" = "no" ; then
228: with_gtk="no"
229: else
230: with_gtk="yes"
231: fi
232: fi
233:
1.155 carcone 234: # check if mac version is used
235: AC_ARG_WITH(mac, [ --with-mac generate mac version ])
236: if test "$with_mac" = "" ; then
237: if test "$enable_mac" = "yes" ; then
238: with_mac="yes"
239: else
240: with_mac="no"
241: fi
242: fi
243:
1.143 gully 244: # check for mesa library (OpenGL)
1.175 gully 245: AC_ARG_WITH(MESA, [ --with-mesa enable canvas with software OpenGL implementation (Mesa) ])
1.143 gully 246: if test "$with_mesa" = "" ; then
247: if test "$enable_mesa" = "yes" ; then
248: with_mesa="yes"
249: with_gl="no"
250: else
251: with_mesa="no"
252: fi
253: fi
254:
255: # check if wxWidgets gui should be used
256: AC_ARG_WITH(wx, [ --with-wx use wxWidgets GUI toolkit (experimental)])
1.124 gully 257: if test "$with_wx" = "yes" -o "$enable_wx" = "yes" ; then
258: if test "$withval" = "no" ; then
259: with_wx="no"
260: else
261: with_wx="yes"
262: fi
263: fi
264:
1.175 gully 265: # Check if at least one GUI toolkit is enabled
1.134 gully 266: if test "$with_wx" = "no" -o "$with_wx" = "" ; then
267: if test "$with_gtk" = "no" -o "$with_gtk" = "" ; then
268: # Nothing is enable so force the default GUI toolkit (GTK)
269: with_wx="no"
270: with_gtk="yes"
1.85 vatton 271: fi
272: fi
273:
1.176 gully 274: # mesa (software) gl implementation is default with wx (hardware gl implem can be choosen with --with-gl option)
1.175 gully 275: if test "$with_wx" = "yes" ; then
1.183 carcone 276: if test "$AMAYAOS" = "MACOSX" ; then
277: with_mesa="no"
278: with_gl="yes"
279: else
1.176 gully 280: if test "$with_gl" = "no" ; then
281: with_mesa="yes"
1.175 gully 282: fi
1.183 carcone 283: fi
1.175 gully 284: fi
285:
1.121 gully 286: # check if no gui is enable
1.175 gully 287: AC_ARG_WITH(nogui, [ --with-nogui do not use GUI toolkit (not maintained) ])
1.121 gully 288: if test "$with_nogui" = "yes" -o "$enable_nogui" = "yes" ; then
289: with_nogui="yes"
290: with_gtk="no"
1.134 gully 291: with_wx="no"
1.121 gully 292: NOGUI_OPTIONS="-D_NOGUI"
293: fi
294:
1.136 gully 295: # check if wxWidgets debug is enable
1.155 carcone 296: AC_ARG_WITH(wxdebug, [ --with-wxdebug compiles wxWidgets with debuging options ])
1.136 gully 297: if test "$with_wxdebug" = "yes" ; then
298: with_wxdebug="yes"
299: else
300: with_wxdebug="no"
301: fi
302:
1.153 gully 303: # it is possible to specify wxWidgets library path,
304: # usefull for developpers who want to compile amaya with different wxWidgets version
1.155 carcone 305: AC_ARG_WITH(wxsrcdir, [ --with-wxsrcdir=... compiles Amaya with a specific wxWidgets sources path ])
1.153 gully 306: if test "$with_wxsrcdir" = "" ; then
307: with_wxsrcdir="../../wxWidgets"
308: fi
309:
310:
1.134 gully 311: if test "$with_wx" = "yes" ; then
1.120 gully 312: if test "$with_gtk" = "yes" ; then
313: echo
314: echo "****************************************************************"
315: echo " ERROR: "
316: echo " More than one GUI toolkit is enable"
317: echo " Only one GUI toolkit should be enable (turn off one)"
318: echo " exemple ok : ../configure --with-gtk "
1.134 gully 319: echo " exemple !ok : ../configure --with-gtk --with-wx"
1.120 gully 320: echo "****************************************************************"
321: echo
322: exit 1
323: fi
324: fi
1.134 gully 325:
1.152 gully 326:
327: # setup the AMAYAGUI variable used to identify used GUI when 'make install' is called
328: # now several amaya gui can coexist.
329: if test "$with_gtk" = "yes" ; then
330: AMAYAGUI="gtk"
331: fi
332: if test "$with_gl" = "yes" ; then
333: AMAYAGUI="gl"
334: fi
335: if test "$with_wx" = "yes" ; then
336: AMAYAGUI="wx"
337: fi
338: AC_SUBST(AMAYAGUI)
339:
340:
1.85 vatton 341: if test "$with_gtk" = "yes" ; then
1.134 gully 342: gdkimlib_h_found="no"
1.63 vatton 343:
1.134 gully 344: # check that gtk-config exists
345: AC_CHECK_PROG(GTKCONFIG_FOUND,gtk-config,yes,no)
346: if test "$GTKCONFIG_FOUND" = no ; then
347: AC_MSG_ERROR(Cannot find gtk-config. Please install gtk development library.)
348: fi
349:
1.131 gully 350: GTK_INCLUDES="${GTK_INCLUDES} `gtk-config --cflags`"
1.124 gully 351: AC_SUBST(GTK_INCLUDES)
352: GTK_LIBRARIES="`gtk-config --libs`"
1.134 gully 353: # GL doesn't need the imlib
1.124 gully 354: if test "${with_gl}" != "yes" ; then
1.134 gully 355: GTK_LIBRARIES="${GTK_LIBRARIES} -lgdk_imlib"
356: else
357: gdkimlib_h_found="yes"
1.124 gully 358: fi
1.106 kahan 359:
1.124 gully 360: AC_SUBST(GTK_LIBRARIES)
361: GTK_OPTIONS="-D_GTK"
1.76 vatton 362: no_graphic=yes
1.134 gully 363:
1.150 gully 364: # SG : lookingfor gtkimlib includes
365: # because not found with gtk-config on macosx
366: gtk_path_for_gdkimlib_h="`gtk-config --prefix`"
367: for ac_dir in \
368: /sw/include/ \
369: /sw/local/include \
370: /usr/include \
371: /usr/local/include \
372: "$gtk_path_for_gdkimlib_h/include" \
373: "$gtk_path_for_gdkimlib_h/local/include" \
374: ; \
375: do
376: if test -r "$ac_dir/gdk_imlib.h"; then
377: echo "found gdk_imlib.h"
378: gdkimlib_h_found="yes"
379: GTK_INCLUDES="${GTK_INCLUDES} -I$ac_dir"
380: break
381: fi
382: done
383:
1.134 gully 384: if test "$gdkimlib_h_found" = "no" ; then
385: echo
386: echo "****************************************************************"
387: echo " ERROR: gdk_imlib.h not found -"
388: echo " [please install imlib developpement package (libimlib1-devel on mandrake)]"
389: echo "****************************************************************"
390: exit 1
391: fi
1.120 gully 392: fi
393:
1.143 gully 394:
395: if test "$with_mesa" = "yes" ; then
396: # --------- compile Mesa library (opengl) --------------- #
397:
398: # check that sources of Mesa exists
399: if test ! -f ../../Mesa/Makefile ; then
400: AC_MSG_ERROR(Mesa library sources not found (opengl). Please download Mesa sources (http://www.mesa3d.org/) or remove --with-gl option !)
401: fi
402:
403: OLDDIR=`pwd`
1.152 gully 404: GL_BUILDDIR="${OLDDIR}/Mesa"
1.143 gully 405:
1.163 gully 406: echo "---> Install Mesa library into ${GL_BUILDDIR}"
1.143 gully 407:
1.163 gully 408: mkdir -p ${GL_BUILDDIR}
409: cp -r ../../Mesa/* ${GL_BUILDDIR}
1.143 gully 410:
1.152 gully 411: echo "---> Install Mesa library into ${GL_BUILDDIR} - DONE"
1.143 gully 412:
413: # this is the flags used to build amaya with OpenGL
414: GL_OPTIONS="-D_GL"
1.152 gully 415: GL_INCLUDES="-I${GL_BUILDDIR}/include"
416: GL_LIBRARIES="-Wl,-rpath,${GL_BUILDDIR}/lib -L${GL_BUILDDIR}/lib -lGL -lGLU"
417: AC_SUBST(GL_BUILDDIR)
1.143 gully 418: AC_SUBST(GL_INCLUDES)
419: AC_SUBST(GL_LIBRARIES)
420: fi
421:
1.124 gully 422: if test "$with_wx" = "yes" ; then
1.153 gully 423: # WX_SRCDIR is better to understand the code than with_wxsrcdir variable
1.165 gully 424: if test ! -f $with_wxsrcdir/Makefile.in ; then
425: $with_wxsrcdir = ../../wxWidgets
426: fi
427: cd $with_wxsrcdir
428: WX_SRCDIR=`pwd`
429: cd -
1.153 gully 430: AC_SUBST(WX_SRCDIR)
431:
1.135 gully 432: # check that sources of wxWidgets exists
1.153 gully 433: if test ! -f $WX_SRCDIR/Makefile.in ; then
434: AC_MSG_ERROR(wxWidgets library sources not found. Please download wxWidgets sources (http://www.wxwidgets.org/), or remove --with-wx option, or check --with-wxsrcdir is correct !)
1.135 gully 435: fi
436:
1.152 gully 437: # --------- configure wxWidgets library --------------- #
1.135 gully 438: echo "---> Configuring wxWidgets library."
439: OLDDIR=`pwd`
1.149 gully 440: # create the build directory (debug or release)
441: if test $with_wxdebug = yes ; then
1.152 gully 442: WX_BUILDDIR="wxWidgets_DEBUG"
1.149 gully 443: else
1.152 gully 444: WX_BUILDDIR="wxWidgets_RELEASE"
1.149 gully 445: fi
1.152 gully 446: mkdir -p $WX_BUILDDIR
447: cd $WX_BUILDDIR
448: AC_SUBST(WX_BUILDDIR)
1.136 gully 449:
1.149 gully 450: # remove old configure cached options
1.135 gully 451: rm -f configarg.cache
1.136 gully 452:
453: # setup configure options
1.158 gully 454:
455: # disable unused wx features
456: # --disable-htmlhelp
457: # --disable-html
458: # --disable-docview
459: # --disable-mdi
460: # --disable-mdidoc
461: # --disable-protocols
462: # --disable-ftp
463: # --disable-http
464: # --disable-sound
1.185 gully 465: # --disable-backtrace # to avoid the buggy popup when an assert occurs
466: WXCONFIGURE_TUNNING_OPTION="--disable-printarch --disable-htmlhelp --disable-html --disable-docview --disable-mdi --disable-mdidoc --disable-sound --disable-backtrace"
1.158 gully 467:
1.178 gully 468: if test "$AMAYAOS" = "LINUX" ; then
1.135 gully 469: # LINUX
1.145 gully 470: # --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
1.158 gully 471: # --disable-shared create only static library (.a)
1.145 gully 472: # --enable-unicode compile wxString with Unicode support
473: # --with-gtk use GTK+
474: # --with-opengl use OpenGL (or Mesa)
1.158 gully 475: WXCONFIGURE_OPTION="--with-opengl --with-gtk --enable-gtk2 --enable-unicode --enable-ipc --disable-shared --with-libpng=builtin --with-libjpeg=builtin --with-libtiff=builtin $WXCONFIGURE_TUNNING_OPTION"
1.135 gully 476: fi
1.178 gully 477: if test "$AMAYAOS" = "MACOSX" ; then
1.135 gully 478: # MACOSX
1.155 carcone 479: # AC_MSG_ERROR(TODO: configurer wxWidgets pour MACOSX)
1.145 gully 480: # --with-mac use Mac OS X
1.156 carcone 481: with_mac="yes"
1.170 carcone 482: WXCONFIGURE_OPTION="--with-opengl --disable-shared --enable-unicode --with-libpng=builtin --with-libjpeg=builtin"
1.136 gully 483: fi
484: if test $with_wxdebug = yes ; then
1.141 gully 485: WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-debug"
1.143 gully 486: # SG: I've disabled other debug options because the lib has bugs when using these flags \
487: # (maybe because these flags are not often used by wxWidgets developpers)
1.141 gully 488: # WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-debug --enable-debug_cntxt --enable-debug_gdb --enable-debug_info --enable-debug_flag --enable-mem_tracing"
1.145 gully 489: else
490: WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-optimise"
1.135 gully 491: fi
1.143 gully 492:
1.136 gully 493: # launch the configure
1.143 gully 494: if test "$with_mesa" = "yes" ; then
495: # use internal OpenGL (mesa) libraries
1.165 gully 496: $WX_SRCDIR/configure CFLAGS="-I${GL_BUILDDIR}/include" CXXFLAGS="-I${GL_BUILDDIR}/include" CPPFLAGS="-I${GL_BUILDDIR}/include" $WXCONFIGURE_OPTION
1.158 gully 497: #../$WX_SRCDIR/configure CFLAGS="-I${GL_BUILDDIR}/include" CXXFLAGS="-I${GL_BUILDDIR}/include" CPPFLAGS="-I${GL_BUILDDIR}/include" OPENGL_LIBS="-lGL -lGLU" $WXCONFIGURE_OPTION
1.145 gully 498: if test $? != 0 ; then
499: AC_MSG_ERROR(A problem occurs durring wxWidgets library configuration. Please fix the problem and try again.)
500: fi
1.143 gully 501: else
502: # use OpenGL system libraries
1.165 gully 503: $WX_SRCDIR/configure $WXCONFIGURE_OPTION
1.143 gully 504: fi
1.152 gully 505: cd $OLDDIR
1.135 gully 506: echo "---> Configuring wxWidgets library. - DONE"
1.143 gully 507:
1.135 gully 508: # --------- configuring wxWidgets paths --------------- #
1.152 gully 509: WXCONFIG=$WX_BUILDDIR/wx-config
1.134 gully 510: # check that wx-config exists
1.135 gully 511: if test ! -f $WXCONFIG ; then
1.143 gully 512: AC_MSG_ERROR(Cannot find wx-config. Please download wxWidgets (http://www.wxwidgets.org/))
1.134 gully 513: fi
1.144 gully 514:
515: # setup include paths
1.165 gully 516: # "-I$WX_SRCDIR/src/png -I$WX_SRCDIR/src/jpeg -I$WX_SRCDIR/src/tiff" is a temporary patch to fix incorrect generated paths by wx-config --cxxflags (remove it when wxWidgets will be fixed)
517: WX_INCLUDES="-I$WX_SRCDIR/src/png -I$WX_SRCDIR/src/jpeg -I$WX_SRCDIR/src/tiff `$WXCONFIG --cxxflags`"
1.124 gully 518: AC_SUBST(WX_INCLUDES)
519:
1.144 gully 520: # setup libraries paths
521: WX_LIBRARIES=""
522: WX_LIBRARIES_EXTRA_PARAM=""
1.157 gully 523: WXCONFIG_LIBS_PARAM="xrc,adv,core,xml,net"
1.132 gully 524: # GL is used ?
1.143 gully 525: if test "$with_gl" = "yes" -o "$with_mesa" = "yes" ; then
1.144 gully 526: WXCONFIG_LIBS_PARAM="${WXCONFIG_LIBS_PARAM},gl"
1.132 gully 527: # SG: this is a mistery why wx-config doesn't add these needed option on macosx
1.178 gully 528: if test "$AMAYAOS" = "MACOSX" ; then
1.144 gully 529: WX_LIBRARIES_EXTRA_PARAM="-framework OpenGL -framework AGL"
1.132 gully 530: fi
1.124 gully 531: fi
1.170 carcone 532: if test "$with_mac" = "yes" ; then
533: WXCONFIG_LIBS_PARAM="${WXCONFIG_LIBS_PARAM},html"
534: fi
535:
1.152 gully 536: WX_LIBRARIES="`$WXCONFIG --libs $WXCONFIG_LIBS_PARAM` ${WX_LIBRARIES_EXTRA_PARAM}"
1.144 gully 537: AC_SUBST(WX_LIBRARIES)
1.161 gully 538:
539: WX_LINKDEPS="`$WXCONFIG --linkdeps`"
540: AC_SUBST(WX_LINKDEPS)
1.124 gully 541:
542: WX_OPTIONS="-D_WX"
1.135 gully 543: # --------- configuring wxWidgets paths - DONE --------------- #
1.132 gully 544:
545: no_graphic=yes
1.124 gully 546: fi
547:
1.63 vatton 548: if test "${GCC}" = "yes"; then
549: CPP="${CPP} -x c"
550: fi
551:
1.1 cvs 552: dnl ***************************************************************
553: dnl
1.61 cvs 554: dnl SPECIFIC STUFF : CONFIGURATION OPTIONS FOR AMAYA
1.1 cvs 555: dnl
556: dnl ***************************************************************
557:
1.158 gully 558: # Do not care with libpng or libjpeg with wx version because we use the wxwidgets one.
559: if test "$with_wx" = "no" ; then
560: # We don't use our graphic libraries for the pure GTK version (without GL)
561:
562: # if configure has option --with-graphiclibs then dont check for system graphic libs
563: # force amaya static graphic libs to be used
564: AC_ARG_WITH(graphiclibs, [ --with-graphiclibs use static libjpeg, libpng.])
565: if test "$with_graphiclibs" = "yes" -o "$enable_graphiclibs" = "yes" ; then
566: no_graphic="no"
567: else
568: no_graphic="yes"
569: fi
1.132 gully 570:
1.158 gully 571: if test "$no_graphic" = yes; then
572: dnl
573: AC_MSG_CHECKING([for libjpeg version = 6b])
574: AC_EGREP_CPP([x 62 *x],
575: [#include <jpeglib.h>
576: x JPEG_LIB_VERSION x],
577: dnl
578: AC_MSG_RESULT([yes])
579: JPEGINCL=''
1.76 vatton 580: LIBJPEG='-ljpeg'
581: MAKEJPEG=['#'],
1.158 gully 582: dnl
1.76 vatton 583: AC_MSG_RESULT([no])
1.158 gully 584: JPEGINCL='-I$(THOTDIR)/libjpeg'
1.76 vatton 585: LIBJPEG='../libjpeg.a' dnl LIBJPEG goes into amaya/Makefile.in
586: )
1.158 gully 587: dnl
588: dnl
1.95 vatton 589: AC_MSG_CHECKING([for libpng version = 1.0.x or 1.2.x])
590: AC_EGREP_CPP([x \"1.[02]\..*\" *x],
1.76 vatton 591: [#include <png.h>
592: x PNG_LIBPNG_VER_STRING x],
1.158 gully 593: dnl
594: AC_MSG_RESULT([yes])
595: PNGINCL=''
1.76 vatton 596: LIBPNG='-lpng'
597: LIBZ=''
598: MAKEPNG=['#'],
599: dnl
1.158 gully 600: AC_MSG_RESULT([no])
601: PNGINCL='-I$(THOTDIR)/libpng -I$(THOTDIR)/libpng/zlib'
1.76 vatton 602: LIBPNG='../libpng.a'
603: LIBZ='../libz.a'
604: )
1.158 gully 605: else
1.105 vatton 606: JPEGINCL='-I$(THOTDIR)/libjpeg'
1.76 vatton 607: LIBJPEG='../libjpeg.a'
1.105 vatton 608: PNGINCL='-I$(THOTDIR)/libpng -I$(THOTDIR)/libpng/zlib'
1.76 vatton 609: LIBPNG='../libpng.a'
610: LIBZ='../libz.a'
1.158 gully 611: fi
612: dnl
613: AC_SUBST(LIBJPEG)
614: AC_SUBST(LIBPNG)
615: AC_SUBST(LIBZ)
616: AC_SUBST(MAKEJPEG)
617: AC_SUBST(MAKEPNG)
618: fi # with_wx = no
1.76 vatton 619:
1.166 gully 620: # the wx version
621: AMAYAWX_MAJVER=9
1.182 gully 622: AMAYAWX_MINVER=2
623: AMAYAWX_SUBVER=0
1.166 gully 624:
625: #the old version (to remove when switching on wx)
626: AMAYA_MAJVER=8
1.182 gully 627: AMAYA_MINVER=8
628: AMAYA_SUBVER=0
1.166 gully 629:
1.164 gully 630: if test "$with_wx" = "yes" ; then
1.166 gully 631: APP_MAJVER=$AMAYAWX_MAJVER
632: APP_MINVER=$AMAYAWX_MINVER
633: APP_SUBVER=$AMAYAWX_SUBVER
634: else
635: APP_MAJVER=$AMAYA_MAJVER
636: APP_MINVER=$AMAYA_MINVER
637: APP_SUBVER=$AMAYA_SUBVER
638: fi
1.168 gully 639:
640: if test $APP_SUBVER = 0 ; then
641: APP_VER=$APP_MAJVER.$APP_MINVER
642: else
643: APP_VER=$APP_MAJVER.$APP_MINVER.$APP_SUBVER
644: fi
1.166 gully 645:
646: # generate a header file with the right version number, so it can be used on windows AND on unix
647: APPVERSION_H=../thotlib/internals/h/appversion.h
648: echo "#ifndef __APPVERSION_H__" > $APPVERSION_H
649: echo "#define __APPVERSION_H__" >> $APPVERSION_H
650: echo "#ifdef _WX" >> $APPVERSION_H
651: echo "#define APP_MAJVER $AMAYAWX_MAJVER" >> $APPVERSION_H
652: echo "#define APP_MINVER $AMAYAWX_MINVER" >> $APPVERSION_H
653: echo "#define APP_SUBVER $AMAYAWX_SUBVER" >> $APPVERSION_H
654: echo "#else /* _WX */" >> $APPVERSION_H
655: echo "#define APP_MAJVER $AMAYA_MAJVER" >> $APPVERSION_H
656: echo "#define APP_MINVER $AMAYA_MINVER" >> $APPVERSION_H
657: echo "#define APP_SUBVER $AMAYA_SUBVER" >> $APPVERSION_H
658: echo "#endif /* _WX */" >> $APPVERSION_H
659: echo "#endif /* __APPVERSION_H__ */" >> $APPVERSION_H
1.1 cvs 660:
661: dnl
1.6 cvs 662: dnl We use a special versoin of cextract patched for alignment
663: dnl to build the signatures of the modules functions located in f subdirs
664: dnl
665: CEXTRACT_VER="1.7"
666: CEXTRACT_FLAGS="+O"
667:
1.178 gully 668: # Check if debug is enable
669: AC_ARG_WITH(debug, [ --with-debug compiles Amaya with debuging options (-g) ])
670: if test "$with_debug" = "yes" ; then
671: with_debug="yes"
672: CFLAGS="-g"
673: CXXFLAGS="-g"
674: else
675: with_debug="no"
676: CFLAGS="-O2"
677: CXXFLAGS="-O2"
678: fi
1.7 cvs 679:
680: if test "${CC}" = "gcc" ; then
1.180 gully 681: CFLAGS="${CFLAGS} -Wall"
1.7 cvs 682: case "${host}" in
683: *-*-irix5* | *-*irix6* )
684: CFLAGS="${CFLAGS} -fsigned-char"
685: ;;
686: esac
1.14 cvs 687: fi
688:
689: if test "$ac_cv_c_const" = "no" ; then
690: CFLAGS="${CFLAGS} -DCONST= "
1.7 cvs 691: fi
692:
1.122 gully 693:
694: # force C mode (-x c)
1.123 gully 695: CFLAGS="${CFLAGS} -x c"
1.122 gully 696:
697: # C++ options (-x c++)
698: CXX_OPTIONS="-D__cplusplus"
1.180 gully 699: CXXFLAGS="${CXXFLAGS} -Wall -x c++ ${CXX_OPTIONS}"
1.122 gully 700:
1.132 gully 701: # setup LDFLAGS
702: # on macosx, specific flags must be set to avoid conflicts with allready installed libwww
703: # for exemple it's possible to install libwww with fink (fink install libwww)
704: # to avoid conflicts, we just force the linker to search for specified amaya path first
1.178 gully 705: if test "$AMAYAOS" = "MACOSX" ; then
1.132 gully 706: LDFLAGS="-Wl,-search_paths_first"
707: else
708: LDFLAGS=""
709: fi
1.128 gully 710:
711: dnl
1.61 cvs 712: dnl Check for availability of amaya sources
1.1 cvs 713: dnl
714:
715: build_amaya="yes"
716:
717: if test "$with_amaya" = "no" ; then
718: build_amaya="no"
1.45 cvs 719: else
720: if test ! -f $srcdir/amaya/Makefile.in ; then
1.1 cvs 721: AC_MSG_WARN(Amaya browser/editor sources not found, disabling Amaya build !)
722: build_amaya="no"
1.45 cvs 723: fi
1.1 cvs 724: fi
725:
726: dnl
1.50 cvs 727: dnl Check for additionnal packages
1.1 cvs 728: dnl use AC_CONFIG_SUBDIRS to launch configure in the subdir
729: dnl
1.93 kahan 730:
1.143 gully 731: if test "$with_gl" = "yes" -o "$with_mesa" = "yes" ; then
732:
733: # if with_gl is on then test system opengl library (GL & GLU)
734: if test "$with_gl" = "yes" ; then
1.184 carcone 735: if test "$AMAYAOS" = "LINUX" ; then
1.139 carcone 736: # setup a list of standard paths int LDFLAGS
737: # for AC_CHECK_LIB library existance checks
1.140 carcone 738: LIBS_OLD=$LIBS
1.139 carcone 739: LDFLAGS_OLD=$LDFLAGS
740: LDFLAGS="-L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib"
1.75 cheyroul 741: AC_MSG_CHECKING([OpenGL])
742: for ac_dir in \
1.183 carcone 743: /usr/include \
1.75 cheyroul 744: /usr/X11R6/include \
745: /usr/local/include \
746: ; \
1.80 cheyroul 747: do if test -r "$ac_dir/GL/gl.h" ; then
1.143 gully 748: gl_inc="yes"
749: GL_INC_I="$ac_dir"
750: if test "$ac_dir" != "/usr/include" ; then
751: GL_INCLUDES="-I$ac_dir"
752: fi
753: AC_CHECK_LIB(GL,glBegin,,AC_MSG_ERROR(Cannot find OpenGL library. Please install OpenGL.))
754: AC_MSG_RESULT([yes])
755: break
756: fi
757: done
758:
1.80 cheyroul 759: AC_MSG_CHECKING([GLU])
1.75 cheyroul 760: for ac_dir in \
1.183 carcone 761: /usr/include \
762: /usr/X11R6/include \
1.75 cheyroul 763: /usr/local/include \
764: ; \
1.138 gully 765: do if test -r "$ac_dir/GL/glu.h" ; then
1.143 gully 766: glu_inc="yes"
767: GL_INC_II="$ac_dir"
768: if test "$ac_dir" != "/usr/include" ; then
769: if test "$ac_dir" != "$GL_INC_I" ; then
770: GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
771: fi
772: fi
773: # now test that glu version is >= 1.2
774: AC_CHECK_LIB(GLU,gluNewTess,,AC_CHECK_LIB(glu32,gluNewTess,,AC_MSG_ERROR(Cannot find OpenGL GLU lib or existing version is < 1.2. Pease upgrade your GLU library.)))
775: AC_MSG_RESULT([yes])
776: break
777: fi
778: done
1.139 carcone 779: LDFLAGS=$LDFLAGS_OLD
1.140 carcone 780: LIBS=$LIBS_OLD
1.174 carcone 781:
1.143 gully 782: if test "$gl_inc" = "" ; then
783: AC_MSG_WARN(Opengl headers (gl.h) not found !!)
784: AC_MSG_WARN(Disabling opengl build !)
785: with_gl="no"
786: GL_OPTIONS=
787: GL_INCLUDES=
788: GL_LIBRARIES=
789: exit 1;
790: fi
791:
792: if test "$glu_inc" = "" ; then
793: AC_MSG_WARN(Glu headers (glu.h) not found !!)
794: AC_MSG_WARN(Disabling opengl build !)
795:
796: with_gl="no"
797: GL_OPTIONS=
798: GL_INCLUDES=
799: GL_LIBRARIES=
800: exit 1;
801: fi
1.184 carcone 802: fi # AMAYAOS = LINUX
1.174 carcone 803:
804: if test "$with_mac" = "yes" ; then
805: GL_OPTIONS="-D_GL"
1.183 carcone 806: GL_INCLUDES="-I/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/"
1.174 carcone 807: GL_LIBRARIES=""
1.183 carcone 808: GL_BUILDDIR=""
1.174 carcone 809: else
810: GL_LIBRARIES="-L/usr/lib -L/usr/X11R6/lib -lGL -lGLU"
811: GL_OPTIONS="-D_GL"
1.173 carcone 812: fi
1.143 gully 813:
814: AC_SUBST(GL_INCLUDES)
815: AC_SUBST(GL_LIBRARIES)
816: fi # if with_gl
1.139 carcone 817:
1.143 gully 818: # check for gtkglarea.h only if gtk gui is selected
819: if test "$with_gtk" = "yes" ; then
820: AC_MSG_CHECKING([GTKGLAREA])
821: for ac_dir in \
1.132 gully 822: /usr/include/GL \
1.75 cheyroul 823: /usr/include \
824: /usr/X11R6/include/GL \
825: /usr/X11R6/include \
826: /usr/local/include \
827: /usr/local/include/GL \
828: ; \
1.143 gully 829: do if test -r "$ac_dir/gtkgl/gtkglarea.h" ; then
830: gtkgl_inc="yes"
831: if test "$ac_dir" != "/usr/include" ; then
832: if test "$ac_dir" != "$GL_INC_II" ; then
833: if test "$ac_dir" != "$GL_INC_I" ; then
834: GTK_GL_INCLUDES="-I$ac_dir"
835: fi
836: fi
837: fi
838: AC_MSG_RESULT([yes])
839: break
840: fi
841: done
842: GTK_GL_LIBRARIES="-lgtkgl"
843:
844: if test "$gtkgl_inc" = "" ; then
845: AC_MSG_WARN(Gtkglarea headers (gktglarea.h) not found !!)
846: AC_MSG_WARN(Disabling opengl build !)
847: with_gl="no"
848: exit 1;
849: fi
850: AC_SUBST(GTK_GL_INCLUDES)
851: AC_SUBST(GTK_GL_LIBRARIES)
852: fi
1.132 gully 853:
1.143 gully 854: # checking for freetype lib (fonts library)
1.173 carcone 855: if test "$with_mac" = "yes" ; then
856: # we use a static version of freetype lib for mac osx
1.174 carcone 857: FREETYPE_INCLUDES="-I/opt/local/include -I/opt/local/include/freetype2 -I/usr/X11R6/include/freetype2/freetype"
858: FREETYPE_LIBRARIES="-lfreetype"
1.173 carcone 859: else
860: if test ! -f $(which freetype-config) ; then
861: AC_MSG_ERROR(Cannot find freetype library (font load/display routines). Please install it.)
862: fi
863: FREETYPE_INCLUDES=`freetype-config --cflags`
864: FREETYPE_LIBRARIES=`freetype-config --libs`
865: fi
866: AC_SUBST(FREETYPE_INCLUDES)
867: AC_SUBST(FREETYPE_LIBRARIES)
1.143 gully 868:
869:
870: # checking for xft lib
871: # (not used because xft-config doesn't exist on debian stable)
872: #if test ! -f $(which xft-config) ; then
873: # AC_MSG_ERROR(Cannot find Xft library. Please install it.)
874: #fi
875: #XFT_INCLUDES=`xft-config --cflags`
876: #XFT_LIBRARIES=`xft-config --libs`
877: #AC_SUBST(XFT_INCLUDES)
878: #AC_SUBST(XFT_LIBRARIES)
879:
880: # START CHECKING XFT #
881: # checking for Xft (old way)
1.173 carcone 882: if test "$with_mac" = "no" ; then
1.143 gully 883: AC_MSG_CHECKING([Xft])
884: for ac_dir in \
1.104 cheyroul 885: /usr/include \
886: /usr/X11R6/include \
887: /usr/local/include \
888: /usr/include/X11/Xft \
889: /usr/X11R6/include/X11/Xft \
890: /usr/local/include/X11/Xft \
891: /usr/include/X11/Xft1 \
892: /usr/X11R6/include/X11/Xft1 \
1.113 vatton 893: /usr/include/Xft2/X11/Xft/ \
1.104 cheyroul 894: /usr/local/include/X11/Xft1 \
895: /usr/include/X11/Xft2 \
896: /usr/X11R6/include/X11/Xft2 \
897: /usr/local/include/X11/Xft2 \
898: ; \
1.143 gully 899: do if test -r "$ac_dir/Xft.h" ; then
900: xft_inc="yes"
901: XFT_INCLUDES="-I$ac_dir"
902: AC_MSG_RESULT([yes])
903: break
904: fi
905: done
906: if test "$xft_inc" = "" ; then
907: AC_MSG_WARN(Xft 2 headers (Xft.h) not found !!)
908: AC_MSG_WARN(Disabling opengl build !)
909: with_gl="no"
910: exit 1;
911: fi
912:
913: AC_MSG_CHECKING([Xft-library])
1.155 carcone 914:
1.143 gully 915: for ac_dir in \
916: /usr/lib \
917: /usr/X11R6/lib \
918: /usr/local/lib \
919: ; \
920: do if test -r "$ac_dir/libXft.so" ; then
921: xft_lib="yes"
922: XFT_LIBRARIES="-L$ac_dir -lXft"
923: AC_MSG_RESULT([yes])
924: break
925: fi
926: done
927: if test "$xft_lib" = "" ; then
928: AC_MSG_WARN(Xft 2 librarie (libXft.so) not found !!)
929: AC_MSG_WARN(Disabling opengl build !)
930: with_gl="no"
931: exit 1;
932: fi
1.155 carcone 933:
1.143 gully 934: AC_SUBST(XFT_INCLUDES)
935: AC_SUBST(XFT_LIBRARIES)
936: # END CHECKING XFT #
1.173 carcone 937: fi
1.143 gully 938:
939:
940: AC_MSG_CHECKING([gcc3])
941: for ac_dir in \
1.96 cheyroul 942: /usr/lib \
943: /usr/X11R6/lib \
944: /usr/local/lib \
945: ; \
1.143 gully 946: do if test -r "$ac_dir/libstdc++.so.5" ; then
947: stdglu_inc="yes"
948: STDCPP_LIBRARIES="-lstdc++"
949: STDCPP_INCLUDES=""
950: AC_MSG_RESULT([yes])
951: break
952: fi
953: done
1.159 gully 954:
955: # not used in makefiles
956: # AC_SUBST(STDCPP_INCLUDES)
957: # AC_SUBST(STDCPP_LIBRARIES)
1.143 gully 958:
959: NOPRINT=""
960: PRINTIFNOTGL=" print_prog"
961:
962: else # if with_gl or with_mesa
963:
964: NOPRINT=""
965: PRINTIFNOTGL=" print_prog"
1.132 gully 966:
1.143 gully 967: fi # if with_gl or with_mesa
1.132 gully 968:
1.97 cheyroul 969: AC_SUBST(PRINTIFNOTGL)
1.112 cheyroul 970: AC_SUBST(NOPRINT)
971:
1.76 vatton 972:
973: AC_ARG_ENABLE(svg, [ --disable-svg remove SVG support ])
974: AC_ARG_ENABLE(annot, [ --disable-annot remove Annotations support ])
1.146 kahan 975: AC_ARG_ENABLE(redland, [ --disable-redland disable the redland RDF library ])
1.116 kahan 976: AC_ARG_ENABLE(system-redland, [ --enable-system-redland try the redland RDF system library ])
1.108 kahan 977: AC_ARG_ENABLE(bookmarks, [ --enable-bookmarks enables experimental bookmark support ])
1.186 ! tollenae 978: AC_ARG_ENABLE(templates, [ --enable-templates enables experimental templates support ])
1.76 vatton 979: AC_ARG_ENABLE(generic-xml, [ --disable-generic-xml remove Generic XML support ])
980:
1.75 cheyroul 981: dnl
1.21 cvs 982: dnl plugins support is disabled by default
1.8 cvs 983: dnl
1.13 cvs 984:
985: if test "$with_plugin" = "" ; then
1.21 cvs 986: if test "$enable_plugin" = "yes" ; then
1.55 kahan 987: with_plugin="yes"
1.21 cvs 988: else
1.17 cvs 989: with_plugin="no"
990: fi
1.10 cvs 991: fi
1.1 cvs 992:
1.8 cvs 993: dnl
1.68 vatton 994: dnl svg is enabled by default
1.26 cvs 995: dnl
1.68 vatton 996: if test "$with_svg" = "" ; then
997: if test "$enable_svg" = "no" ; then
998: with_svg="no"
1.49 cvs 999: else
1.68 vatton 1000: with_svg="yes"
1.26 cvs 1001: fi
1002: fi
1003:
1004: dnl
1.56 kahan 1005: dnl annotations is enabled by default
1.47 cvs 1006: dnl
1007: if test "$with_annot" = "" ; then
1.56 kahan 1008: if test "$enable_annot" = "no" ; then
1009: with_annot="no"
1010: else
1.54 cvs 1011: with_annot="yes"
1.47 cvs 1012: fi
1.99 kahan 1013: else
1014: with_annot="yes"
1.47 cvs 1015: fi
1016:
1.93 kahan 1017:
1018: dnl
1.146 kahan 1019: dnl The redland library is enabled by default
1.93 kahan 1020: dnl
1.146 kahan 1021: if test "$with_redland" = "" ; then
1022: if test "$enable_redland" = "no" ; then
1023: with_redland="no"
1.93 kahan 1024: else
1.109 kahan 1025: with_redland="yes"
1026: fi
1027: else
1.146 kahan 1028: with_redland="yes"
1.109 kahan 1029: fi
1030:
1031: dnl
1.116 kahan 1032: dnl The redland library is disabled by default
1033: dnl
1034: if test "$with_system_redland" = "" ; then
1035: if test "$enable_system_redland" = "yes" ; then
1036: with_redland="yes"
1037: with_system_redland="yes"
1038: else
1039: with_system_redland="no"
1040: fi
1041: else
1042: with_system_redland="no"
1043: fi
1044:
1045: dnl
1046: dnl The bookmarks support is disabled by default
1.108 kahan 1047: dnl
1048: if test "$with_bookmarks" = "" ; then
1049: if test "$enable_bookmarks" = "yes" ; then
1050: with_bookmarks="yes"
1.125 vatton 1051: with_redland="yes"
1.108 kahan 1052: else
1053: with_bookmarks="no"
1054: fi
1055: else
1056: with_bookmarks="no"
1057: fi
1058:
1059: dnl
1.186 ! tollenae 1060: dnl The templates support is disabled by default
! 1061: dnl
! 1062: if test "$with_templates" = "" ; then
! 1063: if test "$with_wx" = "yes"; then
! 1064: if test "$enable_templates" = "yes" ; then
! 1065: with_templates="yes"
! 1066: else
! 1067: with_templates="no"
! 1068: fi
! 1069: else
! 1070: AC_MSG_WARN(Templates are only available in WX version !!)
! 1071: AC_MSG_WARN(Disabling templates)
! 1072: with_templates="no"
! 1073: fi
! 1074: else
! 1075: with_templates="no"
! 1076: fi
! 1077:
! 1078: dnl
1.70 kahan 1079: dnl Generic XML support enabled by default
1080: dnl
1081: if test "$with_generic_xml" = "" ; then
1082: if test "$enable_generic_xml" = "no" ; then
1083: with_generic_xml="no"
1084: GENERIC_XML_OPTIONS=
1085: else
1086: with_generic_xml="yes"
1087: GENERIC_XML_OPTIONS=-DXML_GENERIC
1088: fi
1089: fi
1090:
1.88 kirschpi 1091: dnl
1.181 gully 1092: dnl WebDAV support enabled by default
1.88 kirschpi 1093: dnl
1.181 gully 1094: AC_ARG_WITH(dav, [ --with-dav enable WebDAV support (experimental) ])
1.88 kirschpi 1095: if test "$with_dav" = "" ; then
1.181 gully 1096: with_dav="yes"
1097: fi
1.88 kirschpi 1098: if test "$with_dav" = "yes" ; then
1099: DAV_OPTIONS=-DDAV
1.90 kirschpi 1100: DAVDIR="davlib"
1101: LIBDAV="libwwwdav"
1102: WITHDAV="--with-dav"
1103: WWWDAV="-lwwwdav"
1.88 kirschpi 1104: else
1105: with_dav="no"
1106: DAV_OPTIONS=""
1.90 kirschpi 1107: DAVDIR=""
1108: LIBDAV=""
1109: WITHDAV=""
1110: WWWDAV=""
1.88 kirschpi 1111: fi
1112:
1.70 kahan 1113:
1.19 cvs 1114: if test "$build_amaya" = "yes" ; then
1.43 cvs 1115: if test ! -f $srcdir/../libwww/Makefile.in ; then
1.50 cvs 1116: AC_MSG_WARN(libwww sources not found !!)
1117: AC_MSG_WARN(Disabling Amaya build !)
1118: build_amaya="no"
1.1 cvs 1119: fi
1.8 cvs 1120:
1121: if test ! -f $srcdir/amaya/MathML.S ; then
1.10 cvs 1122: if test "$with_math" = "yes" ; then
1.8 cvs 1123: AC_MSG_WARN(MathML sources not found !!)
1.26 cvs 1124: AC_MSG_WARN(Disabling Math build !)
1.10 cvs 1125: with_math="no"
1126: MATH_OPTIONS=
1.8 cvs 1127: fi
1128: fi
1.26 cvs 1129:
1.68 vatton 1130: if test ! -f $srcdir/amaya/SVG.S ; then
1131: if test "$with_svg" = "yes" ; then
1132: AC_MSG_WARN(SVG sources not found !!)
1133: AC_MSG_WARN(Disabling SVG build !)
1134: with_svg="no"
1135: SVG_OPTIONS=
1.26 cvs 1136: fi
1137: fi
1138:
1.48 cvs 1139: if test ! -f $srcdir/annotlib/Makefile.in ; then
1.47 cvs 1140: if test "$with_annot" = "yes" ; then
1141: AC_MSG_WARN(Annotation makefile not found !!)
1142: AC_MSG_WARN(Disabling Annotations build !)
1143: with_annot="no"
1144: fi
1145: fi
1.55 kahan 1146:
1.146 kahan 1147: if test "$with_redland" = "yes" -a "$with_annot" = "no" -a "$with_bookmarks" = "no"; then
1148: AC_MSG_WARN(Disabling redland as neither annotations nor bookmarks are enabled !)
1.93 kahan 1149: MAKERAPTOR=['#']
1150: with_raptor="no"
1151: fi
1152:
1.116 kahan 1153: redland_compile_source=yes
1154: if test "$with_redland" = "yes" -a "$with_system_redland" = "yes" ; then
1155: # check to see if we have a redland library
1156: AC_MSG_CHECKING(system redland library)
1.142 kahan 1157: redland_min_version=0.9.16
1.116 kahan 1158: REDLAND_CONFIG="redland-config"
1159: REDLAND_VERSION=`$REDLAND_CONFIG --version`
1160: redland_version_dec=`echo $REDLAND_VERSION | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
1161: redland_min_version_dec=`echo $redland_min_version | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
1162: if test $redland_version_dec -lt $redland_min_version_dec; then
1163: AC_MSG_RESULT(no - found version $REDLAND_VERSION and minimal version is $redland_min_version)
1164: else
1165: AC_MSG_RESULT(yes - found version $REDLAND_VERSION)
1166: AC_MSG_CHECKING(checking for redland headers)
1.117 kahan 1167: dnl We should use awk here and remove the -I from the following line
1168: dnl REDLAND_HEADERS=`$REDLAND_CONFIG --cflags`
1169: REDLAND_HEADERS=""
1170: if test -e "/usr/include/redland.h" ; then
1171: REDLAND_HEADERS="/usr/include";
1172: else
1173: if test -e "/usr/local/include/redland.h" ; then
1174: REDLAND_HEADERS="/usr/local/include";
1175: fi
1176: fi
1177: if test $REDLAND_HEADERS != ""; then
1.116 kahan 1178: AC_MSG_RESULT(yes - have development version)
1179: redland_compile_source=no
1180: else
1181: AC_MSG_RESULT(no - no development version)
1182: fi
1183: fi
1184: fi
1185:
1186: if test "$with_redland" = "yes" -a "$redland_compile_source" = "yes" \
1187: -a ! -d "$srcdir/../redland" ; then
1.109 kahan 1188: AC_MSG_WARN(Redland source dir not found !!)
1189: AC_MSG_WARN(Disabling redland build !)
1190: MAKEREDLAND=['#']
1191: with_redland="no"
1192: fi
1193:
1194: if test "$with_redland" = "yes" ; then
1.116 kahan 1195: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DLIBRDF_INTERNAL=1 -DAM_REDLAND -DRAPTOR_RDF_PARSER"
1196: if test "$redland_compile_source" = "yes" ; then
1197: AMAYA_RAPTOR_SRC="amaya_comp_redland"
1198: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor"
1199: AMAYA_RAPTOR_LIBS="../redland/librdf/.libs/librdf.a ../redland/raptor/.libs/libraptor.a"
1200: AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor"
1201: else
1202: MAKEREDLAND=['#']
1203: AMAYA_RAPTOR_SRC=
1204: redland_includes=`$REDLAND_CONFIG --cflags`
1205: redland_libs=`$REDLAND_CONFIG --libs`
1206: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS"
1207: AMAYA_ANNOT_INCLUDES="$redland_includes -I\$(THOTDIR)/thotlib/include"
1208: AMAYA_ANNOT_EXTRA_LIBS="$redland_libs"
1209: AMAYA_RAPTOR_INCLUDES="$redland_includes"
1210: fi
1.109 kahan 1211: fi
1212:
1.116 kahan 1213:
1.108 kahan 1214: dnl control whether we should build the bookmarks support
1.146 kahan 1215: if test "$with_annot" = "yes" -a "$with_redland" = "no" ; then
1216: AC_MSG_WARN(Disabling annotations build as redland is disabled !)
1.148 kahan 1217: with_annot="no"
1.146 kahan 1218: fi
1.108 kahan 1219: if test "$with_bookmarks" = "yes" -a "$with_annot" = "no" ; then
1220: AC_MSG_WARN(Disabling bookmarks build as annotations are disabled !)
1221: with_bookmarks="no"
1222: fi
1.109 kahan 1223: if test "$with_bookmarks" = "yes" -a "$with_redland" = "no" ; then
1224: AC_MSG_WARN(Disabling bookmarks build as redland is disabled !)
1.108 kahan 1225: with_bookmarks="no"
1226: fi
1227: if test "$with_bookmarks" = "yes" ; then
1228: ANNOTLIB_COMPILE_BM=
1229: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DBOOKMARKS"
1230: else
1231: ANNOTLIB_COMPILE_BM=['#']
1232: fi
1233:
1.186 ! tollenae 1234: if test "$with_templates" = "yes" ; then
! 1235: TEMPLATES_OPTIONS=
! 1236: fi
! 1237:
1.55 kahan 1238: if test "$with_plugin" = "yes" ; then
1239: AC_MSG_WARN(The plugin library isn't supported anymore in Amaya !!)
1240: AC_MSG_WARN(Disabling plugin build !)
1241: with_plugin="no"
1242: fi
1243:
1.88 kirschpi 1244:
1245: if test ! -f $srcdir/davlib/Makefile.in ; then
1246: if test "$with_dav" = "yes" ; then
1247: AC_MSG_WARN(WebDAV makefile not found !!)
1248: AC_MSG_WARN(Disabling WebDAV build !)
1249: with_dav="no"
1.90 kirschpi 1250: DAVDIR=""
1251: LIBDAV=""
1252: WITHDAV=""
1253: WWWDAV=""
1.88 kirschpi 1254: fi
1255: fi
1256:
1257:
1.1 cvs 1258: fi
1259:
1260: dnl
1261: dnl The options for each library or binary
1262: dnl
1263:
1.134 gully 1264: THOT_OPTIONS="$OS_OPTIONS $GTK_OPTIONS $GL_OPTIONS $WX_OPTIONS $NOGUI_OPTIONS"
1.179 gully 1265: if test "$with_debug" = "yes" ; then
1.186 ! tollenae 1266: AMAYA_OPTIONS="$OS_OPTIONS $MATH_OPTIONS $SVG_OPTIONS $GENERIC_XML_OPTIONS $GTK_OPTIONS $GL_OPTIONS $WX_OPTIONS $NOGUI_OPTIONS $TEMPLATES_OPTIONS -DAMAYA_DEBUG"
1.179 gully 1267: else
1.186 ! tollenae 1268: AMAYA_OPTIONS="$OS_OPTIONS $MATH_OPTIONS $SVG_OPTIONS $GENERIC_XML_OPTIONS $GTK_OPTIONS $GL_OPTIONS $WX_OPTIONS $NOGUI_OPTIONS $TEMPLATES_OPTIONS"
1.179 gully 1269: fi
1.58 cvs 1270: #PLUGIN_OPTIONS="-DPLUGIN_TRACE -DXP_UNIX"
1.129 vatton 1271: AMAYA_ANNOT_OPTIONS="$OS_OPTIONS $AMAYA_ANNOT_OPTIONS"
1.101 kahan 1272:
1.158 gully 1273: if test "$with_wx" = "yes" ; then
1274: IMGLIBS=""
1275: else
1276: IMGLIBS="-ljpeg -lpng -lz"
1277: fi
1.132 gully 1278:
1.3 cvs 1279: EXTRA_LIBS=
1.131 gully 1280: EXTRA_INCLUDES=
1281:
1282: # check for malloc.h
1283: # on macosx, this file is not at the right place
1.173 carcone 1284: if test "$with_mac" = "yes" ; then
1285: for ac_dir in \
1286: /Developer/SDKs/MacOSX10.1.5.sdk/usr/include/objc/ \
1287: /Developer/SDKs/MacOSX10.1.5.sdk/usr/include/sys/ \
1288: /Developer/SDKs/MacOSX10.2.8.sdk/usr/include/objc/ \
1289: /Developer/SDKs/MacOSX10.2.8.sdk/usr/include/sys/ \
1290: /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/objc/ \
1291: /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/sys/ \
1292: ; \
1293: do
1294: if test -r "$ac_dir/malloc.h"; then
1295: echo "found malloc.h"
1296: EXTRA_INCLUDES="${EXTRA_INCLUDES} -I$ac_dir"
1297: break
1298: fi
1299: done
1300: else
1.131 gully 1301: for ac_dir in \
1302: /usr/include/malloc/ \
1303: /sw/include/malloc/ \
1304: ; \
1305: do
1306: if test -r "$ac_dir/malloc.h"; then
1307: echo "found malloc.h"
1308: EXTRA_INCLUDES="${EXTRA_INCLUDES} -I$ac_dir"
1309: break
1310: fi
1311: done
1.173 carcone 1312: fi
1.1 cvs 1313:
1314: dnl
1315: dnl Set up the PATHs needed
1316: dnl
1317:
1318: API="\$(THOTDIR)/thotlib/include"
1319: VAR="\$(THOTDIR)/thotlib/internals/var"
1320: INCL="\$(THOTDIR)/thotlib/internals/h"
1321: FUNC="\$(THOTDIR)/thotlib/internals/f"
1322:
1323: dnl
1324: dnl Set up the include variables.
1325: dnl
1326:
1.61 cvs 1327: THOTINCLUDES="-I${API} -I${VAR} -I${INCL} -I${FUNC} ${JPEGINCL} ${PNGINCL}"
1.58 cvs 1328: APIINCLUDES=-I${API}
1329:
1330: if test "${VPATHOPT}" = "" ; then
1.1 cvs 1331: VPATHOPT="VPATH"
1332: fi
1333:
1334: dnl
1335: dnl Exports the current values of the variables.
1336: dnl
1337:
1.166 gully 1338: AC_SUBST(APP_MAJVER)
1339: AC_SUBST(APP_MINVER)
1340: AC_SUBST(APP_SUBVER)
1341: AC_SUBST(APP_VER)
1.6 cvs 1342: AC_SUBST(CEXTRACT_VER)
1343: AC_SUBST(CEXTRACT_FLAGS)
1.1 cvs 1344:
1345: AC_SUBST(THOTINCLUDES)
1346: AC_SUBST(APIINCLUDES)
1347: AC_SUBST(VPATHOPT)
1348:
1.63 vatton 1349: AC_SUBST(GTK_OPTIONS)
1.1 cvs 1350: AC_SUBST(THOT_OPTIONS)
1351: AC_SUBST(AMAYA_OPTIONS)
1352: AC_SUBST(PLUGIN_OPTIONS)
1.48 cvs 1353: AC_SUBST(AMAYA_ANNOT_OPTIONS)
1.110 kahan 1354: AC_SUBST(AMAYA_ANNOT_INCLUDES)
1.116 kahan 1355: AC_SUBST(AMAYA_ANNOT_EXTRA_LIBS)
1.1 cvs 1356: AC_SUBST(IMGLIBS)
1.3 cvs 1357: AC_SUBST(EXTRA_LIBS)
1.131 gully 1358: AC_SUBST(EXTRA_INCLUDES)
1.90 kirschpi 1359:
1360: AC_SUBST(DAVDIR)
1361: AC_SUBST(LIBDAV)
1362: AC_SUBST(WITHDAV)
1363: AC_SUBST(WWWDAV)
1.1 cvs 1364:
1.93 kahan 1365: AC_SUBST(MAKERAPTOR)
1.109 kahan 1366: AC_SUBST(MAKEREDLAND)
1.108 kahan 1367: AC_SUBST(ANNOTLIB_COMPILE_BM)
1.109 kahan 1368: AC_SUBST(AMAYA_RAPTOR_SRC)
1.93 kahan 1369: AC_SUBST(AMAYA_RAPTOR_LIBS)
1370: AC_SUBST(AMAYA_RAPTOR_INCLUDES)
1371: AC_SUBST(MAKE_LIBWWW_RDF_PARSER)
1372: AC_SUBST(LIBWWW_RDF_PARSER)
1373:
1374: AC_SUBST(SUBDIRS)
1375:
1.1 cvs 1376: dnl
1.48 cvs 1377: dnl Include the option Makefile.xxx fragment according to the configure options
1.1 cvs 1378: dnl
1379:
1380: if test "$with_plugin" = "yes" ; then
1.50 cvs 1381: AC_SUBST_FILE(plugin_frag)
1.1 cvs 1382: plugin_frag=$srcdir/pluginlib/Makefile.plugin
1383: else
1384: AC_SUBST_FILE(plugin_frag)
1385: plugin_frag=/dev/null
1386: fi
1387:
1388: AC_SUBST_FILE(www_frag)
1.49 cvs 1389: www_frag=$srcdir/amaya/Makefile.libwww
1.1 cvs 1390:
1.50 cvs 1391: if test "$with_math" = "no" ; then
1.10 cvs 1392: AC_SUBST_FILE(math_frag)
1.50 cvs 1393: math_frag=/dev/null
1.8 cvs 1394: else
1.10 cvs 1395: AC_SUBST_FILE(math_frag)
1.50 cvs 1396: math_frag=$srcdir/amaya/Makefile.math
1.8 cvs 1397: fi
1398:
1.68 vatton 1399: if test "$with_svg" = "no" ; then
1400: AC_SUBST_FILE(svg_frag)
1401: svg_frag=/dev/null
1.26 cvs 1402: else
1.68 vatton 1403: AC_SUBST_FILE(svg_frag)
1404: svg_frag=$srcdir/amaya/Makefile.svg
1.26 cvs 1405: fi
1406:
1.47 cvs 1407: if test "$with_annot" = "yes" ; then
1408: AC_SUBST_FILE(annot_frag)
1.48 cvs 1409: annot_frag=$srcdir/annotlib/Makefile.annot
1.47 cvs 1410: else
1411: AC_SUBST_FILE(annot_frag)
1412: annot_frag=/dev/null
1413: fi
1414:
1.88 kirschpi 1415: if test "$with_dav" = "yes" ; then
1416: AC_SUBST_FILE(dav_frag)
1417: dav_frag=$srcdir/davlib/Makefile.dav
1418: fi
1.16 cvs 1419:
1.186 ! tollenae 1420: if test "$with_templates" = "yes" ; then
! 1421: AC_SUBST_FILE(templates_frag)
! 1422: templates_frag=$srcdir/amaya/Makefile.templates
! 1423: fi
! 1424:
1.1 cvs 1425: dnl ***************************************************************
1426: dnl
1427: dnl FINAL STEP : PRODUCE ALL THE MAKEFILES AND CONFIG FILES
1428: dnl
1429: dnl ***************************************************************
1430:
1431: EXTRA_MAKEFILE_IN=
1.2 cvs 1432: make_output="Makefile Options.orig:Options.in tools/Makefile \
1.1 cvs 1433: libjpeg/Makefile libpng/Makefile libpng/zlib/Makefile \
1.2 cvs 1434: tools/mkdep/Makefile \
1.1 cvs 1435: tools/cextract-1.7/Makefile thotlib/Makefile \
1.127 vatton 1436: thotlib/include/Makefile batch/Makefile"
1.1 cvs 1437:
1438: if test "$build_amaya" = "yes" ; then
1.2 cvs 1439:
1.19 cvs 1440: make_output="$make_output amaya/Makefile pluginlib/Makefile"
1.2 cvs 1441: EXTRA_MAKEFILE_IN="$srcdir/amaya/Makefile.in \
1.93 kahan 1442: $srcdir/amaya/Makefile.libwww"
1.27 cvs 1443:
1.162 gully 1444: if test "$with_plugin" = "yes" ; then
1.27 cvs 1445: make_output="$make_output pluginlib/Makefile"
1446: EXTRA_MAKEFILE_IN="$srcdir/pluginlib/Makefile.in \
1.93 kahan 1447: $srcdir/pluginlib/Makefile.plugin"
1.27 cvs 1448: fi
1.2 cvs 1449:
1.48 cvs 1450: if test "$with_annot" = "yes" ; then
1451: make_output="$make_output annotlib/Makefile"
1452: EXTRA_MAKEFILE_IN="$srcdir/annotlib/Makefile.in"
1453: fi
1.88 kirschpi 1454:
1455: if test "$with_dav" = "yes" ; then
1456: make_output="$make_output davlib/Makefile"
1457: EXTRA_MAKEFILE_IN="$srcdir/davlib/Makefile.in"
1458: fi
1459:
1.162 gully 1460: if test "$with_wx" = "yes" ; then
1461: EXTRA_MAKEFILE_IN="$EXTRA_MAKEFILE_IN $WX_SRCDIR/Makefile.in $WX_SRCDIR/configure.in"
1462: fi
1463:
1.1 cvs 1464: fi
1465:
1466: AC_SUBST(EXTRA_MAKEFILE_IN)
1.6 cvs 1467: AC_OUTPUT($make_output , [
1468: dnl
1469: dnl This fragment of shell code is executed after the
1470: dnl Makefile(s) dump ...
1471: dnl
1472:
1473: echo timestamp > stamp-h
1474:
1475: dnl
1476: dnl Check for an upgrade in the Options numbers
1477: dnl
1478:
1479: if test -f Options ; then
1480: oldversion=`grep Version Options`
1481: newversion=`grep Version Options.orig`
1482: if test "$oldversion" != "$newversion" ; then
1483: echo WARNING : Options files have changed, old options saved to Options.old
1484: cp Options Options.old
1485: cp Options.orig Options
1486: exit 1
1487: fi
1488: fi
1489: ])
1.1 cvs 1490:
1491: if test "$build_amaya" = "yes" ; then
1.164 gully 1492: echo Amaya $AMAYA_VER configured
1.50 cvs 1493: echo Amaya configured with libWWW
1494: if test "$with_plugin" = "yes" ; then
1495: echo Amaya configured with Plugins support
1.8 cvs 1496: fi
1.10 cvs 1497: if test "$with_math" = "yes" ; then
1498: echo Amaya configured with Math support
1.26 cvs 1499: fi
1.68 vatton 1500: if test "$with_svg" = "yes" ; then
1501: echo Amaya configured with SVG support
1.47 cvs 1502: fi
1503: if test "$with_annot" = "yes" ; then
1504: echo Amaya configured with Annotations support
1.70 kahan 1505: fi
1.93 kahan 1506: if test "$with_raptor" = "yes" ; then
1.106 kahan 1507: echo Amaya configured with the Raptor RDF parser
1.109 kahan 1508: fi
1509: if test "$with_redland" = "yes" ; then
1.116 kahan 1510: if test "$with_system_redland" = "no" ; then
1511: echo Amaya configured with the Redland RDF library \(local source\)
1512: else
1513: echo Amaya configured with the Redland RDF library \(system\)
1514: fi
1.108 kahan 1515: fi
1516: if test "$with_bookmarks" = "yes" ; then
1517: echo Amaya configured with bookmarks support \(experimental\)
1.93 kahan 1518: fi
1.186 ! tollenae 1519: if test "$with_templates" = "yes" ; then
! 1520: echo Amaya configured with templates support \(experimental\)
! 1521: fi
1.70 kahan 1522: if test "$with_generic_xml" = "yes" ; then
1523: echo Amaya configured with generic XML suppport
1524: fi
1.129 vatton 1525: echo Amaya configured with internationalization suppport
1.75 cheyroul 1526: if test "$with_gl" = "yes" ; then
1.143 gully 1527: echo Amaya configured with OpenGL Canvas Rendering \(System library\) \(experimental\)
1528: fi
1529: if test "$with_mesa" = "yes" ; then
1.181 gully 1530: echo Amaya configured with OpenGL Canvas Rendering \(MesaLib\)
1.88 kirschpi 1531: fi
1532: if test "$with_dav" = "yes" ; then
1.181 gully 1533: echo Amaya configured with WebDAV support
1.1 cvs 1534: fi
1.5 cvs 1535: fi
1536:
1.158 gully 1537: if test "$with_wx" = "no" ; then
1538: if test "$no_graphic" = "yes" ; then
1539: echo "Amaya configured with system graphic libraries (libjpeg, libpng, zlib)"
1540: else
1541: echo "Amaya configured with static graphic libraries (libjpeg, libpng, zlib)"
1542: if test "$with_gtk" = "yes" -o "$with_gl" = "yes" ; then
1543: echo " N.B. This option may not work in your platform. If Amaya crashes"
1544: echo " when opening a PNG file. Recompile it using the system libraries."
1545: fi
1546: fi
1.107 kahan 1547: fi
1548:
1549: if test "$with_gtk" = "yes" ; then
1.67 vatton 1550: echo "Amaya configured with GTK"
1.120 gully 1551: fi
1552:
1.124 gully 1553: if test "$with_wx" = "yes" ; then
1.136 gully 1554: if test "$with_wxdebug" = "yes" ; then
1.181 gully 1555: echo "Amaya configured with wxWidgets {srcdir=$WX_SRCDIR} (debug)"
1.136 gully 1556: else
1.181 gully 1557: echo "Amaya configured with wxWidgets {srcdir=$WX_SRCDIR}"
1.136 gully 1558: fi
1.1 cvs 1559: fi
1560:
1.121 gully 1561: if test "$with_nogui" = "yes" ; then
1.128 gully 1562: echo "Amaya configured without GUI toolkit"
1.121 gully 1563: fi
1.136 gully 1564:
1565:
1.107 kahan 1566: echo ""
1.78 vatton 1567: echo "Now type \"make\" (GNU make preferably) to build the binaries"
1.107 kahan 1568: echo ""
1.120 gully 1569:
Webmaster