Annotation of Amaya/configure.in, revision 1.151

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

Webmaster