comparison configure.in @ 724:76d5a3dd827a

[xemacs-hg @ 2002-01-05 07:33:11 by stephent] Pre-21.5.4 commit of stuff on notebook -- updated CHANGES-beta -- fix some slow startups - default with_ipv6_cname=no -- Stephen Turnbull -- Cygwin nox-xpm detection -- Charles Wilson -- eliminate bogus check for Athena widgets -- Alexey Mahotkin
author stephent
date Sat, 05 Jan 2002 07:33:24 +0000
parents 128e95ac472f
children 1f525cb38373
comparison
equal deleted inserted replaced
723:a65ddffa00a5 724:76d5a3dd827a
14 ### This script was automatically generated by the `autoconf' program 14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'. 15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command 16 ### To rebuild it, execute the command
17 ### autoconf 17 ### autoconf
18 ### in the this directory. You must have autoconf version 2.13 or later. 18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
19 20
20 ### This file is part of XEmacs. 21 ### This file is part of XEmacs.
21 22
22 ### XEmacs is free software; you can redistribute it and/or modify it 23 ### XEmacs is free software; you can redistribute it and/or modify it
23 ### under the terms of the GNU General Public License as published by 24 ### under the terms of the GNU General Public License as published by
373 with_dnet="" 374 with_dnet=""
374 pdump="no" 375 pdump="no"
375 dnl dragndrop is still experimental. When it is stable, comment out the following line: 376 dnl dragndrop is still experimental. When it is stable, comment out the following line:
376 with_dragndrop="no" 377 with_dragndrop="no"
377 dnl Too annoying, even if mandated by IPv6 (and I'm not even sure of that) 378 dnl Too annoying, even if mandated by IPv6 (and I'm not even sure of that)
379 dnl #### Change this to yes when somebody understands IPv6 and handle bugs.
378 with_ipv6_cname="no" 380 with_ipv6_cname="no"
379 381
380 dnl ------------------ 382 dnl ------------------
381 dnl Options Processing 383 dnl Options Processing
382 dnl ------------------ 384 dnl ------------------
499 with_pop | \ 501 with_pop | \
500 with_kerberos | \ 502 with_kerberos | \
501 with_hesiod | \ 503 with_hesiod | \
502 with_dnet | \ 504 with_dnet | \
503 with_infodock | \ 505 with_infodock | \
504 with_netinstall | \ 506 with_netinstall | \
507 with_ipv6_cname | \
505 external_widget | \ 508 external_widget | \
506 verbose | \ 509 verbose | \
507 extra_verbose | \ 510 extra_verbose | \
508 usage_tracking | \ 511 usage_tracking | \
509 use_union_type | \ 512 use_union_type | \
616 if test "$bogus_sound" -o \ 619 if test "$bogus_sound" -o \
617 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then 620 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
618 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'." 621 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
619 USAGE_ERROR(["Valid types for the \`--$optname' option are: 622 USAGE_ERROR(["Valid types for the \`--$optname' option are:
620 $types. 623 $types.
621 The default is to autodetect all sound support."]) 624 Option \`all' or \`none' must be first in the list.
625 The default is to autodetect native and NAS sound support."])
622 elif test -n "$new_sdefault" ; then 626 elif test -n "$new_sdefault" ; then
623 with_native_sound=$new_sdefault 627 with_native_sound=$new_sdefault
624 with_nas_sound=$new_sdefault 628 with_nas_sound=$new_sdefault
625 with_esd_sound=$new_sdefault 629 with_esd_sound=$new_sdefault
626 new_sdefault= # reset this 630 new_sdefault= # reset this
783 "with_scrollbars" | \ 787 "with_scrollbars" | \
784 "with_dialogs" | \ 788 "with_dialogs" | \
785 "with_widgets" ) 789 "with_widgets" )
786 case "$val" in 790 case "$val" in
787 l | lu | luc | luci | lucid ) val=lucid ;; 791 l | lu | luc | luci | lucid ) val=lucid ;;
788 m | mo | mot | moti | motif ) val=motif ;; 792 mo | mot | moti | motif ) val=motif ;;
789 a | at | ath | athe | athen | athena ) val=athena ;; 793 a | at | ath | athe | athen | athena ) val=athena ;;
790 n | no | non | none ) val=no ;; 794 n | no | non | none ) val=no ;;
791 y | ye | yes ) val=yes ;; 795 y | ye | yes ) val=yes ;;
792 g | gt | gtk ) val=gtk ;; 796 g | gt | gtk ) val=gtk ;;
793 m | ms | msw ) val=msw ;; 797 ms | msw ) val=msw ;;
794 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: 798 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
795 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; 799 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;;
796 esac 800 esac
797 eval "$opt=\"$val\"" 801 eval "$opt=\"$val\""
798 ;; 802 ;;
2645 XE_ADD_OBJS(select-gtk.o gccache-gtk.o) 2649 XE_ADD_OBJS(select-gtk.o gccache-gtk.o)
2646 XE_ADD_OBJS(gtk-xemacs.o ui-gtk.o) 2650 XE_ADD_OBJS(gtk-xemacs.o ui-gtk.o)
2647 2651
2648 dnl Check for libglade support (it rocks) 2652 dnl Check for libglade support (it rocks)
2649 OLD_CFLAGS="${CFLAGS}" 2653 OLD_CFLAGS="${CFLAGS}"
2654 OLD_CPPFLAGS="${CPPFLAGS}"
2650 OLD_LDFLAGS="${LDFLAGS}" 2655 OLD_LDFLAGS="${LDFLAGS}"
2651 CFLAGS="${GTK_CFLAGS} ${CFLAGS}" 2656 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
2657 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
2652 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 2658 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
2653 AC_CHECK_HEADERS(glade/glade.h glade.h) 2659 AC_CHECK_HEADERS(glade/glade.h glade.h)
2654 AC_CHECK_LIB(xml, main, XE_PREPEND(-lxml, libs_gtk)) 2660 AC_CHECK_LIB(xml, main, XE_PREPEND(-lxml, libs_gtk))
2655 AC_CHECK_LIB(glade, main, XE_PREPEND(-lglade, libs_gtk)) 2661 AC_CHECK_LIB(glade, main, XE_PREPEND(-lglade, libs_gtk))
2656 AC_CHECK_LIB(glade-gnome, main, XE_PREPEND(-lglade-gnome, libs_gtk)) 2662 AC_CHECK_LIB(glade-gnome, main, XE_PREPEND(-lglade-gnome, libs_gtk))
2657 AC_EGREP_HEADER([char \*txtdomain;], [glade/glade-xml.h], 2663 AC_EGREP_HEADER([char \*txtdomain;], [glade/glade-xml.h],
2658 [AC_MSG_RESULT(yes) 2664 [AC_MSG_RESULT(yes)
2659 AC_DEFINE(LIBGLADE_XML_TXTDOMAIN,1)], 2665 AC_DEFINE(LIBGLADE_XML_TXTDOMAIN,1)],
2660 [AC_MSG_RESULT(no)]) 2666 [AC_MSG_RESULT(no)])
2661 CFLAGS="${OLD_CFLAGS}" 2667 CFLAGS="${OLD_CFLAGS}"
2668 CPPFLAGS="${OLD_CPPFLAGS}"
2662 LDFLAGS="${OLD_LDFLAGS}" 2669 LDFLAGS="${OLD_LDFLAGS}"
2663 fi 2670 fi
2664 2671
2665 dnl We may eventually prefer gtk/gdk over vanilla X11... 2672 dnl We may eventually prefer gtk/gdk over vanilla X11...
2666 2673
3213 dnl ---------------------- 3220 dnl ----------------------
3214 3221
3215 if test "$window_system" != "none"; then 3222 if test "$window_system" != "none"; then
3216 AC_CHECKING(for graphics libraries) 3223 AC_CHECKING(for graphics libraries)
3217 3224
3225 dnl add special code to handle xpm-nox on Cygwin (csw)
3226 dnl -- should only happen if CYGWIN && WITH_XPM && WITH_MSW && !WITH_X
3227 libpath_xpm=
3228 incpath_xpm=
3229 case "$opsys" in
3230 cygwin*)
3231 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
3232 cygwin_top=`eval "dirname ${cygwin_top}"`;
3233 cygwin_top="${cygwin_top}/..";
3234 case "$window_system" in
3235 dnl use "standard" search pattern
3236 x11) ;;
3237 dnl hardcode "standard" non-X11 xpm lib/inc dirs
3238 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
3239 incpath_xpm="-I${cygwin_top}/include/noX"
3240 ;;
3241 dnl not supported on cygwin (yet?)
3242 gtk) ;;
3243 dnl probably not reached...
3244 none) ;;
3245 dnl ditto
3246 *) ;;
3247 esac
3248 ;;
3249 dnl use "standard" search pattern for all other OS's
3250 *) ;;
3251 esac
3218 dnl Autodetect Xpm 3252 dnl Autodetect Xpm
3219 xpm_problem="" 3253 xpm_problem=""
3220 if test -z "$with_xpm"; then 3254 if test -z "$with_xpm"; then
3255 XE_PREPEND("$incpath_xpm", CFLAGS)
3256 XE_PREPEND("$libpath_xpm", LDFLAGS)
3221 AC_MSG_CHECKING(for Xpm - no older than 3.4f) 3257 AC_MSG_CHECKING(for Xpm - no older than 3.4f)
3222 xe_check_libs=-lXpm 3258 xe_check_libs=-lXpm
3223 AC_TRY_RUN([#define XPM_NUMBERS 3259 AC_TRY_RUN([#define XPM_NUMBERS
3224 #include <X11/xpm.h> 3260 #include <X11/xpm.h>
3225 int main(int c, char **v) { 3261 int main(int c, char **v) {
3251 if test "$with_xpm" = "yes"; then 3287 if test "$with_xpm" = "yes"; then
3252 dnl #### This code assumes that if AC_CHECK_LIB fails, 3288 dnl #### This code assumes that if AC_CHECK_LIB fails,
3253 dnl #### then it will succeed if FOR_MSW is defined, 3289 dnl #### then it will succeed if FOR_MSW is defined,
3254 dnl #### but doesn't actually verify this assumption. 3290 dnl #### but doesn't actually verify this assumption.
3255 AC_DEFINE(HAVE_XPM) 3291 AC_DEFINE(HAVE_XPM)
3292 XE_PREPEND("$libpath_xpm", LDFLAGS)
3256 XE_PREPEND(-lXpm, libs_x) 3293 XE_PREPEND(-lXpm, libs_x)
3294 XE_PREPEND("$incpath_xpm", CFLAGS)
3257 AC_MSG_CHECKING(for \"FOR_MSW\" xpm) 3295 AC_MSG_CHECKING(for \"FOR_MSW\" xpm)
3258 xe_check_libs=-lXpm 3296 xe_check_libs=-lXpm
3259 AC_TRY_LINK(, [XpmCreatePixmapFromData()], 3297 AC_TRY_LINK(, [XpmCreatePixmapFromData()],
3260 [xpm_for_msw=no], 3298 [xpm_for_msw=no],
3261 [xpm_for_msw=yes]) 3299 [xpm_for_msw=yes])
3368 dnl ---------------------- 3406 dnl ----------------------
3369 dnl X-Specific Graphics libraries 3407 dnl X-Specific Graphics libraries
3370 dnl ---------------------- 3408 dnl ----------------------
3371 3409
3372 if test "$with_x11" = "yes"; then 3410 if test "$with_x11" = "yes"; then
3373
3374 AC_CHECKING(for X11 graphics libraries) 3411 AC_CHECKING(for X11 graphics libraries)
3375 3412 fi
3413
3414 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then
3376 AC_CHECKING(for the Athena widgets) 3415 AC_CHECKING(for the Athena widgets)
3377 3416
3378 dnl What in heck did the user actually want? 3417 dnl What in heck did the user actually want?
3379 case "$with_athena" in 3418 case "$with_athena" in
3380 dnl This is the default, old fashioned flat Athena. 3419 dnl This is the default, old fashioned flat Athena.
3467 have_xaw=yes 3506 have_xaw=yes
3468 else 3507 else
3469 have_xaw=no 3508 have_xaw=no
3470 fi 3509 fi
3471 3510
3511 else
3512 have_xaw=no
3513 fi dnl "$with_x11" = "yes" -a "$with_widgets" = "athena"
3514
3515 if test "$with_x11" = "yes"; then
3472 dnl autodetect Motif - but only add to libs_x later (if necessary) 3516 dnl autodetect Motif - but only add to libs_x later (if necessary)
3473 AC_CHECK_HEADER(Xm/Xm.h, 3517 AC_CHECK_HEADER(Xm/Xm.h,
3474 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)], 3518 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)],
3475 have_motif=no) 3519 have_motif=no)
3476 3520
4803 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) 4847 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP)
4804 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) 4848 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS)
4805 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) 4849 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD)
4806 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) 4850 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE)
4807 test "$pdump" = "yes" && AC_DEFINE(PDUMP) 4851 test "$pdump" = "yes" && AC_DEFINE(PDUMP)
4852 test "$with_ipv6_cname" = "yes" && AC_DEFINE(IPV6_CANONICALIZE)
4808 4853
4809 dnl ------------------------------- 4854 dnl -------------------------------
4810 dnl Report on what we decided to do 4855 dnl Report on what we decided to do
4811 dnl ------------------------------- 4856 dnl -------------------------------
4812 4857