comparison configure.in @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents 223736d75acb
children 5aa1854ad537
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
196 dnl ac_cpp='$CPP $CPPFLAGS' 196 dnl ac_cpp='$CPP $CPPFLAGS'
197 dnl ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' 197 dnl ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
198 dnl ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' 198 dnl ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
201 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 201 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
202 ac_cpp='$CPP '"$xe_cppflags" 202 ac_cpp='$CPP '"$xe_cppflags"
203 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&AC_FD_CC' 203 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&AC_FD_CC'
204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&AC_FD_CC' 204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&AC_FD_CC'
205 cross_compiling=no 205 cross_compiling=no
206 ]) dnl AC_LANG_C 206 ]) dnl AC_LANG_C
339 pkgdir='${datadir}/${instvardir}/lisp' 339 pkgdir='${datadir}/${instvardir}/lisp'
340 package_path='' 340 package_path=''
341 etcdir='${datadir}/${instvardir}/etc' 341 etcdir='${datadir}/${instvardir}/etc'
342 archlibdir='${datadir}/${instvardir}/${configuration}' 342 archlibdir='${datadir}/${instvardir}/${configuration}'
343 docdir='${archlibdir}' 343 docdir='${archlibdir}'
344 with_netinstall="no"
344 with_prefix='yes' 345 with_prefix='yes'
345 with_site_lisp='no' 346 with_site_lisp='no'
346 with_site_modules='yes' 347 with_site_modules='yes'
347 with_menubars='' 348 with_menubars=''
348 with_scrollbars='' 349 with_scrollbars=''
356 with_msw='' 357 with_msw=''
357 rel_alloc='default' 358 rel_alloc='default'
358 with_system_malloc='default' 359 with_system_malloc='default'
359 with_dlmalloc='default' 360 with_dlmalloc='default'
360 native_sound_lib='' 361 native_sound_lib=''
362 dnl These should be set to the empty string when we want gtk / gnome to
363 dnl be auto-detected instead of manually specified.
364 with_gtk='no'
365 with_gnome='no'
361 dnl use_assertions should be 'yes' by default. Too many people in this 366 dnl use_assertions should be 'yes' by default. Too many people in this
362 dnl world have core dumps turned off by default or \"cannot find where the 367 dnl world have core dumps turned off by default or \"cannot find where the
363 dnl core file went\". At least we should get some useful output ... 368 dnl core file went\". At least we should get some useful output ...
364 use_assertions="yes" 369 use_assertions="yes"
365 dnl the following is set to yes or no later. 370 dnl the following is set to yes or no later.
452 with_site_lisp | \ 457 with_site_lisp | \
453 with_prefix | \ 458 with_prefix | \
454 with_site_modules | \ 459 with_site_modules | \
455 with_x | \ 460 with_x | \
456 with_x11 | \ 461 with_x11 | \
462 with_gtk | \
463 with_gnome | \
457 with_msw | \ 464 with_msw | \
458 with_gcc | \ 465 with_gcc | \
459 dynamic | \ 466 dynamic | \
460 with_ncurses | \ 467 with_ncurses | \
461 with_dnet | \ 468 with_dnet | \
491 with_pop | \ 498 with_pop | \
492 with_kerberos | \ 499 with_kerberos | \
493 with_hesiod | \ 500 with_hesiod | \
494 with_dnet | \ 501 with_dnet | \
495 with_infodock | \ 502 with_infodock | \
503 with_netinstall | \
496 external_widget | \ 504 external_widget | \
497 verbose | \ 505 verbose | \
498 extra_verbose | \ 506 extra_verbose | \
499 usage_tracking | \ 507 usage_tracking | \
500 use_union_type | \ 508 use_union_type | \
749 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;; 757 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;;
750 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;; 758 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;;
751 infopath ) AC_DEFINE(INFOPATH_USER_DEFINED) ;; 759 infopath ) AC_DEFINE(INFOPATH_USER_DEFINED) ;;
752 package_path ) AC_DEFINE(PACKAGE_PATH_USER_DEFINED) ;; 760 package_path ) AC_DEFINE(PACKAGE_PATH_USER_DEFINED) ;;
753 datadir ) 761 datadir )
754 AC_DEFINE(INFODIR_USER_DEFINED) 762 AC_DEFINE(INFODIR_USER_DEFINED)
755 AC_DEFINE(LISPDIR_USER_DEFINED) 763 AC_DEFINE(LISPDIR_USER_DEFINED)
756 AC_DEFINE(MODULEDIR_USER_DEFINED) 764 AC_DEFINE(MODULEDIR_USER_DEFINED)
757 AC_DEFINE(ETCDIR_USER_DEFINED) 765 AC_DEFINE(ETCDIR_USER_DEFINED)
758 AC_DEFINE(DOCDIR_USER_DEFINED) 766 AC_DEFINE(DOCDIR_USER_DEFINED)
759 AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; 767 AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;;
760 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;; 768 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;;
761 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; 769 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;;
777 l | lu | luc | luci | lucid ) val=lucid ;; 785 l | lu | luc | luci | lucid ) val=lucid ;;
778 m | mo | mot | moti | motif ) val=motif ;; 786 m | mo | mot | moti | motif ) val=motif ;;
779 a | at | ath | athe | athen | athena ) val=athena ;; 787 a | at | ath | athe | athen | athena ) val=athena ;;
780 n | no | non | none ) val=no ;; 788 n | no | non | none ) val=no ;;
781 y | ye | yes ) val=yes ;; 789 y | ye | yes ) val=yes ;;
782 m | ms | msw ) val=msw ;; 790 g | gt | gtk ) val=gtk ;;
791 m | ms | msw ) val=msw ;;
783 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: 792 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
784 \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; 793 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;;
785 esac 794 esac
786 eval "$opt=\"$val\"" 795 eval "$opt=\"$val\""
787 ;; 796 ;;
788 797
789 dnl Obsolete legacy argument? Warn, but otherwise ignore. 798 dnl Obsolete legacy argument? Warn, but otherwise ignore.
1835 objects_machine objects_system c_switch_machine c_switch_system 1844 objects_machine objects_system c_switch_machine c_switch_system
1836 ld_switch_machine ld_switch_system unexec ld_switch_shared 1845 ld_switch_machine ld_switch_system unexec ld_switch_shared
1837 ld lib_gcc ld_text_start_addr start_files ordinary_link 1846 ld lib_gcc ld_text_start_addr start_files ordinary_link
1838 have_terminfo mail_use_flock mail_use_lockf) && echo "" 1847 have_terminfo mail_use_flock mail_use_lockf) && echo ""
1839 1848
1840 dnl Pick up mingw32 include path 1849 dnl Pick up mingw include path
1850 dnl We only cope with headers in mingw, not mingw32: no previous version of
1851 dnl XEmacs supported mingw and cygnus have made this incompatible change
1852 dnl so we just go with the flow.
1841 case "$opsys" in mingw* | cygwin*) 1853 case "$opsys" in mingw* | cygwin*)
1842 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; 1854 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
1843 cygwin_include=`eval "dirname $cygwin_include"` ; 1855 cygwin_include=`eval "dirname $cygwin_include"` ;
1844 cygwin_include="-I$cygwin_include/../include" ; 1856 cygwin_include="-I$cygwin_include/../include" ;
1845 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ; 1857 extra_includes="$cygwin_include/mingw $cygwin_include" ;
1846 case "$opsys" in mingw*) 1858 case "$opsys" in mingw*)
1847 XE_APPEND($extra_includes, c_switch_system) ;; 1859 XE_APPEND($extra_includes, c_switch_system) ;;
1848 esac 1860 esac
1849 ;; 1861 ;;
1850 esac 1862 esac
2491 dnl Choose a window system 2503 dnl Choose a window system
2492 dnl ---------------------- 2504 dnl ----------------------
2493 2505
2494 AC_CHECKING("for specified window system") 2506 AC_CHECKING("for specified window system")
2495 2507
2508 dnl Autodetection of Gdk libraries and includes
2509 dnl -------------------------------------------
2510 dnl On some systems (FreeBSD springs to mind), they use
2511 dnl versions on the utility routines, so instead of gtk-config
2512 dnl you must use gtk12-config, etc, etc.
2513
2514 GNOME_CONFIG=no
2515 GTK_CONFIG=no
2516
2517 if test "$with_gnome" != "no"; then
2518 AC_MSG_CHECKING(for GNOME configuration script)
2519 for possible in gnome-config
2520 do
2521 possible_version=`${possible} --version 2> /dev/null`
2522 if test "x${possible_version}" != "x"; then
2523 GNOME_CONFIG="${possible}"
2524 with_gnome=yes
2525 with_gtk=yes
2526 break
2527 fi
2528 done
2529 AC_MSG_RESULT([${GNOME_CONFIG}])
2530 fi
2531
2532 if test "${GNOME_CONFIG}" != "no"; then
2533 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
2534 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
2535 AC_DEFINE(HAVE_GNOME)
2536 XE_APPEND(${GNOME_LIBS}, libs_gtk)
2537 XE_APPEND(${GNOME_CFLAGS}, c_switch_gtk)
2538 fi
2539
2540 if test "$with_gtk" != "no";then
2541 AC_MSG_CHECKING(for GTK configuration script)
2542 for possible in gtk12-config gtk14-config gtk-config
2543 do
2544 possible_version=`${possible} --version 2> /dev/null`
2545 if test "x${possible_version}" != "x"; then
2546 GTK_CONFIG="${possible}"
2547 fi
2548 case "${possible_version}" in
2549 1.0.*) AC_MSG_WARN([GTK 1.2 is required, please upgrade your version of GTK.]); with_gtk=no;;
2550 1.3.*) AC_MSG_WARN([GTK 1.3 is not supported right now]); with_gtk=no;;
2551 1.2.*)
2552 with_gtk=yes
2553 break
2554 ;;
2555 *) AC_MSG_WARN([Found unsupported version of GTK: $possible_version]);;
2556 esac
2557 done
2558 AC_MSG_RESULT([${GTK_CONFIG}])
2559 fi
2560
2561 if test "${GTK_CONFIG}" != "no"; then
2562 AC_MSG_CHECKING(gtk version)
2563 GTK_VERSION=`${GTK_CONFIG} --version`
2564 AC_MSG_RESULT(${GTK_VERSION})
2565
2566 AC_MSG_CHECKING(gtk libs)
2567 GTK_LIBS=`${GTK_CONFIG} --libs`
2568 XE_APPEND(${GTK_LIBS}, libs_gtk)
2569 AC_MSG_RESULT(${GTK_LIBS})
2570
2571 AC_MSG_CHECKING(gtk cflags)
2572 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
2573 XE_APPEND(${GTK_CFLAGS}, c_switch_gtk)
2574 AC_MSG_RESULT(${GTK_CFLAGS})
2575
2576 AC_CHECK_LIB(gdk_imlib, main, XE_PREPEND(-lgdk_imlib, libs_gtk))
2577 AC_CHECK_LIB(Imlib, Imlib_init, XE_APPEND(-lImlib, libs_gtk))
2578 AC_CHECK_FUNCS(gdk_imlib_init)
2579
2580 AC_DEFINE(HAVE_XPM)
2581 AC_DEFINE(HAVE_GTK)
2582 AC_SUBST(GTK_CONFIG)
2583
2584 window_system=gtk
2585 with_gtk=yes
2586 with_x11=no
2587
2588 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
2589 test "${with_toolbars}" != no && with_toolbars=gtk
2590 test "${with_menubars}" != "no" && with_menubars=gtk
2591 test "${with_dialogs}" != "no" && with_dialogs=gtk
2592 test "${with_widgets}" != "no" && with_widgets=gtk
2593
2594 XE_ADD_OBJS(console-gtk.o device-gtk.o event-gtk.o frame-gtk.o)
2595 XE_ADD_OBJS(objects-gtk.o redisplay-gtk.o glyphs-gtk.o)
2596 XE_ADD_OBJS(select-gtk.o gccache-gtk.o)
2597 XE_ADD_OBJS(gtk-xemacs.o ui-gtk.o)
2598
2599 dnl Check for libglade support (it rocks)
2600 OLD_CFLAGS="${CFLAGS}"
2601 OLD_LDFLAGS="${LDFLAGS}"
2602 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
2603 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
2604 AC_CHECK_HEADERS(glade/glade.h glade.h)
2605 AC_CHECK_LIB(xml, main, XE_PREPEND(-lxml, libs_gtk))
2606 AC_CHECK_LIB(glade, main, XE_PREPEND(-lglade, libs_gtk))
2607 AC_CHECK_LIB(glade-gnome, main, XE_PREPEND(-lglade-gnome, libs_gtk))
2608 AC_EGREP_HEADER([char \*txtdomain;], [glade/glade-xml.h],
2609 [AC_MSG_RESULT(yes)
2610 AC_DEFINE(LIBGLADE_XML_TXTDOMAIN,1)],
2611 [AC_MSG_RESULT(no)])
2612 CFLAGS="${OLD_CFLAGS}"
2613 LDFLAGS="${OLD_LDFLAGS}"
2614 fi
2615
2616 dnl We may eventually prefer gtk/gdk over vanilla X11...
2617
2496 if test "$with_x11" != "no"; then 2618 if test "$with_x11" != "no"; then
2497 dnl User-specified --x-includes or --x-libraries implies --with-x11. 2619 dnl User-specified --x-includes or --x-libraries implies --with-x11.
2498 test "$x_includes $x_libraries" != "NONE NONE" && \ 2620 test "$x_includes $x_libraries" != "NONE NONE" && \
2499 window_system=x11 with_x11=yes 2621 window_system=x11 with_x11=yes
2500 2622
2535 then with_x11=no window_system=none HAVE_X_WINDOWS=no 2657 then with_x11=no window_system=none HAVE_X_WINDOWS=no
2536 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes 2658 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
2537 fi 2659 fi
2538 fi 2660 fi
2539 2661
2540 case "$with_x11" in 2662 dnl #### wmperry:: !x11 != NONE
2541 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; 2663 dnl case "$with_x11" in
2542 no ) window_system=none HAVE_X_WINDOWS=no ;; 2664 dnl yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
2543 esac 2665 dnl no ) window_system=none HAVE_X_WINDOWS=no ;;
2666 dnl esac
2544 2667
2545 if test "$with_x11" = "yes"; then 2668 if test "$with_x11" = "yes"; then
2546 AC_DEFINE(HAVE_X_WINDOWS) 2669 AC_DEFINE(HAVE_X_WINDOWS)
2547 XE_APPEND(lwlib, MAKE_SUBDIR) 2670 XE_APPEND(lwlib, MAKE_SUBDIR)
2548 XE_APPEND(lwlib, SRC_SUBDIR_DEPS) 2671 XE_APPEND(lwlib, SRC_SUBDIR_DEPS)
2694 AC_TRY_COMPILE([ 2817 AC_TRY_COMPILE([
2695 #define NeedFunctionPrototypes 1 2818 #define NeedFunctionPrototypes 1
2696 #include <X11/Xlib.h> 2819 #include <X11/Xlib.h>
2697 extern Bool XRegisterIMInstantiateCallback( 2820 extern Bool XRegisterIMInstantiateCallback(
2698 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); 2821 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
2699 ], [], 2822 ], [],
2700 [AC_MSG_RESULT(yes)], 2823 [AC_MSG_RESULT(yes)],
2701 [AC_MSG_RESULT(no) 2824 [AC_MSG_RESULT(no)
2702 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)]) 2825 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)])
2703 2826
2704 dnl autodetect -lXmu 2827 dnl autodetect -lXmu
2737 AC_CHECK_LIB(gdi32,main,with_msw=yes) 2860 AC_CHECK_LIB(gdi32,main,with_msw=yes)
2738 if test "$with_msw" = "yes"; then 2861 if test "$with_msw" = "yes"; then
2739 AC_DEFINE(HAVE_MS_WINDOWS) 2862 AC_DEFINE(HAVE_MS_WINDOWS)
2740 2863
2741 dnl The net installer only works with MS-Windows currently 2864 dnl The net installer only works with MS-Windows currently
2742 XE_APPEND(netinstall, MAKE_SUBDIR) 2865 if test "$with_netinstall" = "yes"; then
2743 XE_APPEND(netinstall, SRC_SUBDIR_DEPS) 2866 XE_APPEND(netinstall, MAKE_SUBDIR)
2744 XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR) 2867 XE_APPEND(netinstall, SRC_SUBDIR_DEPS)
2868 XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR)
2869 fi
2745 2870
2746 install_pp="$blddir/lib-src/installexe.sh" 2871 install_pp="$blddir/lib-src/installexe.sh"
2747 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) 2872 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system)
2748 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) 2873 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto)
2749 if test "$window_system" != x11; then 2874 if test "$window_system" != x11; then
2831 bitmapdir= 2956 bitmapdir=
2832 2957
2833 case "$window_system" in 2958 case "$window_system" in
2834 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; 2959 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
2835 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;; 2960 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
2961 gtk )
2962 HAVE_X_WINDOWS=no
2963 test "$with_gnome" = "yes" && echo " Using GNOME."
2964 test "$with_gnome" = "no" && echo " Using GTK."
2965 ;;
2836 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; 2966 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
2837 esac 2967 esac
2838 2968
2839 case "$x_libraries" in *X11R4* ) 2969 case "$x_libraries" in *X11R4* )
2840 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 2970 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
2854 test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) } 2984 test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) }
2855 test -z "$with_xauth" && { AC_CHECK_LIB(Xau, XauGetAuthByAddr,[:],with_xauth=no) } 2985 test -z "$with_xauth" && { AC_CHECK_LIB(Xau, XauGetAuthByAddr,[:],with_xauth=no) }
2856 test -z "$with_xauth" && with_xauth=yes 2986 test -z "$with_xauth" && with_xauth=yes
2857 if test "$with_xauth" = "yes"; then 2987 if test "$with_xauth" = "yes"; then
2858 AC_DEFINE(HAVE_XAUTH) 2988 AC_DEFINE(HAVE_XAUTH)
2859 XE_SPACE(libs_xauth, $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS) 2989 XE_SPACE(libs_xauth, $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS)
2860 fi 2990 fi
2861 AC_SUBST(libs_xauth) 2991 AC_SUBST(libs_xauth)
2862 2992
2863 dnl This one is for the static initializeds variables in 2993 dnl This one is for the static initializeds variables in
2864 dnl offix.c, so that the thing is dumped after lastfile.o 2994 dnl offix.c, so that the thing is dumped after lastfile.o
2935 test -z "$with_offix" && with_offix=no 3065 test -z "$with_offix" && with_offix=no
2936 if test "$with_offix" = "yes"; then 3066 if test "$with_offix" = "yes"; then
2937 AC_DEFINE(HAVE_OFFIX_DND) 3067 AC_DEFINE(HAVE_OFFIX_DND)
2938 XE_APPEND(offix.o, dnd_objs) 3068 XE_APPEND(offix.o, dnd_objs)
2939 XE_APPEND(OffiX, dragndrop_proto) 3069 XE_APPEND(OffiX, dragndrop_proto)
3070 fi
3071 if test "$with_gtk" = "yes"; then
3072 XE_APPEND(GTK, dragndrop_proto)
2940 fi 3073 fi
2941 3074
2942 dnl Autodetect Drag'n'Drop support 3075 dnl Autodetect Drag'n'Drop support
2943 dnl always included if CDE, Offix, or MSWindows are defined 3076 dnl always included if CDE, Offix, or MSWindows are defined
2944 if test "$with_dragndrop" != "no" ; then 3077 if test "$with_dragndrop" != "no" ; then
3156 XE_PREPEND(-ltiff, libs_x) 3289 XE_PREPEND(-ltiff, libs_x)
3157 fi 3290 fi
3158 fi 3291 fi
3159 3292
3160 dnl ---------------------- 3293 dnl ----------------------
3294 dnl GTK-Specific Graphics libraries
3295 dnl ----------------------
3296
3297 if test "$with_gtk" = "yes"; then
3298 dnl Autodetect XFACE
3299 test -z "$with_xface" && { AC_CHECK_HEADER(compface.h, ,with_xface=no) }
3300 test -z "$with_xface" && { AC_CHECK_LIB(compface, UnGenFace,[:] ,with_xface=no) }
3301 test -z "$with_xface" && with_xface=yes
3302 if test "$with_xface" = "yes"; then
3303 AC_DEFINE(HAVE_XFACE)
3304 XE_PREPEND(-lcompface, libs_gtk)
3305 fi
3306 fi
3307
3308
3309 dnl ----------------------
3161 dnl X-Specific Graphics libraries 3310 dnl X-Specific Graphics libraries
3162 dnl ---------------------- 3311 dnl ----------------------
3163 3312
3164 if test "$with_x11" = "yes"; then 3313 if test "$with_x11" = "yes"; then
3165 3314
3392 3541
3393 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) 3542 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o)
3394 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) 3543 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o)
3395 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) 3544 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o)
3396 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) 3545 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o)
3546
3547 if test "$with_gtk" = "yes"; then
3548 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-gtk.o)
3549 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-gtk.o)
3550 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-gtk.o)
3551 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-gtk.o)
3552 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-gtk.o)
3553 fi
3397 3554
3398 if test "$with_x11" = "yes"; then 3555 if test "$with_x11" = "yes"; then
3399 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) 3556 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o)
3400 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) 3557 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o)
3401 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) 3558 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o)
3751 }], have_mmap=yes, have_mmap=no) ;; 3908 }], have_mmap=yes, have_mmap=no) ;;
3752 esac 3909 esac
3753 AC_MSG_RESULT($have_mmap) 3910 AC_MSG_RESULT($have_mmap)
3754 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) 3911 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP)
3755 3912
3913 dnl By default we switch off rel-alloc on cygwin as it generally causes us grief
3914 case "$opsys" in cygwin*)
3915 test "$rel_alloc" = "default" && rel_alloc=no ;;
3916 esac
3756 dnl rel_alloc requires either GNU malloc or system malloc with mmap 3917 dnl rel_alloc requires either GNU malloc or system malloc with mmap
3757 dnl We only turn rel_alloc on by default if mmap is available. 3918 dnl We only turn rel_alloc on by default if mmap is available.
3758 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 3919 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
3759 if test "$rel_alloc $have_mmap" = "default yes"; then 3920 if test "$rel_alloc $have_mmap" = "default yes"; then
3760 if test "$doug_lea_malloc" = "yes"; then 3921 if test "$doug_lea_malloc" = "yes"; then
4233 dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM) 4394 dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM)
4234 dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks 4395 dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks
4235 XE_SPACE(CFLAGS, $CFLAGS) 4396 XE_SPACE(CFLAGS, $CFLAGS)
4236 XE_SPACE(extra_objs, $extra_objs) 4397 XE_SPACE(extra_objs, $extra_objs)
4237 XE_SPACE(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system) 4398 XE_SPACE(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system)
4238 XE_SPACE(c_switch_window_system, $c_switch_x_site $X_CFLAGS) 4399 XE_SPACE(c_switch_window_system, $c_switch_x_site $c_switch_gtk $X_CFLAGS)
4239 XE_SPACE(c_switch_all, $c_switch_general $c_switch_window_system) 4400 XE_SPACE(c_switch_all, $c_switch_general $c_switch_window_system)
4240 XE_SPACE(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run) 4401 XE_SPACE(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run)
4241 XE_SPACE(ld_switch_window_system, $ld_switch_x_site) 4402 XE_SPACE(ld_switch_window_system, $ld_switch_x_site)
4242 XE_SPACE(ld_switch_all, $ld_switch_general $ld_switch_window_system) 4403 XE_SPACE(ld_switch_all, $ld_switch_general $ld_switch_window_system)
4243 XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard) 4404 XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard)
4244 XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $X_PRE_LIBS) 4405 XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS)
4245 XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general) 4406 XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general)
4246 4407
4247 dnl Compute lists of Makefiles and subdirs 4408 dnl Compute lists of Makefiles and subdirs
4248 AC_SUBST(SRC_SUBDIR_DEPS) 4409 AC_SUBST(SRC_SUBDIR_DEPS)
4249 XE_APPEND(src, MAKE_SUBDIR) 4410 XE_APPEND(src, MAKE_SUBDIR)
4641 echo " Compiling in support for the Athena widget set:" 4802 echo " Compiling in support for the Athena widget set:"
4642 echo " - Athena headers location: $athena_h_path" 4803 echo " - Athena headers location: $athena_h_path"
4643 echo " - Athena library to link: $athena_lib" 4804 echo " - Athena library to link: $athena_lib"
4644 fi 4805 fi
4645 case "$with_menubars" in 4806 case "$with_menubars" in
4807 gtk ) echo " Using GTK menubars." ;;
4646 lucid ) echo " Using Lucid menubars." ;; 4808 lucid ) echo " Using Lucid menubars." ;;
4647 motif ) echo " Using Motif menubars." 4809 motif ) echo " Using Motif menubars."
4648 echo " *WARNING* The Motif menubar implementation is currently buggy." 4810 echo " *WARNING* The Motif menubar implementation is currently buggy."
4649 echo " We recommend using the Lucid menubar instead." 4811 echo " We recommend using the Lucid menubar instead."
4650 echo " Re-run configure with --with-menubars='lucid'." ;; 4812 echo " Re-run configure with --with-menubars='lucid'." ;;
4651 msw ) echo " Using MS-Windows menubars." ;; 4813 msw ) echo " Using MS-Windows menubars." ;;
4652 esac 4814 esac
4653 case "$with_scrollbars" in 4815 case "$with_scrollbars" in
4816 gtk ) echo " Using GTK scrollbars." ;;
4654 lucid ) echo " Using Lucid scrollbars." ;; 4817 lucid ) echo " Using Lucid scrollbars." ;;
4655 motif ) echo " Using Motif scrollbars." ;; 4818 motif ) echo " Using Motif scrollbars." ;;
4656 athena ) echo " Using Athena scrollbars." ;; 4819 athena ) echo " Using Athena scrollbars." ;;
4657 msw ) echo " Using MS-Windows scrollbars." ;; 4820 msw ) echo " Using MS-Windows scrollbars." ;;
4658 esac 4821 esac
4659 case "$with_dialogs" in 4822 case "$with_dialogs" in
4823 gtk ) echo " Using GTK dialog boxes." ;;
4660 motif ) echo " Using Motif dialog boxes." 4824 motif ) echo " Using Motif dialog boxes."
4661 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then 4825 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
4662 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." 4826 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
4663 echo " We recommend using the Athena dialog boxes instead." 4827 echo " We recommend using the Athena dialog boxes instead."
4664 echo " Install libXaw and re-run configure with --with-dialogs='athena'." 4828 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
4666 fi; fi ;; 4830 fi; fi ;;
4667 athena ) echo " Using Athena dialog boxes." ;; 4831 athena ) echo " Using Athena dialog boxes." ;;
4668 msw ) echo " Using MS-Windows dialog boxes." ;; 4832 msw ) echo " Using MS-Windows dialog boxes." ;;
4669 esac 4833 esac
4670 case "$with_widgets" in 4834 case "$with_widgets" in
4835 gtk ) echo " Using GTK native widgets." ;;
4671 motif ) echo " Using Motif native widgets." ;; 4836 motif ) echo " Using Motif native widgets." ;;
4672 athena ) echo " Using Athena native widgets." ;; 4837 athena ) echo " Using Athena native widgets." ;;
4673 msw ) echo " Using MS-Windows native widgets." ;; 4838 msw ) echo " Using MS-Windows native widgets." ;;
4674 esac 4839 esac
4675 if test "$with_dragndrop" = yes; then 4840 if test "$with_dragndrop" = yes; then