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