comparison configure @ 4990:8f0cf4fd3d2c

Automatic merge
author Ben Wing <ben@xemacs.org>
date Sat, 06 Feb 2010 04:01:46 -0600
parents cbe181529c34
children 97c45e3ad810
comparison
equal deleted inserted replaced
4989:d2ec55325515 4990:8f0cf4fd3d2c
1950 a SourceForge project). 1950 a SourceForge project).
1951 1951
1952 Debugging options 1952 Debugging options
1953 ----------------- 1953 -----------------
1954 1954
1955 --with-debug Enable additional debugging information. No time 1955 --with-debug Enable additional debugging information. No
1956 cost. 1956 noticeable time cost (unlike
1957 --with-error-checking=TESTS 1957 `--with-error-checking'). This turns adds `-g' to
1958 the compiler options so that debug information is
1959 compiled into the XEmacs executable. It also turns
1960 on assert checks in the source code (i.e. same as
1961 `--with-assertions'); enables Lisp commands for
1962 determining detailed memory usage statistics (same
1963 as `--with-memory-usage-stats'); adds various Lisp
1964 variables and functions that allow one to display
1965 internal structures, show the internal workings of
1966 certain subsystems, and exit to the debugger; causes
1967 Lisp errors during building to exit to the debugger
1968 or dump core; and adds debugging-related C functions
1969 meant to be called from a debugger.
1970 --with-error-checking=CLASS|all|none
1958 Compile with internal error-checking added. Causes 1971 Compile with internal error-checking added. Causes
1959 noticeable loss of speed. Valid TESTS are 1972 noticeable loss of speed. Valid classes are
1960 `byte_code', `display', `extents', `gc', `glyphs', 1973 `byte_code', `display' (redisplay), `extents', `gc'
1961 `malloc', `structures' `text', `types'. 1974 (garbage collection), `glyphs', `malloc' (memory
1975 allocation), `structures' (C structures), `text'
1976 (text handling and conversion), `types' (correct
1977 Lisp-object type for type-specific operations).
1978 `all' or `none' can be given to set all or no
1979 classes, respectively. Any of the classes can be
1980 prefixed with `no' to turn the class off. A
1981 comma-separated list of classes can also be given.
1982 For example, `all,nogc' turns on all but
1983 garbage-collection-related checking. Omitting any
1984 argument or specifying just `yes' is the same as
1985 `all'.
1962 --with-assertions Compile in runtime assertions. 1986 --with-assertions Compile in runtime assertions.
1963 --with-memory-usage-stats 1987 --with-memory-usage-stats
1964 Enable LISP memory usage API. 1988 Enable LISP memory usage API.
1965 --with-quick-build Speed up the build cycle by leaving out steps where 1989 --with-quick-build Speed up the build cycle by leaving out steps where
1966 XEmacs will still work (more or less) without them. 1990 XEmacs will still work (more or less) without them.
5150 if test "${with_debug+set}" = set; then 5174 if test "${with_debug+set}" = set; then
5151 enableval="$with_debug" 5175 enableval="$with_debug"
5152 withval="$with_debug" 5176 withval="$with_debug"
5153 5177
5154 fi; 5178 fi;
5179 if test "$with_error_checking" = "yes"; then
5180 with_error_checking=all
5181 fi
5155 _error_checking_notfirst="" 5182 _error_checking_notfirst=""
5156 _error_checking_byte_code_default="" 5183 _error_checking_byte_code_default=""
5157 _error_checking_display_default="" 5184 _error_checking_display_default=""
5158 _error_checking_extents_default="" 5185 _error_checking_extents_default=""
5159 _error_checking_gc_default="" 5186 _error_checking_gc_default=""
8933 8960
8934 test -n "$with_xemacs_compiler" && XEMACS_CC="$with_xemacs_compiler" 8961 test -n "$with_xemacs_compiler" && XEMACS_CC="$with_xemacs_compiler"
8935 : ${XEMACS_CC:="$CC"} 8962 : ${XEMACS_CC:="$CC"}
8936 8963
8937 8964
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using g++" >&5
8966 $as_echo_n "checking whether we are using g++... " >&6; }
8967
8968 XEMACS_CC_GPP=no
8969 case "$XEMACS_CC" in
8970 *g++* ) XEMACS_CC_GPP=yes ;;
8971 esac
8972
8973 if test "$XEMACS_CC_GPP" = "no" -a "$GCC" = "yes"; then
8974 case "`$XEMACS_CC --version`" in
8975 g++* ) XEMACS_CC_GPP=yes ;;
8976 esac
8977 fi
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XEMACS_CC_GPP" >&5
8980 $as_echo "$XEMACS_CC_GPP" >&6; }
8981
8982
8938 test -n "$CPP" -a -d "$CPP" && CPP= 8983 test -n "$CPP" -a -d "$CPP" && CPP=
8939 8984
8940 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 8985 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
8941 8986
8942 ac_ext=c 8987 ac_ext=c
9461 fi 9506 fi
9462 9507
9463 9508
9464 xemacs_cc_cc_mismatch=no 9509 xemacs_cc_cc_mismatch=no
9465 if test "$CC" != "$XEMACS_CC"; then 9510 if test "$CC" != "$XEMACS_CC"; then
9466 case "$XEMACS_CC" in 9511 if test "$XEMACS_CC_GPP" = "yes" -a "$GCC" != "yes"; then
9467 *g++* ) 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC and g++ are mismatched; XE_CFLAGS may be wrong" >&5
9468 if test "$GCC" != "yes"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC and g++ are mismatched; XE_CFLAGS may be wrong" >&5
9470 $as_echo "$as_me: WARNING: CC and g++ are mismatched; XE_CFLAGS may be wrong" >&2;} 9513 $as_echo "$as_me: WARNING: CC and g++ are mismatched; XE_CFLAGS may be wrong" >&2;}
9471 xemacs_cc_cc_mismatch=yes 9514 xemacs_cc_cc_mismatch=yes
9472 fi 9515 fi
9473 ;; 9516 if test -n "$GCC" -a "$XEMACS_CC_GPP" != "yes" ; then
9474 esac 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" >&5
9475 if test -n "$GCC"; then
9476 case $XEMACS_CC in
9477 *g++* )
9478 # it's as expected, do nothing
9479 ;;
9480 * )
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" >&5
9482 $as_echo "$as_me: WARNING: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" >&2;} 9518 $as_echo "$as_me: WARNING: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" >&2;}
9483 xemacs_cc_cc_mismatch=yes 9519 xemacs_cc_cc_mismatch=yes
9484 ;;
9485 esac
9486 fi 9520 fi
9487 fi 9521 fi
9488 9522
9489 9523
9490 if test -z "$with_optimization"; then 9524 if test -z "$with_optimization"; then
9503 fi 9537 fi
9504 fi 9538 fi
9505 9539
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred optimization flags" >&5 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred optimization flags" >&5
9507 $as_echo_n "checking for preferred optimization flags... " >&6; } 9541 $as_echo_n "checking for preferred optimization flags... " >&6; }
9508 if test "$with_optimization" = "yes" ; then 9542 if test "$cflags_optimization_specified" = "no"; then
9509 if test "$cflags_optimization_specified" = "no"; then 9543 if test "$with_optimization" = "yes" ; then
9510 if test "$GCC" = "yes"; then 9544 if test "$GCC" = "yes"; then
9511 with_cflags_optimization="-O3" 9545 with_cflags_optimization="-O3 -fno-strict-aliasing"
9512 elif test "$__SUNPRO_C" = "yes"; then 9546 elif test "$__SUNPRO_C" = "yes"; then
9513 case "$opsys" in 9547 case "$opsys" in
9514 sol2 ) with_cflags_optimization="-xO4" ;; 9548 sol2 ) with_cflags_optimization="-xO4" ;;
9515 esac 9549 esac
9516 elif test "$__DECC" = "yes"; then 9550 elif test "$__DECC" = "yes"; then
9519 with_cflags_optimization="-O3 -qstrict -qnoansialias -qlibansi -qmaxmem=20000" 9553 with_cflags_optimization="-O3 -qstrict -qnoansialias -qlibansi -qmaxmem=20000"
9520 elif test "$__ICC" = "yes"; then 9554 elif test "$__ICC" = "yes"; then
9521 with_cflags_optimization="-O3 -Ob2" 9555 with_cflags_optimization="-O3 -Ob2"
9522 else 9556 else
9523 with_cflags_optimization="-O" ; fi 9557 with_cflags_optimization="-O" ; fi
9558 elif test "$XEMACS_CC_GPP" = "yes" ; then
9559 with_cflags_optimization="-fno-strict-aliasing"
9524 fi 9560 fi
9525 else
9526 with_cflags_optimization=
9527 fi 9561 fi
9528 9562
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cflags_optimization}" >&5 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cflags_optimization}" >&5
9530 $as_echo "${with_cflags_optimization}" >&6; } 9564 $as_echo "${with_cflags_optimization}" >&6; }
9531 9565
9564 9598
9565 with_cflags_warning="$with_cflags_warning -Wsign-compare -Wno-char-subscripts" 9599 with_cflags_warning="$with_cflags_warning -Wsign-compare -Wno-char-subscripts"
9566 test "$__GCC" -ge 3 && with_cflags_warning="$with_cflags_warning -Wpacked" 9600 test "$__GCC" -ge 3 && with_cflags_warning="$with_cflags_warning -Wpacked"
9567 test "$have_glibc" != "yes" && \ 9601 test "$have_glibc" != "yes" && \
9568 with_cflags_warning="$with_cflags_warning -Wpointer-arith" 9602 with_cflags_warning="$with_cflags_warning -Wpointer-arith"
9569 if test "$with_xemacs_compiler" = "g++"; then 9603 if test "$XEMACS_CC_GPP" = "yes"; then
9570 xe_cflags_warning="$with_cflags_warning -Weffc++" 9604 xe_cflags_warning="$with_cflags_warning -Weffc++"
9571 elif test "$__GCC" -ge 3; then 9605 elif test "$__GCC" -ge 3; then
9572 xe_cflags_warning="$with_cflags_warning -Wunused-parameter" 9606 xe_cflags_warning="$with_cflags_warning -Wunused-parameter"
9573 if test "$__GCC" -gt 3 || test "$__GCC_MINOR" -ge 4; then 9607 if test "$__GCC" -gt 3 || test "$__GCC_MINOR" -ge 4; then
9574 with_cflags_warning="$with_cflags_warning -Wdeclaration-after-statement" 9608 with_cflags_warning="$with_cflags_warning -Wdeclaration-after-statement"
13907 13941
13908 13942
13909 13943
13910 13944
13911 13945
13912 if test "$with_xemacs_compiler" = "g++"; then 13946 if test "$XEMACS_CC_GPP" = "yes"; then
13913 LIBSTDCPP=-lstdc++ 13947 LIBSTDCPP=-lstdc++
13914 else 13948 else
13915 LIBSTDCPP= 13949 LIBSTDCPP=
13916 fi 13950 fi
13917 13951
14579 can_build_shared=no 14613 can_build_shared=no
14580 fi 14614 fi
14581 fi # End of if cc_produces_so = no 14615 fi # End of if cc_produces_so = no
14582 14616
14583 14617
14584 if test "$xe_gnu_ld" = yes; then 14618 if test "$xe_gnu_ld" = yes -a "$ld_shlibs" = yes; then
14585 if test "$ld_shlibs" = yes; then 14619 case "$xehost_os" in
14620 *cygwin* | *mingw* )
14621 # -export-all-symbols is the PE equivalent of ELF-specific -export-dynamic
14622 ld_dynamic_link_flags="${wl}-export-all-symbols"
14623 ;;
14624
14625 *)
14586 ld_dynamic_link_flags="${wl}-export-dynamic" 14626 ld_dynamic_link_flags="${wl}-export-dynamic"
14587 fi 14627 ;;
14628 esac
14588 fi 14629 fi
14589 14630
14590 if test -z "$ld_dynamic_link_flags"; then 14631 if test -z "$ld_dynamic_link_flags"; then
14591 case "$xehost_os" in 14632 case "$xehost_os" in
14592 aix[3-9]*) 14633 aix[3-9]*)
20313 if test "$with_modules" = "no"; then 20354 if test "$with_modules" = "no"; then
20314 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi 20355 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
20315 fi 20356 fi
20316 20357
20317 20358
20318 internal_makefile_list="Makefile.in" 20359 internal_makefile_list="Makefile.in src/.gdbinit.in"
20319 SUBDIR_MAKEFILES='' 20360 SUBDIR_MAKEFILES=''
20320 test -d lock || mkdir lock 20361 test -d lock || mkdir lock
20321 for dir in $MAKE_SUBDIR; do 20362 for dir in $MAKE_SUBDIR; do
20322 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do 20363 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
20323 test -d "$d" || mkdir "$d"; cd "$d" 20364 test -d "$d" || mkdir "$d"; cd "$d"
20360 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done 20401 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
20361 echo "" 20402 echo ""
20362 fi 20403 fi
20363 20404
20364 20405
20365 if test -f "$srcdir/etc/gdbinit.in"; then
20366 test "$verbose" = "yes" && echo "creating src/.gdbinit.in"
20367 cp $srcdir/etc/gdbinit.in src/.gdbinit.in
20368 fi
20369 20406
20370 if test -f "$srcdir/etc/dbxrc.in"; then 20407 if test -f "$srcdir/etc/dbxrc.in"; then
20371 test "$verbose" = "yes" && echo "creating src/.dbxrc.in" 20408 test "$verbose" = "yes" && echo "creating src/.dbxrc.in"
20372 echo ". $srcdir/etc/dbxrc.in" > "src/.dbxrc.in" 20409 echo ". $srcdir/etc/dbxrc.in" > "src/.dbxrc.in"
20373 fi 20410 fi
20671 elif test "$with_debug_malloc" = "yes"; then $as_echo "#define USE_DEBUG_MALLOC 1" >>confdefs.h 20708 elif test "$with_debug_malloc" = "yes"; then $as_echo "#define USE_DEBUG_MALLOC 1" >>confdefs.h
20672 20709
20673 $as_echo "#define USE_SYSTEM_MALLOC 1" >>confdefs.h 20710 $as_echo "#define USE_SYSTEM_MALLOC 1" >>confdefs.h
20674 20711
20675 fi 20712 fi
20676 test "$GCC" = "yes" && $as_echo "#define USE_GCC 1" >>confdefs.h 20713 test "$GCC" = "yes" && $as_echo "#define USE_GCC 1" >>confdefs.h
20677 20714
20678 test "$with_xemacs_compiler" = "g++" && $as_echo "#define USE_GPLUSPLUS 1" >>confdefs.h 20715 test "$XEMACS_CC_GPP" = "yes" && $as_echo "#define USE_GPLUSPLUS 1" >>confdefs.h
20679 20716
20680 test "$with_external_widget" = "yes" && $as_echo "#define EXTERNAL_WIDGET 1" >>confdefs.h 20717 test "$with_external_widget" = "yes" && $as_echo "#define EXTERNAL_WIDGET 1" >>confdefs.h
20681 20718
20682 test "$with_kkcc" = "yes" && $as_echo "#define USE_KKCC 1" >>confdefs.h 20719 test "$with_kkcc" = "yes" && $as_echo "#define USE_KKCC 1" >>confdefs.h
20683 20720
20684 test "$with_newgc" = "yes" && $as_echo "#define NEW_GC 1" >>confdefs.h 20721 test "$with_newgc" = "yes" && $as_echo "#define NEW_GC 1" >>confdefs.h
20685 20722
20686 test "$have_vdb_posix" = "yes" && $as_echo "#define VDB_POSIX 1" >>confdefs.h 20723 test "$have_vdb_posix" = "yes" && $as_echo "#define VDB_POSIX 1" >>confdefs.h
20687 20724
20688 test "$have_vdb_fake" = "yes" && $as_echo "#define VDB_FAKE 1" >>confdefs.h 20725 test "$have_vdb_fake" = "yes" && $as_echo "#define VDB_FAKE 1" >>confdefs.h
20689 20726
20690 test "$with_quick_build" = "yes" && $as_echo "#define QUICK_BUILD 1" >>confdefs.h 20727 test "$with_quick_build" = "yes" && $as_echo "#define QUICK_BUILD 1" >>confdefs.h
20691 20728
20692 test "$with_purify" = "yes" && $as_echo "#define PURIFY 1" >>confdefs.h 20729 test "$with_purify" = "yes" && $as_echo "#define PURIFY 1" >>confdefs.h
20693 20730
20694 test "$with_quantify" = "yes" && $as_echo "#define QUANTIFY 1" >>confdefs.h 20731 test "$with_quantify" = "yes" && $as_echo "#define QUANTIFY 1" >>confdefs.h
20695 20732
20696 test "$with_valgrind" = "yes" && $as_echo "#define USE_VALGRIND 1" >>confdefs.h 20733 test "$with_valgrind" = "yes" && $as_echo "#define USE_VALGRIND 1" >>confdefs.h
20697 20734
20698 test "$with_pop" = "yes" && $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 20735 test "$with_pop" = "yes" && $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
20699 20736
20700 test "$with_kerberos" = "yes" && $as_echo "#define KERBEROS 1" >>confdefs.h 20737 test "$with_kerberos" = "yes" && $as_echo "#define KERBEROS 1" >>confdefs.h
20701 20738
20702 test "$with_hesiod" = "yes" && $as_echo "#define HESIOD 1" >>confdefs.h 20739 test "$with_hesiod" = "yes" && $as_echo "#define HESIOD 1" >>confdefs.h
20703 20740
20704 test "$with_union_type" = "yes" && $as_echo "#define USE_UNION_TYPE 1" >>confdefs.h 20741 test "$with_union_type" = "yes" && $as_echo "#define USE_UNION_TYPE 1" >>confdefs.h
20705 20742
20706 test "$with_pdump" = "yes" && $as_echo "#define PDUMP 1" >>confdefs.h 20743 test "$with_pdump" = "yes" && $as_echo "#define PDUMP 1" >>confdefs.h
20707 20744
20708 test "$with_dump_in_exec" = "yes" && $as_echo "#define DUMP_IN_EXEC 1" >>confdefs.h 20745 test "$with_dump_in_exec" = "yes" && $as_echo "#define DUMP_IN_EXEC 1" >>confdefs.h
20709 20746
20710 test "$with_ipv6_cname" = "yes" && $as_echo "#define IPV6_CANONICALIZE 1" >>confdefs.h 20747 test "$with_ipv6_cname" = "yes" && $as_echo "#define IPV6_CANONICALIZE 1" >>confdefs.h
20711 20748
20712 20749
20713 20750
20714 20751
20715 20752
20830 echo " Re-run configure with --with-menubars='lucid'." ;; 20867 echo " Re-run configure with --with-menubars='lucid'." ;;
20831 msw ) echo " Using MS-Windows menubars." ;; 20868 msw ) echo " Using MS-Windows menubars." ;;
20832 esac 20869 esac
20833 if test "$with_xft_menubars" = "yes"; then 20870 if test "$with_xft_menubars" = "yes"; then
20834 echo " - Using Xft to render antialiased fonts in menubars." 20871 echo " - Using Xft to render antialiased fonts in menubars."
20835 echo " WARNING: This feature will be replaced with a face." 20872 echo " WARNING: This Xft feature will be replaced with a face."
20836 fi 20873 fi
20837 case "$with_scrollbars" in 20874 case "$with_scrollbars" in
20838 gtk ) echo " Using GTK scrollbars." ;; 20875 gtk ) echo " Using GTK scrollbars." ;;
20839 lucid ) echo " Using Lucid scrollbars." ;; 20876 lucid ) echo " Using Lucid scrollbars." ;;
20840 motif ) echo " Using Motif scrollbars." ;; 20877 motif ) echo " Using Motif scrollbars." ;;
20859 athena ) echo " Using Athena native widgets." ;; 20896 athena ) echo " Using Athena native widgets." ;;
20860 msw ) echo " Using MS-Windows native widgets." ;; 20897 msw ) echo " Using MS-Windows native widgets." ;;
20861 esac 20898 esac
20862 if test "$with_xft_tabs" = "yes"; then 20899 if test "$with_xft_tabs" = "yes"; then
20863 echo " - Using Xft to render antialiased fonts in tab controls." 20900 echo " - Using Xft to render antialiased fonts in tab controls."
20864 echo " WARNING: This feature will be replaced with a face." 20901 echo " WARNING: This Xft feature will be replaced with a face."
20865 fi 20902 fi
20866 if test "$with_xft_gauges" = "yes"; then 20903 if test "$with_xft_gauges" = "yes"; then
20867 echo " - Using Xft to render antialiased fonts in progress bars." 20904 echo " - Using Xft to render antialiased fonts in progress bars."
20868 echo " WARNING: This feature will be replaced with a face." 20905 echo " WARNING: This Xft feature will be replaced with a face."
20869 echo " WARNING: This feature not yet implemented; setting ignored." 20906 echo " WARNING: This Xft feature not yet implemented; setting ignored."
20870 fi 20907 fi
20871 if test "$with_dragndrop" = yes; then 20908 if test "$with_dragndrop" = yes; then
20872 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)." 20909 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
20873 echo " - Drag'n'Drop prototype: $dragndrop_proto." 20910 echo " - Drag'n'Drop prototype: $dragndrop_proto."
20874 fi 20911 fi