Annotation of Amaya/configure.in, revision 1.213
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: dnl
1.175 gully 204: dnl GL canvas is disabled by default in 8.7.x
205: dnl GL canvas is enabled by default in 9.x
206: dnl - 8.7.x needs : GL, GLX, GLU, freetype2, gtkgl
207: dnl - 9.x needs : GL, GLX, GLU, freetype2, wxGLCanvas
1.85 vatton 208: dnl GL is for opengl
1.175 gully 209: dnl GlX is for XWindow integration
1.85 vatton 210: dnl GLU is for tesselation algortihms (until we extract it from this lib)
211: dnl (tesselation is used for polygons with holes in it...)
212: dnl gtkgl is for integration of opengl in GTK
1.175 gully 213: dnl freetype2 is for text drawing (fonts ...)
214: dnl wxGLCanvas is for integration of opengl in wxWidgets (WX)
1.211 vatton 215: AC_ARG_WITH([gl],
1.210 vatton 216: AC_HELP_STRING([--with-gl],[enable Opengl canvas (experimental)]),
217: [case "${withval}" in
218: yes) with_gl="yes" ;;
219: no) with_gl="no" ;;
220: *) AC_MSG_ERROR(bad value ${withval} for --with-gl) ;;
221: esac],
222: [with_gl="no"])
1.85 vatton 223:
1.120 gully 224: # check if gtk gui should be used
225: AC_ARG_WITH(gtk, [ --with-gtk use GTK GUI toolkit ])
1.208 vatton 226: if test "$with_gtk" = "yes" ; then
1.120 gully 227: if test "$withval" = "no" ; then
228: with_gtk="no"
1.197 vatton 229: with_wx="yes"
1.120 gully 230: else
231: with_gtk="yes"
1.196 cvs 232: with_wx="no"
1.120 gully 233: fi
234: fi
235:
1.197 vatton 236: # check if wxWidgets gui should be used
237: AC_ARG_WITH(wx, [ --with-wx use wxWidgets GUI toolkit])
1.208 vatton 238: if test "$with_wx" = "yes" ; then
1.197 vatton 239: if test "$withval" = "no" ; then
240: with_wx="no"
241: else
242: with_wx="yes"
243: with_gtk="no"
244: fi
245: fi
1.205 vatton 246: AC_ARG_ENABLE(system-wx, [ --enable-system-wx try the wxWidgets system library ])
1.197 vatton 247: if test "$with_gtk" = "" -o "$with_wx=" = "" ; then
248: # Nothing is enable so force the default GUI toolkit (WX)
249: with_gtk="no"
250: with_wx="yes"
251: fi
252:
1.143 gully 253: # check for mesa library (OpenGL)
1.205 vatton 254: AC_ARG_WITH(MESA, [ --with-mesa enable canvas with software OpenGL implementation (Mesa) ])
1.143 gully 255: if test "$with_mesa" = "" ; then
1.208 vatton 256: with_mesa="no"
1.143 gully 257: fi
258:
1.124 gully 259:
1.175 gully 260: # Check if at least one GUI toolkit is enabled
1.197 vatton 261: if test "$with_wx" = "no" ; then
262: if test "$with_gtk" = "no" ; then
263: # Nothing is enable so force the default GUI toolkit (WX)
264: with_wx="yes"
265: with_gtk="no"
1.85 vatton 266: fi
267: fi
268:
1.176 gully 269: # mesa (software) gl implementation is default with wx (hardware gl implem can be choosen with --with-gl option)
1.197 vatton 270: if test "$with_wx" = "yes" -o "$with_wx" = "" ; then
1.183 carcone 271: if test "$AMAYAOS" = "MACOSX" ; then
272: with_mesa="no"
273: with_gl="yes"
274: else
1.176 gully 275: if test "$with_gl" = "no" ; then
276: with_mesa="yes"
1.175 gully 277: fi
1.183 carcone 278: fi
1.175 gully 279: fi
280:
1.136 gully 281: # check if wxWidgets debug is enable
1.155 carcone 282: AC_ARG_WITH(wxdebug, [ --with-wxdebug compiles wxWidgets with debuging options ])
1.136 gully 283: if test "$with_wxdebug" = "yes" ; then
284: with_wxdebug="yes"
285: else
286: with_wxdebug="no"
287: fi
288:
1.153 gully 289: # it is possible to specify wxWidgets library path,
290: # usefull for developpers who want to compile amaya with different wxWidgets version
1.155 carcone 291: AC_ARG_WITH(wxsrcdir, [ --with-wxsrcdir=... compiles Amaya with a specific wxWidgets sources path ])
1.153 gully 292: if test "$with_wxsrcdir" = "" ; then
293: with_wxsrcdir="../../wxWidgets"
294: fi
295:
296:
1.134 gully 297: if test "$with_wx" = "yes" ; then
1.120 gully 298: if test "$with_gtk" = "yes" ; then
299: echo
300: echo "****************************************************************"
301: echo " ERROR: "
302: echo " More than one GUI toolkit is enable"
303: echo " Only one GUI toolkit should be enable (turn off one)"
304: echo " exemple ok : ../configure --with-gtk "
1.134 gully 305: echo " exemple !ok : ../configure --with-gtk --with-wx"
1.120 gully 306: echo "****************************************************************"
307: echo
308: exit 1
309: fi
310: fi
1.134 gully 311:
1.152 gully 312:
313: # setup the AMAYAGUI variable used to identify used GUI when 'make install' is called
314: # now several amaya gui can coexist.
315: if test "$with_gtk" = "yes" ; then
316: AMAYAGUI="gtk"
317: fi
318: if test "$with_gl" = "yes" ; then
319: AMAYAGUI="gl"
320: fi
321: if test "$with_wx" = "yes" ; then
322: AMAYAGUI="wx"
323: fi
324: AC_SUBST(AMAYAGUI)
325:
326:
1.85 vatton 327: if test "$with_gtk" = "yes" ; then
1.134 gully 328: gdkimlib_h_found="no"
1.63 vatton 329:
1.134 gully 330: # check that gtk-config exists
331: AC_CHECK_PROG(GTKCONFIG_FOUND,gtk-config,yes,no)
332: if test "$GTKCONFIG_FOUND" = no ; then
333: AC_MSG_ERROR(Cannot find gtk-config. Please install gtk development library.)
334: fi
335:
1.131 gully 336: GTK_INCLUDES="${GTK_INCLUDES} `gtk-config --cflags`"
1.124 gully 337: AC_SUBST(GTK_INCLUDES)
338: GTK_LIBRARIES="`gtk-config --libs`"
1.134 gully 339: # GL doesn't need the imlib
1.124 gully 340: if test "${with_gl}" != "yes" ; then
1.134 gully 341: GTK_LIBRARIES="${GTK_LIBRARIES} -lgdk_imlib"
342: else
343: gdkimlib_h_found="yes"
1.124 gully 344: fi
1.106 kahan 345:
1.124 gully 346: AC_SUBST(GTK_LIBRARIES)
347: GTK_OPTIONS="-D_GTK"
1.76 vatton 348: no_graphic=yes
1.134 gully 349:
1.150 gully 350: # SG : lookingfor gtkimlib includes
351: # because not found with gtk-config on macosx
352: gtk_path_for_gdkimlib_h="`gtk-config --prefix`"
353: for ac_dir in \
354: /sw/include/ \
355: /sw/local/include \
356: /usr/include \
357: /usr/local/include \
358: "$gtk_path_for_gdkimlib_h/include" \
359: "$gtk_path_for_gdkimlib_h/local/include" \
360: ; \
361: do
362: if test -r "$ac_dir/gdk_imlib.h"; then
363: echo "found gdk_imlib.h"
364: gdkimlib_h_found="yes"
365: GTK_INCLUDES="${GTK_INCLUDES} -I$ac_dir"
366: break
367: fi
368: done
369:
1.134 gully 370: if test "$gdkimlib_h_found" = "no" ; then
371: echo
372: echo "****************************************************************"
373: echo " ERROR: gdk_imlib.h not found -"
374: echo " [please install imlib developpement package (libimlib1-devel on mandrake)]"
375: echo "****************************************************************"
376: exit 1
377: fi
1.120 gully 378: fi
379:
1.143 gully 380:
381: if test "$with_mesa" = "yes" ; then
382: # --------- compile Mesa library (opengl) --------------- #
383:
384: # check that sources of Mesa exists
385: if test ! -f ../../Mesa/Makefile ; then
386: AC_MSG_ERROR(Mesa library sources not found (opengl). Please download Mesa sources (http://www.mesa3d.org/) or remove --with-gl option !)
387: fi
388:
389: OLDDIR=`pwd`
1.152 gully 390: GL_BUILDDIR="${OLDDIR}/Mesa"
1.143 gully 391:
1.163 gully 392: echo "---> Install Mesa library into ${GL_BUILDDIR}"
1.143 gully 393:
1.163 gully 394: mkdir -p ${GL_BUILDDIR}
395: cp -r ../../Mesa/* ${GL_BUILDDIR}
1.143 gully 396:
1.152 gully 397: echo "---> Install Mesa library into ${GL_BUILDDIR} - DONE"
1.143 gully 398:
399: # this is the flags used to build amaya with OpenGL
400: GL_OPTIONS="-D_GL"
1.152 gully 401: GL_INCLUDES="-I${GL_BUILDDIR}/include"
402: GL_LIBRARIES="-Wl,-rpath,${GL_BUILDDIR}/lib -L${GL_BUILDDIR}/lib -lGL -lGLU"
403: AC_SUBST(GL_BUILDDIR)
1.143 gully 404: AC_SUBST(GL_INCLUDES)
405: AC_SUBST(GL_LIBRARIES)
406: fi
407:
1.124 gully 408: if test "$with_wx" = "yes" ; then
1.205 vatton 409: if test "$enable_system_wx" = "yes"; then
410: AC_PATH_PROG(WXCONFIG, wx-config)
411: if test -z "$WXCONFIG"; then
412: enable_system_wx="no"
413: fi
1.135 gully 414: fi
1.205 vatton 415:
416: if test "$enable_system_wx" != "yes"; then
417: # WX_SRCDIR is better to understand the code than with_wxsrcdir variable
418: if test ! -f $with_wxsrcdir/Makefile.in ; then
419: $with_wxsrcdir = ../../wxWidgets
420: fi
421: cd $with_wxsrcdir
422: WX_SRCDIR=`pwd`
423: cd -
424: AC_SUBST(WX_SRCDIR)
425:
426: # check that sources of wxWidgets exists
427: if test ! -f $WX_SRCDIR/Makefile.in ; then
428: 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 !)
429: fi
1.135 gully 430:
1.152 gully 431: # --------- configure wxWidgets library --------------- #
1.135 gully 432: echo "---> Configuring wxWidgets library."
433: OLDDIR=`pwd`
1.149 gully 434: # create the build directory (debug or release)
435: if test $with_wxdebug = yes ; then
1.152 gully 436: WX_BUILDDIR="wxWidgets_DEBUG"
1.149 gully 437: else
1.152 gully 438: WX_BUILDDIR="wxWidgets_RELEASE"
1.149 gully 439: fi
1.205 vatton 440:
1.152 gully 441: mkdir -p $WX_BUILDDIR
442: cd $WX_BUILDDIR
443: AC_SUBST(WX_BUILDDIR)
1.136 gully 444:
1.149 gully 445: # remove old configure cached options
1.135 gully 446: rm -f configarg.cache
1.136 gully 447:
448: # setup configure options
1.158 gully 449:
450: # disable unused wx features
451: # --disable-htmlhelp
452: # --disable-html
453: # --disable-docview
454: # --disable-mdi
455: # --disable-mdidoc
456: # --disable-protocols
457: # --disable-ftp
458: # --disable-http
459: # --disable-sound
1.185 gully 460: # --disable-backtrace # to avoid the buggy popup when an assert occurs
461: WXCONFIGURE_TUNNING_OPTION="--disable-printarch --disable-htmlhelp --disable-html --disable-docview --disable-mdi --disable-mdidoc --disable-sound --disable-backtrace"
1.158 gully 462:
1.178 gully 463: if test "$AMAYAOS" = "LINUX" ; then
1.135 gully 464: # LINUX
1.145 gully 465: # --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
1.158 gully 466: # --disable-shared create only static library (.a)
1.145 gully 467: # --enable-unicode compile wxString with Unicode support
468: # --with-gtk use GTK+
469: # --with-opengl use OpenGL (or Mesa)
1.205 vatton 470: WXCONFIGURE_OPTION="--build=$build_alias --host=$host_alias --target=$target_alias --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 471: fi
1.178 gully 472: if test "$AMAYAOS" = "MACOSX" ; then
1.135 gully 473: # MACOSX
1.170 carcone 474: WXCONFIGURE_OPTION="--with-opengl --disable-shared --enable-unicode --with-libpng=builtin --with-libjpeg=builtin"
1.136 gully 475: fi
476: if test $with_wxdebug = yes ; then
1.141 gully 477: WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-debug"
1.143 gully 478: # SG: I've disabled other debug options because the lib has bugs when using these flags \
479: # (maybe because these flags are not often used by wxWidgets developpers)
1.141 gully 480: # WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-debug --enable-debug_cntxt --enable-debug_gdb --enable-debug_info --enable-debug_flag --enable-mem_tracing"
1.145 gully 481: else
482: WXCONFIGURE_OPTION="$WXCONFIGURE_OPTION --enable-optimise"
1.135 gully 483: fi
1.143 gully 484:
1.136 gully 485: # launch the configure
1.143 gully 486: if test "$with_mesa" = "yes" ; then
487: # use internal OpenGL (mesa) libraries
1.165 gully 488: $WX_SRCDIR/configure CFLAGS="-I${GL_BUILDDIR}/include" CXXFLAGS="-I${GL_BUILDDIR}/include" CPPFLAGS="-I${GL_BUILDDIR}/include" $WXCONFIGURE_OPTION
1.158 gully 489: #../$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 490: if test $? != 0 ; then
491: AC_MSG_ERROR(A problem occurs durring wxWidgets library configuration. Please fix the problem and try again.)
492: fi
1.143 gully 493: else
494: # use OpenGL system libraries
1.165 gully 495: $WX_SRCDIR/configure $WXCONFIGURE_OPTION
1.143 gully 496: fi
1.152 gully 497: cd $OLDDIR
1.135 gully 498: echo "---> Configuring wxWidgets library. - DONE"
1.143 gully 499:
1.135 gully 500: # --------- configuring wxWidgets paths --------------- #
1.152 gully 501: WXCONFIG=$WX_BUILDDIR/wx-config
1.134 gully 502: # check that wx-config exists
1.135 gully 503: if test ! -f $WXCONFIG ; then
1.143 gully 504: AC_MSG_ERROR(Cannot find wx-config. Please download wxWidgets (http://www.wxwidgets.org/))
1.134 gully 505: fi
1.144 gully 506:
507: # setup include paths
1.165 gully 508: # "-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)
1.205 vatton 509: WX_INCLUDES="-I$WX_SRCDIR/src/png -I$WX_SRCDIR/src/jpeg -I$WX_SRCDIR/src/tiff"
510:
511: BUILDWXWIDGETS="wxwidgets"
512: AC_SUBST(BUILDWXWIDGETS)
513:
514: fi
515:
516: WX_INCLUDES="$WX_INCLUDES `$WXCONFIG --cxxflags`"
517:
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.187 gully 532: if test "$AMAYAOS" = "MACOSX" ; then
1.170 carcone 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.210 vatton 622: AMAYAWX_MINVER=53
1.201 vatton 623: AMAYAWX_SUBVER=0
1.166 gully 624:
625: #the old version (to remove when switching on wx)
626: AMAYA_MAJVER=8
1.210 vatton 627: AMAYA_MINVER=53
1.205 vatton 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:
1.187 gully 804: if test "$AMAYAOS" = "MACOSX" ; then
1.174 carcone 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.187 gully 818: # ---------- Check for gtkglarea.h only if gtk gui is selected
1.143 gully 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)
1.187 gully 852: fi # "$with_gtk" = "yes"
1.132 gully 853:
1.187 gully 854: # ---------- Checking for freetype lib (fonts library)
855: if test "$AMAYAOS" = "MACOSX" ; then
1.173 carcone 856: # we use a static version of freetype lib for mac osx
1.187 gully 857: # ** search for includes (freetype.h)
858: for ac_dir in \
859: /Developer/SDKs/MacOSX10.1.5.sdk/usr/X11R6/include/ \
860: /Developer/SDKs/MacOSX10.1.5.sdk/usr/X11R6/include/freetype2/ \
861: /Developer/SDKs/MacOSX10.2.8.sdk/usr/X11R6/include/ \
862: /Developer/SDKs/MacOSX10.2.8.sdk/usr/X11R6/include/freetype2/ \
863: /Developer/SDKs/MacOSX10.3.0.sdk/usr/X11R6/include/ \
864: /Developer/SDKs/MacOSX10.3.0.sdk/usr/X11R6/include/freetype2/ \
1.207 vatton 865: /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/ \
866: /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/freetype2/ \
1.187 gully 867: /Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/ \
868: /Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/freetype2/ \
869: /Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/include/ \
1.207 vatton 870: /Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/include/freetype2/ \
1.190 carcone 871: /opt/local/include/ \
872: /opt/local/include/freetype2/ \
873: /usr/X11R6/include/freetype2/freetype/ \
874: ; \
1.187 gully 875: do
876: if test -r "$ac_dir/ft2build.h"; then
877: FREETYPE_INCLUDES="${FREETYPE_INCLUDES} -I$ac_dir"
1.191 carcone 878: fi
879: if test -r "$ac_dir/freetype/config/ftheader.h"; then
880: FREETYPE_INCLUDES="${FREETYPE_INCLUDES} -I$ac_dir"
1.187 gully 881: fi
882: done
883: # ** search for binary (libfreetype.a)
884: for ac_dir in \
885: /Developer/SDKs/MacOSX10.1.5.sdk/usr/X11R6/lib/ \
886: /Developer/SDKs/MacOSX10.2.8.sdk/usr/X11R6/lib/ \
887: /Developer/SDKs/MacOSX10.3.0.sdk/usr/X11R6/lib/ \
1.207 vatton 888: /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/ \
1.187 gully 889: /Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/lib/ \
890: /Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/lib/ \
1.190 carcone 891: /opt/local/lib/ \
892: /usr/X11R6/lib/ \
1.187 gully 893: ; \
894: do
895: if test -r "$ac_dir/libfreetype.a"; then
1.192 carcone 896: FREETYPE_LIBRARIES="$ac_dir/libfreetype.a"
1.187 gully 897: break
898: fi
899: done
900: else # "$AMAYAOS" = "MACOSX"
1.173 carcone 901: if test ! -f $(which freetype-config) ; then
902: AC_MSG_ERROR(Cannot find freetype library (font load/display routines). Please install it.)
903: fi
904: FREETYPE_INCLUDES=`freetype-config --cflags`
905: FREETYPE_LIBRARIES=`freetype-config --libs`
1.187 gully 906: fi # "$AMAYAOS" = "MACOSX"
907: AC_SUBST(FREETYPE_INCLUDES)
908: AC_SUBST(FREETYPE_LIBRARIES)
909:
910:
1.143 gully 911:
1.187 gully 912: # ----------- START CHECKING XFT
913: # checking for Xft which is only used on GTK version (not wxWidgets)
914: if test "$with_gtk" = "yes" ; then
1.143 gully 915:
916: # checking for xft lib
917: # (not used because xft-config doesn't exist on debian stable)
918: #if test ! -f $(which xft-config) ; then
919: # AC_MSG_ERROR(Cannot find Xft library. Please install it.)
920: #fi
921: #XFT_INCLUDES=`xft-config --cflags`
922: #XFT_LIBRARIES=`xft-config --libs`
923: #AC_SUBST(XFT_INCLUDES)
924: #AC_SUBST(XFT_LIBRARIES)
925:
926: AC_MSG_CHECKING([Xft])
927: for ac_dir in \
1.104 cheyroul 928: /usr/include \
929: /usr/X11R6/include \
930: /usr/local/include \
931: /usr/include/X11/Xft \
932: /usr/X11R6/include/X11/Xft \
933: /usr/local/include/X11/Xft \
934: /usr/include/X11/Xft1 \
935: /usr/X11R6/include/X11/Xft1 \
1.113 vatton 936: /usr/include/Xft2/X11/Xft/ \
1.104 cheyroul 937: /usr/local/include/X11/Xft1 \
938: /usr/include/X11/Xft2 \
939: /usr/X11R6/include/X11/Xft2 \
940: /usr/local/include/X11/Xft2 \
941: ; \
1.143 gully 942: do if test -r "$ac_dir/Xft.h" ; then
943: xft_inc="yes"
944: XFT_INCLUDES="-I$ac_dir"
945: AC_MSG_RESULT([yes])
946: break
947: fi
948: done
949: if test "$xft_inc" = "" ; then
950: AC_MSG_WARN(Xft 2 headers (Xft.h) not found !!)
951: AC_MSG_WARN(Disabling opengl build !)
952: with_gl="no"
953: exit 1;
954: fi
955:
956: AC_MSG_CHECKING([Xft-library])
1.155 carcone 957:
1.143 gully 958: for ac_dir in \
959: /usr/lib \
960: /usr/X11R6/lib \
961: /usr/local/lib \
962: ; \
963: do if test -r "$ac_dir/libXft.so" ; then
964: xft_lib="yes"
965: XFT_LIBRARIES="-L$ac_dir -lXft"
966: AC_MSG_RESULT([yes])
967: break
968: fi
969: done
970: if test "$xft_lib" = "" ; then
971: AC_MSG_WARN(Xft 2 librarie (libXft.so) not found !!)
972: AC_MSG_WARN(Disabling opengl build !)
973: with_gl="no"
974: exit 1;
975: fi
1.155 carcone 976:
1.143 gully 977: AC_SUBST(XFT_INCLUDES)
978: AC_SUBST(XFT_LIBRARIES)
979: # END CHECKING XFT #
1.187 gully 980: fi # "$with_gtk" = "yes"
1.143 gully 981:
982:
983: AC_MSG_CHECKING([gcc3])
984: for ac_dir in \
1.96 cheyroul 985: /usr/lib \
986: /usr/X11R6/lib \
987: /usr/local/lib \
988: ; \
1.143 gully 989: do if test -r "$ac_dir/libstdc++.so.5" ; then
990: stdglu_inc="yes"
991: STDCPP_LIBRARIES="-lstdc++"
992: STDCPP_INCLUDES=""
993: AC_MSG_RESULT([yes])
994: break
995: fi
996: done
1.159 gully 997:
1.143 gully 998: fi # if with_gl or with_mesa
1.132 gully 999:
1.208 vatton 1000: AC_ARG_ENABLE([svg],
1001: AC_HELP_STRING([--disable-svg],[disable SVG support]),
1002: [case "${enableval}" in
1003: yes) with_svg="yes" ;;
1004: no) with_svg="no" ;;
1005: *) AC_MSG_ERROR(bad value ${enableval} for --disable-svg) ;;
1006: esac],
1007: [with_svg="yes"])
1008:
1.210 vatton 1009: ##########################Annotations and Bookmarks Support####################
1.208 vatton 1010: dnl
1011: dnl annotations are enabled by default
1012: dnl
1013: AC_ARG_ENABLE([annot],
1014: AC_HELP_STRING([--disable-annot],[disable Annotations support]),
1015: [case "${enableval}" in
1016: yes) with_annot="yes" ;;
1017: no) with_annot="no" ;;
1018: *) AC_MSG_ERROR(bad value ${enableval} for --disable-annot) ;;
1019: esac],
1020: [with_annot="yes"])
1.93 kahan 1021:
1022: dnl
1.116 kahan 1023: dnl The bookmarks support is disabled by default
1.108 kahan 1024: dnl
1.208 vatton 1025: AC_ARG_ENABLE([bookmarks],
1026: AC_HELP_STRING([--enable-bookmarks],[enable experimental bookmark support]),
1027: [case "${enableval}" in
1.210 vatton 1028: yes) with_bookmarks="yes" ;;
1.208 vatton 1029: no) with_bookmarks="no" ;;
1030: *) AC_MSG_ERROR(bad value ${enableval} for --enable-bookmarks) ;;
1031: esac],
1032: [with_bookmarks="no"])
1.108 kahan 1033:
1.210 vatton 1034: #if the directory containing Annotlib
1035: #and Bookmarks is not present,
1036: #don't try to build them
1037: if test ! -f $srcdir/annotlib/Makefile.in ; then
1038: AC_MSG_WARN(Annotation makefile not found !!)
1039: AC_MSG_WARN(Disabling Annotations build !)
1040: with_annot="no"
1041: with_bookmarks="no"
1042: fi
1043:
1044: if test "$with_bookmarks" = "yes" -a "$with_annot" = "no" ; then
1045: AC_MSG_WARN(Disabling bookmarks build as annotations are disabled !)
1046: with_bookmarks="no"
1047: fi
1048:
1049: #annot and bookmarks need Redland
1050: if test "$with_annot" = "yes" -o "$with_bookmarks" = "yes" ; then
1051: with_redland="yes"
1052: else
1053: with_redland="no"
1054: fi
1055:
1056: AC_ARG_ENABLE([system-redland],
1057: AC_HELP_STRING([--enable-system-redland],[try the redland RDF system library]),
1058: [case "${enableval}" in
1059: yes) with_system_redland="yes";;
1060: no) with_system_redland="no" ;;
1061: *) AC_MSG_ERROR(bad value ${enableval} for --enable-system-redland) ;;
1062: esac],
1063: [with_system_redland="no"])
1064:
1065: #If Redland is needed and we are asked
1066: #to use the system library, check if is present
1067: if test "$with_redland" = "yes" -a "$with_system_redland" = "yes" ; then
1068: # check to see if we have a redland library
1069: AC_PATH_PROG([REDLAND_CONFIG],[redland-config])
1070:
1071: if test "$REDLAND_CONFIG" = "" ; then
1072: AC_MSG_WARN(Not using system-provided redland library)
1073: with_system_redland="no"
1074: else
1075:
1076: AC_MSG_CHECKING(system redland version)
1077: redland_min_version=0.9.16
1078: REDLAND_VERSION=`$REDLAND_CONFIG --version`
1079: redland_version_dec=`echo $REDLAND_VERSION | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
1080: redland_min_version_dec=`echo $redland_min_version | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
1081: if test $redland_version_dec -lt $redland_min_version_dec; then
1082: AC_MSG_RESULT(no - found version $REDLAND_VERSION and minimal version is $redland_min_version)
1083: with_system_redland="no"
1084: else
1085: AC_MSG_RESULT(yes - found version $REDLAND_VERSION)
1086: AC_MSG_CHECKING(checking for redland headers)
1087: dnl We should use awk here and remove the -I from the following line
1088: dnl REDLAND_HEADERS=`$REDLAND_CONFIG --cflags`
1089: REDLAND_HEADERS=""
1090: if test -e "/usr/include/redland.h" ; then
1091: REDLAND_HEADERS="/usr/include";
1092: elif test -e "/usr/local/include/redland.h" ; then
1093: REDLAND_HEADERS="/usr/local/include";
1094: fi
1095: if test $REDLAND_HEADERS != ""; then
1096: AC_MSG_RESULT(yes - have development version)
1097: else
1098: AC_MSG_RESULT(no - no development version)
1099: with_system_redland="no"
1100: fi
1101: fi
1102: fi
1103: fi
1104:
1105: #if we use the builtin library,
1106: #check it is present
1107: if test "$with_redland" = "yes" -a "$with_system_redland" != "yes" \
1108: -a ! -d "$srcdir/../redland" ; then
1109: AC_MSG_WARN(Redland source dir not found !!)
1110: AC_MSG_WARN(Disabling redland build !)
1111: MAKEREDLAND=['#']
1112: with_redland="no"
1113: fi
1114:
1115: #At this point, we know everything about Redland,
1116: #so either set the variables we will need later,
1117: #ot disable Annotations and Bookmarks
1118: if test "$with_redland" = "yes" ; then
1119: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DAM_REDLAND"
1120: if test "$with_system_redland" != "yes" ; then
1121: AMAYA_RAPTOR_SRC="amaya_comp_redland"
1.213 ! vatton 1122: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor/src "
! 1123: AMAYA_RAPTOR_LIBS="../redland/librdf/.libs/librdf.a ../redland/raptor/src/.libs/libraptor.a"
! 1124: AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor/src"
1.210 vatton 1125: else
1126: MAKEREDLAND=['#']
1127: AMAYA_RAPTOR_SRC=
1128: redland_includes=`$REDLAND_CONFIG --cflags`
1129: redland_libs=`$REDLAND_CONFIG --libs`
1130: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS"
1131: AMAYA_ANNOT_INCLUDES="$redland_includes -I\$(THOTDIR)/thotlib/include"
1132: AMAYA_ANNOT_EXTRA_LIBS="$redland_libs"
1133: AMAYA_RAPTOR_INCLUDES="$redland_includes"
1134: fi
1135: else
1136: with_annot="no"
1137: with_bookmarks="no"
1138: fi
1139:
1140: #Bookmarks require some specific flags
1141: if test "$with_bookmarks" = "yes" ; then
1142: ANNOTLIB_COMPILE_BM=
1143: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DBOOKMARKS"
1144: else
1145: ANNOTLIB_COMPILE_BM=['#']
1146: fi
1147:
1148: ###################End of Annotations and Bookmarks Support####################
1149:
1150:
1.108 kahan 1151: dnl
1.194 vatton 1152: dnl The templates support is enabled by default
1.186 tollenae 1153: dnl
1.208 vatton 1154: AC_ARG_ENABLE([templates],
1155: AC_HELP_STRING([--disable-templates],[disable experimental templates support]),
1156: [case "${enableval}" in
1157: yes) with_templates="yes" ;;
1158: no) with_templates="no" ;;
1159: *) AC_MSG_ERROR(bad value ${enableval} for --disable-templates) ;;
1160: esac],
1161: [with_templates="yes"])
1162:
1163: if test "$with_templates" = yes -a "$with_wx" != "yes"; then
1164: AC_MSG_WARN(Templates are only available in WX version !!)
1165: AC_MSG_WARN(Disabling templates)
1166: with_templates="no"
1167: fi
1.197 vatton 1168:
1.208 vatton 1169: if test "$with_templates" = "yes" ; then
1.194 vatton 1170: TEMPLATES_OPTIONS="-DTEMPLATES"
1.186 tollenae 1171: else
1.194 vatton 1172: TEMPLATES_OPTIONS=""
1.186 tollenae 1173: fi
1174:
1.194 vatton 1175:
1.186 tollenae 1176: dnl
1.70 kahan 1177: dnl Generic XML support enabled by default
1178: dnl
1.208 vatton 1179: AC_ARG_ENABLE([generic-xml],
1180: AC_HELP_STRING([--disable-generic-xml],[disable Generic XML support]),
1181: [case "${enableval}" in
1182: yes) with_generic_xml="yes" ;;
1183: no) with_generic_xml="no" ;;
1184: *) AC_MSG_ERROR(bad value ${enableval} for --disable-generic-xml) ;;
1185: esac],
1186: [with_generic_xml="yes"])
1187:
1.209 vatton 1188: if test "$with_generic_xml" = "yes" ; then
1189: GENERIC_XML_OPTIONS="-DXML_GENERIC"
1190: else
1191: GENERIC_XML_OPTIONS=""
1192: fi
1193:
1.88 kirschpi 1194: dnl
1.181 gully 1195: dnl WebDAV support enabled by default
1.88 kirschpi 1196: dnl
1.181 gully 1197: AC_ARG_WITH(dav, [ --with-dav enable WebDAV support (experimental) ])
1.88 kirschpi 1198: if test "$with_dav" = "" ; then
1.181 gully 1199: with_dav="yes"
1200: fi
1.88 kirschpi 1201: if test "$with_dav" = "yes" ; then
1202: DAV_OPTIONS=-DDAV
1.90 kirschpi 1203: DAVDIR="davlib"
1204: LIBDAV="libwwwdav"
1205: WITHDAV="--with-dav"
1206: WWWDAV="-lwwwdav"
1.88 kirschpi 1207: else
1208: with_dav="no"
1209: DAV_OPTIONS=""
1.90 kirschpi 1210: DAVDIR=""
1211: LIBDAV=""
1212: WITHDAV=""
1213: WWWDAV=""
1.88 kirschpi 1214: fi
1215:
1.70 kahan 1216:
1.19 cvs 1217: if test "$build_amaya" = "yes" ; then
1.43 cvs 1218: if test ! -f $srcdir/../libwww/Makefile.in ; then
1.50 cvs 1219: AC_MSG_WARN(libwww sources not found !!)
1220: AC_MSG_WARN(Disabling Amaya build !)
1221: build_amaya="no"
1.1 cvs 1222: fi
1.8 cvs 1223:
1224: if test ! -f $srcdir/amaya/MathML.S ; then
1.10 cvs 1225: if test "$with_math" = "yes" ; then
1.8 cvs 1226: AC_MSG_WARN(MathML sources not found !!)
1.26 cvs 1227: AC_MSG_WARN(Disabling Math build !)
1.10 cvs 1228: with_math="no"
1229: MATH_OPTIONS=
1.8 cvs 1230: fi
1231: fi
1.26 cvs 1232:
1.68 vatton 1233: if test ! -f $srcdir/amaya/SVG.S ; then
1234: if test "$with_svg" = "yes" ; then
1235: AC_MSG_WARN(SVG sources not found !!)
1236: AC_MSG_WARN(Disabling SVG build !)
1237: with_svg="no"
1238: SVG_OPTIONS=
1.26 cvs 1239: fi
1240: fi
1241:
1.88 kirschpi 1242: if test ! -f $srcdir/davlib/Makefile.in ; then
1243: if test "$with_dav" = "yes" ; then
1244: AC_MSG_WARN(WebDAV makefile not found !!)
1245: AC_MSG_WARN(Disabling WebDAV build !)
1246: with_dav="no"
1.90 kirschpi 1247: DAVDIR=""
1248: LIBDAV=""
1249: WITHDAV=""
1250: WWWDAV=""
1.88 kirschpi 1251: fi
1252: fi
1253:
1254:
1.1 cvs 1255: fi
1256:
1257: dnl
1258: dnl The options for each library or binary
1259: dnl
1260:
1.211 vatton 1261: THOT_OPTIONS="$OS_OPTIONS $GTK_OPTIONS $GL_OPTIONS $WX_OPTIONS"
1262:
1263: AMAYA_OPTIONS="$OS_OPTIONS $MATH_OPTIONS $SVG_OPTIONS $GENERIC_XML_OPTIONS $GTK_OPTIONS $GL_OPTIONS $WX_OPTIONS $TEMPLATES_OPTIONS"
1264:
1.179 gully 1265: if test "$with_debug" = "yes" ; then
1.211 vatton 1266: AMAYA_OPTIONS="$AMAYA_OPTIONS -DAMAYA_DEBUG"
1.179 gully 1267: fi
1.101 kahan 1268:
1.158 gully 1269: if test "$with_wx" = "yes" ; then
1270: IMGLIBS=""
1271: else
1272: IMGLIBS="-ljpeg -lpng -lz"
1273: fi
1.132 gully 1274:
1.131 gully 1275: EXTRA_INCLUDES=
1276:
1277: # check for malloc.h
1278: # on macosx, this file is not at the right place
1.187 gully 1279: if test "$AMAYAOS" = "MACOSX" ; then
1.173 carcone 1280: for ac_dir in \
1281: /Developer/SDKs/MacOSX10.1.5.sdk/usr/include/objc/ \
1282: /Developer/SDKs/MacOSX10.1.5.sdk/usr/include/sys/ \
1283: /Developer/SDKs/MacOSX10.2.8.sdk/usr/include/objc/ \
1284: /Developer/SDKs/MacOSX10.2.8.sdk/usr/include/sys/ \
1285: /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/objc/ \
1286: /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/sys/ \
1287: ; \
1288: do
1289: if test -r "$ac_dir/malloc.h"; then
1290: echo "found malloc.h"
1291: EXTRA_INCLUDES="${EXTRA_INCLUDES} -I$ac_dir"
1292: break
1293: fi
1294: done
1.187 gully 1295: else # "$AMAYAOS" = "MACOSX"
1.131 gully 1296: for ac_dir in \
1297: /usr/include/malloc/ \
1298: /sw/include/malloc/ \
1299: ; \
1300: do
1301: if test -r "$ac_dir/malloc.h"; then
1302: echo "found malloc.h"
1303: EXTRA_INCLUDES="${EXTRA_INCLUDES} -I$ac_dir"
1304: break
1305: fi
1306: done
1.187 gully 1307: fi # "$AMAYAOS" = "MACOSX"
1.1 cvs 1308:
1309: dnl
1310: dnl Set up the PATHs needed
1311: dnl
1312:
1313: API="\$(THOTDIR)/thotlib/include"
1314: VAR="\$(THOTDIR)/thotlib/internals/var"
1315: INCL="\$(THOTDIR)/thotlib/internals/h"
1316: FUNC="\$(THOTDIR)/thotlib/internals/f"
1317:
1318: dnl
1319: dnl Set up the include variables.
1320: dnl
1321:
1.61 cvs 1322: THOTINCLUDES="-I${API} -I${VAR} -I${INCL} -I${FUNC} ${JPEGINCL} ${PNGINCL}"
1.58 cvs 1323: APIINCLUDES=-I${API}
1324:
1325: if test "${VPATHOPT}" = "" ; then
1.1 cvs 1326: VPATHOPT="VPATH"
1327: fi
1328:
1.206 vatton 1329: AMAYA_INSTALLDIR="Amaya-${APP_VER}"
1330:
1.1 cvs 1331: dnl
1332: dnl Exports the current values of the variables.
1333: dnl
1334:
1.206 vatton 1335: AC_SUBST(AMAYA_INSTALLDIR)
1336:
1.166 gully 1337: AC_SUBST(APP_MAJVER)
1338: AC_SUBST(APP_MINVER)
1339: AC_SUBST(APP_SUBVER)
1340: AC_SUBST(APP_VER)
1.6 cvs 1341: AC_SUBST(CEXTRACT_VER)
1342: AC_SUBST(CEXTRACT_FLAGS)
1.1 cvs 1343:
1344: AC_SUBST(THOTINCLUDES)
1345: AC_SUBST(APIINCLUDES)
1346: AC_SUBST(VPATHOPT)
1347:
1.63 vatton 1348: AC_SUBST(GTK_OPTIONS)
1.1 cvs 1349: AC_SUBST(THOT_OPTIONS)
1350: AC_SUBST(AMAYA_OPTIONS)
1.48 cvs 1351: AC_SUBST(AMAYA_ANNOT_OPTIONS)
1.110 kahan 1352: AC_SUBST(AMAYA_ANNOT_INCLUDES)
1.116 kahan 1353: AC_SUBST(AMAYA_ANNOT_EXTRA_LIBS)
1.1 cvs 1354: AC_SUBST(IMGLIBS)
1.131 gully 1355: AC_SUBST(EXTRA_INCLUDES)
1.90 kirschpi 1356:
1357: AC_SUBST(DAVDIR)
1358: AC_SUBST(LIBDAV)
1359: AC_SUBST(WITHDAV)
1360: AC_SUBST(WWWDAV)
1.1 cvs 1361:
1.109 kahan 1362: AC_SUBST(MAKEREDLAND)
1.108 kahan 1363: AC_SUBST(ANNOTLIB_COMPILE_BM)
1.109 kahan 1364: AC_SUBST(AMAYA_RAPTOR_SRC)
1.93 kahan 1365: AC_SUBST(AMAYA_RAPTOR_LIBS)
1366: AC_SUBST(AMAYA_RAPTOR_INCLUDES)
1367: AC_SUBST(MAKE_LIBWWW_RDF_PARSER)
1368: AC_SUBST(LIBWWW_RDF_PARSER)
1369:
1370: AC_SUBST(SUBDIRS)
1371:
1.1 cvs 1372: dnl
1.48 cvs 1373: dnl Include the option Makefile.xxx fragment according to the configure options
1.1 cvs 1374: dnl
1375:
1.211 vatton 1376: www_frag=$srcdir/amaya/Makefile.libwww
1377: AC_SUBST_FILE(www_frag)
1.1 cvs 1378:
1.50 cvs 1379: if test "$with_math" = "no" ; then
1380: math_frag=/dev/null
1.8 cvs 1381: else
1.50 cvs 1382: math_frag=$srcdir/amaya/Makefile.math
1.8 cvs 1383: fi
1.211 vatton 1384: AC_SUBST_FILE(math_frag)
1.8 cvs 1385:
1.68 vatton 1386: if test "$with_svg" = "no" ; then
1387: svg_frag=/dev/null
1.26 cvs 1388: else
1.68 vatton 1389: svg_frag=$srcdir/amaya/Makefile.svg
1.26 cvs 1390: fi
1.211 vatton 1391: AC_SUBST_FILE(svg_frag)
1.26 cvs 1392:
1.47 cvs 1393: if test "$with_annot" = "yes" ; then
1.48 cvs 1394: annot_frag=$srcdir/annotlib/Makefile.annot
1.47 cvs 1395: else
1396: annot_frag=/dev/null
1397: fi
1.211 vatton 1398: AC_SUBST_FILE(annot_frag)
1.47 cvs 1399:
1.88 kirschpi 1400: if test "$with_dav" = "yes" ; then
1401: dav_frag=$srcdir/davlib/Makefile.dav
1.188 vatton 1402: else
1403: dav_frag=/dev/null
1.88 kirschpi 1404: fi
1.211 vatton 1405: AC_SUBST_FILE(dav_frag)
1.16 cvs 1406:
1.186 tollenae 1407: if test "$with_templates" = "yes" ; then
1408: templates_frag=$srcdir/amaya/Makefile.templates
1.188 vatton 1409: else
1410: templates_frag=/dev/null
1.186 tollenae 1411: fi
1.211 vatton 1412: AC_SUBST_FILE(templates_frag)
1.186 tollenae 1413:
1.1 cvs 1414: dnl ***************************************************************
1415: dnl
1416: dnl FINAL STEP : PRODUCE ALL THE MAKEFILES AND CONFIG FILES
1417: dnl
1418: dnl ***************************************************************
1419:
1420: EXTRA_MAKEFILE_IN=
1.2 cvs 1421: make_output="Makefile Options.orig:Options.in tools/Makefile \
1.1 cvs 1422: libjpeg/Makefile libpng/Makefile libpng/zlib/Makefile \
1.2 cvs 1423: tools/mkdep/Makefile \
1.1 cvs 1424: tools/cextract-1.7/Makefile thotlib/Makefile \
1.193 gully 1425: thotlib/include/Makefile batch/Makefile \
1426: script_install:../batch/script_install.in \
1427: script_install_gnomekde:../batch/script_install_gnomekde.in \
1428: script_install_macosxbundle:../batch/script_install_macosxbundle.in \
1429: script_uninstall:../batch/script_uninstall.in"
1.1 cvs 1430:
1431: if test "$build_amaya" = "yes" ; then
1.2 cvs 1432:
1.208 vatton 1433: make_output="$make_output amaya/Makefile"
1.2 cvs 1434: EXTRA_MAKEFILE_IN="$srcdir/amaya/Makefile.in \
1.93 kahan 1435: $srcdir/amaya/Makefile.libwww"
1.27 cvs 1436:
1.48 cvs 1437: if test "$with_annot" = "yes" ; then
1438: make_output="$make_output annotlib/Makefile"
1439: EXTRA_MAKEFILE_IN="$srcdir/annotlib/Makefile.in"
1440: fi
1.88 kirschpi 1441:
1442: if test "$with_dav" = "yes" ; then
1443: make_output="$make_output davlib/Makefile"
1444: EXTRA_MAKEFILE_IN="$srcdir/davlib/Makefile.in"
1445: fi
1446:
1.205 vatton 1447: if test "$with_wx" = "yes" -a "enable_system_wx" = "yes" ; then
1.162 gully 1448: EXTRA_MAKEFILE_IN="$EXTRA_MAKEFILE_IN $WX_SRCDIR/Makefile.in $WX_SRCDIR/configure.in"
1449: fi
1450:
1.1 cvs 1451: fi
1452:
1453: AC_SUBST(EXTRA_MAKEFILE_IN)
1.6 cvs 1454: AC_OUTPUT($make_output , [
1455: dnl
1456: dnl This fragment of shell code is executed after the
1457: dnl Makefile(s) dump ...
1458: dnl
1459:
1460: echo timestamp > stamp-h
1461:
1462: dnl
1463: dnl Check for an upgrade in the Options numbers
1464: dnl
1465:
1466: if test -f Options ; then
1467: oldversion=`grep Version Options`
1468: newversion=`grep Version Options.orig`
1469: if test "$oldversion" != "$newversion" ; then
1470: echo WARNING : Options files have changed, old options saved to Options.old
1471: cp Options Options.old
1472: cp Options.orig Options
1473: exit 1
1474: fi
1475: fi
1.193 gully 1476: if test -f script_install ; then
1477: chmod a+x script_install
1478: fi
1479: if test -f script_install_gnomekde ; then
1480: chmod a+x script_install_gnomekde
1481: fi
1482: if test -f script_install_macosxbundle ; then
1483: chmod a+x script_install_macosxbundle
1484: fi
1485: if test -f script_uninstall ; then
1486: chmod a+x script_uninstall
1487: fi
1.6 cvs 1488: ])
1.1 cvs 1489:
1490: if test "$build_amaya" = "yes" ; then
1.164 gully 1491: echo Amaya $AMAYA_VER configured
1.50 cvs 1492: echo Amaya configured with libWWW
1.10 cvs 1493: if test "$with_math" = "yes" ; then
1494: echo Amaya configured with Math support
1.26 cvs 1495: fi
1.68 vatton 1496: if test "$with_svg" = "yes" ; then
1497: echo Amaya configured with SVG support
1.47 cvs 1498: fi
1499: if test "$with_annot" = "yes" ; then
1500: echo Amaya configured with Annotations support
1.70 kahan 1501: fi
1.109 kahan 1502: if test "$with_redland" = "yes" ; then
1.116 kahan 1503: if test "$with_system_redland" = "no" ; then
1504: echo Amaya configured with the Redland RDF library \(local source\)
1505: else
1506: echo Amaya configured with the Redland RDF library \(system\)
1507: fi
1.108 kahan 1508: fi
1509: if test "$with_bookmarks" = "yes" ; then
1510: echo Amaya configured with bookmarks support \(experimental\)
1.93 kahan 1511: fi
1.186 tollenae 1512: if test "$with_templates" = "yes" ; then
1513: echo Amaya configured with templates support \(experimental\)
1514: fi
1.70 kahan 1515: if test "$with_generic_xml" = "yes" ; then
1.195 vatton 1516: echo Amaya configured with generic XML support
1.70 kahan 1517: fi
1.195 vatton 1518: echo Amaya configured with internationalization support
1.75 cheyroul 1519: if test "$with_gl" = "yes" ; then
1.143 gully 1520: echo Amaya configured with OpenGL Canvas Rendering \(System library\) \(experimental\)
1521: fi
1522: if test "$with_mesa" = "yes" ; then
1.181 gully 1523: echo Amaya configured with OpenGL Canvas Rendering \(MesaLib\)
1.88 kirschpi 1524: fi
1525: if test "$with_dav" = "yes" ; then
1.181 gully 1526: echo Amaya configured with WebDAV support
1.1 cvs 1527: fi
1.5 cvs 1528: fi
1529:
1.158 gully 1530: if test "$with_wx" = "no" ; then
1531: if test "$no_graphic" = "yes" ; then
1532: echo "Amaya configured with system graphic libraries (libjpeg, libpng, zlib)"
1533: else
1534: echo "Amaya configured with static graphic libraries (libjpeg, libpng, zlib)"
1535: if test "$with_gtk" = "yes" -o "$with_gl" = "yes" ; then
1536: echo " N.B. This option may not work in your platform. If Amaya crashes"
1537: echo " when opening a PNG file. Recompile it using the system libraries."
1538: fi
1539: fi
1.107 kahan 1540: fi
1541:
1542: if test "$with_gtk" = "yes" ; then
1.67 vatton 1543: echo "Amaya configured with GTK"
1.120 gully 1544: fi
1545:
1.124 gully 1546: if test "$with_wx" = "yes" ; then
1.136 gully 1547: if test "$with_wxdebug" = "yes" ; then
1.181 gully 1548: echo "Amaya configured with wxWidgets {srcdir=$WX_SRCDIR} (debug)"
1.136 gully 1549: else
1.181 gully 1550: echo "Amaya configured with wxWidgets {srcdir=$WX_SRCDIR}"
1.136 gully 1551: fi
1.1 cvs 1552: fi
1553:
1.136 gully 1554:
1.107 kahan 1555: echo ""
1.78 vatton 1556: echo "Now type \"make\" (GNU make preferably) to build the binaries"
1.107 kahan 1557: echo ""
1.120 gully 1558:
Webmaster