Annotation of Amaya/configure.in, revision 1.158

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

Webmaster