Annotation of Amaya/configure.in, revision 1.105
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:
13: AC_PREREQ(2.2)
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
53: AC_PROG_LEX
54: AC_PROG_AWK
55: AC_PROG_INSTALL
56: AC_PROG_LN_S
57: AC_PROG_MAKE_SET
58: AC_PROG_RANLIB
59: AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/ucb/bin)
60: AC_PATH_PROG(MV, mv, /bin/mv, $PATH:/bin:/usr/bin:/usr/ucb/bin)
61: AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/ucb/bin)
62: AC_PATH_PROG(MKDIR, mkdir, /bin/mkdir, $PATH:/bin:/usr/bin:/usr/ucb/bin)
63: AC_PATH_PROG(ECHO, echo, /bin/echo, $PATH:/bin:/usr/bin:/usr/ucb/bin)
64: AC_PATH_PROG(CAT, cat, /bin/cat, $PATH:/bin:/usr/bin:/usr/ucb/bin)
65: AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/ucb/bin)
66: AC_PATH_PROG(SED, sed, /bin/sed, $PATH:/bin:/usr/bin:/usr/ucb/bin)
67: AC_PATH_PROG(AR, ar, /usr/bin/ar, $PATH:/bin:/usr/bin:/usr/ucb/bin)
1.6 cvs 68: AC_PATH_PROG(DIFF, diff, /usr/bin/diff, $PATH:/bin:/usr/bin:/usr/ucb/bin)
1.1 cvs 69:
70: dnl
71: dnl Checks for libraries.
72: dnl
73:
74: AC_CHECK_LIB(socket, socket, )
75: AC_CHECK_LIB(inet, connect)
76: AC_CHECK_LIB(nsl, t_accept)
77: AC_CHECK_LIB(dl, dlopen)
78: AC_PATH_X
79: AC_PATH_XTRA
80:
1.41 cvs 81: dnl
82: dnl Check for libXp
83: dnl
1.38 cvs 84:
1.41 cvs 85: for ac_dir in \
86: /usr/X11R6/lib \
87: /usr/X11R5/lib \
88: \
89: /usr/lib/X11R6 \
90: /usr/lib/X11R5 \
91: \
92: /usr/local/X11R6/lib \
93: /usr/local/X11R5/lib \
94: \
95: /usr/local/lib/X11R6 \
96: /usr/local/lib/X11R5 \
97: \
98: /usr/X11/lib \
99: /usr/lib/X11 \
100: /usr/local/X11/lib \
101: /usr/local/lib/X11 \
102: \
103: /usr/X386/lib \
104: /usr/x386/lib \
105: /usr/XFree86/lib/X11 \
106: \
107: /usr/dt/lib \
108: \
109: /usr/lib \
110: /usr/local/lib \
111: /usr/unsupported/lib \
112: /usr/athena/lib \
113: /usr/local/x11r5/lib \
114: /usr/lpp/Xamples/lib \
115: \
116: /usr/lesstif/lib \
117: /usr/local/lesstif/lib\
118: /usr/gnu/lesstif/lib \
119: $HOME/lesstif/lib \
120: ; \
121: do
122: if test -r "$ac_dir/libXp.a" -o -r "$ac_dir/libXp.so"; then
123: echo "\nfound libXp.a\n"
124: X_PRE_LIBS="-lXp ${X_PRE_LIBS}"
125: break
126: fi
127: done
1.1 cvs 128: dnl
1.5 cvs 129: dnl Checks for header files.
130: dnl
131:
132: AC_HEADER_DIRENT
133: AC_HEADER_STDC
134: AC_HEADER_SYS_WAIT
135:
136: AC_CHECK_HEADERS(stdio.h)
137: AC_CHECK_HEADERS(sys/types.h types.h)
138: AC_CHECK_HEADERS(sys/unistd.h unistd.h)
139: AC_CHECK_HEADERS(sys/fcntl.h fcntl.h)
140: AC_CHECK_HEADERS(sys/limits.h limits.h)
141: AC_CHECK_HEADERS(sys/stat.h stat.h)
142: AC_CHECK_HEADERS(sys/file.h)
143: AC_CHECK_HEADERS(sys/ioctl.h)
144: AC_CHECK_HEADERS(sys/time.h time.h)
145: AC_CHECK_HEADERS(sys/systeminfo.h)
1.46 cvs 146: AC_CHECK_HEADERS(sys/string.h strings.h)
1.34 cvs 147: AC_CHECK_HEADERS(sys/syslog.h syslog.h)
1.5 cvs 148: AC_CHECK_HEADERS(sys/socket.h socket.h)
149: AC_CHECK_HEADERS(appkit/appkit.h appkit.h)
1.72 vatton 150: AC_CHECK_HEADERS(apppkit/apppkit.h apppkit.h)
1.5 cvs 151: AC_CHECK_HEADERS(netinet/in.h in.h)
152: AC_CHECK_HEADERS(dn.h)
153: AC_CHECK_HEADERS(sys/ipc.h)
154: AC_CHECK_HEADERS(net/errno.h sys/errno.h errno.h)
155: AC_CHECK_HEADERS(pwd.h)
156: AC_CHECK_HEADERS(grp.h)
157: AC_CHECK_HEADERS(arpa/inet.h inet.h)
158: AC_CHECK_HEADERS(netdb.h)
159: AC_CHECK_HEADERS(manifest.h)
160: AC_CHECK_HEADERS(bsdtypes.h)
161: AC_CHECK_HEADERS(stdefs.h)
162: AC_CHECK_HEADERS(bsdtime.h)
163: AC_CHECK_HEADERS(sys/select.h select.h)
164: AC_CHECK_HEADERS(dnetdb.h)
165: AC_CHECK_HEADERS(libc.h)
166: AC_CHECK_HEADERS(stdlib.h)
167: AC_CHECK_HEADERS(malloc.h)
168: AC_CHECK_HEADERS(memory.h)
169: AC_CHECK_HEADERS(unixlib.h)
170: AC_CHECK_HEADERS(ctype.h)
171: AC_CHECK_HEADERS(cursesX.h curses.h)
172: AC_CHECK_HEADERS(sys/resource.h resource.h)
173: AC_HEADER_DIRENT
174: AC_CHECK_HEADERS(dir.h direct.h) dnl AC_HEADER_DIRENT only checks for some..
175: AC_HEADER_STDC
176: AC_HEADER_SYS_WAIT
177: AC_HEADER_TIME
178: AC_HEADER_STAT
1.103 kahan 179: AC_CHECK_HEADERS(stdint.h)
1.5 cvs 180:
181: dnl
182: dnl Checks for typedefs, structures, and compiler characteristics.
183: dnl
184:
185: AC_C_CONST
186: AC_C_INLINE
187: AC_TYPE_MODE_T
188: AC_TYPE_OFF_T
189: AC_TYPE_SIZE_T
190: AC_HEADER_TIME
191: AC_STRUCT_TM
192: AC_STRUCT_TIMEZONE
193: AC_TYPE_UID_T
194:
195: dnl
196: dnl Checks for library functions.
197: dnl
198:
199: AC_FUNC_ALLOCA
200: AC_TYPE_GETGROUPS
201: AC_PROG_GCC_TRADITIONAL
202: AC_FUNC_MEMCMP
203: AC_FUNC_MMAP
204: AC_TYPE_SIGNAL
205: AC_FUNC_VPRINTF
1.58 cvs 206: 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 207:
1.75 cheyroul 208:
1.85 vatton 209:
210: AC_ARG_WITH(GL, [ --with-gl enable Opengl canvas (experimental) ])
211: dnl
212: dnl GL canvas is disabled by default
213: dnl
214: dnl needs Opengl, glu, Xft (xfree 4 font server)
215: dnl needs GTK
216: dnl text WILL need freetype2, ftgl
217: dnl GL is for opengl
218: dnl Glu is for text drawing (until we switch)
219: dnl GLU is for tesselation algortihms (until we extract it from this lib)
220: dnl (tesselation is used for polygons with holes in it...)
221: dnl gtkgl is for integration of opengl in GTK
222: if test "$with_gl" = "" ; then
223: if test "$enable_gl" = "yes" ; then
224: with_gl="yes"
225: else
226: with_gl="no"
227: fi
228: fi
229:
1.63 vatton 230: GTK_OPTIONS=
1.95 vatton 231: AC_ARG_WITH(gtk, [ --without-gtk use Motif instead of GTK])
232: if test "$withval" = "no" ; then
1.85 vatton 233: if test "$with_gl" = "yes" ; then
234: with_gtk="yes"
1.95 vatton 235: else
236: with_gtk="no"
1.85 vatton 237: fi
1.95 vatton 238: else
239: with_gtk="yes"
1.85 vatton 240: fi
241:
242: if test "$with_gtk" = "yes" ; then
1.63 vatton 243: for ac_dir in \
1.65 cvs 244: /usr/lib/glib/include \
1.63 vatton 245: /usr/X11R6/include \
246: \
247: /usr/include/X11R6 \
248: /usr/local/X11R6/include \
249: /usr/local/include/X11R6 \
250: \
251: /usr/X11/include \
252: /usr/include/X11 \
253: /usr/local/X11/include \
254: /usr/local/include/X11 \
255: \
256: /usr/X386/include \
257: /usr/x386/include \
258: /usr/XFree86/include/X11 \
259: /usr/dt/include \
260: /usr/include \
261: /usr/local/include \
262: /usr/local/lib/glib/include \
263: ; \
264: do
265: if test -r "$ac_dir/gdk/gdk.h"; then
266: no_gtk= ac_gtk_includes=$ac_dir
267: break
268: fi
269: done
270:
1.65 cvs 271: GTK_INCLUDES="`gtk-config --cflags`"
1.63 vatton 272: AC_SUBST(GTK_INCLUDES)
1.87 kahan 273: GTK_LIBRARIES="`gtk-config --libs` -lgdk_imlib"
1.63 vatton 274: AC_SUBST(GTK_LIBRARIES)
1.100 cheyroul 275: GTK_OPTIONS="-D_GTK -D_SVGANIM -D_SVGLIB"
1.63 vatton 276: no_motif=yes
1.76 vatton 277: no_graphic=yes
1.63 vatton 278: else
1.5 cvs 279: dnl
1.4 cvs 280: dnl Checking for Motif libraries and includes
281: dnl
282: dnl Borrowed from Lesstif configure.in
283: dnl Lesstif is a Great Project (TM)
284: dnl
285:
286: AC_DEFUN(AC_PATH_MOTIF_DIRECT,
287: [test -z "$motif_direct_test_library" && motif_direct_test_library=Xm
288: test -z "$motif_direct_test_function" && motif_direct_test_function=XmCreatePushButton
289: test -z "$motif_direct_test_include" && motif_direct_test_include=Xm/Xm.h
290: for ac_dir in \
291: /usr/include/Motif1.2 \
292: /usr/Motif1.2/include \
1.71 vatton 293: /sw/Lesstif/Motif2.0/include \
1.4 cvs 294: \
295: /usr/motif/include \
296: \
297: /usr/X11R6/include \
298: /usr/X11R5/include \
299: \
300: /usr/include/X11R6 \
301: /usr/include/X11R5 \
302: \
303: /usr/local/X11R6/include \
304: /usr/local/X11R5/include \
305: \
306: /usr/local/include/X11R6 \
307: /usr/local/include/X11R5 \
308: \
309: /usr/X11/include \
310: /usr/include/X11 \
311: /usr/local/X11/include \
312: /usr/local/include/X11 \
313: \
314: /usr/X386/include \
315: /usr/x386/include \
316: /usr/XFree86/include/X11 \
317: \
318: /usr/dt/include \
319: \
320: /usr/include \
321: /usr/local/include \
322: /usr/unsupported/include \
323: /usr/athena/include \
324: /usr/local/x11r5/include \
325: /usr/lpp/Xamples/include \
1.14 cvs 326: \
327: /usr/lesstif/include \
328: /usr/local/lesstif/include\
329: /usr/gnu/lesstif/include \
330: $HOME/lesstif/include \
1.4 cvs 331: ; \
332: do
333: if test -r "$ac_dir/$motif_direct_test_include"; then
334: no_motif= ac_motif_includes=$ac_dir
335: break
336: fi
337: done
338:
339: # Check for the libraries.
340: # See if we find them without any special options.
341: # Don't add to $LIBS permanently.
342: ac_save_LIBS="$LIBS"
343: LIBS="-l$motif_direct_test_library $LIBS"
344: # First see if replacing the include by lib works.
345: for ac_dir in `echo "$ac_motif_includes" | sed s/include/lib/` \
346: /usr/lib/Motif1.2 \
347: /usr/Motif1.2/lib \
1.71 vatton 348: /sw/Lesstif/Motif2.0/lib \
1.4 cvs 349: \
350: /usr/motif/lib \
351: \
352: /usr/X11R6/lib \
353: /usr/X11R5/lib \
354: \
355: /usr/lib/X11R6 \
356: /usr/lib/X11R5 \
357: \
358: /usr/local/X11R6/lib \
359: /usr/local/X11R5/lib \
360: \
361: /usr/local/lib/X11R6 \
362: /usr/local/lib/X11R5 \
363: \
364: /usr/X11/lib \
365: /usr/lib/X11 \
366: /usr/local/X11/lib \
367: \
368: /usr/X386/lib \
369: /usr/x386/lib \
370: /usr/XFree86/lib/X11 \
371: \
372: /usr/lib \
373: /usr/local/lib \
374: /usr/unsupported/lib \
375: /usr/athena/lib \
376: /usr/local/x11r5/lib \
377: /usr/lpp/Xamples/lib \
1.14 cvs 378: \
379: /usr/lesstif/lib \
380: /usr/local/lesstif/lib\
381: /usr/gnu/lesstif/lib \
382: $HOME/lesstif/lib \
1.4 cvs 383: ; \
384: do
1.71 vatton 385: for ac_extension in a so sl la; do
1.4 cvs 386: if test -r $ac_dir/lib${motif_direct_test_library}.$ac_extension; then
387: no_motif= ac_motif_libraries=$ac_dir
388: break 2
389: fi
390: done
1.5 cvs 391: done
392: LIBS="$ac_save_LIBS"
393: ])
1.4 cvs 394:
395: AC_DEFUN(AC_PATH_MOTIF,
1.66 vatton 396: [AC_REQUIRE_CPP()
1.4 cvs 397:
398: motif_includes=NONE
399: motif_libraries=NONE
400:
401: AC_MSG_CHECKING(for Motif)
1.63 vatton 402: if test "x$motif_includes" != xNONE && test "x$motif_libraries" != xNONE; then
403: no_motif=
1.4 cvs 404: else
405: AC_CACHE_VAL(ac_cv_path_motif,
406: [# One or both of these vars are not set, and there is no cached value.
1.63 vatton 407: no_motif=yes
1.4 cvs 408: AC_PATH_MOTIF_DIRECT
409:
410: if test "$no_motif" = yes; then
1.63 vatton 411: ac_cv_path_motif="no_motif=yes"
1.4 cvs 412: else
1.63 vatton 413: ac_cv_path_motif="no_motif= ac_motif_includes=$ac_motif_includes ac_motif_libraries=$ac_motif_libraries"
1.66 vatton 414: fi])
415: eval "$ac_cv_path_motif"
1.63 vatton 416: fi
1.4 cvs 417:
418: if test "$no_motif" = yes; then
419: AC_MSG_RESULT(no)
1.5 cvs 420: MOTIF_INCLUDES=
421: MOTIF_LIBRARIES=
1.4 cvs 422: else
423: test "x$motif_includes" = xNONE && motif_includes=$ac_motif_includes
424: test "x$motif_libraries" = xNONE && motif_libraries=$ac_motif_libraries
425: ac_cv_path_motif="no_motif= ac_motif_includes=$motif_includes ac_motif_libraries=$motif_libraries"
426: AC_MSG_RESULT([libraries $motif_libraries, headers $motif_includes])
1.5 cvs 427: if test "$motif_includes" != "/usr/include" ; then
428: MOTIF_INCLUDES="-I$motif_includes"
429: fi
430: if test "$motif_libraries" != "/usr/lib" ; then
1.64 cvs 431: MOTIF_LIBRARIES="-L$motif_libraries -lXm"
1.19 cvs 432: case "${host}" in
433: *-*sun-solaris* )
434: MOTIF_LIBRARIES="${MOTIF_LIBRARIES} -R$motif_libraries"
435: ;;
1.65 cvs 436: esac
437: else
438: MOTIF_LIBRARIES="-lXm"
1.5 cvs 439: fi
1.4 cvs 440: fi
1.5 cvs 441: AC_SUBST(MOTIF_INCLUDES)
442: AC_SUBST(MOTIF_LIBRARIES)
1.4 cvs 443: ])
444:
445: AC_PATH_MOTIF
1.66 vatton 446: fi
1.4 cvs 447:
1.63 vatton 448: if test "${GCC}" = "yes"; then
449: CPP="${CPP} -x c"
450: fi
451:
1.1 cvs 452: dnl ***************************************************************
453: dnl
1.61 cvs 454: dnl SPECIFIC STUFF : CONFIGURATION OPTIONS FOR AMAYA
1.1 cvs 455: dnl
456: dnl ***************************************************************
457:
1.101 kahan 458: # We don't use our graphic libraries for the pure GTK version (without GL)
459:
460: echo "with gtk is ${with_gtk}, with gl is ${with_gl}\n"
461:
462: if test "${with_gtk}" != "yes" -o "${with_gl}" = "yes" ; then
1.105 ! vatton 463: AC_ARG_WITH(graphic-libs, [ --with-graphic-libs use static libjpeg, libpng.])
1.101 kahan 464: if test "$withval" = "no" ; then
465: no_graphic=yes
466: fi
467: if test "$withval" = "yes" ; then
468: no_graphic=no
469: fi
1.76 vatton 470: fi
471:
472: if test "$no_graphic" = yes; then
473: dnl
474: AC_MSG_CHECKING([for libjpeg version = 6b])
475: AC_EGREP_CPP([x 62 *x],
476: [#include <jpeglib.h>
477: x JPEG_LIB_VERSION x],
478: dnl
479: AC_MSG_RESULT([yes])
1.105 ! vatton 480: JPEGINCL=''
1.76 vatton 481: LIBJPEG='-ljpeg'
482: MAKEJPEG=['#'],
483: dnl
484: AC_MSG_RESULT([no])
1.105 ! vatton 485: JPEGINCL='-I$(THOTDIR)/libjpeg'
1.76 vatton 486: LIBJPEG='../libjpeg.a' dnl LIBJPEG goes into amaya/Makefile.in
487: )
488: dnl
489: dnl
1.95 vatton 490: AC_MSG_CHECKING([for libpng version = 1.0.x or 1.2.x])
491: AC_EGREP_CPP([x \"1.[02]\..*\" *x],
1.76 vatton 492: [#include <png.h>
493: x PNG_LIBPNG_VER_STRING x],
494: dnl
495: AC_MSG_RESULT([yes])
1.105 ! vatton 496: PNGINCL=''
1.76 vatton 497: LIBPNG='-lpng'
498: LIBZ=''
499: MAKEPNG=['#'],
500: dnl
501: AC_MSG_RESULT([no])
1.105 ! vatton 502: PNGINCL='-I$(THOTDIR)/libpng -I$(THOTDIR)/libpng/zlib'
1.76 vatton 503: LIBPNG='../libpng.a'
504: LIBZ='../libz.a'
505: )
506: else
1.105 ! vatton 507: JPEGINCL='-I$(THOTDIR)/libjpeg'
1.76 vatton 508: LIBJPEG='../libjpeg.a'
1.105 ! vatton 509: PNGINCL='-I$(THOTDIR)/libpng -I$(THOTDIR)/libpng/zlib'
1.76 vatton 510: LIBPNG='../libpng.a'
511: LIBZ='../libz.a'
512: fi
513: dnl
514: AC_SUBST(LIBJPEG)
515: AC_SUBST(LIBPNG)
516: AC_SUBST(LIBZ)
517: AC_SUBST(MAKEJPEG)
518: AC_SUBST(MAKEPNG)
519:
1.105 ! vatton 520: AMAYA_VER="7.0"
1.1 cvs 521:
522: dnl
1.6 cvs 523: dnl We use a special versoin of cextract patched for alignment
524: dnl to build the signatures of the modules functions located in f subdirs
525: dnl
526: CEXTRACT_VER="1.7"
527: CEXTRACT_FLAGS="+O"
528:
1.3 cvs 529:
530: dnl
1.9 cvs 531: dnl Adjust the some variables depending on the host and compiler
1.61 cvs 532: dnl Thotlib NEED signed chars !!!
1.7 cvs 533: dnl
534:
535: if test "${CC}" = "gcc" ; then
1.44 cvs 536: CFLAGS="${CFLAGS} -W "
1.7 cvs 537: case "${host}" in
538: *-*-irix5* | *-*irix6* )
539: CFLAGS="${CFLAGS} -fsigned-char"
540: ;;
541: esac
1.14 cvs 542: fi
543:
544: if test "$ac_cv_c_const" = "no" ; then
545: CFLAGS="${CFLAGS} -DCONST= "
1.7 cvs 546: fi
547:
548: dnl
1.61 cvs 549: dnl Check for availability of amaya sources
1.1 cvs 550: dnl
551:
552: build_amaya="yes"
553:
554: if test "$with_amaya" = "no" ; then
555: build_amaya="no"
1.45 cvs 556: else
557: if test ! -f $srcdir/amaya/Makefile.in ; then
1.1 cvs 558: AC_MSG_WARN(Amaya browser/editor sources not found, disabling Amaya build !)
559: build_amaya="no"
1.45 cvs 560: fi
1.1 cvs 561: fi
562:
563: dnl
1.50 cvs 564: dnl Check for additionnal packages
1.1 cvs 565: dnl use AC_CONFIG_SUBDIRS to launch configure in the subdir
566: dnl
1.93 kahan 567:
1.82 vatton 568: AC_ARG_WITH(i18n, [ --without-i18n disable internationalization support ])
1.76 vatton 569: dnl
570: dnl I18N support disabled by default
571: dnl
1.77 kahan 572:
573: if test "$with_i18n" = "" ; then
1.82 vatton 574: if test "$enable_i18n" = "no" ; then
575: with_i18n="no"
576: else
1.77 kahan 577: with_i18n="yes"
578: fi
579:
580: fi
1.76 vatton 581: if test "$with_i18n" = "yes" ; then
582: I18N_OPTIONS=-D_I18N_
583: else
584: with_i18n="no"
585: I18N_OPTIONS=""
586: fi
1.1 cvs 587:
1.75 cheyroul 588: if test "$with_gl" = "yes" ; then
589: AC_MSG_CHECKING([OpenGL])
590: for ac_dir in \
591: /usr/include \
592: /usr/X11R6/include \
593: /usr/local/include \
594: ; \
1.80 cheyroul 595: do if test -r "$ac_dir/GL/gl.h" ; then
1.75 cheyroul 596: gl_inc="yes"
1.80 cheyroul 597: GL_INC_I="$ac_dir"
598: if test "$ac_dir" != "/usr/include" ; then
599: GL_INCLUDES="-I$ac_dir"
600: fi
1.96 cheyroul 601: AC_MSG_RESULT([yes])
1.75 cheyroul 602: break
603: fi
1.80 cheyroul 604: done
605: AC_MSG_CHECKING([GLU])
1.75 cheyroul 606: for ac_dir in \
607: /usr/include/GL \
608: /usr/include \
609: /usr/X11R6/include/GL \
610: /usr/X11R6/include \
611: /usr/local/include \
612: /usr/local/include/GL \
613: ; \
614: do if test -r "$ac_dir/glu.h" ; then
615: glu_inc="yes"
1.80 cheyroul 616: GL_INC_II="$ac_dir"
617: if test "$ac_dir" != "/usr/include" ; then
618: if test "$ac_dir" != "$GL_INC_I" ; then
619: GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
620: fi
621: fi
1.96 cheyroul 622: AC_MSG_RESULT([yes])
1.75 cheyroul 623: break
624: fi
625: done
1.80 cheyroul 626: AC_MSG_CHECKING([GTKGLAREA])
1.75 cheyroul 627: for ac_dir in \
628: /usr/include/GL \
629: /usr/include \
630: /usr/X11R6/include/GL \
631: /usr/X11R6/include \
632: /usr/local/include \
633: /usr/local/include/GL \
634: ; \
635: do if test -r "$ac_dir/gtkgl/gtkglarea.h" ; then
636: gtkgl_inc="yes"
1.80 cheyroul 637: if test "$ac_dir" != "/usr/include" ; then
638: if test "$ac_dir" != "$GL_INC_II" ; then
639: if test "$ac_dir" != "$GL_INC_I" ; then
640: GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
641: fi
642: fi
643: fi
1.96 cheyroul 644: AC_MSG_RESULT([yes])
1.75 cheyroul 645: break
646: fi
647: done
1.80 cheyroul 648: AC_MSG_CHECKING([freetype])
649: for ac_dir in \
650: /usr/include \
651: /usr/X11R6/include \
652: /usr/local/include \
653: ; \
654: do if test -r "$ac_dir/ft2build.h" ; then
655: freetype_inc="yes"
656: GL_INCLUDES="$GL_INCLUDES `freetype-config --cflags`"
1.96 cheyroul 657: AC_MSG_RESULT([yes])
658: break
659: fi
660: done
1.104 cheyroul 661: AC_MSG_CHECKING([Xft])
662: for ac_dir in \
663: /usr/include \
664: /usr/X11R6/include \
665: /usr/local/include \
666: /usr/include/X11/Xft \
667: /usr/X11R6/include/X11/Xft \
668: /usr/local/include/X11/Xft \
669: /usr/include/X11/Xft1 \
670: /usr/X11R6/include/X11/Xft1 \
671: /usr/local/include/X11/Xft1 \
672: /usr/include/X11/Xft2 \
673: /usr/X11R6/include/X11/Xft2 \
674: /usr/local/include/X11/Xft2 \
675: ; \
676: do if test -r "$ac_dir/Xft.h" ; then
677: xft_inc="yes"
678: GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
679: AC_MSG_RESULT([yes])
680: break
681: fi
682: done
1.96 cheyroul 683: AC_MSG_CHECKING([gcc3])
684: for ac_dir in \
685: /usr/lib \
686: /usr/X11R6/lib \
687: /usr/local/lib \
688: ; \
689: do if test -r "$ac_dir/libstdc++.so.5" ; then
690: stdglu_inc="yes"
691: AC_MSG_RESULT([yes])
692: break
1.80 cheyroul 693: fi
1.96 cheyroul 694: done
695: if test "$gl_inc" = "" ; then
1.75 cheyroul 696: AC_MSG_WARN(Opengl headers (gl.h) not found !!)
697: AC_MSG_WARN(Disabling opengl build !)
698: with_gl="no"
699: GL_OPTIONS=
700: GL_INCLUDES=
701: GL_LIBRARIES=
1.81 cheyroul 702: exit 1;
1.75 cheyroul 703: fi
704: if test "$glu_inc" = "" ; then
705: AC_MSG_WARN(Glu headers (glu.h) not found !!)
706: AC_MSG_WARN(Disabling opengl build !)
1.81 cheyroul 707:
1.75 cheyroul 708: with_gl="no"
709: GL_OPTIONS=
710: GL_INCLUDES=
711: GL_LIBRARIES=
1.81 cheyroul 712: exit 1;
1.75 cheyroul 713: fi
714: if test "$gtkgl_inc" = "" ; then
715: AC_MSG_WARN(Gtkglarea headers (gktglarea.h) not found !!)
716: AC_MSG_WARN(Disabling opengl build !)
717: with_gl="no"
718: GL_OPTIONS=
719: GL_INCLUDES=
720: GL_LIBRARIES=
1.81 cheyroul 721: exit 1;
1.75 cheyroul 722: fi
1.80 cheyroul 723: if test "$freetype_inc" = "" ; then
724: AC_MSG_WARN(Freetype 2 headers (ft2build.h) not found !!)
725: AC_MSG_WARN(Disabling opengl build !)
726: with_gl="no"
727: GL_OPTIONS=
728: GL_INCLUDES=
729: GL_LIBRARIES=
1.81 cheyroul 730: exit 1;
1.80 cheyroul 731: fi
1.104 cheyroul 732: if test "$xft_inc" = "" ; then
733: AC_MSG_WARN(Xft 2 headers (Xft.h) not found !!)
734: AC_MSG_WARN(Disabling opengl build !)
735: with_gl="no"
736: GL_OPTIONS=
737: GL_INCLUDES=
738: GL_LIBRARIES=
739: exit 1;
740: fi
1.75 cheyroul 741: if test "$gl_inc" = "yes" ; then
1.79 cheyroul 742: if test "$glu_inc" = "yes" ; then
743: if test "$gtkgl_inc" = "yes" ; then
1.96 cheyroul 744: if test "$freetype_inc" = "yes" ; then
1.104 cheyroul 745: if test "$xft_inc" = "yes" ; then
746: if test "$stdglu_inc" = "yes" ; then
747: GL_LIBRARIES=" -lXmu -lXft -lfreetype -lGL -lGLU -lgtkgl -lstdc++"
748: else
749: GL_LIBRARIES=" -lXmu -lXft -lfreetype -lGL -lGLU -lgtkgl"
750: fi
751: GL_OPTIONS="-D_GL"
752: no_motif=yes
753: fi
1.80 cheyroul 754: fi
1.75 cheyroul 755: fi
756: fi
757: fi
758: AC_SUBST(GL_INCLUDES)
759: AC_SUBST(GL_LIBRARIES)
1.97 cheyroul 760: PRINTIFNOTGL=" "
761: else
762: PRINTIFNOTGL=" print_prog"
1.75 cheyroul 763: fi
1.97 cheyroul 764: AC_SUBST(PRINTIFNOTGL)
1.76 vatton 765:
766: AC_ARG_ENABLE(svg, [ --disable-svg remove SVG support ])
767: AC_ARG_ENABLE(annot, [ --disable-annot remove Annotations support ])
1.93 kahan 768: AC_ARG_ENABLE(raptor, [ --disable-raptor disable the raptor RDF parser ])
1.76 vatton 769: AC_ARG_ENABLE(generic-xml, [ --disable-generic-xml remove Generic XML support ])
770:
1.75 cheyroul 771: dnl
1.21 cvs 772: dnl plugins support is disabled by default
1.8 cvs 773: dnl
1.13 cvs 774:
775: if test "$with_plugin" = "" ; then
1.21 cvs 776: if test "$enable_plugin" = "yes" ; then
1.55 kahan 777: with_plugin="yes"
1.21 cvs 778: else
1.17 cvs 779: with_plugin="no"
780: fi
1.10 cvs 781: fi
1.1 cvs 782:
1.8 cvs 783: dnl
1.68 vatton 784: dnl svg is enabled by default
1.26 cvs 785: dnl
1.68 vatton 786: if test "$with_svg" = "" ; then
787: if test "$enable_svg" = "no" ; then
788: with_svg="no"
1.49 cvs 789: else
1.68 vatton 790: with_svg="yes"
1.26 cvs 791: fi
792: fi
793:
794: dnl
1.56 kahan 795: dnl annotations is enabled by default
1.47 cvs 796: dnl
797: if test "$with_annot" = "" ; then
1.56 kahan 798: if test "$enable_annot" = "no" ; then
799: with_annot="no"
800: else
1.54 cvs 801: with_annot="yes"
1.47 cvs 802: fi
1.99 kahan 803: else
804: with_annot="yes"
1.47 cvs 805: fi
806:
1.93 kahan 807:
808: dnl
809: dnl The raptor RDF parser is enabled by default
810: dnl
811: if test "$with_raptor" = "" ; then
812: if test "$enable_raptor" = "no" ; then
813: with_raptor="no"
814: else
1.99 kahan 815: with_raptor="yes"
1.93 kahan 816: fi
1.99 kahan 817: else
818: with_raptor="yes"
1.93 kahan 819: fi
820:
1.70 kahan 821: dnl
822: dnl Generic XML support enabled by default
823: dnl
824: if test "$with_generic_xml" = "" ; then
825: if test "$enable_generic_xml" = "no" ; then
826: with_generic_xml="no"
827: GENERIC_XML_OPTIONS=
828: else
829: with_generic_xml="yes"
830: GENERIC_XML_OPTIONS=-DXML_GENERIC
831: fi
832: fi
833:
1.88 kirschpi 834: AC_ARG_WITH(dav, [ --with-dav enable WebDAV support (experimental) ])
835: dnl
836: dnl DAV support disabled by default
837: dnl
838: if test "$with_dav" = "" ; then
839: if test "$enable_dav" = "yes" ; then
840: with_dav="yes"
841: else
842: with_dav="no"
843: fi
844: fi
845:
846: if test "$with_dav" = "yes" ; then
847: DAV_OPTIONS=-DDAV
1.90 kirschpi 848: DAVDIR="davlib"
849: LIBDAV="libwwwdav"
850: WITHDAV="--with-dav"
851: WWWDAV="-lwwwdav"
1.88 kirschpi 852: else
853: with_dav="no"
854: DAV_OPTIONS=""
1.90 kirschpi 855: DAVDIR=""
856: LIBDAV=""
857: WITHDAV=""
858: WWWDAV=""
1.88 kirschpi 859: fi
860:
1.70 kahan 861:
1.19 cvs 862: if test "$build_amaya" = "yes" ; then
1.43 cvs 863: if test ! -f $srcdir/../libwww/Makefile.in ; then
1.50 cvs 864: AC_MSG_WARN(libwww sources not found !!)
865: AC_MSG_WARN(Disabling Amaya build !)
866: build_amaya="no"
1.1 cvs 867: fi
1.8 cvs 868:
869: if test ! -f $srcdir/amaya/MathML.S ; then
1.10 cvs 870: if test "$with_math" = "yes" ; then
1.8 cvs 871: AC_MSG_WARN(MathML sources not found !!)
1.26 cvs 872: AC_MSG_WARN(Disabling Math build !)
1.10 cvs 873: with_math="no"
874: MATH_OPTIONS=
1.8 cvs 875: fi
876: fi
1.26 cvs 877:
1.68 vatton 878: if test ! -f $srcdir/amaya/SVG.S ; then
879: if test "$with_svg" = "yes" ; then
880: AC_MSG_WARN(SVG sources not found !!)
881: AC_MSG_WARN(Disabling SVG build !)
882: with_svg="no"
883: SVG_OPTIONS=
1.26 cvs 884: fi
885: fi
886:
1.48 cvs 887: if test ! -f $srcdir/annotlib/Makefile.in ; then
1.47 cvs 888: if test "$with_annot" = "yes" ; then
889: AC_MSG_WARN(Annotation makefile not found !!)
890: AC_MSG_WARN(Disabling Annotations build !)
891: with_annot="no"
892: fi
893: fi
1.55 kahan 894:
1.93 kahan 895: if test "$with_annot" = "yes" -a "$with_raptor" = "yes" ; then
896: if test ! -d "$srcdir/libraptor" ; then
897: AC_MSG_WARN(Raptor source dir not found !!)
898: AC_MSG_WARN(Disabling raptor build !)
899: MAKERAPTOR=['#']
900: with_raptor="no"
901: else
902: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DRAPTOR_RDF_PARSER -I\$(THOTDIR)/libraptor"
1.94 kahan 903: AMAYA_RAPTOR_LIBS="../libraptor/.libs/libraptor.a"
1.93 kahan 904: AMAYA_RAPTOR_SRC="amaya_comp_libraptor"
905: AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/libraptor"
906: fi
907: else
908: AC_MSG_WARN(Disabling raptor build as annotations are disabled !)
909: MAKERAPTOR=['#']
910: with_raptor="no"
911: fi
912:
913: dnl control whether we should use libwww's rdf parser
914: if test "$with_raptor" = "yes" ; then
915: dnl not all the function calls have been cleared as of today,
916: dnl we still need libwww's rdf parser
1.98 kahan 917: MAKE_LIBWWW_RDF_PARSER=
918: LIBWWW_RDF_PARSER=
1.93 kahan 919: else
920: MAKE_LIBWWW_RDF_PARSER="libwwwxml"
921: LIBWWW_RDF_PARSER="-lwwwxml"
922: fi
1.70 kahan 923:
1.55 kahan 924: if test "$with_plugin" = "yes" ; then
925: AC_MSG_WARN(The plugin library isn't supported anymore in Amaya !!)
926: AC_MSG_WARN(Disabling plugin build !)
927: with_plugin="no"
928: fi
929:
1.88 kirschpi 930:
931: if test ! -f $srcdir/davlib/Makefile.in ; then
932: if test "$with_dav" = "yes" ; then
933: AC_MSG_WARN(WebDAV makefile not found !!)
934: AC_MSG_WARN(Disabling WebDAV build !)
935: with_dav="no"
1.90 kirschpi 936: DAVDIR=""
937: LIBDAV=""
938: WITHDAV=""
939: WWWDAV=""
1.88 kirschpi 940: fi
941: fi
942:
943:
1.1 cvs 944: fi
945:
946: dnl
947: dnl The options for each library or binary
948: dnl
949:
1.75 cheyroul 950: THOT_OPTIONS="$GTK_OPTIONS $I18N_OPTIONS $GL_OPTIONS"
1.93 kahan 951: AMAYA_OPTIONS="$MATH_OPTIONS $SVG_OPTIONS $GTK_OPTIONS $GENERIC_XML_OPTIONS $I18N_OPTIONS $GL_OPTIONS"
1.58 cvs 952: #PLUGIN_OPTIONS="-DPLUGIN_TRACE -DXP_UNIX"
1.93 kahan 953: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS $I18N_OPTIONS"
1.101 kahan 954:
1.102 kahan 955: IMGLIBS="-ljpeg -lpng -lz"
1.3 cvs 956: EXTRA_LIBS=
1.1 cvs 957:
958: dnl
959: dnl Set up the PATHs needed
960: dnl
961:
962: API="\$(THOTDIR)/thotlib/include"
963: VAR="\$(THOTDIR)/thotlib/internals/var"
964: INCL="\$(THOTDIR)/thotlib/internals/h"
965: FUNC="\$(THOTDIR)/thotlib/internals/f"
966:
967: dnl
968: dnl Set up the include variables.
969: dnl
970:
1.61 cvs 971: THOTINCLUDES="-I${API} -I${VAR} -I${INCL} -I${FUNC} ${JPEGINCL} ${PNGINCL}"
1.58 cvs 972: APIINCLUDES=-I${API}
973:
974: if test "${VPATHOPT}" = "" ; then
1.1 cvs 975: VPATHOPT="VPATH"
976: fi
977:
978: dnl
979: dnl Exports the current values of the variables.
980: dnl
981:
982: AC_SUBST(AMAYA_VER)
1.6 cvs 983: AC_SUBST(CEXTRACT_VER)
984: AC_SUBST(CEXTRACT_FLAGS)
1.1 cvs 985:
986: AC_SUBST(THOTINCLUDES)
987: AC_SUBST(APIINCLUDES)
988: AC_SUBST(VPATHOPT)
989:
1.63 vatton 990: AC_SUBST(GTK_OPTIONS)
1.1 cvs 991: AC_SUBST(THOT_OPTIONS)
992: AC_SUBST(AMAYA_OPTIONS)
993: AC_SUBST(PLUGIN_OPTIONS)
1.48 cvs 994: AC_SUBST(AMAYA_ANNOT_OPTIONS)
1.1 cvs 995: AC_SUBST(IMGLIBS)
1.3 cvs 996: AC_SUBST(EXTRA_LIBS)
1.90 kirschpi 997:
998: AC_SUBST(DAVDIR)
999: AC_SUBST(LIBDAV)
1000: AC_SUBST(WITHDAV)
1001: AC_SUBST(WWWDAV)
1.1 cvs 1002:
1.93 kahan 1003: AC_SUBST(MAKERAPTOR)
1004: AC_SUBST(AMAYA_RAPTOR_LIBS)
1005: AC_SUBST(AMAYA_RAPTOR_SRC)
1006: AC_SUBST(AMAYA_RAPTOR_INCLUDES)
1007: AC_SUBST(MAKE_LIBWWW_RDF_PARSER)
1008: AC_SUBST(LIBWWW_RDF_PARSER)
1009:
1010: AC_SUBST(SUBDIRS)
1011:
1.1 cvs 1012: dnl
1.48 cvs 1013: dnl Include the option Makefile.xxx fragment according to the configure options
1.1 cvs 1014: dnl
1015:
1016: if test "$with_plugin" = "yes" ; then
1.50 cvs 1017: AC_SUBST_FILE(plugin_frag)
1.1 cvs 1018: plugin_frag=$srcdir/pluginlib/Makefile.plugin
1019: else
1020: AC_SUBST_FILE(plugin_frag)
1021: plugin_frag=/dev/null
1022: fi
1023:
1024: AC_SUBST_FILE(www_frag)
1.49 cvs 1025: www_frag=$srcdir/amaya/Makefile.libwww
1.1 cvs 1026:
1.50 cvs 1027: if test "$with_math" = "no" ; then
1.10 cvs 1028: AC_SUBST_FILE(math_frag)
1.50 cvs 1029: math_frag=/dev/null
1.8 cvs 1030: else
1.10 cvs 1031: AC_SUBST_FILE(math_frag)
1.50 cvs 1032: math_frag=$srcdir/amaya/Makefile.math
1.8 cvs 1033: fi
1034:
1.68 vatton 1035: if test "$with_svg" = "no" ; then
1036: AC_SUBST_FILE(svg_frag)
1037: svg_frag=/dev/null
1.26 cvs 1038: else
1.68 vatton 1039: AC_SUBST_FILE(svg_frag)
1040: svg_frag=$srcdir/amaya/Makefile.svg
1.26 cvs 1041: fi
1042:
1.47 cvs 1043: if test "$with_annot" = "yes" ; then
1044: AC_SUBST_FILE(annot_frag)
1.48 cvs 1045: annot_frag=$srcdir/annotlib/Makefile.annot
1.47 cvs 1046: else
1047: AC_SUBST_FILE(annot_frag)
1048: annot_frag=/dev/null
1049: fi
1050:
1.88 kirschpi 1051: if test "$with_dav" = "yes" ; then
1052: AC_SUBST_FILE(dav_frag)
1053: dav_frag=$srcdir/davlib/Makefile.dav
1054: fi
1.16 cvs 1055:
1.1 cvs 1056: dnl ***************************************************************
1057: dnl
1058: dnl FINAL STEP : PRODUCE ALL THE MAKEFILES AND CONFIG FILES
1059: dnl
1060: dnl ***************************************************************
1061:
1062: EXTRA_MAKEFILE_IN=
1.2 cvs 1063: make_output="Makefile Options.orig:Options.in tools/Makefile \
1.1 cvs 1064: libjpeg/Makefile libpng/Makefile libpng/zlib/Makefile \
1.2 cvs 1065: tools/mkdep/Makefile \
1.1 cvs 1066: tools/cextract-1.7/Makefile thotlib/Makefile \
1.5 cvs 1067: thotlib/include/Makefile batch/Makefile tablelib/Makefile"
1.1 cvs 1068:
1069: if test "$build_amaya" = "yes" ; then
1.2 cvs 1070:
1.19 cvs 1071: make_output="$make_output amaya/Makefile pluginlib/Makefile"
1.2 cvs 1072: EXTRA_MAKEFILE_IN="$srcdir/amaya/Makefile.in \
1.93 kahan 1073: $srcdir/amaya/Makefile.libwww"
1.27 cvs 1074:
1075: if test "$$with_plugin" = "yes" ; then
1076: make_output="$make_output pluginlib/Makefile"
1077: EXTRA_MAKEFILE_IN="$srcdir/pluginlib/Makefile.in \
1.93 kahan 1078: $srcdir/pluginlib/Makefile.plugin"
1.27 cvs 1079: fi
1.2 cvs 1080:
1.48 cvs 1081: if test "$with_annot" = "yes" ; then
1082: make_output="$make_output annotlib/Makefile"
1083: EXTRA_MAKEFILE_IN="$srcdir/annotlib/Makefile.in"
1084: fi
1.88 kirschpi 1085:
1086: if test "$with_dav" = "yes" ; then
1087: make_output="$make_output davlib/Makefile"
1088: EXTRA_MAKEFILE_IN="$srcdir/davlib/Makefile.in"
1089: fi
1090:
1.1 cvs 1091: fi
1092:
1093: AC_SUBST(EXTRA_MAKEFILE_IN)
1.6 cvs 1094: AC_OUTPUT($make_output , [
1095: dnl
1096: dnl This fragment of shell code is executed after the
1097: dnl Makefile(s) dump ...
1098: dnl
1099:
1100: echo timestamp > stamp-h
1101:
1102: dnl
1103: dnl Check for an upgrade in the Options numbers
1104: dnl
1105:
1106: if test -f Options ; then
1107: oldversion=`grep Version Options`
1108: newversion=`grep Version Options.orig`
1109: if test "$oldversion" != "$newversion" ; then
1110: echo WARNING : Options files have changed, old options saved to Options.old
1111: cp Options Options.old
1112: cp Options.orig Options
1113: exit 1
1114: fi
1115: fi
1116: ])
1.1 cvs 1117:
1118: if test "$build_amaya" = "yes" ; then
1.50 cvs 1119: echo Amaya configured with libWWW
1120: if test "$with_plugin" = "yes" ; then
1121: echo Amaya configured with Plugins support
1.8 cvs 1122: fi
1.10 cvs 1123: if test "$with_math" = "yes" ; then
1124: echo Amaya configured with Math support
1.26 cvs 1125: fi
1.68 vatton 1126: if test "$with_svg" = "yes" ; then
1127: echo Amaya configured with SVG support
1.47 cvs 1128: fi
1129: if test "$with_annot" = "yes" ; then
1130: echo Amaya configured with Annotations support
1.70 kahan 1131: fi
1.93 kahan 1132: if test "$with_raptor" = "yes" ; then
1133: echo Amaya configured to use the raptor RDF parser
1134: fi
1.70 kahan 1135: if test "$with_generic_xml" = "yes" ; then
1136: echo Amaya configured with generic XML suppport
1137: fi
1138: if test "$with_i18n" = "yes" ; then
1.82 vatton 1139: echo Amaya configured with internationalization suppport
1.75 cheyroul 1140: fi
1141: if test "$with_gl" = "yes" ; then
1142: echo Amaya configured with Opengl Canvas Rendering \(experimental\)
1.88 kirschpi 1143: fi
1144: if test "$with_dav" = "yes" ; then
1145: echo Amaya configured with WebDAV support \(experimental\)
1.1 cvs 1146: fi
1.5 cvs 1147: fi
1148:
1149: if test "$no_motif" = yes ; then
1.67 vatton 1150: echo "Amaya configured with GTK"
1.76 vatton 1151: echo "Amaya configured without static graphic libraries (libjpeg, libpng)"
1.67 vatton 1152: else
1.105 ! vatton 1153: if test "$no_motif" = yes ; then
1.76 vatton 1154: echo "Amaya configured without static graphic libraries (libjpeg, libpng)"
1.105 ! vatton 1155: else
! 1156: if test "$no_graphic" = "no"; then
! 1157: echo "Amaya configured with static graphic libraries (libjpeg, libpng)"
! 1158: fi
! 1159: fi
! 1160: if test "$no_motif" = yes ; then
1.5 cvs 1161: echo "Motif seems not installed on this machine"
1.61 cvs 1162: echo "Amaya need Motif 1.2 or 2.0"
1.105 ! vatton 1163: else
! 1164: if test "$motif_includes" = "" ; then
! 1165: echo "Motif includes were not found"
! 1166: echo "Amaya might not compile"
! 1167: echo "Edit your Option file"
! 1168: else
! 1169: if test "$motif_libraries" = "" ; then
! 1170: echo "Motif libraries were not found"
! 1171: echo "Amaya might not compile"
! 1172: echo "Edit your Option file"
! 1173: fi
! 1174: fi
! 1175: fi
1.1 cvs 1176: fi
1177:
1.78 vatton 1178: echo "Now type \"make\" (GNU make preferably) to build the binaries"
1.48 cvs 1179:
1180:
1181:
1.5 cvs 1182:
Webmaster